@jsdev_ninja/core 0.13.25 → 0.13.27

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 (111) hide show
  1. package/lib/entities/Address.ts +7 -7
  2. package/lib/entities/Order.ts +1 -0
  3. package/lib/entities/Store.ts +3 -0
  4. package/package.json +2 -2
  5. package/dist/core.cjs.js +0 -2
  6. package/dist/core.cjs.js.map +0 -1
  7. package/dist/core.es.js +0 -3610
  8. package/dist/core.es.js.map +0 -1
  9. package/dist/core.umd.js +0 -2
  10. package/dist/core.umd.js.map +0 -1
  11. package/dist/lib/entities/Address.d.ts +0 -28
  12. package/dist/lib/entities/Address.d.ts.map +0 -1
  13. package/dist/lib/entities/Address.js +0 -10
  14. package/dist/lib/entities/Atoms.d.ts +0 -16
  15. package/dist/lib/entities/Atoms.d.ts.map +0 -1
  16. package/dist/lib/entities/Atoms.js +0 -7
  17. package/dist/lib/entities/Cart.d.ts +0 -1278
  18. package/dist/lib/entities/Cart.d.ts.map +0 -1
  19. package/dist/lib/entities/Cart.js +0 -18
  20. package/dist/lib/entities/Category.d.ts +0 -103
  21. package/dist/lib/entities/Category.d.ts.map +0 -1
  22. package/dist/lib/entities/Category.js +0 -20
  23. package/dist/lib/entities/Company.d.ts +0 -16
  24. package/dist/lib/entities/Company.d.ts.map +0 -1
  25. package/dist/lib/entities/Company.js +0 -6
  26. package/dist/lib/entities/DeliveryNote.d.ts +0 -248
  27. package/dist/lib/entities/DeliveryNote.d.ts.map +0 -1
  28. package/dist/lib/entities/DeliveryNote.js +0 -61
  29. package/dist/lib/entities/Discount/__tests__/engine.test.d.ts +0 -2
  30. package/dist/lib/entities/Discount/__tests__/engine.test.d.ts.map +0 -1
  31. package/dist/lib/entities/Discount/__tests__/engine.test.js +0 -298
  32. package/dist/lib/entities/Discount/__tests__/factory.test.d.ts +0 -2
  33. package/dist/lib/entities/Discount/__tests__/factory.test.d.ts.map +0 -1
  34. package/dist/lib/entities/Discount/__tests__/factory.test.js +0 -75
  35. package/dist/lib/entities/Discount/__tests__/integration.test.d.ts +0 -2
  36. package/dist/lib/entities/Discount/__tests__/integration.test.d.ts.map +0 -1
  37. package/dist/lib/entities/Discount/__tests__/integration.test.js +0 -115
  38. package/dist/lib/entities/Discount/__tests__/simple.test.d.ts +0 -2
  39. package/dist/lib/entities/Discount/__tests__/simple.test.d.ts.map +0 -1
  40. package/dist/lib/entities/Discount/__tests__/simple.test.js +0 -186
  41. package/dist/lib/entities/Discount/__tests__/utils.test.d.ts +0 -2
  42. package/dist/lib/entities/Discount/__tests__/utils.test.d.ts.map +0 -1
  43. package/dist/lib/entities/Discount/__tests__/utils.test.js +0 -55
  44. package/dist/lib/entities/Discount/engine.d.ts +0 -29
  45. package/dist/lib/entities/Discount/engine.d.ts.map +0 -1
  46. package/dist/lib/entities/Discount/engine.js +0 -85
  47. package/dist/lib/entities/Discount/factory.d.ts +0 -10
  48. package/dist/lib/entities/Discount/factory.d.ts.map +0 -1
  49. package/dist/lib/entities/Discount/factory.js +0 -18
  50. package/dist/lib/entities/Discount/index.d.ts +0 -9
  51. package/dist/lib/entities/Discount/index.d.ts.map +0 -1
  52. package/dist/lib/entities/Discount/index.js +0 -8
  53. package/dist/lib/entities/Discount/strategies/BundleStrategy.d.ts +0 -12
  54. package/dist/lib/entities/Discount/strategies/BundleStrategy.d.ts.map +0 -1
  55. package/dist/lib/entities/Discount/strategies/BundleStrategy.js +0 -78
  56. package/dist/lib/entities/Discount/strategies/__tests__/BundleStrategy.test.d.ts +0 -2
  57. package/dist/lib/entities/Discount/strategies/__tests__/BundleStrategy.test.d.ts.map +0 -1
  58. package/dist/lib/entities/Discount/strategies/__tests__/BundleStrategy.test.js +0 -265
  59. package/dist/lib/entities/Discount/strategy.d.ts +0 -6
  60. package/dist/lib/entities/Discount/strategy.d.ts.map +0 -1
  61. package/dist/lib/entities/Discount/strategy.js +0 -1
  62. package/dist/lib/entities/Discount/types.d.ts +0 -148
  63. package/dist/lib/entities/Discount/types.d.ts.map +0 -1
  64. package/dist/lib/entities/Discount/types.js +0 -29
  65. package/dist/lib/entities/Discount/utils.d.ts +0 -29
  66. package/dist/lib/entities/Discount/utils.d.ts.map +0 -1
  67. package/dist/lib/entities/Discount/utils.js +0 -39
  68. package/dist/lib/entities/FavoriteProduct.d.ts +0 -25
  69. package/dist/lib/entities/FavoriteProduct.d.ts.map +0 -1
  70. package/dist/lib/entities/FavoriteProduct.js +0 -9
  71. package/dist/lib/entities/Invoice.d.ts +0 -210
  72. package/dist/lib/entities/Invoice.d.ts.map +0 -1
  73. package/dist/lib/entities/Invoice.js +0 -49
  74. package/dist/lib/entities/Locale.d.ts +0 -22
  75. package/dist/lib/entities/Locale.d.ts.map +0 -1
  76. package/dist/lib/entities/Locale.js +0 -6
  77. package/dist/lib/entities/Order.d.ts +0 -1803
  78. package/dist/lib/entities/Order.d.ts.map +0 -1
  79. package/dist/lib/entities/Order.js +0 -61
  80. package/dist/lib/entities/Organization.d.ts +0 -100
  81. package/dist/lib/entities/Organization.d.ts.map +0 -1
  82. package/dist/lib/entities/Organization.js +0 -16
  83. package/dist/lib/entities/Product.d.ts +0 -694
  84. package/dist/lib/entities/Product.d.ts.map +0 -1
  85. package/dist/lib/entities/Product.js +0 -61
  86. package/dist/lib/entities/Profile.d.ts +0 -98
  87. package/dist/lib/entities/Profile.d.ts.map +0 -1
  88. package/dist/lib/entities/Profile.js +0 -50
  89. package/dist/lib/entities/Store.d.ts +0 -47
  90. package/dist/lib/entities/Store.d.ts.map +0 -1
  91. package/dist/lib/entities/Store.js +0 -17
  92. package/dist/lib/entities/index.d.ts +0 -15
  93. package/dist/lib/entities/index.d.ts.map +0 -1
  94. package/dist/lib/entities/index.js +0 -14
  95. package/dist/lib/firebase-api/app.d.ts +0 -2
  96. package/dist/lib/firebase-api/app.d.ts.map +0 -1
  97. package/dist/lib/firebase-api/app.js +0 -16
  98. package/dist/lib/firebase-api/index.d.ts +0 -75
  99. package/dist/lib/firebase-api/index.d.ts.map +0 -1
  100. package/dist/lib/firebase-api/index.js +0 -33
  101. package/dist/lib/index.d.ts +0 -4
  102. package/dist/lib/index.d.ts.map +0 -1
  103. package/dist/lib/index.js +0 -3
  104. package/dist/lib/utils/index.d.ts +0 -109
  105. package/dist/lib/utils/index.d.ts.map +0 -1
  106. package/dist/lib/utils/index.js +0 -95
  107. package/dist/tsconfig.app.tsbuildinfo +0 -1
  108. package/dist/tsconfig.node.tsbuildinfo +0 -1
  109. package/dist/vite.config.d.ts +0 -3
  110. package/dist/vite.config.d.ts.map +0 -1
  111. package/dist/vite.config.js +0 -25
@@ -1,694 +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.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
- isDiscountable: z.ZodOptional<z.ZodBoolean>;
56
- weight: z.ZodObject<{
57
- value: z.ZodNumber;
58
- unit: z.ZodEnum<["kg", "gram", "none"]>;
59
- }, "strip", z.ZodTypeAny, {
60
- value: number;
61
- unit: "kg" | "gram" | "none";
62
- }, {
63
- value: number;
64
- unit: "kg" | "gram" | "none";
65
- }>;
66
- volume: z.ZodObject<{
67
- value: z.ZodNumber;
68
- unit: z.ZodEnum<["liter", "ml", "none"]>;
69
- }, "strip", z.ZodTypeAny, {
70
- value: number;
71
- unit: "liter" | "ml" | "none";
72
- }, {
73
- value: number;
74
- unit: "liter" | "ml" | "none";
75
- }>;
76
- images: z.ZodArray<z.ZodObject<{
77
- url: z.ZodString;
78
- id: z.ZodString;
79
- }, "strip", z.ZodTypeAny, {
80
- url: string;
81
- id: string;
82
- }, {
83
- url: string;
84
- id: string;
85
- }>, "many">;
86
- manufacturer: z.ZodString;
87
- brand: z.ZodString;
88
- importer: z.ZodString;
89
- supplier: z.ZodString;
90
- ingredients: z.ZodArray<z.ZodObject<{
91
- lang: z.ZodEnum<["he"]>;
92
- value: z.ZodString;
93
- }, "strip", z.ZodTypeAny, {
94
- value: string;
95
- lang: "he";
96
- }, {
97
- value: string;
98
- lang: "he";
99
- }>, "many">;
100
- created_at: z.ZodNumber;
101
- updated_at: z.ZodNumber;
102
- categoryIds: z.ZodArray<z.ZodString, "many">;
103
- categoryList: z.ZodOptional<z.ZodArray<z.ZodType<{
104
- id: string;
105
- companyId: string;
106
- storeId: string;
107
- locales: {
108
- value: string;
109
- lang: "he";
110
- }[];
111
- depth: number;
112
- parentId?: string | null | undefined;
113
- tag?: string | undefined;
114
- } & {
115
- children: ({
116
- id: string;
117
- companyId: string;
118
- storeId: string;
119
- locales: {
120
- value: string;
121
- lang: "he";
122
- }[];
123
- depth: number;
124
- parentId?: string | null | undefined;
125
- tag?: string | undefined;
126
- } & /*elided*/ any)[];
127
- }, z.ZodTypeDef, {
128
- id: string;
129
- companyId: string;
130
- storeId: string;
131
- locales: {
132
- value: string;
133
- lang: "he";
134
- }[];
135
- depth: number;
136
- parentId?: string | null | undefined;
137
- tag?: string | undefined;
138
- } & {
139
- children: ({
140
- id: string;
141
- companyId: string;
142
- storeId: string;
143
- locales: {
144
- value: string;
145
- lang: "he";
146
- }[];
147
- depth: number;
148
- parentId?: string | null | undefined;
149
- tag?: string | undefined;
150
- } & /*elided*/ any)[];
151
- }>, "many">>;
152
- categories: z.ZodOptional<z.ZodObject<{
153
- lvl0: z.ZodArray<z.ZodString, "many">;
154
- lvl1: z.ZodArray<z.ZodString, "many">;
155
- lvl2: z.ZodArray<z.ZodString, "many">;
156
- lvl3: z.ZodArray<z.ZodString, "many">;
157
- lvl4: z.ZodArray<z.ZodString, "many">;
158
- }, "strip", z.ZodTypeAny, {
159
- lvl0: string[];
160
- lvl1: string[];
161
- lvl2: string[];
162
- lvl3: string[];
163
- lvl4: string[];
164
- }, {
165
- lvl0: string[];
166
- lvl1: string[];
167
- lvl2: string[];
168
- lvl3: string[];
169
- lvl4: string[];
170
- }>>;
171
- categoryNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
172
- }, "strip", z.ZodTypeAny, {
173
- type: "Product";
174
- id: string;
175
- companyId: string;
176
- storeId: string;
177
- objectID: string;
178
- sku: string;
179
- name: {
180
- value: string;
181
- lang: "he";
182
- }[];
183
- description: {
184
- value: string;
185
- lang: "he";
186
- }[];
187
- isPublished: boolean;
188
- vat: boolean;
189
- priceType: {
190
- value: number;
191
- type: "unit" | "kg" | "gram" | "liter" | "ml";
192
- };
193
- price: number;
194
- currency: "ILS";
195
- discount: {
196
- value: number;
197
- type: "number" | "percent" | "none";
198
- };
199
- weight: {
200
- value: number;
201
- unit: "kg" | "gram" | "none";
202
- };
203
- volume: {
204
- value: number;
205
- unit: "liter" | "ml" | "none";
206
- };
207
- images: {
208
- url: string;
209
- id: string;
210
- }[];
211
- manufacturer: string;
212
- brand: string;
213
- importer: string;
214
- supplier: string;
215
- ingredients: {
216
- value: string;
217
- lang: "he";
218
- }[];
219
- created_at: number;
220
- updated_at: number;
221
- categoryIds: string[];
222
- purchasePrice?: number | undefined;
223
- profitPercentage?: number | undefined;
224
- isDiscountable?: boolean | undefined;
225
- categoryList?: ({
226
- id: string;
227
- companyId: string;
228
- storeId: string;
229
- locales: {
230
- value: string;
231
- lang: "he";
232
- }[];
233
- depth: number;
234
- parentId?: string | null | undefined;
235
- tag?: string | undefined;
236
- } & {
237
- children: ({
238
- id: string;
239
- companyId: string;
240
- storeId: string;
241
- locales: {
242
- value: string;
243
- lang: "he";
244
- }[];
245
- depth: number;
246
- parentId?: string | null | undefined;
247
- tag?: string | undefined;
248
- } & /*elided*/ any)[];
249
- })[] | undefined;
250
- categories?: {
251
- lvl0: string[];
252
- lvl1: string[];
253
- lvl2: string[];
254
- lvl3: string[];
255
- lvl4: string[];
256
- } | undefined;
257
- categoryNames?: string[] | undefined;
258
- }, {
259
- type: "Product";
260
- id: string;
261
- companyId: string;
262
- storeId: string;
263
- objectID: string;
264
- sku: string;
265
- name: {
266
- value: string;
267
- lang: "he";
268
- }[];
269
- description: {
270
- value: string;
271
- lang: "he";
272
- }[];
273
- isPublished: boolean;
274
- vat: boolean;
275
- priceType: {
276
- value: number;
277
- type: "unit" | "kg" | "gram" | "liter" | "ml";
278
- };
279
- price: number;
280
- currency: "ILS";
281
- discount: {
282
- value: number;
283
- type: "number" | "percent" | "none";
284
- };
285
- weight: {
286
- value: number;
287
- unit: "kg" | "gram" | "none";
288
- };
289
- volume: {
290
- value: number;
291
- unit: "liter" | "ml" | "none";
292
- };
293
- images: {
294
- url: string;
295
- id: string;
296
- }[];
297
- manufacturer: string;
298
- brand: string;
299
- importer: string;
300
- supplier: string;
301
- ingredients: {
302
- value: string;
303
- lang: "he";
304
- }[];
305
- created_at: number;
306
- updated_at: number;
307
- categoryIds: string[];
308
- purchasePrice?: number | undefined;
309
- profitPercentage?: number | undefined;
310
- isDiscountable?: boolean | undefined;
311
- categoryList?: ({
312
- id: string;
313
- companyId: string;
314
- storeId: string;
315
- locales: {
316
- value: string;
317
- lang: "he";
318
- }[];
319
- depth: number;
320
- parentId?: string | null | undefined;
321
- tag?: string | undefined;
322
- } & {
323
- children: ({
324
- id: string;
325
- companyId: string;
326
- storeId: string;
327
- locales: {
328
- value: string;
329
- lang: "he";
330
- }[];
331
- depth: number;
332
- parentId?: string | null | undefined;
333
- tag?: string | undefined;
334
- } & /*elided*/ any)[];
335
- })[] | undefined;
336
- categories?: {
337
- lvl0: string[];
338
- lvl1: string[];
339
- lvl2: string[];
340
- lvl3: string[];
341
- lvl4: string[];
342
- } | undefined;
343
- categoryNames?: string[] | undefined;
344
- }>;
345
- export type TProduct = z.infer<typeof ProductSchema>;
346
- export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<{
347
- type: z.ZodLiteral<"Product">;
348
- storeId: z.ZodString;
349
- companyId: z.ZodString;
350
- id: z.ZodString;
351
- objectID: z.ZodString;
352
- sku: z.ZodString;
353
- name: z.ZodArray<z.ZodObject<{
354
- lang: z.ZodEnum<["he"]>;
355
- value: z.ZodString;
356
- }, "strip", z.ZodTypeAny, {
357
- value: string;
358
- lang: "he";
359
- }, {
360
- value: string;
361
- lang: "he";
362
- }>, "many">;
363
- description: z.ZodArray<z.ZodObject<{
364
- lang: z.ZodEnum<["he"]>;
365
- value: z.ZodString;
366
- }, "strip", z.ZodTypeAny, {
367
- value: string;
368
- lang: "he";
369
- }, {
370
- value: string;
371
- lang: "he";
372
- }>, "many">;
373
- isPublished: z.ZodBoolean;
374
- vat: z.ZodBoolean;
375
- priceType: z.ZodObject<{
376
- type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
377
- value: z.ZodNumber;
378
- }, "strip", z.ZodTypeAny, {
379
- value: number;
380
- type: "unit" | "kg" | "gram" | "liter" | "ml";
381
- }, {
382
- value: number;
383
- type: "unit" | "kg" | "gram" | "liter" | "ml";
384
- }>;
385
- price: z.ZodNumber;
386
- purchasePrice: z.ZodOptional<z.ZodNumber>;
387
- profitPercentage: z.ZodOptional<z.ZodNumber>;
388
- currency: z.ZodLiteral<"ILS">;
389
- discount: z.ZodObject<{
390
- type: z.ZodEnum<["number", "percent", "none"]>;
391
- value: z.ZodNumber;
392
- }, "strip", z.ZodTypeAny, {
393
- value: number;
394
- type: "number" | "percent" | "none";
395
- }, {
396
- value: number;
397
- type: "number" | "percent" | "none";
398
- }>;
399
- isDiscountable: z.ZodOptional<z.ZodBoolean>;
400
- weight: z.ZodObject<{
401
- value: z.ZodNumber;
402
- unit: z.ZodEnum<["kg", "gram", "none"]>;
403
- }, "strip", z.ZodTypeAny, {
404
- value: number;
405
- unit: "kg" | "gram" | "none";
406
- }, {
407
- value: number;
408
- unit: "kg" | "gram" | "none";
409
- }>;
410
- volume: z.ZodObject<{
411
- value: z.ZodNumber;
412
- unit: z.ZodEnum<["liter", "ml", "none"]>;
413
- }, "strip", z.ZodTypeAny, {
414
- value: number;
415
- unit: "liter" | "ml" | "none";
416
- }, {
417
- value: number;
418
- unit: "liter" | "ml" | "none";
419
- }>;
420
- images: z.ZodArray<z.ZodObject<{
421
- url: z.ZodString;
422
- id: z.ZodString;
423
- }, "strip", z.ZodTypeAny, {
424
- url: string;
425
- id: string;
426
- }, {
427
- url: string;
428
- id: string;
429
- }>, "many">;
430
- manufacturer: z.ZodString;
431
- brand: z.ZodString;
432
- importer: z.ZodString;
433
- supplier: z.ZodString;
434
- ingredients: z.ZodArray<z.ZodObject<{
435
- lang: z.ZodEnum<["he"]>;
436
- value: z.ZodString;
437
- }, "strip", z.ZodTypeAny, {
438
- value: string;
439
- lang: "he";
440
- }, {
441
- value: string;
442
- lang: "he";
443
- }>, "many">;
444
- created_at: z.ZodNumber;
445
- updated_at: z.ZodNumber;
446
- categoryIds: z.ZodArray<z.ZodString, "many">;
447
- categoryList: z.ZodOptional<z.ZodArray<z.ZodType<{
448
- id: string;
449
- companyId: string;
450
- storeId: string;
451
- locales: {
452
- value: string;
453
- lang: "he";
454
- }[];
455
- depth: number;
456
- parentId?: string | null | undefined;
457
- tag?: string | undefined;
458
- } & {
459
- children: ({
460
- id: string;
461
- companyId: string;
462
- storeId: string;
463
- locales: {
464
- value: string;
465
- lang: "he";
466
- }[];
467
- depth: number;
468
- parentId?: string | null | undefined;
469
- tag?: string | undefined;
470
- } & /*elided*/ any)[];
471
- }, z.ZodTypeDef, {
472
- id: string;
473
- companyId: string;
474
- storeId: string;
475
- locales: {
476
- value: string;
477
- lang: "he";
478
- }[];
479
- depth: number;
480
- parentId?: string | null | undefined;
481
- tag?: string | undefined;
482
- } & {
483
- children: ({
484
- id: string;
485
- companyId: string;
486
- storeId: string;
487
- locales: {
488
- value: string;
489
- lang: "he";
490
- }[];
491
- depth: number;
492
- parentId?: string | null | undefined;
493
- tag?: string | undefined;
494
- } & /*elided*/ any)[];
495
- }>, "many">>;
496
- categories: z.ZodOptional<z.ZodObject<{
497
- lvl0: z.ZodArray<z.ZodString, "many">;
498
- lvl1: z.ZodArray<z.ZodString, "many">;
499
- lvl2: z.ZodArray<z.ZodString, "many">;
500
- lvl3: z.ZodArray<z.ZodString, "many">;
501
- lvl4: z.ZodArray<z.ZodString, "many">;
502
- }, "strip", z.ZodTypeAny, {
503
- lvl0: string[];
504
- lvl1: string[];
505
- lvl2: string[];
506
- lvl3: string[];
507
- lvl4: string[];
508
- }, {
509
- lvl0: string[];
510
- lvl1: string[];
511
- lvl2: string[];
512
- lvl3: string[];
513
- lvl4: string[];
514
- }>>;
515
- categoryNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
516
- }, {
517
- image: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
518
- }>, "strip", z.ZodTypeAny, {
519
- type: "Product";
520
- id: string;
521
- companyId: string;
522
- storeId: string;
523
- objectID: string;
524
- sku: string;
525
- name: {
526
- value: string;
527
- lang: "he";
528
- }[];
529
- description: {
530
- value: string;
531
- lang: "he";
532
- }[];
533
- isPublished: boolean;
534
- vat: boolean;
535
- priceType: {
536
- value: number;
537
- type: "unit" | "kg" | "gram" | "liter" | "ml";
538
- };
539
- price: number;
540
- currency: "ILS";
541
- discount: {
542
- value: number;
543
- type: "number" | "percent" | "none";
544
- };
545
- weight: {
546
- value: number;
547
- unit: "kg" | "gram" | "none";
548
- };
549
- volume: {
550
- value: number;
551
- unit: "liter" | "ml" | "none";
552
- };
553
- images: {
554
- url: string;
555
- id: string;
556
- }[];
557
- manufacturer: string;
558
- brand: string;
559
- importer: string;
560
- supplier: string;
561
- ingredients: {
562
- value: string;
563
- lang: "he";
564
- }[];
565
- created_at: number;
566
- updated_at: number;
567
- categoryIds: string[];
568
- purchasePrice?: number | undefined;
569
- profitPercentage?: number | undefined;
570
- isDiscountable?: boolean | undefined;
571
- categoryList?: ({
572
- id: string;
573
- companyId: string;
574
- storeId: string;
575
- locales: {
576
- value: string;
577
- lang: "he";
578
- }[];
579
- depth: number;
580
- parentId?: string | null | undefined;
581
- tag?: string | undefined;
582
- } & {
583
- children: ({
584
- id: string;
585
- companyId: string;
586
- storeId: string;
587
- locales: {
588
- value: string;
589
- lang: "he";
590
- }[];
591
- depth: number;
592
- parentId?: string | null | undefined;
593
- tag?: string | undefined;
594
- } & /*elided*/ any)[];
595
- })[] | undefined;
596
- categories?: {
597
- lvl0: string[];
598
- lvl1: string[];
599
- lvl2: string[];
600
- lvl3: string[];
601
- lvl4: string[];
602
- } | undefined;
603
- categoryNames?: string[] | undefined;
604
- image?: File | undefined;
605
- }, {
606
- type: "Product";
607
- id: string;
608
- companyId: string;
609
- storeId: string;
610
- objectID: string;
611
- sku: string;
612
- name: {
613
- value: string;
614
- lang: "he";
615
- }[];
616
- description: {
617
- value: string;
618
- lang: "he";
619
- }[];
620
- isPublished: boolean;
621
- vat: boolean;
622
- priceType: {
623
- value: number;
624
- type: "unit" | "kg" | "gram" | "liter" | "ml";
625
- };
626
- price: number;
627
- currency: "ILS";
628
- discount: {
629
- value: number;
630
- type: "number" | "percent" | "none";
631
- };
632
- weight: {
633
- value: number;
634
- unit: "kg" | "gram" | "none";
635
- };
636
- volume: {
637
- value: number;
638
- unit: "liter" | "ml" | "none";
639
- };
640
- images: {
641
- url: string;
642
- id: string;
643
- }[];
644
- manufacturer: string;
645
- brand: string;
646
- importer: string;
647
- supplier: string;
648
- ingredients: {
649
- value: string;
650
- lang: "he";
651
- }[];
652
- created_at: number;
653
- updated_at: number;
654
- categoryIds: string[];
655
- purchasePrice?: number | undefined;
656
- profitPercentage?: number | undefined;
657
- isDiscountable?: boolean | undefined;
658
- categoryList?: ({
659
- id: string;
660
- companyId: string;
661
- storeId: string;
662
- locales: {
663
- value: string;
664
- lang: "he";
665
- }[];
666
- depth: number;
667
- parentId?: string | null | undefined;
668
- tag?: string | undefined;
669
- } & {
670
- children: ({
671
- id: string;
672
- companyId: string;
673
- storeId: string;
674
- locales: {
675
- value: string;
676
- lang: "he";
677
- }[];
678
- depth: number;
679
- parentId?: string | null | undefined;
680
- tag?: string | undefined;
681
- } & /*elided*/ any)[];
682
- })[] | undefined;
683
- categories?: {
684
- lvl0: string[];
685
- lvl1: string[];
686
- lvl2: string[];
687
- lvl3: string[];
688
- lvl4: string[];
689
- } | undefined;
690
- categoryNames?: string[] | undefined;
691
- image?: File | undefined;
692
- }>;
693
- export type TNewProduct = z.infer<typeof NewProductSchema>;
694
- //# sourceMappingURL=Product.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../../lib/entities/Product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDxB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAErD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}