@use-stall/types 0.2.10 → 0.2.12

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.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "Type declarations for Stall SDKs",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
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: Record<string, any>;
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: Record<string, unknown>;
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 =
package/src/taxes.d.ts CHANGED
@@ -28,7 +28,7 @@ export interface UnifiedTaxRateType {
28
28
  code: string; // Optional description
29
29
  compound: boolean; // Whether this is a compound tax rate
30
30
  priority: number; // Priority order
31
- roles: UnifiedTaxRateRule[]; // Optionally apply/override to x without including the entire region
31
+ rules: UnifiedTaxRateRule[]; // Optionally apply/override to x without including the entire region
32
32
  metadata: {
33
33
  stall_offline_id: string;
34
34
  stall_offline_created_at: string;