@use-stall/types 0.3.14 → 0.3.16
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/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/fulfillment.d.ts +1 -0
- package/src/inventory.d.ts +4 -4
- package/src/locations.d.ts +1 -0
- package/src/orders.d.ts +1 -0
- package/src/product.d.ts +14 -28
- package/src/sales-channels.d.ts +28 -0
package/index.d.ts
CHANGED
package/package.json
CHANGED
package/src/fulfillment.d.ts
CHANGED
package/src/inventory.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
export interface
|
|
2
|
+
export interface UnifiedInventoryItemType {
|
|
3
3
|
id: string;
|
|
4
4
|
location_id: string;
|
|
5
5
|
product_id: string;
|
|
@@ -8,7 +8,7 @@ export interface UnifiedInventoryLevelType {
|
|
|
8
8
|
committed: number | string; // Items reserved for existing orders but not yet shipped
|
|
9
9
|
in_stock: number | string; // Items available for new orders (In Stock)
|
|
10
10
|
on_hand: number | string; // Total items physically present at the location
|
|
11
|
-
low_stock_threshold: number | string;
|
|
11
|
+
low_stock_threshold: number | string;
|
|
12
12
|
last_updated_at: string;
|
|
13
13
|
created_at: string;
|
|
14
14
|
metadata: {
|
|
@@ -20,7 +20,7 @@ export interface UnifiedInventoryLevelType {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export interface
|
|
23
|
+
export interface ExtendedUnifiedInventoryItemType extends UnifiedInventoryItemType {
|
|
24
24
|
title: string;
|
|
25
25
|
thumbnail: string;
|
|
26
26
|
options: string[];
|
|
@@ -30,7 +30,7 @@ export interface ExtendedUnifiedInventoryLevelType extends UnifiedInventoryLevel
|
|
|
30
30
|
export interface InventoryAdjustmentRequestType {
|
|
31
31
|
id: string;
|
|
32
32
|
batch?: string;
|
|
33
|
-
items:
|
|
33
|
+
items: ExtendedUnifiedInventoryItemType[];
|
|
34
34
|
reason: string;
|
|
35
35
|
location_id: string;
|
|
36
36
|
organization_id: string;
|
package/src/locations.d.ts
CHANGED
package/src/orders.d.ts
CHANGED
package/src/product.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export interface UnifiedProductType {
|
|
2
2
|
id: string;
|
|
3
|
-
sku: string;
|
|
4
|
-
barcode: string;
|
|
5
3
|
title: string;
|
|
6
4
|
handle: string;
|
|
7
5
|
description: string;
|
|
@@ -9,7 +7,7 @@ export interface UnifiedProductType {
|
|
|
9
7
|
created_at: string;
|
|
10
8
|
updated_at: string;
|
|
11
9
|
deleted_at: string;
|
|
12
|
-
|
|
10
|
+
sales_channels: string[];
|
|
13
11
|
status: "draft" | "private" | "publish" | "pending";
|
|
14
12
|
type: "simple" | "variable" | "grouped";
|
|
15
13
|
thumbnail: string;
|
|
@@ -19,29 +17,17 @@ export interface UnifiedProductType {
|
|
|
19
17
|
categories: string[];
|
|
20
18
|
attributes: UnifiedAttributeType[];
|
|
21
19
|
collections: string[];
|
|
22
|
-
variants: string[];
|
|
23
|
-
price: number | string;
|
|
24
|
-
sale_price: number | string;
|
|
25
|
-
price_currency: string;
|
|
26
|
-
cost_price: number | string;
|
|
27
|
-
taxable: boolean;
|
|
28
|
-
tax_class: string; // class id
|
|
29
|
-
on_sale: boolean;
|
|
30
|
-
track_inventory: boolean;
|
|
31
|
-
unavailable: number | string; // Items not available for sale (e.g., damaged, expired)
|
|
32
|
-
committed: number | string; // Items reserved for existing orders but not yet shipped
|
|
33
|
-
in_stock: number | string; // Items available for new orders (In Stock)
|
|
34
|
-
on_hand: number | string; // Total items physically present at the location
|
|
35
|
-
low_stock_threshold: number | string; // Low stock threshold specific to the location'
|
|
36
20
|
locations: string[];
|
|
37
21
|
weight: string;
|
|
22
|
+
taxable: boolean;
|
|
23
|
+
tax_class: string;
|
|
38
24
|
metadata: {
|
|
39
25
|
stall_offline_id: string;
|
|
40
26
|
stall_offline_created_at: string;
|
|
41
27
|
stall_offline_updated_at: string;
|
|
42
28
|
stall_offline_deleted_at: string;
|
|
43
29
|
[key: string]: any;
|
|
44
|
-
};
|
|
30
|
+
};
|
|
45
31
|
}
|
|
46
32
|
|
|
47
33
|
export interface UnifiedTagProductTag {
|
|
@@ -87,20 +73,18 @@ export interface UnifiedVariantsType {
|
|
|
87
73
|
date: string;
|
|
88
74
|
title: string;
|
|
89
75
|
description: string;
|
|
76
|
+
sales_channels: string[];
|
|
90
77
|
price: number | string;
|
|
91
78
|
cost_price: number | string;
|
|
92
79
|
sale_price: number | string;
|
|
80
|
+
price_currency: string;
|
|
93
81
|
on_sale: boolean;
|
|
94
82
|
status: "draft" | "private" | "publish" | "pending";
|
|
95
83
|
track_inventory: boolean;
|
|
96
|
-
unavailable?: number | string; // Items not available for sale (e.g., damaged, expired)
|
|
97
|
-
committed?: number | string; // Items reserved for existing orders but not yet shipped
|
|
98
|
-
in_stock: number | string; // Items available for new orders (In Stock)
|
|
99
|
-
on_hand?: number | string; // Total items physically present at the location
|
|
100
|
-
low_stock_threshold: number | string; // Low stock threshold specific to the location
|
|
101
84
|
weight: string;
|
|
102
85
|
thumbnail: string;
|
|
103
86
|
attributes: UnifiedVariantsAttributeType[];
|
|
87
|
+
default: boolean;
|
|
104
88
|
metadata: {
|
|
105
89
|
stall_offline_id: string;
|
|
106
90
|
stall_offline_created_at: string;
|
|
@@ -121,11 +105,11 @@ export interface UnifiedLocationStockType {
|
|
|
121
105
|
location_id: string;
|
|
122
106
|
product_id: string;
|
|
123
107
|
variant_id: string;
|
|
124
|
-
unavailable: number | string;
|
|
125
|
-
committed: number | string;
|
|
126
|
-
in_stock: number | string;
|
|
127
|
-
on_hand: number | string;
|
|
128
|
-
low_stock_threshold: number | string;
|
|
108
|
+
unavailable: number | string;
|
|
109
|
+
committed: number | string;
|
|
110
|
+
in_stock: number | string;
|
|
111
|
+
on_hand: number | string;
|
|
112
|
+
low_stock_threshold: number | string;
|
|
129
113
|
last_updatedAt: string;
|
|
130
114
|
created_at: string;
|
|
131
115
|
}
|
|
@@ -135,6 +119,7 @@ export interface UnifiedCategoryType {
|
|
|
135
119
|
name: string;
|
|
136
120
|
description: string;
|
|
137
121
|
thumbnail: string;
|
|
122
|
+
sales_channels: string[];
|
|
138
123
|
metadata: {
|
|
139
124
|
stall_offline_id: string;
|
|
140
125
|
stall_offline_created_at: string;
|
|
@@ -152,6 +137,7 @@ export interface UnifiedCollectionType {
|
|
|
152
137
|
name: string;
|
|
153
138
|
description: string;
|
|
154
139
|
thumbnail: string;
|
|
140
|
+
sales_channels: string[];
|
|
155
141
|
metadata: {
|
|
156
142
|
stall_offline_id: string;
|
|
157
143
|
stall_offline_created_at: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface UnifiedSalesChannelType {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
active: boolean;
|
|
6
|
+
version: number;
|
|
7
|
+
logo: string;
|
|
8
|
+
integration_url: string;
|
|
9
|
+
configs: Record<string, unknown>;
|
|
10
|
+
metadata: Record<string, unknown>;
|
|
11
|
+
created_at: string;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
deleted_at: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface UnifiedOrganizationSalesChannelType {
|
|
17
|
+
id: string;
|
|
18
|
+
channel: {
|
|
19
|
+
id: string;
|
|
20
|
+
version: number;
|
|
21
|
+
};
|
|
22
|
+
active: boolean;
|
|
23
|
+
configs: Record<string, unknown>;
|
|
24
|
+
metadata: Record<string, unknown>;
|
|
25
|
+
created_at: string;
|
|
26
|
+
updated_at: string;
|
|
27
|
+
deleted_at: string;
|
|
28
|
+
}
|