@jsdev_ninja/core 0.10.8 → 0.11.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.
@@ -112,49 +112,49 @@ export declare const CartSchema: z.ZodObject<{
112
112
  id: string;
113
113
  companyId: string;
114
114
  storeId: string;
115
- tag: string;
116
115
  locales: {
117
116
  value: string;
118
117
  lang: "he";
119
118
  }[];
120
119
  depth: number;
121
120
  parentId?: string | null | undefined;
121
+ tag?: string | undefined;
122
122
  } & {
123
123
  children: ({
124
124
  id: string;
125
125
  companyId: string;
126
126
  storeId: string;
127
- tag: string;
128
127
  locales: {
129
128
  value: string;
130
129
  lang: "he";
131
130
  }[];
132
131
  depth: number;
133
132
  parentId?: string | null | undefined;
133
+ tag?: string | undefined;
134
134
  } & /*elided*/ any)[];
135
135
  }, z.ZodTypeDef, {
136
136
  id: string;
137
137
  companyId: string;
138
138
  storeId: string;
139
- tag: string;
140
139
  locales: {
141
140
  value: string;
142
141
  lang: "he";
143
142
  }[];
144
143
  depth: number;
145
144
  parentId?: string | null | undefined;
145
+ tag?: string | undefined;
146
146
  } & {
147
147
  children: ({
148
148
  id: string;
149
149
  companyId: string;
150
150
  storeId: string;
151
- tag: string;
152
151
  locales: {
153
152
  value: string;
154
153
  lang: "he";
155
154
  }[];
156
155
  depth: number;
157
156
  parentId?: string | null | undefined;
157
+ tag?: string | undefined;
158
158
  } & /*elided*/ any)[];
159
159
  }>, "many">;
160
160
  categories: z.ZodObject<{
@@ -231,25 +231,25 @@ export declare const CartSchema: z.ZodObject<{
231
231
  id: string;
232
232
  companyId: string;
233
233
  storeId: string;
234
- tag: string;
235
234
  locales: {
236
235
  value: string;
237
236
  lang: "he";
238
237
  }[];
239
238
  depth: number;
240
239
  parentId?: string | null | undefined;
240
+ tag?: string | undefined;
241
241
  } & {
242
242
  children: ({
243
243
  id: string;
244
244
  companyId: string;
245
245
  storeId: string;
246
- tag: string;
247
246
  locales: {
248
247
  value: string;
249
248
  lang: "he";
250
249
  }[];
251
250
  depth: number;
252
251
  parentId?: string | null | undefined;
252
+ tag?: string | undefined;
253
253
  } & /*elided*/ any)[];
254
254
  })[];
255
255
  categories: {
@@ -317,25 +317,25 @@ export declare const CartSchema: z.ZodObject<{
317
317
  id: string;
318
318
  companyId: string;
319
319
  storeId: string;
320
- tag: string;
321
320
  locales: {
322
321
  value: string;
323
322
  lang: "he";
324
323
  }[];
325
324
  depth: number;
326
325
  parentId?: string | null | undefined;
326
+ tag?: string | undefined;
327
327
  } & {
328
328
  children: ({
329
329
  id: string;
330
330
  companyId: string;
331
331
  storeId: string;
332
- tag: string;
333
332
  locales: {
334
333
  value: string;
335
334
  lang: "he";
336
335
  }[];
337
336
  depth: number;
338
337
  parentId?: string | null | undefined;
338
+ tag?: string | undefined;
339
339
  } & /*elided*/ any)[];
340
340
  })[];
341
341
  categories: {
@@ -406,25 +406,25 @@ export declare const CartSchema: z.ZodObject<{
406
406
  id: string;
407
407
  companyId: string;
408
408
  storeId: string;
409
- tag: string;
410
409
  locales: {
411
410
  value: string;
412
411
  lang: "he";
413
412
  }[];
414
413
  depth: number;
415
414
  parentId?: string | null | undefined;
415
+ tag?: string | undefined;
416
416
  } & {
417
417
  children: ({
418
418
  id: string;
419
419
  companyId: string;
420
420
  storeId: string;
421
- tag: string;
422
421
  locales: {
423
422
  value: string;
424
423
  lang: "he";
425
424
  }[];
426
425
  depth: number;
427
426
  parentId?: string | null | undefined;
427
+ tag?: string | undefined;
428
428
  } & /*elided*/ any)[];
429
429
  })[];
430
430
  categories: {
@@ -495,25 +495,25 @@ export declare const CartSchema: z.ZodObject<{
495
495
  id: string;
496
496
  companyId: string;
497
497
  storeId: string;
498
- tag: string;
499
498
  locales: {
500
499
  value: string;
501
500
  lang: "he";
502
501
  }[];
503
502
  depth: number;
504
503
  parentId?: string | null | undefined;
504
+ tag?: string | undefined;
505
505
  } & {
506
506
  children: ({
507
507
  id: string;
508
508
  companyId: string;
509
509
  storeId: string;
510
- tag: string;
511
510
  locales: {
512
511
  value: string;
513
512
  lang: "he";
514
513
  }[];
515
514
  depth: number;
516
515
  parentId?: string | null | undefined;
516
+ tag?: string | undefined;
517
517
  } & /*elided*/ any)[];
518
518
  })[];
519
519
  categories: {
@@ -592,25 +592,25 @@ export declare const CartSchema: z.ZodObject<{
592
592
  id: string;
593
593
  companyId: string;
594
594
  storeId: string;
595
- tag: string;
596
595
  locales: {
597
596
  value: string;
598
597
  lang: "he";
599
598
  }[];
600
599
  depth: number;
601
600
  parentId?: string | null | undefined;
601
+ tag?: string | undefined;
602
602
  } & {
603
603
  children: ({
604
604
  id: string;
605
605
  companyId: string;
606
606
  storeId: string;
607
- tag: string;
608
607
  locales: {
609
608
  value: string;
610
609
  lang: "he";
611
610
  }[];
612
611
  depth: number;
613
612
  parentId?: string | null | undefined;
613
+ tag?: string | undefined;
614
614
  } & /*elided*/ any)[];
615
615
  })[];
616
616
  categories: {
@@ -689,25 +689,25 @@ export declare const CartSchema: z.ZodObject<{
689
689
  id: string;
690
690
  companyId: string;
691
691
  storeId: string;
692
- tag: string;
693
692
  locales: {
694
693
  value: string;
695
694
  lang: "he";
696
695
  }[];
697
696
  depth: number;
698
697
  parentId?: string | null | undefined;
698
+ tag?: string | undefined;
699
699
  } & {
700
700
  children: ({
701
701
  id: string;
702
702
  companyId: string;
703
703
  storeId: string;
704
- tag: string;
705
704
  locales: {
706
705
  value: string;
707
706
  lang: "he";
708
707
  }[];
709
708
  depth: number;
710
709
  parentId?: string | null | undefined;
710
+ tag?: string | undefined;
711
711
  } & /*elided*/ any)[];
712
712
  })[];
713
713
  categories: {
@@ -4,7 +4,7 @@ export declare const BaseCategorySchema: z.ZodObject<{
4
4
  companyId: z.ZodString;
5
5
  storeId: z.ZodString;
6
6
  parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
- tag: z.ZodString;
7
+ tag: z.ZodOptional<z.ZodString>;
8
8
  locales: z.ZodArray<z.ZodObject<{
9
9
  lang: z.ZodEnum<["he"]>;
10
10
  value: z.ZodString;
@@ -20,24 +20,24 @@ export declare const BaseCategorySchema: z.ZodObject<{
20
20
  id: string;
21
21
  companyId: string;
22
22
  storeId: string;
23
- tag: string;
24
23
  locales: {
25
24
  value: string;
26
25
  lang: "he";
27
26
  }[];
28
27
  depth: number;
29
28
  parentId?: string | null | undefined;
29
+ tag?: string | undefined;
30
30
  }, {
31
31
  id: string;
32
32
  companyId: string;
33
33
  storeId: string;
34
- tag: string;
35
34
  locales: {
36
35
  value: string;
37
36
  lang: "he";
38
37
  }[];
39
38
  depth: number;
40
39
  parentId?: string | null | undefined;
40
+ tag?: string | undefined;
41
41
  }>;
42
42
  type Category = z.infer<typeof BaseCategorySchema> & {
43
43
  children: Category[];
@@ -51,7 +51,7 @@ export declare const TFlattenCategorySchema: z.ZodObject<z.objectUtil.extendShap
51
51
  companyId: z.ZodString;
52
52
  storeId: z.ZodString;
53
53
  parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
- tag: z.ZodString;
54
+ tag: z.ZodOptional<z.ZodString>;
55
55
  locales: z.ZodArray<z.ZodObject<{
56
56
  lang: z.ZodEnum<["he"]>;
57
57
  value: z.ZodString;
@@ -72,7 +72,6 @@ export declare const TFlattenCategorySchema: z.ZodObject<z.objectUtil.extendShap
72
72
  id: string;
73
73
  companyId: string;
74
74
  storeId: string;
75
- tag: string;
76
75
  locales: {
77
76
  value: string;
78
77
  lang: "he";
@@ -81,12 +80,12 @@ export declare const TFlattenCategorySchema: z.ZodObject<z.objectUtil.extendShap
81
80
  children: Category[];
82
81
  index: number;
83
82
  parentId?: string | null | undefined;
83
+ tag?: string | undefined;
84
84
  collapsed?: boolean | undefined;
85
85
  }, {
86
86
  id: string;
87
87
  companyId: string;
88
88
  storeId: string;
89
- tag: string;
90
89
  locales: {
91
90
  value: string;
92
91
  lang: "he";
@@ -95,6 +94,7 @@ export declare const TFlattenCategorySchema: z.ZodObject<z.objectUtil.extendShap
95
94
  children: Category[];
96
95
  index: number;
97
96
  parentId?: string | null | undefined;
97
+ tag?: string | undefined;
98
98
  collapsed?: boolean | undefined;
99
99
  }>;
100
100
  export type TFlattenCategory = z.infer<typeof TFlattenCategorySchema>;
@@ -5,7 +5,7 @@ export const BaseCategorySchema = z.object({
5
5
  companyId: z.string().min(1),
6
6
  storeId: z.string().min(1),
7
7
  parentId: z.string().nullish(),
8
- tag: z.string().min(1),
8
+ tag: z.string().optional(),
9
9
  locales: z.array(LocaleSchema),
10
10
  depth: z.number(),
11
11
  });
@@ -115,49 +115,49 @@ export declare const OrderSchema: z.ZodObject<{
115
115
  id: string;
116
116
  companyId: string;
117
117
  storeId: string;
118
- tag: string;
119
118
  locales: {
120
119
  value: string;
121
120
  lang: "he";
122
121
  }[];
123
122
  depth: number;
124
123
  parentId?: string | null | undefined;
124
+ tag?: string | undefined;
125
125
  } & {
126
126
  children: ({
127
127
  id: string;
128
128
  companyId: string;
129
129
  storeId: string;
130
- tag: string;
131
130
  locales: {
132
131
  value: string;
133
132
  lang: "he";
134
133
  }[];
135
134
  depth: number;
136
135
  parentId?: string | null | undefined;
136
+ tag?: string | undefined;
137
137
  } & /*elided*/ any)[];
138
138
  }, z.ZodTypeDef, {
139
139
  id: string;
140
140
  companyId: string;
141
141
  storeId: string;
142
- tag: string;
143
142
  locales: {
144
143
  value: string;
145
144
  lang: "he";
146
145
  }[];
147
146
  depth: number;
148
147
  parentId?: string | null | undefined;
148
+ tag?: string | undefined;
149
149
  } & {
150
150
  children: ({
151
151
  id: string;
152
152
  companyId: string;
153
153
  storeId: string;
154
- tag: string;
155
154
  locales: {
156
155
  value: string;
157
156
  lang: "he";
158
157
  }[];
159
158
  depth: number;
160
159
  parentId?: string | null | undefined;
160
+ tag?: string | undefined;
161
161
  } & /*elided*/ any)[];
162
162
  }>, "many">;
163
163
  categories: z.ZodObject<{
@@ -234,25 +234,25 @@ export declare const OrderSchema: z.ZodObject<{
234
234
  id: string;
235
235
  companyId: string;
236
236
  storeId: string;
237
- tag: string;
238
237
  locales: {
239
238
  value: string;
240
239
  lang: "he";
241
240
  }[];
242
241
  depth: number;
243
242
  parentId?: string | null | undefined;
243
+ tag?: string | undefined;
244
244
  } & {
245
245
  children: ({
246
246
  id: string;
247
247
  companyId: string;
248
248
  storeId: string;
249
- tag: string;
250
249
  locales: {
251
250
  value: string;
252
251
  lang: "he";
253
252
  }[];
254
253
  depth: number;
255
254
  parentId?: string | null | undefined;
255
+ tag?: string | undefined;
256
256
  } & /*elided*/ any)[];
257
257
  })[];
258
258
  categories: {
@@ -320,25 +320,25 @@ export declare const OrderSchema: z.ZodObject<{
320
320
  id: string;
321
321
  companyId: string;
322
322
  storeId: string;
323
- tag: string;
324
323
  locales: {
325
324
  value: string;
326
325
  lang: "he";
327
326
  }[];
328
327
  depth: number;
329
328
  parentId?: string | null | undefined;
329
+ tag?: string | undefined;
330
330
  } & {
331
331
  children: ({
332
332
  id: string;
333
333
  companyId: string;
334
334
  storeId: string;
335
- tag: string;
336
335
  locales: {
337
336
  value: string;
338
337
  lang: "he";
339
338
  }[];
340
339
  depth: number;
341
340
  parentId?: string | null | undefined;
341
+ tag?: string | undefined;
342
342
  } & /*elided*/ any)[];
343
343
  })[];
344
344
  categories: {
@@ -409,25 +409,25 @@ export declare const OrderSchema: z.ZodObject<{
409
409
  id: string;
410
410
  companyId: string;
411
411
  storeId: string;
412
- tag: string;
413
412
  locales: {
414
413
  value: string;
415
414
  lang: "he";
416
415
  }[];
417
416
  depth: number;
418
417
  parentId?: string | null | undefined;
418
+ tag?: string | undefined;
419
419
  } & {
420
420
  children: ({
421
421
  id: string;
422
422
  companyId: string;
423
423
  storeId: string;
424
- tag: string;
425
424
  locales: {
426
425
  value: string;
427
426
  lang: "he";
428
427
  }[];
429
428
  depth: number;
430
429
  parentId?: string | null | undefined;
430
+ tag?: string | undefined;
431
431
  } & /*elided*/ any)[];
432
432
  })[];
433
433
  categories: {
@@ -498,25 +498,25 @@ export declare const OrderSchema: z.ZodObject<{
498
498
  id: string;
499
499
  companyId: string;
500
500
  storeId: string;
501
- tag: string;
502
501
  locales: {
503
502
  value: string;
504
503
  lang: "he";
505
504
  }[];
506
505
  depth: number;
507
506
  parentId?: string | null | undefined;
507
+ tag?: string | undefined;
508
508
  } & {
509
509
  children: ({
510
510
  id: string;
511
511
  companyId: string;
512
512
  storeId: string;
513
- tag: string;
514
513
  locales: {
515
514
  value: string;
516
515
  lang: "he";
517
516
  }[];
518
517
  depth: number;
519
518
  parentId?: string | null | undefined;
519
+ tag?: string | undefined;
520
520
  } & /*elided*/ any)[];
521
521
  })[];
522
522
  categories: {
@@ -593,25 +593,25 @@ export declare const OrderSchema: z.ZodObject<{
593
593
  id: string;
594
594
  companyId: string;
595
595
  storeId: string;
596
- tag: string;
597
596
  locales: {
598
597
  value: string;
599
598
  lang: "he";
600
599
  }[];
601
600
  depth: number;
602
601
  parentId?: string | null | undefined;
602
+ tag?: string | undefined;
603
603
  } & {
604
604
  children: ({
605
605
  id: string;
606
606
  companyId: string;
607
607
  storeId: string;
608
- tag: string;
609
608
  locales: {
610
609
  value: string;
611
610
  lang: "he";
612
611
  }[];
613
612
  depth: number;
614
613
  parentId?: string | null | undefined;
614
+ tag?: string | undefined;
615
615
  } & /*elided*/ any)[];
616
616
  })[];
617
617
  categories: {
@@ -688,25 +688,25 @@ export declare const OrderSchema: z.ZodObject<{
688
688
  id: string;
689
689
  companyId: string;
690
690
  storeId: string;
691
- tag: string;
692
691
  locales: {
693
692
  value: string;
694
693
  lang: "he";
695
694
  }[];
696
695
  depth: number;
697
696
  parentId?: string | null | undefined;
697
+ tag?: string | undefined;
698
698
  } & {
699
699
  children: ({
700
700
  id: string;
701
701
  companyId: string;
702
702
  storeId: string;
703
- tag: string;
704
703
  locales: {
705
704
  value: string;
706
705
  lang: "he";
707
706
  }[];
708
707
  depth: number;
709
708
  parentId?: string | null | undefined;
709
+ tag?: string | undefined;
710
710
  } & /*elided*/ any)[];
711
711
  })[];
712
712
  categories: {
@@ -884,25 +884,25 @@ export declare const OrderSchema: z.ZodObject<{
884
884
  id: string;
885
885
  companyId: string;
886
886
  storeId: string;
887
- tag: string;
888
887
  locales: {
889
888
  value: string;
890
889
  lang: "he";
891
890
  }[];
892
891
  depth: number;
893
892
  parentId?: string | null | undefined;
893
+ tag?: string | undefined;
894
894
  } & {
895
895
  children: ({
896
896
  id: string;
897
897
  companyId: string;
898
898
  storeId: string;
899
- tag: string;
900
899
  locales: {
901
900
  value: string;
902
901
  lang: "he";
903
902
  }[];
904
903
  depth: number;
905
904
  parentId?: string | null | undefined;
905
+ tag?: string | undefined;
906
906
  } & /*elided*/ any)[];
907
907
  })[];
908
908
  categories: {
@@ -1017,25 +1017,25 @@ export declare const OrderSchema: z.ZodObject<{
1017
1017
  id: string;
1018
1018
  companyId: string;
1019
1019
  storeId: string;
1020
- tag: string;
1021
1020
  locales: {
1022
1021
  value: string;
1023
1022
  lang: "he";
1024
1023
  }[];
1025
1024
  depth: number;
1026
1025
  parentId?: string | null | undefined;
1026
+ tag?: string | undefined;
1027
1027
  } & {
1028
1028
  children: ({
1029
1029
  id: string;
1030
1030
  companyId: string;
1031
1031
  storeId: string;
1032
- tag: string;
1033
1032
  locales: {
1034
1033
  value: string;
1035
1034
  lang: "he";
1036
1035
  }[];
1037
1036
  depth: number;
1038
1037
  parentId?: string | null | undefined;
1038
+ tag?: string | undefined;
1039
1039
  } & /*elided*/ any)[];
1040
1040
  })[];
1041
1041
  categories: {