@use-stall/types 0.3.12 → 0.3.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-stall/types",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "Type declarations for Stall SDKs",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
@@ -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;
@@ -1,4 +1,13 @@
1
- import type { ConnectorConfigurationType } from "./connectors";
1
+ export interface OrganizationDBConfig {
2
+ refresh_token?: string; // gsheets only — stored encrypted
3
+ database_url?: string; // postgres only — stored encrypted
4
+ spreadsheet_id?: string; // gsheets only — stored after first seed, stored encrypted
5
+ }
6
+
7
+ export interface OrganizationDBType {
8
+ type: "default" | "postgres" | "gsheets";
9
+ config: OrganizationDBConfig;
10
+ }
2
11
 
3
12
  export interface OrganizationType {
4
13
  id: string;
@@ -23,7 +32,7 @@ export interface OrganizationType {
23
32
  emails: string[]; // Other email addresses with access, the primary one is the one with matching the owner uid
24
33
  created_at: number;
25
34
  updated_at: number;
26
- connector?: ConnectorConfigurationType;
35
+ db: OrganizationDBType;
27
36
  timezone: string;
28
37
  onboarded: boolean;
29
38
  country: string;
package/src/product.d.ts CHANGED
@@ -161,8 +161,8 @@ export interface UnifiedCollectionType {
161
161
  };
162
162
  linked_products: string[];
163
163
  linked_categories: string[];
164
- createAt: string;
165
- lastUpdatedAt: string;
164
+ created_at: string;
165
+ updated_at: string;
166
166
  }
167
167
 
168
168
  export interface UnifiedBrandType {