Skip to content

Commit 3fea23a

Browse files
feat: update generated client
1 parent 3ca3d28 commit 3fea23a

File tree

4 files changed

+132
-10
lines changed

4 files changed

+132
-10
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.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
457457
extensionGetContributor: this.requestFunctionFactory(
458458
descriptors.extensionGetContributor,
459459
),
460+
/** Patch Contributor. */
461+
contributorPatchContributor: this.requestFunctionFactory(
462+
descriptors.contributorPatchContributor,
463+
),
460464
/** Enable an ExtensionInstance. */
461465
extensionEnableExtensionInstance: this.requestFunctionFactory(
462466
descriptors.extensionEnableExtensionInstance,

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15335,6 +15335,45 @@ export const extensionGetContributor: OpenAPIOperation<
1533515335
operationId: "extension-get-contributor",
1533615336
};
1533715337

15338+
/** Patch Contributor. */
15339+
export const contributorPatchContributor: OpenAPIOperation<
15340+
RequestType<
15341+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorId.Patch.Parameters.RequestBody>,
15342+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorId.Patch.Parameters.Path>,
15343+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorId.Patch.Parameters.Query>,
15344+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorId.Patch.Parameters.Header>
15345+
>,
15346+
| Response<
15347+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorId.Patch.Responses.$200.Content.ApplicationJson>,
15348+
200,
15349+
"application/json"
15350+
>
15351+
| Response<
15352+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorId.Patch.Responses.$400.Content.ApplicationJson>,
15353+
400,
15354+
"application/json"
15355+
>
15356+
| Response<
15357+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorId.Patch.Responses.$404.Content.ApplicationJson>,
15358+
404,
15359+
"application/json"
15360+
>
15361+
| Response<
15362+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorId.Patch.Responses.$429.Content.ApplicationJson>,
15363+
429,
15364+
"application/json"
15365+
>
15366+
| Response<
15367+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorId.Patch.Responses.Default.Content.ApplicationJson>,
15368+
"default",
15369+
"application/json"
15370+
>
15371+
> = {
15372+
path: "/v2/contributors/{contributorId}",
15373+
method: "PATCH",
15374+
operationId: "contributor-patch-contributor",
15375+
};
15376+
1533815377
/** Enable an ExtensionInstance. */
1533915378
export const extensionEnableExtensionInstance: OpenAPIOperation<
1534015379
RequestType<

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

Lines changed: 88 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3877,6 +3877,17 @@ export declare module MittwaldAPIV2 {
38773877
>;
38783878
}
38793879

3880+
namespace ContributorPatchContributor {
3881+
type RequestData = InferredRequestData<
3882+
typeof descriptors.contributorPatchContributor
3883+
>;
3884+
type ResponseData<TStatus extends HttpStatus = 200> =
3885+
InferredResponseData<
3886+
typeof descriptors.contributorPatchContributor,
3887+
TStatus
3888+
>;
3889+
}
3890+
38803891
namespace ExtensionEnableExtensionInstance {
38813892
type RequestData = InferredRequestData<
38823893
typeof descriptors.extensionEnableExtensionInstance
@@ -8055,7 +8066,7 @@ export declare module MittwaldAPIV2 {
80558066
*/
80568067
logoRefId?: string;
80578068
name: string;
8058-
pricing?: MittwaldAPIV2.Components.Schemas.MarketplaceMonthlyPricingStrategy;
8069+
pricing?: MittwaldAPIV2.Components.Schemas.MarketplaceMonthlyPricePlanStrategy;
80598070
/**
80608071
* Whether the extension has been published by the contributor.
80618072
*/
@@ -8154,9 +8165,7 @@ export declare module MittwaldAPIV2 {
81548165
*/
81558166
logoRefId?: string;
81568167
name: string;
8157-
pricing?:
8158-
| MittwaldAPIV2.Components.Schemas.MarketplaceMonthlyPricingStrategy
8159-
| MittwaldAPIV2.Components.Schemas.MarketplaceMonthlyPricePlanStrategy;
8168+
pricing?: MittwaldAPIV2.Components.Schemas.MarketplaceMonthlyPricePlanStrategy;
81608169
published: boolean;
81618170
requestedChanges?: {
81628171
context?: MittwaldAPIV2.Components.Schemas.MarketplaceContext;
@@ -8205,7 +8214,7 @@ export declare module MittwaldAPIV2 {
82058214
/**
82068215
* @deprecated
82078216
*/
8208-
email?: string;
8217+
email: string;
82098218
homepage?: string;
82108219
id: string;
82118220
imprint?: MittwaldAPIV2.Components.Schemas.MarketplaceContributorImprint;
@@ -8222,6 +8231,9 @@ export declare module MittwaldAPIV2 {
82228231
*/
82238232
inherited: boolean;
82248233
};
8234+
/**
8235+
* @deprecated
8236+
*/
82258237
url?: string;
82268238
}
82278239

@@ -8231,14 +8243,17 @@ export declare module MittwaldAPIV2 {
82318243
contributorNumber: string;
82328244
customerId: string;
82338245
description?: string;
8246+
descriptions?: MittwaldAPIV2.Components.Schemas.MarketplaceLocalizedDescription;
82348247
/**
82358248
* @deprecated
82368249
*/
8237-
email?: string;
8250+
email: string;
8251+
homepage?: string;
82388252
id: string;
82398253
imprint?: MittwaldAPIV2.Components.Schemas.MarketplaceContributorImprint;
82408254
logoRefId?: string;
82418255
name: string;
8256+
nameInherited: boolean;
82428257
/**
82438258
* @deprecated
82448259
*/
@@ -8250,6 +8265,9 @@ export declare module MittwaldAPIV2 {
82508265
*/
82518266
inherited: boolean;
82528267
};
8268+
/**
8269+
* @deprecated
8270+
*/
82538271
url?: string;
82548272
}
82558273

@@ -8324,9 +8342,7 @@ export declare module MittwaldAPIV2 {
83248342
*/
83258343
logoRefId: string;
83268344
name: string;
8327-
pricing?:
8328-
| MittwaldAPIV2.Components.Schemas.MarketplaceMonthlyPricingStrategy
8329-
| MittwaldAPIV2.Components.Schemas.MarketplaceMonthlyPricePlanStrategy;
8345+
pricing?: MittwaldAPIV2.Components.Schemas.MarketplaceMonthlyPricePlanStrategy;
83308346
/**
83318347
* Whether the extension has been published by the contributor.
83328348
*/
@@ -31966,6 +31982,69 @@ export declare module MittwaldAPIV2 {
3196631982
}
3196731983
}
3196831984
}
31985+
31986+
namespace Patch {
31987+
namespace Parameters {
31988+
export type Path = {
31989+
contributorId: string;
31990+
};
31991+
31992+
export interface RequestBody {
31993+
contactPersonUserId?: string;
31994+
descriptions?: MittwaldAPIV2.Components.Schemas.MarketplaceLocalizedDescription;
31995+
deviatingContractOwner?: MittwaldAPIV2.Components.Schemas.MarketplaceContractOwner;
31996+
deviatingName?: string;
31997+
deviatingSupportInformation?: MittwaldAPIV2.Components.Schemas.MarketplaceSupportMeta;
31998+
homepage?: string;
31999+
imprint?: MittwaldAPIV2.Components.Schemas.MarketplaceContributorImprint;
32000+
}
32001+
32002+
export type Header =
32003+
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
32004+
32005+
export type Query = {};
32006+
}
32007+
namespace Responses {
32008+
namespace $200 {
32009+
namespace Content {
32010+
export type ApplicationJson =
32011+
MittwaldAPIV2.Components.Schemas.MarketplaceOwnContributor;
32012+
}
32013+
}
32014+
32015+
namespace $400 {
32016+
namespace Content {
32017+
export interface ApplicationJson {
32018+
[k: string]: unknown;
32019+
}
32020+
}
32021+
}
32022+
32023+
namespace $404 {
32024+
namespace Content {
32025+
export interface ApplicationJson {
32026+
[k: string]: unknown;
32027+
}
32028+
}
32029+
}
32030+
32031+
namespace $429 {
32032+
namespace Content {
32033+
export interface ApplicationJson {
32034+
[k: string]: unknown;
32035+
}
32036+
}
32037+
}
32038+
32039+
namespace Default {
32040+
namespace Content {
32041+
export interface ApplicationJson {
32042+
[k: string]: unknown;
32043+
}
32044+
}
32045+
}
32046+
}
32047+
}
3196932048
}
3197032049

3197132050
namespace V2ExtensionInstancesExtensionInstanceIdActionsEnable {

0 commit comments

Comments
 (0)