@jsdev_ninja/core 0.11.3 → 0.11.5
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 +3 -1
- 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 +5 -0
- package/dist/entities/Order.d.ts.map +1 -1
- package/dist/entities/Profile.d.ts +3 -0
- package/dist/entities/Profile.d.ts.map +1 -1
- package/dist/entities/Profile.js +1 -0
- package/lib/entities/Discount.ts +1 -0
- package/lib/entities/Profile.ts +1 -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
|
@@ -754,6 +754,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
754
754
|
storeId: z.ZodString;
|
|
755
755
|
tenantId: z.ZodString;
|
|
756
756
|
clientType: z.ZodEnum<["user", "company"]>;
|
|
757
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
757
758
|
displayName: z.ZodString;
|
|
758
759
|
email: z.ZodString;
|
|
759
760
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -799,6 +800,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
799
800
|
createdDate: number;
|
|
800
801
|
lastActivityDate: number;
|
|
801
802
|
paymentType: "default" | "delayed";
|
|
803
|
+
companyName?: string | undefined;
|
|
802
804
|
phoneNumber?: string | undefined;
|
|
803
805
|
address?: {
|
|
804
806
|
country: string;
|
|
@@ -822,6 +824,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
822
824
|
createdDate: number;
|
|
823
825
|
lastActivityDate: number;
|
|
824
826
|
paymentType: "default" | "delayed";
|
|
827
|
+
companyName?: string | undefined;
|
|
825
828
|
phoneNumber?: string | undefined;
|
|
826
829
|
address?: {
|
|
827
830
|
country: string;
|
|
@@ -954,6 +957,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
954
957
|
createdDate: number;
|
|
955
958
|
lastActivityDate: number;
|
|
956
959
|
paymentType: "default" | "delayed";
|
|
960
|
+
companyName?: string | undefined;
|
|
957
961
|
phoneNumber?: string | undefined;
|
|
958
962
|
address?: {
|
|
959
963
|
country: string;
|
|
@@ -1090,6 +1094,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1090
1094
|
createdDate: number;
|
|
1091
1095
|
lastActivityDate: number;
|
|
1092
1096
|
paymentType: "default" | "delayed";
|
|
1097
|
+
companyName?: string | undefined;
|
|
1093
1098
|
phoneNumber?: string | undefined;
|
|
1094
1099
|
address?: {
|
|
1095
1100
|
country: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../lib/entities/Order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../lib/entities/Order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -8,6 +8,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
8
8
|
storeId: z.ZodString;
|
|
9
9
|
tenantId: z.ZodString;
|
|
10
10
|
clientType: z.ZodEnum<["user", "company"]>;
|
|
11
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
11
12
|
displayName: z.ZodString;
|
|
12
13
|
email: z.ZodString;
|
|
13
14
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -53,6 +54,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
53
54
|
createdDate: number;
|
|
54
55
|
lastActivityDate: number;
|
|
55
56
|
paymentType: "default" | "delayed";
|
|
57
|
+
companyName?: string | undefined;
|
|
56
58
|
phoneNumber?: string | undefined;
|
|
57
59
|
address?: {
|
|
58
60
|
country: string;
|
|
@@ -76,6 +78,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
76
78
|
createdDate: number;
|
|
77
79
|
lastActivityDate: number;
|
|
78
80
|
paymentType: "default" | "delayed";
|
|
81
|
+
companyName?: string | undefined;
|
|
79
82
|
phoneNumber?: string | undefined;
|
|
80
83
|
address?: {
|
|
81
84
|
country: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../lib/entities/Profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,wBAAwB,mCAAiC,CAAC;AACvE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../lib/entities/Profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,wBAAwB,mCAAiC,CAAC;AACvE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBxB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAErD,wBAAgB,kBAAkB,IAAI,QAAQ,CAyB7C"}
|
package/dist/entities/Profile.js
CHANGED
|
@@ -9,6 +9,7 @@ export const ProfileSchema = z.object({
|
|
|
9
9
|
storeId: notEmptyTextSchema,
|
|
10
10
|
tenantId: notEmptyTextSchema,
|
|
11
11
|
clientType: z.enum(["user", "company"]),
|
|
12
|
+
companyName: z.string().optional(),
|
|
12
13
|
displayName: notEmptyTextSchema,
|
|
13
14
|
email: z.string().email(),
|
|
14
15
|
phoneNumber: notEmptyTextSchema.optional(),
|
package/lib/entities/Discount.ts
CHANGED
package/lib/entities/Profile.ts
CHANGED
|
@@ -12,6 +12,7 @@ export const ProfileSchema = z.object({
|
|
|
12
12
|
storeId: notEmptyTextSchema,
|
|
13
13
|
tenantId: notEmptyTextSchema,
|
|
14
14
|
clientType: z.enum(["user", "company"]),
|
|
15
|
+
companyName: z.string().optional(),
|
|
15
16
|
displayName: notEmptyTextSchema,
|
|
16
17
|
email: z.string().email(),
|
|
17
18
|
phoneNumber: notEmptyTextSchema.optional(),
|