@jsdev_ninja/core 0.10.3 → 0.10.4
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 +113 -109
- 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/Order.d.ts +5 -0
- package/dist/entities/Order.d.ts.map +1 -1
- package/dist/entities/Profile.d.ts +5 -0
- package/dist/entities/Profile.d.ts.map +1 -1
- package/dist/entities/Profile.js +3 -0
- package/dist/entities/Store.d.ts +5 -2
- package/dist/entities/Store.d.ts.map +1 -1
- package/dist/entities/Store.js +1 -0
- package/lib/entities/Store.ts +1 -0
- package/package.json +1 -1
package/dist/entities/Order.d.ts
CHANGED
|
@@ -763,6 +763,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
763
763
|
isAnonymous: z.ZodBoolean;
|
|
764
764
|
createdDate: z.ZodNumber;
|
|
765
765
|
lastActivityDate: z.ZodNumber;
|
|
766
|
+
paymentType: z.ZodEnum<["default", "delayed"]>;
|
|
766
767
|
}, "strip", z.ZodTypeAny, {
|
|
767
768
|
type: "Profile";
|
|
768
769
|
id: string;
|
|
@@ -775,6 +776,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
775
776
|
isAnonymous: boolean;
|
|
776
777
|
createdDate: number;
|
|
777
778
|
lastActivityDate: number;
|
|
779
|
+
paymentType: "default" | "delayed";
|
|
778
780
|
phoneNumber?: string | undefined;
|
|
779
781
|
address?: {
|
|
780
782
|
country: string;
|
|
@@ -797,6 +799,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
797
799
|
isAnonymous: boolean;
|
|
798
800
|
createdDate: number;
|
|
799
801
|
lastActivityDate: number;
|
|
802
|
+
paymentType: "default" | "delayed";
|
|
800
803
|
phoneNumber?: string | undefined;
|
|
801
804
|
address?: {
|
|
802
805
|
country: string;
|
|
@@ -924,6 +927,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
924
927
|
isAnonymous: boolean;
|
|
925
928
|
createdDate: number;
|
|
926
929
|
lastActivityDate: number;
|
|
930
|
+
paymentType: "default" | "delayed";
|
|
927
931
|
phoneNumber?: string | undefined;
|
|
928
932
|
address?: {
|
|
929
933
|
country: string;
|
|
@@ -1055,6 +1059,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1055
1059
|
isAnonymous: boolean;
|
|
1056
1060
|
createdDate: number;
|
|
1057
1061
|
lastActivityDate: number;
|
|
1062
|
+
paymentType: "default" | "delayed";
|
|
1058
1063
|
phoneNumber?: string | undefined;
|
|
1059
1064
|
address?: {
|
|
1060
1065
|
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;AAaxB,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;AAaxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BtB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const ProfilePaymentTypeSchema: z.ZodEnum<["default", "delayed"]>;
|
|
3
|
+
export type TProfilePaymentType = z.infer<typeof ProfilePaymentTypeSchema>;
|
|
2
4
|
export declare const ProfileSchema: z.ZodObject<{
|
|
3
5
|
type: z.ZodLiteral<"Profile">;
|
|
4
6
|
id: z.ZodString;
|
|
@@ -37,6 +39,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
37
39
|
isAnonymous: z.ZodBoolean;
|
|
38
40
|
createdDate: z.ZodNumber;
|
|
39
41
|
lastActivityDate: z.ZodNumber;
|
|
42
|
+
paymentType: z.ZodEnum<["default", "delayed"]>;
|
|
40
43
|
}, "strip", z.ZodTypeAny, {
|
|
41
44
|
type: "Profile";
|
|
42
45
|
id: string;
|
|
@@ -49,6 +52,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
49
52
|
isAnonymous: boolean;
|
|
50
53
|
createdDate: number;
|
|
51
54
|
lastActivityDate: number;
|
|
55
|
+
paymentType: "default" | "delayed";
|
|
52
56
|
phoneNumber?: string | undefined;
|
|
53
57
|
address?: {
|
|
54
58
|
country: string;
|
|
@@ -71,6 +75,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
71
75
|
isAnonymous: boolean;
|
|
72
76
|
createdDate: number;
|
|
73
77
|
lastActivityDate: number;
|
|
78
|
+
paymentType: "default" | "delayed";
|
|
74
79
|
phoneNumber?: string | undefined;
|
|
75
80
|
address?: {
|
|
76
81
|
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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAexB,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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AddressSchema } from "./Address";
|
|
3
3
|
import { notEmptyTextSchema } from "./Atoms";
|
|
4
|
+
export const ProfilePaymentTypeSchema = z.enum(["default", "delayed"]);
|
|
4
5
|
export const ProfileSchema = z.object({
|
|
5
6
|
type: z.literal("Profile"),
|
|
6
7
|
id: notEmptyTextSchema,
|
|
@@ -15,6 +16,7 @@ export const ProfileSchema = z.object({
|
|
|
15
16
|
isAnonymous: z.boolean(),
|
|
16
17
|
createdDate: z.number(),
|
|
17
18
|
lastActivityDate: z.number(),
|
|
19
|
+
paymentType: ProfilePaymentTypeSchema,
|
|
18
20
|
});
|
|
19
21
|
export function createEmptyProfile() {
|
|
20
22
|
return {
|
|
@@ -39,5 +41,6 @@ export function createEmptyProfile() {
|
|
|
39
41
|
createdDate: 0,
|
|
40
42
|
lastActivityDate: 0,
|
|
41
43
|
isAnonymous: true,
|
|
44
|
+
paymentType: ProfilePaymentTypeSchema.Values.default,
|
|
42
45
|
};
|
|
43
46
|
}
|
package/dist/entities/Store.d.ts
CHANGED
|
@@ -7,22 +7,25 @@ declare const StoreSchema: z.ZodObject<{
|
|
|
7
7
|
logoUrl: z.ZodString;
|
|
8
8
|
tenantId: z.ZodString;
|
|
9
9
|
paymentType: z.ZodEnum<["external", "j5"]>;
|
|
10
|
+
allowAnonymousClients: z.ZodBoolean;
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
12
|
id: string;
|
|
12
13
|
companyId: string;
|
|
13
14
|
name: string;
|
|
14
15
|
tenantId: string;
|
|
16
|
+
paymentType: "external" | "j5";
|
|
15
17
|
urls: string[];
|
|
16
18
|
logoUrl: string;
|
|
17
|
-
|
|
19
|
+
allowAnonymousClients: boolean;
|
|
18
20
|
}, {
|
|
19
21
|
id: string;
|
|
20
22
|
companyId: string;
|
|
21
23
|
name: string;
|
|
22
24
|
tenantId: string;
|
|
25
|
+
paymentType: "external" | "j5";
|
|
23
26
|
urls: string[];
|
|
24
27
|
logoUrl: string;
|
|
25
|
-
|
|
28
|
+
allowAnonymousClients: boolean;
|
|
26
29
|
}>;
|
|
27
30
|
export type TStore = z.infer<typeof StoreSchema>;
|
|
28
31
|
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;AAExB,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;AAExB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;EASf,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/entities/Store.js
CHANGED
package/lib/entities/Store.ts
CHANGED