@jsdev_ninja/core 0.8.49 → 0.8.51

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 (63) hide show
  1. package/dist/core.cjs.js +1 -1
  2. package/dist/core.cjs.js.map +1 -0
  3. package/dist/core.es.js +3422 -0
  4. package/dist/core.es.js.map +1 -0
  5. package/dist/core.umd.js +2 -0
  6. package/dist/core.umd.js.map +1 -0
  7. package/dist/entities/Address.d.ts +28 -0
  8. package/dist/entities/Address.d.ts.map +1 -0
  9. package/dist/entities/Address.js +10 -0
  10. package/dist/entities/Atoms.d.ts +5 -0
  11. package/dist/entities/Atoms.d.ts.map +1 -0
  12. package/dist/entities/Atoms.js +5 -0
  13. package/dist/entities/Cart.d.ts +715 -0
  14. package/dist/entities/Cart.d.ts.map +1 -0
  15. package/dist/entities/Cart.js +14 -0
  16. package/dist/entities/Category.d.ts +103 -0
  17. package/dist/entities/Category.d.ts.map +1 -0
  18. package/dist/entities/Category.js +20 -0
  19. package/dist/entities/Company.d.ts +48 -0
  20. package/dist/entities/Company.d.ts.map +1 -0
  21. package/dist/entities/Company.js +12 -0
  22. package/dist/entities/FavoriteProduct.d.ts +25 -0
  23. package/dist/entities/FavoriteProduct.d.ts.map +1 -0
  24. package/dist/entities/FavoriteProduct.js +9 -0
  25. package/dist/entities/Locale.d.ts +22 -0
  26. package/dist/entities/Locale.d.ts.map +1 -0
  27. package/dist/entities/Locale.js +6 -0
  28. package/dist/entities/Order.d.ts +1084 -0
  29. package/dist/entities/Order.d.ts.map +1 -0
  30. package/dist/entities/Order.js +38 -0
  31. package/dist/entities/Payment.d.ts +368 -0
  32. package/dist/entities/Payment.d.ts.map +1 -0
  33. package/dist/entities/Payment.js +108 -0
  34. package/dist/entities/Product.d.ts +1000 -0
  35. package/dist/entities/Product.d.ts.map +1 -0
  36. package/dist/entities/Product.js +64 -0
  37. package/dist/entities/Profile.d.ts +102 -0
  38. package/dist/entities/Profile.d.ts.map +1 -0
  39. package/dist/entities/Profile.js +45 -0
  40. package/dist/entities/Store.d.ts +62 -0
  41. package/dist/entities/Store.d.ts.map +1 -0
  42. package/dist/entities/Store.js +20 -0
  43. package/dist/entities/index.d.ts +13 -0
  44. package/dist/entities/index.d.ts.map +1 -0
  45. package/dist/entities/index.js +12 -0
  46. package/dist/firebase-api/index.d.ts +37 -0
  47. package/dist/firebase-api/index.d.ts.map +1 -0
  48. package/dist/firebase-api/index.js +23 -0
  49. package/dist/hypPaymentService/index.d.ts +33 -0
  50. package/dist/hypPaymentService/index.d.ts.map +1 -0
  51. package/dist/hypPaymentService/index.js +100 -0
  52. package/dist/index.d.ts +4 -0
  53. package/dist/index.d.ts.map +1 -0
  54. package/dist/index.js +3 -0
  55. package/dist/tsconfig.app.tsbuildinfo +1 -0
  56. package/dist/tsconfig.node.tsbuildinfo +1 -0
  57. package/dist/vite.config.d.ts +3 -0
  58. package/dist/vite.config.d.ts.map +1 -0
  59. package/dist/vite.config.js +25 -0
  60. package/lib/entities/Order.ts +3 -1
  61. package/lib/entities/Payment.ts +1 -0
  62. package/lib/hypPaymentService/index.ts +2 -0
  63. package/package.json +1 -1
@@ -0,0 +1,1000 @@
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.ZodEnum<["he"]>;
11
+ value: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ value: string;
14
+ lang: "he";
15
+ }, {
16
+ value: string;
17
+ lang: "he";
18
+ }>, "many">;
19
+ description: z.ZodArray<z.ZodObject<{
20
+ lang: z.ZodEnum<["he"]>;
21
+ value: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ value: string;
24
+ lang: "he";
25
+ }, {
26
+ value: string;
27
+ lang: "he";
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.ZodEnum<["he"]>;
91
+ value: z.ZodString;
92
+ }, "strip", z.ZodTypeAny, {
93
+ value: string;
94
+ lang: "he";
95
+ }, {
96
+ value: string;
97
+ lang: "he";
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
+ value: string;
108
+ lang: "he";
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
+ value: string;
120
+ lang: "he";
121
+ }[];
122
+ depth: number;
123
+ parentId?: string | null | undefined;
124
+ } & /*elided*/ any)[];
125
+ }, z.ZodTypeDef, {
126
+ id: string;
127
+ companyId: string;
128
+ storeId: string;
129
+ tag: string;
130
+ locales: {
131
+ value: string;
132
+ lang: "he";
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
+ value: string;
144
+ lang: "he";
145
+ }[];
146
+ depth: number;
147
+ parentId?: string | null | undefined;
148
+ } & /*elided*/ 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
+ value: string;
179
+ lang: "he";
180
+ }[];
181
+ description: {
182
+ value: string;
183
+ lang: "he";
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
+ value: string;
215
+ lang: "he";
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
+ value: string;
226
+ lang: "he";
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
+ value: string;
238
+ lang: "he";
239
+ }[];
240
+ depth: number;
241
+ parentId?: string | null | undefined;
242
+ } & /*elided*/ 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
+ value: string;
263
+ lang: "he";
264
+ }[];
265
+ description: {
266
+ value: string;
267
+ lang: "he";
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
+ value: string;
299
+ lang: "he";
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
+ value: string;
310
+ lang: "he";
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
+ value: string;
322
+ lang: "he";
323
+ }[];
324
+ depth: number;
325
+ parentId?: string | null | undefined;
326
+ } & /*elided*/ 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.ZodEnum<["he"]>;
348
+ value: z.ZodString;
349
+ }, "strip", z.ZodTypeAny, {
350
+ value: string;
351
+ lang: "he";
352
+ }, {
353
+ value: string;
354
+ lang: "he";
355
+ }>, "many">;
356
+ description: z.ZodArray<z.ZodObject<{
357
+ lang: z.ZodEnum<["he"]>;
358
+ value: z.ZodString;
359
+ }, "strip", z.ZodTypeAny, {
360
+ value: string;
361
+ lang: "he";
362
+ }, {
363
+ value: string;
364
+ lang: "he";
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.ZodEnum<["he"]>;
428
+ value: z.ZodString;
429
+ }, "strip", z.ZodTypeAny, {
430
+ value: string;
431
+ lang: "he";
432
+ }, {
433
+ value: string;
434
+ lang: "he";
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
+ value: string;
445
+ lang: "he";
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
+ value: string;
457
+ lang: "he";
458
+ }[];
459
+ depth: number;
460
+ parentId?: string | null | undefined;
461
+ } & /*elided*/ any)[];
462
+ }, z.ZodTypeDef, {
463
+ id: string;
464
+ companyId: string;
465
+ storeId: string;
466
+ tag: string;
467
+ locales: {
468
+ value: string;
469
+ lang: "he";
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
+ value: string;
481
+ lang: "he";
482
+ }[];
483
+ depth: number;
484
+ parentId?: string | null | undefined;
485
+ } & /*elided*/ 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
+ value: string;
517
+ lang: "he";
518
+ }[];
519
+ description: {
520
+ value: string;
521
+ lang: "he";
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
+ value: string;
549
+ lang: "he";
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
+ value: string;
560
+ lang: "he";
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
+ value: string;
572
+ lang: "he";
573
+ }[];
574
+ depth: number;
575
+ parentId?: string | null | undefined;
576
+ } & /*elided*/ 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
+ value: string;
590
+ lang: "he";
591
+ }[];
592
+ description: {
593
+ value: string;
594
+ lang: "he";
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
+ value: string;
622
+ lang: "he";
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
+ value: string;
633
+ lang: "he";
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
+ value: string;
645
+ lang: "he";
646
+ }[];
647
+ depth: number;
648
+ parentId?: string | null | undefined;
649
+ } & /*elided*/ 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.ZodEnum<["he"]>;
665
+ value: z.ZodString;
666
+ }, "strip", z.ZodTypeAny, {
667
+ value: string;
668
+ lang: "he";
669
+ }, {
670
+ value: string;
671
+ lang: "he";
672
+ }>, "many">;
673
+ description: z.ZodArray<z.ZodObject<{
674
+ lang: z.ZodEnum<["he"]>;
675
+ value: z.ZodString;
676
+ }, "strip", z.ZodTypeAny, {
677
+ value: string;
678
+ lang: "he";
679
+ }, {
680
+ value: string;
681
+ lang: "he";
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.ZodEnum<["he"]>;
745
+ value: z.ZodString;
746
+ }, "strip", z.ZodTypeAny, {
747
+ value: string;
748
+ lang: "he";
749
+ }, {
750
+ value: string;
751
+ lang: "he";
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
+ value: string;
762
+ lang: "he";
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
+ value: string;
774
+ lang: "he";
775
+ }[];
776
+ depth: number;
777
+ parentId?: string | null | undefined;
778
+ } & /*elided*/ any)[];
779
+ }, z.ZodTypeDef, {
780
+ id: string;
781
+ companyId: string;
782
+ storeId: string;
783
+ tag: string;
784
+ locales: {
785
+ value: string;
786
+ lang: "he";
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
+ value: string;
798
+ lang: "he";
799
+ }[];
800
+ depth: number;
801
+ parentId?: string | null | undefined;
802
+ } & /*elided*/ 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
+ value: string;
835
+ lang: "he";
836
+ }[];
837
+ description: {
838
+ value: string;
839
+ lang: "he";
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
+ value: string;
871
+ lang: "he";
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
+ value: string;
882
+ lang: "he";
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
+ value: string;
894
+ lang: "he";
895
+ }[];
896
+ depth: number;
897
+ parentId?: string | null | undefined;
898
+ } & /*elided*/ 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
+ value: string;
920
+ lang: "he";
921
+ }[];
922
+ description: {
923
+ value: string;
924
+ lang: "he";
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
+ value: string;
956
+ lang: "he";
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
+ value: string;
967
+ lang: "he";
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
+ value: string;
979
+ lang: "he";
980
+ }[];
981
+ depth: number;
982
+ parentId?: string | null | undefined;
983
+ } & /*elided*/ 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