Skip to content

Commit baa26ef

Browse files
feat: update generated client
1 parent 6adeddf commit baa26ef

5 files changed

Lines changed: 109 additions & 7 deletions

File tree

packages/mittwald/spec/openapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/mittwald/src/generated/v2/client-react.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,11 @@ const buildMarketplaceApi = (baseClient: MittwaldAPIV2Client) => ({
489489
descriptors.extensionGetExtension,
490490
baseClient.marketplace.extensionGetExtension,
491491
).getApiResource,
492+
/** Get Extension of own contributor. */
493+
extensionGetOwnExtension: new ApiCallAsyncResourceFactory(
494+
descriptors.extensionGetOwnExtension,
495+
baseClient.marketplace.extensionGetOwnExtension,
496+
).getApiResource,
492497
/** Get the public key to verify the webhook signature. */
493498
extensionGetPublicKey: new ApiCallAsyncResourceFactory(
494499
descriptors.extensionGetPublicKey,

packages/mittwald/src/generated/v2/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
317317
extensionGetExtension: this.requestFunctionFactory(
318318
descriptors.extensionGetExtension,
319319
),
320+
/** Get Extension of own contributor. */
321+
extensionGetOwnExtension: this.requestFunctionFactory(
322+
descriptors.extensionGetOwnExtension,
323+
),
320324
/** Get the public key to verify the webhook signature. */
321325
extensionGetPublicKey: this.requestFunctionFactory(
322326
descriptors.extensionGetPublicKey,

packages/mittwald/src/generated/v2/descriptors.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6431,6 +6431,40 @@ export const extensionGetExtension: OpenAPIOperation<
64316431
operationId: "extension-get-extension",
64326432
};
64336433

6434+
/** Get Extension of own contributor. */
6435+
export const extensionGetOwnExtension: OpenAPIOperation<
6436+
RequestType<
6437+
Simplify<null>,
6438+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Get.Parameters.Path>,
6439+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Get.Parameters.Query>,
6440+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Get.Parameters.Header>
6441+
>,
6442+
| Response<
6443+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Get.Responses.$200.Content.ApplicationJson>,
6444+
200,
6445+
"application/json"
6446+
>
6447+
| Response<
6448+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Get.Responses.$404.Content.ApplicationJson>,
6449+
404,
6450+
"application/json"
6451+
>
6452+
| Response<
6453+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Get.Responses.$429.Content.ApplicationJson>,
6454+
429,
6455+
"application/json"
6456+
>
6457+
| Response<
6458+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Get.Responses.Default.Content.ApplicationJson>,
6459+
"default",
6460+
"application/json"
6461+
>
6462+
> = {
6463+
path: "/v2/contributors/{contributorId}/extensions/{extensionId}",
6464+
method: "GET",
6465+
operationId: "extension-get-own-extension",
6466+
};
6467+
64346468
/** Get the public key to verify the webhook signature. */
64356469
export const extensionGetPublicKey: OpenAPIOperation<
64366470
RequestType<

packages/mittwald/src/generated/v2/types.ts

Lines changed: 65 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,6 +1758,17 @@ export declare module MittwaldAPIV2 {
17581758
InferredResponseData<typeof descriptors.extensionGetExtension, TStatus>;
17591759
}
17601760

1761+
namespace ExtensionGetOwnExtension {
1762+
type RequestData = InferredRequestData<
1763+
typeof descriptors.extensionGetOwnExtension
1764+
>;
1765+
type ResponseData<TStatus extends HttpStatus = 200> =
1766+
InferredResponseData<
1767+
typeof descriptors.extensionGetOwnExtension,
1768+
TStatus
1769+
>;
1770+
}
1771+
17611772
namespace ExtensionGetPublicKey {
17621773
type RequestData = InferredRequestData<
17631774
typeof descriptors.extensionGetPublicKey
@@ -4141,6 +4152,12 @@ export declare module MittwaldAPIV2 {
41414152
};
41424153
}
41434154

4155+
export type CronjobCronjobExecutionSortOrder =
4156+
| "oldestFirst"
4157+
| "newestFirst"
4158+
| "slowestFirst"
4159+
| "fastestFirst";
4160+
41444161
export interface CronjobCronjobRequest {
41454162
active: boolean;
41464163
appId: string;
@@ -6706,12 +6723,6 @@ export declare module MittwaldAPIV2 {
67066723
value: string;
67076724
}
67086725

6709-
export type CronjobCronjobExecutionSortOrder =
6710-
| "oldestFirst"
6711-
| "newestFirst"
6712-
| "slowestFirst"
6713-
| "fastestFirst";
6714-
67156726
export interface CommonsAddress {
67166727
street: string;
67176728
houseNumber: string;
@@ -16616,6 +16627,54 @@ export declare module MittwaldAPIV2 {
1661616627
}
1661716628
}
1661816629

16630+
namespace V2ContributorsContributorIdExtensionsExtensionId {
16631+
namespace Get {
16632+
namespace Parameters {
16633+
export type Path = {
16634+
contributorId: string;
16635+
extensionId: string;
16636+
};
16637+
16638+
export type Header =
16639+
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
16640+
16641+
export type Query = {};
16642+
}
16643+
namespace Responses {
16644+
namespace $200 {
16645+
namespace Content {
16646+
export type ApplicationJson =
16647+
MittwaldAPIV2.Components.Schemas.MarketplaceOwnExtension;
16648+
}
16649+
}
16650+
16651+
namespace $404 {
16652+
namespace Content {
16653+
export interface ApplicationJson {
16654+
[k: string]: unknown;
16655+
}
16656+
}
16657+
}
16658+
16659+
namespace $429 {
16660+
namespace Content {
16661+
export interface ApplicationJson {
16662+
[k: string]: unknown;
16663+
}
16664+
}
16665+
}
16666+
16667+
namespace Default {
16668+
namespace Content {
16669+
export interface ApplicationJson {
16670+
[k: string]: unknown;
16671+
}
16672+
}
16673+
}
16674+
}
16675+
}
16676+
}
16677+
1661916678
namespace V2WebhookPublicKeysSerial {
1662016679
namespace Get {
1662116680
namespace Parameters {

0 commit comments

Comments
 (0)