@mittwald/api-client 4.237.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.236.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: {
@@ -4234,6 +4234,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
4234
4234
  }, import("@mittwald/api-client-commons").Response<{
4235
4235
  contractId?: string | undefined;
4236
4236
  contractItemId?: string | undefined;
4237
+ explanation?: string | undefined;
4237
4238
  reason?: string | undefined;
4238
4239
  terminationTargetDate?: string | undefined;
4239
4240
  }, 201, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -4265,6 +4266,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
4265
4266
  }, import("@mittwald/api-client-commons").Response<{
4266
4267
  contractId?: string | undefined;
4267
4268
  contractItemId?: string | undefined;
4269
+ explanation?: string | undefined;
4268
4270
  reason?: string | undefined;
4269
4271
  terminationTargetDate?: string | undefined;
4270
4272
  }, 201, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -4396,6 +4398,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
4396
4398
  terminateContract: (request: {
4397
4399
  contractId: string;
4398
4400
  data?: {
4401
+ explanation?: string | undefined;
4399
4402
  reason?: string | undefined;
4400
4403
  terminationTargetDate?: string | undefined;
4401
4404
  } | undefined;
@@ -4405,6 +4408,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
4405
4408
  } | undefined;
4406
4409
  }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
4407
4410
  data: {
4411
+ explanation?: string | undefined;
4408
4412
  reason?: string | undefined;
4409
4413
  terminationTargetDate?: string | undefined;
4410
4414
  };
@@ -4424,6 +4428,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
4424
4428
  }>;
4425
4429
  }, import("@mittwald/api-client-commons").Response<{
4426
4430
  contractId?: string | undefined;
4431
+ explanation?: string | undefined;
4427
4432
  itemsScheduledForTermination?: string[] | undefined;
4428
4433
  reason?: string | undefined;
4429
4434
  terminationTargetDate?: string | undefined;
@@ -4435,6 +4440,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
4435
4440
  [x: string]: unknown;
4436
4441
  }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
4437
4442
  data: {
4443
+ explanation?: string | undefined;
4438
4444
  reason?: string | undefined;
4439
4445
  terminationTargetDate?: string | undefined;
4440
4446
  };
@@ -4454,6 +4460,7 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
4454
4460
  }>;
4455
4461
  }, import("@mittwald/api-client-commons").Response<{
4456
4462
  contractId?: string | undefined;
4463
+ explanation?: string | undefined;
4457
4464
  itemsScheduledForTermination?: string[] | undefined;
4458
4465
  reason?: string | undefined;
4459
4466
  terminationTargetDate?: string | undefined;
@@ -8919,6 +8926,9 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
8919
8926
  interactionRequired: boolean;
8920
8927
  status: "notStarted" | "pending" | "active" | "terminationPending";
8921
8928
  terminationTargetDate?: string | undefined;
8929
+ variantDescription?: string | undefined;
8930
+ variantKey?: string | undefined;
8931
+ variantName?: string | undefined;
8922
8932
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
8923
8933
  [x: string]: unknown;
8924
8934
  }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -8945,6 +8955,9 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
8945
8955
  interactionRequired: boolean;
8946
8956
  status: "notStarted" | "pending" | "active" | "terminationPending";
8947
8957
  terminationTargetDate?: string | undefined;
8958
+ variantDescription?: string | undefined;
8959
+ variantKey?: string | undefined;
8960
+ variantName?: string | undefined;
8948
8961
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
8949
8962
  [x: string]: unknown;
8950
8963
  }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -8955,18 +8968,25 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
8955
8968
  /** Update or Create Contract for existing Extension Instances. */
8956
8969
  extensionUpdateExtensionInstanceContract: (request: {
8957
8970
  extensionInstanceId: string;
8971
+ data?: {
8972
+ variantKey?: string | undefined;
8973
+ } | undefined;
8958
8974
  headers?: {
8959
8975
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
8960
8976
  "x-access-token"?: string | undefined;
8961
8977
  } | undefined;
8962
8978
  }, opts?: import("@mittwald/api-client-commons").RequestOptions<import("@mittwald/api-client-commons").OpenAPIOperation<{
8963
- headers?: Partial<{
8964
- [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
8965
- }>;
8979
+ data: {
8980
+ variantKey?: string | undefined;
8981
+ };
8966
8982
  } & {
8967
8983
  pathParameters: {
8968
8984
  extensionInstanceId: string;
8969
8985
  };
8986
+ } & {
8987
+ headers?: Partial<{
8988
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
8989
+ }>;
8970
8990
  } & {
8971
8991
  headers: {
8972
8992
  "x-access-token"?: string | undefined;
@@ -8980,13 +9000,17 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
8980
9000
  }, 404, "application/json"> | import("@mittwald/api-client-commons").Response<{
8981
9001
  [x: string]: unknown;
8982
9002
  }, 429, "application/json">>> | undefined) => import("@mittwald/api-client-commons").ResponsePromise<import("@mittwald/api-client-commons").OpenAPIOperation<{
8983
- headers?: Partial<{
8984
- [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
8985
- }>;
9003
+ data: {
9004
+ variantKey?: string | undefined;
9005
+ };
8986
9006
  } & {
8987
9007
  pathParameters: {
8988
9008
  extensionInstanceId: string;
8989
9009
  };
9010
+ } & {
9011
+ headers?: Partial<{
9012
+ [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
9013
+ }>;
8990
9014
  } & {
8991
9015
  headers: {
8992
9016
  "x-access-token"?: string | undefined;
@@ -10227,27 +10251,45 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
10227
10251
  }, 429, "application/json">>>;
10228
10252
  /** Creates or Updates Pricing for an Extension. */
10229
10253
  extensionUpdateExtensionPricing: (request: {
10254
+ data: {
10255
+ priceInCents: number;
10256
+ dryRun?: boolean | undefined;
10257
+ };
10230
10258
  extensionId: string;
10231
10259
  contributorId: string;
10232
- data?: {
10233
- dryRun?: boolean | undefined;
10234
- priceInCents?: number | undefined;
10260
+ headers?: {
10261
+ [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
10262
+ "x-access-token"?: string | undefined;
10235
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;
10236
10273
  headers?: {
10237
10274
  [x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
10238
10275
  "x-access-token"?: string | undefined;
10239
10276
  } | undefined;
10240
- }, 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<(({
10241
10278
  data: {
10242
10279
  dryRun?: boolean | undefined;
10243
- priceInCents?: number | undefined;
10280
+ priceInCents: number;
10244
10281
  };
10245
- } & {
10282
+ } | {
10283
+ data: {
10284
+ dryRun?: boolean | undefined;
10285
+ pricePlan: import("./types.js").MittwaldAPIV2.Components.Schemas.ExtensionPricePlan;
10286
+ };
10287
+ }) & {
10246
10288
  pathParameters: {
10247
10289
  extensionId: string;
10248
10290
  contributorId: string;
10249
10291
  };
10250
- } & {
10292
+ }) & {
10251
10293
  headers?: Partial<{
10252
10294
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
10253
10295
  }>;
@@ -10258,15 +10300,16 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
10258
10300
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
10259
10301
  }>;
10260
10302
  }, import("@mittwald/api-client-commons").Response<{
10261
- extensionId?: string | undefined;
10262
- priceChangeConsequence?: {
10303
+ extensionId: string;
10304
+ nextPossiblePriceChange?: string | undefined;
10305
+ priceChangeConsequence: {
10263
10306
  contributorConsequence: "NONE" | "EDIT_BLOCK";
10264
10307
  globalCustomerConsequence: "NONE" | "INFO" | "CONFIRM_REQUIRED";
10265
10308
  variantConsequences: {
10266
10309
  consequence?: "NONE" | "INFO" | "CONFIRM_REQUIRED";
10267
10310
  variantKey?: string;
10268
10311
  }[];
10269
- } | undefined;
10312
+ };
10270
10313
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
10271
10314
  [x: string]: unknown;
10272
10315
  }, 400, "application/json"> | import("@mittwald/api-client-commons").Response<{
@@ -10275,17 +10318,22 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
10275
10318
  [x: string]: unknown;
10276
10319
  }, 412, "application/json"> | import("@mittwald/api-client-commons").Response<{
10277
10320
  [x: string]: unknown;
10278
- }, 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<(({
10279
10322
  data: {
10280
10323
  dryRun?: boolean | undefined;
10281
- priceInCents?: number | undefined;
10324
+ priceInCents: number;
10282
10325
  };
10283
- } & {
10326
+ } | {
10327
+ data: {
10328
+ dryRun?: boolean | undefined;
10329
+ pricePlan: import("./types.js").MittwaldAPIV2.Components.Schemas.ExtensionPricePlan;
10330
+ };
10331
+ }) & {
10284
10332
  pathParameters: {
10285
10333
  extensionId: string;
10286
10334
  contributorId: string;
10287
10335
  };
10288
- } & {
10336
+ }) & {
10289
10337
  headers?: Partial<{
10290
10338
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
10291
10339
  }>;
@@ -10296,15 +10344,16 @@ export declare class MittwaldAPIV2Client extends ApiClientBase {
10296
10344
  [TKey: string]: (string | number | boolean) | (string | number | boolean)[];
10297
10345
  }>;
10298
10346
  }, import("@mittwald/api-client-commons").Response<{
10299
- extensionId?: string | undefined;
10300
- priceChangeConsequence?: {
10347
+ extensionId: string;
10348
+ nextPossiblePriceChange?: string | undefined;
10349
+ priceChangeConsequence: {
10301
10350
  contributorConsequence: "NONE" | "EDIT_BLOCK";
10302
10351
  globalCustomerConsequence: "NONE" | "INFO" | "CONFIRM_REQUIRED";
10303
10352
  variantConsequences: {
10304
10353
  consequence?: "NONE" | "INFO" | "CONFIRM_REQUIRED";
10305
10354
  variantKey?: string;
10306
10355
  }[];
10307
- } | undefined;
10356
+ };
10308
10357
  }, 200, "application/json"> | import("@mittwald/api-client-commons").Response<{
10309
10358
  [x: string]: unknown;
10310
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;
@@ -2385,6 +2388,7 @@ export declare namespace MittwaldAPIV2 {
2385
2388
  * Indicates whether the User is allowed to cancel the Termination.
2386
2389
  */
2387
2390
  cancellationForbidden?: boolean;
2391
+ explanation?: string;
2388
2392
  reason?: string;
2389
2393
  scheduledAtDate: string;
2390
2394
  scheduledByUserId?: string;
@@ -5364,6 +5368,37 @@ export declare namespace MittwaldAPIV2 {
5364
5368
  };
5365
5369
  userId: string;
5366
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
+ }
5367
5402
  interface CommonsAddress {
5368
5403
  street: string;
5369
5404
  houseNumber: string;
@@ -8766,6 +8801,7 @@ export declare namespace MittwaldAPIV2 {
8766
8801
  interface ApplicationJson {
8767
8802
  contractId?: string;
8768
8803
  contractItemId?: string;
8804
+ explanation?: string;
8769
8805
  reason?: string;
8770
8806
  terminationTargetDate?: string;
8771
8807
  }
@@ -8909,6 +8945,7 @@ export declare namespace MittwaldAPIV2 {
8909
8945
  contractId: string;
8910
8946
  };
8911
8947
  interface RequestBody {
8948
+ explanation?: string;
8912
8949
  /**
8913
8950
  * A reason for the termination can be given as plain text.
8914
8951
  */
@@ -8926,6 +8963,7 @@ export declare namespace MittwaldAPIV2 {
8926
8963
  namespace Content {
8927
8964
  interface ApplicationJson {
8928
8965
  contractId?: string;
8966
+ explanation?: string;
8929
8967
  itemsScheduledForTermination?: string[];
8930
8968
  reason?: string;
8931
8969
  terminationTargetDate?: string;
@@ -16568,6 +16606,10 @@ export declare namespace MittwaldAPIV2 {
16568
16606
  extensionInstanceId: string;
16569
16607
  };
16570
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;
16571
16613
  }
16572
16614
  type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
16573
16615
  type Query = {};
@@ -17489,7 +17531,7 @@ export declare namespace MittwaldAPIV2 {
17489
17531
  extensionId: string;
17490
17532
  contributorId: string;
17491
17533
  };
17492
- interface RequestBody {
17534
+ type RequestBody = {
17493
17535
  /**
17494
17536
  * If set to true, the request will be validated but not executed.
17495
17537
  */
@@ -17497,8 +17539,14 @@ export declare namespace MittwaldAPIV2 {
17497
17539
  /**
17498
17540
  * Price in cents.
17499
17541
  */
17500
- priceInCents?: number;
17501
- }
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
+ };
17502
17550
  type Header = {} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
17503
17551
  type Query = {};
17504
17552
  }
@@ -17506,8 +17554,15 @@ export declare namespace MittwaldAPIV2 {
17506
17554
  namespace $200 {
17507
17555
  namespace Content {
17508
17556
  interface ApplicationJson {
17509
- extensionId?: string;
17510
- 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: {
17511
17566
  /**
17512
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.
17513
17568
  *
@@ -1 +1 @@
1
- export declare const MittwaldAPIClientVersion = '4.236.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.237.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": "9584ac15ebf21dcf30c0c648c707c10a827dc623"
83
+ "gitHead": "7367fb79dbf9d6816140fe24c54dc2f6f7d075c3"
84
84
  }