Skip to content

Commit

Permalink
feat: update generated client
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Dec 12, 2024
1 parent f3b2fa9 commit f482fe5
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mittwald/spec/openapi.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions packages/mittwald/src/generated/v2/client-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,16 @@ const buildMarketplaceApi = (baseClient: MittwaldAPIV2Client) => ({
descriptors.extensionGetContributor,
baseClient.marketplace.extensionGetContributor,
).getApiResource,
/** Get the ExtensionInstance of a specific customer and extension, if existing. */
extensionGetExtensionInstanceForCustomer: new ApiCallAsyncResourceFactory(
descriptors.extensionGetExtensionInstanceForCustomer,
baseClient.marketplace.extensionGetExtensionInstanceForCustomer,
).getApiResource,
/** Get the ExtensionInstance of a specific project and extension, if existing. */
extensionGetExtensionInstanceForProject: new ApiCallAsyncResourceFactory(
descriptors.extensionGetExtensionInstanceForProject,
baseClient.marketplace.extensionGetExtensionInstanceForProject,
).getApiResource,
/** Get an Extension. */
extensionGetExtension: new ApiCallAsyncResourceFactory(
descriptors.extensionGetExtension,
Expand Down
8 changes: 8 additions & 0 deletions packages/mittwald/src/generated/v2/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,14 @@ export class MittwaldAPIV2Client extends ApiClientBase {
extensionGetContributor: this.requestFunctionFactory(
descriptors.extensionGetContributor,
),
/** Get the ExtensionInstance of a specific customer and extension, if existing. */
extensionGetExtensionInstanceForCustomer: this.requestFunctionFactory(
descriptors.extensionGetExtensionInstanceForCustomer,
),
/** Get the ExtensionInstance of a specific project and extension, if existing. */
extensionGetExtensionInstanceForProject: this.requestFunctionFactory(
descriptors.extensionGetExtensionInstanceForProject,
),
/** Get an Extension. */
extensionGetExtension: this.requestFunctionFactory(
descriptors.extensionGetExtension,
Expand Down
68 changes: 68 additions & 0 deletions packages/mittwald/src/generated/v2/descriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5966,6 +5966,74 @@ export const extensionGetContributor: OpenAPIOperation<
operationId: "extension-get-contributor",
};

/** Get the ExtensionInstance of a specific customer and extension, if existing. */
export const extensionGetExtensionInstanceForCustomer: OpenAPIOperation<
RequestType<
Simplify<null>,
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdExtensionsExtensionId.Get.Parameters.Path>,
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdExtensionsExtensionId.Get.Parameters.Query>,
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdExtensionsExtensionId.Get.Parameters.Header>
>,
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdExtensionsExtensionId.Get.Responses.$200.Content.ApplicationJson>,
200,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdExtensionsExtensionId.Get.Responses.$404.Content.ApplicationJson>,
404,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdExtensionsExtensionId.Get.Responses.$429.Content.ApplicationJson>,
429,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2CustomersCustomerIdExtensionsExtensionId.Get.Responses.Default.Content.ApplicationJson>,
"default",
"application/json"
>
> = {
path: "/v2/customers/{customerId}/extensions/{extensionId}",
method: "GET",
operationId: "extension-get-extension-instance-for-customer",
};

/** Get the ExtensionInstance of a specific project and extension, if existing. */
export const extensionGetExtensionInstanceForProject: OpenAPIOperation<
RequestType<
Simplify<null>,
Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdExtensionsExtensionId.Get.Parameters.Path>,
Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdExtensionsExtensionId.Get.Parameters.Query>,
Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdExtensionsExtensionId.Get.Parameters.Header>
>,
| Response<
Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdExtensionsExtensionId.Get.Responses.$200.Content.ApplicationJson>,
200,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdExtensionsExtensionId.Get.Responses.$404.Content.ApplicationJson>,
404,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdExtensionsExtensionId.Get.Responses.$429.Content.ApplicationJson>,
429,
"application/json"
>
| Response<
Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdExtensionsExtensionId.Get.Responses.Default.Content.ApplicationJson>,
"default",
"application/json"
>
> = {
path: "/v2/projects/{projectId}/extensions/{extensionId}",
method: "GET",
operationId: "extension-get-extension-instance-for-project",
};

/** Get an Extension. */
export const extensionGetExtension: OpenAPIOperation<
RequestType<
Expand Down
119 changes: 119 additions & 0 deletions packages/mittwald/src/generated/v2/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,28 @@ export declare module MittwaldAPIV2 {
>;
}

namespace ExtensionGetExtensionInstanceForCustomer {
type RequestData = InferredRequestData<
typeof descriptors.extensionGetExtensionInstanceForCustomer
>;
type ResponseData<TStatus extends HttpStatus = 200> =
InferredResponseData<
typeof descriptors.extensionGetExtensionInstanceForCustomer,
TStatus
>;
}

namespace ExtensionGetExtensionInstanceForProject {
type RequestData = InferredRequestData<
typeof descriptors.extensionGetExtensionInstanceForProject
>;
type ResponseData<TStatus extends HttpStatus = 200> =
InferredResponseData<
typeof descriptors.extensionGetExtensionInstanceForProject,
TStatus
>;
}

namespace ExtensionGetExtension {
type RequestData = InferredRequestData<
typeof descriptors.extensionGetExtension
Expand Down Expand Up @@ -15681,6 +15703,102 @@ export declare module MittwaldAPIV2 {
}
}

namespace V2CustomersCustomerIdExtensionsExtensionId {
namespace Get {
namespace Parameters {
export type Path = {
customerId: string;
extensionId: string;
};

export type Header =
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;

export type Query = {};
}
namespace Responses {
namespace $200 {
namespace Content {
export type ApplicationJson =
MittwaldAPIV2.Components.Schemas.MarketplaceExtensionInstance;
}
}

namespace $404 {
namespace Content {
export interface ApplicationJson {
[k: string]: unknown;
}
}
}

namespace $429 {
namespace Content {
export interface ApplicationJson {
[k: string]: unknown;
}
}
}

namespace Default {
namespace Content {
export interface ApplicationJson {
[k: string]: unknown;
}
}
}
}
}
}

namespace V2ProjectsProjectIdExtensionsExtensionId {
namespace Get {
namespace Parameters {
export type Path = {
projectId: string;
extensionId: string;
};

export type Header =
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;

export type Query = {};
}
namespace Responses {
namespace $200 {
namespace Content {
export type ApplicationJson =
MittwaldAPIV2.Components.Schemas.MarketplaceExtensionInstance;
}
}

namespace $404 {
namespace Content {
export interface ApplicationJson {
[k: string]: unknown;
}
}
}

namespace $429 {
namespace Content {
export interface ApplicationJson {
[k: string]: unknown;
}
}
}

namespace Default {
namespace Content {
export interface ApplicationJson {
[k: string]: unknown;
}
}
}
}
}
}

namespace V2ExtensionsExtensionId {
namespace Get {
namespace Parameters {
Expand Down Expand Up @@ -21696,6 +21814,7 @@ export declare module MittwaldAPIV2 {
*/
system: "kc" | "mstudio";
};
userId?: string;
}

export type Header = {};
Expand Down

0 comments on commit f482fe5

Please sign in to comment.