@axova/shared 1.0.2 → 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 (68) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +2 -0
  3. package/dist/lib/db.d.ts +34406 -1
  4. package/dist/lib/db.js +21 -1
  5. package/dist/middleware/storeOwnership.js +22 -3
  6. package/dist/middleware/storeValidationMiddleware.js +16 -39
  7. package/dist/schemas/admin/admin-schema.d.ts +2 -2
  8. package/dist/schemas/ai-moderation/ai-moderation-schema.d.ts +6 -6
  9. package/dist/schemas/common/common-schemas.d.ts +71 -71
  10. package/dist/schemas/compliance/compliance-schema.d.ts +20 -20
  11. package/dist/schemas/compliance/kyc-schema.d.ts +8 -8
  12. package/dist/schemas/customer/customer-schema.d.ts +18 -18
  13. package/dist/schemas/index.d.ts +28 -0
  14. package/dist/schemas/index.js +134 -3
  15. package/dist/schemas/inventory/inventory-tables.d.ts +188 -188
  16. package/dist/schemas/inventory/lot-tables.d.ts +102 -102
  17. package/dist/schemas/order/cart-schema.d.ts +2865 -0
  18. package/dist/schemas/order/cart-schema.js +396 -0
  19. package/dist/schemas/order/order-schema.d.ts +19 -19
  20. package/dist/schemas/order/order-schema.js +8 -2
  21. package/dist/schemas/product/discount-schema.d.ts +3 -3
  22. package/dist/schemas/product/product-schema.d.ts +3 -3
  23. package/dist/schemas/store/store-audit-schema.d.ts +20 -20
  24. package/dist/schemas/store/store-schema.d.ts +182 -2
  25. package/dist/schemas/store/store-schema.js +19 -0
  26. package/dist/schemas/store/storefront-config-schema.d.ts +434 -823
  27. package/dist/schemas/store/storefront-config-schema.js +35 -62
  28. package/dist/utils/subdomain.d.ts +1 -1
  29. package/dist/utils/subdomain.js +10 -15
  30. package/package.json +1 -1
  31. package/src/configs/index.ts +654 -654
  32. package/src/index.ts +26 -23
  33. package/src/interfaces/customer-events.ts +106 -106
  34. package/src/interfaces/inventory-events.ts +545 -545
  35. package/src/interfaces/inventory-types.ts +1004 -1004
  36. package/src/interfaces/order-events.ts +381 -381
  37. package/src/lib/auditLogger.ts +1117 -1117
  38. package/src/lib/authOrganization.ts +153 -153
  39. package/src/lib/db.ts +84 -64
  40. package/src/middleware/serviceAuth.ts +328 -328
  41. package/src/middleware/storeOwnership.ts +199 -181
  42. package/src/middleware/storeValidationMiddleware.ts +17 -50
  43. package/src/middleware/userAuth.ts +248 -248
  44. package/src/schemas/admin/admin-schema.ts +208 -208
  45. package/src/schemas/ai-moderation/ai-moderation-schema.ts +180 -180
  46. package/src/schemas/common/common-schemas.ts +108 -108
  47. package/src/schemas/compliance/compliance-schema.ts +927 -0
  48. package/src/schemas/compliance/kyc-schema.ts +649 -0
  49. package/src/schemas/customer/customer-schema.ts +576 -0
  50. package/src/schemas/index.ts +202 -3
  51. package/src/schemas/inventory/inventory-tables.ts +1927 -0
  52. package/src/schemas/inventory/lot-tables.ts +799 -0
  53. package/src/schemas/order/cart-schema.ts +652 -0
  54. package/src/schemas/order/order-schema.ts +1406 -0
  55. package/src/schemas/product/discount-relations.ts +44 -0
  56. package/src/schemas/product/discount-schema.ts +464 -0
  57. package/src/schemas/product/product-relations.ts +187 -0
  58. package/src/schemas/product/product-schema.ts +955 -0
  59. package/src/schemas/store/ethiopian_business_api.md.resolved +212 -0
  60. package/src/schemas/store/store-audit-schema.ts +1257 -0
  61. package/src/schemas/store/store-schema.ts +682 -0
  62. package/src/schemas/store/store-settings-schema.ts +231 -0
  63. package/src/schemas/store/storefront-config-schema.ts +382 -0
  64. package/src/schemas/types.ts +67 -67
  65. package/src/types/events.ts +646 -646
  66. package/src/utils/errorHandler.ts +44 -44
  67. package/src/utils/subdomain.ts +19 -23
  68. package/tsconfig.json +21 -21
@@ -54,7 +54,7 @@ export declare const InventorySchema: z.ZodObject<{
54
54
  }, "strip", z.ZodTypeAny, {
55
55
  id: string;
56
56
  version: number;
57
- status: "QUARANTINED" | "EXPIRED" | "IN_STOCK" | "OUT_OF_STOCK" | "RESERVED" | "DAMAGED" | "IN_TRANSIT" | "RETURNED" | "LOST" | "ADJUSTED";
57
+ status: "EXPIRED" | "RETURNED" | "IN_TRANSIT" | "LOST" | "OUT_OF_STOCK" | "IN_STOCK" | "RESERVED" | "DAMAGED" | "QUARANTINED" | "ADJUSTED";
58
58
  storeId: string;
59
59
  isActive: boolean;
60
60
  productId: string;
@@ -64,21 +64,21 @@ export declare const InventorySchema: z.ZodObject<{
64
64
  createdAt: Date;
65
65
  barcode: string;
66
66
  locationId: string;
67
- locationType: "WAREHOUSE" | "POS";
67
+ locationType: "POS" | "WAREHOUSE";
68
68
  available: number;
69
69
  metadata?: Record<string, any> | undefined;
70
70
  createdBy?: string | undefined;
71
71
  variantId?: string | undefined;
72
- batchNumber?: string | undefined;
72
+ updatedBy?: string | undefined;
73
73
  notes?: string | undefined;
74
- expiryDate?: Date | undefined;
74
+ lowStockThreshold?: number | undefined;
75
75
  reserved?: number | undefined;
76
76
  committed?: number | undefined;
77
77
  unitCost?: number | undefined;
78
+ batchNumber?: string | undefined;
78
79
  lotNumber?: string | undefined;
79
- lowStockThreshold?: number | undefined;
80
+ expiryDate?: Date | undefined;
80
81
  criticalStockThreshold?: number | undefined;
81
- updatedBy?: string | undefined;
82
82
  }, {
83
83
  id: string;
84
84
  storeId: string;
@@ -89,24 +89,24 @@ export declare const InventorySchema: z.ZodObject<{
89
89
  createdAt: Date;
90
90
  barcode: string;
91
91
  locationId: string;
92
- locationType: "WAREHOUSE" | "POS";
92
+ locationType: "POS" | "WAREHOUSE";
93
93
  version?: number | undefined;
94
- status?: "QUARANTINED" | "EXPIRED" | "IN_STOCK" | "OUT_OF_STOCK" | "RESERVED" | "DAMAGED" | "IN_TRANSIT" | "RETURNED" | "LOST" | "ADJUSTED" | undefined;
94
+ status?: "EXPIRED" | "RETURNED" | "IN_TRANSIT" | "LOST" | "OUT_OF_STOCK" | "IN_STOCK" | "RESERVED" | "DAMAGED" | "QUARANTINED" | "ADJUSTED" | undefined;
95
95
  isActive?: boolean | undefined;
96
96
  metadata?: Record<string, any> | undefined;
97
97
  createdBy?: string | undefined;
98
98
  variantId?: string | undefined;
99
- batchNumber?: string | undefined;
99
+ updatedBy?: string | undefined;
100
100
  notes?: string | undefined;
101
- expiryDate?: Date | undefined;
101
+ lowStockThreshold?: number | undefined;
102
102
  reserved?: number | undefined;
103
103
  committed?: number | undefined;
104
104
  unitCost?: number | undefined;
105
+ batchNumber?: string | undefined;
105
106
  lotNumber?: string | undefined;
106
- lowStockThreshold?: number | undefined;
107
+ expiryDate?: Date | undefined;
107
108
  criticalStockThreshold?: number | undefined;
108
109
  available?: number | undefined;
109
- updatedBy?: string | undefined;
110
110
  }>;
111
111
  export declare const InventoryMovementSchema: z.ZodObject<{
112
112
  id: z.ZodString;
@@ -247,42 +247,42 @@ export declare const POSLocationSchema: z.ZodObject<{
247
247
  postalCode: z.ZodString;
248
248
  country: z.ZodString;
249
249
  }, "strip", z.ZodTypeAny, {
250
- line1: string;
250
+ country: string;
251
251
  city: string;
252
- state: string;
253
252
  postalCode: string;
254
- country: string;
253
+ line1: string;
254
+ state: string;
255
255
  line2?: string | undefined;
256
256
  }, {
257
- line1: string;
257
+ country: string;
258
258
  city: string;
259
- state: string;
260
259
  postalCode: string;
261
- country: string;
260
+ line1: string;
261
+ state: string;
262
262
  line2?: string | undefined;
263
263
  }>;
264
264
  }, "strip", z.ZodTypeAny, {
265
+ lat: number;
266
+ lng: number;
265
267
  address: {
266
- line1: string;
268
+ country: string;
267
269
  city: string;
268
- state: string;
269
270
  postalCode: string;
270
- country: string;
271
+ line1: string;
272
+ state: string;
271
273
  line2?: string | undefined;
272
274
  };
275
+ }, {
273
276
  lat: number;
274
277
  lng: number;
275
- }, {
276
278
  address: {
277
- line1: string;
279
+ country: string;
278
280
  city: string;
279
- state: string;
280
281
  postalCode: string;
281
- country: string;
282
+ line1: string;
283
+ state: string;
282
284
  line2?: string | undefined;
283
285
  };
284
- lat: number;
285
- lng: number;
286
286
  }>;
287
287
  address: z.ZodOptional<z.ZodObject<{
288
288
  street: z.ZodOptional<z.ZodString>;
@@ -303,10 +303,10 @@ export declare const POSLocationSchema: z.ZodObject<{
303
303
  lng: number;
304
304
  }>>;
305
305
  }, "strip", z.ZodTypeAny, {
306
+ country: string;
306
307
  city: string;
307
- state: string;
308
308
  postalCode: string;
309
- country: string;
309
+ state: string;
310
310
  line1?: string | undefined;
311
311
  line2?: string | undefined;
312
312
  street?: string | undefined;
@@ -315,10 +315,10 @@ export declare const POSLocationSchema: z.ZodObject<{
315
315
  lng: number;
316
316
  } | undefined;
317
317
  }, {
318
+ country: string;
318
319
  city: string;
319
- state: string;
320
320
  postalCode: string;
321
- country: string;
321
+ state: string;
322
322
  line1?: string | undefined;
323
323
  line2?: string | undefined;
324
324
  street?: string | undefined;
@@ -384,23 +384,23 @@ export declare const POSLocationSchema: z.ZodObject<{
384
384
  close: z.ZodOptional<z.ZodString>;
385
385
  }, "strip", z.ZodTypeAny, {
386
386
  closed: true;
387
- close?: string | undefined;
388
387
  open?: string | undefined;
388
+ close?: string | undefined;
389
389
  }, {
390
390
  closed: true;
391
- close?: string | undefined;
392
391
  open?: string | undefined;
392
+ close?: string | undefined;
393
393
  }>, z.ZodObject<{
394
394
  open: z.ZodString;
395
395
  close: z.ZodString;
396
396
  closed: z.ZodOptional<z.ZodLiteral<false>>;
397
397
  }, "strip", z.ZodTypeAny, {
398
- close: string;
399
398
  open: string;
399
+ close: string;
400
400
  closed?: false | undefined;
401
401
  }, {
402
- close: string;
403
402
  open: string;
403
+ close: string;
404
404
  closed?: false | undefined;
405
405
  }>]>>;
406
406
  tuesday: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -409,23 +409,23 @@ export declare const POSLocationSchema: z.ZodObject<{
409
409
  close: z.ZodOptional<z.ZodString>;
410
410
  }, "strip", z.ZodTypeAny, {
411
411
  closed: true;
412
- close?: string | undefined;
413
412
  open?: string | undefined;
413
+ close?: string | undefined;
414
414
  }, {
415
415
  closed: true;
416
- close?: string | undefined;
417
416
  open?: string | undefined;
417
+ close?: string | undefined;
418
418
  }>, z.ZodObject<{
419
419
  open: z.ZodString;
420
420
  close: z.ZodString;
421
421
  closed: z.ZodOptional<z.ZodLiteral<false>>;
422
422
  }, "strip", z.ZodTypeAny, {
423
- close: string;
424
423
  open: string;
424
+ close: string;
425
425
  closed?: false | undefined;
426
426
  }, {
427
- close: string;
428
427
  open: string;
428
+ close: string;
429
429
  closed?: false | undefined;
430
430
  }>]>>;
431
431
  wednesday: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -434,23 +434,23 @@ export declare const POSLocationSchema: z.ZodObject<{
434
434
  close: z.ZodOptional<z.ZodString>;
435
435
  }, "strip", z.ZodTypeAny, {
436
436
  closed: true;
437
- close?: string | undefined;
438
437
  open?: string | undefined;
438
+ close?: string | undefined;
439
439
  }, {
440
440
  closed: true;
441
- close?: string | undefined;
442
441
  open?: string | undefined;
442
+ close?: string | undefined;
443
443
  }>, z.ZodObject<{
444
444
  open: z.ZodString;
445
445
  close: z.ZodString;
446
446
  closed: z.ZodOptional<z.ZodLiteral<false>>;
447
447
  }, "strip", z.ZodTypeAny, {
448
- close: string;
449
448
  open: string;
449
+ close: string;
450
450
  closed?: false | undefined;
451
451
  }, {
452
- close: string;
453
452
  open: string;
453
+ close: string;
454
454
  closed?: false | undefined;
455
455
  }>]>>;
456
456
  thursday: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -459,23 +459,23 @@ export declare const POSLocationSchema: z.ZodObject<{
459
459
  close: z.ZodOptional<z.ZodString>;
460
460
  }, "strip", z.ZodTypeAny, {
461
461
  closed: true;
462
- close?: string | undefined;
463
462
  open?: string | undefined;
463
+ close?: string | undefined;
464
464
  }, {
465
465
  closed: true;
466
- close?: string | undefined;
467
466
  open?: string | undefined;
467
+ close?: string | undefined;
468
468
  }>, z.ZodObject<{
469
469
  open: z.ZodString;
470
470
  close: z.ZodString;
471
471
  closed: z.ZodOptional<z.ZodLiteral<false>>;
472
472
  }, "strip", z.ZodTypeAny, {
473
- close: string;
474
473
  open: string;
474
+ close: string;
475
475
  closed?: false | undefined;
476
476
  }, {
477
- close: string;
478
477
  open: string;
478
+ close: string;
479
479
  closed?: false | undefined;
480
480
  }>]>>;
481
481
  friday: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -484,23 +484,23 @@ export declare const POSLocationSchema: z.ZodObject<{
484
484
  close: z.ZodOptional<z.ZodString>;
485
485
  }, "strip", z.ZodTypeAny, {
486
486
  closed: true;
487
- close?: string | undefined;
488
487
  open?: string | undefined;
488
+ close?: string | undefined;
489
489
  }, {
490
490
  closed: true;
491
- close?: string | undefined;
492
491
  open?: string | undefined;
492
+ close?: string | undefined;
493
493
  }>, z.ZodObject<{
494
494
  open: z.ZodString;
495
495
  close: z.ZodString;
496
496
  closed: z.ZodOptional<z.ZodLiteral<false>>;
497
497
  }, "strip", z.ZodTypeAny, {
498
- close: string;
499
498
  open: string;
499
+ close: string;
500
500
  closed?: false | undefined;
501
501
  }, {
502
- close: string;
503
502
  open: string;
503
+ close: string;
504
504
  closed?: false | undefined;
505
505
  }>]>>;
506
506
  saturday: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -509,23 +509,23 @@ export declare const POSLocationSchema: z.ZodObject<{
509
509
  close: z.ZodOptional<z.ZodString>;
510
510
  }, "strip", z.ZodTypeAny, {
511
511
  closed: true;
512
- close?: string | undefined;
513
512
  open?: string | undefined;
513
+ close?: string | undefined;
514
514
  }, {
515
515
  closed: true;
516
- close?: string | undefined;
517
516
  open?: string | undefined;
517
+ close?: string | undefined;
518
518
  }>, z.ZodObject<{
519
519
  open: z.ZodString;
520
520
  close: z.ZodString;
521
521
  closed: z.ZodOptional<z.ZodLiteral<false>>;
522
522
  }, "strip", z.ZodTypeAny, {
523
- close: string;
524
523
  open: string;
524
+ close: string;
525
525
  closed?: false | undefined;
526
526
  }, {
527
- close: string;
528
527
  open: string;
528
+ close: string;
529
529
  closed?: false | undefined;
530
530
  }>]>>;
531
531
  sunday: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -534,23 +534,23 @@ export declare const POSLocationSchema: z.ZodObject<{
534
534
  close: z.ZodOptional<z.ZodString>;
535
535
  }, "strip", z.ZodTypeAny, {
536
536
  closed: true;
537
- close?: string | undefined;
538
537
  open?: string | undefined;
538
+ close?: string | undefined;
539
539
  }, {
540
540
  closed: true;
541
- close?: string | undefined;
542
541
  open?: string | undefined;
542
+ close?: string | undefined;
543
543
  }>, z.ZodObject<{
544
544
  open: z.ZodString;
545
545
  close: z.ZodString;
546
546
  closed: z.ZodOptional<z.ZodLiteral<false>>;
547
547
  }, "strip", z.ZodTypeAny, {
548
- close: string;
549
548
  open: string;
549
+ close: string;
550
550
  closed?: false | undefined;
551
551
  }, {
552
- close: string;
553
552
  open: string;
553
+ close: string;
554
554
  closed?: false | undefined;
555
555
  }>]>>;
556
556
  holidays: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -570,65 +570,65 @@ export declare const POSLocationSchema: z.ZodObject<{
570
570
  timezone: string;
571
571
  monday?: {
572
572
  closed: true;
573
- close?: string | undefined;
574
573
  open?: string | undefined;
574
+ close?: string | undefined;
575
575
  } | {
576
- close: string;
577
576
  open: string;
577
+ close: string;
578
578
  closed?: false | undefined;
579
579
  } | undefined;
580
580
  tuesday?: {
581
581
  closed: true;
582
- close?: string | undefined;
583
582
  open?: string | undefined;
583
+ close?: string | undefined;
584
584
  } | {
585
- close: string;
586
585
  open: string;
586
+ close: string;
587
587
  closed?: false | undefined;
588
588
  } | undefined;
589
589
  wednesday?: {
590
590
  closed: true;
591
- close?: string | undefined;
592
591
  open?: string | undefined;
592
+ close?: string | undefined;
593
593
  } | {
594
- close: string;
595
594
  open: string;
595
+ close: string;
596
596
  closed?: false | undefined;
597
597
  } | undefined;
598
598
  thursday?: {
599
599
  closed: true;
600
- close?: string | undefined;
601
600
  open?: string | undefined;
601
+ close?: string | undefined;
602
602
  } | {
603
- close: string;
604
603
  open: string;
604
+ close: string;
605
605
  closed?: false | undefined;
606
606
  } | undefined;
607
607
  friday?: {
608
608
  closed: true;
609
- close?: string | undefined;
610
609
  open?: string | undefined;
610
+ close?: string | undefined;
611
611
  } | {
612
- close: string;
613
612
  open: string;
613
+ close: string;
614
614
  closed?: false | undefined;
615
615
  } | undefined;
616
616
  saturday?: {
617
617
  closed: true;
618
- close?: string | undefined;
619
618
  open?: string | undefined;
619
+ close?: string | undefined;
620
620
  } | {
621
- close: string;
622
621
  open: string;
622
+ close: string;
623
623
  closed?: false | undefined;
624
624
  } | undefined;
625
625
  sunday?: {
626
626
  closed: true;
627
- close?: string | undefined;
628
627
  open?: string | undefined;
628
+ close?: string | undefined;
629
629
  } | {
630
- close: string;
631
630
  open: string;
631
+ close: string;
632
632
  closed?: false | undefined;
633
633
  } | undefined;
634
634
  holidays?: {
@@ -640,65 +640,65 @@ export declare const POSLocationSchema: z.ZodObject<{
640
640
  timezone: string;
641
641
  monday?: {
642
642
  closed: true;
643
- close?: string | undefined;
644
643
  open?: string | undefined;
644
+ close?: string | undefined;
645
645
  } | {
646
- close: string;
647
646
  open: string;
647
+ close: string;
648
648
  closed?: false | undefined;
649
649
  } | undefined;
650
650
  tuesday?: {
651
651
  closed: true;
652
- close?: string | undefined;
653
652
  open?: string | undefined;
653
+ close?: string | undefined;
654
654
  } | {
655
- close: string;
656
655
  open: string;
656
+ close: string;
657
657
  closed?: false | undefined;
658
658
  } | undefined;
659
659
  wednesday?: {
660
660
  closed: true;
661
- close?: string | undefined;
662
661
  open?: string | undefined;
662
+ close?: string | undefined;
663
663
  } | {
664
- close: string;
665
664
  open: string;
665
+ close: string;
666
666
  closed?: false | undefined;
667
667
  } | undefined;
668
668
  thursday?: {
669
669
  closed: true;
670
- close?: string | undefined;
671
670
  open?: string | undefined;
671
+ close?: string | undefined;
672
672
  } | {
673
- close: string;
674
673
  open: string;
674
+ close: string;
675
675
  closed?: false | undefined;
676
676
  } | undefined;
677
677
  friday?: {
678
678
  closed: true;
679
- close?: string | undefined;
680
679
  open?: string | undefined;
680
+ close?: string | undefined;
681
681
  } | {
682
- close: string;
683
682
  open: string;
683
+ close: string;
684
684
  closed?: false | undefined;
685
685
  } | undefined;
686
686
  saturday?: {
687
687
  closed: true;
688
- close?: string | undefined;
689
688
  open?: string | undefined;
689
+ close?: string | undefined;
690
690
  } | {
691
- close: string;
692
691
  open: string;
692
+ close: string;
693
693
  closed?: false | undefined;
694
694
  } | undefined;
695
695
  sunday?: {
696
696
  closed: true;
697
- close?: string | undefined;
698
697
  open?: string | undefined;
698
+ close?: string | undefined;
699
699
  } | {
700
- close: string;
701
700
  open: string;
701
+ close: string;
702
702
  closed?: false | undefined;
703
703
  } | undefined;
704
704
  holidays?: {
@@ -808,17 +808,17 @@ export declare const POSLocationSchema: z.ZodObject<{
808
808
  currency: z.ZodDefault<z.ZodString>;
809
809
  }, "strip", z.ZodTypeAny, {
810
810
  currency: string;
811
- maintenance?: number | undefined;
812
811
  monthlyRent?: number | undefined;
813
812
  utilities?: number | undefined;
814
813
  labor?: number | undefined;
814
+ maintenance?: number | undefined;
815
815
  insurance?: number | undefined;
816
816
  }, {
817
817
  currency?: string | undefined;
818
- maintenance?: number | undefined;
819
818
  monthlyRent?: number | undefined;
820
819
  utilities?: number | undefined;
821
820
  labor?: number | undefined;
821
+ maintenance?: number | undefined;
822
822
  insurance?: number | undefined;
823
823
  }>>;
824
824
  securityFeatures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -862,7 +862,7 @@ export declare const POSLocationSchema: z.ZodObject<{
862
862
  version: number;
863
863
  code: string;
864
864
  type: "OTHER" | "RETAIL" | "KIOSK" | "POPUP";
865
- status: "CLOSED" | "ACTIVE" | "INACTIVE";
865
+ status: "ACTIVE" | "INACTIVE" | "CLOSED";
866
866
  storeId: string;
867
867
  timezone: string;
868
868
  isActive: boolean;
@@ -870,16 +870,16 @@ export declare const POSLocationSchema: z.ZodObject<{
870
870
  updatedAt: Date;
871
871
  createdAt: Date;
872
872
  geoLocation: {
873
+ lat: number;
874
+ lng: number;
873
875
  address: {
874
- line1: string;
876
+ country: string;
875
877
  city: string;
876
- state: string;
877
878
  postalCode: string;
878
- country: string;
879
+ line1: string;
880
+ state: string;
879
881
  line2?: string | undefined;
880
882
  };
881
- lat: number;
882
- lng: number;
883
883
  };
884
884
  description?: string | undefined;
885
885
  metadata?: Record<string, any> | undefined;
@@ -888,65 +888,65 @@ export declare const POSLocationSchema: z.ZodObject<{
888
888
  timezone: string;
889
889
  monday?: {
890
890
  closed: true;
891
- close?: string | undefined;
892
891
  open?: string | undefined;
892
+ close?: string | undefined;
893
893
  } | {
894
- close: string;
895
894
  open: string;
895
+ close: string;
896
896
  closed?: false | undefined;
897
897
  } | undefined;
898
898
  tuesday?: {
899
899
  closed: true;
900
- close?: string | undefined;
901
900
  open?: string | undefined;
901
+ close?: string | undefined;
902
902
  } | {
903
- close: string;
904
903
  open: string;
904
+ close: string;
905
905
  closed?: false | undefined;
906
906
  } | undefined;
907
907
  wednesday?: {
908
908
  closed: true;
909
- close?: string | undefined;
910
909
  open?: string | undefined;
910
+ close?: string | undefined;
911
911
  } | {
912
- close: string;
913
912
  open: string;
913
+ close: string;
914
914
  closed?: false | undefined;
915
915
  } | undefined;
916
916
  thursday?: {
917
917
  closed: true;
918
- close?: string | undefined;
919
918
  open?: string | undefined;
919
+ close?: string | undefined;
920
920
  } | {
921
- close: string;
922
921
  open: string;
922
+ close: string;
923
923
  closed?: false | undefined;
924
924
  } | undefined;
925
925
  friday?: {
926
926
  closed: true;
927
- close?: string | undefined;
928
927
  open?: string | undefined;
928
+ close?: string | undefined;
929
929
  } | {
930
- close: string;
931
930
  open: string;
931
+ close: string;
932
932
  closed?: false | undefined;
933
933
  } | undefined;
934
934
  saturday?: {
935
935
  closed: true;
936
- close?: string | undefined;
937
936
  open?: string | undefined;
937
+ close?: string | undefined;
938
938
  } | {
939
- close: string;
940
939
  open: string;
940
+ close: string;
941
941
  closed?: false | undefined;
942
942
  } | undefined;
943
943
  sunday?: {
944
944
  closed: true;
945
- close?: string | undefined;
946
945
  open?: string | undefined;
946
+ close?: string | undefined;
947
947
  } | {
948
- close: string;
949
948
  open: string;
949
+ close: string;
950
950
  closed?: false | undefined;
951
951
  } | undefined;
952
952
  holidays?: {
@@ -961,11 +961,16 @@ export declare const POSLocationSchema: z.ZodObject<{
961
961
  phone?: string | undefined;
962
962
  alternatePhone?: string | undefined;
963
963
  } | undefined;
964
+ complianceRequirements?: string[] | undefined;
965
+ updatedBy?: string | undefined;
966
+ internalNotes?: string | undefined;
967
+ notes?: string | undefined;
968
+ allowBackorders?: boolean | undefined;
964
969
  address?: {
970
+ country: string;
965
971
  city: string;
966
- state: string;
967
972
  postalCode: string;
968
- country: string;
973
+ state: string;
969
974
  line1?: string | undefined;
970
975
  line2?: string | undefined;
971
976
  street?: string | undefined;
@@ -974,9 +979,6 @@ export declare const POSLocationSchema: z.ZodObject<{
974
979
  lng: number;
975
980
  } | undefined;
976
981
  } | undefined;
977
- notes?: string | undefined;
978
- internalNotes?: string | undefined;
979
- updatedBy?: string | undefined;
980
982
  displayName?: string | undefined;
981
983
  posType?: "OTHER" | "RETAIL" | "KIOSK" | "POPUP" | undefined;
982
984
  primaryContact?: {
@@ -998,7 +1000,6 @@ export declare const POSLocationSchema: z.ZodObject<{
998
1000
  lastSync?: Date | undefined;
999
1001
  supportedPaymentMethods?: string[] | undefined;
1000
1002
  } | undefined;
1001
- allowBackorders?: boolean | undefined;
1002
1003
  autoFulfillment?: boolean | undefined;
1003
1004
  supportedFeatures?: ("CASH_PAYMENT" | "CARD_PAYMENT" | "MOBILE_PAYMENT" | "GIFT_CARDS" | "LAYAWAY" | "RETURNS_EXCHANGES" | "PRODUCT_LOOKUP" | "INVENTORY_CHECK" | "CUSTOMER_ORDERS" | "RESERVATIONS" | "LOYALTY_PROGRAM" | "PROMOTIONS" | "TAX_CALCULATION" | "RECEIPT_PRINTING" | "EMAIL_RECEIPTS" | "BARCODE_SCANNING" | "PRICE_CHECKING")[] | undefined;
1004
1005
  hardware?: {
@@ -1026,17 +1027,16 @@ export declare const POSLocationSchema: z.ZodObject<{
1026
1027
  maxDiscountPercent?: number | undefined;
1027
1028
  returnDayLimit?: number | undefined;
1028
1029
  } | undefined;
1029
- customerServices?: ("PERSONAL_SHOPPING" | "ALTERATIONS" | "GIFT_WRAPPING" | "DELIVERY" | "INSTALLATION" | "REPAIR_SERVICE" | "CONSULTATION" | "TRAINING" | "RENTAL" | "CUSTOM_ORDERS")[] | undefined;
1030
+ customerServices?: ("DELIVERY" | "PERSONAL_SHOPPING" | "ALTERATIONS" | "GIFT_WRAPPING" | "INSTALLATION" | "REPAIR_SERVICE" | "CONSULTATION" | "TRAINING" | "RENTAL" | "CUSTOM_ORDERS")[] | undefined;
1030
1031
  operationalCosts?: {
1031
1032
  currency: string;
1032
- maintenance?: number | undefined;
1033
1033
  monthlyRent?: number | undefined;
1034
1034
  utilities?: number | undefined;
1035
1035
  labor?: number | undefined;
1036
+ maintenance?: number | undefined;
1036
1037
  insurance?: number | undefined;
1037
1038
  } | undefined;
1038
1039
  securityFeatures?: string[] | undefined;
1039
- complianceRequirements?: string[] | undefined;
1040
1040
  lastSecurityAudit?: Date | undefined;
1041
1041
  customAttributes?: Record<string, any> | undefined;
1042
1042
  auditTrail?: {
@@ -1051,22 +1051,22 @@ export declare const POSLocationSchema: z.ZodObject<{
1051
1051
  id: string;
1052
1052
  code: string;
1053
1053
  type: "OTHER" | "RETAIL" | "KIOSK" | "POPUP";
1054
- status: "CLOSED" | "ACTIVE" | "INACTIVE";
1054
+ status: "ACTIVE" | "INACTIVE" | "CLOSED";
1055
1055
  storeId: string;
1056
1056
  name: string;
1057
1057
  updatedAt: Date;
1058
1058
  createdAt: Date;
1059
1059
  geoLocation: {
1060
+ lat: number;
1061
+ lng: number;
1060
1062
  address: {
1061
- line1: string;
1063
+ country: string;
1062
1064
  city: string;
1063
- state: string;
1064
1065
  postalCode: string;
1065
- country: string;
1066
+ line1: string;
1067
+ state: string;
1066
1068
  line2?: string | undefined;
1067
1069
  };
1068
- lat: number;
1069
- lng: number;
1070
1070
  };
1071
1071
  version?: number | undefined;
1072
1072
  timezone?: string | undefined;
@@ -1078,65 +1078,65 @@ export declare const POSLocationSchema: z.ZodObject<{
1078
1078
  timezone: string;
1079
1079
  monday?: {
1080
1080
  closed: true;
1081
- close?: string | undefined;
1082
1081
  open?: string | undefined;
1082
+ close?: string | undefined;
1083
1083
  } | {
1084
- close: string;
1085
1084
  open: string;
1085
+ close: string;
1086
1086
  closed?: false | undefined;
1087
1087
  } | undefined;
1088
1088
  tuesday?: {
1089
1089
  closed: true;
1090
- close?: string | undefined;
1091
1090
  open?: string | undefined;
1091
+ close?: string | undefined;
1092
1092
  } | {
1093
- close: string;
1094
1093
  open: string;
1094
+ close: string;
1095
1095
  closed?: false | undefined;
1096
1096
  } | undefined;
1097
1097
  wednesday?: {
1098
1098
  closed: true;
1099
- close?: string | undefined;
1100
1099
  open?: string | undefined;
1100
+ close?: string | undefined;
1101
1101
  } | {
1102
- close: string;
1103
1102
  open: string;
1103
+ close: string;
1104
1104
  closed?: false | undefined;
1105
1105
  } | undefined;
1106
1106
  thursday?: {
1107
1107
  closed: true;
1108
- close?: string | undefined;
1109
1108
  open?: string | undefined;
1109
+ close?: string | undefined;
1110
1110
  } | {
1111
- close: string;
1112
1111
  open: string;
1112
+ close: string;
1113
1113
  closed?: false | undefined;
1114
1114
  } | undefined;
1115
1115
  friday?: {
1116
1116
  closed: true;
1117
- close?: string | undefined;
1118
1117
  open?: string | undefined;
1118
+ close?: string | undefined;
1119
1119
  } | {
1120
- close: string;
1121
1120
  open: string;
1121
+ close: string;
1122
1122
  closed?: false | undefined;
1123
1123
  } | undefined;
1124
1124
  saturday?: {
1125
1125
  closed: true;
1126
- close?: string | undefined;
1127
1126
  open?: string | undefined;
1127
+ close?: string | undefined;
1128
1128
  } | {
1129
- close: string;
1130
1129
  open: string;
1130
+ close: string;
1131
1131
  closed?: false | undefined;
1132
1132
  } | undefined;
1133
1133
  sunday?: {
1134
1134
  closed: true;
1135
- close?: string | undefined;
1136
1135
  open?: string | undefined;
1136
+ close?: string | undefined;
1137
1137
  } | {
1138
- close: string;
1139
1138
  open: string;
1139
+ close: string;
1140
1140
  closed?: false | undefined;
1141
1141
  } | undefined;
1142
1142
  holidays?: {
@@ -1151,11 +1151,16 @@ export declare const POSLocationSchema: z.ZodObject<{
1151
1151
  phone?: string | undefined;
1152
1152
  alternatePhone?: string | undefined;
1153
1153
  } | undefined;
1154
+ complianceRequirements?: string[] | undefined;
1155
+ updatedBy?: string | undefined;
1156
+ internalNotes?: string | undefined;
1157
+ notes?: string | undefined;
1158
+ allowBackorders?: boolean | undefined;
1154
1159
  address?: {
1160
+ country: string;
1155
1161
  city: string;
1156
- state: string;
1157
1162
  postalCode: string;
1158
- country: string;
1163
+ state: string;
1159
1164
  line1?: string | undefined;
1160
1165
  line2?: string | undefined;
1161
1166
  street?: string | undefined;
@@ -1164,9 +1169,6 @@ export declare const POSLocationSchema: z.ZodObject<{
1164
1169
  lng: number;
1165
1170
  } | undefined;
1166
1171
  } | undefined;
1167
- notes?: string | undefined;
1168
- internalNotes?: string | undefined;
1169
- updatedBy?: string | undefined;
1170
1172
  displayName?: string | undefined;
1171
1173
  posType?: "OTHER" | "RETAIL" | "KIOSK" | "POPUP" | undefined;
1172
1174
  primaryContact?: {
@@ -1188,7 +1190,6 @@ export declare const POSLocationSchema: z.ZodObject<{
1188
1190
  lastSync?: Date | undefined;
1189
1191
  supportedPaymentMethods?: string[] | undefined;
1190
1192
  } | undefined;
1191
- allowBackorders?: boolean | undefined;
1192
1193
  autoFulfillment?: boolean | undefined;
1193
1194
  supportedFeatures?: ("CASH_PAYMENT" | "CARD_PAYMENT" | "MOBILE_PAYMENT" | "GIFT_CARDS" | "LAYAWAY" | "RETURNS_EXCHANGES" | "PRODUCT_LOOKUP" | "INVENTORY_CHECK" | "CUSTOMER_ORDERS" | "RESERVATIONS" | "LOYALTY_PROGRAM" | "PROMOTIONS" | "TAX_CALCULATION" | "RECEIPT_PRINTING" | "EMAIL_RECEIPTS" | "BARCODE_SCANNING" | "PRICE_CHECKING")[] | undefined;
1194
1195
  hardware?: {
@@ -1216,17 +1217,16 @@ export declare const POSLocationSchema: z.ZodObject<{
1216
1217
  returnDayLimit?: number | undefined;
1217
1218
  receiptRequired?: boolean | undefined;
1218
1219
  } | undefined;
1219
- customerServices?: ("PERSONAL_SHOPPING" | "ALTERATIONS" | "GIFT_WRAPPING" | "DELIVERY" | "INSTALLATION" | "REPAIR_SERVICE" | "CONSULTATION" | "TRAINING" | "RENTAL" | "CUSTOM_ORDERS")[] | undefined;
1220
+ customerServices?: ("DELIVERY" | "PERSONAL_SHOPPING" | "ALTERATIONS" | "GIFT_WRAPPING" | "INSTALLATION" | "REPAIR_SERVICE" | "CONSULTATION" | "TRAINING" | "RENTAL" | "CUSTOM_ORDERS")[] | undefined;
1220
1221
  operationalCosts?: {
1221
1222
  currency?: string | undefined;
1222
- maintenance?: number | undefined;
1223
1223
  monthlyRent?: number | undefined;
1224
1224
  utilities?: number | undefined;
1225
1225
  labor?: number | undefined;
1226
+ maintenance?: number | undefined;
1226
1227
  insurance?: number | undefined;
1227
1228
  } | undefined;
1228
1229
  securityFeatures?: string[] | undefined;
1229
- complianceRequirements?: string[] | undefined;
1230
1230
  lastSecurityAudit?: Date | undefined;
1231
1231
  customAttributes?: Record<string, any> | undefined;
1232
1232
  auditTrail?: {
@@ -1263,20 +1263,20 @@ export declare const WarehouseSchema: z.ZodObject<{
1263
1263
  lng: number;
1264
1264
  }>>;
1265
1265
  }, "strip", z.ZodTypeAny, {
1266
+ country: string;
1266
1267
  city: string;
1267
- state: string;
1268
1268
  postalCode: string;
1269
- country: string;
1269
+ state: string;
1270
1270
  street: string;
1271
1271
  coordinates?: {
1272
1272
  lat: number;
1273
1273
  lng: number;
1274
1274
  } | undefined;
1275
1275
  }, {
1276
+ country: string;
1276
1277
  city: string;
1277
- state: string;
1278
1278
  postalCode: string;
1279
- country: string;
1279
+ state: string;
1280
1280
  street: string;
1281
1281
  coordinates?: {
1282
1282
  lat: number;
@@ -1307,14 +1307,14 @@ export declare const WarehouseSchema: z.ZodObject<{
1307
1307
  pickingLocations: z.ZodOptional<z.ZodNumber>;
1308
1308
  unit: z.ZodOptional<z.ZodString>;
1309
1309
  }, "strip", z.ZodTypeAny, {
1310
- volumetric?: number | undefined;
1311
1310
  weight?: number | undefined;
1311
+ volumetric?: number | undefined;
1312
1312
  palletPositions?: number | undefined;
1313
1313
  pickingLocations?: number | undefined;
1314
1314
  unit?: string | undefined;
1315
1315
  }, {
1316
- volumetric?: number | undefined;
1317
1316
  weight?: number | undefined;
1317
+ volumetric?: number | undefined;
1318
1318
  palletPositions?: number | undefined;
1319
1319
  pickingLocations?: number | undefined;
1320
1320
  unit?: string | undefined;
@@ -1332,12 +1332,12 @@ export declare const WarehouseSchema: z.ZodObject<{
1332
1332
  unit: z.ZodString;
1333
1333
  }, "strip", z.ZodTypeAny, {
1334
1334
  min: number;
1335
- max: number;
1336
1335
  unit: string;
1336
+ max: number;
1337
1337
  }, {
1338
1338
  min: number;
1339
- max: number;
1340
1339
  unit: string;
1340
+ max: number;
1341
1341
  }>>;
1342
1342
  humidity: z.ZodOptional<z.ZodObject<{
1343
1343
  min: z.ZodNumber;
@@ -1361,18 +1361,18 @@ export declare const WarehouseSchema: z.ZodObject<{
1361
1361
  id: string;
1362
1362
  code: string;
1363
1363
  isActive: boolean;
1364
+ level?: string | undefined;
1364
1365
  capacity?: number | undefined;
1365
1366
  row?: string | undefined;
1366
1367
  bay?: string | undefined;
1367
- level?: string | undefined;
1368
1368
  }, {
1369
1369
  id: string;
1370
1370
  code: string;
1371
1371
  isActive?: boolean | undefined;
1372
+ level?: string | undefined;
1372
1373
  capacity?: number | undefined;
1373
1374
  row?: string | undefined;
1374
1375
  bay?: string | undefined;
1375
- level?: string | undefined;
1376
1376
  }>, "many">>;
1377
1377
  isActive: z.ZodDefault<z.ZodBoolean>;
1378
1378
  }, "strip", z.ZodTypeAny, {
@@ -1385,8 +1385,8 @@ export declare const WarehouseSchema: z.ZodObject<{
1385
1385
  capacity?: number | undefined;
1386
1386
  temperature?: {
1387
1387
  min: number;
1388
- max: number;
1389
1388
  unit: string;
1389
+ max: number;
1390
1390
  } | undefined;
1391
1391
  humidity?: {
1392
1392
  min: number;
@@ -1396,10 +1396,10 @@ export declare const WarehouseSchema: z.ZodObject<{
1396
1396
  id: string;
1397
1397
  code: string;
1398
1398
  isActive: boolean;
1399
+ level?: string | undefined;
1399
1400
  capacity?: number | undefined;
1400
1401
  row?: string | undefined;
1401
1402
  bay?: string | undefined;
1402
- level?: string | undefined;
1403
1403
  }[] | undefined;
1404
1404
  }, {
1405
1405
  id: string;
@@ -1411,8 +1411,8 @@ export declare const WarehouseSchema: z.ZodObject<{
1411
1411
  capacity?: number | undefined;
1412
1412
  temperature?: {
1413
1413
  min: number;
1414
- max: number;
1415
1414
  unit: string;
1415
+ max: number;
1416
1416
  } | undefined;
1417
1417
  humidity?: {
1418
1418
  min: number;
@@ -1422,10 +1422,10 @@ export declare const WarehouseSchema: z.ZodObject<{
1422
1422
  id: string;
1423
1423
  code: string;
1424
1424
  isActive?: boolean | undefined;
1425
+ level?: string | undefined;
1425
1426
  capacity?: number | undefined;
1426
1427
  row?: string | undefined;
1427
1428
  bay?: string | undefined;
1428
- level?: string | undefined;
1429
1429
  }[] | undefined;
1430
1430
  }>, "many">>;
1431
1431
  description: z.ZodOptional<z.ZodString>;
@@ -1465,7 +1465,7 @@ export declare const WarehouseSchema: z.ZodObject<{
1465
1465
  version: number;
1466
1466
  code: string;
1467
1467
  type: "DISTRIBUTION_CENTER" | "FULFILLMENT_CENTER" | "COLD_STORAGE" | "BULK_STORAGE" | "CROSS_DOCK" | "RETAIL_WAREHOUSE" | "MANUFACTURING_WAREHOUSE" | "3PL_WAREHOUSE";
1468
- status: "CLOSED" | "ACTIVE" | "INACTIVE";
1468
+ status: "ACTIVE" | "INACTIVE" | "CLOSED";
1469
1469
  storeId: string;
1470
1470
  timezone: string;
1471
1471
  isActive: boolean;
@@ -1475,20 +1475,20 @@ export declare const WarehouseSchema: z.ZodObject<{
1475
1475
  description?: string | undefined;
1476
1476
  metadata?: Record<string, any> | undefined;
1477
1477
  createdBy?: string | undefined;
1478
+ updatedBy?: string | undefined;
1479
+ internalNotes?: string | undefined;
1480
+ notes?: string | undefined;
1478
1481
  address?: {
1482
+ country: string;
1479
1483
  city: string;
1480
- state: string;
1481
1484
  postalCode: string;
1482
- country: string;
1485
+ state: string;
1483
1486
  street: string;
1484
1487
  coordinates?: {
1485
1488
  lat: number;
1486
1489
  lng: number;
1487
1490
  } | undefined;
1488
1491
  } | undefined;
1489
- notes?: string | undefined;
1490
- internalNotes?: string | undefined;
1491
- updatedBy?: string | undefined;
1492
1492
  displayName?: string | undefined;
1493
1493
  primaryContact?: {
1494
1494
  email: string;
@@ -1507,8 +1507,8 @@ export declare const WarehouseSchema: z.ZodObject<{
1507
1507
  storageArea?: number | undefined;
1508
1508
  ceilingHeight?: number | undefined;
1509
1509
  capacity?: {
1510
- volumetric?: number | undefined;
1511
1510
  weight?: number | undefined;
1511
+ volumetric?: number | undefined;
1512
1512
  palletPositions?: number | undefined;
1513
1513
  pickingLocations?: number | undefined;
1514
1514
  unit?: string | undefined;
@@ -1523,8 +1523,8 @@ export declare const WarehouseSchema: z.ZodObject<{
1523
1523
  capacity?: number | undefined;
1524
1524
  temperature?: {
1525
1525
  min: number;
1526
- max: number;
1527
1526
  unit: string;
1527
+ max: number;
1528
1528
  } | undefined;
1529
1529
  humidity?: {
1530
1530
  min: number;
@@ -1534,17 +1534,17 @@ export declare const WarehouseSchema: z.ZodObject<{
1534
1534
  id: string;
1535
1535
  code: string;
1536
1536
  isActive: boolean;
1537
+ level?: string | undefined;
1537
1538
  capacity?: number | undefined;
1538
1539
  row?: string | undefined;
1539
1540
  bay?: string | undefined;
1540
- level?: string | undefined;
1541
1541
  }[] | undefined;
1542
1542
  }[] | undefined;
1543
1543
  }, {
1544
1544
  id: string;
1545
1545
  code: string;
1546
1546
  type: "DISTRIBUTION_CENTER" | "FULFILLMENT_CENTER" | "COLD_STORAGE" | "BULK_STORAGE" | "CROSS_DOCK" | "RETAIL_WAREHOUSE" | "MANUFACTURING_WAREHOUSE" | "3PL_WAREHOUSE";
1547
- status: "CLOSED" | "ACTIVE" | "INACTIVE";
1547
+ status: "ACTIVE" | "INACTIVE" | "CLOSED";
1548
1548
  storeId: string;
1549
1549
  name: string;
1550
1550
  updatedAt: Date;
@@ -1555,20 +1555,20 @@ export declare const WarehouseSchema: z.ZodObject<{
1555
1555
  description?: string | undefined;
1556
1556
  metadata?: Record<string, any> | undefined;
1557
1557
  createdBy?: string | undefined;
1558
+ updatedBy?: string | undefined;
1559
+ internalNotes?: string | undefined;
1560
+ notes?: string | undefined;
1558
1561
  address?: {
1562
+ country: string;
1559
1563
  city: string;
1560
- state: string;
1561
1564
  postalCode: string;
1562
- country: string;
1565
+ state: string;
1563
1566
  street: string;
1564
1567
  coordinates?: {
1565
1568
  lat: number;
1566
1569
  lng: number;
1567
1570
  } | undefined;
1568
1571
  } | undefined;
1569
- notes?: string | undefined;
1570
- internalNotes?: string | undefined;
1571
- updatedBy?: string | undefined;
1572
1572
  displayName?: string | undefined;
1573
1573
  primaryContact?: {
1574
1574
  email: string;
@@ -1587,8 +1587,8 @@ export declare const WarehouseSchema: z.ZodObject<{
1587
1587
  storageArea?: number | undefined;
1588
1588
  ceilingHeight?: number | undefined;
1589
1589
  capacity?: {
1590
- volumetric?: number | undefined;
1591
1590
  weight?: number | undefined;
1591
+ volumetric?: number | undefined;
1592
1592
  palletPositions?: number | undefined;
1593
1593
  pickingLocations?: number | undefined;
1594
1594
  unit?: string | undefined;
@@ -1603,8 +1603,8 @@ export declare const WarehouseSchema: z.ZodObject<{
1603
1603
  capacity?: number | undefined;
1604
1604
  temperature?: {
1605
1605
  min: number;
1606
- max: number;
1607
1606
  unit: string;
1607
+ max: number;
1608
1608
  } | undefined;
1609
1609
  humidity?: {
1610
1610
  min: number;
@@ -1614,10 +1614,10 @@ export declare const WarehouseSchema: z.ZodObject<{
1614
1614
  id: string;
1615
1615
  code: string;
1616
1616
  isActive?: boolean | undefined;
1617
+ level?: string | undefined;
1617
1618
  capacity?: number | undefined;
1618
1619
  row?: string | undefined;
1619
1620
  bay?: string | undefined;
1620
- level?: string | undefined;
1621
1621
  }[] | undefined;
1622
1622
  }[] | undefined;
1623
1623
  }>;
@@ -1753,7 +1753,7 @@ export declare const inventory: import("drizzle-orm/pg-core").PgTableWithColumns
1753
1753
  tableName: "inventory";
1754
1754
  dataType: "string";
1755
1755
  columnType: "PgEnumColumn";
1756
- data: "WAREHOUSE" | "POS";
1756
+ data: "POS" | "WAREHOUSE";
1757
1757
  driverParam: string;
1758
1758
  notNull: true;
1759
1759
  hasDefault: false;
@@ -2139,7 +2139,7 @@ export declare const inventory: import("drizzle-orm/pg-core").PgTableWithColumns
2139
2139
  tableName: "inventory";
2140
2140
  dataType: "string";
2141
2141
  columnType: "PgEnumColumn";
2142
- data: "QUARANTINED" | "EXPIRED" | "IN_STOCK" | "OUT_OF_STOCK" | "RESERVED" | "DAMAGED" | "IN_TRANSIT" | "RETURNED" | "LOST" | "ADJUSTED";
2142
+ data: "EXPIRED" | "RETURNED" | "IN_TRANSIT" | "LOST" | "OUT_OF_STOCK" | "IN_STOCK" | "RESERVED" | "DAMAGED" | "QUARANTINED" | "ADJUSTED";
2143
2143
  driverParam: string;
2144
2144
  notNull: true;
2145
2145
  hasDefault: true;
@@ -2434,7 +2434,7 @@ export declare const inventory: import("drizzle-orm/pg-core").PgTableWithColumns
2434
2434
  tableName: "inventory";
2435
2435
  dataType: "string";
2436
2436
  columnType: "PgEnumColumn";
2437
- data: "OTHER" | "EXPIRED" | "PHYSICAL_DAMAGE" | "WATER_DAMAGE" | "FIRE_DAMAGE" | "MANUFACTURING_DEFECT" | "PACKAGING_DAMAGE" | "CONTAMINATED" | "MISSING_PARTS" | "WRONG_ITEM" | "CUSTOMER_RETURN_DAMAGED" | "TRANSIT_DAMAGE" | "STORAGE_DAMAGE" | "THEFT_PARTIAL" | "OBSOLETE";
2437
+ data: "OTHER" | "EXPIRED" | "WRONG_ITEM" | "PHYSICAL_DAMAGE" | "WATER_DAMAGE" | "FIRE_DAMAGE" | "MANUFACTURING_DEFECT" | "PACKAGING_DAMAGE" | "CONTAMINATED" | "MISSING_PARTS" | "CUSTOMER_RETURN_DAMAGED" | "TRANSIT_DAMAGE" | "STORAGE_DAMAGE" | "THEFT_PARTIAL" | "OBSOLETE";
2438
2438
  driverParam: string;
2439
2439
  notNull: false;
2440
2440
  hasDefault: false;
@@ -2451,7 +2451,7 @@ export declare const inventory: import("drizzle-orm/pg-core").PgTableWithColumns
2451
2451
  tableName: "inventory";
2452
2452
  dataType: "string";
2453
2453
  columnType: "PgEnumColumn";
2454
- data: "MODERATE" | "SEVERE" | "MINOR" | "COSMETIC";
2454
+ data: "MINOR" | "MODERATE" | "SEVERE" | "COSMETIC";
2455
2455
  driverParam: string;
2456
2456
  notNull: false;
2457
2457
  hasDefault: false;
@@ -3081,7 +3081,7 @@ export declare const inventoryMovements: import("drizzle-orm/pg-core").PgTableWi
3081
3081
  tableName: "inventory_movements";
3082
3082
  dataType: "string";
3083
3083
  columnType: "PgEnumColumn";
3084
- data: "PENDING" | "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "FAILED" | "DRAFT";
3084
+ data: "PENDING" | "FAILED" | "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "DRAFT";
3085
3085
  driverParam: string;
3086
3086
  notNull: true;
3087
3087
  hasDefault: true;
@@ -3925,7 +3925,7 @@ export declare const warehouses: import("drizzle-orm/pg-core").PgTableWithColumn
3925
3925
  tableName: "warehouses";
3926
3926
  dataType: "string";
3927
3927
  columnType: "PgEnumColumn";
3928
- data: "CLOSED" | "ACTIVE" | "INACTIVE";
3928
+ data: "ACTIVE" | "INACTIVE" | "CLOSED";
3929
3929
  driverParam: string;
3930
3930
  notNull: true;
3931
3931
  hasDefault: true;
@@ -5495,7 +5495,7 @@ export declare const inventoryTransfers: import("drizzle-orm/pg-core").PgTableWi
5495
5495
  tableName: "inventory_transfers";
5496
5496
  dataType: "string";
5497
5497
  columnType: "PgEnumColumn";
5498
- data: "PENDING" | "COMPLETED" | "CANCELLED" | "FAILED" | "PARTIAL" | "IN_TRANSIT" | "RETURNED";
5498
+ data: "PENDING" | "FAILED" | "PARTIAL" | "COMPLETED" | "CANCELLED" | "RETURNED" | "IN_TRANSIT";
5499
5499
  driverParam: string;
5500
5500
  notNull: true;
5501
5501
  hasDefault: true;
@@ -7930,7 +7930,7 @@ export declare const suppliers: import("drizzle-orm/pg-core").PgTableWithColumns
7930
7930
  tableName: "suppliers";
7931
7931
  dataType: "string";
7932
7932
  columnType: "PgEnumColumn";
7933
- data: "UNDER_REVIEW" | "ACTIVE" | "INACTIVE" | "SUSPENDED" | "PENDING_APPROVAL" | "BLACKLISTED";
7933
+ data: "SUSPENDED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "UNDER_REVIEW" | "BLACKLISTED";
7934
7934
  driverParam: string;
7935
7935
  notNull: true;
7936
7936
  hasDefault: true;
@@ -8482,7 +8482,7 @@ export declare const purchaseOrders: import("drizzle-orm/pg-core").PgTableWithCo
8482
8482
  tableName: "purchase_orders";
8483
8483
  dataType: "string";
8484
8484
  columnType: "PgEnumColumn";
8485
- data: "APPROVED" | "COMPLETED" | "CANCELLED" | "DRAFT" | "SENT" | "ACKNOWLEDGED" | "PENDING_APPROVAL" | "PARTIALLY_RECEIVED" | "RECEIVED" | "DISPUTED";
8485
+ data: "APPROVED" | "COMPLETED" | "CANCELLED" | "SENT" | "DRAFT" | "DISPUTED" | "ACKNOWLEDGED" | "PENDING_APPROVAL" | "PARTIALLY_RECEIVED" | "RECEIVED";
8486
8486
  driverParam: string;
8487
8487
  notNull: true;
8488
8488
  hasDefault: true;