@thorprovider/types 5.1.2 → 5.1.4
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/dist/index.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/package.json +1 -1
- package/src/admin/DropshippingAdmin.ts +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -3686,14 +3686,14 @@ interface DropshipperAccountRef {
|
|
|
3686
3686
|
/** A quantity-based cost tier (X→Y) from the Price List */
|
|
3687
3687
|
interface DropshipperCostTier {
|
|
3688
3688
|
amount: number;
|
|
3689
|
-
|
|
3690
|
-
|
|
3689
|
+
minQuantity: number | null;
|
|
3690
|
+
maxQuantity: number | null;
|
|
3691
3691
|
}
|
|
3692
3692
|
/** A quantity-based sale tier (Y→V) configured by the dropshipper */
|
|
3693
3693
|
interface DropshipperSaleTier {
|
|
3694
3694
|
sale_amount: number;
|
|
3695
|
-
|
|
3696
|
-
|
|
3695
|
+
minQuantity: number;
|
|
3696
|
+
maxQuantity?: number | null;
|
|
3697
3697
|
}
|
|
3698
3698
|
/** Body for `POST /admin/thor/dropshipper/onboard` */
|
|
3699
3699
|
interface OnboardDropshipperBody {
|
|
@@ -3821,11 +3821,11 @@ interface DropshipperVariant {
|
|
|
3821
3821
|
id: string;
|
|
3822
3822
|
title: string;
|
|
3823
3823
|
sku: string | null;
|
|
3824
|
-
|
|
3824
|
+
availableQuantity: number;
|
|
3825
3825
|
/** Whether inventory is tracked for this variant */
|
|
3826
|
-
|
|
3826
|
+
manageInventory: boolean;
|
|
3827
3827
|
/** Whether backorders are allowed when out of stock */
|
|
3828
|
-
|
|
3828
|
+
allowBackorder: boolean;
|
|
3829
3829
|
/** Price Y pays to X. Read-only for Y. */
|
|
3830
3830
|
cost_price: number;
|
|
3831
3831
|
cost_price_currency: string;
|
|
@@ -3931,11 +3931,11 @@ interface ValidateCheckoutItemsRequest {
|
|
|
3931
3931
|
/** Per-variant result in the validate checkout response */
|
|
3932
3932
|
interface ValidatedCheckoutItem {
|
|
3933
3933
|
variant_id: string;
|
|
3934
|
-
|
|
3934
|
+
availableQuantity: number;
|
|
3935
3935
|
sale_price: number;
|
|
3936
3936
|
cost_price: number;
|
|
3937
|
-
|
|
3938
|
-
|
|
3937
|
+
manageInventory: boolean;
|
|
3938
|
+
allowBackorder: boolean;
|
|
3939
3939
|
}
|
|
3940
3940
|
/** Response for `POST /admin/thor/dropshipper/checkout/validate` */
|
|
3941
3941
|
interface ValidateCheckoutItemsResponse {
|
package/dist/index.d.ts
CHANGED
|
@@ -3686,14 +3686,14 @@ interface DropshipperAccountRef {
|
|
|
3686
3686
|
/** A quantity-based cost tier (X→Y) from the Price List */
|
|
3687
3687
|
interface DropshipperCostTier {
|
|
3688
3688
|
amount: number;
|
|
3689
|
-
|
|
3690
|
-
|
|
3689
|
+
minQuantity: number | null;
|
|
3690
|
+
maxQuantity: number | null;
|
|
3691
3691
|
}
|
|
3692
3692
|
/** A quantity-based sale tier (Y→V) configured by the dropshipper */
|
|
3693
3693
|
interface DropshipperSaleTier {
|
|
3694
3694
|
sale_amount: number;
|
|
3695
|
-
|
|
3696
|
-
|
|
3695
|
+
minQuantity: number;
|
|
3696
|
+
maxQuantity?: number | null;
|
|
3697
3697
|
}
|
|
3698
3698
|
/** Body for `POST /admin/thor/dropshipper/onboard` */
|
|
3699
3699
|
interface OnboardDropshipperBody {
|
|
@@ -3821,11 +3821,11 @@ interface DropshipperVariant {
|
|
|
3821
3821
|
id: string;
|
|
3822
3822
|
title: string;
|
|
3823
3823
|
sku: string | null;
|
|
3824
|
-
|
|
3824
|
+
availableQuantity: number;
|
|
3825
3825
|
/** Whether inventory is tracked for this variant */
|
|
3826
|
-
|
|
3826
|
+
manageInventory: boolean;
|
|
3827
3827
|
/** Whether backorders are allowed when out of stock */
|
|
3828
|
-
|
|
3828
|
+
allowBackorder: boolean;
|
|
3829
3829
|
/** Price Y pays to X. Read-only for Y. */
|
|
3830
3830
|
cost_price: number;
|
|
3831
3831
|
cost_price_currency: string;
|
|
@@ -3931,11 +3931,11 @@ interface ValidateCheckoutItemsRequest {
|
|
|
3931
3931
|
/** Per-variant result in the validate checkout response */
|
|
3932
3932
|
interface ValidatedCheckoutItem {
|
|
3933
3933
|
variant_id: string;
|
|
3934
|
-
|
|
3934
|
+
availableQuantity: number;
|
|
3935
3935
|
sale_price: number;
|
|
3936
3936
|
cost_price: number;
|
|
3937
|
-
|
|
3938
|
-
|
|
3937
|
+
manageInventory: boolean;
|
|
3938
|
+
allowBackorder: boolean;
|
|
3939
3939
|
}
|
|
3940
3940
|
/** Response for `POST /admin/thor/dropshipper/checkout/validate` */
|
|
3941
3941
|
interface ValidateCheckoutItemsResponse {
|
package/package.json
CHANGED
|
@@ -30,15 +30,15 @@ export interface DropshipperAccountRef {
|
|
|
30
30
|
/** A quantity-based cost tier (X→Y) from the Price List */
|
|
31
31
|
export interface DropshipperCostTier {
|
|
32
32
|
amount: number;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
minQuantity: number | null;
|
|
34
|
+
maxQuantity: number | null;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/** A quantity-based sale tier (Y→V) configured by the dropshipper */
|
|
38
38
|
export interface DropshipperSaleTier {
|
|
39
39
|
sale_amount: number;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
minQuantity: number;
|
|
41
|
+
maxQuantity?: number | null;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// ============================================================
|
|
@@ -193,11 +193,11 @@ export interface DropshipperVariant {
|
|
|
193
193
|
id: string;
|
|
194
194
|
title: string;
|
|
195
195
|
sku: string | null;
|
|
196
|
-
|
|
196
|
+
availableQuantity: number;
|
|
197
197
|
/** Whether inventory is tracked for this variant */
|
|
198
|
-
|
|
198
|
+
manageInventory: boolean;
|
|
199
199
|
/** Whether backorders are allowed when out of stock */
|
|
200
|
-
|
|
200
|
+
allowBackorder: boolean;
|
|
201
201
|
/** Price Y pays to X. Read-only for Y. */
|
|
202
202
|
cost_price: number;
|
|
203
203
|
cost_price_currency: string;
|
|
@@ -310,11 +310,11 @@ export interface ValidateCheckoutItemsRequest {
|
|
|
310
310
|
/** Per-variant result in the validate checkout response */
|
|
311
311
|
export interface ValidatedCheckoutItem {
|
|
312
312
|
variant_id: string
|
|
313
|
-
|
|
313
|
+
availableQuantity: number
|
|
314
314
|
sale_price: number
|
|
315
315
|
cost_price: number
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
manageInventory: boolean
|
|
317
|
+
allowBackorder: boolean
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
/** Response for `POST /admin/thor/dropshipper/checkout/validate` */
|