@jsdev_ninja/core 0.7.62 → 0.7.64
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/lib/entities/FavoriteProduct.ts +12 -0
- package/lib/entities/index.ts +3 -2
- package/package.json +1 -1
package/dist/entities/Cart.d.ts
CHANGED
|
@@ -18,21 +18,21 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
18
18
|
lang: z.ZodString;
|
|
19
19
|
value: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
lang: string;
|
|
22
21
|
value: string;
|
|
23
|
-
}, {
|
|
24
22
|
lang: string;
|
|
23
|
+
}, {
|
|
25
24
|
value: string;
|
|
25
|
+
lang: string;
|
|
26
26
|
}>, "many">;
|
|
27
27
|
description: z.ZodArray<z.ZodObject<{
|
|
28
28
|
lang: z.ZodString;
|
|
29
29
|
value: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
lang: string;
|
|
32
31
|
value: string;
|
|
33
|
-
}, {
|
|
34
32
|
lang: string;
|
|
33
|
+
}, {
|
|
35
34
|
value: string;
|
|
35
|
+
lang: string;
|
|
36
36
|
}>, "many">;
|
|
37
37
|
isPublished: z.ZodBoolean;
|
|
38
38
|
vat: z.ZodBoolean;
|
|
@@ -40,11 +40,11 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
40
40
|
type: z.ZodEnum<["unit", "kg", "gram", "liter", "ml"]>;
|
|
41
41
|
value: z.ZodNumber;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
value: number;
|
|
44
43
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
45
|
-
}, {
|
|
46
44
|
value: number;
|
|
45
|
+
}, {
|
|
47
46
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
47
|
+
value: number;
|
|
48
48
|
}>;
|
|
49
49
|
price: z.ZodNumber;
|
|
50
50
|
purchasePrice: z.ZodOptional<z.ZodNumber>;
|
|
@@ -54,11 +54,11 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
54
54
|
type: z.ZodEnum<["number", "percent", "none"]>;
|
|
55
55
|
value: z.ZodNumber;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
value: number;
|
|
58
57
|
type: "number" | "percent" | "none";
|
|
59
|
-
}, {
|
|
60
58
|
value: number;
|
|
59
|
+
}, {
|
|
61
60
|
type: "number" | "percent" | "none";
|
|
61
|
+
value: number;
|
|
62
62
|
}>;
|
|
63
63
|
weight: z.ZodObject<{
|
|
64
64
|
value: z.ZodNumber;
|
|
@@ -98,11 +98,11 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
98
98
|
lang: z.ZodString;
|
|
99
99
|
value: z.ZodString;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
lang: string;
|
|
102
101
|
value: string;
|
|
103
|
-
}, {
|
|
104
102
|
lang: string;
|
|
103
|
+
}, {
|
|
105
104
|
value: string;
|
|
105
|
+
lang: string;
|
|
106
106
|
}>, "many">;
|
|
107
107
|
created_at: z.ZodNumber;
|
|
108
108
|
updated_at: z.ZodNumber;
|
|
@@ -112,8 +112,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
112
112
|
storeId: string;
|
|
113
113
|
tag: string;
|
|
114
114
|
locales: {
|
|
115
|
-
lang: string;
|
|
116
115
|
value: string;
|
|
116
|
+
lang: string;
|
|
117
117
|
}[];
|
|
118
118
|
depth: number;
|
|
119
119
|
parentId?: string | null | undefined;
|
|
@@ -124,20 +124,20 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
124
124
|
storeId: string;
|
|
125
125
|
tag: string;
|
|
126
126
|
locales: {
|
|
127
|
-
lang: string;
|
|
128
127
|
value: string;
|
|
128
|
+
lang: string;
|
|
129
129
|
}[];
|
|
130
130
|
depth: number;
|
|
131
131
|
parentId?: string | null | undefined;
|
|
132
|
-
} & any)[];
|
|
132
|
+
} & /*elided*/ any)[];
|
|
133
133
|
}, z.ZodTypeDef, {
|
|
134
134
|
id: string;
|
|
135
135
|
companyId: string;
|
|
136
136
|
storeId: string;
|
|
137
137
|
tag: string;
|
|
138
138
|
locales: {
|
|
139
|
-
lang: string;
|
|
140
139
|
value: string;
|
|
140
|
+
lang: string;
|
|
141
141
|
}[];
|
|
142
142
|
depth: number;
|
|
143
143
|
parentId?: string | null | undefined;
|
|
@@ -148,12 +148,12 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
148
148
|
storeId: string;
|
|
149
149
|
tag: string;
|
|
150
150
|
locales: {
|
|
151
|
-
lang: string;
|
|
152
151
|
value: string;
|
|
152
|
+
lang: string;
|
|
153
153
|
}[];
|
|
154
154
|
depth: number;
|
|
155
155
|
parentId?: string | null | undefined;
|
|
156
|
-
} & any)[];
|
|
156
|
+
} & /*elided*/ any)[];
|
|
157
157
|
}>, "many">;
|
|
158
158
|
categories: z.ZodObject<{
|
|
159
159
|
lvl0: z.ZodArray<z.ZodString, "many">;
|
|
@@ -183,24 +183,24 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
183
183
|
objectID: string;
|
|
184
184
|
sku: string;
|
|
185
185
|
name: {
|
|
186
|
-
lang: string;
|
|
187
186
|
value: string;
|
|
187
|
+
lang: string;
|
|
188
188
|
}[];
|
|
189
189
|
description: {
|
|
190
|
-
lang: string;
|
|
191
190
|
value: string;
|
|
191
|
+
lang: string;
|
|
192
192
|
}[];
|
|
193
193
|
isPublished: boolean;
|
|
194
194
|
vat: boolean;
|
|
195
195
|
priceType: {
|
|
196
|
-
value: number;
|
|
197
196
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
197
|
+
value: number;
|
|
198
198
|
};
|
|
199
199
|
price: number;
|
|
200
200
|
currency: "ILS";
|
|
201
201
|
discount: {
|
|
202
|
-
value: number;
|
|
203
202
|
type: "number" | "percent" | "none";
|
|
203
|
+
value: number;
|
|
204
204
|
};
|
|
205
205
|
weight: {
|
|
206
206
|
value: number;
|
|
@@ -219,8 +219,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
219
219
|
importer: string;
|
|
220
220
|
supplier: string;
|
|
221
221
|
ingredients: {
|
|
222
|
-
lang: string;
|
|
223
222
|
value: string;
|
|
223
|
+
lang: string;
|
|
224
224
|
}[];
|
|
225
225
|
created_at: number;
|
|
226
226
|
updated_at: number;
|
|
@@ -230,8 +230,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
230
230
|
storeId: string;
|
|
231
231
|
tag: string;
|
|
232
232
|
locales: {
|
|
233
|
-
lang: string;
|
|
234
233
|
value: string;
|
|
234
|
+
lang: string;
|
|
235
235
|
}[];
|
|
236
236
|
depth: number;
|
|
237
237
|
parentId?: string | null | undefined;
|
|
@@ -242,12 +242,12 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
242
242
|
storeId: string;
|
|
243
243
|
tag: string;
|
|
244
244
|
locales: {
|
|
245
|
-
lang: string;
|
|
246
245
|
value: string;
|
|
246
|
+
lang: string;
|
|
247
247
|
}[];
|
|
248
248
|
depth: number;
|
|
249
249
|
parentId?: string | null | undefined;
|
|
250
|
-
} & any)[];
|
|
250
|
+
} & /*elided*/ any)[];
|
|
251
251
|
})[];
|
|
252
252
|
categories: {
|
|
253
253
|
lvl0: string[];
|
|
@@ -267,24 +267,24 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
267
267
|
objectID: string;
|
|
268
268
|
sku: string;
|
|
269
269
|
name: {
|
|
270
|
-
lang: string;
|
|
271
270
|
value: string;
|
|
271
|
+
lang: string;
|
|
272
272
|
}[];
|
|
273
273
|
description: {
|
|
274
|
-
lang: string;
|
|
275
274
|
value: string;
|
|
275
|
+
lang: string;
|
|
276
276
|
}[];
|
|
277
277
|
isPublished: boolean;
|
|
278
278
|
vat: boolean;
|
|
279
279
|
priceType: {
|
|
280
|
-
value: number;
|
|
281
280
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
281
|
+
value: number;
|
|
282
282
|
};
|
|
283
283
|
price: number;
|
|
284
284
|
currency: "ILS";
|
|
285
285
|
discount: {
|
|
286
|
-
value: number;
|
|
287
286
|
type: "number" | "percent" | "none";
|
|
287
|
+
value: number;
|
|
288
288
|
};
|
|
289
289
|
weight: {
|
|
290
290
|
value: number;
|
|
@@ -303,8 +303,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
303
303
|
importer: string;
|
|
304
304
|
supplier: string;
|
|
305
305
|
ingredients: {
|
|
306
|
-
lang: string;
|
|
307
306
|
value: string;
|
|
307
|
+
lang: string;
|
|
308
308
|
}[];
|
|
309
309
|
created_at: number;
|
|
310
310
|
updated_at: number;
|
|
@@ -314,8 +314,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
314
314
|
storeId: string;
|
|
315
315
|
tag: string;
|
|
316
316
|
locales: {
|
|
317
|
-
lang: string;
|
|
318
317
|
value: string;
|
|
318
|
+
lang: string;
|
|
319
319
|
}[];
|
|
320
320
|
depth: number;
|
|
321
321
|
parentId?: string | null | undefined;
|
|
@@ -326,12 +326,12 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
326
326
|
storeId: string;
|
|
327
327
|
tag: string;
|
|
328
328
|
locales: {
|
|
329
|
-
lang: string;
|
|
330
329
|
value: string;
|
|
330
|
+
lang: string;
|
|
331
331
|
}[];
|
|
332
332
|
depth: number;
|
|
333
333
|
parentId?: string | null | undefined;
|
|
334
|
-
} & any)[];
|
|
334
|
+
} & /*elided*/ any)[];
|
|
335
335
|
})[];
|
|
336
336
|
categories: {
|
|
337
337
|
lvl0: string[];
|
|
@@ -354,24 +354,24 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
354
354
|
objectID: string;
|
|
355
355
|
sku: string;
|
|
356
356
|
name: {
|
|
357
|
-
lang: string;
|
|
358
357
|
value: string;
|
|
358
|
+
lang: string;
|
|
359
359
|
}[];
|
|
360
360
|
description: {
|
|
361
|
-
lang: string;
|
|
362
361
|
value: string;
|
|
362
|
+
lang: string;
|
|
363
363
|
}[];
|
|
364
364
|
isPublished: boolean;
|
|
365
365
|
vat: boolean;
|
|
366
366
|
priceType: {
|
|
367
|
-
value: number;
|
|
368
367
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
368
|
+
value: number;
|
|
369
369
|
};
|
|
370
370
|
price: number;
|
|
371
371
|
currency: "ILS";
|
|
372
372
|
discount: {
|
|
373
|
-
value: number;
|
|
374
373
|
type: "number" | "percent" | "none";
|
|
374
|
+
value: number;
|
|
375
375
|
};
|
|
376
376
|
weight: {
|
|
377
377
|
value: number;
|
|
@@ -390,8 +390,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
390
390
|
importer: string;
|
|
391
391
|
supplier: string;
|
|
392
392
|
ingredients: {
|
|
393
|
-
lang: string;
|
|
394
393
|
value: string;
|
|
394
|
+
lang: string;
|
|
395
395
|
}[];
|
|
396
396
|
created_at: number;
|
|
397
397
|
updated_at: number;
|
|
@@ -401,8 +401,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
401
401
|
storeId: string;
|
|
402
402
|
tag: string;
|
|
403
403
|
locales: {
|
|
404
|
-
lang: string;
|
|
405
404
|
value: string;
|
|
405
|
+
lang: string;
|
|
406
406
|
}[];
|
|
407
407
|
depth: number;
|
|
408
408
|
parentId?: string | null | undefined;
|
|
@@ -413,12 +413,12 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
413
413
|
storeId: string;
|
|
414
414
|
tag: string;
|
|
415
415
|
locales: {
|
|
416
|
-
lang: string;
|
|
417
416
|
value: string;
|
|
417
|
+
lang: string;
|
|
418
418
|
}[];
|
|
419
419
|
depth: number;
|
|
420
420
|
parentId?: string | null | undefined;
|
|
421
|
-
} & any)[];
|
|
421
|
+
} & /*elided*/ any)[];
|
|
422
422
|
})[];
|
|
423
423
|
categories: {
|
|
424
424
|
lvl0: string[];
|
|
@@ -441,24 +441,24 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
441
441
|
objectID: string;
|
|
442
442
|
sku: string;
|
|
443
443
|
name: {
|
|
444
|
-
lang: string;
|
|
445
444
|
value: string;
|
|
445
|
+
lang: string;
|
|
446
446
|
}[];
|
|
447
447
|
description: {
|
|
448
|
-
lang: string;
|
|
449
448
|
value: string;
|
|
449
|
+
lang: string;
|
|
450
450
|
}[];
|
|
451
451
|
isPublished: boolean;
|
|
452
452
|
vat: boolean;
|
|
453
453
|
priceType: {
|
|
454
|
-
value: number;
|
|
455
454
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
455
|
+
value: number;
|
|
456
456
|
};
|
|
457
457
|
price: number;
|
|
458
458
|
currency: "ILS";
|
|
459
459
|
discount: {
|
|
460
|
-
value: number;
|
|
461
460
|
type: "number" | "percent" | "none";
|
|
461
|
+
value: number;
|
|
462
462
|
};
|
|
463
463
|
weight: {
|
|
464
464
|
value: number;
|
|
@@ -477,8 +477,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
477
477
|
importer: string;
|
|
478
478
|
supplier: string;
|
|
479
479
|
ingredients: {
|
|
480
|
-
lang: string;
|
|
481
480
|
value: string;
|
|
481
|
+
lang: string;
|
|
482
482
|
}[];
|
|
483
483
|
created_at: number;
|
|
484
484
|
updated_at: number;
|
|
@@ -488,8 +488,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
488
488
|
storeId: string;
|
|
489
489
|
tag: string;
|
|
490
490
|
locales: {
|
|
491
|
-
lang: string;
|
|
492
491
|
value: string;
|
|
492
|
+
lang: string;
|
|
493
493
|
}[];
|
|
494
494
|
depth: number;
|
|
495
495
|
parentId?: string | null | undefined;
|
|
@@ -500,12 +500,12 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
500
500
|
storeId: string;
|
|
501
501
|
tag: string;
|
|
502
502
|
locales: {
|
|
503
|
-
lang: string;
|
|
504
503
|
value: string;
|
|
504
|
+
lang: string;
|
|
505
505
|
}[];
|
|
506
506
|
depth: number;
|
|
507
507
|
parentId?: string | null | undefined;
|
|
508
|
-
} & any)[];
|
|
508
|
+
} & /*elided*/ any)[];
|
|
509
509
|
})[];
|
|
510
510
|
categories: {
|
|
511
511
|
lvl0: string[];
|
|
@@ -536,24 +536,24 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
536
536
|
objectID: string;
|
|
537
537
|
sku: string;
|
|
538
538
|
name: {
|
|
539
|
-
lang: string;
|
|
540
539
|
value: string;
|
|
540
|
+
lang: string;
|
|
541
541
|
}[];
|
|
542
542
|
description: {
|
|
543
|
-
lang: string;
|
|
544
543
|
value: string;
|
|
544
|
+
lang: string;
|
|
545
545
|
}[];
|
|
546
546
|
isPublished: boolean;
|
|
547
547
|
vat: boolean;
|
|
548
548
|
priceType: {
|
|
549
|
-
value: number;
|
|
550
549
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
550
|
+
value: number;
|
|
551
551
|
};
|
|
552
552
|
price: number;
|
|
553
553
|
currency: "ILS";
|
|
554
554
|
discount: {
|
|
555
|
-
value: number;
|
|
556
555
|
type: "number" | "percent" | "none";
|
|
556
|
+
value: number;
|
|
557
557
|
};
|
|
558
558
|
weight: {
|
|
559
559
|
value: number;
|
|
@@ -572,8 +572,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
572
572
|
importer: string;
|
|
573
573
|
supplier: string;
|
|
574
574
|
ingredients: {
|
|
575
|
-
lang: string;
|
|
576
575
|
value: string;
|
|
576
|
+
lang: string;
|
|
577
577
|
}[];
|
|
578
578
|
created_at: number;
|
|
579
579
|
updated_at: number;
|
|
@@ -583,8 +583,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
583
583
|
storeId: string;
|
|
584
584
|
tag: string;
|
|
585
585
|
locales: {
|
|
586
|
-
lang: string;
|
|
587
586
|
value: string;
|
|
587
|
+
lang: string;
|
|
588
588
|
}[];
|
|
589
589
|
depth: number;
|
|
590
590
|
parentId?: string | null | undefined;
|
|
@@ -595,12 +595,12 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
595
595
|
storeId: string;
|
|
596
596
|
tag: string;
|
|
597
597
|
locales: {
|
|
598
|
-
lang: string;
|
|
599
598
|
value: string;
|
|
599
|
+
lang: string;
|
|
600
600
|
}[];
|
|
601
601
|
depth: number;
|
|
602
602
|
parentId?: string | null | undefined;
|
|
603
|
-
} & any)[];
|
|
603
|
+
} & /*elided*/ any)[];
|
|
604
604
|
})[];
|
|
605
605
|
categories: {
|
|
606
606
|
lvl0: string[];
|
|
@@ -631,24 +631,24 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
631
631
|
objectID: string;
|
|
632
632
|
sku: string;
|
|
633
633
|
name: {
|
|
634
|
-
lang: string;
|
|
635
634
|
value: string;
|
|
635
|
+
lang: string;
|
|
636
636
|
}[];
|
|
637
637
|
description: {
|
|
638
|
-
lang: string;
|
|
639
638
|
value: string;
|
|
639
|
+
lang: string;
|
|
640
640
|
}[];
|
|
641
641
|
isPublished: boolean;
|
|
642
642
|
vat: boolean;
|
|
643
643
|
priceType: {
|
|
644
|
-
value: number;
|
|
645
644
|
type: "unit" | "kg" | "gram" | "liter" | "ml";
|
|
645
|
+
value: number;
|
|
646
646
|
};
|
|
647
647
|
price: number;
|
|
648
648
|
currency: "ILS";
|
|
649
649
|
discount: {
|
|
650
|
-
value: number;
|
|
651
650
|
type: "number" | "percent" | "none";
|
|
651
|
+
value: number;
|
|
652
652
|
};
|
|
653
653
|
weight: {
|
|
654
654
|
value: number;
|
|
@@ -667,8 +667,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
667
667
|
importer: string;
|
|
668
668
|
supplier: string;
|
|
669
669
|
ingredients: {
|
|
670
|
-
lang: string;
|
|
671
670
|
value: string;
|
|
671
|
+
lang: string;
|
|
672
672
|
}[];
|
|
673
673
|
created_at: number;
|
|
674
674
|
updated_at: number;
|
|
@@ -678,8 +678,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
678
678
|
storeId: string;
|
|
679
679
|
tag: string;
|
|
680
680
|
locales: {
|
|
681
|
-
lang: string;
|
|
682
681
|
value: string;
|
|
682
|
+
lang: string;
|
|
683
683
|
}[];
|
|
684
684
|
depth: number;
|
|
685
685
|
parentId?: string | null | undefined;
|
|
@@ -690,12 +690,12 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
690
690
|
storeId: string;
|
|
691
691
|
tag: string;
|
|
692
692
|
locales: {
|
|
693
|
-
lang: string;
|
|
694
693
|
value: string;
|
|
694
|
+
lang: string;
|
|
695
695
|
}[];
|
|
696
696
|
depth: number;
|
|
697
697
|
parentId?: string | null | undefined;
|
|
698
|
-
} & any)[];
|
|
698
|
+
} & /*elided*/ any)[];
|
|
699
699
|
})[];
|
|
700
700
|
categories: {
|
|
701
701
|
lvl0: string[];
|
|
@@ -9,11 +9,11 @@ export declare const BaseCategorySchema: z.ZodObject<{
|
|
|
9
9
|
lang: z.ZodString;
|
|
10
10
|
value: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
lang: string;
|
|
13
12
|
value: string;
|
|
14
|
-
}, {
|
|
15
13
|
lang: string;
|
|
14
|
+
}, {
|
|
16
15
|
value: string;
|
|
16
|
+
lang: string;
|
|
17
17
|
}>, "many">;
|
|
18
18
|
depth: z.ZodNumber;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -22,8 +22,8 @@ export declare const BaseCategorySchema: z.ZodObject<{
|
|
|
22
22
|
storeId: string;
|
|
23
23
|
tag: string;
|
|
24
24
|
locales: {
|
|
25
|
-
lang: string;
|
|
26
25
|
value: string;
|
|
26
|
+
lang: string;
|
|
27
27
|
}[];
|
|
28
28
|
depth: number;
|
|
29
29
|
parentId?: string | null | undefined;
|
|
@@ -33,8 +33,8 @@ export declare const BaseCategorySchema: z.ZodObject<{
|
|
|
33
33
|
storeId: string;
|
|
34
34
|
tag: string;
|
|
35
35
|
locales: {
|
|
36
|
-
lang: string;
|
|
37
36
|
value: string;
|
|
37
|
+
lang: string;
|
|
38
38
|
}[];
|
|
39
39
|
depth: number;
|
|
40
40
|
parentId?: string | null | undefined;
|
|
@@ -56,11 +56,11 @@ export declare const TFlattenCategorySchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
56
56
|
lang: z.ZodString;
|
|
57
57
|
value: z.ZodString;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
lang: string;
|
|
60
59
|
value: string;
|
|
61
|
-
}, {
|
|
62
60
|
lang: string;
|
|
61
|
+
}, {
|
|
63
62
|
value: string;
|
|
63
|
+
lang: string;
|
|
64
64
|
}>, "many">;
|
|
65
65
|
depth: z.ZodNumber;
|
|
66
66
|
}, {
|
|
@@ -74,8 +74,8 @@ export declare const TFlattenCategorySchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
74
74
|
storeId: string;
|
|
75
75
|
tag: string;
|
|
76
76
|
locales: {
|
|
77
|
-
lang: string;
|
|
78
77
|
value: string;
|
|
78
|
+
lang: string;
|
|
79
79
|
}[];
|
|
80
80
|
depth: number;
|
|
81
81
|
children: Category[];
|
|
@@ -88,8 +88,8 @@ export declare const TFlattenCategorySchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
88
88
|
storeId: string;
|
|
89
89
|
tag: string;
|
|
90
90
|
locales: {
|
|
91
|
-
lang: string;
|
|
92
91
|
value: string;
|
|
92
|
+
lang: string;
|
|
93
93
|
}[];
|
|
94
94
|
depth: number;
|
|
95
95
|
children: Category[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FavoriteProductSchema: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"FavoriteProduct">;
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
companyId: z.ZodString;
|
|
6
|
+
storeId: z.ZodString;
|
|
7
|
+
userId: z.ZodString;
|
|
8
|
+
productId: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
type: "FavoriteProduct";
|
|
11
|
+
id: string;
|
|
12
|
+
companyId: string;
|
|
13
|
+
storeId: string;
|
|
14
|
+
userId: string;
|
|
15
|
+
productId: string;
|
|
16
|
+
}, {
|
|
17
|
+
type: "FavoriteProduct";
|
|
18
|
+
id: string;
|
|
19
|
+
companyId: string;
|
|
20
|
+
storeId: string;
|
|
21
|
+
userId: string;
|
|
22
|
+
productId: string;
|
|
23
|
+
}>;
|
|
24
|
+
export type TFavoriteProduct = z.infer<typeof FavoriteProductSchema>;
|
|
25
|
+
//# sourceMappingURL=FavoriteProduct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FavoriteProduct.d.ts","sourceRoot":"","sources":["../../lib/entities/FavoriteProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const FavoriteProductSchema = z.object({
|
|
3
|
+
type: z.literal("FavoriteProduct"),
|
|
4
|
+
id: z.string().uuid(),
|
|
5
|
+
companyId: z.string().uuid(),
|
|
6
|
+
storeId: z.string().uuid(),
|
|
7
|
+
userId: z.string().uuid(),
|
|
8
|
+
productId: z.string().uuid(),
|
|
9
|
+
});
|
|
@@ -3,10 +3,10 @@ export declare const LocaleSchema: z.ZodObject<{
|
|
|
3
3
|
lang: z.ZodString;
|
|
4
4
|
value: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
lang: string;
|
|
7
6
|
value: string;
|
|
8
|
-
}, {
|
|
9
7
|
lang: string;
|
|
8
|
+
}, {
|
|
10
9
|
value: string;
|
|
10
|
+
lang: string;
|
|
11
11
|
}>;
|
|
12
12
|
//# sourceMappingURL=Locale.d.ts.map
|