@jsdev_ninja/core 0.14.9 → 0.15.1

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 (53) hide show
  1. package/dist/core.cjs +1 -1
  2. package/dist/core.cjs.map +1 -1
  3. package/dist/core.es.js +497 -531
  4. package/dist/core.es.js.map +1 -1
  5. package/dist/core.umd.js +1 -1
  6. package/dist/core.umd.js.map +1 -1
  7. package/dist/lib/entities/Budget.d.ts +68 -59
  8. package/dist/lib/entities/Budget.d.ts.map +1 -1
  9. package/dist/lib/entities/Budget.js +47 -36
  10. package/dist/lib/entities/Cart.d.ts +2257 -10
  11. package/dist/lib/entities/Cart.d.ts.map +1 -1
  12. package/dist/lib/entities/Cart.js +16 -0
  13. package/dist/lib/entities/DeliveryNote.d.ts +0 -1
  14. package/dist/lib/entities/DeliveryNote.d.ts.map +1 -1
  15. package/dist/lib/entities/Discount/index.d.ts +0 -1
  16. package/dist/lib/entities/Discount/index.d.ts.map +1 -1
  17. package/dist/lib/entities/Discount/index.js +0 -1
  18. package/dist/lib/entities/Invoice.d.ts +0 -2
  19. package/dist/lib/entities/Invoice.d.ts.map +1 -1
  20. package/dist/lib/entities/Locale.d.ts +0 -10
  21. package/dist/lib/entities/Locale.d.ts.map +1 -1
  22. package/dist/lib/entities/Locale.js +0 -1
  23. package/dist/lib/entities/Order.d.ts +1143 -2
  24. package/dist/lib/entities/Order.d.ts.map +1 -1
  25. package/dist/lib/entities/Order.js +3 -0
  26. package/dist/lib/entities/Profile.d.ts +5 -0
  27. package/dist/lib/entities/Profile.d.ts.map +1 -1
  28. package/dist/lib/entities/Profile.js +3 -0
  29. package/dist/lib/entities/SupplierInvoice.d.ts +0 -1
  30. package/dist/lib/entities/SupplierInvoice.d.ts.map +1 -1
  31. package/dist/lib/entities/index.d.ts +0 -1
  32. package/dist/lib/entities/index.d.ts.map +1 -1
  33. package/dist/lib/entities/index.js +0 -1
  34. package/dist/lib/firebase-api/index.d.ts +15 -0
  35. package/dist/lib/firebase-api/index.d.ts.map +1 -1
  36. package/dist/lib/firebase-api/index.js +5 -0
  37. package/dist/lib/index.d.ts +1 -1
  38. package/dist/lib/index.d.ts.map +1 -1
  39. package/dist/lib/index.js +1 -1
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/package.json +58 -58
  42. package/dist/lib/entities/Chatbot/index.d.ts +0 -96
  43. package/dist/lib/entities/Chatbot/index.d.ts.map +0 -1
  44. package/dist/lib/entities/Chatbot/index.js +0 -37
  45. package/dist/lib/entities/Discount/__tests__/utils.test.d.ts +0 -2
  46. package/dist/lib/entities/Discount/__tests__/utils.test.d.ts.map +0 -1
  47. package/dist/lib/entities/Discount/__tests__/utils.test.js +0 -55
  48. package/dist/lib/entities/Discount/utils.d.ts +0 -29
  49. package/dist/lib/entities/Discount/utils.d.ts.map +0 -1
  50. package/dist/lib/entities/Discount/utils.js +0 -39
  51. package/dist/lib/firebase-api/app.d.ts +0 -2
  52. package/dist/lib/firebase-api/app.d.ts.map +0 -1
  53. package/dist/lib/firebase-api/app.js +0 -16
@@ -1,5 +1,14 @@
1
1
  import { z } from "zod";
2
- export declare const CartItemProductSchema: z.ZodObject<{
2
+ /**
3
+ * Per-line fulfillment status set during picking:
4
+ * - delivered = picked/supplied as ordered (default when unset)
5
+ * - missing = not in stock, not supplied (excluded from the fulfilled total)
6
+ * - substituted = replaced with another product (see `substitutedWith`)
7
+ */
8
+ export declare const FulfillmentStatusSchema: z.ZodEnum<["delivered", "missing", "substituted"]>;
9
+ export type TFulfillmentStatus = z.infer<typeof FulfillmentStatusSchema>;
10
+ /** The replacement product chosen when a line is `substituted`. */
11
+ export declare const SubstitutedWithSchema: z.ZodObject<{
3
12
  product: z.ZodObject<{
4
13
  type: z.ZodLiteral<"Product">;
5
14
  storeId: z.ZodString;
@@ -361,11 +370,10 @@ export declare const CartItemProductSchema: z.ZodObject<{
361
370
  } | undefined;
362
371
  categoryNames?: string[] | undefined;
363
372
  }>;
364
- originalPrice: z.ZodOptional<z.ZodNumber>;
365
- finalPrice: z.ZodOptional<z.ZodNumber>;
366
- finalDiscount: z.ZodOptional<z.ZodNumber>;
367
373
  amount: z.ZodNumber;
374
+ price: z.ZodNumber;
368
375
  }, "strip", z.ZodTypeAny, {
376
+ price: number;
369
377
  product: {
370
378
  type: "Product";
371
379
  id: string;
@@ -458,10 +466,8 @@ export declare const CartItemProductSchema: z.ZodObject<{
458
466
  categoryNames?: string[] | undefined;
459
467
  };
460
468
  amount: number;
461
- originalPrice?: number | undefined;
462
- finalPrice?: number | undefined;
463
- finalDiscount?: number | undefined;
464
469
  }, {
470
+ price: number;
465
471
  product: {
466
472
  type: "Product";
467
473
  id: string;
@@ -554,9 +560,1312 @@ export declare const CartItemProductSchema: z.ZodObject<{
554
560
  categoryNames?: string[] | undefined;
555
561
  };
556
562
  amount: number;
557
- originalPrice?: number | undefined;
558
- finalPrice?: number | undefined;
559
- finalDiscount?: number | undefined;
563
+ }>;
564
+ export type TSubstitutedWith = z.infer<typeof SubstitutedWithSchema>;
565
+ export declare const CartItemProductSchema: z.ZodObject<{
566
+ product: z.ZodObject<{
567
+ type: z.ZodLiteral<"Product">;
568
+ storeId: z.ZodString;
569
+ companyId: z.ZodString;
570
+ id: z.ZodString;
571
+ objectID: z.ZodString;
572
+ sku: z.ZodString;
573
+ name: z.ZodArray<z.ZodObject<{
574
+ lang: z.ZodEnum<["he"]>;
575
+ value: z.ZodString;
576
+ }, "strip", z.ZodTypeAny, {
577
+ value: string;
578
+ lang: "he";
579
+ }, {
580
+ value: string;
581
+ lang: "he";
582
+ }>, "many">;
583
+ description: z.ZodArray<z.ZodObject<{
584
+ lang: z.ZodEnum<["he"]>;
585
+ value: z.ZodString;
586
+ }, "strip", z.ZodTypeAny, {
587
+ value: string;
588
+ lang: "he";
589
+ }, {
590
+ value: string;
591
+ lang: "he";
592
+ }>, "many">;
593
+ isPublished: z.ZodBoolean;
594
+ vat: z.ZodBoolean;
595
+ priceType: z.ZodObject<{
596
+ type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
597
+ value: z.ZodNumber;
598
+ }, "strip", z.ZodTypeAny, {
599
+ value: number;
600
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
601
+ }, {
602
+ value: number;
603
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
604
+ }>;
605
+ price: z.ZodNumber;
606
+ purchasePrice: z.ZodOptional<z.ZodNumber>;
607
+ profitPercentage: z.ZodOptional<z.ZodNumber>;
608
+ currency: z.ZodLiteral<"ILS">;
609
+ discount: z.ZodObject<{
610
+ type: z.ZodEnum<["number", "percent", "none"]>;
611
+ value: z.ZodNumber;
612
+ }, "strip", z.ZodTypeAny, {
613
+ value: number;
614
+ type: "number" | "percent" | "none";
615
+ }, {
616
+ value: number;
617
+ type: "number" | "percent" | "none";
618
+ }>;
619
+ isDiscountable: z.ZodOptional<z.ZodBoolean>;
620
+ weight: z.ZodObject<{
621
+ value: z.ZodNumber;
622
+ unit: z.ZodEnum<["kg", "gram", "none"]>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ value: number;
625
+ unit: "kg" | "gram" | "none";
626
+ }, {
627
+ value: number;
628
+ unit: "kg" | "gram" | "none";
629
+ }>;
630
+ volume: z.ZodObject<{
631
+ value: z.ZodNumber;
632
+ unit: z.ZodEnum<["liter", "ml", "none"]>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ value: number;
635
+ unit: "liter" | "ml" | "none";
636
+ }, {
637
+ value: number;
638
+ unit: "liter" | "ml" | "none";
639
+ }>;
640
+ images: z.ZodArray<z.ZodObject<{
641
+ url: z.ZodString;
642
+ id: z.ZodString;
643
+ }, "strip", z.ZodTypeAny, {
644
+ url: string;
645
+ id: string;
646
+ }, {
647
+ url: string;
648
+ id: string;
649
+ }>, "many">;
650
+ manufacturer: z.ZodString;
651
+ brand: z.ZodString;
652
+ importer: z.ZodString;
653
+ supplier: z.ZodString;
654
+ ingredients: z.ZodArray<z.ZodObject<{
655
+ lang: z.ZodEnum<["he"]>;
656
+ value: z.ZodString;
657
+ }, "strip", z.ZodTypeAny, {
658
+ value: string;
659
+ lang: "he";
660
+ }, {
661
+ value: string;
662
+ lang: "he";
663
+ }>, "many">;
664
+ created_at: z.ZodNumber;
665
+ updated_at: z.ZodNumber;
666
+ categoryIds: z.ZodArray<z.ZodString, "many">;
667
+ stock: z.ZodOptional<z.ZodObject<{
668
+ quantity: z.ZodNumber;
669
+ unit: z.ZodEnum<["piece", "kg", "gram", "liter", "ml"]>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
672
+ quantity: number;
673
+ }, {
674
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
675
+ quantity: number;
676
+ }>>;
677
+ categoryList: z.ZodOptional<z.ZodArray<z.ZodType<{
678
+ id: string;
679
+ companyId: string;
680
+ storeId: string;
681
+ locales: {
682
+ value: string;
683
+ lang: "he";
684
+ }[];
685
+ depth: number;
686
+ parentId?: string | null | undefined;
687
+ tag?: string | undefined;
688
+ } & {
689
+ children: ({
690
+ id: string;
691
+ companyId: string;
692
+ storeId: string;
693
+ locales: {
694
+ value: string;
695
+ lang: "he";
696
+ }[];
697
+ depth: number;
698
+ parentId?: string | null | undefined;
699
+ tag?: string | undefined;
700
+ } & /*elided*/ any)[];
701
+ }, z.ZodTypeDef, {
702
+ id: string;
703
+ companyId: string;
704
+ storeId: string;
705
+ locales: {
706
+ value: string;
707
+ lang: "he";
708
+ }[];
709
+ depth: number;
710
+ parentId?: string | null | undefined;
711
+ tag?: string | undefined;
712
+ } & {
713
+ children: ({
714
+ id: string;
715
+ companyId: string;
716
+ storeId: string;
717
+ locales: {
718
+ value: string;
719
+ lang: "he";
720
+ }[];
721
+ depth: number;
722
+ parentId?: string | null | undefined;
723
+ tag?: string | undefined;
724
+ } & /*elided*/ any)[];
725
+ }>, "many">>;
726
+ categories: z.ZodOptional<z.ZodObject<{
727
+ lvl0: z.ZodArray<z.ZodString, "many">;
728
+ lvl1: z.ZodArray<z.ZodString, "many">;
729
+ lvl2: z.ZodArray<z.ZodString, "many">;
730
+ lvl3: z.ZodArray<z.ZodString, "many">;
731
+ lvl4: z.ZodArray<z.ZodString, "many">;
732
+ }, "strip", z.ZodTypeAny, {
733
+ lvl0: string[];
734
+ lvl1: string[];
735
+ lvl2: string[];
736
+ lvl3: string[];
737
+ lvl4: string[];
738
+ }, {
739
+ lvl0: string[];
740
+ lvl1: string[];
741
+ lvl2: string[];
742
+ lvl3: string[];
743
+ lvl4: string[];
744
+ }>>;
745
+ categoryNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ type: "Product";
748
+ id: string;
749
+ companyId: string;
750
+ storeId: string;
751
+ objectID: string;
752
+ sku: string;
753
+ name: {
754
+ value: string;
755
+ lang: "he";
756
+ }[];
757
+ description: {
758
+ value: string;
759
+ lang: "he";
760
+ }[];
761
+ isPublished: boolean;
762
+ vat: boolean;
763
+ priceType: {
764
+ value: number;
765
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
766
+ };
767
+ price: number;
768
+ currency: "ILS";
769
+ discount: {
770
+ value: number;
771
+ type: "number" | "percent" | "none";
772
+ };
773
+ weight: {
774
+ value: number;
775
+ unit: "kg" | "gram" | "none";
776
+ };
777
+ volume: {
778
+ value: number;
779
+ unit: "liter" | "ml" | "none";
780
+ };
781
+ images: {
782
+ url: string;
783
+ id: string;
784
+ }[];
785
+ manufacturer: string;
786
+ brand: string;
787
+ importer: string;
788
+ supplier: string;
789
+ ingredients: {
790
+ value: string;
791
+ lang: "he";
792
+ }[];
793
+ created_at: number;
794
+ updated_at: number;
795
+ categoryIds: string[];
796
+ purchasePrice?: number | undefined;
797
+ profitPercentage?: number | undefined;
798
+ isDiscountable?: boolean | undefined;
799
+ stock?: {
800
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
801
+ quantity: number;
802
+ } | undefined;
803
+ categoryList?: ({
804
+ id: string;
805
+ companyId: string;
806
+ storeId: string;
807
+ locales: {
808
+ value: string;
809
+ lang: "he";
810
+ }[];
811
+ depth: number;
812
+ parentId?: string | null | undefined;
813
+ tag?: string | undefined;
814
+ } & {
815
+ children: ({
816
+ id: string;
817
+ companyId: string;
818
+ storeId: string;
819
+ locales: {
820
+ value: string;
821
+ lang: "he";
822
+ }[];
823
+ depth: number;
824
+ parentId?: string | null | undefined;
825
+ tag?: string | undefined;
826
+ } & /*elided*/ any)[];
827
+ })[] | undefined;
828
+ categories?: {
829
+ lvl0: string[];
830
+ lvl1: string[];
831
+ lvl2: string[];
832
+ lvl3: string[];
833
+ lvl4: string[];
834
+ } | undefined;
835
+ categoryNames?: string[] | undefined;
836
+ }, {
837
+ type: "Product";
838
+ id: string;
839
+ companyId: string;
840
+ storeId: string;
841
+ objectID: string;
842
+ sku: string;
843
+ name: {
844
+ value: string;
845
+ lang: "he";
846
+ }[];
847
+ description: {
848
+ value: string;
849
+ lang: "he";
850
+ }[];
851
+ isPublished: boolean;
852
+ vat: boolean;
853
+ priceType: {
854
+ value: number;
855
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
856
+ };
857
+ price: number;
858
+ currency: "ILS";
859
+ discount: {
860
+ value: number;
861
+ type: "number" | "percent" | "none";
862
+ };
863
+ weight: {
864
+ value: number;
865
+ unit: "kg" | "gram" | "none";
866
+ };
867
+ volume: {
868
+ value: number;
869
+ unit: "liter" | "ml" | "none";
870
+ };
871
+ images: {
872
+ url: string;
873
+ id: string;
874
+ }[];
875
+ manufacturer: string;
876
+ brand: string;
877
+ importer: string;
878
+ supplier: string;
879
+ ingredients: {
880
+ value: string;
881
+ lang: "he";
882
+ }[];
883
+ created_at: number;
884
+ updated_at: number;
885
+ categoryIds: string[];
886
+ purchasePrice?: number | undefined;
887
+ profitPercentage?: number | undefined;
888
+ isDiscountable?: boolean | undefined;
889
+ stock?: {
890
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
891
+ quantity: number;
892
+ } | undefined;
893
+ categoryList?: ({
894
+ id: string;
895
+ companyId: string;
896
+ storeId: string;
897
+ locales: {
898
+ value: string;
899
+ lang: "he";
900
+ }[];
901
+ depth: number;
902
+ parentId?: string | null | undefined;
903
+ tag?: string | undefined;
904
+ } & {
905
+ children: ({
906
+ id: string;
907
+ companyId: string;
908
+ storeId: string;
909
+ locales: {
910
+ value: string;
911
+ lang: "he";
912
+ }[];
913
+ depth: number;
914
+ parentId?: string | null | undefined;
915
+ tag?: string | undefined;
916
+ } & /*elided*/ any)[];
917
+ })[] | undefined;
918
+ categories?: {
919
+ lvl0: string[];
920
+ lvl1: string[];
921
+ lvl2: string[];
922
+ lvl3: string[];
923
+ lvl4: string[];
924
+ } | undefined;
925
+ categoryNames?: string[] | undefined;
926
+ }>;
927
+ originalPrice: z.ZodOptional<z.ZodNumber>;
928
+ finalPrice: z.ZodOptional<z.ZodNumber>;
929
+ finalDiscount: z.ZodOptional<z.ZodNumber>;
930
+ amount: z.ZodNumber;
931
+ status: z.ZodOptional<z.ZodEnum<["delivered", "missing", "substituted"]>>;
932
+ substitutedWith: z.ZodOptional<z.ZodNullable<z.ZodObject<{
933
+ product: z.ZodObject<{
934
+ type: z.ZodLiteral<"Product">;
935
+ storeId: z.ZodString;
936
+ companyId: z.ZodString;
937
+ id: z.ZodString;
938
+ objectID: z.ZodString;
939
+ sku: z.ZodString;
940
+ name: z.ZodArray<z.ZodObject<{
941
+ lang: z.ZodEnum<["he"]>;
942
+ value: z.ZodString;
943
+ }, "strip", z.ZodTypeAny, {
944
+ value: string;
945
+ lang: "he";
946
+ }, {
947
+ value: string;
948
+ lang: "he";
949
+ }>, "many">;
950
+ description: z.ZodArray<z.ZodObject<{
951
+ lang: z.ZodEnum<["he"]>;
952
+ value: z.ZodString;
953
+ }, "strip", z.ZodTypeAny, {
954
+ value: string;
955
+ lang: "he";
956
+ }, {
957
+ value: string;
958
+ lang: "he";
959
+ }>, "many">;
960
+ isPublished: z.ZodBoolean;
961
+ vat: z.ZodBoolean;
962
+ priceType: z.ZodObject<{
963
+ type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
964
+ value: z.ZodNumber;
965
+ }, "strip", z.ZodTypeAny, {
966
+ value: number;
967
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
968
+ }, {
969
+ value: number;
970
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
971
+ }>;
972
+ price: z.ZodNumber;
973
+ purchasePrice: z.ZodOptional<z.ZodNumber>;
974
+ profitPercentage: z.ZodOptional<z.ZodNumber>;
975
+ currency: z.ZodLiteral<"ILS">;
976
+ discount: z.ZodObject<{
977
+ type: z.ZodEnum<["number", "percent", "none"]>;
978
+ value: z.ZodNumber;
979
+ }, "strip", z.ZodTypeAny, {
980
+ value: number;
981
+ type: "number" | "percent" | "none";
982
+ }, {
983
+ value: number;
984
+ type: "number" | "percent" | "none";
985
+ }>;
986
+ isDiscountable: z.ZodOptional<z.ZodBoolean>;
987
+ weight: z.ZodObject<{
988
+ value: z.ZodNumber;
989
+ unit: z.ZodEnum<["kg", "gram", "none"]>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ value: number;
992
+ unit: "kg" | "gram" | "none";
993
+ }, {
994
+ value: number;
995
+ unit: "kg" | "gram" | "none";
996
+ }>;
997
+ volume: z.ZodObject<{
998
+ value: z.ZodNumber;
999
+ unit: z.ZodEnum<["liter", "ml", "none"]>;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ value: number;
1002
+ unit: "liter" | "ml" | "none";
1003
+ }, {
1004
+ value: number;
1005
+ unit: "liter" | "ml" | "none";
1006
+ }>;
1007
+ images: z.ZodArray<z.ZodObject<{
1008
+ url: z.ZodString;
1009
+ id: z.ZodString;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ url: string;
1012
+ id: string;
1013
+ }, {
1014
+ url: string;
1015
+ id: string;
1016
+ }>, "many">;
1017
+ manufacturer: z.ZodString;
1018
+ brand: z.ZodString;
1019
+ importer: z.ZodString;
1020
+ supplier: z.ZodString;
1021
+ ingredients: z.ZodArray<z.ZodObject<{
1022
+ lang: z.ZodEnum<["he"]>;
1023
+ value: z.ZodString;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ value: string;
1026
+ lang: "he";
1027
+ }, {
1028
+ value: string;
1029
+ lang: "he";
1030
+ }>, "many">;
1031
+ created_at: z.ZodNumber;
1032
+ updated_at: z.ZodNumber;
1033
+ categoryIds: z.ZodArray<z.ZodString, "many">;
1034
+ stock: z.ZodOptional<z.ZodObject<{
1035
+ quantity: z.ZodNumber;
1036
+ unit: z.ZodEnum<["piece", "kg", "gram", "liter", "ml"]>;
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
1039
+ quantity: number;
1040
+ }, {
1041
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
1042
+ quantity: number;
1043
+ }>>;
1044
+ categoryList: z.ZodOptional<z.ZodArray<z.ZodType<{
1045
+ id: string;
1046
+ companyId: string;
1047
+ storeId: string;
1048
+ locales: {
1049
+ value: string;
1050
+ lang: "he";
1051
+ }[];
1052
+ depth: number;
1053
+ parentId?: string | null | undefined;
1054
+ tag?: string | undefined;
1055
+ } & {
1056
+ children: ({
1057
+ id: string;
1058
+ companyId: string;
1059
+ storeId: string;
1060
+ locales: {
1061
+ value: string;
1062
+ lang: "he";
1063
+ }[];
1064
+ depth: number;
1065
+ parentId?: string | null | undefined;
1066
+ tag?: string | undefined;
1067
+ } & /*elided*/ any)[];
1068
+ }, z.ZodTypeDef, {
1069
+ id: string;
1070
+ companyId: string;
1071
+ storeId: string;
1072
+ locales: {
1073
+ value: string;
1074
+ lang: "he";
1075
+ }[];
1076
+ depth: number;
1077
+ parentId?: string | null | undefined;
1078
+ tag?: string | undefined;
1079
+ } & {
1080
+ children: ({
1081
+ id: string;
1082
+ companyId: string;
1083
+ storeId: string;
1084
+ locales: {
1085
+ value: string;
1086
+ lang: "he";
1087
+ }[];
1088
+ depth: number;
1089
+ parentId?: string | null | undefined;
1090
+ tag?: string | undefined;
1091
+ } & /*elided*/ any)[];
1092
+ }>, "many">>;
1093
+ categories: z.ZodOptional<z.ZodObject<{
1094
+ lvl0: z.ZodArray<z.ZodString, "many">;
1095
+ lvl1: z.ZodArray<z.ZodString, "many">;
1096
+ lvl2: z.ZodArray<z.ZodString, "many">;
1097
+ lvl3: z.ZodArray<z.ZodString, "many">;
1098
+ lvl4: z.ZodArray<z.ZodString, "many">;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ lvl0: string[];
1101
+ lvl1: string[];
1102
+ lvl2: string[];
1103
+ lvl3: string[];
1104
+ lvl4: string[];
1105
+ }, {
1106
+ lvl0: string[];
1107
+ lvl1: string[];
1108
+ lvl2: string[];
1109
+ lvl3: string[];
1110
+ lvl4: string[];
1111
+ }>>;
1112
+ categoryNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ type: "Product";
1115
+ id: string;
1116
+ companyId: string;
1117
+ storeId: string;
1118
+ objectID: string;
1119
+ sku: string;
1120
+ name: {
1121
+ value: string;
1122
+ lang: "he";
1123
+ }[];
1124
+ description: {
1125
+ value: string;
1126
+ lang: "he";
1127
+ }[];
1128
+ isPublished: boolean;
1129
+ vat: boolean;
1130
+ priceType: {
1131
+ value: number;
1132
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
1133
+ };
1134
+ price: number;
1135
+ currency: "ILS";
1136
+ discount: {
1137
+ value: number;
1138
+ type: "number" | "percent" | "none";
1139
+ };
1140
+ weight: {
1141
+ value: number;
1142
+ unit: "kg" | "gram" | "none";
1143
+ };
1144
+ volume: {
1145
+ value: number;
1146
+ unit: "liter" | "ml" | "none";
1147
+ };
1148
+ images: {
1149
+ url: string;
1150
+ id: string;
1151
+ }[];
1152
+ manufacturer: string;
1153
+ brand: string;
1154
+ importer: string;
1155
+ supplier: string;
1156
+ ingredients: {
1157
+ value: string;
1158
+ lang: "he";
1159
+ }[];
1160
+ created_at: number;
1161
+ updated_at: number;
1162
+ categoryIds: string[];
1163
+ purchasePrice?: number | undefined;
1164
+ profitPercentage?: number | undefined;
1165
+ isDiscountable?: boolean | undefined;
1166
+ stock?: {
1167
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
1168
+ quantity: number;
1169
+ } | undefined;
1170
+ categoryList?: ({
1171
+ id: string;
1172
+ companyId: string;
1173
+ storeId: string;
1174
+ locales: {
1175
+ value: string;
1176
+ lang: "he";
1177
+ }[];
1178
+ depth: number;
1179
+ parentId?: string | null | undefined;
1180
+ tag?: string | undefined;
1181
+ } & {
1182
+ children: ({
1183
+ id: string;
1184
+ companyId: string;
1185
+ storeId: string;
1186
+ locales: {
1187
+ value: string;
1188
+ lang: "he";
1189
+ }[];
1190
+ depth: number;
1191
+ parentId?: string | null | undefined;
1192
+ tag?: string | undefined;
1193
+ } & /*elided*/ any)[];
1194
+ })[] | undefined;
1195
+ categories?: {
1196
+ lvl0: string[];
1197
+ lvl1: string[];
1198
+ lvl2: string[];
1199
+ lvl3: string[];
1200
+ lvl4: string[];
1201
+ } | undefined;
1202
+ categoryNames?: string[] | undefined;
1203
+ }, {
1204
+ type: "Product";
1205
+ id: string;
1206
+ companyId: string;
1207
+ storeId: string;
1208
+ objectID: string;
1209
+ sku: string;
1210
+ name: {
1211
+ value: string;
1212
+ lang: "he";
1213
+ }[];
1214
+ description: {
1215
+ value: string;
1216
+ lang: "he";
1217
+ }[];
1218
+ isPublished: boolean;
1219
+ vat: boolean;
1220
+ priceType: {
1221
+ value: number;
1222
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
1223
+ };
1224
+ price: number;
1225
+ currency: "ILS";
1226
+ discount: {
1227
+ value: number;
1228
+ type: "number" | "percent" | "none";
1229
+ };
1230
+ weight: {
1231
+ value: number;
1232
+ unit: "kg" | "gram" | "none";
1233
+ };
1234
+ volume: {
1235
+ value: number;
1236
+ unit: "liter" | "ml" | "none";
1237
+ };
1238
+ images: {
1239
+ url: string;
1240
+ id: string;
1241
+ }[];
1242
+ manufacturer: string;
1243
+ brand: string;
1244
+ importer: string;
1245
+ supplier: string;
1246
+ ingredients: {
1247
+ value: string;
1248
+ lang: "he";
1249
+ }[];
1250
+ created_at: number;
1251
+ updated_at: number;
1252
+ categoryIds: string[];
1253
+ purchasePrice?: number | undefined;
1254
+ profitPercentage?: number | undefined;
1255
+ isDiscountable?: boolean | undefined;
1256
+ stock?: {
1257
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
1258
+ quantity: number;
1259
+ } | undefined;
1260
+ categoryList?: ({
1261
+ id: string;
1262
+ companyId: string;
1263
+ storeId: string;
1264
+ locales: {
1265
+ value: string;
1266
+ lang: "he";
1267
+ }[];
1268
+ depth: number;
1269
+ parentId?: string | null | undefined;
1270
+ tag?: string | undefined;
1271
+ } & {
1272
+ children: ({
1273
+ id: string;
1274
+ companyId: string;
1275
+ storeId: string;
1276
+ locales: {
1277
+ value: string;
1278
+ lang: "he";
1279
+ }[];
1280
+ depth: number;
1281
+ parentId?: string | null | undefined;
1282
+ tag?: string | undefined;
1283
+ } & /*elided*/ any)[];
1284
+ })[] | undefined;
1285
+ categories?: {
1286
+ lvl0: string[];
1287
+ lvl1: string[];
1288
+ lvl2: string[];
1289
+ lvl3: string[];
1290
+ lvl4: string[];
1291
+ } | undefined;
1292
+ categoryNames?: string[] | undefined;
1293
+ }>;
1294
+ amount: z.ZodNumber;
1295
+ price: z.ZodNumber;
1296
+ }, "strip", z.ZodTypeAny, {
1297
+ price: number;
1298
+ product: {
1299
+ type: "Product";
1300
+ id: string;
1301
+ companyId: string;
1302
+ storeId: string;
1303
+ objectID: string;
1304
+ sku: string;
1305
+ name: {
1306
+ value: string;
1307
+ lang: "he";
1308
+ }[];
1309
+ description: {
1310
+ value: string;
1311
+ lang: "he";
1312
+ }[];
1313
+ isPublished: boolean;
1314
+ vat: boolean;
1315
+ priceType: {
1316
+ value: number;
1317
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
1318
+ };
1319
+ price: number;
1320
+ currency: "ILS";
1321
+ discount: {
1322
+ value: number;
1323
+ type: "number" | "percent" | "none";
1324
+ };
1325
+ weight: {
1326
+ value: number;
1327
+ unit: "kg" | "gram" | "none";
1328
+ };
1329
+ volume: {
1330
+ value: number;
1331
+ unit: "liter" | "ml" | "none";
1332
+ };
1333
+ images: {
1334
+ url: string;
1335
+ id: string;
1336
+ }[];
1337
+ manufacturer: string;
1338
+ brand: string;
1339
+ importer: string;
1340
+ supplier: string;
1341
+ ingredients: {
1342
+ value: string;
1343
+ lang: "he";
1344
+ }[];
1345
+ created_at: number;
1346
+ updated_at: number;
1347
+ categoryIds: string[];
1348
+ purchasePrice?: number | undefined;
1349
+ profitPercentage?: number | undefined;
1350
+ isDiscountable?: boolean | undefined;
1351
+ stock?: {
1352
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
1353
+ quantity: number;
1354
+ } | undefined;
1355
+ categoryList?: ({
1356
+ id: string;
1357
+ companyId: string;
1358
+ storeId: string;
1359
+ locales: {
1360
+ value: string;
1361
+ lang: "he";
1362
+ }[];
1363
+ depth: number;
1364
+ parentId?: string | null | undefined;
1365
+ tag?: string | undefined;
1366
+ } & {
1367
+ children: ({
1368
+ id: string;
1369
+ companyId: string;
1370
+ storeId: string;
1371
+ locales: {
1372
+ value: string;
1373
+ lang: "he";
1374
+ }[];
1375
+ depth: number;
1376
+ parentId?: string | null | undefined;
1377
+ tag?: string | undefined;
1378
+ } & /*elided*/ any)[];
1379
+ })[] | undefined;
1380
+ categories?: {
1381
+ lvl0: string[];
1382
+ lvl1: string[];
1383
+ lvl2: string[];
1384
+ lvl3: string[];
1385
+ lvl4: string[];
1386
+ } | undefined;
1387
+ categoryNames?: string[] | undefined;
1388
+ };
1389
+ amount: number;
1390
+ }, {
1391
+ price: number;
1392
+ product: {
1393
+ type: "Product";
1394
+ id: string;
1395
+ companyId: string;
1396
+ storeId: string;
1397
+ objectID: string;
1398
+ sku: string;
1399
+ name: {
1400
+ value: string;
1401
+ lang: "he";
1402
+ }[];
1403
+ description: {
1404
+ value: string;
1405
+ lang: "he";
1406
+ }[];
1407
+ isPublished: boolean;
1408
+ vat: boolean;
1409
+ priceType: {
1410
+ value: number;
1411
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
1412
+ };
1413
+ price: number;
1414
+ currency: "ILS";
1415
+ discount: {
1416
+ value: number;
1417
+ type: "number" | "percent" | "none";
1418
+ };
1419
+ weight: {
1420
+ value: number;
1421
+ unit: "kg" | "gram" | "none";
1422
+ };
1423
+ volume: {
1424
+ value: number;
1425
+ unit: "liter" | "ml" | "none";
1426
+ };
1427
+ images: {
1428
+ url: string;
1429
+ id: string;
1430
+ }[];
1431
+ manufacturer: string;
1432
+ brand: string;
1433
+ importer: string;
1434
+ supplier: string;
1435
+ ingredients: {
1436
+ value: string;
1437
+ lang: "he";
1438
+ }[];
1439
+ created_at: number;
1440
+ updated_at: number;
1441
+ categoryIds: string[];
1442
+ purchasePrice?: number | undefined;
1443
+ profitPercentage?: number | undefined;
1444
+ isDiscountable?: boolean | undefined;
1445
+ stock?: {
1446
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
1447
+ quantity: number;
1448
+ } | undefined;
1449
+ categoryList?: ({
1450
+ id: string;
1451
+ companyId: string;
1452
+ storeId: string;
1453
+ locales: {
1454
+ value: string;
1455
+ lang: "he";
1456
+ }[];
1457
+ depth: number;
1458
+ parentId?: string | null | undefined;
1459
+ tag?: string | undefined;
1460
+ } & {
1461
+ children: ({
1462
+ id: string;
1463
+ companyId: string;
1464
+ storeId: string;
1465
+ locales: {
1466
+ value: string;
1467
+ lang: "he";
1468
+ }[];
1469
+ depth: number;
1470
+ parentId?: string | null | undefined;
1471
+ tag?: string | undefined;
1472
+ } & /*elided*/ any)[];
1473
+ })[] | undefined;
1474
+ categories?: {
1475
+ lvl0: string[];
1476
+ lvl1: string[];
1477
+ lvl2: string[];
1478
+ lvl3: string[];
1479
+ lvl4: string[];
1480
+ } | undefined;
1481
+ categoryNames?: string[] | undefined;
1482
+ };
1483
+ amount: number;
1484
+ }>>>;
1485
+ }, "strip", z.ZodTypeAny, {
1486
+ product: {
1487
+ type: "Product";
1488
+ id: string;
1489
+ companyId: string;
1490
+ storeId: string;
1491
+ objectID: string;
1492
+ sku: string;
1493
+ name: {
1494
+ value: string;
1495
+ lang: "he";
1496
+ }[];
1497
+ description: {
1498
+ value: string;
1499
+ lang: "he";
1500
+ }[];
1501
+ isPublished: boolean;
1502
+ vat: boolean;
1503
+ priceType: {
1504
+ value: number;
1505
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
1506
+ };
1507
+ price: number;
1508
+ currency: "ILS";
1509
+ discount: {
1510
+ value: number;
1511
+ type: "number" | "percent" | "none";
1512
+ };
1513
+ weight: {
1514
+ value: number;
1515
+ unit: "kg" | "gram" | "none";
1516
+ };
1517
+ volume: {
1518
+ value: number;
1519
+ unit: "liter" | "ml" | "none";
1520
+ };
1521
+ images: {
1522
+ url: string;
1523
+ id: string;
1524
+ }[];
1525
+ manufacturer: string;
1526
+ brand: string;
1527
+ importer: string;
1528
+ supplier: string;
1529
+ ingredients: {
1530
+ value: string;
1531
+ lang: "he";
1532
+ }[];
1533
+ created_at: number;
1534
+ updated_at: number;
1535
+ categoryIds: string[];
1536
+ purchasePrice?: number | undefined;
1537
+ profitPercentage?: number | undefined;
1538
+ isDiscountable?: boolean | undefined;
1539
+ stock?: {
1540
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
1541
+ quantity: number;
1542
+ } | undefined;
1543
+ categoryList?: ({
1544
+ id: string;
1545
+ companyId: string;
1546
+ storeId: string;
1547
+ locales: {
1548
+ value: string;
1549
+ lang: "he";
1550
+ }[];
1551
+ depth: number;
1552
+ parentId?: string | null | undefined;
1553
+ tag?: string | undefined;
1554
+ } & {
1555
+ children: ({
1556
+ id: string;
1557
+ companyId: string;
1558
+ storeId: string;
1559
+ locales: {
1560
+ value: string;
1561
+ lang: "he";
1562
+ }[];
1563
+ depth: number;
1564
+ parentId?: string | null | undefined;
1565
+ tag?: string | undefined;
1566
+ } & /*elided*/ any)[];
1567
+ })[] | undefined;
1568
+ categories?: {
1569
+ lvl0: string[];
1570
+ lvl1: string[];
1571
+ lvl2: string[];
1572
+ lvl3: string[];
1573
+ lvl4: string[];
1574
+ } | undefined;
1575
+ categoryNames?: string[] | undefined;
1576
+ };
1577
+ amount: number;
1578
+ status?: "delivered" | "missing" | "substituted" | undefined;
1579
+ originalPrice?: number | undefined;
1580
+ finalPrice?: number | undefined;
1581
+ finalDiscount?: number | undefined;
1582
+ substitutedWith?: {
1583
+ price: number;
1584
+ product: {
1585
+ type: "Product";
1586
+ id: string;
1587
+ companyId: string;
1588
+ storeId: string;
1589
+ objectID: string;
1590
+ sku: string;
1591
+ name: {
1592
+ value: string;
1593
+ lang: "he";
1594
+ }[];
1595
+ description: {
1596
+ value: string;
1597
+ lang: "he";
1598
+ }[];
1599
+ isPublished: boolean;
1600
+ vat: boolean;
1601
+ priceType: {
1602
+ value: number;
1603
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
1604
+ };
1605
+ price: number;
1606
+ currency: "ILS";
1607
+ discount: {
1608
+ value: number;
1609
+ type: "number" | "percent" | "none";
1610
+ };
1611
+ weight: {
1612
+ value: number;
1613
+ unit: "kg" | "gram" | "none";
1614
+ };
1615
+ volume: {
1616
+ value: number;
1617
+ unit: "liter" | "ml" | "none";
1618
+ };
1619
+ images: {
1620
+ url: string;
1621
+ id: string;
1622
+ }[];
1623
+ manufacturer: string;
1624
+ brand: string;
1625
+ importer: string;
1626
+ supplier: string;
1627
+ ingredients: {
1628
+ value: string;
1629
+ lang: "he";
1630
+ }[];
1631
+ created_at: number;
1632
+ updated_at: number;
1633
+ categoryIds: string[];
1634
+ purchasePrice?: number | undefined;
1635
+ profitPercentage?: number | undefined;
1636
+ isDiscountable?: boolean | undefined;
1637
+ stock?: {
1638
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
1639
+ quantity: number;
1640
+ } | undefined;
1641
+ categoryList?: ({
1642
+ id: string;
1643
+ companyId: string;
1644
+ storeId: string;
1645
+ locales: {
1646
+ value: string;
1647
+ lang: "he";
1648
+ }[];
1649
+ depth: number;
1650
+ parentId?: string | null | undefined;
1651
+ tag?: string | undefined;
1652
+ } & {
1653
+ children: ({
1654
+ id: string;
1655
+ companyId: string;
1656
+ storeId: string;
1657
+ locales: {
1658
+ value: string;
1659
+ lang: "he";
1660
+ }[];
1661
+ depth: number;
1662
+ parentId?: string | null | undefined;
1663
+ tag?: string | undefined;
1664
+ } & /*elided*/ any)[];
1665
+ })[] | undefined;
1666
+ categories?: {
1667
+ lvl0: string[];
1668
+ lvl1: string[];
1669
+ lvl2: string[];
1670
+ lvl3: string[];
1671
+ lvl4: string[];
1672
+ } | undefined;
1673
+ categoryNames?: string[] | undefined;
1674
+ };
1675
+ amount: number;
1676
+ } | null | undefined;
1677
+ }, {
1678
+ product: {
1679
+ type: "Product";
1680
+ id: string;
1681
+ companyId: string;
1682
+ storeId: string;
1683
+ objectID: string;
1684
+ sku: string;
1685
+ name: {
1686
+ value: string;
1687
+ lang: "he";
1688
+ }[];
1689
+ description: {
1690
+ value: string;
1691
+ lang: "he";
1692
+ }[];
1693
+ isPublished: boolean;
1694
+ vat: boolean;
1695
+ priceType: {
1696
+ value: number;
1697
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
1698
+ };
1699
+ price: number;
1700
+ currency: "ILS";
1701
+ discount: {
1702
+ value: number;
1703
+ type: "number" | "percent" | "none";
1704
+ };
1705
+ weight: {
1706
+ value: number;
1707
+ unit: "kg" | "gram" | "none";
1708
+ };
1709
+ volume: {
1710
+ value: number;
1711
+ unit: "liter" | "ml" | "none";
1712
+ };
1713
+ images: {
1714
+ url: string;
1715
+ id: string;
1716
+ }[];
1717
+ manufacturer: string;
1718
+ brand: string;
1719
+ importer: string;
1720
+ supplier: string;
1721
+ ingredients: {
1722
+ value: string;
1723
+ lang: "he";
1724
+ }[];
1725
+ created_at: number;
1726
+ updated_at: number;
1727
+ categoryIds: string[];
1728
+ purchasePrice?: number | undefined;
1729
+ profitPercentage?: number | undefined;
1730
+ isDiscountable?: boolean | undefined;
1731
+ stock?: {
1732
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
1733
+ quantity: number;
1734
+ } | undefined;
1735
+ categoryList?: ({
1736
+ id: string;
1737
+ companyId: string;
1738
+ storeId: string;
1739
+ locales: {
1740
+ value: string;
1741
+ lang: "he";
1742
+ }[];
1743
+ depth: number;
1744
+ parentId?: string | null | undefined;
1745
+ tag?: string | undefined;
1746
+ } & {
1747
+ children: ({
1748
+ id: string;
1749
+ companyId: string;
1750
+ storeId: string;
1751
+ locales: {
1752
+ value: string;
1753
+ lang: "he";
1754
+ }[];
1755
+ depth: number;
1756
+ parentId?: string | null | undefined;
1757
+ tag?: string | undefined;
1758
+ } & /*elided*/ any)[];
1759
+ })[] | undefined;
1760
+ categories?: {
1761
+ lvl0: string[];
1762
+ lvl1: string[];
1763
+ lvl2: string[];
1764
+ lvl3: string[];
1765
+ lvl4: string[];
1766
+ } | undefined;
1767
+ categoryNames?: string[] | undefined;
1768
+ };
1769
+ amount: number;
1770
+ status?: "delivered" | "missing" | "substituted" | undefined;
1771
+ originalPrice?: number | undefined;
1772
+ finalPrice?: number | undefined;
1773
+ finalDiscount?: number | undefined;
1774
+ substitutedWith?: {
1775
+ price: number;
1776
+ product: {
1777
+ type: "Product";
1778
+ id: string;
1779
+ companyId: string;
1780
+ storeId: string;
1781
+ objectID: string;
1782
+ sku: string;
1783
+ name: {
1784
+ value: string;
1785
+ lang: "he";
1786
+ }[];
1787
+ description: {
1788
+ value: string;
1789
+ lang: "he";
1790
+ }[];
1791
+ isPublished: boolean;
1792
+ vat: boolean;
1793
+ priceType: {
1794
+ value: number;
1795
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
1796
+ };
1797
+ price: number;
1798
+ currency: "ILS";
1799
+ discount: {
1800
+ value: number;
1801
+ type: "number" | "percent" | "none";
1802
+ };
1803
+ weight: {
1804
+ value: number;
1805
+ unit: "kg" | "gram" | "none";
1806
+ };
1807
+ volume: {
1808
+ value: number;
1809
+ unit: "liter" | "ml" | "none";
1810
+ };
1811
+ images: {
1812
+ url: string;
1813
+ id: string;
1814
+ }[];
1815
+ manufacturer: string;
1816
+ brand: string;
1817
+ importer: string;
1818
+ supplier: string;
1819
+ ingredients: {
1820
+ value: string;
1821
+ lang: "he";
1822
+ }[];
1823
+ created_at: number;
1824
+ updated_at: number;
1825
+ categoryIds: string[];
1826
+ purchasePrice?: number | undefined;
1827
+ profitPercentage?: number | undefined;
1828
+ isDiscountable?: boolean | undefined;
1829
+ stock?: {
1830
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
1831
+ quantity: number;
1832
+ } | undefined;
1833
+ categoryList?: ({
1834
+ id: string;
1835
+ companyId: string;
1836
+ storeId: string;
1837
+ locales: {
1838
+ value: string;
1839
+ lang: "he";
1840
+ }[];
1841
+ depth: number;
1842
+ parentId?: string | null | undefined;
1843
+ tag?: string | undefined;
1844
+ } & {
1845
+ children: ({
1846
+ id: string;
1847
+ companyId: string;
1848
+ storeId: string;
1849
+ locales: {
1850
+ value: string;
1851
+ lang: "he";
1852
+ }[];
1853
+ depth: number;
1854
+ parentId?: string | null | undefined;
1855
+ tag?: string | undefined;
1856
+ } & /*elided*/ any)[];
1857
+ })[] | undefined;
1858
+ categories?: {
1859
+ lvl0: string[];
1860
+ lvl1: string[];
1861
+ lvl2: string[];
1862
+ lvl3: string[];
1863
+ lvl4: string[];
1864
+ } | undefined;
1865
+ categoryNames?: string[] | undefined;
1866
+ };
1867
+ amount: number;
1868
+ } | null | undefined;
560
1869
  }>;
561
1870
  export type TCartItemProduct = z.infer<typeof CartItemProductSchema>;
562
1871
  export declare const CartSchema: z.ZodObject<{
@@ -932,6 +2241,560 @@ export declare const CartSchema: z.ZodObject<{
932
2241
  finalPrice: z.ZodOptional<z.ZodNumber>;
933
2242
  finalDiscount: z.ZodOptional<z.ZodNumber>;
934
2243
  amount: z.ZodNumber;
2244
+ status: z.ZodOptional<z.ZodEnum<["delivered", "missing", "substituted"]>>;
2245
+ substitutedWith: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2246
+ product: z.ZodObject<{
2247
+ type: z.ZodLiteral<"Product">;
2248
+ storeId: z.ZodString;
2249
+ companyId: z.ZodString;
2250
+ id: z.ZodString;
2251
+ objectID: z.ZodString;
2252
+ sku: z.ZodString;
2253
+ name: z.ZodArray<z.ZodObject<{
2254
+ lang: z.ZodEnum<["he"]>;
2255
+ value: z.ZodString;
2256
+ }, "strip", z.ZodTypeAny, {
2257
+ value: string;
2258
+ lang: "he";
2259
+ }, {
2260
+ value: string;
2261
+ lang: "he";
2262
+ }>, "many">;
2263
+ description: z.ZodArray<z.ZodObject<{
2264
+ lang: z.ZodEnum<["he"]>;
2265
+ value: z.ZodString;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ value: string;
2268
+ lang: "he";
2269
+ }, {
2270
+ value: string;
2271
+ lang: "he";
2272
+ }>, "many">;
2273
+ isPublished: z.ZodBoolean;
2274
+ vat: z.ZodBoolean;
2275
+ priceType: z.ZodObject<{
2276
+ type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
2277
+ value: z.ZodNumber;
2278
+ }, "strip", z.ZodTypeAny, {
2279
+ value: number;
2280
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
2281
+ }, {
2282
+ value: number;
2283
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
2284
+ }>;
2285
+ price: z.ZodNumber;
2286
+ purchasePrice: z.ZodOptional<z.ZodNumber>;
2287
+ profitPercentage: z.ZodOptional<z.ZodNumber>;
2288
+ currency: z.ZodLiteral<"ILS">;
2289
+ discount: z.ZodObject<{
2290
+ type: z.ZodEnum<["number", "percent", "none"]>;
2291
+ value: z.ZodNumber;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ value: number;
2294
+ type: "number" | "percent" | "none";
2295
+ }, {
2296
+ value: number;
2297
+ type: "number" | "percent" | "none";
2298
+ }>;
2299
+ isDiscountable: z.ZodOptional<z.ZodBoolean>;
2300
+ weight: z.ZodObject<{
2301
+ value: z.ZodNumber;
2302
+ unit: z.ZodEnum<["kg", "gram", "none"]>;
2303
+ }, "strip", z.ZodTypeAny, {
2304
+ value: number;
2305
+ unit: "kg" | "gram" | "none";
2306
+ }, {
2307
+ value: number;
2308
+ unit: "kg" | "gram" | "none";
2309
+ }>;
2310
+ volume: z.ZodObject<{
2311
+ value: z.ZodNumber;
2312
+ unit: z.ZodEnum<["liter", "ml", "none"]>;
2313
+ }, "strip", z.ZodTypeAny, {
2314
+ value: number;
2315
+ unit: "liter" | "ml" | "none";
2316
+ }, {
2317
+ value: number;
2318
+ unit: "liter" | "ml" | "none";
2319
+ }>;
2320
+ images: z.ZodArray<z.ZodObject<{
2321
+ url: z.ZodString;
2322
+ id: z.ZodString;
2323
+ }, "strip", z.ZodTypeAny, {
2324
+ url: string;
2325
+ id: string;
2326
+ }, {
2327
+ url: string;
2328
+ id: string;
2329
+ }>, "many">;
2330
+ manufacturer: z.ZodString;
2331
+ brand: z.ZodString;
2332
+ importer: z.ZodString;
2333
+ supplier: z.ZodString;
2334
+ ingredients: z.ZodArray<z.ZodObject<{
2335
+ lang: z.ZodEnum<["he"]>;
2336
+ value: z.ZodString;
2337
+ }, "strip", z.ZodTypeAny, {
2338
+ value: string;
2339
+ lang: "he";
2340
+ }, {
2341
+ value: string;
2342
+ lang: "he";
2343
+ }>, "many">;
2344
+ created_at: z.ZodNumber;
2345
+ updated_at: z.ZodNumber;
2346
+ categoryIds: z.ZodArray<z.ZodString, "many">;
2347
+ stock: z.ZodOptional<z.ZodObject<{
2348
+ quantity: z.ZodNumber;
2349
+ unit: z.ZodEnum<["piece", "kg", "gram", "liter", "ml"]>;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
2352
+ quantity: number;
2353
+ }, {
2354
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
2355
+ quantity: number;
2356
+ }>>;
2357
+ categoryList: z.ZodOptional<z.ZodArray<z.ZodType<{
2358
+ id: string;
2359
+ companyId: string;
2360
+ storeId: string;
2361
+ locales: {
2362
+ value: string;
2363
+ lang: "he";
2364
+ }[];
2365
+ depth: number;
2366
+ parentId?: string | null | undefined;
2367
+ tag?: string | undefined;
2368
+ } & {
2369
+ children: ({
2370
+ id: string;
2371
+ companyId: string;
2372
+ storeId: string;
2373
+ locales: {
2374
+ value: string;
2375
+ lang: "he";
2376
+ }[];
2377
+ depth: number;
2378
+ parentId?: string | null | undefined;
2379
+ tag?: string | undefined;
2380
+ } & /*elided*/ any)[];
2381
+ }, z.ZodTypeDef, {
2382
+ id: string;
2383
+ companyId: string;
2384
+ storeId: string;
2385
+ locales: {
2386
+ value: string;
2387
+ lang: "he";
2388
+ }[];
2389
+ depth: number;
2390
+ parentId?: string | null | undefined;
2391
+ tag?: string | undefined;
2392
+ } & {
2393
+ children: ({
2394
+ id: string;
2395
+ companyId: string;
2396
+ storeId: string;
2397
+ locales: {
2398
+ value: string;
2399
+ lang: "he";
2400
+ }[];
2401
+ depth: number;
2402
+ parentId?: string | null | undefined;
2403
+ tag?: string | undefined;
2404
+ } & /*elided*/ any)[];
2405
+ }>, "many">>;
2406
+ categories: z.ZodOptional<z.ZodObject<{
2407
+ lvl0: z.ZodArray<z.ZodString, "many">;
2408
+ lvl1: z.ZodArray<z.ZodString, "many">;
2409
+ lvl2: z.ZodArray<z.ZodString, "many">;
2410
+ lvl3: z.ZodArray<z.ZodString, "many">;
2411
+ lvl4: z.ZodArray<z.ZodString, "many">;
2412
+ }, "strip", z.ZodTypeAny, {
2413
+ lvl0: string[];
2414
+ lvl1: string[];
2415
+ lvl2: string[];
2416
+ lvl3: string[];
2417
+ lvl4: string[];
2418
+ }, {
2419
+ lvl0: string[];
2420
+ lvl1: string[];
2421
+ lvl2: string[];
2422
+ lvl3: string[];
2423
+ lvl4: string[];
2424
+ }>>;
2425
+ categoryNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2426
+ }, "strip", z.ZodTypeAny, {
2427
+ type: "Product";
2428
+ id: string;
2429
+ companyId: string;
2430
+ storeId: string;
2431
+ objectID: string;
2432
+ sku: string;
2433
+ name: {
2434
+ value: string;
2435
+ lang: "he";
2436
+ }[];
2437
+ description: {
2438
+ value: string;
2439
+ lang: "he";
2440
+ }[];
2441
+ isPublished: boolean;
2442
+ vat: boolean;
2443
+ priceType: {
2444
+ value: number;
2445
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
2446
+ };
2447
+ price: number;
2448
+ currency: "ILS";
2449
+ discount: {
2450
+ value: number;
2451
+ type: "number" | "percent" | "none";
2452
+ };
2453
+ weight: {
2454
+ value: number;
2455
+ unit: "kg" | "gram" | "none";
2456
+ };
2457
+ volume: {
2458
+ value: number;
2459
+ unit: "liter" | "ml" | "none";
2460
+ };
2461
+ images: {
2462
+ url: string;
2463
+ id: string;
2464
+ }[];
2465
+ manufacturer: string;
2466
+ brand: string;
2467
+ importer: string;
2468
+ supplier: string;
2469
+ ingredients: {
2470
+ value: string;
2471
+ lang: "he";
2472
+ }[];
2473
+ created_at: number;
2474
+ updated_at: number;
2475
+ categoryIds: string[];
2476
+ purchasePrice?: number | undefined;
2477
+ profitPercentage?: number | undefined;
2478
+ isDiscountable?: boolean | undefined;
2479
+ stock?: {
2480
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
2481
+ quantity: number;
2482
+ } | undefined;
2483
+ categoryList?: ({
2484
+ id: string;
2485
+ companyId: string;
2486
+ storeId: string;
2487
+ locales: {
2488
+ value: string;
2489
+ lang: "he";
2490
+ }[];
2491
+ depth: number;
2492
+ parentId?: string | null | undefined;
2493
+ tag?: string | undefined;
2494
+ } & {
2495
+ children: ({
2496
+ id: string;
2497
+ companyId: string;
2498
+ storeId: string;
2499
+ locales: {
2500
+ value: string;
2501
+ lang: "he";
2502
+ }[];
2503
+ depth: number;
2504
+ parentId?: string | null | undefined;
2505
+ tag?: string | undefined;
2506
+ } & /*elided*/ any)[];
2507
+ })[] | undefined;
2508
+ categories?: {
2509
+ lvl0: string[];
2510
+ lvl1: string[];
2511
+ lvl2: string[];
2512
+ lvl3: string[];
2513
+ lvl4: string[];
2514
+ } | undefined;
2515
+ categoryNames?: string[] | undefined;
2516
+ }, {
2517
+ type: "Product";
2518
+ id: string;
2519
+ companyId: string;
2520
+ storeId: string;
2521
+ objectID: string;
2522
+ sku: string;
2523
+ name: {
2524
+ value: string;
2525
+ lang: "he";
2526
+ }[];
2527
+ description: {
2528
+ value: string;
2529
+ lang: "he";
2530
+ }[];
2531
+ isPublished: boolean;
2532
+ vat: boolean;
2533
+ priceType: {
2534
+ value: number;
2535
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
2536
+ };
2537
+ price: number;
2538
+ currency: "ILS";
2539
+ discount: {
2540
+ value: number;
2541
+ type: "number" | "percent" | "none";
2542
+ };
2543
+ weight: {
2544
+ value: number;
2545
+ unit: "kg" | "gram" | "none";
2546
+ };
2547
+ volume: {
2548
+ value: number;
2549
+ unit: "liter" | "ml" | "none";
2550
+ };
2551
+ images: {
2552
+ url: string;
2553
+ id: string;
2554
+ }[];
2555
+ manufacturer: string;
2556
+ brand: string;
2557
+ importer: string;
2558
+ supplier: string;
2559
+ ingredients: {
2560
+ value: string;
2561
+ lang: "he";
2562
+ }[];
2563
+ created_at: number;
2564
+ updated_at: number;
2565
+ categoryIds: string[];
2566
+ purchasePrice?: number | undefined;
2567
+ profitPercentage?: number | undefined;
2568
+ isDiscountable?: boolean | undefined;
2569
+ stock?: {
2570
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
2571
+ quantity: number;
2572
+ } | undefined;
2573
+ categoryList?: ({
2574
+ id: string;
2575
+ companyId: string;
2576
+ storeId: string;
2577
+ locales: {
2578
+ value: string;
2579
+ lang: "he";
2580
+ }[];
2581
+ depth: number;
2582
+ parentId?: string | null | undefined;
2583
+ tag?: string | undefined;
2584
+ } & {
2585
+ children: ({
2586
+ id: string;
2587
+ companyId: string;
2588
+ storeId: string;
2589
+ locales: {
2590
+ value: string;
2591
+ lang: "he";
2592
+ }[];
2593
+ depth: number;
2594
+ parentId?: string | null | undefined;
2595
+ tag?: string | undefined;
2596
+ } & /*elided*/ any)[];
2597
+ })[] | undefined;
2598
+ categories?: {
2599
+ lvl0: string[];
2600
+ lvl1: string[];
2601
+ lvl2: string[];
2602
+ lvl3: string[];
2603
+ lvl4: string[];
2604
+ } | undefined;
2605
+ categoryNames?: string[] | undefined;
2606
+ }>;
2607
+ amount: z.ZodNumber;
2608
+ price: z.ZodNumber;
2609
+ }, "strip", z.ZodTypeAny, {
2610
+ price: number;
2611
+ product: {
2612
+ type: "Product";
2613
+ id: string;
2614
+ companyId: string;
2615
+ storeId: string;
2616
+ objectID: string;
2617
+ sku: string;
2618
+ name: {
2619
+ value: string;
2620
+ lang: "he";
2621
+ }[];
2622
+ description: {
2623
+ value: string;
2624
+ lang: "he";
2625
+ }[];
2626
+ isPublished: boolean;
2627
+ vat: boolean;
2628
+ priceType: {
2629
+ value: number;
2630
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
2631
+ };
2632
+ price: number;
2633
+ currency: "ILS";
2634
+ discount: {
2635
+ value: number;
2636
+ type: "number" | "percent" | "none";
2637
+ };
2638
+ weight: {
2639
+ value: number;
2640
+ unit: "kg" | "gram" | "none";
2641
+ };
2642
+ volume: {
2643
+ value: number;
2644
+ unit: "liter" | "ml" | "none";
2645
+ };
2646
+ images: {
2647
+ url: string;
2648
+ id: string;
2649
+ }[];
2650
+ manufacturer: string;
2651
+ brand: string;
2652
+ importer: string;
2653
+ supplier: string;
2654
+ ingredients: {
2655
+ value: string;
2656
+ lang: "he";
2657
+ }[];
2658
+ created_at: number;
2659
+ updated_at: number;
2660
+ categoryIds: string[];
2661
+ purchasePrice?: number | undefined;
2662
+ profitPercentage?: number | undefined;
2663
+ isDiscountable?: boolean | undefined;
2664
+ stock?: {
2665
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
2666
+ quantity: number;
2667
+ } | undefined;
2668
+ categoryList?: ({
2669
+ id: string;
2670
+ companyId: string;
2671
+ storeId: string;
2672
+ locales: {
2673
+ value: string;
2674
+ lang: "he";
2675
+ }[];
2676
+ depth: number;
2677
+ parentId?: string | null | undefined;
2678
+ tag?: string | undefined;
2679
+ } & {
2680
+ children: ({
2681
+ id: string;
2682
+ companyId: string;
2683
+ storeId: string;
2684
+ locales: {
2685
+ value: string;
2686
+ lang: "he";
2687
+ }[];
2688
+ depth: number;
2689
+ parentId?: string | null | undefined;
2690
+ tag?: string | undefined;
2691
+ } & /*elided*/ any)[];
2692
+ })[] | undefined;
2693
+ categories?: {
2694
+ lvl0: string[];
2695
+ lvl1: string[];
2696
+ lvl2: string[];
2697
+ lvl3: string[];
2698
+ lvl4: string[];
2699
+ } | undefined;
2700
+ categoryNames?: string[] | undefined;
2701
+ };
2702
+ amount: number;
2703
+ }, {
2704
+ price: number;
2705
+ product: {
2706
+ type: "Product";
2707
+ id: string;
2708
+ companyId: string;
2709
+ storeId: string;
2710
+ objectID: string;
2711
+ sku: string;
2712
+ name: {
2713
+ value: string;
2714
+ lang: "he";
2715
+ }[];
2716
+ description: {
2717
+ value: string;
2718
+ lang: "he";
2719
+ }[];
2720
+ isPublished: boolean;
2721
+ vat: boolean;
2722
+ priceType: {
2723
+ value: number;
2724
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
2725
+ };
2726
+ price: number;
2727
+ currency: "ILS";
2728
+ discount: {
2729
+ value: number;
2730
+ type: "number" | "percent" | "none";
2731
+ };
2732
+ weight: {
2733
+ value: number;
2734
+ unit: "kg" | "gram" | "none";
2735
+ };
2736
+ volume: {
2737
+ value: number;
2738
+ unit: "liter" | "ml" | "none";
2739
+ };
2740
+ images: {
2741
+ url: string;
2742
+ id: string;
2743
+ }[];
2744
+ manufacturer: string;
2745
+ brand: string;
2746
+ importer: string;
2747
+ supplier: string;
2748
+ ingredients: {
2749
+ value: string;
2750
+ lang: "he";
2751
+ }[];
2752
+ created_at: number;
2753
+ updated_at: number;
2754
+ categoryIds: string[];
2755
+ purchasePrice?: number | undefined;
2756
+ profitPercentage?: number | undefined;
2757
+ isDiscountable?: boolean | undefined;
2758
+ stock?: {
2759
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
2760
+ quantity: number;
2761
+ } | undefined;
2762
+ categoryList?: ({
2763
+ id: string;
2764
+ companyId: string;
2765
+ storeId: string;
2766
+ locales: {
2767
+ value: string;
2768
+ lang: "he";
2769
+ }[];
2770
+ depth: number;
2771
+ parentId?: string | null | undefined;
2772
+ tag?: string | undefined;
2773
+ } & {
2774
+ children: ({
2775
+ id: string;
2776
+ companyId: string;
2777
+ storeId: string;
2778
+ locales: {
2779
+ value: string;
2780
+ lang: "he";
2781
+ }[];
2782
+ depth: number;
2783
+ parentId?: string | null | undefined;
2784
+ tag?: string | undefined;
2785
+ } & /*elided*/ any)[];
2786
+ })[] | undefined;
2787
+ categories?: {
2788
+ lvl0: string[];
2789
+ lvl1: string[];
2790
+ lvl2: string[];
2791
+ lvl3: string[];
2792
+ lvl4: string[];
2793
+ } | undefined;
2794
+ categoryNames?: string[] | undefined;
2795
+ };
2796
+ amount: number;
2797
+ }>>>;
935
2798
  }, "strip", z.ZodTypeAny, {
936
2799
  product: {
937
2800
  type: "Product";
@@ -1025,9 +2888,105 @@ export declare const CartSchema: z.ZodObject<{
1025
2888
  categoryNames?: string[] | undefined;
1026
2889
  };
1027
2890
  amount: number;
2891
+ status?: "delivered" | "missing" | "substituted" | undefined;
1028
2892
  originalPrice?: number | undefined;
1029
2893
  finalPrice?: number | undefined;
1030
2894
  finalDiscount?: number | undefined;
2895
+ substitutedWith?: {
2896
+ price: number;
2897
+ product: {
2898
+ type: "Product";
2899
+ id: string;
2900
+ companyId: string;
2901
+ storeId: string;
2902
+ objectID: string;
2903
+ sku: string;
2904
+ name: {
2905
+ value: string;
2906
+ lang: "he";
2907
+ }[];
2908
+ description: {
2909
+ value: string;
2910
+ lang: "he";
2911
+ }[];
2912
+ isPublished: boolean;
2913
+ vat: boolean;
2914
+ priceType: {
2915
+ value: number;
2916
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
2917
+ };
2918
+ price: number;
2919
+ currency: "ILS";
2920
+ discount: {
2921
+ value: number;
2922
+ type: "number" | "percent" | "none";
2923
+ };
2924
+ weight: {
2925
+ value: number;
2926
+ unit: "kg" | "gram" | "none";
2927
+ };
2928
+ volume: {
2929
+ value: number;
2930
+ unit: "liter" | "ml" | "none";
2931
+ };
2932
+ images: {
2933
+ url: string;
2934
+ id: string;
2935
+ }[];
2936
+ manufacturer: string;
2937
+ brand: string;
2938
+ importer: string;
2939
+ supplier: string;
2940
+ ingredients: {
2941
+ value: string;
2942
+ lang: "he";
2943
+ }[];
2944
+ created_at: number;
2945
+ updated_at: number;
2946
+ categoryIds: string[];
2947
+ purchasePrice?: number | undefined;
2948
+ profitPercentage?: number | undefined;
2949
+ isDiscountable?: boolean | undefined;
2950
+ stock?: {
2951
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
2952
+ quantity: number;
2953
+ } | undefined;
2954
+ categoryList?: ({
2955
+ id: string;
2956
+ companyId: string;
2957
+ storeId: string;
2958
+ locales: {
2959
+ value: string;
2960
+ lang: "he";
2961
+ }[];
2962
+ depth: number;
2963
+ parentId?: string | null | undefined;
2964
+ tag?: string | undefined;
2965
+ } & {
2966
+ children: ({
2967
+ id: string;
2968
+ companyId: string;
2969
+ storeId: string;
2970
+ locales: {
2971
+ value: string;
2972
+ lang: "he";
2973
+ }[];
2974
+ depth: number;
2975
+ parentId?: string | null | undefined;
2976
+ tag?: string | undefined;
2977
+ } & /*elided*/ any)[];
2978
+ })[] | undefined;
2979
+ categories?: {
2980
+ lvl0: string[];
2981
+ lvl1: string[];
2982
+ lvl2: string[];
2983
+ lvl3: string[];
2984
+ lvl4: string[];
2985
+ } | undefined;
2986
+ categoryNames?: string[] | undefined;
2987
+ };
2988
+ amount: number;
2989
+ } | null | undefined;
1031
2990
  }, {
1032
2991
  product: {
1033
2992
  type: "Product";
@@ -1121,9 +3080,105 @@ export declare const CartSchema: z.ZodObject<{
1121
3080
  categoryNames?: string[] | undefined;
1122
3081
  };
1123
3082
  amount: number;
3083
+ status?: "delivered" | "missing" | "substituted" | undefined;
1124
3084
  originalPrice?: number | undefined;
1125
3085
  finalPrice?: number | undefined;
1126
3086
  finalDiscount?: number | undefined;
3087
+ substitutedWith?: {
3088
+ price: number;
3089
+ product: {
3090
+ type: "Product";
3091
+ id: string;
3092
+ companyId: string;
3093
+ storeId: string;
3094
+ objectID: string;
3095
+ sku: string;
3096
+ name: {
3097
+ value: string;
3098
+ lang: "he";
3099
+ }[];
3100
+ description: {
3101
+ value: string;
3102
+ lang: "he";
3103
+ }[];
3104
+ isPublished: boolean;
3105
+ vat: boolean;
3106
+ priceType: {
3107
+ value: number;
3108
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
3109
+ };
3110
+ price: number;
3111
+ currency: "ILS";
3112
+ discount: {
3113
+ value: number;
3114
+ type: "number" | "percent" | "none";
3115
+ };
3116
+ weight: {
3117
+ value: number;
3118
+ unit: "kg" | "gram" | "none";
3119
+ };
3120
+ volume: {
3121
+ value: number;
3122
+ unit: "liter" | "ml" | "none";
3123
+ };
3124
+ images: {
3125
+ url: string;
3126
+ id: string;
3127
+ }[];
3128
+ manufacturer: string;
3129
+ brand: string;
3130
+ importer: string;
3131
+ supplier: string;
3132
+ ingredients: {
3133
+ value: string;
3134
+ lang: "he";
3135
+ }[];
3136
+ created_at: number;
3137
+ updated_at: number;
3138
+ categoryIds: string[];
3139
+ purchasePrice?: number | undefined;
3140
+ profitPercentage?: number | undefined;
3141
+ isDiscountable?: boolean | undefined;
3142
+ stock?: {
3143
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
3144
+ quantity: number;
3145
+ } | undefined;
3146
+ categoryList?: ({
3147
+ id: string;
3148
+ companyId: string;
3149
+ storeId: string;
3150
+ locales: {
3151
+ value: string;
3152
+ lang: "he";
3153
+ }[];
3154
+ depth: number;
3155
+ parentId?: string | null | undefined;
3156
+ tag?: string | undefined;
3157
+ } & {
3158
+ children: ({
3159
+ id: string;
3160
+ companyId: string;
3161
+ storeId: string;
3162
+ locales: {
3163
+ value: string;
3164
+ lang: "he";
3165
+ }[];
3166
+ depth: number;
3167
+ parentId?: string | null | undefined;
3168
+ tag?: string | undefined;
3169
+ } & /*elided*/ any)[];
3170
+ })[] | undefined;
3171
+ categories?: {
3172
+ lvl0: string[];
3173
+ lvl1: string[];
3174
+ lvl2: string[];
3175
+ lvl3: string[];
3176
+ lvl4: string[];
3177
+ } | undefined;
3178
+ categoryNames?: string[] | undefined;
3179
+ };
3180
+ amount: number;
3181
+ } | null | undefined;
1127
3182
  }>, "many">;
1128
3183
  }, "strip", z.ZodTypeAny, {
1129
3184
  type: "Cart";
@@ -1225,9 +3280,105 @@ export declare const CartSchema: z.ZodObject<{
1225
3280
  categoryNames?: string[] | undefined;
1226
3281
  };
1227
3282
  amount: number;
3283
+ status?: "delivered" | "missing" | "substituted" | undefined;
1228
3284
  originalPrice?: number | undefined;
1229
3285
  finalPrice?: number | undefined;
1230
3286
  finalDiscount?: number | undefined;
3287
+ substitutedWith?: {
3288
+ price: number;
3289
+ product: {
3290
+ type: "Product";
3291
+ id: string;
3292
+ companyId: string;
3293
+ storeId: string;
3294
+ objectID: string;
3295
+ sku: string;
3296
+ name: {
3297
+ value: string;
3298
+ lang: "he";
3299
+ }[];
3300
+ description: {
3301
+ value: string;
3302
+ lang: "he";
3303
+ }[];
3304
+ isPublished: boolean;
3305
+ vat: boolean;
3306
+ priceType: {
3307
+ value: number;
3308
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
3309
+ };
3310
+ price: number;
3311
+ currency: "ILS";
3312
+ discount: {
3313
+ value: number;
3314
+ type: "number" | "percent" | "none";
3315
+ };
3316
+ weight: {
3317
+ value: number;
3318
+ unit: "kg" | "gram" | "none";
3319
+ };
3320
+ volume: {
3321
+ value: number;
3322
+ unit: "liter" | "ml" | "none";
3323
+ };
3324
+ images: {
3325
+ url: string;
3326
+ id: string;
3327
+ }[];
3328
+ manufacturer: string;
3329
+ brand: string;
3330
+ importer: string;
3331
+ supplier: string;
3332
+ ingredients: {
3333
+ value: string;
3334
+ lang: "he";
3335
+ }[];
3336
+ created_at: number;
3337
+ updated_at: number;
3338
+ categoryIds: string[];
3339
+ purchasePrice?: number | undefined;
3340
+ profitPercentage?: number | undefined;
3341
+ isDiscountable?: boolean | undefined;
3342
+ stock?: {
3343
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
3344
+ quantity: number;
3345
+ } | undefined;
3346
+ categoryList?: ({
3347
+ id: string;
3348
+ companyId: string;
3349
+ storeId: string;
3350
+ locales: {
3351
+ value: string;
3352
+ lang: "he";
3353
+ }[];
3354
+ depth: number;
3355
+ parentId?: string | null | undefined;
3356
+ tag?: string | undefined;
3357
+ } & {
3358
+ children: ({
3359
+ id: string;
3360
+ companyId: string;
3361
+ storeId: string;
3362
+ locales: {
3363
+ value: string;
3364
+ lang: "he";
3365
+ }[];
3366
+ depth: number;
3367
+ parentId?: string | null | undefined;
3368
+ tag?: string | undefined;
3369
+ } & /*elided*/ any)[];
3370
+ })[] | undefined;
3371
+ categories?: {
3372
+ lvl0: string[];
3373
+ lvl1: string[];
3374
+ lvl2: string[];
3375
+ lvl3: string[];
3376
+ lvl4: string[];
3377
+ } | undefined;
3378
+ categoryNames?: string[] | undefined;
3379
+ };
3380
+ amount: number;
3381
+ } | null | undefined;
1231
3382
  }[];
1232
3383
  }, {
1233
3384
  type: "Cart";
@@ -1329,9 +3480,105 @@ export declare const CartSchema: z.ZodObject<{
1329
3480
  categoryNames?: string[] | undefined;
1330
3481
  };
1331
3482
  amount: number;
3483
+ status?: "delivered" | "missing" | "substituted" | undefined;
1332
3484
  originalPrice?: number | undefined;
1333
3485
  finalPrice?: number | undefined;
1334
3486
  finalDiscount?: number | undefined;
3487
+ substitutedWith?: {
3488
+ price: number;
3489
+ product: {
3490
+ type: "Product";
3491
+ id: string;
3492
+ companyId: string;
3493
+ storeId: string;
3494
+ objectID: string;
3495
+ sku: string;
3496
+ name: {
3497
+ value: string;
3498
+ lang: "he";
3499
+ }[];
3500
+ description: {
3501
+ value: string;
3502
+ lang: "he";
3503
+ }[];
3504
+ isPublished: boolean;
3505
+ vat: boolean;
3506
+ priceType: {
3507
+ value: number;
3508
+ type: "unit" | "kg" | "gram" | "liter" | "ml";
3509
+ };
3510
+ price: number;
3511
+ currency: "ILS";
3512
+ discount: {
3513
+ value: number;
3514
+ type: "number" | "percent" | "none";
3515
+ };
3516
+ weight: {
3517
+ value: number;
3518
+ unit: "kg" | "gram" | "none";
3519
+ };
3520
+ volume: {
3521
+ value: number;
3522
+ unit: "liter" | "ml" | "none";
3523
+ };
3524
+ images: {
3525
+ url: string;
3526
+ id: string;
3527
+ }[];
3528
+ manufacturer: string;
3529
+ brand: string;
3530
+ importer: string;
3531
+ supplier: string;
3532
+ ingredients: {
3533
+ value: string;
3534
+ lang: "he";
3535
+ }[];
3536
+ created_at: number;
3537
+ updated_at: number;
3538
+ categoryIds: string[];
3539
+ purchasePrice?: number | undefined;
3540
+ profitPercentage?: number | undefined;
3541
+ isDiscountable?: boolean | undefined;
3542
+ stock?: {
3543
+ unit: "kg" | "gram" | "liter" | "ml" | "piece";
3544
+ quantity: number;
3545
+ } | undefined;
3546
+ categoryList?: ({
3547
+ id: string;
3548
+ companyId: string;
3549
+ storeId: string;
3550
+ locales: {
3551
+ value: string;
3552
+ lang: "he";
3553
+ }[];
3554
+ depth: number;
3555
+ parentId?: string | null | undefined;
3556
+ tag?: string | undefined;
3557
+ } & {
3558
+ children: ({
3559
+ id: string;
3560
+ companyId: string;
3561
+ storeId: string;
3562
+ locales: {
3563
+ value: string;
3564
+ lang: "he";
3565
+ }[];
3566
+ depth: number;
3567
+ parentId?: string | null | undefined;
3568
+ tag?: string | undefined;
3569
+ } & /*elided*/ any)[];
3570
+ })[] | undefined;
3571
+ categories?: {
3572
+ lvl0: string[];
3573
+ lvl1: string[];
3574
+ lvl2: string[];
3575
+ lvl3: string[];
3576
+ lvl4: string[];
3577
+ } | undefined;
3578
+ categoryNames?: string[] | undefined;
3579
+ };
3580
+ amount: number;
3581
+ } | null | undefined;
1335
3582
  }[];
1336
3583
  }>;
1337
3584
  export type TCart = z.infer<typeof CartSchema>;