@use-stall/types 0.3.14 → 0.3.15
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/locations.d.ts +1 -0
- package/src/orders.d.ts +1 -0
- package/src/product.d.ts +4 -0
- 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/locations.d.ts
CHANGED
package/src/orders.d.ts
CHANGED
package/src/product.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface UnifiedProductType {
|
|
|
10
10
|
updated_at: string;
|
|
11
11
|
deleted_at: string;
|
|
12
12
|
channels: string[]; // Channel ids of where this product is available
|
|
13
|
+
sales_channels: string[];
|
|
13
14
|
status: "draft" | "private" | "publish" | "pending";
|
|
14
15
|
type: "simple" | "variable" | "grouped";
|
|
15
16
|
thumbnail: string;
|
|
@@ -87,6 +88,7 @@ export interface UnifiedVariantsType {
|
|
|
87
88
|
date: string;
|
|
88
89
|
title: string;
|
|
89
90
|
description: string;
|
|
91
|
+
sales_channels: string[];
|
|
90
92
|
price: number | string;
|
|
91
93
|
cost_price: number | string;
|
|
92
94
|
sale_price: number | string;
|
|
@@ -135,6 +137,7 @@ export interface UnifiedCategoryType {
|
|
|
135
137
|
name: string;
|
|
136
138
|
description: string;
|
|
137
139
|
thumbnail: string;
|
|
140
|
+
sales_channels: string[];
|
|
138
141
|
metadata: {
|
|
139
142
|
stall_offline_id: string;
|
|
140
143
|
stall_offline_created_at: string;
|
|
@@ -152,6 +155,7 @@ export interface UnifiedCollectionType {
|
|
|
152
155
|
name: string;
|
|
153
156
|
description: string;
|
|
154
157
|
thumbnail: string;
|
|
158
|
+
sales_channels: string[];
|
|
155
159
|
metadata: {
|
|
156
160
|
stall_offline_id: string;
|
|
157
161
|
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
|
+
}
|