@jsdev_ninja/core 0.7.63 → 0.8.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.
- package/dist/core.cjs.js +1 -1
- package/dist/core.cjs.js.map +1 -1
- package/dist/core.es.js +99 -91
- package/dist/core.es.js.map +1 -1
- package/dist/core.umd.js +1 -1
- package/dist/core.umd.js.map +1 -1
- package/dist/entities/Cart.d.ts +64 -64
- package/dist/entities/Category.d.ts +8 -8
- package/dist/entities/FavoriteProduct.d.ts +25 -0
- package/dist/entities/FavoriteProduct.d.ts.map +1 -0
- package/dist/entities/FavoriteProduct.js +9 -0
- package/dist/entities/Locale.d.ts +2 -2
- package/dist/entities/Order.d.ts +82 -82
- package/dist/entities/Product.d.ts +96 -96
- package/dist/entities/index.d.ts +3 -2
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +3 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/tsconfig.node.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -10,21 +10,21 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
10
10
|
lang: z.ZodString;
|
|
11
11
|
value: z.ZodString;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
lang: string;
|
|
14
13
|
value: string;
|
|
15
|
-
}, {
|
|
16
14
|
lang: string;
|
|
15
|
+
}, {
|
|
17
16
|
value: string;
|
|
17
|
+
lang: string;
|
|
18
18
|
}>, "many">;
|
|
19
19
|
description: z.ZodArray<z.ZodObject<{
|
|
20
20
|
lang: z.ZodString;
|
|
21
21
|
value: z.ZodString;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
lang: string;
|
|
24
23
|
value: string;
|
|
25
|
-
}, {
|
|
26
24
|
lang: string;
|
|
25
|
+
}, {
|
|
27
26
|
value: string;
|
|
27
|
+
lang: string;
|
|
28
28
|
}>, "many">;
|
|
29
29
|
isPublished: z.ZodBoolean;
|
|
30
30
|
vat: z.ZodBoolean;
|
|
@@ -32,11 +32,11 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
32
32
|
type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
|
|
33
33
|
value: z.ZodNumber;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
value: number;
|
|
36
35
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
37
|
-
}, {
|
|
38
36
|
value: number;
|
|
37
|
+
}, {
|
|
39
38
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
39
|
+
value: number;
|
|
40
40
|
}>;
|
|
41
41
|
price: z.ZodNumber;
|
|
42
42
|
purchasePrice: z.ZodOptional<z.ZodNumber>;
|
|
@@ -46,11 +46,11 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
46
46
|
type: z.ZodEnum<["number", "percent", "none"]>;
|
|
47
47
|
value: z.ZodNumber;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
value: number;
|
|
50
49
|
type: "number" | "percent" | "none";
|
|
51
|
-
}, {
|
|
52
50
|
value: number;
|
|
51
|
+
}, {
|
|
53
52
|
type: "number" | "percent" | "none";
|
|
53
|
+
value: number;
|
|
54
54
|
}>;
|
|
55
55
|
weight: z.ZodObject<{
|
|
56
56
|
value: z.ZodNumber;
|
|
@@ -90,11 +90,11 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
90
90
|
lang: z.ZodString;
|
|
91
91
|
value: z.ZodString;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
lang: string;
|
|
94
93
|
value: string;
|
|
95
|
-
}, {
|
|
96
94
|
lang: string;
|
|
95
|
+
}, {
|
|
97
96
|
value: string;
|
|
97
|
+
lang: string;
|
|
98
98
|
}>, "many">;
|
|
99
99
|
created_at: z.ZodNumber;
|
|
100
100
|
updated_at: z.ZodNumber;
|
|
@@ -104,8 +104,8 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
104
104
|
storeId: string;
|
|
105
105
|
tag: string;
|
|
106
106
|
locales: {
|
|
107
|
-
lang: string;
|
|
108
107
|
value: string;
|
|
108
|
+
lang: string;
|
|
109
109
|
}[];
|
|
110
110
|
depth: number;
|
|
111
111
|
parentId?: string | null | undefined;
|
|
@@ -116,20 +116,20 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
116
116
|
storeId: string;
|
|
117
117
|
tag: string;
|
|
118
118
|
locales: {
|
|
119
|
-
lang: string;
|
|
120
119
|
value: string;
|
|
120
|
+
lang: string;
|
|
121
121
|
}[];
|
|
122
122
|
depth: number;
|
|
123
123
|
parentId?: string | null | undefined;
|
|
124
|
-
} & any)[];
|
|
124
|
+
} & /*elided*/ any)[];
|
|
125
125
|
}, z.ZodTypeDef, {
|
|
126
126
|
id: string;
|
|
127
127
|
companyId: string;
|
|
128
128
|
storeId: string;
|
|
129
129
|
tag: string;
|
|
130
130
|
locales: {
|
|
131
|
-
lang: string;
|
|
132
131
|
value: string;
|
|
132
|
+
lang: string;
|
|
133
133
|
}[];
|
|
134
134
|
depth: number;
|
|
135
135
|
parentId?: string | null | undefined;
|
|
@@ -140,12 +140,12 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
140
140
|
storeId: string;
|
|
141
141
|
tag: string;
|
|
142
142
|
locales: {
|
|
143
|
-
lang: string;
|
|
144
143
|
value: string;
|
|
144
|
+
lang: string;
|
|
145
145
|
}[];
|
|
146
146
|
depth: number;
|
|
147
147
|
parentId?: string | null | undefined;
|
|
148
|
-
} & any)[];
|
|
148
|
+
} & /*elided*/ any)[];
|
|
149
149
|
}>, "many">;
|
|
150
150
|
categories: z.ZodObject<{
|
|
151
151
|
lvl0: z.ZodArray<z.ZodString, "many">;
|
|
@@ -175,24 +175,24 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
175
175
|
objectID: string;
|
|
176
176
|
sku: string;
|
|
177
177
|
name: {
|
|
178
|
-
lang: string;
|
|
179
178
|
value: string;
|
|
179
|
+
lang: string;
|
|
180
180
|
}[];
|
|
181
181
|
description: {
|
|
182
|
-
lang: string;
|
|
183
182
|
value: string;
|
|
183
|
+
lang: string;
|
|
184
184
|
}[];
|
|
185
185
|
isPublished: boolean;
|
|
186
186
|
vat: boolean;
|
|
187
187
|
priceType: {
|
|
188
|
-
value: number;
|
|
189
188
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
189
|
+
value: number;
|
|
190
190
|
};
|
|
191
191
|
price: number;
|
|
192
192
|
currency: "ILS";
|
|
193
193
|
discount: {
|
|
194
|
-
value: number;
|
|
195
194
|
type: "number" | "percent" | "none";
|
|
195
|
+
value: number;
|
|
196
196
|
};
|
|
197
197
|
weight: {
|
|
198
198
|
value: number;
|
|
@@ -211,8 +211,8 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
211
211
|
importer: string;
|
|
212
212
|
supplier: string;
|
|
213
213
|
ingredients: {
|
|
214
|
-
lang: string;
|
|
215
214
|
value: string;
|
|
215
|
+
lang: string;
|
|
216
216
|
}[];
|
|
217
217
|
created_at: number;
|
|
218
218
|
updated_at: number;
|
|
@@ -222,8 +222,8 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
222
222
|
storeId: string;
|
|
223
223
|
tag: string;
|
|
224
224
|
locales: {
|
|
225
|
-
lang: string;
|
|
226
225
|
value: string;
|
|
226
|
+
lang: string;
|
|
227
227
|
}[];
|
|
228
228
|
depth: number;
|
|
229
229
|
parentId?: string | null | undefined;
|
|
@@ -234,12 +234,12 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
234
234
|
storeId: string;
|
|
235
235
|
tag: string;
|
|
236
236
|
locales: {
|
|
237
|
-
lang: string;
|
|
238
237
|
value: string;
|
|
238
|
+
lang: string;
|
|
239
239
|
}[];
|
|
240
240
|
depth: number;
|
|
241
241
|
parentId?: string | null | undefined;
|
|
242
|
-
} & any)[];
|
|
242
|
+
} & /*elided*/ any)[];
|
|
243
243
|
})[];
|
|
244
244
|
categories: {
|
|
245
245
|
lvl0: string[];
|
|
@@ -259,24 +259,24 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
259
259
|
objectID: string;
|
|
260
260
|
sku: string;
|
|
261
261
|
name: {
|
|
262
|
-
lang: string;
|
|
263
262
|
value: string;
|
|
263
|
+
lang: string;
|
|
264
264
|
}[];
|
|
265
265
|
description: {
|
|
266
|
-
lang: string;
|
|
267
266
|
value: string;
|
|
267
|
+
lang: string;
|
|
268
268
|
}[];
|
|
269
269
|
isPublished: boolean;
|
|
270
270
|
vat: boolean;
|
|
271
271
|
priceType: {
|
|
272
|
-
value: number;
|
|
273
272
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
273
|
+
value: number;
|
|
274
274
|
};
|
|
275
275
|
price: number;
|
|
276
276
|
currency: "ILS";
|
|
277
277
|
discount: {
|
|
278
|
-
value: number;
|
|
279
278
|
type: "number" | "percent" | "none";
|
|
279
|
+
value: number;
|
|
280
280
|
};
|
|
281
281
|
weight: {
|
|
282
282
|
value: number;
|
|
@@ -295,8 +295,8 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
295
295
|
importer: string;
|
|
296
296
|
supplier: string;
|
|
297
297
|
ingredients: {
|
|
298
|
-
lang: string;
|
|
299
298
|
value: string;
|
|
299
|
+
lang: string;
|
|
300
300
|
}[];
|
|
301
301
|
created_at: number;
|
|
302
302
|
updated_at: number;
|
|
@@ -306,8 +306,8 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
306
306
|
storeId: string;
|
|
307
307
|
tag: string;
|
|
308
308
|
locales: {
|
|
309
|
-
lang: string;
|
|
310
309
|
value: string;
|
|
310
|
+
lang: string;
|
|
311
311
|
}[];
|
|
312
312
|
depth: number;
|
|
313
313
|
parentId?: string | null | undefined;
|
|
@@ -318,12 +318,12 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
318
318
|
storeId: string;
|
|
319
319
|
tag: string;
|
|
320
320
|
locales: {
|
|
321
|
-
lang: string;
|
|
322
321
|
value: string;
|
|
322
|
+
lang: string;
|
|
323
323
|
}[];
|
|
324
324
|
depth: number;
|
|
325
325
|
parentId?: string | null | undefined;
|
|
326
|
-
} & any)[];
|
|
326
|
+
} & /*elided*/ any)[];
|
|
327
327
|
})[];
|
|
328
328
|
categories: {
|
|
329
329
|
lvl0: string[];
|
|
@@ -347,21 +347,21 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
347
347
|
lang: z.ZodString;
|
|
348
348
|
value: z.ZodString;
|
|
349
349
|
}, "strip", z.ZodTypeAny, {
|
|
350
|
-
lang: string;
|
|
351
350
|
value: string;
|
|
352
|
-
}, {
|
|
353
351
|
lang: string;
|
|
352
|
+
}, {
|
|
354
353
|
value: string;
|
|
354
|
+
lang: string;
|
|
355
355
|
}>, "many">;
|
|
356
356
|
description: z.ZodArray<z.ZodObject<{
|
|
357
357
|
lang: z.ZodString;
|
|
358
358
|
value: z.ZodString;
|
|
359
359
|
}, "strip", z.ZodTypeAny, {
|
|
360
|
-
lang: string;
|
|
361
360
|
value: string;
|
|
362
|
-
}, {
|
|
363
361
|
lang: string;
|
|
362
|
+
}, {
|
|
364
363
|
value: string;
|
|
364
|
+
lang: string;
|
|
365
365
|
}>, "many">;
|
|
366
366
|
isPublished: z.ZodBoolean;
|
|
367
367
|
vat: z.ZodBoolean;
|
|
@@ -369,11 +369,11 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
369
369
|
type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
|
|
370
370
|
value: z.ZodNumber;
|
|
371
371
|
}, "strip", z.ZodTypeAny, {
|
|
372
|
-
value: number;
|
|
373
372
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
374
|
-
}, {
|
|
375
373
|
value: number;
|
|
374
|
+
}, {
|
|
376
375
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
376
|
+
value: number;
|
|
377
377
|
}>;
|
|
378
378
|
price: z.ZodNumber;
|
|
379
379
|
purchasePrice: z.ZodOptional<z.ZodNumber>;
|
|
@@ -383,11 +383,11 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
383
383
|
type: z.ZodEnum<["number", "percent", "none"]>;
|
|
384
384
|
value: z.ZodNumber;
|
|
385
385
|
}, "strip", z.ZodTypeAny, {
|
|
386
|
-
value: number;
|
|
387
386
|
type: "number" | "percent" | "none";
|
|
388
|
-
}, {
|
|
389
387
|
value: number;
|
|
388
|
+
}, {
|
|
390
389
|
type: "number" | "percent" | "none";
|
|
390
|
+
value: number;
|
|
391
391
|
}>;
|
|
392
392
|
weight: z.ZodObject<{
|
|
393
393
|
value: z.ZodNumber;
|
|
@@ -427,11 +427,11 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
427
427
|
lang: z.ZodString;
|
|
428
428
|
value: z.ZodString;
|
|
429
429
|
}, "strip", z.ZodTypeAny, {
|
|
430
|
-
lang: string;
|
|
431
430
|
value: string;
|
|
432
|
-
}, {
|
|
433
431
|
lang: string;
|
|
432
|
+
}, {
|
|
434
433
|
value: string;
|
|
434
|
+
lang: string;
|
|
435
435
|
}>, "many">;
|
|
436
436
|
created_at: z.ZodNumber;
|
|
437
437
|
updated_at: z.ZodNumber;
|
|
@@ -441,8 +441,8 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
441
441
|
storeId: string;
|
|
442
442
|
tag: string;
|
|
443
443
|
locales: {
|
|
444
|
-
lang: string;
|
|
445
444
|
value: string;
|
|
445
|
+
lang: string;
|
|
446
446
|
}[];
|
|
447
447
|
depth: number;
|
|
448
448
|
parentId?: string | null | undefined;
|
|
@@ -453,20 +453,20 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
453
453
|
storeId: string;
|
|
454
454
|
tag: string;
|
|
455
455
|
locales: {
|
|
456
|
-
lang: string;
|
|
457
456
|
value: string;
|
|
457
|
+
lang: string;
|
|
458
458
|
}[];
|
|
459
459
|
depth: number;
|
|
460
460
|
parentId?: string | null | undefined;
|
|
461
|
-
} & any)[];
|
|
461
|
+
} & /*elided*/ any)[];
|
|
462
462
|
}, z.ZodTypeDef, {
|
|
463
463
|
id: string;
|
|
464
464
|
companyId: string;
|
|
465
465
|
storeId: string;
|
|
466
466
|
tag: string;
|
|
467
467
|
locales: {
|
|
468
|
-
lang: string;
|
|
469
468
|
value: string;
|
|
469
|
+
lang: string;
|
|
470
470
|
}[];
|
|
471
471
|
depth: number;
|
|
472
472
|
parentId?: string | null | undefined;
|
|
@@ -477,12 +477,12 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
477
477
|
storeId: string;
|
|
478
478
|
tag: string;
|
|
479
479
|
locales: {
|
|
480
|
-
lang: string;
|
|
481
480
|
value: string;
|
|
481
|
+
lang: string;
|
|
482
482
|
}[];
|
|
483
483
|
depth: number;
|
|
484
484
|
parentId?: string | null | undefined;
|
|
485
|
-
} & any)[];
|
|
485
|
+
} & /*elided*/ any)[];
|
|
486
486
|
}>, "many">;
|
|
487
487
|
categories: z.ZodObject<{
|
|
488
488
|
lvl0: z.ZodArray<z.ZodString, "many">;
|
|
@@ -513,24 +513,24 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
513
513
|
objectID: string;
|
|
514
514
|
sku: string;
|
|
515
515
|
name: {
|
|
516
|
-
lang: string;
|
|
517
516
|
value: string;
|
|
517
|
+
lang: string;
|
|
518
518
|
}[];
|
|
519
519
|
description: {
|
|
520
|
-
lang: string;
|
|
521
520
|
value: string;
|
|
521
|
+
lang: string;
|
|
522
522
|
}[];
|
|
523
523
|
isPublished: boolean;
|
|
524
524
|
vat: boolean;
|
|
525
525
|
priceType: {
|
|
526
|
-
value: number;
|
|
527
526
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
527
|
+
value: number;
|
|
528
528
|
};
|
|
529
529
|
price: number;
|
|
530
530
|
currency: "ILS";
|
|
531
531
|
discount: {
|
|
532
|
-
value: number;
|
|
533
532
|
type: "number" | "percent" | "none";
|
|
533
|
+
value: number;
|
|
534
534
|
};
|
|
535
535
|
weight: {
|
|
536
536
|
value: number;
|
|
@@ -545,8 +545,8 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
545
545
|
importer: string;
|
|
546
546
|
supplier: string;
|
|
547
547
|
ingredients: {
|
|
548
|
-
lang: string;
|
|
549
548
|
value: string;
|
|
549
|
+
lang: string;
|
|
550
550
|
}[];
|
|
551
551
|
created_at: number;
|
|
552
552
|
updated_at: number;
|
|
@@ -556,8 +556,8 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
556
556
|
storeId: string;
|
|
557
557
|
tag: string;
|
|
558
558
|
locales: {
|
|
559
|
-
lang: string;
|
|
560
559
|
value: string;
|
|
560
|
+
lang: string;
|
|
561
561
|
}[];
|
|
562
562
|
depth: number;
|
|
563
563
|
parentId?: string | null | undefined;
|
|
@@ -568,12 +568,12 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
568
568
|
storeId: string;
|
|
569
569
|
tag: string;
|
|
570
570
|
locales: {
|
|
571
|
-
lang: string;
|
|
572
571
|
value: string;
|
|
572
|
+
lang: string;
|
|
573
573
|
}[];
|
|
574
574
|
depth: number;
|
|
575
575
|
parentId?: string | null | undefined;
|
|
576
|
-
} & any)[];
|
|
576
|
+
} & /*elided*/ any)[];
|
|
577
577
|
})[];
|
|
578
578
|
categoryNames: string[];
|
|
579
579
|
purchasePrice?: number | undefined;
|
|
@@ -586,24 +586,24 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
586
586
|
objectID: string;
|
|
587
587
|
sku: string;
|
|
588
588
|
name: {
|
|
589
|
-
lang: string;
|
|
590
589
|
value: string;
|
|
590
|
+
lang: string;
|
|
591
591
|
}[];
|
|
592
592
|
description: {
|
|
593
|
-
lang: string;
|
|
594
593
|
value: string;
|
|
594
|
+
lang: string;
|
|
595
595
|
}[];
|
|
596
596
|
isPublished: boolean;
|
|
597
597
|
vat: boolean;
|
|
598
598
|
priceType: {
|
|
599
|
-
value: number;
|
|
600
599
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
600
|
+
value: number;
|
|
601
601
|
};
|
|
602
602
|
price: number;
|
|
603
603
|
currency: "ILS";
|
|
604
604
|
discount: {
|
|
605
|
-
value: number;
|
|
606
605
|
type: "number" | "percent" | "none";
|
|
606
|
+
value: number;
|
|
607
607
|
};
|
|
608
608
|
weight: {
|
|
609
609
|
value: number;
|
|
@@ -618,8 +618,8 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
618
618
|
importer: string;
|
|
619
619
|
supplier: string;
|
|
620
620
|
ingredients: {
|
|
621
|
-
lang: string;
|
|
622
621
|
value: string;
|
|
622
|
+
lang: string;
|
|
623
623
|
}[];
|
|
624
624
|
created_at: number;
|
|
625
625
|
updated_at: number;
|
|
@@ -629,8 +629,8 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
629
629
|
storeId: string;
|
|
630
630
|
tag: string;
|
|
631
631
|
locales: {
|
|
632
|
-
lang: string;
|
|
633
632
|
value: string;
|
|
633
|
+
lang: string;
|
|
634
634
|
}[];
|
|
635
635
|
depth: number;
|
|
636
636
|
parentId?: string | null | undefined;
|
|
@@ -641,12 +641,12 @@ export declare const NewProductSchema: z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
641
641
|
storeId: string;
|
|
642
642
|
tag: string;
|
|
643
643
|
locales: {
|
|
644
|
-
lang: string;
|
|
645
644
|
value: string;
|
|
645
|
+
lang: string;
|
|
646
646
|
}[];
|
|
647
647
|
depth: number;
|
|
648
648
|
parentId?: string | null | undefined;
|
|
649
|
-
} & any)[];
|
|
649
|
+
} & /*elided*/ any)[];
|
|
650
650
|
})[];
|
|
651
651
|
categoryNames: string[];
|
|
652
652
|
purchasePrice?: number | undefined;
|
|
@@ -664,21 +664,21 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
664
664
|
lang: z.ZodString;
|
|
665
665
|
value: z.ZodString;
|
|
666
666
|
}, "strip", z.ZodTypeAny, {
|
|
667
|
-
lang: string;
|
|
668
667
|
value: string;
|
|
669
|
-
}, {
|
|
670
668
|
lang: string;
|
|
669
|
+
}, {
|
|
671
670
|
value: string;
|
|
671
|
+
lang: string;
|
|
672
672
|
}>, "many">;
|
|
673
673
|
description: z.ZodArray<z.ZodObject<{
|
|
674
674
|
lang: z.ZodString;
|
|
675
675
|
value: z.ZodString;
|
|
676
676
|
}, "strip", z.ZodTypeAny, {
|
|
677
|
-
lang: string;
|
|
678
677
|
value: string;
|
|
679
|
-
}, {
|
|
680
678
|
lang: string;
|
|
679
|
+
}, {
|
|
681
680
|
value: string;
|
|
681
|
+
lang: string;
|
|
682
682
|
}>, "many">;
|
|
683
683
|
isPublished: z.ZodBoolean;
|
|
684
684
|
vat: z.ZodBoolean;
|
|
@@ -686,11 +686,11 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
686
686
|
type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
|
|
687
687
|
value: z.ZodNumber;
|
|
688
688
|
}, "strip", z.ZodTypeAny, {
|
|
689
|
-
value: number;
|
|
690
689
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
691
|
-
}, {
|
|
692
690
|
value: number;
|
|
691
|
+
}, {
|
|
693
692
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
693
|
+
value: number;
|
|
694
694
|
}>;
|
|
695
695
|
price: z.ZodNumber;
|
|
696
696
|
purchasePrice: z.ZodOptional<z.ZodNumber>;
|
|
@@ -700,11 +700,11 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
700
700
|
type: z.ZodEnum<["number", "percent", "none"]>;
|
|
701
701
|
value: z.ZodNumber;
|
|
702
702
|
}, "strip", z.ZodTypeAny, {
|
|
703
|
-
value: number;
|
|
704
703
|
type: "number" | "percent" | "none";
|
|
705
|
-
}, {
|
|
706
704
|
value: number;
|
|
705
|
+
}, {
|
|
707
706
|
type: "number" | "percent" | "none";
|
|
707
|
+
value: number;
|
|
708
708
|
}>;
|
|
709
709
|
weight: z.ZodObject<{
|
|
710
710
|
value: z.ZodNumber;
|
|
@@ -744,11 +744,11 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
744
744
|
lang: z.ZodString;
|
|
745
745
|
value: z.ZodString;
|
|
746
746
|
}, "strip", z.ZodTypeAny, {
|
|
747
|
-
lang: string;
|
|
748
747
|
value: string;
|
|
749
|
-
}, {
|
|
750
748
|
lang: string;
|
|
749
|
+
}, {
|
|
751
750
|
value: string;
|
|
751
|
+
lang: string;
|
|
752
752
|
}>, "many">;
|
|
753
753
|
created_at: z.ZodNumber;
|
|
754
754
|
updated_at: z.ZodNumber;
|
|
@@ -758,8 +758,8 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
758
758
|
storeId: string;
|
|
759
759
|
tag: string;
|
|
760
760
|
locales: {
|
|
761
|
-
lang: string;
|
|
762
761
|
value: string;
|
|
762
|
+
lang: string;
|
|
763
763
|
}[];
|
|
764
764
|
depth: number;
|
|
765
765
|
parentId?: string | null | undefined;
|
|
@@ -770,20 +770,20 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
770
770
|
storeId: string;
|
|
771
771
|
tag: string;
|
|
772
772
|
locales: {
|
|
773
|
-
lang: string;
|
|
774
773
|
value: string;
|
|
774
|
+
lang: string;
|
|
775
775
|
}[];
|
|
776
776
|
depth: number;
|
|
777
777
|
parentId?: string | null | undefined;
|
|
778
|
-
} & any)[];
|
|
778
|
+
} & /*elided*/ any)[];
|
|
779
779
|
}, z.ZodTypeDef, {
|
|
780
780
|
id: string;
|
|
781
781
|
companyId: string;
|
|
782
782
|
storeId: string;
|
|
783
783
|
tag: string;
|
|
784
784
|
locales: {
|
|
785
|
-
lang: string;
|
|
786
785
|
value: string;
|
|
786
|
+
lang: string;
|
|
787
787
|
}[];
|
|
788
788
|
depth: number;
|
|
789
789
|
parentId?: string | null | undefined;
|
|
@@ -794,12 +794,12 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
794
794
|
storeId: string;
|
|
795
795
|
tag: string;
|
|
796
796
|
locales: {
|
|
797
|
-
lang: string;
|
|
798
797
|
value: string;
|
|
798
|
+
lang: string;
|
|
799
799
|
}[];
|
|
800
800
|
depth: number;
|
|
801
801
|
parentId?: string | null | undefined;
|
|
802
|
-
} & any)[];
|
|
802
|
+
} & /*elided*/ any)[];
|
|
803
803
|
}>, "many">;
|
|
804
804
|
categories: z.ZodObject<{
|
|
805
805
|
lvl0: z.ZodArray<z.ZodString, "many">;
|
|
@@ -831,24 +831,24 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
831
831
|
objectID: string;
|
|
832
832
|
sku: string;
|
|
833
833
|
name: {
|
|
834
|
-
lang: string;
|
|
835
834
|
value: string;
|
|
835
|
+
lang: string;
|
|
836
836
|
}[];
|
|
837
837
|
description: {
|
|
838
|
-
lang: string;
|
|
839
838
|
value: string;
|
|
839
|
+
lang: string;
|
|
840
840
|
}[];
|
|
841
841
|
isPublished: boolean;
|
|
842
842
|
vat: boolean;
|
|
843
843
|
priceType: {
|
|
844
|
-
value: number;
|
|
845
844
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
845
|
+
value: number;
|
|
846
846
|
};
|
|
847
847
|
price: number;
|
|
848
848
|
currency: "ILS";
|
|
849
849
|
discount: {
|
|
850
|
-
value: number;
|
|
851
850
|
type: "number" | "percent" | "none";
|
|
851
|
+
value: number;
|
|
852
852
|
};
|
|
853
853
|
weight: {
|
|
854
854
|
value: number;
|
|
@@ -867,8 +867,8 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
867
867
|
importer: string;
|
|
868
868
|
supplier: string;
|
|
869
869
|
ingredients: {
|
|
870
|
-
lang: string;
|
|
871
870
|
value: string;
|
|
871
|
+
lang: string;
|
|
872
872
|
}[];
|
|
873
873
|
created_at: number;
|
|
874
874
|
updated_at: number;
|
|
@@ -878,8 +878,8 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
878
878
|
storeId: string;
|
|
879
879
|
tag: string;
|
|
880
880
|
locales: {
|
|
881
|
-
lang: string;
|
|
882
881
|
value: string;
|
|
882
|
+
lang: string;
|
|
883
883
|
}[];
|
|
884
884
|
depth: number;
|
|
885
885
|
parentId?: string | null | undefined;
|
|
@@ -890,12 +890,12 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
890
890
|
storeId: string;
|
|
891
891
|
tag: string;
|
|
892
892
|
locales: {
|
|
893
|
-
lang: string;
|
|
894
893
|
value: string;
|
|
894
|
+
lang: string;
|
|
895
895
|
}[];
|
|
896
896
|
depth: number;
|
|
897
897
|
parentId?: string | null | undefined;
|
|
898
|
-
} & any)[];
|
|
898
|
+
} & /*elided*/ any)[];
|
|
899
899
|
})[];
|
|
900
900
|
categories: {
|
|
901
901
|
lvl0: string[];
|
|
@@ -916,24 +916,24 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
916
916
|
objectID: string;
|
|
917
917
|
sku: string;
|
|
918
918
|
name: {
|
|
919
|
-
lang: string;
|
|
920
919
|
value: string;
|
|
920
|
+
lang: string;
|
|
921
921
|
}[];
|
|
922
922
|
description: {
|
|
923
|
-
lang: string;
|
|
924
923
|
value: string;
|
|
924
|
+
lang: string;
|
|
925
925
|
}[];
|
|
926
926
|
isPublished: boolean;
|
|
927
927
|
vat: boolean;
|
|
928
928
|
priceType: {
|
|
929
|
-
value: number;
|
|
930
929
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
930
|
+
value: number;
|
|
931
931
|
};
|
|
932
932
|
price: number;
|
|
933
933
|
currency: "ILS";
|
|
934
934
|
discount: {
|
|
935
|
-
value: number;
|
|
936
935
|
type: "number" | "percent" | "none";
|
|
936
|
+
value: number;
|
|
937
937
|
};
|
|
938
938
|
weight: {
|
|
939
939
|
value: number;
|
|
@@ -952,8 +952,8 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
952
952
|
importer: string;
|
|
953
953
|
supplier: string;
|
|
954
954
|
ingredients: {
|
|
955
|
-
lang: string;
|
|
956
955
|
value: string;
|
|
956
|
+
lang: string;
|
|
957
957
|
}[];
|
|
958
958
|
created_at: number;
|
|
959
959
|
updated_at: number;
|
|
@@ -963,8 +963,8 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
963
963
|
storeId: string;
|
|
964
964
|
tag: string;
|
|
965
965
|
locales: {
|
|
966
|
-
lang: string;
|
|
967
966
|
value: string;
|
|
967
|
+
lang: string;
|
|
968
968
|
}[];
|
|
969
969
|
depth: number;
|
|
970
970
|
parentId?: string | null | undefined;
|
|
@@ -975,12 +975,12 @@ export declare const EditProductSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
975
975
|
storeId: string;
|
|
976
976
|
tag: string;
|
|
977
977
|
locales: {
|
|
978
|
-
lang: string;
|
|
979
978
|
value: string;
|
|
979
|
+
lang: string;
|
|
980
980
|
}[];
|
|
981
981
|
depth: number;
|
|
982
982
|
parentId?: string | null | undefined;
|
|
983
|
-
} & any)[];
|
|
983
|
+
} & /*elided*/ any)[];
|
|
984
984
|
})[];
|
|
985
985
|
categories: {
|
|
986
986
|
lvl0: string[];
|