Skip to content

Commit b23911c

Browse files
feat: update generated client
1 parent 739a66a commit b23911c

File tree

5 files changed

+115
-115
lines changed

5 files changed

+115
-115
lines changed

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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ const buildContractApi = (baseClient: MittwaldAPIV2Client) => ({
194194
descriptors.contractGetDetailOfContractByLeadFyndr,
195195
baseClient.contract.getDetailOfContractByLeadFyndr,
196196
).getApiResource,
197+
/** Return the Contract for the given Mail Address. */
198+
getDetailOfContractByMailAddress: new ApiCallAsyncResourceFactory(
199+
descriptors.contractGetDetailOfContractByMailAddress,
200+
baseClient.contract.getDetailOfContractByMailAddress,
201+
).getApiResource,
197202
/** Return the Contract for the given Project. */
198203
getDetailOfContractByProject: new ApiCallAsyncResourceFactory(
199204
descriptors.contractGetDetailOfContractByProject,
@@ -259,11 +264,6 @@ const buildContractApi = (baseClient: MittwaldAPIV2Client) => ({
259264
descriptors.orderListProjectOrders,
260265
baseClient.contract.orderListProjectOrders,
261266
).getApiResource,
262-
/** Return the Contract for the given Mail Address. */
263-
getDetailOfContractByMailAddress: new ApiCallAsyncResourceFactory(
264-
descriptors.contractGetDetailOfContractByMailAddress,
265-
baseClient.contract.getDetailOfContractByMailAddress,
266-
).getApiResource,
267267
});
268268

269269
const buildMarketplaceApi = (baseClient: MittwaldAPIV2Client) => ({

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
269269
getDetailOfContractByLeadFyndr: this.requestFunctionFactory(
270270
descriptors.contractGetDetailOfContractByLeadFyndr,
271271
),
272+
/** Return the Contract for the given Mail Address. */
273+
getDetailOfContractByMailAddress: this.requestFunctionFactory(
274+
descriptors.contractGetDetailOfContractByMailAddress,
275+
),
272276
/** Return the Contract for the given Project. */
273277
getDetailOfContractByProject: this.requestFunctionFactory(
274278
descriptors.contractGetDetailOfContractByProject,
@@ -333,10 +337,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
333337
orderPreviewTariffChange: this.requestFunctionFactory(
334338
descriptors.orderPreviewTariffChange,
335339
),
336-
/** Return the Contract for the given Mail Address. */
337-
getDetailOfContractByMailAddress: this.requestFunctionFactory(
338-
descriptors.contractGetDetailOfContractByMailAddress,
339-
),
340340
};
341341

342342
/** The marketplace API allows you to manage extensions and more information regaring the marketplace. */

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

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,6 +2857,45 @@ export const contractGetDetailOfContractByLeadFyndr: OpenAPIOperation<
28572857
operationId: "contract-get-detail-of-contract-by-lead-fyndr",
28582858
};
28592859

2860+
/** Return the Contract for the given Mail Address. */
2861+
export const contractGetDetailOfContractByMailAddress: OpenAPIOperation<
2862+
RequestType<
2863+
Simplify<null>,
2864+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Parameters.Path>,
2865+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Parameters.Query>,
2866+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Parameters.Header>
2867+
>,
2868+
| Response<
2869+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Responses.$200.Content.ApplicationJson>,
2870+
200,
2871+
"application/json"
2872+
>
2873+
| Response<
2874+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Responses.$400.Content.ApplicationJson>,
2875+
400,
2876+
"application/json"
2877+
>
2878+
| Response<
2879+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Responses.$404.Content.ApplicationJson>,
2880+
404,
2881+
"application/json"
2882+
>
2883+
| Response<
2884+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Responses.$429.Content.ApplicationJson>,
2885+
429,
2886+
"application/json"
2887+
>
2888+
| Response<
2889+
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Responses.Default.Content.ApplicationJson>,
2890+
"default",
2891+
"application/json"
2892+
>
2893+
> = {
2894+
path: "/v2/mail-addresses/{mailAddressId}/contract",
2895+
method: "GET",
2896+
operationId: "contract-get-detail-of-contract-by-mail-address",
2897+
};
2898+
28602899
/** Return the Contract for the given Project. */
28612900
export const contractGetDetailOfContractByProject: OpenAPIOperation<
28622901
RequestType<
@@ -16190,42 +16229,3 @@ export const verificationVerifyCompany: OpenAPIOperation<
1619016229
method: "POST",
1619116230
operationId: "verification-verify-company",
1619216231
};
16193-
16194-
/** Return the Contract for the given Mail Address. */
16195-
export const contractGetDetailOfContractByMailAddress: OpenAPIOperation<
16196-
RequestType<
16197-
Simplify<null>,
16198-
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Parameters.Path>,
16199-
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Parameters.Query>,
16200-
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Parameters.Header>
16201-
>,
16202-
| Response<
16203-
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Responses.$200.Content.ApplicationJson>,
16204-
200,
16205-
"application/json"
16206-
>
16207-
| Response<
16208-
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Responses.$400.Content.ApplicationJson>,
16209-
400,
16210-
"application/json"
16211-
>
16212-
| Response<
16213-
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Responses.$404.Content.ApplicationJson>,
16214-
404,
16215-
"application/json"
16216-
>
16217-
| Response<
16218-
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Responses.$429.Content.ApplicationJson>,
16219-
429,
16220-
"application/json"
16221-
>
16222-
| Response<
16223-
Simplify<MittwaldAPIV2.Paths.V2MailAddressesMailAddressIdContract.Get.Responses.Default.Content.ApplicationJson>,
16224-
"default",
16225-
"application/json"
16226-
>
16227-
> = {
16228-
path: "/v2/mail-addresses/{mailAddressId}/contract",
16229-
method: "GET",
16230-
operationId: "contract-get-detail-of-contract-by-mail-address",
16231-
};

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

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,17 @@ export declare module MittwaldAPIV2 {
698698
>;
699699
}
700700

701+
namespace ContractGetDetailOfContractByMailAddress {
702+
type RequestData = InferredRequestData<
703+
typeof descriptors.contractGetDetailOfContractByMailAddress
704+
>;
705+
type ResponseData<TStatus extends HttpStatus = 200> =
706+
InferredResponseData<
707+
typeof descriptors.contractGetDetailOfContractByMailAddress,
708+
TStatus
709+
>;
710+
}
711+
701712
namespace ContractGetDetailOfContractByProject {
702713
type RequestData = InferredRequestData<
703714
typeof descriptors.contractGetDetailOfContractByProject
@@ -4131,17 +4142,6 @@ export declare module MittwaldAPIV2 {
41314142
TStatus
41324143
>;
41334144
}
4134-
4135-
namespace ContractGetDetailOfContractByMailAddress {
4136-
type RequestData = InferredRequestData<
4137-
typeof descriptors.contractGetDetailOfContractByMailAddress
4138-
>;
4139-
type ResponseData<TStatus extends HttpStatus = 200> =
4140-
InferredResponseData<
4141-
typeof descriptors.contractGetDetailOfContractByMailAddress,
4142-
TStatus
4143-
>;
4144-
}
41454145
}
41464146

41474147
namespace Components {
@@ -12859,6 +12859,61 @@ export declare module MittwaldAPIV2 {
1285912859
}
1286012860
}
1286112861

12862+
namespace V2MailAddressesMailAddressIdContract {
12863+
namespace Get {
12864+
namespace Parameters {
12865+
export type Path = {
12866+
mailAddressId: string;
12867+
};
12868+
12869+
export type Header =
12870+
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
12871+
12872+
export type Query = {};
12873+
}
12874+
namespace Responses {
12875+
namespace $200 {
12876+
namespace Content {
12877+
export type ApplicationJson =
12878+
MittwaldAPIV2.Components.Schemas.ContractContract;
12879+
}
12880+
}
12881+
12882+
namespace $400 {
12883+
namespace Content {
12884+
export interface ApplicationJson {
12885+
[k: string]: unknown;
12886+
}
12887+
}
12888+
}
12889+
12890+
namespace $404 {
12891+
namespace Content {
12892+
export interface ApplicationJson {
12893+
[k: string]: unknown;
12894+
}
12895+
}
12896+
}
12897+
12898+
namespace $429 {
12899+
namespace Content {
12900+
export interface ApplicationJson {
12901+
[k: string]: unknown;
12902+
}
12903+
}
12904+
}
12905+
12906+
namespace Default {
12907+
namespace Content {
12908+
export interface ApplicationJson {
12909+
[k: string]: unknown;
12910+
}
12911+
}
12912+
}
12913+
}
12914+
}
12915+
}
12916+
1286212917
namespace V2ProjectsProjectIdContract {
1286312918
namespace Get {
1286412919
namespace Parameters {
@@ -33315,60 +33370,5 @@ export declare module MittwaldAPIV2 {
3331533370
}
3331633371
}
3331733372
}
33318-
33319-
namespace V2MailAddressesMailAddressIdContract {
33320-
namespace Get {
33321-
namespace Parameters {
33322-
export type Path = {
33323-
mailAddressId: string;
33324-
};
33325-
33326-
export type Header =
33327-
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
33328-
33329-
export type Query = {};
33330-
}
33331-
namespace Responses {
33332-
namespace $200 {
33333-
namespace Content {
33334-
export type ApplicationJson =
33335-
MittwaldAPIV2.Components.Schemas.ContractContract;
33336-
}
33337-
}
33338-
33339-
namespace $400 {
33340-
namespace Content {
33341-
export interface ApplicationJson {
33342-
[k: string]: unknown;
33343-
}
33344-
}
33345-
}
33346-
33347-
namespace $404 {
33348-
namespace Content {
33349-
export interface ApplicationJson {
33350-
[k: string]: unknown;
33351-
}
33352-
}
33353-
}
33354-
33355-
namespace $429 {
33356-
namespace Content {
33357-
export interface ApplicationJson {
33358-
[k: string]: unknown;
33359-
}
33360-
}
33361-
}
33362-
33363-
namespace Default {
33364-
namespace Content {
33365-
export interface ApplicationJson {
33366-
[k: string]: unknown;
33367-
}
33368-
}
33369-
}
33370-
}
33371-
}
33372-
}
3337333373
}
3337433374
}

0 commit comments

Comments
 (0)