@tonytang99/integration-canonical 1.0.0 → 1.1.0

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.
Files changed (38) hide show
  1. package/README.md +414 -1
  2. package/dist/index.d.ts +5 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +80 -15
  5. package/dist/index.js.map +1 -1
  6. package/dist/schemas/customer.d.ts +746 -0
  7. package/dist/schemas/customer.d.ts.map +1 -0
  8. package/dist/schemas/customer.js +282 -0
  9. package/dist/schemas/customer.js.map +1 -0
  10. package/dist/schemas/index.d.ts +13 -0
  11. package/dist/schemas/index.d.ts.map +1 -0
  12. package/dist/schemas/index.js +33 -0
  13. package/dist/schemas/index.js.map +1 -0
  14. package/dist/schemas/inventory.d.ts +1642 -0
  15. package/dist/schemas/inventory.d.ts.map +1 -0
  16. package/dist/schemas/inventory.js +302 -0
  17. package/dist/schemas/inventory.js.map +1 -0
  18. package/dist/schemas/order.d.ts +1339 -0
  19. package/dist/schemas/order.d.ts.map +1 -0
  20. package/dist/schemas/order.js +310 -0
  21. package/dist/schemas/order.js.map +1 -0
  22. package/dist/schemas/product.d.ts +717 -0
  23. package/dist/schemas/product.d.ts.map +1 -0
  24. package/dist/schemas/product.js +303 -0
  25. package/dist/schemas/product.js.map +1 -0
  26. package/dist/slots.d.ts +572 -0
  27. package/dist/slots.d.ts.map +1 -0
  28. package/dist/slots.js +20 -0
  29. package/dist/slots.js.map +1 -0
  30. package/dist/types/common.d.ts +284 -0
  31. package/dist/types/common.d.ts.map +1 -0
  32. package/dist/types/common.js +401 -0
  33. package/dist/types/common.js.map +1 -0
  34. package/dist/types/enrichments.d.ts +378 -0
  35. package/dist/types/enrichments.d.ts.map +1 -0
  36. package/dist/types/enrichments.js +96 -0
  37. package/dist/types/enrichments.js.map +1 -0
  38. package/package.json +2 -1
@@ -0,0 +1,1642 @@
1
+ import { z } from 'zod';
2
+ export declare const LocationType: z.ZodEnum<["warehouse", "store", "supplier", "dropship", "virtual", "consignment", "transit"]>;
3
+ export type LocationType = z.infer<typeof LocationType>;
4
+ export declare const InventoryLocationSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ name: z.ZodString;
7
+ code: z.ZodString;
8
+ type: z.ZodEnum<["warehouse", "store", "supplier", "dropship", "virtual", "consignment", "transit"]>;
9
+ address: z.ZodOptional<z.ZodObject<{
10
+ street1: z.ZodString;
11
+ street2: z.ZodOptional<z.ZodString>;
12
+ street3: z.ZodOptional<z.ZodString>;
13
+ city: z.ZodString;
14
+ state: z.ZodOptional<z.ZodString>;
15
+ stateCode: z.ZodOptional<z.ZodString>;
16
+ postalCode: z.ZodString;
17
+ country: z.ZodString;
18
+ countryCode: z.ZodOptional<z.ZodEnum<["US", "CA", "GB", "AU", "NZ", "DE", "FR", "IT", "ES", "NL", "BE", "CH", "AT", "SE", "NO", "DK", "FI", "IE", "PT", "PL", "CZ", "JP", "CN", "IN", "SG", "HK", "MX", "BR", "ZA"]>>;
19
+ company: z.ZodOptional<z.ZodString>;
20
+ firstName: z.ZodOptional<z.ZodString>;
21
+ lastName: z.ZodOptional<z.ZodString>;
22
+ phone: z.ZodOptional<z.ZodString>;
23
+ email: z.ZodOptional<z.ZodString>;
24
+ type: z.ZodOptional<z.ZodEnum<["billing", "shipping", "both"]>>;
25
+ isDefault: z.ZodOptional<z.ZodBoolean>;
26
+ isResidential: z.ZodOptional<z.ZodBoolean>;
27
+ isValidated: z.ZodOptional<z.ZodBoolean>;
28
+ validationSource: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ street1: string;
31
+ city: string;
32
+ postalCode: string;
33
+ country: string;
34
+ type?: "billing" | "shipping" | "both" | undefined;
35
+ street2?: string | undefined;
36
+ street3?: string | undefined;
37
+ state?: string | undefined;
38
+ stateCode?: string | undefined;
39
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
40
+ company?: string | undefined;
41
+ firstName?: string | undefined;
42
+ lastName?: string | undefined;
43
+ phone?: string | undefined;
44
+ email?: string | undefined;
45
+ isDefault?: boolean | undefined;
46
+ isResidential?: boolean | undefined;
47
+ isValidated?: boolean | undefined;
48
+ validationSource?: string | undefined;
49
+ }, {
50
+ street1: string;
51
+ city: string;
52
+ postalCode: string;
53
+ country: string;
54
+ type?: "billing" | "shipping" | "both" | undefined;
55
+ street2?: string | undefined;
56
+ street3?: string | undefined;
57
+ state?: string | undefined;
58
+ stateCode?: string | undefined;
59
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
60
+ company?: string | undefined;
61
+ firstName?: string | undefined;
62
+ lastName?: string | undefined;
63
+ phone?: string | undefined;
64
+ email?: string | undefined;
65
+ isDefault?: boolean | undefined;
66
+ isResidential?: boolean | undefined;
67
+ isValidated?: boolean | undefined;
68
+ validationSource?: string | undefined;
69
+ }>>;
70
+ contactName: z.ZodOptional<z.ZodString>;
71
+ contactPhone: z.ZodOptional<z.ZodString>;
72
+ contactEmail: z.ZodOptional<z.ZodString>;
73
+ isActive: z.ZodOptional<z.ZodBoolean>;
74
+ isFulfillmentCenter: z.ZodOptional<z.ZodBoolean>;
75
+ priority: z.ZodOptional<z.ZodNumber>;
76
+ timezone: z.ZodOptional<z.ZodString>;
77
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ code: string;
80
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
81
+ id: string;
82
+ name: string;
83
+ metadata?: Record<string, unknown> | undefined;
84
+ timezone?: string | undefined;
85
+ address?: {
86
+ street1: string;
87
+ city: string;
88
+ postalCode: string;
89
+ country: string;
90
+ type?: "billing" | "shipping" | "both" | undefined;
91
+ street2?: string | undefined;
92
+ street3?: string | undefined;
93
+ state?: string | undefined;
94
+ stateCode?: string | undefined;
95
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
96
+ company?: string | undefined;
97
+ firstName?: string | undefined;
98
+ lastName?: string | undefined;
99
+ phone?: string | undefined;
100
+ email?: string | undefined;
101
+ isDefault?: boolean | undefined;
102
+ isResidential?: boolean | undefined;
103
+ isValidated?: boolean | undefined;
104
+ validationSource?: string | undefined;
105
+ } | undefined;
106
+ contactName?: string | undefined;
107
+ contactPhone?: string | undefined;
108
+ contactEmail?: string | undefined;
109
+ isActive?: boolean | undefined;
110
+ isFulfillmentCenter?: boolean | undefined;
111
+ priority?: number | undefined;
112
+ }, {
113
+ code: string;
114
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
115
+ id: string;
116
+ name: string;
117
+ metadata?: Record<string, unknown> | undefined;
118
+ timezone?: string | undefined;
119
+ address?: {
120
+ street1: string;
121
+ city: string;
122
+ postalCode: string;
123
+ country: string;
124
+ type?: "billing" | "shipping" | "both" | undefined;
125
+ street2?: string | undefined;
126
+ street3?: string | undefined;
127
+ state?: string | undefined;
128
+ stateCode?: string | undefined;
129
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
130
+ company?: string | undefined;
131
+ firstName?: string | undefined;
132
+ lastName?: string | undefined;
133
+ phone?: string | undefined;
134
+ email?: string | undefined;
135
+ isDefault?: boolean | undefined;
136
+ isResidential?: boolean | undefined;
137
+ isValidated?: boolean | undefined;
138
+ validationSource?: string | undefined;
139
+ } | undefined;
140
+ contactName?: string | undefined;
141
+ contactPhone?: string | undefined;
142
+ contactEmail?: string | undefined;
143
+ isActive?: boolean | undefined;
144
+ isFulfillmentCenter?: boolean | undefined;
145
+ priority?: number | undefined;
146
+ }>;
147
+ export type InventoryLocation = z.infer<typeof InventoryLocationSchema>;
148
+ export declare const InventoryLevelSchema: z.ZodObject<{
149
+ sku: z.ZodString;
150
+ location: z.ZodObject<{
151
+ id: z.ZodString;
152
+ name: z.ZodString;
153
+ code: z.ZodString;
154
+ type: z.ZodEnum<["warehouse", "store", "supplier", "dropship", "virtual", "consignment", "transit"]>;
155
+ address: z.ZodOptional<z.ZodObject<{
156
+ street1: z.ZodString;
157
+ street2: z.ZodOptional<z.ZodString>;
158
+ street3: z.ZodOptional<z.ZodString>;
159
+ city: z.ZodString;
160
+ state: z.ZodOptional<z.ZodString>;
161
+ stateCode: z.ZodOptional<z.ZodString>;
162
+ postalCode: z.ZodString;
163
+ country: z.ZodString;
164
+ countryCode: z.ZodOptional<z.ZodEnum<["US", "CA", "GB", "AU", "NZ", "DE", "FR", "IT", "ES", "NL", "BE", "CH", "AT", "SE", "NO", "DK", "FI", "IE", "PT", "PL", "CZ", "JP", "CN", "IN", "SG", "HK", "MX", "BR", "ZA"]>>;
165
+ company: z.ZodOptional<z.ZodString>;
166
+ firstName: z.ZodOptional<z.ZodString>;
167
+ lastName: z.ZodOptional<z.ZodString>;
168
+ phone: z.ZodOptional<z.ZodString>;
169
+ email: z.ZodOptional<z.ZodString>;
170
+ type: z.ZodOptional<z.ZodEnum<["billing", "shipping", "both"]>>;
171
+ isDefault: z.ZodOptional<z.ZodBoolean>;
172
+ isResidential: z.ZodOptional<z.ZodBoolean>;
173
+ isValidated: z.ZodOptional<z.ZodBoolean>;
174
+ validationSource: z.ZodOptional<z.ZodString>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ street1: string;
177
+ city: string;
178
+ postalCode: string;
179
+ country: string;
180
+ type?: "billing" | "shipping" | "both" | undefined;
181
+ street2?: string | undefined;
182
+ street3?: string | undefined;
183
+ state?: string | undefined;
184
+ stateCode?: string | undefined;
185
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
186
+ company?: string | undefined;
187
+ firstName?: string | undefined;
188
+ lastName?: string | undefined;
189
+ phone?: string | undefined;
190
+ email?: string | undefined;
191
+ isDefault?: boolean | undefined;
192
+ isResidential?: boolean | undefined;
193
+ isValidated?: boolean | undefined;
194
+ validationSource?: string | undefined;
195
+ }, {
196
+ street1: string;
197
+ city: string;
198
+ postalCode: string;
199
+ country: string;
200
+ type?: "billing" | "shipping" | "both" | undefined;
201
+ street2?: string | undefined;
202
+ street3?: string | undefined;
203
+ state?: string | undefined;
204
+ stateCode?: string | undefined;
205
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
206
+ company?: string | undefined;
207
+ firstName?: string | undefined;
208
+ lastName?: string | undefined;
209
+ phone?: string | undefined;
210
+ email?: string | undefined;
211
+ isDefault?: boolean | undefined;
212
+ isResidential?: boolean | undefined;
213
+ isValidated?: boolean | undefined;
214
+ validationSource?: string | undefined;
215
+ }>>;
216
+ contactName: z.ZodOptional<z.ZodString>;
217
+ contactPhone: z.ZodOptional<z.ZodString>;
218
+ contactEmail: z.ZodOptional<z.ZodString>;
219
+ isActive: z.ZodOptional<z.ZodBoolean>;
220
+ isFulfillmentCenter: z.ZodOptional<z.ZodBoolean>;
221
+ priority: z.ZodOptional<z.ZodNumber>;
222
+ timezone: z.ZodOptional<z.ZodString>;
223
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ code: string;
226
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
227
+ id: string;
228
+ name: string;
229
+ metadata?: Record<string, unknown> | undefined;
230
+ timezone?: string | undefined;
231
+ address?: {
232
+ street1: string;
233
+ city: string;
234
+ postalCode: string;
235
+ country: string;
236
+ type?: "billing" | "shipping" | "both" | undefined;
237
+ street2?: string | undefined;
238
+ street3?: string | undefined;
239
+ state?: string | undefined;
240
+ stateCode?: string | undefined;
241
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
242
+ company?: string | undefined;
243
+ firstName?: string | undefined;
244
+ lastName?: string | undefined;
245
+ phone?: string | undefined;
246
+ email?: string | undefined;
247
+ isDefault?: boolean | undefined;
248
+ isResidential?: boolean | undefined;
249
+ isValidated?: boolean | undefined;
250
+ validationSource?: string | undefined;
251
+ } | undefined;
252
+ contactName?: string | undefined;
253
+ contactPhone?: string | undefined;
254
+ contactEmail?: string | undefined;
255
+ isActive?: boolean | undefined;
256
+ isFulfillmentCenter?: boolean | undefined;
257
+ priority?: number | undefined;
258
+ }, {
259
+ code: string;
260
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
261
+ id: string;
262
+ name: string;
263
+ metadata?: Record<string, unknown> | undefined;
264
+ timezone?: string | undefined;
265
+ address?: {
266
+ street1: string;
267
+ city: string;
268
+ postalCode: string;
269
+ country: string;
270
+ type?: "billing" | "shipping" | "both" | undefined;
271
+ street2?: string | undefined;
272
+ street3?: string | undefined;
273
+ state?: string | undefined;
274
+ stateCode?: string | undefined;
275
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
276
+ company?: string | undefined;
277
+ firstName?: string | undefined;
278
+ lastName?: string | undefined;
279
+ phone?: string | undefined;
280
+ email?: string | undefined;
281
+ isDefault?: boolean | undefined;
282
+ isResidential?: boolean | undefined;
283
+ isValidated?: boolean | undefined;
284
+ validationSource?: string | undefined;
285
+ } | undefined;
286
+ contactName?: string | undefined;
287
+ contactPhone?: string | undefined;
288
+ contactEmail?: string | undefined;
289
+ isActive?: boolean | undefined;
290
+ isFulfillmentCenter?: boolean | undefined;
291
+ priority?: number | undefined;
292
+ }>;
293
+ quantityOnHand: z.ZodNumber;
294
+ quantityReserved: z.ZodNumber;
295
+ quantityAvailable: z.ZodNumber;
296
+ quantityIncoming: z.ZodNumber;
297
+ quantityDamaged: z.ZodOptional<z.ZodNumber>;
298
+ quantityInTransit: z.ZodOptional<z.ZodNumber>;
299
+ reorderPoint: z.ZodOptional<z.ZodNumber>;
300
+ reorderQuantity: z.ZodOptional<z.ZodNumber>;
301
+ maxQuantity: z.ZodOptional<z.ZodNumber>;
302
+ unitCost: z.ZodOptional<z.ZodObject<{
303
+ amount: z.ZodNumber;
304
+ currency: z.ZodString;
305
+ }, "strip", z.ZodTypeAny, {
306
+ amount: number;
307
+ currency: string;
308
+ }, {
309
+ amount: number;
310
+ currency: string;
311
+ }>>;
312
+ lastCounted: z.ZodOptional<z.ZodString>;
313
+ lastAdjusted: z.ZodOptional<z.ZodString>;
314
+ lastMovement: z.ZodOptional<z.ZodString>;
315
+ binLocation: z.ZodOptional<z.ZodString>;
316
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ sku: string;
319
+ location: {
320
+ code: string;
321
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
322
+ id: string;
323
+ name: string;
324
+ metadata?: Record<string, unknown> | undefined;
325
+ timezone?: string | undefined;
326
+ address?: {
327
+ street1: string;
328
+ city: string;
329
+ postalCode: string;
330
+ country: string;
331
+ type?: "billing" | "shipping" | "both" | undefined;
332
+ street2?: string | undefined;
333
+ street3?: string | undefined;
334
+ state?: string | undefined;
335
+ stateCode?: string | undefined;
336
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
337
+ company?: string | undefined;
338
+ firstName?: string | undefined;
339
+ lastName?: string | undefined;
340
+ phone?: string | undefined;
341
+ email?: string | undefined;
342
+ isDefault?: boolean | undefined;
343
+ isResidential?: boolean | undefined;
344
+ isValidated?: boolean | undefined;
345
+ validationSource?: string | undefined;
346
+ } | undefined;
347
+ contactName?: string | undefined;
348
+ contactPhone?: string | undefined;
349
+ contactEmail?: string | undefined;
350
+ isActive?: boolean | undefined;
351
+ isFulfillmentCenter?: boolean | undefined;
352
+ priority?: number | undefined;
353
+ };
354
+ quantityOnHand: number;
355
+ quantityReserved: number;
356
+ quantityAvailable: number;
357
+ quantityIncoming: number;
358
+ customFields?: Record<string, unknown> | undefined;
359
+ quantityDamaged?: number | undefined;
360
+ quantityInTransit?: number | undefined;
361
+ reorderPoint?: number | undefined;
362
+ reorderQuantity?: number | undefined;
363
+ maxQuantity?: number | undefined;
364
+ unitCost?: {
365
+ amount: number;
366
+ currency: string;
367
+ } | undefined;
368
+ lastCounted?: string | undefined;
369
+ lastAdjusted?: string | undefined;
370
+ lastMovement?: string | undefined;
371
+ binLocation?: string | undefined;
372
+ }, {
373
+ sku: string;
374
+ location: {
375
+ code: string;
376
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
377
+ id: string;
378
+ name: string;
379
+ metadata?: Record<string, unknown> | undefined;
380
+ timezone?: string | undefined;
381
+ address?: {
382
+ street1: string;
383
+ city: string;
384
+ postalCode: string;
385
+ country: string;
386
+ type?: "billing" | "shipping" | "both" | undefined;
387
+ street2?: string | undefined;
388
+ street3?: string | undefined;
389
+ state?: string | undefined;
390
+ stateCode?: string | undefined;
391
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
392
+ company?: string | undefined;
393
+ firstName?: string | undefined;
394
+ lastName?: string | undefined;
395
+ phone?: string | undefined;
396
+ email?: string | undefined;
397
+ isDefault?: boolean | undefined;
398
+ isResidential?: boolean | undefined;
399
+ isValidated?: boolean | undefined;
400
+ validationSource?: string | undefined;
401
+ } | undefined;
402
+ contactName?: string | undefined;
403
+ contactPhone?: string | undefined;
404
+ contactEmail?: string | undefined;
405
+ isActive?: boolean | undefined;
406
+ isFulfillmentCenter?: boolean | undefined;
407
+ priority?: number | undefined;
408
+ };
409
+ quantityOnHand: number;
410
+ quantityReserved: number;
411
+ quantityAvailable: number;
412
+ quantityIncoming: number;
413
+ customFields?: Record<string, unknown> | undefined;
414
+ quantityDamaged?: number | undefined;
415
+ quantityInTransit?: number | undefined;
416
+ reorderPoint?: number | undefined;
417
+ reorderQuantity?: number | undefined;
418
+ maxQuantity?: number | undefined;
419
+ unitCost?: {
420
+ amount: number;
421
+ currency: string;
422
+ } | undefined;
423
+ lastCounted?: string | undefined;
424
+ lastAdjusted?: string | undefined;
425
+ lastMovement?: string | undefined;
426
+ binLocation?: string | undefined;
427
+ }>;
428
+ export type InventoryLevel = z.infer<typeof InventoryLevelSchema>;
429
+ export declare const InventoryMovementType: z.ZodEnum<["sale", "return", "adjustment", "damage", "shrinkage", "receipt", "transfer", "production", "sample", "promotion", "cycle_count"]>;
430
+ export type InventoryMovementType = z.infer<typeof InventoryMovementType>;
431
+ export declare const InventoryMovementSchema: z.ZodObject<{
432
+ id: z.ZodString;
433
+ sku: z.ZodString;
434
+ location: z.ZodObject<{
435
+ id: z.ZodString;
436
+ name: z.ZodString;
437
+ code: z.ZodString;
438
+ type: z.ZodEnum<["warehouse", "store", "supplier", "dropship", "virtual", "consignment", "transit"]>;
439
+ address: z.ZodOptional<z.ZodObject<{
440
+ street1: z.ZodString;
441
+ street2: z.ZodOptional<z.ZodString>;
442
+ street3: z.ZodOptional<z.ZodString>;
443
+ city: z.ZodString;
444
+ state: z.ZodOptional<z.ZodString>;
445
+ stateCode: z.ZodOptional<z.ZodString>;
446
+ postalCode: z.ZodString;
447
+ country: z.ZodString;
448
+ countryCode: z.ZodOptional<z.ZodEnum<["US", "CA", "GB", "AU", "NZ", "DE", "FR", "IT", "ES", "NL", "BE", "CH", "AT", "SE", "NO", "DK", "FI", "IE", "PT", "PL", "CZ", "JP", "CN", "IN", "SG", "HK", "MX", "BR", "ZA"]>>;
449
+ company: z.ZodOptional<z.ZodString>;
450
+ firstName: z.ZodOptional<z.ZodString>;
451
+ lastName: z.ZodOptional<z.ZodString>;
452
+ phone: z.ZodOptional<z.ZodString>;
453
+ email: z.ZodOptional<z.ZodString>;
454
+ type: z.ZodOptional<z.ZodEnum<["billing", "shipping", "both"]>>;
455
+ isDefault: z.ZodOptional<z.ZodBoolean>;
456
+ isResidential: z.ZodOptional<z.ZodBoolean>;
457
+ isValidated: z.ZodOptional<z.ZodBoolean>;
458
+ validationSource: z.ZodOptional<z.ZodString>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ street1: string;
461
+ city: string;
462
+ postalCode: string;
463
+ country: string;
464
+ type?: "billing" | "shipping" | "both" | undefined;
465
+ street2?: string | undefined;
466
+ street3?: string | undefined;
467
+ state?: string | undefined;
468
+ stateCode?: string | undefined;
469
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
470
+ company?: string | undefined;
471
+ firstName?: string | undefined;
472
+ lastName?: string | undefined;
473
+ phone?: string | undefined;
474
+ email?: string | undefined;
475
+ isDefault?: boolean | undefined;
476
+ isResidential?: boolean | undefined;
477
+ isValidated?: boolean | undefined;
478
+ validationSource?: string | undefined;
479
+ }, {
480
+ street1: string;
481
+ city: string;
482
+ postalCode: string;
483
+ country: string;
484
+ type?: "billing" | "shipping" | "both" | undefined;
485
+ street2?: string | undefined;
486
+ street3?: string | undefined;
487
+ state?: string | undefined;
488
+ stateCode?: string | undefined;
489
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
490
+ company?: string | undefined;
491
+ firstName?: string | undefined;
492
+ lastName?: string | undefined;
493
+ phone?: string | undefined;
494
+ email?: string | undefined;
495
+ isDefault?: boolean | undefined;
496
+ isResidential?: boolean | undefined;
497
+ isValidated?: boolean | undefined;
498
+ validationSource?: string | undefined;
499
+ }>>;
500
+ contactName: z.ZodOptional<z.ZodString>;
501
+ contactPhone: z.ZodOptional<z.ZodString>;
502
+ contactEmail: z.ZodOptional<z.ZodString>;
503
+ isActive: z.ZodOptional<z.ZodBoolean>;
504
+ isFulfillmentCenter: z.ZodOptional<z.ZodBoolean>;
505
+ priority: z.ZodOptional<z.ZodNumber>;
506
+ timezone: z.ZodOptional<z.ZodString>;
507
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ code: string;
510
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
511
+ id: string;
512
+ name: string;
513
+ metadata?: Record<string, unknown> | undefined;
514
+ timezone?: string | undefined;
515
+ address?: {
516
+ street1: string;
517
+ city: string;
518
+ postalCode: string;
519
+ country: string;
520
+ type?: "billing" | "shipping" | "both" | undefined;
521
+ street2?: string | undefined;
522
+ street3?: string | undefined;
523
+ state?: string | undefined;
524
+ stateCode?: string | undefined;
525
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
526
+ company?: string | undefined;
527
+ firstName?: string | undefined;
528
+ lastName?: string | undefined;
529
+ phone?: string | undefined;
530
+ email?: string | undefined;
531
+ isDefault?: boolean | undefined;
532
+ isResidential?: boolean | undefined;
533
+ isValidated?: boolean | undefined;
534
+ validationSource?: string | undefined;
535
+ } | undefined;
536
+ contactName?: string | undefined;
537
+ contactPhone?: string | undefined;
538
+ contactEmail?: string | undefined;
539
+ isActive?: boolean | undefined;
540
+ isFulfillmentCenter?: boolean | undefined;
541
+ priority?: number | undefined;
542
+ }, {
543
+ code: string;
544
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
545
+ id: string;
546
+ name: string;
547
+ metadata?: Record<string, unknown> | undefined;
548
+ timezone?: string | undefined;
549
+ address?: {
550
+ street1: string;
551
+ city: string;
552
+ postalCode: string;
553
+ country: string;
554
+ type?: "billing" | "shipping" | "both" | undefined;
555
+ street2?: string | undefined;
556
+ street3?: string | undefined;
557
+ state?: string | undefined;
558
+ stateCode?: string | undefined;
559
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
560
+ company?: string | undefined;
561
+ firstName?: string | undefined;
562
+ lastName?: string | undefined;
563
+ phone?: string | undefined;
564
+ email?: string | undefined;
565
+ isDefault?: boolean | undefined;
566
+ isResidential?: boolean | undefined;
567
+ isValidated?: boolean | undefined;
568
+ validationSource?: string | undefined;
569
+ } | undefined;
570
+ contactName?: string | undefined;
571
+ contactPhone?: string | undefined;
572
+ contactEmail?: string | undefined;
573
+ isActive?: boolean | undefined;
574
+ isFulfillmentCenter?: boolean | undefined;
575
+ priority?: number | undefined;
576
+ }>;
577
+ type: z.ZodEnum<["sale", "return", "adjustment", "damage", "shrinkage", "receipt", "transfer", "production", "sample", "promotion", "cycle_count"]>;
578
+ quantity: z.ZodNumber;
579
+ orderId: z.ZodOptional<z.ZodString>;
580
+ purchaseOrderId: z.ZodOptional<z.ZodString>;
581
+ transferId: z.ZodOptional<z.ZodString>;
582
+ adjustmentReason: z.ZodOptional<z.ZodString>;
583
+ performedBy: z.ZodOptional<z.ZodString>;
584
+ performedAt: z.ZodString;
585
+ notes: z.ZodOptional<z.ZodString>;
586
+ quantityBefore: z.ZodOptional<z.ZodNumber>;
587
+ quantityAfter: z.ZodOptional<z.ZodNumber>;
588
+ }, "strip", z.ZodTypeAny, {
589
+ type: "sale" | "return" | "adjustment" | "damage" | "shrinkage" | "receipt" | "transfer" | "production" | "sample" | "promotion" | "cycle_count";
590
+ id: string;
591
+ sku: string;
592
+ quantity: number;
593
+ location: {
594
+ code: string;
595
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
596
+ id: string;
597
+ name: string;
598
+ metadata?: Record<string, unknown> | undefined;
599
+ timezone?: string | undefined;
600
+ address?: {
601
+ street1: string;
602
+ city: string;
603
+ postalCode: string;
604
+ country: string;
605
+ type?: "billing" | "shipping" | "both" | undefined;
606
+ street2?: string | undefined;
607
+ street3?: string | undefined;
608
+ state?: string | undefined;
609
+ stateCode?: string | undefined;
610
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
611
+ company?: string | undefined;
612
+ firstName?: string | undefined;
613
+ lastName?: string | undefined;
614
+ phone?: string | undefined;
615
+ email?: string | undefined;
616
+ isDefault?: boolean | undefined;
617
+ isResidential?: boolean | undefined;
618
+ isValidated?: boolean | undefined;
619
+ validationSource?: string | undefined;
620
+ } | undefined;
621
+ contactName?: string | undefined;
622
+ contactPhone?: string | undefined;
623
+ contactEmail?: string | undefined;
624
+ isActive?: boolean | undefined;
625
+ isFulfillmentCenter?: boolean | undefined;
626
+ priority?: number | undefined;
627
+ };
628
+ performedAt: string;
629
+ notes?: string | undefined;
630
+ orderId?: string | undefined;
631
+ purchaseOrderId?: string | undefined;
632
+ transferId?: string | undefined;
633
+ adjustmentReason?: string | undefined;
634
+ performedBy?: string | undefined;
635
+ quantityBefore?: number | undefined;
636
+ quantityAfter?: number | undefined;
637
+ }, {
638
+ type: "sale" | "return" | "adjustment" | "damage" | "shrinkage" | "receipt" | "transfer" | "production" | "sample" | "promotion" | "cycle_count";
639
+ id: string;
640
+ sku: string;
641
+ quantity: number;
642
+ location: {
643
+ code: string;
644
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
645
+ id: string;
646
+ name: string;
647
+ metadata?: Record<string, unknown> | undefined;
648
+ timezone?: string | undefined;
649
+ address?: {
650
+ street1: string;
651
+ city: string;
652
+ postalCode: string;
653
+ country: string;
654
+ type?: "billing" | "shipping" | "both" | undefined;
655
+ street2?: string | undefined;
656
+ street3?: string | undefined;
657
+ state?: string | undefined;
658
+ stateCode?: string | undefined;
659
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
660
+ company?: string | undefined;
661
+ firstName?: string | undefined;
662
+ lastName?: string | undefined;
663
+ phone?: string | undefined;
664
+ email?: string | undefined;
665
+ isDefault?: boolean | undefined;
666
+ isResidential?: boolean | undefined;
667
+ isValidated?: boolean | undefined;
668
+ validationSource?: string | undefined;
669
+ } | undefined;
670
+ contactName?: string | undefined;
671
+ contactPhone?: string | undefined;
672
+ contactEmail?: string | undefined;
673
+ isActive?: boolean | undefined;
674
+ isFulfillmentCenter?: boolean | undefined;
675
+ priority?: number | undefined;
676
+ };
677
+ performedAt: string;
678
+ notes?: string | undefined;
679
+ orderId?: string | undefined;
680
+ purchaseOrderId?: string | undefined;
681
+ transferId?: string | undefined;
682
+ adjustmentReason?: string | undefined;
683
+ performedBy?: string | undefined;
684
+ quantityBefore?: number | undefined;
685
+ quantityAfter?: number | undefined;
686
+ }>;
687
+ export type InventoryMovement = z.infer<typeof InventoryMovementSchema>;
688
+ export declare const CanonicalInventorySchema: z.ZodObject<{
689
+ sku: z.ZodString;
690
+ productId: z.ZodOptional<z.ZodString>;
691
+ productName: z.ZodOptional<z.ZodString>;
692
+ locations: z.ZodArray<z.ZodObject<{
693
+ sku: z.ZodString;
694
+ location: z.ZodObject<{
695
+ id: z.ZodString;
696
+ name: z.ZodString;
697
+ code: z.ZodString;
698
+ type: z.ZodEnum<["warehouse", "store", "supplier", "dropship", "virtual", "consignment", "transit"]>;
699
+ address: z.ZodOptional<z.ZodObject<{
700
+ street1: z.ZodString;
701
+ street2: z.ZodOptional<z.ZodString>;
702
+ street3: z.ZodOptional<z.ZodString>;
703
+ city: z.ZodString;
704
+ state: z.ZodOptional<z.ZodString>;
705
+ stateCode: z.ZodOptional<z.ZodString>;
706
+ postalCode: z.ZodString;
707
+ country: z.ZodString;
708
+ countryCode: z.ZodOptional<z.ZodEnum<["US", "CA", "GB", "AU", "NZ", "DE", "FR", "IT", "ES", "NL", "BE", "CH", "AT", "SE", "NO", "DK", "FI", "IE", "PT", "PL", "CZ", "JP", "CN", "IN", "SG", "HK", "MX", "BR", "ZA"]>>;
709
+ company: z.ZodOptional<z.ZodString>;
710
+ firstName: z.ZodOptional<z.ZodString>;
711
+ lastName: z.ZodOptional<z.ZodString>;
712
+ phone: z.ZodOptional<z.ZodString>;
713
+ email: z.ZodOptional<z.ZodString>;
714
+ type: z.ZodOptional<z.ZodEnum<["billing", "shipping", "both"]>>;
715
+ isDefault: z.ZodOptional<z.ZodBoolean>;
716
+ isResidential: z.ZodOptional<z.ZodBoolean>;
717
+ isValidated: z.ZodOptional<z.ZodBoolean>;
718
+ validationSource: z.ZodOptional<z.ZodString>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ street1: string;
721
+ city: string;
722
+ postalCode: string;
723
+ country: string;
724
+ type?: "billing" | "shipping" | "both" | undefined;
725
+ street2?: string | undefined;
726
+ street3?: string | undefined;
727
+ state?: string | undefined;
728
+ stateCode?: string | undefined;
729
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
730
+ company?: string | undefined;
731
+ firstName?: string | undefined;
732
+ lastName?: string | undefined;
733
+ phone?: string | undefined;
734
+ email?: string | undefined;
735
+ isDefault?: boolean | undefined;
736
+ isResidential?: boolean | undefined;
737
+ isValidated?: boolean | undefined;
738
+ validationSource?: string | undefined;
739
+ }, {
740
+ street1: string;
741
+ city: string;
742
+ postalCode: string;
743
+ country: string;
744
+ type?: "billing" | "shipping" | "both" | undefined;
745
+ street2?: string | undefined;
746
+ street3?: string | undefined;
747
+ state?: string | undefined;
748
+ stateCode?: string | undefined;
749
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
750
+ company?: string | undefined;
751
+ firstName?: string | undefined;
752
+ lastName?: string | undefined;
753
+ phone?: string | undefined;
754
+ email?: string | undefined;
755
+ isDefault?: boolean | undefined;
756
+ isResidential?: boolean | undefined;
757
+ isValidated?: boolean | undefined;
758
+ validationSource?: string | undefined;
759
+ }>>;
760
+ contactName: z.ZodOptional<z.ZodString>;
761
+ contactPhone: z.ZodOptional<z.ZodString>;
762
+ contactEmail: z.ZodOptional<z.ZodString>;
763
+ isActive: z.ZodOptional<z.ZodBoolean>;
764
+ isFulfillmentCenter: z.ZodOptional<z.ZodBoolean>;
765
+ priority: z.ZodOptional<z.ZodNumber>;
766
+ timezone: z.ZodOptional<z.ZodString>;
767
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
768
+ }, "strip", z.ZodTypeAny, {
769
+ code: string;
770
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
771
+ id: string;
772
+ name: string;
773
+ metadata?: Record<string, unknown> | undefined;
774
+ timezone?: string | undefined;
775
+ address?: {
776
+ street1: string;
777
+ city: string;
778
+ postalCode: string;
779
+ country: string;
780
+ type?: "billing" | "shipping" | "both" | undefined;
781
+ street2?: string | undefined;
782
+ street3?: string | undefined;
783
+ state?: string | undefined;
784
+ stateCode?: string | undefined;
785
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
786
+ company?: string | undefined;
787
+ firstName?: string | undefined;
788
+ lastName?: string | undefined;
789
+ phone?: string | undefined;
790
+ email?: string | undefined;
791
+ isDefault?: boolean | undefined;
792
+ isResidential?: boolean | undefined;
793
+ isValidated?: boolean | undefined;
794
+ validationSource?: string | undefined;
795
+ } | undefined;
796
+ contactName?: string | undefined;
797
+ contactPhone?: string | undefined;
798
+ contactEmail?: string | undefined;
799
+ isActive?: boolean | undefined;
800
+ isFulfillmentCenter?: boolean | undefined;
801
+ priority?: number | undefined;
802
+ }, {
803
+ code: string;
804
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
805
+ id: string;
806
+ name: string;
807
+ metadata?: Record<string, unknown> | undefined;
808
+ timezone?: string | undefined;
809
+ address?: {
810
+ street1: string;
811
+ city: string;
812
+ postalCode: string;
813
+ country: string;
814
+ type?: "billing" | "shipping" | "both" | undefined;
815
+ street2?: string | undefined;
816
+ street3?: string | undefined;
817
+ state?: string | undefined;
818
+ stateCode?: string | undefined;
819
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
820
+ company?: string | undefined;
821
+ firstName?: string | undefined;
822
+ lastName?: string | undefined;
823
+ phone?: string | undefined;
824
+ email?: string | undefined;
825
+ isDefault?: boolean | undefined;
826
+ isResidential?: boolean | undefined;
827
+ isValidated?: boolean | undefined;
828
+ validationSource?: string | undefined;
829
+ } | undefined;
830
+ contactName?: string | undefined;
831
+ contactPhone?: string | undefined;
832
+ contactEmail?: string | undefined;
833
+ isActive?: boolean | undefined;
834
+ isFulfillmentCenter?: boolean | undefined;
835
+ priority?: number | undefined;
836
+ }>;
837
+ quantityOnHand: z.ZodNumber;
838
+ quantityReserved: z.ZodNumber;
839
+ quantityAvailable: z.ZodNumber;
840
+ quantityIncoming: z.ZodNumber;
841
+ quantityDamaged: z.ZodOptional<z.ZodNumber>;
842
+ quantityInTransit: z.ZodOptional<z.ZodNumber>;
843
+ reorderPoint: z.ZodOptional<z.ZodNumber>;
844
+ reorderQuantity: z.ZodOptional<z.ZodNumber>;
845
+ maxQuantity: z.ZodOptional<z.ZodNumber>;
846
+ unitCost: z.ZodOptional<z.ZodObject<{
847
+ amount: z.ZodNumber;
848
+ currency: z.ZodString;
849
+ }, "strip", z.ZodTypeAny, {
850
+ amount: number;
851
+ currency: string;
852
+ }, {
853
+ amount: number;
854
+ currency: string;
855
+ }>>;
856
+ lastCounted: z.ZodOptional<z.ZodString>;
857
+ lastAdjusted: z.ZodOptional<z.ZodString>;
858
+ lastMovement: z.ZodOptional<z.ZodString>;
859
+ binLocation: z.ZodOptional<z.ZodString>;
860
+ customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
861
+ }, "strip", z.ZodTypeAny, {
862
+ sku: string;
863
+ location: {
864
+ code: string;
865
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
866
+ id: string;
867
+ name: string;
868
+ metadata?: Record<string, unknown> | undefined;
869
+ timezone?: string | undefined;
870
+ address?: {
871
+ street1: string;
872
+ city: string;
873
+ postalCode: string;
874
+ country: string;
875
+ type?: "billing" | "shipping" | "both" | undefined;
876
+ street2?: string | undefined;
877
+ street3?: string | undefined;
878
+ state?: string | undefined;
879
+ stateCode?: string | undefined;
880
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
881
+ company?: string | undefined;
882
+ firstName?: string | undefined;
883
+ lastName?: string | undefined;
884
+ phone?: string | undefined;
885
+ email?: string | undefined;
886
+ isDefault?: boolean | undefined;
887
+ isResidential?: boolean | undefined;
888
+ isValidated?: boolean | undefined;
889
+ validationSource?: string | undefined;
890
+ } | undefined;
891
+ contactName?: string | undefined;
892
+ contactPhone?: string | undefined;
893
+ contactEmail?: string | undefined;
894
+ isActive?: boolean | undefined;
895
+ isFulfillmentCenter?: boolean | undefined;
896
+ priority?: number | undefined;
897
+ };
898
+ quantityOnHand: number;
899
+ quantityReserved: number;
900
+ quantityAvailable: number;
901
+ quantityIncoming: number;
902
+ customFields?: Record<string, unknown> | undefined;
903
+ quantityDamaged?: number | undefined;
904
+ quantityInTransit?: number | undefined;
905
+ reorderPoint?: number | undefined;
906
+ reorderQuantity?: number | undefined;
907
+ maxQuantity?: number | undefined;
908
+ unitCost?: {
909
+ amount: number;
910
+ currency: string;
911
+ } | undefined;
912
+ lastCounted?: string | undefined;
913
+ lastAdjusted?: string | undefined;
914
+ lastMovement?: string | undefined;
915
+ binLocation?: string | undefined;
916
+ }, {
917
+ sku: string;
918
+ location: {
919
+ code: string;
920
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
921
+ id: string;
922
+ name: string;
923
+ metadata?: Record<string, unknown> | undefined;
924
+ timezone?: string | undefined;
925
+ address?: {
926
+ street1: string;
927
+ city: string;
928
+ postalCode: string;
929
+ country: string;
930
+ type?: "billing" | "shipping" | "both" | undefined;
931
+ street2?: string | undefined;
932
+ street3?: string | undefined;
933
+ state?: string | undefined;
934
+ stateCode?: string | undefined;
935
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
936
+ company?: string | undefined;
937
+ firstName?: string | undefined;
938
+ lastName?: string | undefined;
939
+ phone?: string | undefined;
940
+ email?: string | undefined;
941
+ isDefault?: boolean | undefined;
942
+ isResidential?: boolean | undefined;
943
+ isValidated?: boolean | undefined;
944
+ validationSource?: string | undefined;
945
+ } | undefined;
946
+ contactName?: string | undefined;
947
+ contactPhone?: string | undefined;
948
+ contactEmail?: string | undefined;
949
+ isActive?: boolean | undefined;
950
+ isFulfillmentCenter?: boolean | undefined;
951
+ priority?: number | undefined;
952
+ };
953
+ quantityOnHand: number;
954
+ quantityReserved: number;
955
+ quantityAvailable: number;
956
+ quantityIncoming: number;
957
+ customFields?: Record<string, unknown> | undefined;
958
+ quantityDamaged?: number | undefined;
959
+ quantityInTransit?: number | undefined;
960
+ reorderPoint?: number | undefined;
961
+ reorderQuantity?: number | undefined;
962
+ maxQuantity?: number | undefined;
963
+ unitCost?: {
964
+ amount: number;
965
+ currency: string;
966
+ } | undefined;
967
+ lastCounted?: string | undefined;
968
+ lastAdjusted?: string | undefined;
969
+ lastMovement?: string | undefined;
970
+ binLocation?: string | undefined;
971
+ }>, "many">;
972
+ totals: z.ZodObject<{
973
+ onHand: z.ZodNumber;
974
+ reserved: z.ZodNumber;
975
+ available: z.ZodNumber;
976
+ incoming: z.ZodNumber;
977
+ damaged: z.ZodOptional<z.ZodNumber>;
978
+ inTransit: z.ZodOptional<z.ZodNumber>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ available: number;
981
+ onHand: number;
982
+ reserved: number;
983
+ incoming: number;
984
+ damaged?: number | undefined;
985
+ inTransit?: number | undefined;
986
+ }, {
987
+ available: number;
988
+ onHand: number;
989
+ reserved: number;
990
+ incoming: number;
991
+ damaged?: number | undefined;
992
+ inTransit?: number | undefined;
993
+ }>;
994
+ tracked: z.ZodBoolean;
995
+ allowBackorder: z.ZodOptional<z.ZodBoolean>;
996
+ allowNegative: z.ZodOptional<z.ZodBoolean>;
997
+ thresholds: z.ZodOptional<z.ZodObject<{
998
+ lowStock: z.ZodOptional<z.ZodNumber>;
999
+ outOfStock: z.ZodOptional<z.ZodNumber>;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ lowStock?: number | undefined;
1002
+ outOfStock?: number | undefined;
1003
+ }, {
1004
+ lowStock?: number | undefined;
1005
+ outOfStock?: number | undefined;
1006
+ }>>;
1007
+ dates: z.ZodObject<{
1008
+ updatedAt: z.ZodString;
1009
+ lastCounted: z.ZodOptional<z.ZodString>;
1010
+ lastSold: z.ZodOptional<z.ZodString>;
1011
+ lastReceived: z.ZodOptional<z.ZodString>;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ updatedAt: string;
1014
+ lastCounted?: string | undefined;
1015
+ lastSold?: string | undefined;
1016
+ lastReceived?: string | undefined;
1017
+ }, {
1018
+ updatedAt: string;
1019
+ lastCounted?: string | undefined;
1020
+ lastSold?: string | undefined;
1021
+ lastReceived?: string | undefined;
1022
+ }>;
1023
+ recentMovements: z.ZodOptional<z.ZodArray<z.ZodObject<{
1024
+ id: z.ZodString;
1025
+ sku: z.ZodString;
1026
+ location: z.ZodObject<{
1027
+ id: z.ZodString;
1028
+ name: z.ZodString;
1029
+ code: z.ZodString;
1030
+ type: z.ZodEnum<["warehouse", "store", "supplier", "dropship", "virtual", "consignment", "transit"]>;
1031
+ address: z.ZodOptional<z.ZodObject<{
1032
+ street1: z.ZodString;
1033
+ street2: z.ZodOptional<z.ZodString>;
1034
+ street3: z.ZodOptional<z.ZodString>;
1035
+ city: z.ZodString;
1036
+ state: z.ZodOptional<z.ZodString>;
1037
+ stateCode: z.ZodOptional<z.ZodString>;
1038
+ postalCode: z.ZodString;
1039
+ country: z.ZodString;
1040
+ countryCode: z.ZodOptional<z.ZodEnum<["US", "CA", "GB", "AU", "NZ", "DE", "FR", "IT", "ES", "NL", "BE", "CH", "AT", "SE", "NO", "DK", "FI", "IE", "PT", "PL", "CZ", "JP", "CN", "IN", "SG", "HK", "MX", "BR", "ZA"]>>;
1041
+ company: z.ZodOptional<z.ZodString>;
1042
+ firstName: z.ZodOptional<z.ZodString>;
1043
+ lastName: z.ZodOptional<z.ZodString>;
1044
+ phone: z.ZodOptional<z.ZodString>;
1045
+ email: z.ZodOptional<z.ZodString>;
1046
+ type: z.ZodOptional<z.ZodEnum<["billing", "shipping", "both"]>>;
1047
+ isDefault: z.ZodOptional<z.ZodBoolean>;
1048
+ isResidential: z.ZodOptional<z.ZodBoolean>;
1049
+ isValidated: z.ZodOptional<z.ZodBoolean>;
1050
+ validationSource: z.ZodOptional<z.ZodString>;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ street1: string;
1053
+ city: string;
1054
+ postalCode: string;
1055
+ country: string;
1056
+ type?: "billing" | "shipping" | "both" | undefined;
1057
+ street2?: string | undefined;
1058
+ street3?: string | undefined;
1059
+ state?: string | undefined;
1060
+ stateCode?: string | undefined;
1061
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1062
+ company?: string | undefined;
1063
+ firstName?: string | undefined;
1064
+ lastName?: string | undefined;
1065
+ phone?: string | undefined;
1066
+ email?: string | undefined;
1067
+ isDefault?: boolean | undefined;
1068
+ isResidential?: boolean | undefined;
1069
+ isValidated?: boolean | undefined;
1070
+ validationSource?: string | undefined;
1071
+ }, {
1072
+ street1: string;
1073
+ city: string;
1074
+ postalCode: string;
1075
+ country: string;
1076
+ type?: "billing" | "shipping" | "both" | undefined;
1077
+ street2?: string | undefined;
1078
+ street3?: string | undefined;
1079
+ state?: string | undefined;
1080
+ stateCode?: string | undefined;
1081
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1082
+ company?: string | undefined;
1083
+ firstName?: string | undefined;
1084
+ lastName?: string | undefined;
1085
+ phone?: string | undefined;
1086
+ email?: string | undefined;
1087
+ isDefault?: boolean | undefined;
1088
+ isResidential?: boolean | undefined;
1089
+ isValidated?: boolean | undefined;
1090
+ validationSource?: string | undefined;
1091
+ }>>;
1092
+ contactName: z.ZodOptional<z.ZodString>;
1093
+ contactPhone: z.ZodOptional<z.ZodString>;
1094
+ contactEmail: z.ZodOptional<z.ZodString>;
1095
+ isActive: z.ZodOptional<z.ZodBoolean>;
1096
+ isFulfillmentCenter: z.ZodOptional<z.ZodBoolean>;
1097
+ priority: z.ZodOptional<z.ZodNumber>;
1098
+ timezone: z.ZodOptional<z.ZodString>;
1099
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ code: string;
1102
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
1103
+ id: string;
1104
+ name: string;
1105
+ metadata?: Record<string, unknown> | undefined;
1106
+ timezone?: string | undefined;
1107
+ address?: {
1108
+ street1: string;
1109
+ city: string;
1110
+ postalCode: string;
1111
+ country: string;
1112
+ type?: "billing" | "shipping" | "both" | undefined;
1113
+ street2?: string | undefined;
1114
+ street3?: string | undefined;
1115
+ state?: string | undefined;
1116
+ stateCode?: string | undefined;
1117
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1118
+ company?: string | undefined;
1119
+ firstName?: string | undefined;
1120
+ lastName?: string | undefined;
1121
+ phone?: string | undefined;
1122
+ email?: string | undefined;
1123
+ isDefault?: boolean | undefined;
1124
+ isResidential?: boolean | undefined;
1125
+ isValidated?: boolean | undefined;
1126
+ validationSource?: string | undefined;
1127
+ } | undefined;
1128
+ contactName?: string | undefined;
1129
+ contactPhone?: string | undefined;
1130
+ contactEmail?: string | undefined;
1131
+ isActive?: boolean | undefined;
1132
+ isFulfillmentCenter?: boolean | undefined;
1133
+ priority?: number | undefined;
1134
+ }, {
1135
+ code: string;
1136
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
1137
+ id: string;
1138
+ name: string;
1139
+ metadata?: Record<string, unknown> | undefined;
1140
+ timezone?: string | undefined;
1141
+ address?: {
1142
+ street1: string;
1143
+ city: string;
1144
+ postalCode: string;
1145
+ country: string;
1146
+ type?: "billing" | "shipping" | "both" | undefined;
1147
+ street2?: string | undefined;
1148
+ street3?: string | undefined;
1149
+ state?: string | undefined;
1150
+ stateCode?: string | undefined;
1151
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1152
+ company?: string | undefined;
1153
+ firstName?: string | undefined;
1154
+ lastName?: string | undefined;
1155
+ phone?: string | undefined;
1156
+ email?: string | undefined;
1157
+ isDefault?: boolean | undefined;
1158
+ isResidential?: boolean | undefined;
1159
+ isValidated?: boolean | undefined;
1160
+ validationSource?: string | undefined;
1161
+ } | undefined;
1162
+ contactName?: string | undefined;
1163
+ contactPhone?: string | undefined;
1164
+ contactEmail?: string | undefined;
1165
+ isActive?: boolean | undefined;
1166
+ isFulfillmentCenter?: boolean | undefined;
1167
+ priority?: number | undefined;
1168
+ }>;
1169
+ type: z.ZodEnum<["sale", "return", "adjustment", "damage", "shrinkage", "receipt", "transfer", "production", "sample", "promotion", "cycle_count"]>;
1170
+ quantity: z.ZodNumber;
1171
+ orderId: z.ZodOptional<z.ZodString>;
1172
+ purchaseOrderId: z.ZodOptional<z.ZodString>;
1173
+ transferId: z.ZodOptional<z.ZodString>;
1174
+ adjustmentReason: z.ZodOptional<z.ZodString>;
1175
+ performedBy: z.ZodOptional<z.ZodString>;
1176
+ performedAt: z.ZodString;
1177
+ notes: z.ZodOptional<z.ZodString>;
1178
+ quantityBefore: z.ZodOptional<z.ZodNumber>;
1179
+ quantityAfter: z.ZodOptional<z.ZodNumber>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ type: "sale" | "return" | "adjustment" | "damage" | "shrinkage" | "receipt" | "transfer" | "production" | "sample" | "promotion" | "cycle_count";
1182
+ id: string;
1183
+ sku: string;
1184
+ quantity: number;
1185
+ location: {
1186
+ code: string;
1187
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
1188
+ id: string;
1189
+ name: string;
1190
+ metadata?: Record<string, unknown> | undefined;
1191
+ timezone?: string | undefined;
1192
+ address?: {
1193
+ street1: string;
1194
+ city: string;
1195
+ postalCode: string;
1196
+ country: string;
1197
+ type?: "billing" | "shipping" | "both" | undefined;
1198
+ street2?: string | undefined;
1199
+ street3?: string | undefined;
1200
+ state?: string | undefined;
1201
+ stateCode?: string | undefined;
1202
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1203
+ company?: string | undefined;
1204
+ firstName?: string | undefined;
1205
+ lastName?: string | undefined;
1206
+ phone?: string | undefined;
1207
+ email?: string | undefined;
1208
+ isDefault?: boolean | undefined;
1209
+ isResidential?: boolean | undefined;
1210
+ isValidated?: boolean | undefined;
1211
+ validationSource?: string | undefined;
1212
+ } | undefined;
1213
+ contactName?: string | undefined;
1214
+ contactPhone?: string | undefined;
1215
+ contactEmail?: string | undefined;
1216
+ isActive?: boolean | undefined;
1217
+ isFulfillmentCenter?: boolean | undefined;
1218
+ priority?: number | undefined;
1219
+ };
1220
+ performedAt: string;
1221
+ notes?: string | undefined;
1222
+ orderId?: string | undefined;
1223
+ purchaseOrderId?: string | undefined;
1224
+ transferId?: string | undefined;
1225
+ adjustmentReason?: string | undefined;
1226
+ performedBy?: string | undefined;
1227
+ quantityBefore?: number | undefined;
1228
+ quantityAfter?: number | undefined;
1229
+ }, {
1230
+ type: "sale" | "return" | "adjustment" | "damage" | "shrinkage" | "receipt" | "transfer" | "production" | "sample" | "promotion" | "cycle_count";
1231
+ id: string;
1232
+ sku: string;
1233
+ quantity: number;
1234
+ location: {
1235
+ code: string;
1236
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
1237
+ id: string;
1238
+ name: string;
1239
+ metadata?: Record<string, unknown> | undefined;
1240
+ timezone?: string | undefined;
1241
+ address?: {
1242
+ street1: string;
1243
+ city: string;
1244
+ postalCode: string;
1245
+ country: string;
1246
+ type?: "billing" | "shipping" | "both" | undefined;
1247
+ street2?: string | undefined;
1248
+ street3?: string | undefined;
1249
+ state?: string | undefined;
1250
+ stateCode?: string | undefined;
1251
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1252
+ company?: string | undefined;
1253
+ firstName?: string | undefined;
1254
+ lastName?: string | undefined;
1255
+ phone?: string | undefined;
1256
+ email?: string | undefined;
1257
+ isDefault?: boolean | undefined;
1258
+ isResidential?: boolean | undefined;
1259
+ isValidated?: boolean | undefined;
1260
+ validationSource?: string | undefined;
1261
+ } | undefined;
1262
+ contactName?: string | undefined;
1263
+ contactPhone?: string | undefined;
1264
+ contactEmail?: string | undefined;
1265
+ isActive?: boolean | undefined;
1266
+ isFulfillmentCenter?: boolean | undefined;
1267
+ priority?: number | undefined;
1268
+ };
1269
+ performedAt: string;
1270
+ notes?: string | undefined;
1271
+ orderId?: string | undefined;
1272
+ purchaseOrderId?: string | undefined;
1273
+ transferId?: string | undefined;
1274
+ adjustmentReason?: string | undefined;
1275
+ performedBy?: string | undefined;
1276
+ quantityBefore?: number | undefined;
1277
+ quantityAfter?: number | undefined;
1278
+ }>, "many">>;
1279
+ metadata: z.ZodObject<{
1280
+ source: z.ZodString;
1281
+ sourceId: z.ZodOptional<z.ZodString>;
1282
+ externalIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1283
+ isDiscontinued: z.ZodOptional<z.ZodBoolean>;
1284
+ isPerishable: z.ZodOptional<z.ZodBoolean>;
1285
+ expiryDate: z.ZodOptional<z.ZodString>;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ source: string;
1288
+ sourceId?: string | undefined;
1289
+ externalIds?: Record<string, string> | undefined;
1290
+ isDiscontinued?: boolean | undefined;
1291
+ isPerishable?: boolean | undefined;
1292
+ expiryDate?: string | undefined;
1293
+ }, {
1294
+ source: string;
1295
+ sourceId?: string | undefined;
1296
+ externalIds?: Record<string, string> | undefined;
1297
+ isDiscontinued?: boolean | undefined;
1298
+ isPerishable?: boolean | undefined;
1299
+ expiryDate?: string | undefined;
1300
+ }>;
1301
+ }, "strip", z.ZodTypeAny, {
1302
+ sku: string;
1303
+ tracked: boolean;
1304
+ metadata: {
1305
+ source: string;
1306
+ sourceId?: string | undefined;
1307
+ externalIds?: Record<string, string> | undefined;
1308
+ isDiscontinued?: boolean | undefined;
1309
+ isPerishable?: boolean | undefined;
1310
+ expiryDate?: string | undefined;
1311
+ };
1312
+ totals: {
1313
+ available: number;
1314
+ onHand: number;
1315
+ reserved: number;
1316
+ incoming: number;
1317
+ damaged?: number | undefined;
1318
+ inTransit?: number | undefined;
1319
+ };
1320
+ dates: {
1321
+ updatedAt: string;
1322
+ lastCounted?: string | undefined;
1323
+ lastSold?: string | undefined;
1324
+ lastReceived?: string | undefined;
1325
+ };
1326
+ locations: {
1327
+ sku: string;
1328
+ location: {
1329
+ code: string;
1330
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
1331
+ id: string;
1332
+ name: string;
1333
+ metadata?: Record<string, unknown> | undefined;
1334
+ timezone?: string | undefined;
1335
+ address?: {
1336
+ street1: string;
1337
+ city: string;
1338
+ postalCode: string;
1339
+ country: string;
1340
+ type?: "billing" | "shipping" | "both" | undefined;
1341
+ street2?: string | undefined;
1342
+ street3?: string | undefined;
1343
+ state?: string | undefined;
1344
+ stateCode?: string | undefined;
1345
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1346
+ company?: string | undefined;
1347
+ firstName?: string | undefined;
1348
+ lastName?: string | undefined;
1349
+ phone?: string | undefined;
1350
+ email?: string | undefined;
1351
+ isDefault?: boolean | undefined;
1352
+ isResidential?: boolean | undefined;
1353
+ isValidated?: boolean | undefined;
1354
+ validationSource?: string | undefined;
1355
+ } | undefined;
1356
+ contactName?: string | undefined;
1357
+ contactPhone?: string | undefined;
1358
+ contactEmail?: string | undefined;
1359
+ isActive?: boolean | undefined;
1360
+ isFulfillmentCenter?: boolean | undefined;
1361
+ priority?: number | undefined;
1362
+ };
1363
+ quantityOnHand: number;
1364
+ quantityReserved: number;
1365
+ quantityAvailable: number;
1366
+ quantityIncoming: number;
1367
+ customFields?: Record<string, unknown> | undefined;
1368
+ quantityDamaged?: number | undefined;
1369
+ quantityInTransit?: number | undefined;
1370
+ reorderPoint?: number | undefined;
1371
+ reorderQuantity?: number | undefined;
1372
+ maxQuantity?: number | undefined;
1373
+ unitCost?: {
1374
+ amount: number;
1375
+ currency: string;
1376
+ } | undefined;
1377
+ lastCounted?: string | undefined;
1378
+ lastAdjusted?: string | undefined;
1379
+ lastMovement?: string | undefined;
1380
+ binLocation?: string | undefined;
1381
+ }[];
1382
+ allowBackorder?: boolean | undefined;
1383
+ productId?: string | undefined;
1384
+ productName?: string | undefined;
1385
+ allowNegative?: boolean | undefined;
1386
+ thresholds?: {
1387
+ lowStock?: number | undefined;
1388
+ outOfStock?: number | undefined;
1389
+ } | undefined;
1390
+ recentMovements?: {
1391
+ type: "sale" | "return" | "adjustment" | "damage" | "shrinkage" | "receipt" | "transfer" | "production" | "sample" | "promotion" | "cycle_count";
1392
+ id: string;
1393
+ sku: string;
1394
+ quantity: number;
1395
+ location: {
1396
+ code: string;
1397
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
1398
+ id: string;
1399
+ name: string;
1400
+ metadata?: Record<string, unknown> | undefined;
1401
+ timezone?: string | undefined;
1402
+ address?: {
1403
+ street1: string;
1404
+ city: string;
1405
+ postalCode: string;
1406
+ country: string;
1407
+ type?: "billing" | "shipping" | "both" | undefined;
1408
+ street2?: string | undefined;
1409
+ street3?: string | undefined;
1410
+ state?: string | undefined;
1411
+ stateCode?: string | undefined;
1412
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1413
+ company?: string | undefined;
1414
+ firstName?: string | undefined;
1415
+ lastName?: string | undefined;
1416
+ phone?: string | undefined;
1417
+ email?: string | undefined;
1418
+ isDefault?: boolean | undefined;
1419
+ isResidential?: boolean | undefined;
1420
+ isValidated?: boolean | undefined;
1421
+ validationSource?: string | undefined;
1422
+ } | undefined;
1423
+ contactName?: string | undefined;
1424
+ contactPhone?: string | undefined;
1425
+ contactEmail?: string | undefined;
1426
+ isActive?: boolean | undefined;
1427
+ isFulfillmentCenter?: boolean | undefined;
1428
+ priority?: number | undefined;
1429
+ };
1430
+ performedAt: string;
1431
+ notes?: string | undefined;
1432
+ orderId?: string | undefined;
1433
+ purchaseOrderId?: string | undefined;
1434
+ transferId?: string | undefined;
1435
+ adjustmentReason?: string | undefined;
1436
+ performedBy?: string | undefined;
1437
+ quantityBefore?: number | undefined;
1438
+ quantityAfter?: number | undefined;
1439
+ }[] | undefined;
1440
+ }, {
1441
+ sku: string;
1442
+ tracked: boolean;
1443
+ metadata: {
1444
+ source: string;
1445
+ sourceId?: string | undefined;
1446
+ externalIds?: Record<string, string> | undefined;
1447
+ isDiscontinued?: boolean | undefined;
1448
+ isPerishable?: boolean | undefined;
1449
+ expiryDate?: string | undefined;
1450
+ };
1451
+ totals: {
1452
+ available: number;
1453
+ onHand: number;
1454
+ reserved: number;
1455
+ incoming: number;
1456
+ damaged?: number | undefined;
1457
+ inTransit?: number | undefined;
1458
+ };
1459
+ dates: {
1460
+ updatedAt: string;
1461
+ lastCounted?: string | undefined;
1462
+ lastSold?: string | undefined;
1463
+ lastReceived?: string | undefined;
1464
+ };
1465
+ locations: {
1466
+ sku: string;
1467
+ location: {
1468
+ code: string;
1469
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
1470
+ id: string;
1471
+ name: string;
1472
+ metadata?: Record<string, unknown> | undefined;
1473
+ timezone?: string | undefined;
1474
+ address?: {
1475
+ street1: string;
1476
+ city: string;
1477
+ postalCode: string;
1478
+ country: string;
1479
+ type?: "billing" | "shipping" | "both" | undefined;
1480
+ street2?: string | undefined;
1481
+ street3?: string | undefined;
1482
+ state?: string | undefined;
1483
+ stateCode?: string | undefined;
1484
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1485
+ company?: string | undefined;
1486
+ firstName?: string | undefined;
1487
+ lastName?: string | undefined;
1488
+ phone?: string | undefined;
1489
+ email?: string | undefined;
1490
+ isDefault?: boolean | undefined;
1491
+ isResidential?: boolean | undefined;
1492
+ isValidated?: boolean | undefined;
1493
+ validationSource?: string | undefined;
1494
+ } | undefined;
1495
+ contactName?: string | undefined;
1496
+ contactPhone?: string | undefined;
1497
+ contactEmail?: string | undefined;
1498
+ isActive?: boolean | undefined;
1499
+ isFulfillmentCenter?: boolean | undefined;
1500
+ priority?: number | undefined;
1501
+ };
1502
+ quantityOnHand: number;
1503
+ quantityReserved: number;
1504
+ quantityAvailable: number;
1505
+ quantityIncoming: number;
1506
+ customFields?: Record<string, unknown> | undefined;
1507
+ quantityDamaged?: number | undefined;
1508
+ quantityInTransit?: number | undefined;
1509
+ reorderPoint?: number | undefined;
1510
+ reorderQuantity?: number | undefined;
1511
+ maxQuantity?: number | undefined;
1512
+ unitCost?: {
1513
+ amount: number;
1514
+ currency: string;
1515
+ } | undefined;
1516
+ lastCounted?: string | undefined;
1517
+ lastAdjusted?: string | undefined;
1518
+ lastMovement?: string | undefined;
1519
+ binLocation?: string | undefined;
1520
+ }[];
1521
+ allowBackorder?: boolean | undefined;
1522
+ productId?: string | undefined;
1523
+ productName?: string | undefined;
1524
+ allowNegative?: boolean | undefined;
1525
+ thresholds?: {
1526
+ lowStock?: number | undefined;
1527
+ outOfStock?: number | undefined;
1528
+ } | undefined;
1529
+ recentMovements?: {
1530
+ type: "sale" | "return" | "adjustment" | "damage" | "shrinkage" | "receipt" | "transfer" | "production" | "sample" | "promotion" | "cycle_count";
1531
+ id: string;
1532
+ sku: string;
1533
+ quantity: number;
1534
+ location: {
1535
+ code: string;
1536
+ type: "warehouse" | "store" | "supplier" | "dropship" | "virtual" | "consignment" | "transit";
1537
+ id: string;
1538
+ name: string;
1539
+ metadata?: Record<string, unknown> | undefined;
1540
+ timezone?: string | undefined;
1541
+ address?: {
1542
+ street1: string;
1543
+ city: string;
1544
+ postalCode: string;
1545
+ country: string;
1546
+ type?: "billing" | "shipping" | "both" | undefined;
1547
+ street2?: string | undefined;
1548
+ street3?: string | undefined;
1549
+ state?: string | undefined;
1550
+ stateCode?: string | undefined;
1551
+ countryCode?: "US" | "CA" | "GB" | "AU" | "NZ" | "DE" | "FR" | "IT" | "ES" | "NL" | "BE" | "CH" | "AT" | "SE" | "NO" | "DK" | "FI" | "IE" | "PT" | "PL" | "CZ" | "JP" | "CN" | "IN" | "SG" | "HK" | "MX" | "BR" | "ZA" | undefined;
1552
+ company?: string | undefined;
1553
+ firstName?: string | undefined;
1554
+ lastName?: string | undefined;
1555
+ phone?: string | undefined;
1556
+ email?: string | undefined;
1557
+ isDefault?: boolean | undefined;
1558
+ isResidential?: boolean | undefined;
1559
+ isValidated?: boolean | undefined;
1560
+ validationSource?: string | undefined;
1561
+ } | undefined;
1562
+ contactName?: string | undefined;
1563
+ contactPhone?: string | undefined;
1564
+ contactEmail?: string | undefined;
1565
+ isActive?: boolean | undefined;
1566
+ isFulfillmentCenter?: boolean | undefined;
1567
+ priority?: number | undefined;
1568
+ };
1569
+ performedAt: string;
1570
+ notes?: string | undefined;
1571
+ orderId?: string | undefined;
1572
+ purchaseOrderId?: string | undefined;
1573
+ transferId?: string | undefined;
1574
+ adjustmentReason?: string | undefined;
1575
+ performedBy?: string | undefined;
1576
+ quantityBefore?: number | undefined;
1577
+ quantityAfter?: number | undefined;
1578
+ }[] | undefined;
1579
+ }>;
1580
+ export type CanonicalInventory = z.infer<typeof CanonicalInventorySchema>;
1581
+ export declare const InventoryHelper: {
1582
+ /**
1583
+ * Check if SKU is in stock (globally)
1584
+ */
1585
+ isInStock(inventory: CanonicalInventory): boolean;
1586
+ /**
1587
+ * Check if SKU is low stock
1588
+ */
1589
+ isLowStock(inventory: CanonicalInventory): boolean;
1590
+ /**
1591
+ * Check if SKU is out of stock
1592
+ */
1593
+ isOutOfStock(inventory: CanonicalInventory): boolean;
1594
+ /**
1595
+ * Get inventory at specific location
1596
+ */
1597
+ getLocationLevel(inventory: CanonicalInventory, locationId: string): InventoryLevel | null;
1598
+ /**
1599
+ * Get fulfillment locations (sorted by priority)
1600
+ */
1601
+ getFulfillmentLocations(inventory: CanonicalInventory): InventoryLevel[];
1602
+ /**
1603
+ * Get best fulfillment location for quantity
1604
+ */
1605
+ getBestFulfillmentLocation(inventory: CanonicalInventory, quantity: number): InventoryLevel | null;
1606
+ /**
1607
+ * Calculate total value of inventory
1608
+ */
1609
+ getTotalValue(inventory: CanonicalInventory): {
1610
+ amount: number;
1611
+ currency: string;
1612
+ } | null;
1613
+ /**
1614
+ * Calculate days of supply
1615
+ */
1616
+ getDaysOfSupply(inventory: CanonicalInventory, averageDailySales: number): number | null;
1617
+ /**
1618
+ * Check if reorder is needed
1619
+ */
1620
+ needsReorder(inventory: CanonicalInventory): boolean;
1621
+ /**
1622
+ * Get recommended reorder quantity
1623
+ */
1624
+ getReorderQuantity(inventory: CanonicalInventory): number;
1625
+ /**
1626
+ * Calculate inventory turnover rate
1627
+ */
1628
+ getTurnoverRate(inventory: CanonicalInventory, soldInPeriod: number, periodDays?: number): number;
1629
+ /**
1630
+ * Get locations that need attention
1631
+ */
1632
+ getLocationsNeedingAttention(inventory: CanonicalInventory): {
1633
+ lowStock: InventoryLevel[];
1634
+ needReorder: InventoryLevel[];
1635
+ damaged: InventoryLevel[];
1636
+ };
1637
+ /**
1638
+ * Format inventory status
1639
+ */
1640
+ getStatusText(inventory: CanonicalInventory): string;
1641
+ };
1642
+ //# sourceMappingURL=inventory.d.ts.map