@jsdev_ninja/core 0.12.10 → 0.12.11
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 +8 -8
- 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 +90 -90
- package/dist/entities/Order.d.ts +72 -72
- package/dist/entities/Order.d.ts.map +1 -1
- package/dist/entities/Order.js +1 -1
- package/dist/entities/Product.d.ts +42 -42
- package/dist/entities/Product.js +3 -3
- package/dist/entities/Profile.d.ts.map +1 -1
- package/dist/entities/Profile.js +3 -1
- package/dist/utils/index.d.ts +8 -8
- package/dist/utils/index.js +3 -3
- package/lib/entities/Product.ts +3 -3
- package/package.json +1 -1
package/dist/entities/Cart.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
101
101
|
created_at: z.ZodNumber;
|
|
102
102
|
updated_at: z.ZodNumber;
|
|
103
103
|
categoryIds: z.ZodArray<z.ZodString, "many">;
|
|
104
|
-
categoryList: z.ZodArray<z.ZodType<{
|
|
104
|
+
categoryList: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
105
105
|
id: string;
|
|
106
106
|
companyId: string;
|
|
107
107
|
storeId: string;
|
|
@@ -149,8 +149,8 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
149
149
|
parentId?: string | null | undefined;
|
|
150
150
|
tag?: string | undefined;
|
|
151
151
|
} & /*elided*/ any)[];
|
|
152
|
-
}>, "many"
|
|
153
|
-
categories: z.ZodObject<{
|
|
152
|
+
}>, "many">>;
|
|
153
|
+
categories: z.ZodOptional<z.ZodObject<{
|
|
154
154
|
lvl0: z.ZodArray<z.ZodString, "many">;
|
|
155
155
|
lvl1: z.ZodArray<z.ZodString, "many">;
|
|
156
156
|
lvl2: z.ZodArray<z.ZodString, "many">;
|
|
@@ -168,8 +168,8 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
168
168
|
lvl2: string[];
|
|
169
169
|
lvl3: string[];
|
|
170
170
|
lvl4: string[];
|
|
171
|
-
}
|
|
172
|
-
categoryNames: z.ZodArray<z.ZodString, "many"
|
|
171
|
+
}>>;
|
|
172
|
+
categoryNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
174
|
type: "Product";
|
|
175
175
|
id: string;
|
|
@@ -220,7 +220,10 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
220
220
|
created_at: number;
|
|
221
221
|
updated_at: number;
|
|
222
222
|
categoryIds: string[];
|
|
223
|
-
|
|
223
|
+
purchasePrice?: number | undefined;
|
|
224
|
+
profitPercentage?: number | undefined;
|
|
225
|
+
isDiscountable?: boolean | undefined;
|
|
226
|
+
categoryList?: ({
|
|
224
227
|
id: string;
|
|
225
228
|
companyId: string;
|
|
226
229
|
storeId: string;
|
|
@@ -244,18 +247,15 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
244
247
|
parentId?: string | null | undefined;
|
|
245
248
|
tag?: string | undefined;
|
|
246
249
|
} & /*elided*/ any)[];
|
|
247
|
-
})[];
|
|
248
|
-
categories
|
|
250
|
+
})[] | undefined;
|
|
251
|
+
categories?: {
|
|
249
252
|
lvl0: string[];
|
|
250
253
|
lvl1: string[];
|
|
251
254
|
lvl2: string[];
|
|
252
255
|
lvl3: string[];
|
|
253
256
|
lvl4: string[];
|
|
254
|
-
};
|
|
255
|
-
categoryNames
|
|
256
|
-
purchasePrice?: number | undefined;
|
|
257
|
-
profitPercentage?: number | undefined;
|
|
258
|
-
isDiscountable?: boolean | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
categoryNames?: string[] | undefined;
|
|
259
259
|
}, {
|
|
260
260
|
type: "Product";
|
|
261
261
|
id: string;
|
|
@@ -306,7 +306,10 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
306
306
|
created_at: number;
|
|
307
307
|
updated_at: number;
|
|
308
308
|
categoryIds: string[];
|
|
309
|
-
|
|
309
|
+
purchasePrice?: number | undefined;
|
|
310
|
+
profitPercentage?: number | undefined;
|
|
311
|
+
isDiscountable?: boolean | undefined;
|
|
312
|
+
categoryList?: ({
|
|
310
313
|
id: string;
|
|
311
314
|
companyId: string;
|
|
312
315
|
storeId: string;
|
|
@@ -330,18 +333,15 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
330
333
|
parentId?: string | null | undefined;
|
|
331
334
|
tag?: string | undefined;
|
|
332
335
|
} & /*elided*/ any)[];
|
|
333
|
-
})[];
|
|
334
|
-
categories
|
|
336
|
+
})[] | undefined;
|
|
337
|
+
categories?: {
|
|
335
338
|
lvl0: string[];
|
|
336
339
|
lvl1: string[];
|
|
337
340
|
lvl2: string[];
|
|
338
341
|
lvl3: string[];
|
|
339
342
|
lvl4: string[];
|
|
340
|
-
};
|
|
341
|
-
categoryNames
|
|
342
|
-
purchasePrice?: number | undefined;
|
|
343
|
-
profitPercentage?: number | undefined;
|
|
344
|
-
isDiscountable?: boolean | undefined;
|
|
343
|
+
} | undefined;
|
|
344
|
+
categoryNames?: string[] | undefined;
|
|
345
345
|
}>;
|
|
346
346
|
originalPrice: z.ZodOptional<z.ZodNumber>;
|
|
347
347
|
finalPrice: z.ZodOptional<z.ZodNumber>;
|
|
@@ -398,7 +398,10 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
398
398
|
created_at: number;
|
|
399
399
|
updated_at: number;
|
|
400
400
|
categoryIds: string[];
|
|
401
|
-
|
|
401
|
+
purchasePrice?: number | undefined;
|
|
402
|
+
profitPercentage?: number | undefined;
|
|
403
|
+
isDiscountable?: boolean | undefined;
|
|
404
|
+
categoryList?: ({
|
|
402
405
|
id: string;
|
|
403
406
|
companyId: string;
|
|
404
407
|
storeId: string;
|
|
@@ -422,18 +425,15 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
422
425
|
parentId?: string | null | undefined;
|
|
423
426
|
tag?: string | undefined;
|
|
424
427
|
} & /*elided*/ any)[];
|
|
425
|
-
})[];
|
|
426
|
-
categories
|
|
428
|
+
})[] | undefined;
|
|
429
|
+
categories?: {
|
|
427
430
|
lvl0: string[];
|
|
428
431
|
lvl1: string[];
|
|
429
432
|
lvl2: string[];
|
|
430
433
|
lvl3: string[];
|
|
431
434
|
lvl4: string[];
|
|
432
|
-
};
|
|
433
|
-
categoryNames
|
|
434
|
-
purchasePrice?: number | undefined;
|
|
435
|
-
profitPercentage?: number | undefined;
|
|
436
|
-
isDiscountable?: boolean | undefined;
|
|
435
|
+
} | undefined;
|
|
436
|
+
categoryNames?: string[] | undefined;
|
|
437
437
|
};
|
|
438
438
|
amount: number;
|
|
439
439
|
originalPrice?: number | undefined;
|
|
@@ -490,7 +490,10 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
490
490
|
created_at: number;
|
|
491
491
|
updated_at: number;
|
|
492
492
|
categoryIds: string[];
|
|
493
|
-
|
|
493
|
+
purchasePrice?: number | undefined;
|
|
494
|
+
profitPercentage?: number | undefined;
|
|
495
|
+
isDiscountable?: boolean | undefined;
|
|
496
|
+
categoryList?: ({
|
|
494
497
|
id: string;
|
|
495
498
|
companyId: string;
|
|
496
499
|
storeId: string;
|
|
@@ -514,18 +517,15 @@ export declare const CartItemProductSchema: z.ZodObject<{
|
|
|
514
517
|
parentId?: string | null | undefined;
|
|
515
518
|
tag?: string | undefined;
|
|
516
519
|
} & /*elided*/ any)[];
|
|
517
|
-
})[];
|
|
518
|
-
categories
|
|
520
|
+
})[] | undefined;
|
|
521
|
+
categories?: {
|
|
519
522
|
lvl0: string[];
|
|
520
523
|
lvl1: string[];
|
|
521
524
|
lvl2: string[];
|
|
522
525
|
lvl3: string[];
|
|
523
526
|
lvl4: string[];
|
|
524
|
-
};
|
|
525
|
-
categoryNames
|
|
526
|
-
purchasePrice?: number | undefined;
|
|
527
|
-
profitPercentage?: number | undefined;
|
|
528
|
-
isDiscountable?: boolean | undefined;
|
|
527
|
+
} | undefined;
|
|
528
|
+
categoryNames?: string[] | undefined;
|
|
529
529
|
};
|
|
530
530
|
amount: number;
|
|
531
531
|
originalPrice?: number | undefined;
|
|
@@ -642,7 +642,7 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
642
642
|
created_at: z.ZodNumber;
|
|
643
643
|
updated_at: z.ZodNumber;
|
|
644
644
|
categoryIds: z.ZodArray<z.ZodString, "many">;
|
|
645
|
-
categoryList: z.ZodArray<z.ZodType<{
|
|
645
|
+
categoryList: z.ZodOptional<z.ZodArray<z.ZodType<{
|
|
646
646
|
id: string;
|
|
647
647
|
companyId: string;
|
|
648
648
|
storeId: string;
|
|
@@ -690,8 +690,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
690
690
|
parentId?: string | null | undefined;
|
|
691
691
|
tag?: string | undefined;
|
|
692
692
|
} & /*elided*/ any)[];
|
|
693
|
-
}>, "many"
|
|
694
|
-
categories: z.ZodObject<{
|
|
693
|
+
}>, "many">>;
|
|
694
|
+
categories: z.ZodOptional<z.ZodObject<{
|
|
695
695
|
lvl0: z.ZodArray<z.ZodString, "many">;
|
|
696
696
|
lvl1: z.ZodArray<z.ZodString, "many">;
|
|
697
697
|
lvl2: z.ZodArray<z.ZodString, "many">;
|
|
@@ -709,8 +709,8 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
709
709
|
lvl2: string[];
|
|
710
710
|
lvl3: string[];
|
|
711
711
|
lvl4: string[];
|
|
712
|
-
}
|
|
713
|
-
categoryNames: z.ZodArray<z.ZodString, "many"
|
|
712
|
+
}>>;
|
|
713
|
+
categoryNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
714
714
|
}, "strip", z.ZodTypeAny, {
|
|
715
715
|
type: "Product";
|
|
716
716
|
id: string;
|
|
@@ -761,7 +761,10 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
761
761
|
created_at: number;
|
|
762
762
|
updated_at: number;
|
|
763
763
|
categoryIds: string[];
|
|
764
|
-
|
|
764
|
+
purchasePrice?: number | undefined;
|
|
765
|
+
profitPercentage?: number | undefined;
|
|
766
|
+
isDiscountable?: boolean | undefined;
|
|
767
|
+
categoryList?: ({
|
|
765
768
|
id: string;
|
|
766
769
|
companyId: string;
|
|
767
770
|
storeId: string;
|
|
@@ -785,18 +788,15 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
785
788
|
parentId?: string | null | undefined;
|
|
786
789
|
tag?: string | undefined;
|
|
787
790
|
} & /*elided*/ any)[];
|
|
788
|
-
})[];
|
|
789
|
-
categories
|
|
791
|
+
})[] | undefined;
|
|
792
|
+
categories?: {
|
|
790
793
|
lvl0: string[];
|
|
791
794
|
lvl1: string[];
|
|
792
795
|
lvl2: string[];
|
|
793
796
|
lvl3: string[];
|
|
794
797
|
lvl4: string[];
|
|
795
|
-
};
|
|
796
|
-
categoryNames
|
|
797
|
-
purchasePrice?: number | undefined;
|
|
798
|
-
profitPercentage?: number | undefined;
|
|
799
|
-
isDiscountable?: boolean | undefined;
|
|
798
|
+
} | undefined;
|
|
799
|
+
categoryNames?: string[] | undefined;
|
|
800
800
|
}, {
|
|
801
801
|
type: "Product";
|
|
802
802
|
id: string;
|
|
@@ -847,7 +847,10 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
847
847
|
created_at: number;
|
|
848
848
|
updated_at: number;
|
|
849
849
|
categoryIds: string[];
|
|
850
|
-
|
|
850
|
+
purchasePrice?: number | undefined;
|
|
851
|
+
profitPercentage?: number | undefined;
|
|
852
|
+
isDiscountable?: boolean | undefined;
|
|
853
|
+
categoryList?: ({
|
|
851
854
|
id: string;
|
|
852
855
|
companyId: string;
|
|
853
856
|
storeId: string;
|
|
@@ -871,18 +874,15 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
871
874
|
parentId?: string | null | undefined;
|
|
872
875
|
tag?: string | undefined;
|
|
873
876
|
} & /*elided*/ any)[];
|
|
874
|
-
})[];
|
|
875
|
-
categories
|
|
877
|
+
})[] | undefined;
|
|
878
|
+
categories?: {
|
|
876
879
|
lvl0: string[];
|
|
877
880
|
lvl1: string[];
|
|
878
881
|
lvl2: string[];
|
|
879
882
|
lvl3: string[];
|
|
880
883
|
lvl4: string[];
|
|
881
|
-
};
|
|
882
|
-
categoryNames
|
|
883
|
-
purchasePrice?: number | undefined;
|
|
884
|
-
profitPercentage?: number | undefined;
|
|
885
|
-
isDiscountable?: boolean | undefined;
|
|
884
|
+
} | undefined;
|
|
885
|
+
categoryNames?: string[] | undefined;
|
|
886
886
|
}>;
|
|
887
887
|
originalPrice: z.ZodOptional<z.ZodNumber>;
|
|
888
888
|
finalPrice: z.ZodOptional<z.ZodNumber>;
|
|
@@ -939,7 +939,10 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
939
939
|
created_at: number;
|
|
940
940
|
updated_at: number;
|
|
941
941
|
categoryIds: string[];
|
|
942
|
-
|
|
942
|
+
purchasePrice?: number | undefined;
|
|
943
|
+
profitPercentage?: number | undefined;
|
|
944
|
+
isDiscountable?: boolean | undefined;
|
|
945
|
+
categoryList?: ({
|
|
943
946
|
id: string;
|
|
944
947
|
companyId: string;
|
|
945
948
|
storeId: string;
|
|
@@ -963,18 +966,15 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
963
966
|
parentId?: string | null | undefined;
|
|
964
967
|
tag?: string | undefined;
|
|
965
968
|
} & /*elided*/ any)[];
|
|
966
|
-
})[];
|
|
967
|
-
categories
|
|
969
|
+
})[] | undefined;
|
|
970
|
+
categories?: {
|
|
968
971
|
lvl0: string[];
|
|
969
972
|
lvl1: string[];
|
|
970
973
|
lvl2: string[];
|
|
971
974
|
lvl3: string[];
|
|
972
975
|
lvl4: string[];
|
|
973
|
-
};
|
|
974
|
-
categoryNames
|
|
975
|
-
purchasePrice?: number | undefined;
|
|
976
|
-
profitPercentage?: number | undefined;
|
|
977
|
-
isDiscountable?: boolean | undefined;
|
|
976
|
+
} | undefined;
|
|
977
|
+
categoryNames?: string[] | undefined;
|
|
978
978
|
};
|
|
979
979
|
amount: number;
|
|
980
980
|
originalPrice?: number | undefined;
|
|
@@ -1031,7 +1031,10 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
1031
1031
|
created_at: number;
|
|
1032
1032
|
updated_at: number;
|
|
1033
1033
|
categoryIds: string[];
|
|
1034
|
-
|
|
1034
|
+
purchasePrice?: number | undefined;
|
|
1035
|
+
profitPercentage?: number | undefined;
|
|
1036
|
+
isDiscountable?: boolean | undefined;
|
|
1037
|
+
categoryList?: ({
|
|
1035
1038
|
id: string;
|
|
1036
1039
|
companyId: string;
|
|
1037
1040
|
storeId: string;
|
|
@@ -1055,18 +1058,15 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
1055
1058
|
parentId?: string | null | undefined;
|
|
1056
1059
|
tag?: string | undefined;
|
|
1057
1060
|
} & /*elided*/ any)[];
|
|
1058
|
-
})[];
|
|
1059
|
-
categories
|
|
1061
|
+
})[] | undefined;
|
|
1062
|
+
categories?: {
|
|
1060
1063
|
lvl0: string[];
|
|
1061
1064
|
lvl1: string[];
|
|
1062
1065
|
lvl2: string[];
|
|
1063
1066
|
lvl3: string[];
|
|
1064
1067
|
lvl4: string[];
|
|
1065
|
-
};
|
|
1066
|
-
categoryNames
|
|
1067
|
-
purchasePrice?: number | undefined;
|
|
1068
|
-
profitPercentage?: number | undefined;
|
|
1069
|
-
isDiscountable?: boolean | undefined;
|
|
1068
|
+
} | undefined;
|
|
1069
|
+
categoryNames?: string[] | undefined;
|
|
1070
1070
|
};
|
|
1071
1071
|
amount: number;
|
|
1072
1072
|
originalPrice?: number | undefined;
|
|
@@ -1131,7 +1131,10 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
1131
1131
|
created_at: number;
|
|
1132
1132
|
updated_at: number;
|
|
1133
1133
|
categoryIds: string[];
|
|
1134
|
-
|
|
1134
|
+
purchasePrice?: number | undefined;
|
|
1135
|
+
profitPercentage?: number | undefined;
|
|
1136
|
+
isDiscountable?: boolean | undefined;
|
|
1137
|
+
categoryList?: ({
|
|
1135
1138
|
id: string;
|
|
1136
1139
|
companyId: string;
|
|
1137
1140
|
storeId: string;
|
|
@@ -1155,18 +1158,15 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
1155
1158
|
parentId?: string | null | undefined;
|
|
1156
1159
|
tag?: string | undefined;
|
|
1157
1160
|
} & /*elided*/ any)[];
|
|
1158
|
-
})[];
|
|
1159
|
-
categories
|
|
1161
|
+
})[] | undefined;
|
|
1162
|
+
categories?: {
|
|
1160
1163
|
lvl0: string[];
|
|
1161
1164
|
lvl1: string[];
|
|
1162
1165
|
lvl2: string[];
|
|
1163
1166
|
lvl3: string[];
|
|
1164
1167
|
lvl4: string[];
|
|
1165
|
-
};
|
|
1166
|
-
categoryNames
|
|
1167
|
-
purchasePrice?: number | undefined;
|
|
1168
|
-
profitPercentage?: number | undefined;
|
|
1169
|
-
isDiscountable?: boolean | undefined;
|
|
1168
|
+
} | undefined;
|
|
1169
|
+
categoryNames?: string[] | undefined;
|
|
1170
1170
|
};
|
|
1171
1171
|
amount: number;
|
|
1172
1172
|
originalPrice?: number | undefined;
|
|
@@ -1231,7 +1231,10 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
1231
1231
|
created_at: number;
|
|
1232
1232
|
updated_at: number;
|
|
1233
1233
|
categoryIds: string[];
|
|
1234
|
-
|
|
1234
|
+
purchasePrice?: number | undefined;
|
|
1235
|
+
profitPercentage?: number | undefined;
|
|
1236
|
+
isDiscountable?: boolean | undefined;
|
|
1237
|
+
categoryList?: ({
|
|
1235
1238
|
id: string;
|
|
1236
1239
|
companyId: string;
|
|
1237
1240
|
storeId: string;
|
|
@@ -1255,18 +1258,15 @@ export declare const CartSchema: z.ZodObject<{
|
|
|
1255
1258
|
parentId?: string | null | undefined;
|
|
1256
1259
|
tag?: string | undefined;
|
|
1257
1260
|
} & /*elided*/ any)[];
|
|
1258
|
-
})[];
|
|
1259
|
-
categories
|
|
1261
|
+
})[] | undefined;
|
|
1262
|
+
categories?: {
|
|
1260
1263
|
lvl0: string[];
|
|
1261
1264
|
lvl1: string[];
|
|
1262
1265
|
lvl2: string[];
|
|
1263
1266
|
lvl3: string[];
|
|
1264
1267
|
lvl4: string[];
|
|
1265
|
-
};
|
|
1266
|
-
categoryNames
|
|
1267
|
-
purchasePrice?: number | undefined;
|
|
1268
|
-
profitPercentage?: number | undefined;
|
|
1269
|
-
isDiscountable?: boolean | undefined;
|
|
1268
|
+
} | undefined;
|
|
1269
|
+
categoryNames?: string[] | undefined;
|
|
1270
1270
|
};
|
|
1271
1271
|
amount: number;
|
|
1272
1272
|
originalPrice?: number | undefined;
|