@mittwald/api-client 4.238.0 → 4.239.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export const MittwaldAPIClientVersion = '4.237.0';
1
+ export const MittwaldAPIClientVersion = '4.238.0';
@@ -1111,6 +1111,9 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
1111
1111
  interactionRequired: boolean;
1112
1112
  status: "notStarted" | "pending" | "active" | "terminationPending";
1113
1113
  terminationTargetDate?: string | undefined;
1114
+ variantDescription?: string | undefined;
1115
+ variantKey?: string | undefined;
1116
+ variantName?: string | undefined;
1114
1117
  }>;
1115
1118
  /** Get the ExtensionInstance of a specific customer and extension, if existing. */
1116
1119
  extensionGetExtensionInstanceForCustomer: (conf: {
@@ -8926,6 +8926,9 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
8926
8926
  interactionRequired: boolean;
8927
8927
  status: "notStarted" | "pending" | "active" | "terminationPending";
8928
8928
  terminationTargetDate?: string | undefined;
8929
+ variantDescription?: string | undefined;
8930
+ variantKey?: string | undefined;
8931
+ variantName?: string | undefined;
8929
8932
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
8930
8933
  [x: string]: unknown;
8931
8934
  }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -8952,6 +8955,9 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
8952
8955
  interactionRequired: boolean;
8953
8956
  status: "notStarted" | "pending" | "active" | "terminationPending";
8954
8957
  terminationTargetDate?: string | undefined;
8958
+ variantDescription?: string | undefined;
8959
+ variantKey?: string | undefined;
8960
+ variantName?: string | undefined;
8955
8961
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
8956
8962
  [x: string]: unknown;
8957
8963
  }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -8962,18 +8968,25 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
8962
8968
  /** Update or Create Contract for existing Extension Instances. */
8963
8969
  extensionUpdateExtensionInstanceContract: (request: {
8964
8970
  extensionInstanceId: string;
8971
+ data?: {
8972
+ variantKey?: string | undefined;
8973
+ } | undefined;
8965
8974
  headers?: {
8966
8975
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
8967
8976
  "x-access-token"?: string | undefined;
8968
8977
  } | undefined;
8969
8978
  }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
8970
- headers?: Partial<{
8971
- [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
8972
- }>;
8979
+ data: {
8980
+ variantKey?: string | undefined;
8981
+ };
8973
8982
  } & {
8974
8983
  pathParameters: {
8975
8984
  extensionInstanceId: string;
8976
8985
  };
8986
+ } & {
8987
+ headers?: Partial<{
8988
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
8989
+ }>;
8977
8990
  } & {
8978
8991
  headers: {
8979
8992
  "x-access-token"?: string | undefined;
@@ -8987,13 +9000,17 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
8987
9000
  }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
8988
9001
  [x: string]: unknown;
8989
9002
  }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
8990
- headers?: Partial<{
8991
- [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
8992
- }>;
9003
+ data: {
9004
+ variantKey?: string | undefined;
9005
+ };
8993
9006
  } & {
8994
9007
  pathParameters: {
8995
9008
  extensionInstanceId: string;
8996
9009
  };
9010
+ } & {
9011
+ headers?: Partial<{
9012
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
9013
+ }>;
8997
9014
  } & {
8998
9015
  headers: {
8999
9016
  "x-access-token"?: string | undefined;
@@ -10234,27 +10251,45 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
10234
10251
  }, 429, "application/json">>>;
10235
10252
  /** Creates or Updates Pricing for an Extension. */
10236
10253
  extensionUpdateExtensionPricing: (request: {
10254
+ data: {
10255
+ priceInCents: number;
10256
+ dryRun?: boolean | undefined;
10257
+ };
10237
10258
  extensionId: string;
10238
10259
  contributorId: string;
10239
- data?: {
10240
- dryRun?: boolean | undefined;
10241
- priceInCents?: number | undefined;
10260
+ headers?: {
10261
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
10262
+ "x-access-token"?: string | undefined;
10242
10263
  } | undefined;
10264
+ } | {
10265
+ data: {
10266
+ pricePlan: {
10267
+ variants: import("./types.js").MittwaldAPIV2.Components.Schemas.ExtensionVariant[];
10268
+ };
10269
+ dryRun?: boolean | undefined;
10270
+ };
10271
+ extensionId: string;
10272
+ contributorId: string;
10243
10273
  headers?: {
10244
10274
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
10245
10275
  "x-access-token"?: string | undefined;
10246
10276
  } | undefined;
10247
- }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
10277
+ }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<(({
10248
10278
  data: {
10249
10279
  dryRun?: boolean | undefined;
10250
- priceInCents?: number | undefined;
10280
+ priceInCents: number;
10251
10281
  };
10252
- } & {
10282
+ } | {
10283
+ data: {
10284
+ dryRun?: boolean | undefined;
10285
+ pricePlan: import("./types.js").MittwaldAPIV2.Components.Schemas.ExtensionPricePlan;
10286
+ };
10287
+ }) & {
10253
10288
  pathParameters: {
10254
10289
  extensionId: string;
10255
10290
  contributorId: string;
10256
10291
  };
10257
- } & {
10292
+ }) & {
10258
10293
  headers?: Partial<{
10259
10294
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
10260
10295
  }>;
@@ -10265,15 +10300,16 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
10265
10300
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
10266
10301
  }>;
10267
10302
  }, import("@mittwald/api-client-commons").Response<{
10268
- extensionId?: string | undefined;
10269
- priceChangeConsequence?: {
10303
+ extensionId: string;
10304
+ nextPossiblePriceChange?: string | undefined;
10305
+ priceChangeConsequence: {
10270
10306
  contributorConsequence: "NONE" | "EDIT_BLOCK";
10271
10307
  globalCustomerConsequence: "NONE" | "INFO" | "CONFIRM_REQUIRED";
10272
10308
  variantConsequences: {
10273
10309
  consequence?: "NONE" | "INFO" | "CONFIRM_REQUIRED";
10274
10310
  variantKey?: string;
10275
10311
  }[];
10276
- } | undefined;
10312
+ };
10277
10313
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
10278
10314
  [x: string]: unknown;
10279
10315
  }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -10282,17 +10318,22 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
10282
10318
  [x: string]: unknown;
10283
10319
  }, 412, "application/json"> | import("@mittwald/api-client-commons").Response<{
10284
10320
  [x: string]: unknown;
10285
- }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
10321
+ }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<(({
10286
10322
  data: {
10287
10323
  dryRun?: boolean | undefined;
10288
- priceInCents?: number | undefined;
10324
+ priceInCents: number;
10289
10325
  };
10290
- } & {
10326
+ } | {
10327
+ data: {
10328
+ dryRun?: boolean | undefined;
10329
+ pricePlan: import("./types.js").MittwaldAPIV2.Components.Schemas.ExtensionPricePlan;
10330
+ };
10331
+ }) & {
10291
10332
  pathParameters: {
10292
10333
  extensionId: string;
10293
10334
  contributorId: string;
10294
10335
  };
10295
- } & {
10336
+ }) & {
10296
10337
  headers?: Partial<{
10297
10338
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
10298
10339
  }>;
@@ -10303,15 +10344,16 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
10303
10344
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
10304
10345
  }>;
10305
10346
  }, import("@mittwald/api-client-commons").Response<{
10306
- extensionId?: string | undefined;
10307
- priceChangeConsequence?: {
10347
+ extensionId: string;
10348
+ nextPossiblePriceChange?: string | undefined;
10349
+ priceChangeConsequence: {
10308
10350
  contributorConsequence: "NONE" | "EDIT_BLOCK";
10309
10351
  globalCustomerConsequence: "NONE" | "INFO" | "CONFIRM_REQUIRED";
10310
10352
  variantConsequences: {
10311
10353
  consequence?: "NONE" | "INFO" | "CONFIRM_REQUIRED";
10312
10354
  variantKey?: string;
10313
10355
  }[];
10314
- } | undefined;
10356
+ };
10315
10357
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
10316
10358
  [x: string]: unknown;
10317
10359
  }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -2050,6 +2050,9 @@ export declare namespace MittwaldAPIV2 {
2050
2050
  interactionRequired: boolean;
2051
2051
  status: "notStarted" | "pending" | "active" | "terminationPending";
2052
2052
  terminationTargetDate?: string;
2053
+ variantDescription?: string;
2054
+ variantKey?: string;
2055
+ variantName?: string;
2053
2056
  }
2054
2057
  interface ContainerCreateRegistry {
2055
2058
  credentials?: MittwaldAPIV2.Components.Schemas.ContainerSetRegistryCredentials;
@@ -5365,6 +5368,37 @@ export declare namespace MittwaldAPIV2 {
5365
5368
  };
5366
5369
  userId: string;
5367
5370
  }
5371
+ /**
5372
+ * PricePlan with Variants.
5373
+ */
5374
+ interface ExtensionPricePlan {
5375
+ variants: MittwaldAPIV2.Components.Schemas.ExtensionVariant[];
5376
+ }
5377
+ interface ExtensionVariant {
5378
+ /**
5379
+ * Description of Variant.
5380
+ */
5381
+ description?: string;
5382
+ /**
5383
+ * DescriptionChangeType defines how the description change should be handled. Values:
5384
+ * - FEATURE_SET_MODIFIED: The users have to confirm to the new contract details equal as price changes.
5385
+ * - FEATURE_SET_UNCHANGED: The changes are only wording updates and do not impact the contract details, so no confirm is required.
5386
+ *
5387
+ */
5388
+ descriptionChangeType?: "FEATURE_SET_MODIFIED" | "FEATURE_SET_UNCHANGED";
5389
+ /**
5390
+ * Key that needs to be unique in Variant.
5391
+ */
5392
+ key: string;
5393
+ /**
5394
+ * Name of Variant.
5395
+ */
5396
+ name?: string;
5397
+ /**
5398
+ * Price in cents.
5399
+ */
5400
+ priceInCents: number;
5401
+ }
5368
5402
  interface CommonsAddress {
5369
5403
  street: string;
5370
5404
  houseNumber: string;
@@ -16572,6 +16606,10 @@ export declare namespace MittwaldAPIV2 {
16572
16606
  extensionInstanceId: string;
16573
16607
  };
16574
16608
  interface RequestBody {
16609
+ /**
16610
+ * The Variant Key of the selected Variant of the Extension. This is only required if the Extension has multiple Variants.
16611
+ */
16612
+ variantKey?: string;
16575
16613
  }
16576
16614
  type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
16577
16615
  type Query = {};
@@ -17493,7 +17531,7 @@ export declare namespace MittwaldAPIV2 {
17493
17531
  extensionId: string;
17494
17532
  contributorId: string;
17495
17533
  };
17496
- interface RequestBody {
17534
+ type RequestBody = {
17497
17535
  /**
17498
17536
  * If set to true, the request will be validated but not executed.
17499
17537
  */
@@ -17501,8 +17539,14 @@ export declare namespace MittwaldAPIV2 {
17501
17539
  /**
17502
17540
  * Price in cents.
17503
17541
  */
17504
- priceInCents?: number;
17505
- }
17542
+ priceInCents: number;
17543
+ } | {
17544
+ /**
17545
+ * If set to true, the request will be validated but not executed.
17546
+ */
17547
+ dryRun?: boolean;
17548
+ pricePlan: MittwaldAPIV2.Components.Schemas.ExtensionPricePlan;
17549
+ };
17506
17550
  type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
17507
17551
  type Query = {};
17508
17552
  }
@@ -17510,8 +17554,15 @@ export declare namespace MittwaldAPIV2 {
17510
17554
  namespace $200 {
17511
17555
  namespace Content {
17512
17556
  interface ApplicationJson {
17513
- extensionId?: string;
17514
- priceChangeConsequence?: {
17557
+ /**
17558
+ * The ID of the Extension.
17559
+ */
17560
+ extensionId: string;
17561
+ /**
17562
+ * The time until which the contributor is blocked from changing the price again.
17563
+ */
17564
+ nextPossiblePriceChange?: string;
17565
+ priceChangeConsequence: {
17515
17566
  /**
17516
17567
  * Description of the consequence for the Extension from the perspective of the contributor. Values: * "NONE": No consequence. * "EDIT_BLOCK": The Extension will be blocked for editing by the contributor for 30 days.
17517
17568
  *
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.237.0';
1
+ export declare const MittwaldAPIClientVersion = '4.238.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/api-client",
3
- "version": "4.238.0",
3
+ "version": "4.239.0",
4
4
  "author": "Mittwald CM Service GmbH & Co. KG <opensource@mittwald.de>",
5
5
  "type": "module",
6
6
  "description": "Auto-generated client for the mittwald API",
@@ -80,5 +80,5 @@
80
80
  "optional": true
81
81
  }
82
82
  },
83
- "gitHead": "0af4310b03b0b69fe5c3c95a1048008ba7136e4f"
83
+ "gitHead": "7367fb79dbf9d6816140fe24c54dc2f6f7d075c3"
84
84
  }