@jsdev_ninja/core 0.7.5 → 0.7.61

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/package.json +5 -2
  2. package/dist/core.cjs.js.map +0 -1
  3. package/dist/core.es.js +0 -3037
  4. package/dist/core.es.js.map +0 -1
  5. package/dist/core.umd.js +0 -2
  6. package/dist/core.umd.js.map +0 -1
  7. package/dist/entities/Address.d.ts +0 -28
  8. package/dist/entities/Address.d.ts.map +0 -1
  9. package/dist/entities/Address.js +0 -10
  10. package/dist/entities/Cart.d.ts +0 -715
  11. package/dist/entities/Cart.d.ts.map +0 -1
  12. package/dist/entities/Cart.js +0 -14
  13. package/dist/entities/Category.d.ts +0 -103
  14. package/dist/entities/Category.d.ts.map +0 -1
  15. package/dist/entities/Category.js +0 -20
  16. package/dist/entities/Locale.d.ts +0 -12
  17. package/dist/entities/Locale.d.ts.map +0 -1
  18. package/dist/entities/Locale.js +0 -5
  19. package/dist/entities/Order.d.ts +0 -1118
  20. package/dist/entities/Order.d.ts.map +0 -1
  21. package/dist/entities/Order.js +0 -30
  22. package/dist/entities/Payment.d.ts +0 -30
  23. package/dist/entities/Payment.d.ts.map +0 -1
  24. package/dist/entities/Payment.js +0 -12
  25. package/dist/entities/Product.d.ts +0 -1000
  26. package/dist/entities/Product.d.ts.map +0 -1
  27. package/dist/entities/Product.js +0 -64
  28. package/dist/entities/Profile.d.ts +0 -102
  29. package/dist/entities/Profile.d.ts.map +0 -1
  30. package/dist/entities/Profile.js +0 -45
  31. package/dist/entities/index.d.ts +0 -6
  32. package/dist/entities/index.d.ts.map +0 -1
  33. package/dist/entities/index.js +0 -5
  34. package/dist/index.d.ts +0 -2
  35. package/dist/index.d.ts.map +0 -1
  36. package/dist/index.js +0 -1
  37. package/dist/tsconfig.app.tsbuildinfo +0 -1
  38. package/dist/tsconfig.node.tsbuildinfo +0 -1
  39. package/dist/vite.config.d.ts +0 -3
  40. package/dist/vite.config.d.ts.map +0 -1
  41. package/dist/vite.config.js +0 -25
  42. package/eslint.config.js +0 -28
  43. package/index.html +0 -13
  44. package/src/App.css +0 -42
  45. package/src/App.tsx +0 -35
  46. package/src/assets/react.svg +0 -1
  47. package/src/index.css +0 -68
  48. package/src/main.tsx +0 -3
  49. package/src/vite-env.d.ts +0 -1
  50. package/tsconfig.app.json +0 -19
  51. package/tsconfig.json +0 -7
  52. package/tsconfig.node.json +0 -26
  53. package/vite.config.ts +0 -27
@@ -1,1000 +0,0 @@
1
- import { z } from "zod";
2
- export declare const ProductSchema: z.ZodObject<{
3
- type: z.ZodLiteral<"Product">;
4
- storeId: z.ZodString;
5
- companyId: z.ZodString;
6
- id: z.ZodString;
7
- objectID: z.ZodString;
8
- sku: z.ZodString;
9
- name: z.ZodArray<z.ZodObject<{
10
- lang: z.ZodString;
11
- value: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- lang: string;
14
- value: string;
15
- }, {
16
- lang: string;
17
- value: string;
18
- }>, "many">;
19
- description: z.ZodArray<z.ZodObject<{
20
- lang: z.ZodString;
21
- value: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- lang: string;
24
- value: string;
25
- }, {
26
- lang: string;
27
- value: string;
28
- }>, "many">;
29
- isPublished: z.ZodBoolean;
30
- vat: z.ZodBoolean;
31
- priceType: z.ZodObject<{
32
- type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
33
- value: z.ZodNumber;
34
- }, "strip", z.ZodTypeAny, {
35
- value: number;
36
- type: "unit" | "kg" | "gram" | "liter" | "ml";
37
- }, {
38
- value: number;
39
- type: "unit" | "kg" | "gram" | "liter" | "ml";
40
- }>;
41
- price: z.ZodNumber;
42
- purchasePrice: z.ZodOptional<z.ZodNumber>;
43
- profitPercentage: z.ZodOptional<z.ZodNumber>;
44
- currency: z.ZodLiteral<"ILS">;
45
- discount: z.ZodObject<{
46
- type: z.ZodEnum<["number", "percent", "none"]>;
47
- value: z.ZodNumber;
48
- }, "strip", z.ZodTypeAny, {
49
- value: number;
50
- type: "number" | "percent" | "none";
51
- }, {
52
- value: number;
53
- type: "number" | "percent" | "none";
54
- }>;
55
- weight: z.ZodObject<{
56
- value: z.ZodNumber;
57
- unit: z.ZodEnum<["kg", "gram", "none"]>;
58
- }, "strip", z.ZodTypeAny, {
59
- value: number;
60
- unit: "kg" | "gram" | "none";
61
- }, {
62
- value: number;
63
- unit: "kg" | "gram" | "none";
64
- }>;
65
- volume: z.ZodObject<{
66
- value: z.ZodNumber;
67
- unit: z.ZodEnum<["liter", "ml", "none"]>;
68
- }, "strip", z.ZodTypeAny, {
69
- value: number;
70
- unit: "liter" | "ml" | "none";
71
- }, {
72
- value: number;
73
- unit: "liter" | "ml" | "none";
74
- }>;
75
- images: z.ZodArray<z.ZodObject<{
76
- url: z.ZodString;
77
- id: z.ZodString;
78
- }, "strip", z.ZodTypeAny, {
79
- id: string;
80
- url: string;
81
- }, {
82
- id: string;
83
- url: string;
84
- }>, "many">;
85
- manufacturer: z.ZodString;
86
- brand: z.ZodString;
87
- importer: z.ZodString;
88
- supplier: z.ZodString;
89
- ingredients: z.ZodArray<z.ZodObject<{
90
- lang: z.ZodString;
91
- value: z.ZodString;
92
- }, "strip", z.ZodTypeAny, {
93
- lang: string;
94
- value: string;
95
- }, {
96
- lang: string;
97
- value: string;
98
- }>, "many">;
99
- created_at: z.ZodNumber;
100
- updated_at: z.ZodNumber;
101
- categoryList: z.ZodArray<z.ZodType<{
102
- id: string;
103
- companyId: string;
104
- storeId: string;
105
- tag: string;
106
- locales: {
107
- lang: string;
108
- value: string;
109
- }[];
110
- depth: number;
111
- parentId?: string | null | undefined;
112
- } & {
113
- children: ({
114
- id: string;
115
- companyId: string;
116
- storeId: string;
117
- tag: string;
118
- locales: {
119
- lang: string;
120
- value: string;
121
- }[];
122
- depth: number;
123
- parentId?: string | null | undefined;
124
- } & any)[];
125
- }, z.ZodTypeDef, {
126
- id: string;
127
- companyId: string;
128
- storeId: string;
129
- tag: string;
130
- locales: {
131
- lang: string;
132
- value: string;
133
- }[];
134
- depth: number;
135
- parentId?: string | null | undefined;
136
- } & {
137
- children: ({
138
- id: string;
139
- companyId: string;
140
- storeId: string;
141
- tag: string;
142
- locales: {
143
- lang: string;
144
- value: string;
145
- }[];
146
- depth: number;
147
- parentId?: string | null | undefined;
148
- } & any)[];
149
- }>, "many">;
150
- categories: z.ZodObject<{
151
- lvl0: z.ZodArray<z.ZodString, "many">;
152
- lvl1: z.ZodArray<z.ZodString, "many">;
153
- lvl2: z.ZodArray<z.ZodString, "many">;
154
- lvl3: z.ZodArray<z.ZodString, "many">;
155
- lvl4: z.ZodArray<z.ZodString, "many">;
156
- }, "strip", z.ZodTypeAny, {
157
- lvl0: string[];
158
- lvl1: string[];
159
- lvl2: string[];
160
- lvl3: string[];
161
- lvl4: string[];
162
- }, {
163
- lvl0: string[];
164
- lvl1: string[];
165
- lvl2: string[];
166
- lvl3: string[];
167
- lvl4: string[];
168
- }>;
169
- categoryNames: z.ZodArray<z.ZodString, "many">;
170
- }, "strip", z.ZodTypeAny, {
171
- type: "Product";
172
- id: string;
173
- companyId: string;
174
- storeId: string;
175
- objectID: string;
176
- sku: string;
177
- name: {
178
- lang: string;
179
- value: string;
180
- }[];
181
- description: {
182
- lang: string;
183
- value: string;
184
- }[];
185
- isPublished: boolean;
186
- vat: boolean;
187
- priceType: {
188
- value: number;
189
- type: "unit" | "kg" | "gram" | "liter" | "ml";
190
- };
191
- price: number;
192
- currency: "ILS";
193
- discount: {
194
- value: number;
195
- type: "number" | "percent" | "none";
196
- };
197
- weight: {
198
- value: number;
199
- unit: "kg" | "gram" | "none";
200
- };
201
- volume: {
202
- value: number;
203
- unit: "liter" | "ml" | "none";
204
- };
205
- images: {
206
- id: string;
207
- url: string;
208
- }[];
209
- manufacturer: string;
210
- brand: string;
211
- importer: string;
212
- supplier: string;
213
- ingredients: {
214
- lang: string;
215
- value: string;
216
- }[];
217
- created_at: number;
218
- updated_at: number;
219
- categoryList: ({
220
- id: string;
221
- companyId: string;
222
- storeId: string;
223
- tag: string;
224
- locales: {
225
- lang: string;
226
- value: string;
227
- }[];
228
- depth: number;
229
- parentId?: string | null | undefined;
230
- } & {
231
- children: ({
232
- id: string;
233
- companyId: string;
234
- storeId: string;
235
- tag: string;
236
- locales: {
237
- lang: string;
238
- value: string;
239
- }[];
240
- depth: number;
241
- parentId?: string | null | undefined;
242
- } & any)[];
243
- })[];
244
- categories: {
245
- lvl0: string[];
246
- lvl1: string[];
247
- lvl2: string[];
248
- lvl3: string[];
249
- lvl4: string[];
250
- };
251
- categoryNames: string[];
252
- purchasePrice?: number | undefined;
253
- profitPercentage?: number | undefined;
254
- }, {
255
- type: "Product";
256
- id: string;
257
- companyId: string;
258
- storeId: string;
259
- objectID: string;
260
- sku: string;
261
- name: {
262
- lang: string;
263
- value: string;
264
- }[];
265
- description: {
266
- lang: string;
267
- value: string;
268
- }[];
269
- isPublished: boolean;
270
- vat: boolean;
271
- priceType: {
272
- value: number;
273
- type: "unit" | "kg" | "gram" | "liter" | "ml";
274
- };
275
- price: number;
276
- currency: "ILS";
277
- discount: {
278
- value: number;
279
- type: "number" | "percent" | "none";
280
- };
281
- weight: {
282
- value: number;
283
- unit: "kg" | "gram" | "none";
284
- };
285
- volume: {
286
- value: number;
287
- unit: "liter" | "ml" | "none";
288
- };
289
- images: {
290
- id: string;
291
- url: string;
292
- }[];
293
- manufacturer: string;
294
- brand: string;
295
- importer: string;
296
- supplier: string;
297
- ingredients: {
298
- lang: string;
299
- value: string;
300
- }[];
301
- created_at: number;
302
- updated_at: number;
303
- categoryList: ({
304
- id: string;
305
- companyId: string;
306
- storeId: string;
307
- tag: string;
308
- locales: {
309
- lang: string;
310
- value: string;
311
- }[];
312
- depth: number;
313
- parentId?: string | null | undefined;
314
- } & {
315
- children: ({
316
- id: string;
317
- companyId: string;
318
- storeId: string;
319
- tag: string;
320
- locales: {
321
- lang: string;
322
- value: string;
323
- }[];
324
- depth: number;
325
- parentId?: string | null | undefined;
326
- } & any)[];
327
- })[];
328
- categories: {
329
- lvl0: string[];
330
- lvl1: string[];
331
- lvl2: string[];
332
- lvl3: string[];
333
- lvl4: string[];
334
- };
335
- categoryNames: string[];
336
- purchasePrice?: number | undefined;
337
- profitPercentage?: number | undefined;
338
- }>;
339
- export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
340
- type: z.ZodLiteral<"Product">;
341
- storeId: z.ZodString;
342
- companyId: z.ZodString;
343
- id: z.ZodString;
344
- objectID: z.ZodString;
345
- sku: z.ZodString;
346
- name: z.ZodArray<z.ZodObject<{
347
- lang: z.ZodString;
348
- value: z.ZodString;
349
- }, "strip", z.ZodTypeAny, {
350
- lang: string;
351
- value: string;
352
- }, {
353
- lang: string;
354
- value: string;
355
- }>, "many">;
356
- description: z.ZodArray<z.ZodObject<{
357
- lang: z.ZodString;
358
- value: z.ZodString;
359
- }, "strip", z.ZodTypeAny, {
360
- lang: string;
361
- value: string;
362
- }, {
363
- lang: string;
364
- value: string;
365
- }>, "many">;
366
- isPublished: z.ZodBoolean;
367
- vat: z.ZodBoolean;
368
- priceType: z.ZodObject<{
369
- type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
370
- value: z.ZodNumber;
371
- }, "strip", z.ZodTypeAny, {
372
- value: number;
373
- type: "unit" | "kg" | "gram" | "liter" | "ml";
374
- }, {
375
- value: number;
376
- type: "unit" | "kg" | "gram" | "liter" | "ml";
377
- }>;
378
- price: z.ZodNumber;
379
- purchasePrice: z.ZodOptional<z.ZodNumber>;
380
- profitPercentage: z.ZodOptional<z.ZodNumber>;
381
- currency: z.ZodLiteral<"ILS">;
382
- discount: z.ZodObject<{
383
- type: z.ZodEnum<["number", "percent", "none"]>;
384
- value: z.ZodNumber;
385
- }, "strip", z.ZodTypeAny, {
386
- value: number;
387
- type: "number" | "percent" | "none";
388
- }, {
389
- value: number;
390
- type: "number" | "percent" | "none";
391
- }>;
392
- weight: z.ZodObject<{
393
- value: z.ZodNumber;
394
- unit: z.ZodEnum<["kg", "gram", "none"]>;
395
- }, "strip", z.ZodTypeAny, {
396
- value: number;
397
- unit: "kg" | "gram" | "none";
398
- }, {
399
- value: number;
400
- unit: "kg" | "gram" | "none";
401
- }>;
402
- volume: z.ZodObject<{
403
- value: z.ZodNumber;
404
- unit: z.ZodEnum<["liter", "ml", "none"]>;
405
- }, "strip", z.ZodTypeAny, {
406
- value: number;
407
- unit: "liter" | "ml" | "none";
408
- }, {
409
- value: number;
410
- unit: "liter" | "ml" | "none";
411
- }>;
412
- images: z.ZodArray<z.ZodObject<{
413
- url: z.ZodString;
414
- id: z.ZodString;
415
- }, "strip", z.ZodTypeAny, {
416
- id: string;
417
- url: string;
418
- }, {
419
- id: string;
420
- url: string;
421
- }>, "many">;
422
- manufacturer: z.ZodString;
423
- brand: z.ZodString;
424
- importer: z.ZodString;
425
- supplier: z.ZodString;
426
- ingredients: z.ZodArray<z.ZodObject<{
427
- lang: z.ZodString;
428
- value: z.ZodString;
429
- }, "strip", z.ZodTypeAny, {
430
- lang: string;
431
- value: string;
432
- }, {
433
- lang: string;
434
- value: string;
435
- }>, "many">;
436
- created_at: z.ZodNumber;
437
- updated_at: z.ZodNumber;
438
- categoryList: z.ZodArray<z.ZodType<{
439
- id: string;
440
- companyId: string;
441
- storeId: string;
442
- tag: string;
443
- locales: {
444
- lang: string;
445
- value: string;
446
- }[];
447
- depth: number;
448
- parentId?: string | null | undefined;
449
- } & {
450
- children: ({
451
- id: string;
452
- companyId: string;
453
- storeId: string;
454
- tag: string;
455
- locales: {
456
- lang: string;
457
- value: string;
458
- }[];
459
- depth: number;
460
- parentId?: string | null | undefined;
461
- } & any)[];
462
- }, z.ZodTypeDef, {
463
- id: string;
464
- companyId: string;
465
- storeId: string;
466
- tag: string;
467
- locales: {
468
- lang: string;
469
- value: string;
470
- }[];
471
- depth: number;
472
- parentId?: string | null | undefined;
473
- } & {
474
- children: ({
475
- id: string;
476
- companyId: string;
477
- storeId: string;
478
- tag: string;
479
- locales: {
480
- lang: string;
481
- value: string;
482
- }[];
483
- depth: number;
484
- parentId?: string | null | undefined;
485
- } & any)[];
486
- }>, "many">;
487
- categories: z.ZodObject<{
488
- lvl0: z.ZodArray<z.ZodString, "many">;
489
- lvl1: z.ZodArray<z.ZodString, "many">;
490
- lvl2: z.ZodArray<z.ZodString, "many">;
491
- lvl3: z.ZodArray<z.ZodString, "many">;
492
- lvl4: z.ZodArray<z.ZodString, "many">;
493
- }, "strip", z.ZodTypeAny, {
494
- lvl0: string[];
495
- lvl1: string[];
496
- lvl2: string[];
497
- lvl3: string[];
498
- lvl4: string[];
499
- }, {
500
- lvl0: string[];
501
- lvl1: string[];
502
- lvl2: string[];
503
- lvl3: string[];
504
- lvl4: string[];
505
- }>;
506
- categoryNames: z.ZodArray<z.ZodString, "many">;
507
- }, "id" | "images" | "categories">, {
508
- image: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
509
- }>, "strip", z.ZodTypeAny, {
510
- type: "Product";
511
- companyId: string;
512
- storeId: string;
513
- objectID: string;
514
- sku: string;
515
- name: {
516
- lang: string;
517
- value: string;
518
- }[];
519
- description: {
520
- lang: string;
521
- value: string;
522
- }[];
523
- isPublished: boolean;
524
- vat: boolean;
525
- priceType: {
526
- value: number;
527
- type: "unit" | "kg" | "gram" | "liter" | "ml";
528
- };
529
- price: number;
530
- currency: "ILS";
531
- discount: {
532
- value: number;
533
- type: "number" | "percent" | "none";
534
- };
535
- weight: {
536
- value: number;
537
- unit: "kg" | "gram" | "none";
538
- };
539
- volume: {
540
- value: number;
541
- unit: "liter" | "ml" | "none";
542
- };
543
- manufacturer: string;
544
- brand: string;
545
- importer: string;
546
- supplier: string;
547
- ingredients: {
548
- lang: string;
549
- value: string;
550
- }[];
551
- created_at: number;
552
- updated_at: number;
553
- categoryList: ({
554
- id: string;
555
- companyId: string;
556
- storeId: string;
557
- tag: string;
558
- locales: {
559
- lang: string;
560
- value: string;
561
- }[];
562
- depth: number;
563
- parentId?: string | null | undefined;
564
- } & {
565
- children: ({
566
- id: string;
567
- companyId: string;
568
- storeId: string;
569
- tag: string;
570
- locales: {
571
- lang: string;
572
- value: string;
573
- }[];
574
- depth: number;
575
- parentId?: string | null | undefined;
576
- } & any)[];
577
- })[];
578
- categoryNames: string[];
579
- purchasePrice?: number | undefined;
580
- profitPercentage?: number | undefined;
581
- image?: File | undefined;
582
- }, {
583
- type: "Product";
584
- companyId: string;
585
- storeId: string;
586
- objectID: string;
587
- sku: string;
588
- name: {
589
- lang: string;
590
- value: string;
591
- }[];
592
- description: {
593
- lang: string;
594
- value: string;
595
- }[];
596
- isPublished: boolean;
597
- vat: boolean;
598
- priceType: {
599
- value: number;
600
- type: "unit" | "kg" | "gram" | "liter" | "ml";
601
- };
602
- price: number;
603
- currency: "ILS";
604
- discount: {
605
- value: number;
606
- type: "number" | "percent" | "none";
607
- };
608
- weight: {
609
- value: number;
610
- unit: "kg" | "gram" | "none";
611
- };
612
- volume: {
613
- value: number;
614
- unit: "liter" | "ml" | "none";
615
- };
616
- manufacturer: string;
617
- brand: string;
618
- importer: string;
619
- supplier: string;
620
- ingredients: {
621
- lang: string;
622
- value: string;
623
- }[];
624
- created_at: number;
625
- updated_at: number;
626
- categoryList: ({
627
- id: string;
628
- companyId: string;
629
- storeId: string;
630
- tag: string;
631
- locales: {
632
- lang: string;
633
- value: string;
634
- }[];
635
- depth: number;
636
- parentId?: string | null | undefined;
637
- } & {
638
- children: ({
639
- id: string;
640
- companyId: string;
641
- storeId: string;
642
- tag: string;
643
- locales: {
644
- lang: string;
645
- value: string;
646
- }[];
647
- depth: number;
648
- parentId?: string | null | undefined;
649
- } & any)[];
650
- })[];
651
- categoryNames: string[];
652
- purchasePrice?: number | undefined;
653
- profitPercentage?: number | undefined;
654
- image?: File | undefined;
655
- }>;
656
- export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
657
- type: z.ZodLiteral<"Product">;
658
- storeId: z.ZodString;
659
- companyId: z.ZodString;
660
- id: z.ZodString;
661
- objectID: z.ZodString;
662
- sku: z.ZodString;
663
- name: z.ZodArray<z.ZodObject<{
664
- lang: z.ZodString;
665
- value: z.ZodString;
666
- }, "strip", z.ZodTypeAny, {
667
- lang: string;
668
- value: string;
669
- }, {
670
- lang: string;
671
- value: string;
672
- }>, "many">;
673
- description: z.ZodArray<z.ZodObject<{
674
- lang: z.ZodString;
675
- value: z.ZodString;
676
- }, "strip", z.ZodTypeAny, {
677
- lang: string;
678
- value: string;
679
- }, {
680
- lang: string;
681
- value: string;
682
- }>, "many">;
683
- isPublished: z.ZodBoolean;
684
- vat: z.ZodBoolean;
685
- priceType: z.ZodObject<{
686
- type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
687
- value: z.ZodNumber;
688
- }, "strip", z.ZodTypeAny, {
689
- value: number;
690
- type: "unit" | "kg" | "gram" | "liter" | "ml";
691
- }, {
692
- value: number;
693
- type: "unit" | "kg" | "gram" | "liter" | "ml";
694
- }>;
695
- price: z.ZodNumber;
696
- purchasePrice: z.ZodOptional<z.ZodNumber>;
697
- profitPercentage: z.ZodOptional<z.ZodNumber>;
698
- currency: z.ZodLiteral<"ILS">;
699
- discount: z.ZodObject<{
700
- type: z.ZodEnum<["number", "percent", "none"]>;
701
- value: z.ZodNumber;
702
- }, "strip", z.ZodTypeAny, {
703
- value: number;
704
- type: "number" | "percent" | "none";
705
- }, {
706
- value: number;
707
- type: "number" | "percent" | "none";
708
- }>;
709
- weight: z.ZodObject<{
710
- value: z.ZodNumber;
711
- unit: z.ZodEnum<["kg", "gram", "none"]>;
712
- }, "strip", z.ZodTypeAny, {
713
- value: number;
714
- unit: "kg" | "gram" | "none";
715
- }, {
716
- value: number;
717
- unit: "kg" | "gram" | "none";
718
- }>;
719
- volume: z.ZodObject<{
720
- value: z.ZodNumber;
721
- unit: z.ZodEnum<["liter", "ml", "none"]>;
722
- }, "strip", z.ZodTypeAny, {
723
- value: number;
724
- unit: "liter" | "ml" | "none";
725
- }, {
726
- value: number;
727
- unit: "liter" | "ml" | "none";
728
- }>;
729
- images: z.ZodArray<z.ZodObject<{
730
- url: z.ZodString;
731
- id: z.ZodString;
732
- }, "strip", z.ZodTypeAny, {
733
- id: string;
734
- url: string;
735
- }, {
736
- id: string;
737
- url: string;
738
- }>, "many">;
739
- manufacturer: z.ZodString;
740
- brand: z.ZodString;
741
- importer: z.ZodString;
742
- supplier: z.ZodString;
743
- ingredients: z.ZodArray<z.ZodObject<{
744
- lang: z.ZodString;
745
- value: z.ZodString;
746
- }, "strip", z.ZodTypeAny, {
747
- lang: string;
748
- value: string;
749
- }, {
750
- lang: string;
751
- value: string;
752
- }>, "many">;
753
- created_at: z.ZodNumber;
754
- updated_at: z.ZodNumber;
755
- categoryList: z.ZodArray<z.ZodType<{
756
- id: string;
757
- companyId: string;
758
- storeId: string;
759
- tag: string;
760
- locales: {
761
- lang: string;
762
- value: string;
763
- }[];
764
- depth: number;
765
- parentId?: string | null | undefined;
766
- } & {
767
- children: ({
768
- id: string;
769
- companyId: string;
770
- storeId: string;
771
- tag: string;
772
- locales: {
773
- lang: string;
774
- value: string;
775
- }[];
776
- depth: number;
777
- parentId?: string | null | undefined;
778
- } & any)[];
779
- }, z.ZodTypeDef, {
780
- id: string;
781
- companyId: string;
782
- storeId: string;
783
- tag: string;
784
- locales: {
785
- lang: string;
786
- value: string;
787
- }[];
788
- depth: number;
789
- parentId?: string | null | undefined;
790
- } & {
791
- children: ({
792
- id: string;
793
- companyId: string;
794
- storeId: string;
795
- tag: string;
796
- locales: {
797
- lang: string;
798
- value: string;
799
- }[];
800
- depth: number;
801
- parentId?: string | null | undefined;
802
- } & any)[];
803
- }>, "many">;
804
- categories: z.ZodObject<{
805
- lvl0: z.ZodArray<z.ZodString, "many">;
806
- lvl1: z.ZodArray<z.ZodString, "many">;
807
- lvl2: z.ZodArray<z.ZodString, "many">;
808
- lvl3: z.ZodArray<z.ZodString, "many">;
809
- lvl4: z.ZodArray<z.ZodString, "many">;
810
- }, "strip", z.ZodTypeAny, {
811
- lvl0: string[];
812
- lvl1: string[];
813
- lvl2: string[];
814
- lvl3: string[];
815
- lvl4: string[];
816
- }, {
817
- lvl0: string[];
818
- lvl1: string[];
819
- lvl2: string[];
820
- lvl3: string[];
821
- lvl4: string[];
822
- }>;
823
- categoryNames: z.ZodArray<z.ZodString, "many">;
824
- }, {
825
- image: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
826
- }>, "strip", z.ZodTypeAny, {
827
- type: "Product";
828
- id: string;
829
- companyId: string;
830
- storeId: string;
831
- objectID: string;
832
- sku: string;
833
- name: {
834
- lang: string;
835
- value: string;
836
- }[];
837
- description: {
838
- lang: string;
839
- value: string;
840
- }[];
841
- isPublished: boolean;
842
- vat: boolean;
843
- priceType: {
844
- value: number;
845
- type: "unit" | "kg" | "gram" | "liter" | "ml";
846
- };
847
- price: number;
848
- currency: "ILS";
849
- discount: {
850
- value: number;
851
- type: "number" | "percent" | "none";
852
- };
853
- weight: {
854
- value: number;
855
- unit: "kg" | "gram" | "none";
856
- };
857
- volume: {
858
- value: number;
859
- unit: "liter" | "ml" | "none";
860
- };
861
- images: {
862
- id: string;
863
- url: string;
864
- }[];
865
- manufacturer: string;
866
- brand: string;
867
- importer: string;
868
- supplier: string;
869
- ingredients: {
870
- lang: string;
871
- value: string;
872
- }[];
873
- created_at: number;
874
- updated_at: number;
875
- categoryList: ({
876
- id: string;
877
- companyId: string;
878
- storeId: string;
879
- tag: string;
880
- locales: {
881
- lang: string;
882
- value: string;
883
- }[];
884
- depth: number;
885
- parentId?: string | null | undefined;
886
- } & {
887
- children: ({
888
- id: string;
889
- companyId: string;
890
- storeId: string;
891
- tag: string;
892
- locales: {
893
- lang: string;
894
- value: string;
895
- }[];
896
- depth: number;
897
- parentId?: string | null | undefined;
898
- } & any)[];
899
- })[];
900
- categories: {
901
- lvl0: string[];
902
- lvl1: string[];
903
- lvl2: string[];
904
- lvl3: string[];
905
- lvl4: string[];
906
- };
907
- categoryNames: string[];
908
- purchasePrice?: number | undefined;
909
- profitPercentage?: number | undefined;
910
- image?: File | undefined;
911
- }, {
912
- type: "Product";
913
- id: string;
914
- companyId: string;
915
- storeId: string;
916
- objectID: string;
917
- sku: string;
918
- name: {
919
- lang: string;
920
- value: string;
921
- }[];
922
- description: {
923
- lang: string;
924
- value: string;
925
- }[];
926
- isPublished: boolean;
927
- vat: boolean;
928
- priceType: {
929
- value: number;
930
- type: "unit" | "kg" | "gram" | "liter" | "ml";
931
- };
932
- price: number;
933
- currency: "ILS";
934
- discount: {
935
- value: number;
936
- type: "number" | "percent" | "none";
937
- };
938
- weight: {
939
- value: number;
940
- unit: "kg" | "gram" | "none";
941
- };
942
- volume: {
943
- value: number;
944
- unit: "liter" | "ml" | "none";
945
- };
946
- images: {
947
- id: string;
948
- url: string;
949
- }[];
950
- manufacturer: string;
951
- brand: string;
952
- importer: string;
953
- supplier: string;
954
- ingredients: {
955
- lang: string;
956
- value: string;
957
- }[];
958
- created_at: number;
959
- updated_at: number;
960
- categoryList: ({
961
- id: string;
962
- companyId: string;
963
- storeId: string;
964
- tag: string;
965
- locales: {
966
- lang: string;
967
- value: string;
968
- }[];
969
- depth: number;
970
- parentId?: string | null | undefined;
971
- } & {
972
- children: ({
973
- id: string;
974
- companyId: string;
975
- storeId: string;
976
- tag: string;
977
- locales: {
978
- lang: string;
979
- value: string;
980
- }[];
981
- depth: number;
982
- parentId?: string | null | undefined;
983
- } & any)[];
984
- })[];
985
- categories: {
986
- lvl0: string[];
987
- lvl1: string[];
988
- lvl2: string[];
989
- lvl3: string[];
990
- lvl4: string[];
991
- };
992
- categoryNames: string[];
993
- purchasePrice?: number | undefined;
994
- profitPercentage?: number | undefined;
995
- image?: File | undefined;
996
- }>;
997
- export type TNewProduct = z.infer<typeof NewProductSchema>;
998
- export type TEditProduct = z.infer<typeof EditProductSchema>;
999
- export type TProduct = z.infer<typeof ProductSchema>;
1000
- //# sourceMappingURL=Product.d.ts.map