@jsdev_ninja/core 0.11.4 → 0.11.6
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 +6 -3
- 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/Discount.d.ts +18 -0
- package/dist/entities/Discount.d.ts.map +1 -1
- package/dist/entities/Discount.js +1 -0
- package/dist/entities/Order.d.ts +3 -3
- package/dist/entities/Order.js +1 -1
- package/dist/entities/Store.d.ts +6 -0
- package/dist/entities/Store.d.ts.map +1 -1
- package/dist/entities/Store.js +2 -0
- package/lib/entities/Discount.ts +1 -0
- package/lib/entities/Order.ts +1 -1
- package/lib/entities/Store.ts +2 -0
- package/package.json +1 -1
|
@@ -31,6 +31,16 @@ export declare const DiscountSchema: z.ZodObject<{
|
|
|
31
31
|
requiredQuantity: number;
|
|
32
32
|
discountPrice: number;
|
|
33
33
|
}>]>;
|
|
34
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
url: z.ZodString;
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
id: string;
|
|
39
|
+
url: string;
|
|
40
|
+
}, {
|
|
41
|
+
id: string;
|
|
42
|
+
url: string;
|
|
43
|
+
}>>;
|
|
34
44
|
}, "strip", z.ZodTypeAny, {
|
|
35
45
|
type: "Discount";
|
|
36
46
|
id: string;
|
|
@@ -47,6 +57,10 @@ export declare const DiscountSchema: z.ZodObject<{
|
|
|
47
57
|
requiredQuantity: number;
|
|
48
58
|
discountPrice: number;
|
|
49
59
|
};
|
|
60
|
+
image?: {
|
|
61
|
+
id: string;
|
|
62
|
+
url: string;
|
|
63
|
+
} | undefined;
|
|
50
64
|
}, {
|
|
51
65
|
type: "Discount";
|
|
52
66
|
id: string;
|
|
@@ -63,6 +77,10 @@ export declare const DiscountSchema: z.ZodObject<{
|
|
|
63
77
|
requiredQuantity: number;
|
|
64
78
|
discountPrice: number;
|
|
65
79
|
};
|
|
80
|
+
image?: {
|
|
81
|
+
id: string;
|
|
82
|
+
url: string;
|
|
83
|
+
} | undefined;
|
|
66
84
|
}>;
|
|
67
85
|
export type TDiscount = z.infer<typeof DiscountSchema>;
|
|
68
86
|
//# sourceMappingURL=Discount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../lib/entities/Discount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../lib/entities/Discount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBzB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/entities/Order.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
6
6
|
storeId: z.ZodString;
|
|
7
7
|
userId: z.ZodString;
|
|
8
8
|
status: z.ZodEnum<["draft", "pending", "processing", "in_delivery", "delivered", "cancelled", "completed", "refunded"]>;
|
|
9
|
-
paymentStatus: z.ZodEnum<["pending", "pending_j5", "completed", "failed", "refunded"]>;
|
|
9
|
+
paymentStatus: z.ZodEnum<["pending", "pending_j5", "external", "completed", "failed", "refunded"]>;
|
|
10
10
|
cart: z.ZodObject<{
|
|
11
11
|
id: z.ZodString;
|
|
12
12
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -844,7 +844,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
844
844
|
companyId: string;
|
|
845
845
|
storeId: string;
|
|
846
846
|
userId: string;
|
|
847
|
-
paymentStatus: "completed" | "pending" | "refunded" | "pending_j5" | "failed";
|
|
847
|
+
paymentStatus: "completed" | "pending" | "refunded" | "pending_j5" | "external" | "failed";
|
|
848
848
|
cart: {
|
|
849
849
|
id: string;
|
|
850
850
|
items: {
|
|
@@ -981,7 +981,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
981
981
|
companyId: string;
|
|
982
982
|
storeId: string;
|
|
983
983
|
userId: string;
|
|
984
|
-
paymentStatus: "completed" | "pending" | "refunded" | "pending_j5" | "failed";
|
|
984
|
+
paymentStatus: "completed" | "pending" | "refunded" | "pending_j5" | "external" | "failed";
|
|
985
985
|
cart: {
|
|
986
986
|
id: string;
|
|
987
987
|
items: {
|
package/dist/entities/Order.js
CHANGED
|
@@ -24,7 +24,7 @@ export const OrderSchema = z.object({
|
|
|
24
24
|
"completed",
|
|
25
25
|
"refunded",
|
|
26
26
|
]),
|
|
27
|
-
paymentStatus: z.enum(["pending", "pending_j5", "completed", "failed", "refunded"]), //todo check if hyp support partial refund
|
|
27
|
+
paymentStatus: z.enum(["pending", "pending_j5", "external", "completed", "failed", "refunded"]), //todo check if hyp support partial refund
|
|
28
28
|
cart: z.object({
|
|
29
29
|
id: z.string(),
|
|
30
30
|
items: z.array(CartItemProductSchema),
|
package/dist/entities/Store.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ declare const StoreSchema: z.ZodObject<{
|
|
|
10
10
|
allowAnonymousClients: z.ZodBoolean;
|
|
11
11
|
isVatIncludedInPrice: z.ZodBoolean;
|
|
12
12
|
clientTypes: z.ZodArray<z.ZodEnum<["individual", "company"]>, "many">;
|
|
13
|
+
minimumOrder: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
freeOrderPrice: z.ZodOptional<z.ZodNumber>;
|
|
13
15
|
}, "strip", z.ZodTypeAny, {
|
|
14
16
|
id: string;
|
|
15
17
|
companyId: string;
|
|
@@ -21,6 +23,8 @@ declare const StoreSchema: z.ZodObject<{
|
|
|
21
23
|
allowAnonymousClients: boolean;
|
|
22
24
|
isVatIncludedInPrice: boolean;
|
|
23
25
|
clientTypes: ("company" | "individual")[];
|
|
26
|
+
minimumOrder?: number | undefined;
|
|
27
|
+
freeOrderPrice?: number | undefined;
|
|
24
28
|
}, {
|
|
25
29
|
id: string;
|
|
26
30
|
companyId: string;
|
|
@@ -32,6 +36,8 @@ declare const StoreSchema: z.ZodObject<{
|
|
|
32
36
|
allowAnonymousClients: boolean;
|
|
33
37
|
isVatIncludedInPrice: boolean;
|
|
34
38
|
clientTypes: ("company" | "individual")[];
|
|
39
|
+
minimumOrder?: number | undefined;
|
|
40
|
+
freeOrderPrice?: number | undefined;
|
|
35
41
|
}>;
|
|
36
42
|
export type TStore = z.infer<typeof StoreSchema>;
|
|
37
43
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../lib/entities/Store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../lib/entities/Store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaf,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/entities/Store.js
CHANGED
package/lib/entities/Discount.ts
CHANGED
package/lib/entities/Order.ts
CHANGED
|
@@ -28,7 +28,7 @@ export const OrderSchema = z.object({
|
|
|
28
28
|
"completed",
|
|
29
29
|
"refunded",
|
|
30
30
|
]),
|
|
31
|
-
paymentStatus: z.enum(["pending", "pending_j5", "completed", "failed", "refunded"]), //todo check if hyp support partial refund
|
|
31
|
+
paymentStatus: z.enum(["pending", "pending_j5", "external", "completed", "failed", "refunded"]), //todo check if hyp support partial refund
|
|
32
32
|
cart: z.object({
|
|
33
33
|
id: z.string(),
|
|
34
34
|
items: z.array(CartItemProductSchema),
|
package/lib/entities/Store.ts
CHANGED
|
@@ -12,5 +12,7 @@ const StoreSchema = z.object({
|
|
|
12
12
|
allowAnonymousClients: z.boolean(),
|
|
13
13
|
isVatIncludedInPrice: z.boolean(),
|
|
14
14
|
clientTypes: z.array(clientTypesSchema),
|
|
15
|
+
minimumOrder: z.number().optional(),
|
|
16
|
+
freeOrderPrice: z.number().optional(),
|
|
15
17
|
});
|
|
16
18
|
export type TStore = z.infer<typeof StoreSchema>;
|