@use-stall/types 0.3.13 → 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 CHANGED
@@ -25,4 +25,5 @@ export * from "./src/connectors";
25
25
  export * from "./src/pin-auth";
26
26
  export * from "./src/integrations";
27
27
  export * from "./src/promotions";
28
+ export * from "./src/sales-channels";
28
29
  export * from "./src/core-sdk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-stall/types",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "Type declarations for Stall SDKs",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
@@ -62,6 +62,7 @@ export interface UnifiedFulfillmentLineItem {
62
62
  export interface UnifiedFulfillmentType {
63
63
  id: string;
64
64
  order_id: string;
65
+ sales_channel: string;
65
66
  tracking_number: string;
66
67
  method: string;
67
68
  provider: string;
@@ -9,7 +9,7 @@ export interface UnifiedInventoryLevelType {
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
11
  low_stock_threshold: number | string; // Low stock threshold specific to the location
12
- last_updatedAt: string;
12
+ last_updated_at: string;
13
13
  created_at: string;
14
14
  metadata: {
15
15
  stall_offline_id: string;
@@ -8,6 +8,7 @@ export interface UnifiedLocationType {
8
8
  base_currency: string;
9
9
  timezone: string;
10
10
  organization_id: string;
11
+ sales_channels: string[];
11
12
  created_at: string;
12
13
  updated_at: string;
13
14
  active: boolean;
package/src/orders.d.ts CHANGED
@@ -22,6 +22,7 @@ export interface UnifiedOrderType {
22
22
  location_id: string;
23
23
  organization_id: string;
24
24
  channel_id: string;
25
+ sales_channel: string;
25
26
  device_id: string;
26
27
  staff_id: string;
27
28
  order_number: string;
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;
@@ -161,8 +165,8 @@ export interface UnifiedCollectionType {
161
165
  };
162
166
  linked_products: string[];
163
167
  linked_categories: string[];
164
- createAt: string;
165
- lastUpdatedAt: string;
168
+ created_at: string;
169
+ updated_at: string;
166
170
  }
167
171
 
168
172
  export interface UnifiedBrandType {
@@ -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
+ }