@commercelayer/sdk 6.46.0 → 6.47.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 +4 -55
- package/lib/index.d.ts +4 -55
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +4 -4
package/lib/index.d.mts
CHANGED
@@ -6670,26 +6670,11 @@ interface FlexPromotion extends Resource {
|
|
6670
6670
|
* @example ```"pending"```
|
6671
6671
|
*/
|
6672
6672
|
status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
|
6673
|
-
/**
|
6674
|
-
* The discount rule to be applied.
|
6675
|
-
* @example ```{}```
|
6676
|
-
*/
|
6677
|
-
rules: Record<string, any>;
|
6678
|
-
/**
|
6679
|
-
* The rule outcomes.
|
6680
|
-
* @example ```[]```
|
6681
|
-
*/
|
6682
|
-
rule_outcomes?: Record<string, any> | null;
|
6683
6673
|
/**
|
6684
6674
|
* Time at which this resource was disabled.
|
6685
6675
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
6686
6676
|
*/
|
6687
6677
|
disabled_at?: string | null;
|
6688
|
-
/**
|
6689
|
-
* The payload used to evaluate the rules.
|
6690
|
-
* @example ```{}```
|
6691
|
-
*/
|
6692
|
-
resource_payload?: Record<string, any> | null;
|
6693
6678
|
coupon_codes_promotion_rule?: CouponCodesPromotionRule | null;
|
6694
6679
|
coupons?: Coupon[] | null;
|
6695
6680
|
attachments?: Attachment[] | null;
|
@@ -12361,11 +12346,6 @@ interface Sku extends Resource {
|
|
12361
12346
|
* Indicates if the SKU doesn't track the stock inventory.
|
12362
12347
|
*/
|
12363
12348
|
do_not_track?: boolean | null;
|
12364
|
-
/**
|
12365
|
-
* Aggregated information about the SKU's inventory. Returned only when retrieving a single SKU.
|
12366
|
-
* @example ```{"available":true,"quantity":10,"levels":[{"quantity":4,"delivery_lead_times":[{"shipping_method":{"name":"Standard Shipping","reference":null,"price_amount_cents":700,"free_over_amount_cents":9900,"formatted_price_amount":"€7,00","formatted_free_over_amount":"€99,00"},"min":{"hours":72,"days":3},"max":{"hours":120,"days":5}},{"shipping_method":{"name":"Express Delivery","reference":null,"price_amount_cents":1200,"free_over_amount_cents":null,"formatted_price_amount":"€12,00","formatted_free_over_amount":null},"min":{"hours":48,"days":2},"max":{"hours":72,"days":3}}]},{"quantity":6,"delivery_lead_times":[{"shipping_method":{"name":"Standard Shipping","reference":null,"price_amount_cents":700,"free_over_amount_cents":9900,"formatted_price_amount":"€7,00","formatted_free_over_amount":"€99,00"},"min":{"hours":96,"days":4},"max":{"hours":144,"days":6}},{"shipping_method":{"name":"Express Delivery","reference":null,"price_amount_cents":1200,"free_over_amount_cents":null,"formatted_price_amount":"€12,00","formatted_free_over_amount":null},"min":{"hours":72,"days":3},"max":{"hours":96,"days":4}}]}]}```
|
12367
|
-
*/
|
12368
|
-
inventory?: Record<string, any> | null;
|
12369
12349
|
/**
|
12370
12350
|
* The custom_claim attached to the current JWT (if any).
|
12371
12351
|
* @example ```{}```
|
@@ -12779,7 +12759,7 @@ type SkuRel$3 = ResourceRel & {
|
|
12779
12759
|
type PriceTierRel$1 = ResourceRel & {
|
12780
12760
|
type: PriceTierType;
|
12781
12761
|
};
|
12782
|
-
type PriceSort = Pick<Price, 'id' | '
|
12762
|
+
type PriceSort = Pick<Price, 'id' | 'amount_cents' | 'compare_at_amount_cents'> & ResourceSort;
|
12783
12763
|
interface Price extends Resource {
|
12784
12764
|
readonly type: PriceType;
|
12785
12765
|
/**
|
@@ -12832,26 +12812,11 @@ interface Price extends Resource {
|
|
12832
12812
|
* @example ```"€130,00"```
|
12833
12813
|
*/
|
12834
12814
|
formatted_compare_at_amount?: string | null;
|
12835
|
-
/**
|
12836
|
-
* The rule outcomes.
|
12837
|
-
* @example ```[]```
|
12838
|
-
*/
|
12839
|
-
rule_outcomes?: Record<string, any> | null;
|
12840
12815
|
/**
|
12841
12816
|
* Time at which the resource was processed by API.
|
12842
12817
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
12843
12818
|
*/
|
12844
12819
|
processed_at?: string | null;
|
12845
|
-
/**
|
12846
|
-
* The rules (using Rules Engine) to be applied.
|
12847
|
-
* @example ```{}```
|
12848
|
-
*/
|
12849
|
-
rules?: Record<string, any> | null;
|
12850
|
-
/**
|
12851
|
-
* The payload used to evaluate the rules.
|
12852
|
-
* @example ```{}```
|
12853
|
-
*/
|
12854
|
-
resource_payload?: Record<string, any> | null;
|
12855
12820
|
/**
|
12856
12821
|
* The custom_claim attached to the current JWT (if any).
|
12857
12822
|
* @example ```{}```
|
@@ -13098,21 +13063,6 @@ interface PriceList extends Resource {
|
|
13098
13063
|
* @example ```true```
|
13099
13064
|
*/
|
13100
13065
|
tax_included?: boolean | null;
|
13101
|
-
/**
|
13102
|
-
* The rule outcomes.
|
13103
|
-
* @example ```[]```
|
13104
|
-
*/
|
13105
|
-
rule_outcomes?: Record<string, any> | null;
|
13106
|
-
/**
|
13107
|
-
* The rules (using Rules Engine) to be applied.
|
13108
|
-
* @example ```{}```
|
13109
|
-
*/
|
13110
|
-
rules?: Record<string, any> | null;
|
13111
|
-
/**
|
13112
|
-
* The payload used to evaluate the rules.
|
13113
|
-
* @example ```{}```
|
13114
|
-
*/
|
13115
|
-
resource_payload?: Record<string, any> | null;
|
13116
13066
|
prices?: Price[] | null;
|
13117
13067
|
price_list_schedulers?: PriceListScheduler[] | null;
|
13118
13068
|
attachments?: Attachment[] | null;
|
@@ -14720,7 +14670,6 @@ declare class Markets extends ApiResource<Market> {
|
|
14720
14670
|
inventory_model(marketId: string | Market, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel>;
|
14721
14671
|
subscription_model(marketId: string | Market, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel>;
|
14722
14672
|
discount_engine(marketId: string | Market, params?: QueryParamsRetrieve<DiscountEngine>, options?: ResourcesConfig): Promise<DiscountEngine>;
|
14723
|
-
tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve<TaxCalculator>, options?: ResourcesConfig): Promise<TaxCalculator>;
|
14724
14673
|
customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup>;
|
14725
14674
|
geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder>;
|
14726
14675
|
default_shipping_method(marketId: string | Market, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
|
@@ -14828,7 +14777,7 @@ interface Address extends Resource {
|
|
14828
14777
|
* State, province or region code.
|
14829
14778
|
* @example ```"NY"```
|
14830
14779
|
*/
|
14831
|
-
state_code
|
14780
|
+
state_code?: string | null;
|
14832
14781
|
/**
|
14833
14782
|
* The international 2-letter country code as defined by the ISO 3166-1 standard.
|
14834
14783
|
* @example ```"US"```
|
@@ -14949,7 +14898,7 @@ interface AddressCreate extends ResourceCreate {
|
|
14949
14898
|
* State, province or region code.
|
14950
14899
|
* @example ```"NY"```
|
14951
14900
|
*/
|
14952
|
-
state_code
|
14901
|
+
state_code?: string | null;
|
14953
14902
|
/**
|
14954
14903
|
* The international 2-letter country code as defined by the ISO 3166-1 standard.
|
14955
14904
|
* @example ```"US"```
|
@@ -17576,7 +17525,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
17576
17525
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
17577
17526
|
declare class CommerceLayerClient {
|
17578
17527
|
#private;
|
17579
|
-
readonly openApiSchemaVersion = "7.9.
|
17528
|
+
readonly openApiSchemaVersion = "7.9.5";
|
17580
17529
|
constructor(config: CommerceLayerInitConfig);
|
17581
17530
|
get addresses(): Addresses;
|
17582
17531
|
get adjustments(): Adjustments;
|
package/lib/index.d.ts
CHANGED
@@ -6670,26 +6670,11 @@ interface FlexPromotion extends Resource {
|
|
6670
6670
|
* @example ```"pending"```
|
6671
6671
|
*/
|
6672
6672
|
status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
|
6673
|
-
/**
|
6674
|
-
* The discount rule to be applied.
|
6675
|
-
* @example ```{}```
|
6676
|
-
*/
|
6677
|
-
rules: Record<string, any>;
|
6678
|
-
/**
|
6679
|
-
* The rule outcomes.
|
6680
|
-
* @example ```[]```
|
6681
|
-
*/
|
6682
|
-
rule_outcomes?: Record<string, any> | null;
|
6683
6673
|
/**
|
6684
6674
|
* Time at which this resource was disabled.
|
6685
6675
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
6686
6676
|
*/
|
6687
6677
|
disabled_at?: string | null;
|
6688
|
-
/**
|
6689
|
-
* The payload used to evaluate the rules.
|
6690
|
-
* @example ```{}```
|
6691
|
-
*/
|
6692
|
-
resource_payload?: Record<string, any> | null;
|
6693
6678
|
coupon_codes_promotion_rule?: CouponCodesPromotionRule | null;
|
6694
6679
|
coupons?: Coupon[] | null;
|
6695
6680
|
attachments?: Attachment[] | null;
|
@@ -12361,11 +12346,6 @@ interface Sku extends Resource {
|
|
12361
12346
|
* Indicates if the SKU doesn't track the stock inventory.
|
12362
12347
|
*/
|
12363
12348
|
do_not_track?: boolean | null;
|
12364
|
-
/**
|
12365
|
-
* Aggregated information about the SKU's inventory. Returned only when retrieving a single SKU.
|
12366
|
-
* @example ```{"available":true,"quantity":10,"levels":[{"quantity":4,"delivery_lead_times":[{"shipping_method":{"name":"Standard Shipping","reference":null,"price_amount_cents":700,"free_over_amount_cents":9900,"formatted_price_amount":"€7,00","formatted_free_over_amount":"€99,00"},"min":{"hours":72,"days":3},"max":{"hours":120,"days":5}},{"shipping_method":{"name":"Express Delivery","reference":null,"price_amount_cents":1200,"free_over_amount_cents":null,"formatted_price_amount":"€12,00","formatted_free_over_amount":null},"min":{"hours":48,"days":2},"max":{"hours":72,"days":3}}]},{"quantity":6,"delivery_lead_times":[{"shipping_method":{"name":"Standard Shipping","reference":null,"price_amount_cents":700,"free_over_amount_cents":9900,"formatted_price_amount":"€7,00","formatted_free_over_amount":"€99,00"},"min":{"hours":96,"days":4},"max":{"hours":144,"days":6}},{"shipping_method":{"name":"Express Delivery","reference":null,"price_amount_cents":1200,"free_over_amount_cents":null,"formatted_price_amount":"€12,00","formatted_free_over_amount":null},"min":{"hours":72,"days":3},"max":{"hours":96,"days":4}}]}]}```
|
12367
|
-
*/
|
12368
|
-
inventory?: Record<string, any> | null;
|
12369
12349
|
/**
|
12370
12350
|
* The custom_claim attached to the current JWT (if any).
|
12371
12351
|
* @example ```{}```
|
@@ -12779,7 +12759,7 @@ type SkuRel$3 = ResourceRel & {
|
|
12779
12759
|
type PriceTierRel$1 = ResourceRel & {
|
12780
12760
|
type: PriceTierType;
|
12781
12761
|
};
|
12782
|
-
type PriceSort = Pick<Price, 'id' | '
|
12762
|
+
type PriceSort = Pick<Price, 'id' | 'amount_cents' | 'compare_at_amount_cents'> & ResourceSort;
|
12783
12763
|
interface Price extends Resource {
|
12784
12764
|
readonly type: PriceType;
|
12785
12765
|
/**
|
@@ -12832,26 +12812,11 @@ interface Price extends Resource {
|
|
12832
12812
|
* @example ```"€130,00"```
|
12833
12813
|
*/
|
12834
12814
|
formatted_compare_at_amount?: string | null;
|
12835
|
-
/**
|
12836
|
-
* The rule outcomes.
|
12837
|
-
* @example ```[]```
|
12838
|
-
*/
|
12839
|
-
rule_outcomes?: Record<string, any> | null;
|
12840
12815
|
/**
|
12841
12816
|
* Time at which the resource was processed by API.
|
12842
12817
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
12843
12818
|
*/
|
12844
12819
|
processed_at?: string | null;
|
12845
|
-
/**
|
12846
|
-
* The rules (using Rules Engine) to be applied.
|
12847
|
-
* @example ```{}```
|
12848
|
-
*/
|
12849
|
-
rules?: Record<string, any> | null;
|
12850
|
-
/**
|
12851
|
-
* The payload used to evaluate the rules.
|
12852
|
-
* @example ```{}```
|
12853
|
-
*/
|
12854
|
-
resource_payload?: Record<string, any> | null;
|
12855
12820
|
/**
|
12856
12821
|
* The custom_claim attached to the current JWT (if any).
|
12857
12822
|
* @example ```{}```
|
@@ -13098,21 +13063,6 @@ interface PriceList extends Resource {
|
|
13098
13063
|
* @example ```true```
|
13099
13064
|
*/
|
13100
13065
|
tax_included?: boolean | null;
|
13101
|
-
/**
|
13102
|
-
* The rule outcomes.
|
13103
|
-
* @example ```[]```
|
13104
|
-
*/
|
13105
|
-
rule_outcomes?: Record<string, any> | null;
|
13106
|
-
/**
|
13107
|
-
* The rules (using Rules Engine) to be applied.
|
13108
|
-
* @example ```{}```
|
13109
|
-
*/
|
13110
|
-
rules?: Record<string, any> | null;
|
13111
|
-
/**
|
13112
|
-
* The payload used to evaluate the rules.
|
13113
|
-
* @example ```{}```
|
13114
|
-
*/
|
13115
|
-
resource_payload?: Record<string, any> | null;
|
13116
13066
|
prices?: Price[] | null;
|
13117
13067
|
price_list_schedulers?: PriceListScheduler[] | null;
|
13118
13068
|
attachments?: Attachment[] | null;
|
@@ -14720,7 +14670,6 @@ declare class Markets extends ApiResource<Market> {
|
|
14720
14670
|
inventory_model(marketId: string | Market, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel>;
|
14721
14671
|
subscription_model(marketId: string | Market, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel>;
|
14722
14672
|
discount_engine(marketId: string | Market, params?: QueryParamsRetrieve<DiscountEngine>, options?: ResourcesConfig): Promise<DiscountEngine>;
|
14723
|
-
tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve<TaxCalculator>, options?: ResourcesConfig): Promise<TaxCalculator>;
|
14724
14673
|
customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup>;
|
14725
14674
|
geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder>;
|
14726
14675
|
default_shipping_method(marketId: string | Market, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
|
@@ -14828,7 +14777,7 @@ interface Address extends Resource {
|
|
14828
14777
|
* State, province or region code.
|
14829
14778
|
* @example ```"NY"```
|
14830
14779
|
*/
|
14831
|
-
state_code
|
14780
|
+
state_code?: string | null;
|
14832
14781
|
/**
|
14833
14782
|
* The international 2-letter country code as defined by the ISO 3166-1 standard.
|
14834
14783
|
* @example ```"US"```
|
@@ -14949,7 +14898,7 @@ interface AddressCreate extends ResourceCreate {
|
|
14949
14898
|
* State, province or region code.
|
14950
14899
|
* @example ```"NY"```
|
14951
14900
|
*/
|
14952
|
-
state_code
|
14901
|
+
state_code?: string | null;
|
14953
14902
|
/**
|
14954
14903
|
* The international 2-letter country code as defined by the ISO 3166-1 standard.
|
14955
14904
|
* @example ```"US"```
|
@@ -17576,7 +17525,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
17576
17525
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
17577
17526
|
declare class CommerceLayerClient {
|
17578
17527
|
#private;
|
17579
|
-
readonly openApiSchemaVersion = "7.9.
|
17528
|
+
readonly openApiSchemaVersion = "7.9.5";
|
17580
17529
|
constructor(config: CommerceLayerInitConfig);
|
17581
17530
|
get addresses(): Addresses;
|
17582
17531
|
get adjustments(): Adjustments;
|