@jsdev_ninja/core 0.13.29 → 0.13.30
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 +1 -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/lib/entities/Order.d.ts +8 -8
- package/dist/lib/entities/Organization.d.ts +6 -6
- package/dist/lib/entities/Payment/index.d.ts +1 -1
- package/dist/lib/entities/Payment/index.d.ts.map +1 -1
- package/dist/lib/entities/Payment/index.js +1 -1
- package/dist/lib/entities/Profile.d.ts +3 -3
- package/dist/lib/entities/Store.d.ts +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
7
7
|
storeId: z.ZodString;
|
|
8
8
|
userId: z.ZodString;
|
|
9
9
|
status: z.ZodEnum<["draft", "pending", "processing", "in_delivery", "delivered", "cancelled", "completed", "refunded"]>;
|
|
10
|
-
paymentType: z.ZodOptional<z.ZodEnum<["external", "j5"]>>;
|
|
10
|
+
paymentType: z.ZodOptional<z.ZodEnum<["external", "j5", "none"]>>;
|
|
11
11
|
paymentStatus: z.ZodEnum<["pending", "pending_j5", "external", "completed", "failed", "refunded"]>;
|
|
12
12
|
cart: z.ZodObject<{
|
|
13
13
|
id: z.ZodString;
|
|
@@ -804,7 +804,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
804
804
|
isAnonymous: z.ZodBoolean;
|
|
805
805
|
createdDate: z.ZodNumber;
|
|
806
806
|
lastActivityDate: z.ZodNumber;
|
|
807
|
-
paymentType: z.ZodEnum<["external", "j5"]>;
|
|
807
|
+
paymentType: z.ZodEnum<["external", "j5", "none"]>;
|
|
808
808
|
organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
809
809
|
}, "strip", z.ZodTypeAny, {
|
|
810
810
|
type: "Profile";
|
|
@@ -818,7 +818,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
818
818
|
isAnonymous: boolean;
|
|
819
819
|
createdDate: number;
|
|
820
820
|
lastActivityDate: number;
|
|
821
|
-
paymentType: "external" | "j5";
|
|
821
|
+
paymentType: "none" | "external" | "j5";
|
|
822
822
|
companyName?: string | undefined;
|
|
823
823
|
phoneNumber?: string | undefined;
|
|
824
824
|
address?: {
|
|
@@ -843,7 +843,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
843
843
|
isAnonymous: boolean;
|
|
844
844
|
createdDate: number;
|
|
845
845
|
lastActivityDate: number;
|
|
846
|
-
paymentType: "external" | "j5";
|
|
846
|
+
paymentType: "none" | "external" | "j5";
|
|
847
847
|
companyName?: string | undefined;
|
|
848
848
|
phoneNumber?: string | undefined;
|
|
849
849
|
address?: {
|
|
@@ -1395,7 +1395,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1395
1395
|
deliveryPrice?: number | undefined;
|
|
1396
1396
|
};
|
|
1397
1397
|
deliveryDate: number;
|
|
1398
|
-
paymentType?: "external" | "j5" | undefined;
|
|
1398
|
+
paymentType?: "none" | "external" | "j5" | undefined;
|
|
1399
1399
|
organizationId?: string | undefined;
|
|
1400
1400
|
nameOnInvoice?: string | undefined;
|
|
1401
1401
|
createdBy?: "user" | "admin" | undefined;
|
|
@@ -1419,7 +1419,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1419
1419
|
isAnonymous: boolean;
|
|
1420
1420
|
createdDate: number;
|
|
1421
1421
|
lastActivityDate: number;
|
|
1422
|
-
paymentType: "external" | "j5";
|
|
1422
|
+
paymentType: "none" | "external" | "j5";
|
|
1423
1423
|
companyName?: string | undefined;
|
|
1424
1424
|
phoneNumber?: string | undefined;
|
|
1425
1425
|
address?: {
|
|
@@ -1653,7 +1653,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1653
1653
|
deliveryPrice?: number | undefined;
|
|
1654
1654
|
};
|
|
1655
1655
|
deliveryDate: number;
|
|
1656
|
-
paymentType?: "external" | "j5" | undefined;
|
|
1656
|
+
paymentType?: "none" | "external" | "j5" | undefined;
|
|
1657
1657
|
organizationId?: string | undefined;
|
|
1658
1658
|
nameOnInvoice?: string | undefined;
|
|
1659
1659
|
createdBy?: "user" | "admin" | undefined;
|
|
@@ -1677,7 +1677,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1677
1677
|
isAnonymous: boolean;
|
|
1678
1678
|
createdDate: number;
|
|
1679
1679
|
lastActivityDate: number;
|
|
1680
|
-
paymentType: "external" | "j5";
|
|
1680
|
+
paymentType: "none" | "external" | "j5";
|
|
1681
1681
|
companyName?: string | undefined;
|
|
1682
1682
|
phoneNumber?: string | undefined;
|
|
1683
1683
|
address?: {
|
|
@@ -30,11 +30,11 @@ export declare const OrganizationSchema: z.ZodObject<{
|
|
|
30
30
|
id: string;
|
|
31
31
|
name: string;
|
|
32
32
|
}>, "many">;
|
|
33
|
-
paymentType: z.ZodEnum<["external", "j5"]>;
|
|
33
|
+
paymentType: z.ZodEnum<["external", "j5", "none"]>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
id: string;
|
|
36
36
|
name: string;
|
|
37
|
-
paymentType: "external" | "j5";
|
|
37
|
+
paymentType: "none" | "external" | "j5";
|
|
38
38
|
billingAccounts: {
|
|
39
39
|
number: string;
|
|
40
40
|
id: string;
|
|
@@ -45,7 +45,7 @@ export declare const OrganizationSchema: z.ZodObject<{
|
|
|
45
45
|
}, {
|
|
46
46
|
id: string;
|
|
47
47
|
name: string;
|
|
48
|
-
paymentType: "external" | "j5";
|
|
48
|
+
paymentType: "none" | "external" | "j5";
|
|
49
49
|
billingAccounts: {
|
|
50
50
|
number: string;
|
|
51
51
|
id: string;
|
|
@@ -72,10 +72,10 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
|
|
|
72
72
|
id: string;
|
|
73
73
|
name: string;
|
|
74
74
|
}>, "many">;
|
|
75
|
-
paymentType: z.ZodEnum<["external", "j5"]>;
|
|
75
|
+
paymentType: z.ZodEnum<["external", "j5", "none"]>;
|
|
76
76
|
}, "id">, "strip", z.ZodTypeAny, {
|
|
77
77
|
name: string;
|
|
78
|
-
paymentType: "external" | "j5";
|
|
78
|
+
paymentType: "none" | "external" | "j5";
|
|
79
79
|
billingAccounts: {
|
|
80
80
|
number: string;
|
|
81
81
|
id: string;
|
|
@@ -85,7 +85,7 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
|
|
|
85
85
|
nameOnInvoice?: string | undefined;
|
|
86
86
|
}, {
|
|
87
87
|
name: string;
|
|
88
|
-
paymentType: "external" | "j5";
|
|
88
|
+
paymentType: "none" | "external" | "j5";
|
|
89
89
|
billingAccounts: {
|
|
90
90
|
number: string;
|
|
91
91
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const PaymentTypeSchema: z.ZodEnum<["external", "j5"]>;
|
|
2
|
+
export declare const PaymentTypeSchema: z.ZodEnum<["external", "j5", "none"]>;
|
|
3
3
|
export type TPaymentType = z.infer<typeof PaymentTypeSchema>;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/entities/Payment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/entities/Payment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB,uCAAqC,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
// payment type priority -> store -> organization -> profile (profile is stronger)
|
|
3
3
|
// value fixed on order creation, can be changed later by admin
|
|
4
|
-
export const PaymentTypeSchema = z.enum(["external", "j5"]);
|
|
4
|
+
export const PaymentTypeSchema = z.enum(["external", "j5", "none"]);
|
|
@@ -38,7 +38,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
38
38
|
isAnonymous: z.ZodBoolean;
|
|
39
39
|
createdDate: z.ZodNumber;
|
|
40
40
|
lastActivityDate: z.ZodNumber;
|
|
41
|
-
paymentType: z.ZodEnum<["external", "j5"]>;
|
|
41
|
+
paymentType: z.ZodEnum<["external", "j5", "none"]>;
|
|
42
42
|
organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
type: "Profile";
|
|
@@ -52,7 +52,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
52
52
|
isAnonymous: boolean;
|
|
53
53
|
createdDate: number;
|
|
54
54
|
lastActivityDate: number;
|
|
55
|
-
paymentType: "external" | "j5";
|
|
55
|
+
paymentType: "none" | "external" | "j5";
|
|
56
56
|
companyName?: string | undefined;
|
|
57
57
|
phoneNumber?: string | undefined;
|
|
58
58
|
address?: {
|
|
@@ -77,7 +77,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
77
77
|
isAnonymous: boolean;
|
|
78
78
|
createdDate: number;
|
|
79
79
|
lastActivityDate: number;
|
|
80
|
-
paymentType: "external" | "j5";
|
|
80
|
+
paymentType: "none" | "external" | "j5";
|
|
81
81
|
companyName?: string | undefined;
|
|
82
82
|
phoneNumber?: string | undefined;
|
|
83
83
|
address?: {
|
|
@@ -7,7 +7,7 @@ export declare const StoreSchema: z.ZodObject<{
|
|
|
7
7
|
urls: z.ZodArray<z.ZodString, "many">;
|
|
8
8
|
logoUrl: z.ZodString;
|
|
9
9
|
tenantId: z.ZodString;
|
|
10
|
-
paymentType: z.ZodEnum<["external", "j5"]>;
|
|
10
|
+
paymentType: z.ZodEnum<["external", "j5", "none"]>;
|
|
11
11
|
allowAnonymousClients: z.ZodBoolean;
|
|
12
12
|
isVatIncludedInPrice: z.ZodBoolean;
|
|
13
13
|
clientTypes: z.ZodArray<z.ZodEnum<["individual", "company"]>, "many">;
|
|
@@ -45,7 +45,7 @@ export declare const StoreSchema: z.ZodObject<{
|
|
|
45
45
|
companyId: string;
|
|
46
46
|
name: string;
|
|
47
47
|
tenantId: string;
|
|
48
|
-
paymentType: "external" | "j5";
|
|
48
|
+
paymentType: "none" | "external" | "j5";
|
|
49
49
|
isVatIncludedInPrice: boolean;
|
|
50
50
|
urls: string[];
|
|
51
51
|
logoUrl: string;
|
|
@@ -69,7 +69,7 @@ export declare const StoreSchema: z.ZodObject<{
|
|
|
69
69
|
companyId: string;
|
|
70
70
|
name: string;
|
|
71
71
|
tenantId: string;
|
|
72
|
-
paymentType: "external" | "j5";
|
|
72
|
+
paymentType: "none" | "external" | "j5";
|
|
73
73
|
isVatIncludedInPrice: boolean;
|
|
74
74
|
urls: string[];
|
|
75
75
|
logoUrl: string;
|