@use-stall/types 0.2.9 → 0.2.11
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/orders.d.ts +14 -6
- package/src/payments.d.ts +18 -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/orders.d.ts
CHANGED
|
@@ -134,7 +134,13 @@ export interface UnifiedOrderRefundType {
|
|
|
134
134
|
status: "pending" | "processing" | "completed" | "cancelled" | "failed";
|
|
135
135
|
restock: boolean;
|
|
136
136
|
refund_type: "amount" | "line_items";
|
|
137
|
-
metadata:
|
|
137
|
+
metadata: {
|
|
138
|
+
stall_offline_id: string;
|
|
139
|
+
stall_offline_created_at: string;
|
|
140
|
+
stall_offline_updated_at: string;
|
|
141
|
+
stall_offline_deleted_at: string;
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
};
|
|
138
144
|
line_items: {
|
|
139
145
|
id: string;
|
|
140
146
|
quantity: number;
|
|
@@ -146,10 +152,6 @@ export interface UnifiedOrderRefundType {
|
|
|
146
152
|
device_id: string;
|
|
147
153
|
location_id: string;
|
|
148
154
|
organization_id: string;
|
|
149
|
-
stall_offline_id: string;
|
|
150
|
-
stall_offline_created_at: string;
|
|
151
|
-
stall_offline_updated_at: string;
|
|
152
|
-
stall_offline_deleted_at: string;
|
|
153
155
|
}
|
|
154
156
|
|
|
155
157
|
export interface UnifiedOrderNote {
|
|
@@ -161,5 +163,11 @@ export interface UnifiedOrderNote {
|
|
|
161
163
|
created_by: string;
|
|
162
164
|
created_at: string;
|
|
163
165
|
updated_at: string;
|
|
164
|
-
metadata:
|
|
166
|
+
metadata: {
|
|
167
|
+
stall_offline_id: string;
|
|
168
|
+
stall_offline_created_at: string;
|
|
169
|
+
stall_offline_updated_at: string;
|
|
170
|
+
stall_offline_deleted_at: string;
|
|
171
|
+
[key: string]: unknown;
|
|
172
|
+
};
|
|
165
173
|
}
|
package/src/payments.d.ts
CHANGED
|
@@ -18,6 +18,13 @@ export interface UnifiedPaymentProviderType {
|
|
|
18
18
|
integration_url: string;
|
|
19
19
|
integration_docs: string;
|
|
20
20
|
active: boolean;
|
|
21
|
+
metadata: {
|
|
22
|
+
stall_offline_id: string;
|
|
23
|
+
stall_offline_created_at: string;
|
|
24
|
+
stall_offline_updated_at: string;
|
|
25
|
+
stall_offline_deleted_at: string;
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
21
28
|
}
|
|
22
29
|
|
|
23
30
|
export interface UnifiedPaymentMethodType {
|
|
@@ -36,6 +43,13 @@ export interface UnifiedPaymentProviderConfigType {
|
|
|
36
43
|
manual_methods?: string[];
|
|
37
44
|
created_at: string;
|
|
38
45
|
updated_at: string;
|
|
46
|
+
metadata: {
|
|
47
|
+
stall_offline_id: string;
|
|
48
|
+
stall_offline_created_at: string;
|
|
49
|
+
stall_offline_updated_at: string;
|
|
50
|
+
stall_offline_deleted_at: string;
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
39
53
|
}
|
|
40
54
|
|
|
41
55
|
export type UnifiedPaymentCollectionStatus =
|
|
@@ -72,10 +86,10 @@ export interface UnifiedPaymentCollectionType {
|
|
|
72
86
|
payment_method: UnifiedPaymentMethodType;
|
|
73
87
|
note: string;
|
|
74
88
|
metadata: {
|
|
75
|
-
stall_offline_id
|
|
76
|
-
stall_offline_created_at
|
|
77
|
-
stall_offline_updated_at
|
|
78
|
-
stall_offline_deleted_at
|
|
89
|
+
stall_offline_id: string;
|
|
90
|
+
stall_offline_created_at: string;
|
|
91
|
+
stall_offline_updated_at: string;
|
|
92
|
+
stall_offline_deleted_at: string;
|
|
79
93
|
[key: string]: any;
|
|
80
94
|
};
|
|
81
95
|
}
|
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
|
+
}
|