@commercelayer/sdk 6.18.1 → 6.19.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 +21 -6
- package/lib/index.d.ts +21 -6
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +4 -4
package/lib/index.d.mts
CHANGED
@@ -3784,7 +3784,7 @@ interface Link extends Resource {
|
|
3784
3784
|
domain?: string | null;
|
3785
3785
|
/**
|
3786
3786
|
* The link URL.
|
3787
|
-
* @example ```"https://
|
3787
|
+
* @example ```"https://commercelayer.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ"```
|
3788
3788
|
*/
|
3789
3789
|
url?: string | null;
|
3790
3790
|
/**
|
@@ -4378,7 +4378,7 @@ interface GiftCard extends Resource {
|
|
4378
4378
|
* The gift card balance max, in cents.
|
4379
4379
|
* @example ```"100000"```
|
4380
4380
|
*/
|
4381
|
-
balance_max_cents?:
|
4381
|
+
balance_max_cents?: number | null;
|
4382
4382
|
/**
|
4383
4383
|
* The gift card balance max, float.
|
4384
4384
|
* @example ```"1000"```
|
@@ -4455,7 +4455,7 @@ interface GiftCardCreate extends ResourceCreate {
|
|
4455
4455
|
* The gift card balance max, in cents.
|
4456
4456
|
* @example ```"100000"```
|
4457
4457
|
*/
|
4458
|
-
balance_max_cents?:
|
4458
|
+
balance_max_cents?: number | null;
|
4459
4459
|
/**
|
4460
4460
|
* Indicates if the gift card can be used only one.
|
4461
4461
|
*/
|
@@ -4504,7 +4504,7 @@ interface GiftCardUpdate extends ResourceUpdate {
|
|
4504
4504
|
* The gift card balance max, in cents.
|
4505
4505
|
* @example ```"100000"```
|
4506
4506
|
*/
|
4507
|
-
balance_max_cents?:
|
4507
|
+
balance_max_cents?: number | null;
|
4508
4508
|
/**
|
4509
4509
|
* Indicates if the gift card can be used only one.
|
4510
4510
|
*/
|
@@ -11002,7 +11002,7 @@ type ShipmentRel$1 = ResourceRel & {
|
|
11002
11002
|
type LineItemRel = ResourceRel & {
|
11003
11003
|
type: LineItemType;
|
11004
11004
|
};
|
11005
|
-
type StockTransferSort = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'completed_at' | 'cancelled_at'> & ResourceSort;
|
11005
|
+
type StockTransferSort = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'on_hold_at' | 'picking_at' | 'in_transit_at' | 'completed_at' | 'cancelled_at'> & ResourceSort;
|
11006
11006
|
interface StockTransfer extends Resource {
|
11007
11007
|
readonly type: StockTransferType;
|
11008
11008
|
/**
|
@@ -11025,6 +11025,21 @@ interface StockTransfer extends Resource {
|
|
11025
11025
|
* @example ```"2"```
|
11026
11026
|
*/
|
11027
11027
|
quantity: number;
|
11028
|
+
/**
|
11029
|
+
* Time at which the stock transfer was put on hold.
|
11030
|
+
* @example ```"2018-01-01T12:00:00.000Z"```
|
11031
|
+
*/
|
11032
|
+
on_hold_at?: string | null;
|
11033
|
+
/**
|
11034
|
+
* Time at which the stock transfer was picking.
|
11035
|
+
* @example ```"2018-01-01T12:00:00.000Z"```
|
11036
|
+
*/
|
11037
|
+
picking_at?: string | null;
|
11038
|
+
/**
|
11039
|
+
* Time at which the stock transfer was in transit.
|
11040
|
+
* @example ```"2018-01-01T12:00:00.000Z"```
|
11041
|
+
*/
|
11042
|
+
in_transit_at?: string | null;
|
11028
11043
|
/**
|
11029
11044
|
* Time at which the stock transfer was completed.
|
11030
11045
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
@@ -15803,7 +15818,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
15803
15818
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
15804
15819
|
declare class CommerceLayerClient {
|
15805
15820
|
#private;
|
15806
|
-
readonly openApiSchemaVersion = "7.1.
|
15821
|
+
readonly openApiSchemaVersion = "7.1.1";
|
15807
15822
|
constructor(config: CommerceLayerInitConfig);
|
15808
15823
|
get addresses(): Addresses;
|
15809
15824
|
get adjustments(): Adjustments;
|
package/lib/index.d.ts
CHANGED
@@ -3784,7 +3784,7 @@ interface Link extends Resource {
|
|
3784
3784
|
domain?: string | null;
|
3785
3785
|
/**
|
3786
3786
|
* The link URL.
|
3787
|
-
* @example ```"https://
|
3787
|
+
* @example ```"https://commercelayer.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ"```
|
3788
3788
|
*/
|
3789
3789
|
url?: string | null;
|
3790
3790
|
/**
|
@@ -4378,7 +4378,7 @@ interface GiftCard extends Resource {
|
|
4378
4378
|
* The gift card balance max, in cents.
|
4379
4379
|
* @example ```"100000"```
|
4380
4380
|
*/
|
4381
|
-
balance_max_cents?:
|
4381
|
+
balance_max_cents?: number | null;
|
4382
4382
|
/**
|
4383
4383
|
* The gift card balance max, float.
|
4384
4384
|
* @example ```"1000"```
|
@@ -4455,7 +4455,7 @@ interface GiftCardCreate extends ResourceCreate {
|
|
4455
4455
|
* The gift card balance max, in cents.
|
4456
4456
|
* @example ```"100000"```
|
4457
4457
|
*/
|
4458
|
-
balance_max_cents?:
|
4458
|
+
balance_max_cents?: number | null;
|
4459
4459
|
/**
|
4460
4460
|
* Indicates if the gift card can be used only one.
|
4461
4461
|
*/
|
@@ -4504,7 +4504,7 @@ interface GiftCardUpdate extends ResourceUpdate {
|
|
4504
4504
|
* The gift card balance max, in cents.
|
4505
4505
|
* @example ```"100000"```
|
4506
4506
|
*/
|
4507
|
-
balance_max_cents?:
|
4507
|
+
balance_max_cents?: number | null;
|
4508
4508
|
/**
|
4509
4509
|
* Indicates if the gift card can be used only one.
|
4510
4510
|
*/
|
@@ -11002,7 +11002,7 @@ type ShipmentRel$1 = ResourceRel & {
|
|
11002
11002
|
type LineItemRel = ResourceRel & {
|
11003
11003
|
type: LineItemType;
|
11004
11004
|
};
|
11005
|
-
type StockTransferSort = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'completed_at' | 'cancelled_at'> & ResourceSort;
|
11005
|
+
type StockTransferSort = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'on_hold_at' | 'picking_at' | 'in_transit_at' | 'completed_at' | 'cancelled_at'> & ResourceSort;
|
11006
11006
|
interface StockTransfer extends Resource {
|
11007
11007
|
readonly type: StockTransferType;
|
11008
11008
|
/**
|
@@ -11025,6 +11025,21 @@ interface StockTransfer extends Resource {
|
|
11025
11025
|
* @example ```"2"```
|
11026
11026
|
*/
|
11027
11027
|
quantity: number;
|
11028
|
+
/**
|
11029
|
+
* Time at which the stock transfer was put on hold.
|
11030
|
+
* @example ```"2018-01-01T12:00:00.000Z"```
|
11031
|
+
*/
|
11032
|
+
on_hold_at?: string | null;
|
11033
|
+
/**
|
11034
|
+
* Time at which the stock transfer was picking.
|
11035
|
+
* @example ```"2018-01-01T12:00:00.000Z"```
|
11036
|
+
*/
|
11037
|
+
picking_at?: string | null;
|
11038
|
+
/**
|
11039
|
+
* Time at which the stock transfer was in transit.
|
11040
|
+
* @example ```"2018-01-01T12:00:00.000Z"```
|
11041
|
+
*/
|
11042
|
+
in_transit_at?: string | null;
|
11028
11043
|
/**
|
11029
11044
|
* Time at which the stock transfer was completed.
|
11030
11045
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
@@ -15803,7 +15818,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
15803
15818
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
15804
15819
|
declare class CommerceLayerClient {
|
15805
15820
|
#private;
|
15806
|
-
readonly openApiSchemaVersion = "7.1.
|
15821
|
+
readonly openApiSchemaVersion = "7.1.1";
|
15807
15822
|
constructor(config: CommerceLayerInitConfig);
|
15808
15823
|
get addresses(): Addresses;
|
15809
15824
|
get adjustments(): Adjustments;
|