@use-stall/types 0.2.9 → 0.2.10
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/package.json +1 -1
- package/src/customers.d.ts +5 -5
- package/src/fulfillment.d.ts +5 -5
- package/src/inventory.d.ts +5 -6
- package/src/locations.d.ts +4 -4
- package/src/payments.d.ts +4 -4
- package/src/product.d.ts +22 -23
- package/src/promotions.d.ts +4 -4
- package/src/taxes.d.ts +17 -17
package/package.json
CHANGED
package/src/customers.d.ts
CHANGED
|
@@ -11,11 +11,11 @@ export interface UnifiedCustomerType {
|
|
|
11
11
|
addresses: UnifiedCustomerAddressType[];
|
|
12
12
|
phone: string;
|
|
13
13
|
metadata: {
|
|
14
|
-
stall_offline_id
|
|
15
|
-
stall_offline_created_at
|
|
16
|
-
stall_offline_updated_at
|
|
17
|
-
stall_offline_deleted_at
|
|
18
|
-
[key: string]:
|
|
14
|
+
stall_offline_id: string;
|
|
15
|
+
stall_offline_created_at: string;
|
|
16
|
+
stall_offline_updated_at: string;
|
|
17
|
+
stall_offline_deleted_at: string;
|
|
18
|
+
[key: string]: unknown;
|
|
19
19
|
};
|
|
20
20
|
created_at: string;
|
|
21
21
|
updated_at: string;
|
package/src/fulfillment.d.ts
CHANGED
|
@@ -80,10 +80,10 @@ export interface UnifiedFulfillmentType {
|
|
|
80
80
|
departure: UnifiedCustomerAddressType;
|
|
81
81
|
};
|
|
82
82
|
metadata: {
|
|
83
|
-
stall_offline_id
|
|
84
|
-
stall_offline_created_at
|
|
85
|
-
stall_offline_updated_at
|
|
86
|
-
stall_offline_deleted_at
|
|
87
|
-
[key: string]:
|
|
83
|
+
stall_offline_id: string;
|
|
84
|
+
stall_offline_created_at: string;
|
|
85
|
+
stall_offline_updated_at: string;
|
|
86
|
+
stall_offline_deleted_at: string;
|
|
87
|
+
[key: string]: unknown;
|
|
88
88
|
};
|
|
89
89
|
}
|
package/src/inventory.d.ts
CHANGED
|
@@ -12,16 +12,15 @@ export interface UnifiedInventoryLevelType {
|
|
|
12
12
|
last_updatedAt: string;
|
|
13
13
|
created_at: string;
|
|
14
14
|
metadata: {
|
|
15
|
-
stall_offline_id
|
|
16
|
-
stall_offline_created_at
|
|
17
|
-
stall_offline_updated_at
|
|
18
|
-
stall_offline_deleted_at
|
|
15
|
+
stall_offline_id: string;
|
|
16
|
+
stall_offline_created_at: string;
|
|
17
|
+
stall_offline_updated_at: string;
|
|
18
|
+
stall_offline_deleted_at: string;
|
|
19
19
|
[key: string]: any;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export interface ExtendedUnifiedInventoryLevelType
|
|
24
|
-
extends UnifiedInventoryLevelType {
|
|
23
|
+
export interface ExtendedUnifiedInventoryLevelType extends UnifiedInventoryLevelType {
|
|
25
24
|
title: string;
|
|
26
25
|
thumbnail: string;
|
|
27
26
|
options: string[];
|
package/src/locations.d.ts
CHANGED
|
@@ -12,10 +12,10 @@ export interface UnifiedLocationType {
|
|
|
12
12
|
updated_at: string;
|
|
13
13
|
active: boolean;
|
|
14
14
|
metadata: {
|
|
15
|
-
stall_offline_id
|
|
16
|
-
stall_offline_created_at
|
|
17
|
-
stall_offline_updated_at
|
|
18
|
-
stall_offline_deleted_at
|
|
15
|
+
stall_offline_id: string;
|
|
16
|
+
stall_offline_created_at: string;
|
|
17
|
+
stall_offline_updated_at: string;
|
|
18
|
+
stall_offline_deleted_at: string;
|
|
19
19
|
[key: string]: any;
|
|
20
20
|
};
|
|
21
21
|
}
|
package/src/payments.d.ts
CHANGED
|
@@ -72,10 +72,10 @@ export interface UnifiedPaymentCollectionType {
|
|
|
72
72
|
payment_method: UnifiedPaymentMethodType;
|
|
73
73
|
note: string;
|
|
74
74
|
metadata: {
|
|
75
|
-
stall_offline_id
|
|
76
|
-
stall_offline_created_at
|
|
77
|
-
stall_offline_updated_at
|
|
78
|
-
stall_offline_deleted_at
|
|
75
|
+
stall_offline_id: string;
|
|
76
|
+
stall_offline_created_at: string;
|
|
77
|
+
stall_offline_updated_at: string;
|
|
78
|
+
stall_offline_deleted_at: string;
|
|
79
79
|
[key: string]: any;
|
|
80
80
|
};
|
|
81
81
|
}
|
package/src/product.d.ts
CHANGED
|
@@ -35,12 +35,12 @@ export interface UnifiedProductType {
|
|
|
35
35
|
locations: string[];
|
|
36
36
|
weight: string;
|
|
37
37
|
metadata: {
|
|
38
|
-
stall_offline_id
|
|
39
|
-
stall_offline_created_at
|
|
40
|
-
stall_offline_updated_at
|
|
41
|
-
stall_offline_deleted_at
|
|
38
|
+
stall_offline_id: string;
|
|
39
|
+
stall_offline_created_at: string;
|
|
40
|
+
stall_offline_updated_at: string;
|
|
41
|
+
stall_offline_deleted_at: string;
|
|
42
42
|
[key: string]: any;
|
|
43
|
-
}; //
|
|
43
|
+
}; // Additional metadata
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export interface UnifiedTagProductTag {
|
|
@@ -52,11 +52,11 @@ export interface UnifiedTagProductTag {
|
|
|
52
52
|
updated_at: string;
|
|
53
53
|
deleted_at: string;
|
|
54
54
|
metadata: {
|
|
55
|
-
stall_offline_id
|
|
56
|
-
stall_offline_created_at
|
|
57
|
-
stall_offline_updated_at
|
|
58
|
-
stall_offline_deleted_at
|
|
59
|
-
[key: string]:
|
|
55
|
+
stall_offline_id: string;
|
|
56
|
+
stall_offline_created_at: string;
|
|
57
|
+
stall_offline_updated_at: string;
|
|
58
|
+
stall_offline_deleted_at: string;
|
|
59
|
+
[key: string]: unknown;
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -91,7 +91,6 @@ export interface UnifiedVariantsType {
|
|
|
91
91
|
sale_price: number | string;
|
|
92
92
|
on_sale: boolean;
|
|
93
93
|
status: "draft" | "private" | "publish" | "pending";
|
|
94
|
-
tax_class: string;
|
|
95
94
|
track_inventory: boolean;
|
|
96
95
|
unavailable?: number | string; // Items not available for sale (e.g., damaged, expired)
|
|
97
96
|
committed?: number | string; // Items reserved for existing orders but not yet shipped
|
|
@@ -102,10 +101,10 @@ export interface UnifiedVariantsType {
|
|
|
102
101
|
thumbnail: string;
|
|
103
102
|
attributes: UnifiedVariantsAttributeType[];
|
|
104
103
|
metadata: {
|
|
105
|
-
stall_offline_id
|
|
106
|
-
stall_offline_created_at
|
|
107
|
-
stall_offline_updated_at
|
|
108
|
-
stall_offline_deleted_at
|
|
104
|
+
stall_offline_id: string;
|
|
105
|
+
stall_offline_created_at: string;
|
|
106
|
+
stall_offline_updated_at: string;
|
|
107
|
+
stall_offline_deleted_at: string;
|
|
109
108
|
[key: string]: any;
|
|
110
109
|
};
|
|
111
110
|
}
|
|
@@ -136,10 +135,10 @@ export interface UnifiedCategoryType {
|
|
|
136
135
|
description: string;
|
|
137
136
|
thumbnail: string;
|
|
138
137
|
metadata: {
|
|
139
|
-
stall_offline_id
|
|
140
|
-
stall_offline_created_at
|
|
141
|
-
stall_offline_updated_at
|
|
142
|
-
stall_offline_deleted_at
|
|
138
|
+
stall_offline_id: string;
|
|
139
|
+
stall_offline_created_at: string;
|
|
140
|
+
stall_offline_updated_at: string;
|
|
141
|
+
stall_offline_deleted_at: string;
|
|
143
142
|
[key: string]: any;
|
|
144
143
|
};
|
|
145
144
|
date: string;
|
|
@@ -153,10 +152,10 @@ export interface UnifiedCollectionType {
|
|
|
153
152
|
description: string;
|
|
154
153
|
thumbnail: string;
|
|
155
154
|
metadata: {
|
|
156
|
-
stall_offline_id
|
|
157
|
-
stall_offline_created_at
|
|
158
|
-
stall_offline_updated_at
|
|
159
|
-
stall_offline_deleted_at
|
|
155
|
+
stall_offline_id: string;
|
|
156
|
+
stall_offline_created_at: string;
|
|
157
|
+
stall_offline_updated_at: string;
|
|
158
|
+
stall_offline_deleted_at: string;
|
|
160
159
|
[key: string]: any;
|
|
161
160
|
};
|
|
162
161
|
linked_products: string[];
|
package/src/promotions.d.ts
CHANGED
|
@@ -20,10 +20,10 @@ export interface UnifiedPromotion {
|
|
|
20
20
|
/** How the promotion applies */
|
|
21
21
|
application: UnifiedPromotionApplication;
|
|
22
22
|
metadata: {
|
|
23
|
-
stall_offline_id
|
|
24
|
-
stall_offline_created_at
|
|
25
|
-
stall_offline_updated_at
|
|
26
|
-
stall_offline_deleted_at
|
|
23
|
+
stall_offline_id: string;
|
|
24
|
+
stall_offline_created_at: string;
|
|
25
|
+
stall_offline_updated_at: string;
|
|
26
|
+
stall_offline_deleted_at: string;
|
|
27
27
|
[key: string]: unknown;
|
|
28
28
|
};
|
|
29
29
|
}
|
package/src/taxes.d.ts
CHANGED
|
@@ -10,35 +10,35 @@ export interface UnifiedTaxRegionType {
|
|
|
10
10
|
tax_inclusive: boolean; // Whether prices include tax
|
|
11
11
|
is_default?: boolean; // Whether this is the default region
|
|
12
12
|
metadata: {
|
|
13
|
-
stall_offline_id
|
|
14
|
-
stall_offline_created_at
|
|
15
|
-
stall_offline_updated_at
|
|
16
|
-
stall_offline_deleted_at
|
|
17
|
-
[key: string]:
|
|
13
|
+
stall_offline_id: string;
|
|
14
|
+
stall_offline_created_at: string;
|
|
15
|
+
stall_offline_updated_at: string;
|
|
16
|
+
stall_offline_deleted_at: string;
|
|
17
|
+
[key: string]: any;
|
|
18
18
|
}; // Additional metadata
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export interface UnifiedTaxClassType {
|
|
22
|
-
id: string; // Unique ID for the tax class
|
|
23
|
-
region_id: string; // Links to TaxZone
|
|
24
|
-
name: string; // Name (e.g., "Standard", "Reduced", "Exempt")
|
|
25
|
-
metadata: { [key: string]: any }; // Additional metadata
|
|
26
|
-
}
|
|
27
|
-
|
|
28
21
|
export interface UnifiedTaxRateType {
|
|
29
22
|
id: string; // Unique identifier
|
|
30
|
-
|
|
23
|
+
name: string; // Name (e.g., "Standard", "Reduced", "Exempt","VAT")
|
|
31
24
|
region_id: string; // Links to TaxRegion
|
|
25
|
+
state: string; // Optional state/province (e.g., "CA")
|
|
32
26
|
rate: number; // Tax rate (e.g., 0.2 for 20%)
|
|
33
27
|
type: "percentage" | "fixed"; // Type of tax
|
|
34
28
|
code: string; // Optional description
|
|
35
29
|
compound: boolean; // Whether this is a compound tax rate
|
|
36
30
|
priority: number; // Priority order
|
|
31
|
+
roles: UnifiedTaxRateRule[]; // Optionally apply/override to x without including the entire region
|
|
37
32
|
metadata: {
|
|
38
|
-
stall_offline_id
|
|
39
|
-
stall_offline_created_at
|
|
40
|
-
stall_offline_updated_at
|
|
41
|
-
stall_offline_deleted_at
|
|
33
|
+
stall_offline_id: string;
|
|
34
|
+
stall_offline_created_at: string;
|
|
35
|
+
stall_offline_updated_at: string;
|
|
36
|
+
stall_offline_deleted_at: string;
|
|
42
37
|
[key: string]: any;
|
|
43
38
|
}; // Additional metadata
|
|
44
39
|
}
|
|
40
|
+
|
|
41
|
+
export interface UnifiedTaxRateRule {
|
|
42
|
+
type: "collection" | "product" | "category" | "product_type";
|
|
43
|
+
value: string;
|
|
44
|
+
}
|