@commercelayer/sdk 6.44.0 → 6.45.1

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
@@ -5982,6 +5982,11 @@ interface ExternalPromotion extends Resource {
5982
5982
  * @example ```"pending"```
5983
5983
  */
5984
5984
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
5985
+ /**
5986
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
5987
+ * @example ```112```
5988
+ */
5989
+ weight?: number | null;
5985
5990
  /**
5986
5991
  * Time at which this resource was disabled.
5987
5992
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -6258,6 +6263,11 @@ interface FixedAmountPromotion extends Resource {
6258
6263
  * @example ```"pending"```
6259
6264
  */
6260
6265
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
6266
+ /**
6267
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
6268
+ * @example ```112```
6269
+ */
6270
+ weight?: number | null;
6261
6271
  /**
6262
6272
  * Time at which this resource was disabled.
6263
6273
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -6754,6 +6764,11 @@ interface FixedPricePromotion extends Resource {
6754
6764
  * @example ```"pending"```
6755
6765
  */
6756
6766
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
6767
+ /**
6768
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
6769
+ * @example ```112```
6770
+ */
6771
+ weight?: number | null;
6757
6772
  /**
6758
6773
  * Time at which this resource was disabled.
6759
6774
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7086,6 +7101,11 @@ interface FreeGiftPromotion extends Resource {
7086
7101
  * @example ```"pending"```
7087
7102
  */
7088
7103
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
7104
+ /**
7105
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
7106
+ * @example ```112```
7107
+ */
7108
+ weight?: number | null;
7089
7109
  /**
7090
7110
  * Time at which this resource was disabled.
7091
7111
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7400,6 +7420,11 @@ interface BuyXPayYPromotion extends Resource {
7400
7420
  * @example ```"pending"```
7401
7421
  */
7402
7422
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
7423
+ /**
7424
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
7425
+ * @example ```112```
7426
+ */
7427
+ weight?: number | null;
7403
7428
  /**
7404
7429
  * Time at which this resource was disabled.
7405
7430
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7776,6 +7801,11 @@ interface FreeShippingPromotion extends Resource {
7776
7801
  * @example ```"pending"```
7777
7802
  */
7778
7803
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
7804
+ /**
7805
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
7806
+ * @example ```112```
7807
+ */
7808
+ weight?: number | null;
7779
7809
  /**
7780
7810
  * Time at which this resource was disabled.
7781
7811
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -8106,6 +8136,11 @@ interface PercentageDiscountPromotion extends Resource {
8106
8136
  * @example ```"pending"```
8107
8137
  */
8108
8138
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
8139
+ /**
8140
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
8141
+ * @example ```112```
8142
+ */
8143
+ weight?: number | null;
8109
8144
  /**
8110
8145
  * Time at which this resource was disabled.
8111
8146
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -13031,6 +13066,11 @@ interface Promotion extends Resource {
13031
13066
  * @example ```"pending"```
13032
13067
  */
13033
13068
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
13069
+ /**
13070
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
13071
+ * @example ```112```
13072
+ */
13073
+ weight?: number | null;
13034
13074
  /**
13035
13075
  * Time at which this resource was disabled.
13036
13076
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -16364,7 +16404,11 @@ interface Organization extends Resource {
16364
16404
  */
16365
16405
  addresses_phone_required?: boolean | null;
16366
16406
  /**
16367
- * The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done, until the lapse is observed.
16407
+ * The minimum lapse in fraction of seconds to be observed between two consecutive shipments rebuilt. If shipments rebuilt is triggered within the minimum lapse, the update is performed, but no rebuilt is done.
16408
+ */
16409
+ orders_min_rebuild_shipments_lapse?: number | null;
16410
+ /**
16411
+ * The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done.
16368
16412
  */
16369
16413
  orders_min_refresh_lapse?: number | null;
16370
16414
  /**
@@ -16395,6 +16439,11 @@ interface Organization extends Resource {
16395
16439
  * @example ```true```
16396
16440
  */
16397
16441
  orders_invalid_coupon_errors?: boolean | null;
16442
+ /**
16443
+ * Enables raising of API errors in case the provided gift card code is invalid, default is true.
16444
+ * @example ```true```
16445
+ */
16446
+ orders_invalid_gift_card_errors?: boolean | null;
16398
16447
  /**
16399
16448
  * The maximum number of SKUs allowed for bundles, default is 10.
16400
16449
  * @example ```10```
@@ -16410,6 +16459,10 @@ interface Organization extends Resource {
16410
16459
  * @example ```40```
16411
16460
  */
16412
16461
  coupons_max_code_length?: number | null;
16462
+ /**
16463
+ * Enables matching the gift card code by its exact value, instead of by its first charachters, default is false.
16464
+ */
16465
+ gift_cards_exact_code_matching?: boolean | null;
16413
16466
  /**
16414
16467
  * The minimum length for gift card code, default is 8.
16415
16468
  * @example ```8```
@@ -16444,6 +16497,11 @@ interface Organization extends Resource {
16444
16497
  * Disables the interruption of the import in case its errors exceeds the 10% threshold, default is false.
16445
16498
  */
16446
16499
  imports_skip_errors?: boolean | null;
16500
+ /**
16501
+ * The maximum number for stock locations cutoff, default is 10.
16502
+ * @example ```10```
16503
+ */
16504
+ inventory_models_max_stock_locations_cutoff?: number | null;
16447
16505
  /**
16448
16506
  * The maximum number of active concurrent promotions allowed for your organization, default is 10.
16449
16507
  * @example ```10```
@@ -17180,7 +17238,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17180
17238
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17181
17239
  declare class CommerceLayerClient {
17182
17240
  #private;
17183
- readonly openApiSchemaVersion = "7.9.0";
17241
+ readonly openApiSchemaVersion = "7.9.3";
17184
17242
  constructor(config: CommerceLayerInitConfig);
17185
17243
  get addresses(): Addresses;
17186
17244
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -5982,6 +5982,11 @@ interface ExternalPromotion extends Resource {
5982
5982
  * @example ```"pending"```
5983
5983
  */
5984
5984
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
5985
+ /**
5986
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
5987
+ * @example ```112```
5988
+ */
5989
+ weight?: number | null;
5985
5990
  /**
5986
5991
  * Time at which this resource was disabled.
5987
5992
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -6258,6 +6263,11 @@ interface FixedAmountPromotion extends Resource {
6258
6263
  * @example ```"pending"```
6259
6264
  */
6260
6265
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
6266
+ /**
6267
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
6268
+ * @example ```112```
6269
+ */
6270
+ weight?: number | null;
6261
6271
  /**
6262
6272
  * Time at which this resource was disabled.
6263
6273
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -6754,6 +6764,11 @@ interface FixedPricePromotion extends Resource {
6754
6764
  * @example ```"pending"```
6755
6765
  */
6756
6766
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
6767
+ /**
6768
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
6769
+ * @example ```112```
6770
+ */
6771
+ weight?: number | null;
6757
6772
  /**
6758
6773
  * Time at which this resource was disabled.
6759
6774
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7086,6 +7101,11 @@ interface FreeGiftPromotion extends Resource {
7086
7101
  * @example ```"pending"```
7087
7102
  */
7088
7103
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
7104
+ /**
7105
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
7106
+ * @example ```112```
7107
+ */
7108
+ weight?: number | null;
7089
7109
  /**
7090
7110
  * Time at which this resource was disabled.
7091
7111
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7400,6 +7420,11 @@ interface BuyXPayYPromotion extends Resource {
7400
7420
  * @example ```"pending"```
7401
7421
  */
7402
7422
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
7423
+ /**
7424
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
7425
+ * @example ```112```
7426
+ */
7427
+ weight?: number | null;
7403
7428
  /**
7404
7429
  * Time at which this resource was disabled.
7405
7430
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -7776,6 +7801,11 @@ interface FreeShippingPromotion extends Resource {
7776
7801
  * @example ```"pending"```
7777
7802
  */
7778
7803
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
7804
+ /**
7805
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
7806
+ * @example ```112```
7807
+ */
7808
+ weight?: number | null;
7779
7809
  /**
7780
7810
  * Time at which this resource was disabled.
7781
7811
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -8106,6 +8136,11 @@ interface PercentageDiscountPromotion extends Resource {
8106
8136
  * @example ```"pending"```
8107
8137
  */
8108
8138
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
8139
+ /**
8140
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
8141
+ * @example ```112```
8142
+ */
8143
+ weight?: number | null;
8109
8144
  /**
8110
8145
  * Time at which this resource was disabled.
8111
8146
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -13031,6 +13066,11 @@ interface Promotion extends Resource {
13031
13066
  * @example ```"pending"```
13032
13067
  */
13033
13068
  status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
13069
+ /**
13070
+ * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.
13071
+ * @example ```112```
13072
+ */
13073
+ weight?: number | null;
13034
13074
  /**
13035
13075
  * Time at which this resource was disabled.
13036
13076
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -16364,7 +16404,11 @@ interface Organization extends Resource {
16364
16404
  */
16365
16405
  addresses_phone_required?: boolean | null;
16366
16406
  /**
16367
- * The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done, until the lapse is observed.
16407
+ * The minimum lapse in fraction of seconds to be observed between two consecutive shipments rebuilt. If shipments rebuilt is triggered within the minimum lapse, the update is performed, but no rebuilt is done.
16408
+ */
16409
+ orders_min_rebuild_shipments_lapse?: number | null;
16410
+ /**
16411
+ * The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done.
16368
16412
  */
16369
16413
  orders_min_refresh_lapse?: number | null;
16370
16414
  /**
@@ -16395,6 +16439,11 @@ interface Organization extends Resource {
16395
16439
  * @example ```true```
16396
16440
  */
16397
16441
  orders_invalid_coupon_errors?: boolean | null;
16442
+ /**
16443
+ * Enables raising of API errors in case the provided gift card code is invalid, default is true.
16444
+ * @example ```true```
16445
+ */
16446
+ orders_invalid_gift_card_errors?: boolean | null;
16398
16447
  /**
16399
16448
  * The maximum number of SKUs allowed for bundles, default is 10.
16400
16449
  * @example ```10```
@@ -16410,6 +16459,10 @@ interface Organization extends Resource {
16410
16459
  * @example ```40```
16411
16460
  */
16412
16461
  coupons_max_code_length?: number | null;
16462
+ /**
16463
+ * Enables matching the gift card code by its exact value, instead of by its first charachters, default is false.
16464
+ */
16465
+ gift_cards_exact_code_matching?: boolean | null;
16413
16466
  /**
16414
16467
  * The minimum length for gift card code, default is 8.
16415
16468
  * @example ```8```
@@ -16444,6 +16497,11 @@ interface Organization extends Resource {
16444
16497
  * Disables the interruption of the import in case its errors exceeds the 10% threshold, default is false.
16445
16498
  */
16446
16499
  imports_skip_errors?: boolean | null;
16500
+ /**
16501
+ * The maximum number for stock locations cutoff, default is 10.
16502
+ * @example ```10```
16503
+ */
16504
+ inventory_models_max_stock_locations_cutoff?: number | null;
16447
16505
  /**
16448
16506
  * The maximum number of active concurrent promotions allowed for your organization, default is 10.
16449
16507
  * @example ```10```
@@ -17180,7 +17238,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17180
17238
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17181
17239
  declare class CommerceLayerClient {
17182
17240
  #private;
17183
- readonly openApiSchemaVersion = "7.9.0";
17241
+ readonly openApiSchemaVersion = "7.9.3";
17184
17242
  constructor(config: CommerceLayerInitConfig);
17185
17243
  get addresses(): Addresses;
17186
17244
  get adjustments(): Adjustments;