@commercelayer/sdk 6.46.0 → 6.48.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 +15 -6
- package/lib/index.d.ts +15 -6
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +20 -18
package/lib/index.d.mts
CHANGED
@@ -9913,6 +9913,11 @@ interface Order extends Resource {
|
|
9913
9913
|
* @example ```"john@example.com"```
|
9914
9914
|
*/
|
9915
9915
|
customer_email?: string | null;
|
9916
|
+
/**
|
9917
|
+
* The type of the associated customer. One of 'new', or 'returning'.
|
9918
|
+
* @example ```"returning"```
|
9919
|
+
*/
|
9920
|
+
customer_type?: 'new' | 'returning' | null;
|
9916
9921
|
/**
|
9917
9922
|
* The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly.
|
9918
9923
|
* @example ```"it"```
|
@@ -11655,7 +11660,7 @@ type ShippingMethodRel$2 = ResourceRel & {
|
|
11655
11660
|
type TagRel$2 = ResourceRel & {
|
11656
11661
|
type: TagType;
|
11657
11662
|
};
|
11658
|
-
type ShipmentSort = Pick<Shipment, 'id' | 'number' | 'status' | 'cost_amount_cents' | 'get_rates_started_at' | 'get_rates_completed_at' | 'purchase_started_at' | 'purchase_completed_at' | 'purchase_failed_at' | 'on_hold_at' | 'picking_at' | 'packing_at' | 'ready_to_ship_at' | 'shipped_at'> & ResourceSort;
|
11663
|
+
type ShipmentSort = Pick<Shipment, 'id' | 'number' | 'status' | 'cost_amount_cents' | 'get_rates_started_at' | 'get_rates_completed_at' | 'purchase_started_at' | 'purchase_completed_at' | 'purchase_failed_at' | 'on_hold_at' | 'picking_at' | 'packing_at' | 'ready_to_ship_at' | 'shipped_at' | 'delivered_at'> & ResourceSort;
|
11659
11664
|
interface Shipment extends Resource {
|
11660
11665
|
readonly type: ShipmentType;
|
11661
11666
|
/**
|
@@ -11768,6 +11773,11 @@ interface Shipment extends Resource {
|
|
11768
11773
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
11769
11774
|
*/
|
11770
11775
|
shipped_at?: string | null;
|
11776
|
+
/**
|
11777
|
+
* Time at which the shipment was delivered.
|
11778
|
+
* @example ```"2018-01-01T12:00:00.000Z"```
|
11779
|
+
*/
|
11780
|
+
delivered_at?: string | null;
|
11771
11781
|
order?: Order | null;
|
11772
11782
|
shipping_category?: ShippingCategory | null;
|
11773
11783
|
inventory_stock_location?: InventoryStockLocation | null;
|
@@ -12779,7 +12789,7 @@ type SkuRel$3 = ResourceRel & {
|
|
12779
12789
|
type PriceTierRel$1 = ResourceRel & {
|
12780
12790
|
type: PriceTierType;
|
12781
12791
|
};
|
12782
|
-
type PriceSort = Pick<Price, 'id' | '
|
12792
|
+
type PriceSort = Pick<Price, 'id' | 'amount_cents' | 'compare_at_amount_cents'> & ResourceSort;
|
12783
12793
|
interface Price extends Resource {
|
12784
12794
|
readonly type: PriceType;
|
12785
12795
|
/**
|
@@ -14720,7 +14730,6 @@ declare class Markets extends ApiResource<Market> {
|
|
14720
14730
|
inventory_model(marketId: string | Market, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel>;
|
14721
14731
|
subscription_model(marketId: string | Market, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel>;
|
14722
14732
|
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
14733
|
customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup>;
|
14725
14734
|
geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder>;
|
14726
14735
|
default_shipping_method(marketId: string | Market, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
|
@@ -14828,7 +14837,7 @@ interface Address extends Resource {
|
|
14828
14837
|
* State, province or region code.
|
14829
14838
|
* @example ```"NY"```
|
14830
14839
|
*/
|
14831
|
-
state_code
|
14840
|
+
state_code?: string | null;
|
14832
14841
|
/**
|
14833
14842
|
* The international 2-letter country code as defined by the ISO 3166-1 standard.
|
14834
14843
|
* @example ```"US"```
|
@@ -14949,7 +14958,7 @@ interface AddressCreate extends ResourceCreate {
|
|
14949
14958
|
* State, province or region code.
|
14950
14959
|
* @example ```"NY"```
|
14951
14960
|
*/
|
14952
|
-
state_code
|
14961
|
+
state_code?: string | null;
|
14953
14962
|
/**
|
14954
14963
|
* The international 2-letter country code as defined by the ISO 3166-1 standard.
|
14955
14964
|
* @example ```"US"```
|
@@ -17576,7 +17585,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
17576
17585
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
17577
17586
|
declare class CommerceLayerClient {
|
17578
17587
|
#private;
|
17579
|
-
readonly openApiSchemaVersion = "7.9.
|
17588
|
+
readonly openApiSchemaVersion = "7.9.6";
|
17580
17589
|
constructor(config: CommerceLayerInitConfig);
|
17581
17590
|
get addresses(): Addresses;
|
17582
17591
|
get adjustments(): Adjustments;
|
package/lib/index.d.ts
CHANGED
@@ -9913,6 +9913,11 @@ interface Order extends Resource {
|
|
9913
9913
|
* @example ```"john@example.com"```
|
9914
9914
|
*/
|
9915
9915
|
customer_email?: string | null;
|
9916
|
+
/**
|
9917
|
+
* The type of the associated customer. One of 'new', or 'returning'.
|
9918
|
+
* @example ```"returning"```
|
9919
|
+
*/
|
9920
|
+
customer_type?: 'new' | 'returning' | null;
|
9916
9921
|
/**
|
9917
9922
|
* The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly.
|
9918
9923
|
* @example ```"it"```
|
@@ -11655,7 +11660,7 @@ type ShippingMethodRel$2 = ResourceRel & {
|
|
11655
11660
|
type TagRel$2 = ResourceRel & {
|
11656
11661
|
type: TagType;
|
11657
11662
|
};
|
11658
|
-
type ShipmentSort = Pick<Shipment, 'id' | 'number' | 'status' | 'cost_amount_cents' | 'get_rates_started_at' | 'get_rates_completed_at' | 'purchase_started_at' | 'purchase_completed_at' | 'purchase_failed_at' | 'on_hold_at' | 'picking_at' | 'packing_at' | 'ready_to_ship_at' | 'shipped_at'> & ResourceSort;
|
11663
|
+
type ShipmentSort = Pick<Shipment, 'id' | 'number' | 'status' | 'cost_amount_cents' | 'get_rates_started_at' | 'get_rates_completed_at' | 'purchase_started_at' | 'purchase_completed_at' | 'purchase_failed_at' | 'on_hold_at' | 'picking_at' | 'packing_at' | 'ready_to_ship_at' | 'shipped_at' | 'delivered_at'> & ResourceSort;
|
11659
11664
|
interface Shipment extends Resource {
|
11660
11665
|
readonly type: ShipmentType;
|
11661
11666
|
/**
|
@@ -11768,6 +11773,11 @@ interface Shipment extends Resource {
|
|
11768
11773
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
11769
11774
|
*/
|
11770
11775
|
shipped_at?: string | null;
|
11776
|
+
/**
|
11777
|
+
* Time at which the shipment was delivered.
|
11778
|
+
* @example ```"2018-01-01T12:00:00.000Z"```
|
11779
|
+
*/
|
11780
|
+
delivered_at?: string | null;
|
11771
11781
|
order?: Order | null;
|
11772
11782
|
shipping_category?: ShippingCategory | null;
|
11773
11783
|
inventory_stock_location?: InventoryStockLocation | null;
|
@@ -12779,7 +12789,7 @@ type SkuRel$3 = ResourceRel & {
|
|
12779
12789
|
type PriceTierRel$1 = ResourceRel & {
|
12780
12790
|
type: PriceTierType;
|
12781
12791
|
};
|
12782
|
-
type PriceSort = Pick<Price, 'id' | '
|
12792
|
+
type PriceSort = Pick<Price, 'id' | 'amount_cents' | 'compare_at_amount_cents'> & ResourceSort;
|
12783
12793
|
interface Price extends Resource {
|
12784
12794
|
readonly type: PriceType;
|
12785
12795
|
/**
|
@@ -14720,7 +14730,6 @@ declare class Markets extends ApiResource<Market> {
|
|
14720
14730
|
inventory_model(marketId: string | Market, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel>;
|
14721
14731
|
subscription_model(marketId: string | Market, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel>;
|
14722
14732
|
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
14733
|
customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup>;
|
14725
14734
|
geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder>;
|
14726
14735
|
default_shipping_method(marketId: string | Market, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod>;
|
@@ -14828,7 +14837,7 @@ interface Address extends Resource {
|
|
14828
14837
|
* State, province or region code.
|
14829
14838
|
* @example ```"NY"```
|
14830
14839
|
*/
|
14831
|
-
state_code
|
14840
|
+
state_code?: string | null;
|
14832
14841
|
/**
|
14833
14842
|
* The international 2-letter country code as defined by the ISO 3166-1 standard.
|
14834
14843
|
* @example ```"US"```
|
@@ -14949,7 +14958,7 @@ interface AddressCreate extends ResourceCreate {
|
|
14949
14958
|
* State, province or region code.
|
14950
14959
|
* @example ```"NY"```
|
14951
14960
|
*/
|
14952
|
-
state_code
|
14961
|
+
state_code?: string | null;
|
14953
14962
|
/**
|
14954
14963
|
* The international 2-letter country code as defined by the ISO 3166-1 standard.
|
14955
14964
|
* @example ```"US"```
|
@@ -17576,7 +17585,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
17576
17585
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
17577
17586
|
declare class CommerceLayerClient {
|
17578
17587
|
#private;
|
17579
|
-
readonly openApiSchemaVersion = "7.9.
|
17588
|
+
readonly openApiSchemaVersion = "7.9.6";
|
17580
17589
|
constructor(config: CommerceLayerInitConfig);
|
17581
17590
|
get addresses(): Addresses;
|
17582
17591
|
get adjustments(): Adjustments;
|