@commercelayer/sdk 6.53.0 → 6.54.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.
package/lib/index.d.mts CHANGED
@@ -5162,7 +5162,7 @@ type SkuListRel$9 = ResourceRel & {
5162
5162
  type TagRel$h = ResourceRel & {
5163
5163
  type: TagType;
5164
5164
  };
5165
- type BundleSort = Pick<Bundle, 'id' | 'code' | 'currency_code' | 'price_amount_cents' | 'compare_at_amount_cents'> & ResourceSort;
5165
+ type BundleSort = Pick<Bundle, 'id' | 'code' | 'name' | 'currency_code' | 'price_amount_cents' | 'compare_at_amount_cents'> & ResourceSort;
5166
5166
  interface Bundle extends Resource {
5167
5167
  readonly type: BundleType;
5168
5168
  /**
@@ -6194,6 +6194,11 @@ interface ExternalPromotion extends Resource {
6194
6194
  * @example ```112```
6195
6195
  */
6196
6196
  weight?: number | null;
6197
+ /**
6198
+ * The total number of coupons created for this promotion.
6199
+ * @example ```2```
6200
+ */
6201
+ coupons_count?: number | null;
6197
6202
  /**
6198
6203
  * Time at which this resource was disabled.
6199
6204
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -6496,6 +6501,11 @@ interface FixedAmountPromotion extends Resource {
6496
6501
  * @example ```112```
6497
6502
  */
6498
6503
  weight?: number | null;
6504
+ /**
6505
+ * The total number of coupons created for this promotion.
6506
+ * @example ```2```
6507
+ */
6508
+ coupons_count?: number | null;
6499
6509
  /**
6500
6510
  * Time at which this resource was disabled.
6501
6511
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7007,6 +7017,11 @@ interface FixedPricePromotion extends Resource {
7007
7017
  * @example ```112```
7008
7018
  */
7009
7019
  weight?: number | null;
7020
+ /**
7021
+ * The total number of coupons created for this promotion.
7022
+ * @example ```2```
7023
+ */
7024
+ coupons_count?: number | null;
7010
7025
  /**
7011
7026
  * Time at which this resource was disabled.
7012
7027
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7352,6 +7367,11 @@ interface FreeGiftPromotion extends Resource {
7352
7367
  * @example ```112```
7353
7368
  */
7354
7369
  weight?: number | null;
7370
+ /**
7371
+ * The total number of coupons created for this promotion.
7372
+ * @example ```2```
7373
+ */
7374
+ coupons_count?: number | null;
7355
7375
  /**
7356
7376
  * Time at which this resource was disabled.
7357
7377
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7679,6 +7699,11 @@ interface BuyXPayYPromotion extends Resource {
7679
7699
  * @example ```112```
7680
7700
  */
7681
7701
  weight?: number | null;
7702
+ /**
7703
+ * The total number of coupons created for this promotion.
7704
+ * @example ```2```
7705
+ */
7706
+ coupons_count?: number | null;
7682
7707
  /**
7683
7708
  * Time at which this resource was disabled.
7684
7709
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -8068,6 +8093,11 @@ interface FreeShippingPromotion extends Resource {
8068
8093
  * @example ```112```
8069
8094
  */
8070
8095
  weight?: number | null;
8096
+ /**
8097
+ * The total number of coupons created for this promotion.
8098
+ * @example ```2```
8099
+ */
8100
+ coupons_count?: number | null;
8071
8101
  /**
8072
8102
  * Time at which this resource was disabled.
8073
8103
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -8411,6 +8441,11 @@ interface PercentageDiscountPromotion extends Resource {
8411
8441
  * @example ```112```
8412
8442
  */
8413
8443
  weight?: number | null;
8444
+ /**
8445
+ * The total number of coupons created for this promotion.
8446
+ * @example ```2```
8447
+ */
8448
+ coupons_count?: number | null;
8414
8449
  /**
8415
8450
  * Time at which this resource was disabled.
8416
8451
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -13369,6 +13404,11 @@ interface Promotion extends Resource {
13369
13404
  * @example ```112```
13370
13405
  */
13371
13406
  weight?: number | null;
13407
+ /**
13408
+ * The total number of coupons created for this promotion.
13409
+ * @example ```2```
13410
+ */
13411
+ coupons_count?: number | null;
13372
13412
  /**
13373
13413
  * Time at which this resource was disabled.
13374
13414
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -18175,7 +18215,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
18175
18215
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
18176
18216
  declare class CommerceLayerClient {
18177
18217
  #private;
18178
- readonly openApiSchemaVersion = "7.9.12";
18218
+ readonly openApiSchemaVersion = "7.9.13";
18179
18219
  constructor(config: CommerceLayerInitConfig);
18180
18220
  get addresses(): Addresses;
18181
18221
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -5162,7 +5162,7 @@ type SkuListRel$9 = ResourceRel & {
5162
5162
  type TagRel$h = ResourceRel & {
5163
5163
  type: TagType;
5164
5164
  };
5165
- type BundleSort = Pick<Bundle, 'id' | 'code' | 'currency_code' | 'price_amount_cents' | 'compare_at_amount_cents'> & ResourceSort;
5165
+ type BundleSort = Pick<Bundle, 'id' | 'code' | 'name' | 'currency_code' | 'price_amount_cents' | 'compare_at_amount_cents'> & ResourceSort;
5166
5166
  interface Bundle extends Resource {
5167
5167
  readonly type: BundleType;
5168
5168
  /**
@@ -6194,6 +6194,11 @@ interface ExternalPromotion extends Resource {
6194
6194
  * @example ```112```
6195
6195
  */
6196
6196
  weight?: number | null;
6197
+ /**
6198
+ * The total number of coupons created for this promotion.
6199
+ * @example ```2```
6200
+ */
6201
+ coupons_count?: number | null;
6197
6202
  /**
6198
6203
  * Time at which this resource was disabled.
6199
6204
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -6496,6 +6501,11 @@ interface FixedAmountPromotion extends Resource {
6496
6501
  * @example ```112```
6497
6502
  */
6498
6503
  weight?: number | null;
6504
+ /**
6505
+ * The total number of coupons created for this promotion.
6506
+ * @example ```2```
6507
+ */
6508
+ coupons_count?: number | null;
6499
6509
  /**
6500
6510
  * Time at which this resource was disabled.
6501
6511
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7007,6 +7017,11 @@ interface FixedPricePromotion extends Resource {
7007
7017
  * @example ```112```
7008
7018
  */
7009
7019
  weight?: number | null;
7020
+ /**
7021
+ * The total number of coupons created for this promotion.
7022
+ * @example ```2```
7023
+ */
7024
+ coupons_count?: number | null;
7010
7025
  /**
7011
7026
  * Time at which this resource was disabled.
7012
7027
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7352,6 +7367,11 @@ interface FreeGiftPromotion extends Resource {
7352
7367
  * @example ```112```
7353
7368
  */
7354
7369
  weight?: number | null;
7370
+ /**
7371
+ * The total number of coupons created for this promotion.
7372
+ * @example ```2```
7373
+ */
7374
+ coupons_count?: number | null;
7355
7375
  /**
7356
7376
  * Time at which this resource was disabled.
7357
7377
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7679,6 +7699,11 @@ interface BuyXPayYPromotion extends Resource {
7679
7699
  * @example ```112```
7680
7700
  */
7681
7701
  weight?: number | null;
7702
+ /**
7703
+ * The total number of coupons created for this promotion.
7704
+ * @example ```2```
7705
+ */
7706
+ coupons_count?: number | null;
7682
7707
  /**
7683
7708
  * Time at which this resource was disabled.
7684
7709
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -8068,6 +8093,11 @@ interface FreeShippingPromotion extends Resource {
8068
8093
  * @example ```112```
8069
8094
  */
8070
8095
  weight?: number | null;
8096
+ /**
8097
+ * The total number of coupons created for this promotion.
8098
+ * @example ```2```
8099
+ */
8100
+ coupons_count?: number | null;
8071
8101
  /**
8072
8102
  * Time at which this resource was disabled.
8073
8103
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -8411,6 +8441,11 @@ interface PercentageDiscountPromotion extends Resource {
8411
8441
  * @example ```112```
8412
8442
  */
8413
8443
  weight?: number | null;
8444
+ /**
8445
+ * The total number of coupons created for this promotion.
8446
+ * @example ```2```
8447
+ */
8448
+ coupons_count?: number | null;
8414
8449
  /**
8415
8450
  * Time at which this resource was disabled.
8416
8451
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -13369,6 +13404,11 @@ interface Promotion extends Resource {
13369
13404
  * @example ```112```
13370
13405
  */
13371
13406
  weight?: number | null;
13407
+ /**
13408
+ * The total number of coupons created for this promotion.
13409
+ * @example ```2```
13410
+ */
13411
+ coupons_count?: number | null;
13372
13412
  /**
13373
13413
  * Time at which this resource was disabled.
13374
13414
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -18175,7 +18215,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
18175
18215
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
18176
18216
  declare class CommerceLayerClient {
18177
18217
  #private;
18178
- readonly openApiSchemaVersion = "7.9.12";
18218
+ readonly openApiSchemaVersion = "7.9.13";
18179
18219
  constructor(config: CommerceLayerInitConfig);
18180
18220
  get addresses(): Addresses;
18181
18221
  get adjustments(): Adjustments;