@pax2pay/model-banking 0.1.654 → 0.1.656
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/Account/Type.ts +2 -0
- package/Backup/Rule.ts +13 -9
- package/Organization/Changeable.ts +5 -0
- package/Organization/Contact/Address/GB.ts +8 -0
- package/Organization/Contact/Address/General.ts +9 -0
- package/Organization/Contact/Address/SE.ts +7 -0
- package/Organization/Contact/Address/index.ts +2 -0
- package/Organization/Contact/Addresses.ts +7 -0
- package/Organization/Contact/Creatable.ts +8 -0
- package/Organization/Contact/Name.ts +2 -0
- package/Organization/Contact/Phone.ts +5 -0
- package/Organization/Contact/index.ts +8 -0
- package/Organization/Creatable.ts +11 -1
- package/Organization/Fx.ts +2 -0
- package/Organization/Risk.ts +2 -0
- package/Organization/index.ts +14 -1
- package/Rule/State/Transaction.ts +2 -2
- package/Rule/State/index.ts +2 -2
- package/Rule/index.ts +7 -36
- package/Rule/type.ts +5 -2
- package/Transaction/Note.ts +10 -2
- package/dist/cjs/Account/Type.d.ts +5 -0
- package/dist/cjs/Account/Type.js +2 -0
- package/dist/cjs/Account/Type.js.map +1 -1
- package/dist/cjs/Audit.d.ts +1 -1
- package/dist/cjs/Backup/Rule.d.ts +1 -1
- package/dist/cjs/Backup/Rule.js +12 -9
- package/dist/cjs/Backup/Rule.js.map +1 -1
- package/dist/cjs/Organization/Changeable.d.ts +97 -0
- package/dist/cjs/Organization/Changeable.js +5 -0
- package/dist/cjs/Organization/Changeable.js.map +1 -1
- package/dist/cjs/Organization/Contact/Address/GB.d.ts +8 -0
- package/dist/cjs/Organization/Contact/Address/GB.js +8 -0
- package/dist/cjs/Organization/Contact/Address/GB.js.map +1 -1
- package/dist/cjs/Organization/Contact/Address/General.d.ts +9 -0
- package/dist/cjs/Organization/Contact/Address/General.js +9 -0
- package/dist/cjs/Organization/Contact/Address/General.js.map +1 -1
- package/dist/cjs/Organization/Contact/Address/SE.d.ts +7 -0
- package/dist/cjs/Organization/Contact/Address/SE.js +7 -0
- package/dist/cjs/Organization/Contact/Address/SE.js.map +1 -1
- package/dist/cjs/Organization/Contact/Address/index.d.ts +20 -0
- package/dist/cjs/Organization/Contact/Address/index.js +2 -0
- package/dist/cjs/Organization/Contact/Address/index.js.map +1 -1
- package/dist/cjs/Organization/Contact/Addresses.d.ts +79 -0
- package/dist/cjs/Organization/Contact/Addresses.js +7 -0
- package/dist/cjs/Organization/Contact/Addresses.js.map +1 -1
- package/dist/cjs/Organization/Contact/Creatable.d.ts +94 -0
- package/dist/cjs/Organization/Contact/Creatable.js +8 -0
- package/dist/cjs/Organization/Contact/Creatable.js.map +1 -1
- package/dist/cjs/Organization/Contact/Name.d.ts +5 -0
- package/dist/cjs/Organization/Contact/Name.js +2 -0
- package/dist/cjs/Organization/Contact/Name.js.map +1 -1
- package/dist/cjs/Organization/Contact/Phone.d.ts +5 -0
- package/dist/cjs/Organization/Contact/Phone.js +5 -0
- package/dist/cjs/Organization/Contact/Phone.js.map +1 -1
- package/dist/cjs/Organization/Contact/index.d.ts +94 -0
- package/dist/cjs/Organization/Contact/index.js +8 -0
- package/dist/cjs/Organization/Contact/index.js.map +1 -1
- package/dist/cjs/Organization/Creatable.d.ts +110 -1
- package/dist/cjs/Organization/Creatable.js +10 -0
- package/dist/cjs/Organization/Creatable.js.map +1 -1
- package/dist/cjs/Organization/Fx.d.ts +4 -0
- package/dist/cjs/Organization/Fx.js +2 -0
- package/dist/cjs/Organization/Fx.js.map +1 -1
- package/dist/cjs/Organization/Risk.d.ts +7 -0
- package/dist/cjs/Organization/Risk.js +2 -0
- package/dist/cjs/Organization/Risk.js.map +1 -1
- package/dist/cjs/Organization/index.d.ts +123 -1
- package/dist/cjs/Organization/index.js +13 -0
- package/dist/cjs/Organization/index.js.map +1 -1
- package/dist/cjs/Rule/State/Transaction.d.ts +2 -2
- package/dist/cjs/Rule/State/Transaction.js.map +1 -1
- package/dist/cjs/Rule/State/index.d.ts +3 -3
- package/dist/cjs/Rule/State/index.js.map +1 -1
- package/dist/cjs/Rule/index.d.ts +8 -14
- package/dist/cjs/Rule/index.js +6 -33
- package/dist/cjs/Rule/index.js.map +1 -1
- package/dist/cjs/Rule/type.d.ts +2 -2
- package/dist/cjs/Rule/type.js +2 -2
- package/dist/cjs/Rule/type.js.map +1 -1
- package/dist/cjs/Transaction/Note.d.ts +10 -2
- package/dist/cjs/Transaction/Note.js.map +1 -1
- package/dist/cjs/User/Access/Permission.d.ts +4 -4
- package/dist/cjs/User/Access/index.d.ts +3 -3
- package/dist/cjs/User/JWT/Payload.d.ts +12 -12
- package/dist/cjs/User/index.d.ts +6 -6
- package/dist/mjs/Account/Type.d.ts +5 -0
- package/dist/mjs/Account/Type.js +2 -0
- package/dist/mjs/Account/Type.js.map +1 -1
- package/dist/mjs/Audit.d.ts +1 -1
- package/dist/mjs/Backup/Rule.d.ts +1 -1
- package/dist/mjs/Backup/Rule.js +12 -9
- package/dist/mjs/Backup/Rule.js.map +1 -1
- package/dist/mjs/Organization/Changeable.d.ts +97 -0
- package/dist/mjs/Organization/Changeable.js +5 -0
- package/dist/mjs/Organization/Changeable.js.map +1 -1
- package/dist/mjs/Organization/Contact/Address/GB.d.ts +8 -0
- package/dist/mjs/Organization/Contact/Address/GB.js +8 -0
- package/dist/mjs/Organization/Contact/Address/GB.js.map +1 -1
- package/dist/mjs/Organization/Contact/Address/General.d.ts +9 -0
- package/dist/mjs/Organization/Contact/Address/General.js +9 -0
- package/dist/mjs/Organization/Contact/Address/General.js.map +1 -1
- package/dist/mjs/Organization/Contact/Address/SE.d.ts +7 -0
- package/dist/mjs/Organization/Contact/Address/SE.js +7 -0
- package/dist/mjs/Organization/Contact/Address/SE.js.map +1 -1
- package/dist/mjs/Organization/Contact/Address/index.d.ts +20 -0
- package/dist/mjs/Organization/Contact/Address/index.js +2 -0
- package/dist/mjs/Organization/Contact/Address/index.js.map +1 -1
- package/dist/mjs/Organization/Contact/Addresses.d.ts +79 -0
- package/dist/mjs/Organization/Contact/Addresses.js +7 -0
- package/dist/mjs/Organization/Contact/Addresses.js.map +1 -1
- package/dist/mjs/Organization/Contact/Creatable.d.ts +94 -0
- package/dist/mjs/Organization/Contact/Creatable.js +8 -0
- package/dist/mjs/Organization/Contact/Creatable.js.map +1 -1
- package/dist/mjs/Organization/Contact/Name.d.ts +5 -0
- package/dist/mjs/Organization/Contact/Name.js +2 -0
- package/dist/mjs/Organization/Contact/Name.js.map +1 -1
- package/dist/mjs/Organization/Contact/Phone.d.ts +5 -0
- package/dist/mjs/Organization/Contact/Phone.js +5 -0
- package/dist/mjs/Organization/Contact/Phone.js.map +1 -1
- package/dist/mjs/Organization/Contact/index.d.ts +94 -0
- package/dist/mjs/Organization/Contact/index.js +8 -0
- package/dist/mjs/Organization/Contact/index.js.map +1 -1
- package/dist/mjs/Organization/Creatable.d.ts +110 -1
- package/dist/mjs/Organization/Creatable.js +10 -0
- package/dist/mjs/Organization/Creatable.js.map +1 -1
- package/dist/mjs/Organization/Fx.d.ts +4 -0
- package/dist/mjs/Organization/Fx.js +2 -0
- package/dist/mjs/Organization/Fx.js.map +1 -1
- package/dist/mjs/Organization/Risk.d.ts +7 -0
- package/dist/mjs/Organization/Risk.js +2 -0
- package/dist/mjs/Organization/Risk.js.map +1 -1
- package/dist/mjs/Organization/index.d.ts +123 -1
- package/dist/mjs/Organization/index.js +13 -0
- package/dist/mjs/Organization/index.js.map +1 -1
- package/dist/mjs/Rule/State/Transaction.d.ts +2 -2
- package/dist/mjs/Rule/State/Transaction.js.map +1 -1
- package/dist/mjs/Rule/State/index.d.ts +3 -3
- package/dist/mjs/Rule/State/index.js.map +1 -1
- package/dist/mjs/Rule/index.d.ts +8 -14
- package/dist/mjs/Rule/index.js +6 -33
- package/dist/mjs/Rule/index.js.map +1 -1
- package/dist/mjs/Rule/type.d.ts +2 -2
- package/dist/mjs/Rule/type.js +2 -2
- package/dist/mjs/Rule/type.js.map +1 -1
- package/dist/mjs/Transaction/Note.d.ts +10 -2
- package/dist/mjs/Transaction/Note.js.map +1 -1
- package/dist/mjs/User/Access/Permission.d.ts +4 -4
- package/dist/mjs/User/Access/index.d.ts +3 -3
- package/dist/mjs/User/JWT/Payload.d.ts +12 -12
- package/dist/mjs/User/index.d.ts +6 -6
- package/package.json +5 -3
- package/Rule/Base.ts +0 -43
- package/Rule/Other.ts +0 -47
- package/Rule/control.ts +0 -7
- package/dist/cjs/Rule/Base.d.ts +0 -27
- package/dist/cjs/Rule/Base.js +0 -36
- package/dist/cjs/Rule/Base.js.map +0 -1
- package/dist/cjs/Rule/Other.d.ts +0 -20
- package/dist/cjs/Rule/Other.js +0 -42
- package/dist/cjs/Rule/Other.js.map +0 -1
- package/dist/cjs/Rule/control.d.ts +0 -4
- package/dist/cjs/Rule/control.js +0 -8
- package/dist/cjs/Rule/control.js.map +0 -1
- package/dist/mjs/Rule/Base.d.ts +0 -27
- package/dist/mjs/Rule/Base.js +0 -33
- package/dist/mjs/Rule/Base.js.map +0 -1
- package/dist/mjs/Rule/Other.d.ts +0 -20
- package/dist/mjs/Rule/Other.js +0 -39
- package/dist/mjs/Rule/Other.js.map +0 -1
- package/dist/mjs/Rule/control.d.ts +0 -4
- package/dist/mjs/Rule/control.js +0 -5
- package/dist/mjs/Rule/control.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
1
2
|
export interface GB {
|
|
2
3
|
countryCode: "GB";
|
|
3
4
|
city: string;
|
|
@@ -8,4 +9,11 @@ export interface GB {
|
|
|
8
9
|
export declare namespace GB {
|
|
9
10
|
const name: string;
|
|
10
11
|
const type: import("isly/dist/cjs/object").IslyObject<GB, object>;
|
|
12
|
+
const typeZod: zod.ZodObject<{
|
|
13
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
14
|
+
city: zod.ZodString;
|
|
15
|
+
street: zod.ZodString;
|
|
16
|
+
building: zod.ZodString;
|
|
17
|
+
zipCode: zod.ZodString;
|
|
18
|
+
}, zod.z.core.$strip>;
|
|
11
19
|
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GB = void 0;
|
|
4
4
|
const isoly_1 = require("isoly");
|
|
5
5
|
const isly_1 = require("isly");
|
|
6
|
+
const zod_1 = require("../../../zod");
|
|
6
7
|
var GB;
|
|
7
8
|
(function (GB) {
|
|
8
9
|
GB.name = isoly_1.isoly.CountryCode.Name.en.from("GB");
|
|
@@ -13,5 +14,12 @@ var GB;
|
|
|
13
14
|
building: isly_1.isly.string(),
|
|
14
15
|
zipCode: isly_1.isly.string(),
|
|
15
16
|
});
|
|
17
|
+
GB.typeZod = zod_1.zod.object({
|
|
18
|
+
countryCode: zod_1.zod.literal("GB"),
|
|
19
|
+
city: zod_1.zod.string(),
|
|
20
|
+
street: zod_1.zod.string(),
|
|
21
|
+
building: zod_1.zod.string(),
|
|
22
|
+
zipCode: zod_1.zod.string(),
|
|
23
|
+
});
|
|
16
24
|
})(GB || (exports.GB = GB = {}));
|
|
17
25
|
//# sourceMappingURL=GB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GB.js","sourceRoot":"","sources":["../../../../../Organization/Contact/Address/GB.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;
|
|
1
|
+
{"version":3,"file":"GB.js","sourceRoot":"","sources":["../../../../../Organization/Contact/Address/GB.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAC3B,sCAAkC;AAUlC,IAAiB,EAAE,CAgBlB;AAhBD,WAAiB,EAAE;IACL,OAAI,GAAG,aAAK,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3C,OAAI,GAAG,WAAI,CAAC,MAAM,CAAK;QACnC,WAAW,EAAE,WAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QAC9B,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE;QACrB,QAAQ,EAAE,WAAI,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,WAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;IACW,UAAO,GAAG,SAAG,CAAC,MAAM,CAAC;QACjC,WAAW,EAAE,SAAG,CAAC,OAAO,CAAC,IAAI,CAAC;QAC9B,IAAI,EAAE,SAAG,CAAC,MAAM,EAAE;QAClB,MAAM,EAAE,SAAG,CAAC,MAAM,EAAE;QACpB,QAAQ,EAAE,SAAG,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE;KACrB,CAAC,CAAA;AACH,CAAC,EAhBgB,EAAE,kBAAF,EAAE,QAgBlB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
+
import { zod } from "../../../zod";
|
|
2
3
|
export interface Default {
|
|
3
4
|
countryCode: Exclude<isoly.CountryCode.Alpha2, "GB" | "SE">;
|
|
4
5
|
state?: string;
|
|
@@ -9,4 +10,12 @@ export interface Default {
|
|
|
9
10
|
}
|
|
10
11
|
export declare namespace Default {
|
|
11
12
|
const type: import("isly/dist/cjs/object").IslyObject<Default, object>;
|
|
13
|
+
const typeZod: zod.ZodObject<{
|
|
14
|
+
countryCode: zod.ZodString;
|
|
15
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
16
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
17
|
+
city: zod.ZodString;
|
|
18
|
+
zipCode: zod.ZodString;
|
|
19
|
+
street: zod.ZodString;
|
|
20
|
+
}, zod.z.core.$strip>;
|
|
12
21
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Default = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
+
const zod_1 = require("../../../zod");
|
|
5
6
|
var Default;
|
|
6
7
|
(function (Default) {
|
|
7
8
|
Default.type = isly_1.isly.object({
|
|
@@ -12,5 +13,13 @@ var Default;
|
|
|
12
13
|
street: isly_1.isly.string(),
|
|
13
14
|
zipCode: isly_1.isly.string(),
|
|
14
15
|
});
|
|
16
|
+
Default.typeZod = zod_1.zod.object({
|
|
17
|
+
countryCode: zod_1.zod.string(),
|
|
18
|
+
state: zod_1.zod.string().optional(),
|
|
19
|
+
county: zod_1.zod.string().optional(),
|
|
20
|
+
city: zod_1.zod.string(),
|
|
21
|
+
zipCode: zod_1.zod.string(),
|
|
22
|
+
street: zod_1.zod.string(),
|
|
23
|
+
});
|
|
15
24
|
})(Default || (exports.Default = Default = {}));
|
|
16
25
|
//# sourceMappingURL=General.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"General.js","sourceRoot":"","sources":["../../../../../Organization/Contact/Address/General.ts"],"names":[],"mappings":";;;AACA,+BAA2B;
|
|
1
|
+
{"version":3,"file":"General.js","sourceRoot":"","sources":["../../../../../Organization/Contact/Address/General.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAC3B,sCAAkC;AAWlC,IAAiB,OAAO,CAiBvB;AAjBD,WAAiB,OAAO;IACV,YAAI,GAAG,WAAI,CAAC,MAAM,CAAU;QACxC,WAAW,EAAE,WAAI,CAAC,MAAM,EAAE;QAC1B,KAAK,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,WAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;IACW,eAAO,GAAG,SAAG,CAAC,MAAM,CAAC;QACjC,WAAW,EAAE,SAAG,CAAC,MAAM,EAAE;QACzB,KAAK,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,MAAM,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,IAAI,EAAE,SAAG,CAAC,MAAM,EAAE;QAClB,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE;QACrB,MAAM,EAAE,SAAG,CAAC,MAAM,EAAE;KACpB,CAAC,CAAA;AACH,CAAC,EAjBgB,OAAO,uBAAP,OAAO,QAiBvB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../../../zod";
|
|
1
2
|
export interface SE {
|
|
2
3
|
countryCode: "SE";
|
|
3
4
|
zipCode: string;
|
|
@@ -6,4 +7,10 @@ export interface SE {
|
|
|
6
7
|
}
|
|
7
8
|
export declare namespace SE {
|
|
8
9
|
const type: import("isly/dist/cjs/object").IslyObject<SE, object>;
|
|
10
|
+
const typeZod: zod.ZodObject<{
|
|
11
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
12
|
+
zipCode: zod.ZodString;
|
|
13
|
+
city: zod.ZodString;
|
|
14
|
+
street: zod.ZodString;
|
|
15
|
+
}, zod.z.core.$strip>;
|
|
9
16
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SE = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
+
const zod_1 = require("../../../zod");
|
|
5
6
|
var SE;
|
|
6
7
|
(function (SE) {
|
|
7
8
|
SE.type = isly_1.isly.object({
|
|
@@ -10,5 +11,11 @@ var SE;
|
|
|
10
11
|
city: isly_1.isly.string(),
|
|
11
12
|
street: isly_1.isly.string(),
|
|
12
13
|
});
|
|
14
|
+
SE.typeZod = zod_1.zod.object({
|
|
15
|
+
countryCode: zod_1.zod.literal("SE"),
|
|
16
|
+
zipCode: zod_1.zod.string(),
|
|
17
|
+
city: zod_1.zod.string(),
|
|
18
|
+
street: zod_1.zod.string(),
|
|
19
|
+
});
|
|
13
20
|
})(SE || (exports.SE = SE = {}));
|
|
14
21
|
//# sourceMappingURL=SE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SE.js","sourceRoot":"","sources":["../../../../../Organization/Contact/Address/SE.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;
|
|
1
|
+
{"version":3,"file":"SE.js","sourceRoot":"","sources":["../../../../../Organization/Contact/Address/SE.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,sCAAkC;AAQlC,IAAiB,EAAE,CAalB;AAbD,WAAiB,EAAE;IACL,OAAI,GAAG,WAAI,CAAC,MAAM,CAAK;QACnC,WAAW,EAAE,WAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QAC9B,OAAO,EAAE,WAAI,CAAC,MAAM,EAAE;QACtB,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE;KACrB,CAAC,CAAA;IACW,UAAO,GAAG,SAAG,CAAC,MAAM,CAAC;QACjC,WAAW,EAAE,SAAG,CAAC,OAAO,CAAC,IAAI,CAAC;QAC9B,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE;QACrB,IAAI,EAAE,SAAG,CAAC,MAAM,EAAE;QAClB,MAAM,EAAE,SAAG,CAAC,MAAM,EAAE;KACpB,CAAC,CAAA;AACH,CAAC,EAbgB,EAAE,kBAAF,EAAE,QAalB"}
|
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { zod } from "../../../zod";
|
|
2
3
|
import { GB } from "./GB";
|
|
3
4
|
import { Default } from "./General";
|
|
4
5
|
import { SE } from "./SE";
|
|
5
6
|
export type Address = GB | SE | Default;
|
|
6
7
|
export declare namespace Address {
|
|
7
8
|
const type: isly.Type<GB | Default | SE>;
|
|
9
|
+
const typeZod: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
10
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
11
|
+
city: zod.ZodString;
|
|
12
|
+
street: zod.ZodString;
|
|
13
|
+
building: zod.ZodString;
|
|
14
|
+
zipCode: zod.ZodString;
|
|
15
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
16
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
17
|
+
zipCode: zod.ZodString;
|
|
18
|
+
city: zod.ZodString;
|
|
19
|
+
street: zod.ZodString;
|
|
20
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
21
|
+
countryCode: zod.ZodString;
|
|
22
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
23
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
24
|
+
city: zod.ZodString;
|
|
25
|
+
zipCode: zod.ZodString;
|
|
26
|
+
street: zod.ZodString;
|
|
27
|
+
}, zod.z.core.$strip>]>;
|
|
8
28
|
}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Address = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
+
const zod_1 = require("../../../zod");
|
|
5
6
|
const GB_1 = require("./GB");
|
|
6
7
|
const General_1 = require("./General");
|
|
7
8
|
const SE_1 = require("./SE");
|
|
8
9
|
var Address;
|
|
9
10
|
(function (Address) {
|
|
10
11
|
Address.type = isly_1.isly.union(GB_1.GB.type, SE_1.SE.type, General_1.Default.type);
|
|
12
|
+
Address.typeZod = zod_1.zod.union([GB_1.GB.typeZod, SE_1.SE.typeZod, General_1.Default.typeZod]);
|
|
11
13
|
})(Address || (exports.Address = Address = {}));
|
|
12
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Organization/Contact/Address/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,6BAAyB;AACzB,uCAAmC;AACnC,6BAAyB;AAIzB,IAAiB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Organization/Contact/Address/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,sCAAkC;AAClC,6BAAyB;AACzB,uCAAmC;AACnC,6BAAyB;AAIzB,IAAiB,OAAO,CAGvB;AAHD,WAAiB,OAAO;IACV,YAAI,GAAG,WAAI,CAAC,KAAK,CAAC,OAAE,CAAC,IAAI,EAAE,OAAE,CAAC,IAAI,EAAE,iBAAO,CAAC,IAAI,CAAC,CAAA;IACjD,eAAO,GAAG,SAAG,CAAC,KAAK,CAAC,CAAC,OAAE,CAAC,OAAO,EAAE,OAAE,CAAC,OAAO,EAAE,iBAAO,CAAC,OAAO,CAAC,CAAC,CAAA;AAC5E,CAAC,EAHgB,OAAO,uBAAP,OAAO,QAGvB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../../zod";
|
|
1
2
|
import { Address } from "./Address";
|
|
2
3
|
export interface Addresses {
|
|
3
4
|
primary: Address;
|
|
@@ -7,4 +8,82 @@ export interface Addresses {
|
|
|
7
8
|
}
|
|
8
9
|
export declare namespace Addresses {
|
|
9
10
|
const type: import("isly/dist/cjs/object").IslyObject<Addresses, object>;
|
|
11
|
+
const typeZod: zod.ZodObject<{
|
|
12
|
+
primary: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
13
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
14
|
+
city: zod.ZodString;
|
|
15
|
+
street: zod.ZodString;
|
|
16
|
+
building: zod.ZodString;
|
|
17
|
+
zipCode: zod.ZodString;
|
|
18
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
19
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
20
|
+
zipCode: zod.ZodString;
|
|
21
|
+
city: zod.ZodString;
|
|
22
|
+
street: zod.ZodString;
|
|
23
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
24
|
+
countryCode: zod.ZodString;
|
|
25
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
26
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
27
|
+
city: zod.ZodString;
|
|
28
|
+
zipCode: zod.ZodString;
|
|
29
|
+
street: zod.ZodString;
|
|
30
|
+
}, zod.z.core.$strip>]>;
|
|
31
|
+
billing: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
32
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
33
|
+
city: zod.ZodString;
|
|
34
|
+
street: zod.ZodString;
|
|
35
|
+
building: zod.ZodString;
|
|
36
|
+
zipCode: zod.ZodString;
|
|
37
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
38
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
39
|
+
zipCode: zod.ZodString;
|
|
40
|
+
city: zod.ZodString;
|
|
41
|
+
street: zod.ZodString;
|
|
42
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
43
|
+
countryCode: zod.ZodString;
|
|
44
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
45
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
46
|
+
city: zod.ZodString;
|
|
47
|
+
zipCode: zod.ZodString;
|
|
48
|
+
street: zod.ZodString;
|
|
49
|
+
}, zod.z.core.$strip>]>>;
|
|
50
|
+
delivery: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
51
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
52
|
+
city: zod.ZodString;
|
|
53
|
+
street: zod.ZodString;
|
|
54
|
+
building: zod.ZodString;
|
|
55
|
+
zipCode: zod.ZodString;
|
|
56
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
57
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
58
|
+
zipCode: zod.ZodString;
|
|
59
|
+
city: zod.ZodString;
|
|
60
|
+
street: zod.ZodString;
|
|
61
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
62
|
+
countryCode: zod.ZodString;
|
|
63
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
64
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
65
|
+
city: zod.ZodString;
|
|
66
|
+
zipCode: zod.ZodString;
|
|
67
|
+
street: zod.ZodString;
|
|
68
|
+
}, zod.z.core.$strip>]>>;
|
|
69
|
+
visit: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
70
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
71
|
+
city: zod.ZodString;
|
|
72
|
+
street: zod.ZodString;
|
|
73
|
+
building: zod.ZodString;
|
|
74
|
+
zipCode: zod.ZodString;
|
|
75
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
76
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
77
|
+
zipCode: zod.ZodString;
|
|
78
|
+
city: zod.ZodString;
|
|
79
|
+
street: zod.ZodString;
|
|
80
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
81
|
+
countryCode: zod.ZodString;
|
|
82
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
83
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
84
|
+
city: zod.ZodString;
|
|
85
|
+
zipCode: zod.ZodString;
|
|
86
|
+
street: zod.ZodString;
|
|
87
|
+
}, zod.z.core.$strip>]>>;
|
|
88
|
+
}, zod.z.core.$strip>;
|
|
10
89
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Addresses = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
+
const zod_1 = require("../../zod");
|
|
5
6
|
const Address_1 = require("./Address");
|
|
6
7
|
var Addresses;
|
|
7
8
|
(function (Addresses) {
|
|
@@ -11,5 +12,11 @@ var Addresses;
|
|
|
11
12
|
delivery: Address_1.Address.type.optional(),
|
|
12
13
|
visit: Address_1.Address.type.optional(),
|
|
13
14
|
});
|
|
15
|
+
Addresses.typeZod = zod_1.zod.object({
|
|
16
|
+
primary: Address_1.Address.typeZod,
|
|
17
|
+
billing: Address_1.Address.typeZod.optional(),
|
|
18
|
+
delivery: Address_1.Address.typeZod.optional(),
|
|
19
|
+
visit: Address_1.Address.typeZod.optional(),
|
|
20
|
+
});
|
|
14
21
|
})(Addresses || (exports.Addresses = Addresses = {}));
|
|
15
22
|
//# sourceMappingURL=Addresses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Addresses.js","sourceRoot":"","sources":["../../../../Organization/Contact/Addresses.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,uCAAmC;AAQnC,IAAiB,SAAS,
|
|
1
|
+
{"version":3,"file":"Addresses.js","sourceRoot":"","sources":["../../../../Organization/Contact/Addresses.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,mCAA+B;AAC/B,uCAAmC;AAQnC,IAAiB,SAAS,CAazB;AAbD,WAAiB,SAAS;IACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;QAC1C,OAAO,EAAE,iBAAO,CAAC,IAAI;QACrB,OAAO,EAAE,iBAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;QAChC,QAAQ,EAAE,iBAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;QACjC,KAAK,EAAE,iBAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;KAC9B,CAAC,CAAA;IACW,iBAAO,GAAG,SAAG,CAAC,MAAM,CAAC;QACjC,OAAO,EAAE,iBAAO,CAAC,OAAO;QACxB,OAAO,EAAE,iBAAO,CAAC,OAAO,CAAC,QAAQ,EAAE;QACnC,QAAQ,EAAE,iBAAO,CAAC,OAAO,CAAC,QAAQ,EAAE;QACpC,KAAK,EAAE,iBAAO,CAAC,OAAO,CAAC,QAAQ,EAAE;KACjC,CAAC,CAAA;AACH,CAAC,EAbgB,SAAS,yBAAT,SAAS,QAazB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../../zod";
|
|
1
2
|
import { Addresses } from "./Addresses";
|
|
2
3
|
import { Name } from "./Name";
|
|
3
4
|
import { Phone } from "./Phone";
|
|
@@ -10,4 +11,97 @@ export interface Creatable {
|
|
|
10
11
|
}
|
|
11
12
|
export declare namespace Creatable {
|
|
12
13
|
const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
|
|
14
|
+
const typeZod: zod.ZodObject<{
|
|
15
|
+
address: zod.ZodObject<{
|
|
16
|
+
primary: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
17
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
18
|
+
city: zod.ZodString;
|
|
19
|
+
street: zod.ZodString;
|
|
20
|
+
building: zod.ZodString;
|
|
21
|
+
zipCode: zod.ZodString;
|
|
22
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
23
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
24
|
+
zipCode: zod.ZodString;
|
|
25
|
+
city: zod.ZodString;
|
|
26
|
+
street: zod.ZodString;
|
|
27
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
28
|
+
countryCode: zod.ZodString;
|
|
29
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
30
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
31
|
+
city: zod.ZodString;
|
|
32
|
+
zipCode: zod.ZodString;
|
|
33
|
+
street: zod.ZodString;
|
|
34
|
+
}, zod.z.core.$strip>]>;
|
|
35
|
+
billing: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
36
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
37
|
+
city: zod.ZodString;
|
|
38
|
+
street: zod.ZodString;
|
|
39
|
+
building: zod.ZodString;
|
|
40
|
+
zipCode: zod.ZodString;
|
|
41
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
42
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
43
|
+
zipCode: zod.ZodString;
|
|
44
|
+
city: zod.ZodString;
|
|
45
|
+
street: zod.ZodString;
|
|
46
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
47
|
+
countryCode: zod.ZodString;
|
|
48
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
49
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
50
|
+
city: zod.ZodString;
|
|
51
|
+
zipCode: zod.ZodString;
|
|
52
|
+
street: zod.ZodString;
|
|
53
|
+
}, zod.z.core.$strip>]>>;
|
|
54
|
+
delivery: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
55
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
56
|
+
city: zod.ZodString;
|
|
57
|
+
street: zod.ZodString;
|
|
58
|
+
building: zod.ZodString;
|
|
59
|
+
zipCode: zod.ZodString;
|
|
60
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
61
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
62
|
+
zipCode: zod.ZodString;
|
|
63
|
+
city: zod.ZodString;
|
|
64
|
+
street: zod.ZodString;
|
|
65
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
66
|
+
countryCode: zod.ZodString;
|
|
67
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
68
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
69
|
+
city: zod.ZodString;
|
|
70
|
+
zipCode: zod.ZodString;
|
|
71
|
+
street: zod.ZodString;
|
|
72
|
+
}, zod.z.core.$strip>]>>;
|
|
73
|
+
visit: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
74
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
75
|
+
city: zod.ZodString;
|
|
76
|
+
street: zod.ZodString;
|
|
77
|
+
building: zod.ZodString;
|
|
78
|
+
zipCode: zod.ZodString;
|
|
79
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
80
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
81
|
+
zipCode: zod.ZodString;
|
|
82
|
+
city: zod.ZodString;
|
|
83
|
+
street: zod.ZodString;
|
|
84
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
85
|
+
countryCode: zod.ZodString;
|
|
86
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
87
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
88
|
+
city: zod.ZodString;
|
|
89
|
+
zipCode: zod.ZodString;
|
|
90
|
+
street: zod.ZodString;
|
|
91
|
+
}, zod.z.core.$strip>]>>;
|
|
92
|
+
}, zod.z.core.$strip>;
|
|
93
|
+
email: zod.ZodString;
|
|
94
|
+
name: zod.ZodObject<{
|
|
95
|
+
first: zod.ZodString;
|
|
96
|
+
last: zod.ZodString;
|
|
97
|
+
}, zod.z.core.$strip>;
|
|
98
|
+
phone: zod.ZodObject<{
|
|
99
|
+
number: zod.ZodString;
|
|
100
|
+
code: zod.ZodCustom<"+93" | "+358" | "+355" | "+213" | "+1684" | "+376" | "+244" | "+1264" | "+672" | "+1268" | "+54" | "+374" | "+297" | "+61" | "+43" | "+994" | "+1242" | "+973" | "+880" | "+1246" | "+375" | "+32" | "+501" | "+229" | "+1441" | "+975" | "+591" | "+387" | "+267" | "+55" | "+246" | "+673" | "+359" | "+226" | "+257" | "+855" | "+237" | "+1" | "+238" | "+345" | "+236" | "+235" | "+56" | "+86" | "+57" | "+269" | "+242" | "+243" | "+682" | "+506" | "+225" | "+385" | "+53" | "+357" | "+420" | "+45" | "+253" | "+1767" | "+1849" | "+593" | "+20" | "+503" | "+240" | "+291" | "+372" | "+251" | "+500" | "+298" | "+679" | "+33" | "+594" | "+689" | "+241" | "+220" | "+995" | "+49" | "+233" | "+350" | "+30" | "+299" | "+1473" | "+590" | "+1671" | "+502" | "+44" | "+224" | "+245" | "+592" | "+509" | "+379" | "+504" | "+852" | "+36" | "+354" | "+91" | "+62" | "+98" | "+964" | "+353" | "+972" | "+39" | "+1876" | "+81" | "+962" | "+77" | "+254" | "+686" | "+850" | "+82" | "+965" | "+996" | "+856" | "+371" | "+961" | "+266" | "+231" | "+218" | "+423" | "+370" | "+352" | "+853" | "+389" | "+261" | "+265" | "+60" | "+960" | "+223" | "+356" | "+692" | "+596" | "+222" | "+230" | "+262" | "+52" | "+691" | "+373" | "+377" | "+976" | "+382" | "+1664" | "+212" | "+258" | "+95" | "+264" | "+674" | "+977" | "+31" | "+599" | "+687" | "+64" | "+505" | "+227" | "+234" | "+683" | "+1670" | "+47" | "+968" | "+92" | "+680" | "+970" | "+507" | "+675" | "+595" | "+51" | "+63" | "+872" | "+48" | "+351" | "+1939" | "+974" | "+40" | "+7" | "+250" | "+290" | "+1869" | "+1758" | "+508" | "+1784" | "+685" | "+378" | "+239" | "+966" | "+221" | "+381" | "+248" | "+232" | "+65" | "+421" | "+386" | "+677" | "+252" | "+27" | "+211" | "+34" | "+94" | "+249" | "+597" | "+268" | "+46" | "+41" | "+963" | "+886" | "+992" | "+255" | "+66" | "+670" | "+228" | "+690" | "+676" | "+1868" | "+216" | "+90" | "+993" | "+1649" | "+688" | "+256" | "+380" | "+971" | "+598" | "+998" | "+678" | "+58" | "+84" | "+1284" | "+1340" | "+681" | "+967" | "+260" | "+263", "+93" | "+358" | "+355" | "+213" | "+1684" | "+376" | "+244" | "+1264" | "+672" | "+1268" | "+54" | "+374" | "+297" | "+61" | "+43" | "+994" | "+1242" | "+973" | "+880" | "+1246" | "+375" | "+32" | "+501" | "+229" | "+1441" | "+975" | "+591" | "+387" | "+267" | "+55" | "+246" | "+673" | "+359" | "+226" | "+257" | "+855" | "+237" | "+1" | "+238" | "+345" | "+236" | "+235" | "+56" | "+86" | "+57" | "+269" | "+242" | "+243" | "+682" | "+506" | "+225" | "+385" | "+53" | "+357" | "+420" | "+45" | "+253" | "+1767" | "+1849" | "+593" | "+20" | "+503" | "+240" | "+291" | "+372" | "+251" | "+500" | "+298" | "+679" | "+33" | "+594" | "+689" | "+241" | "+220" | "+995" | "+49" | "+233" | "+350" | "+30" | "+299" | "+1473" | "+590" | "+1671" | "+502" | "+44" | "+224" | "+245" | "+592" | "+509" | "+379" | "+504" | "+852" | "+36" | "+354" | "+91" | "+62" | "+98" | "+964" | "+353" | "+972" | "+39" | "+1876" | "+81" | "+962" | "+77" | "+254" | "+686" | "+850" | "+82" | "+965" | "+996" | "+856" | "+371" | "+961" | "+266" | "+231" | "+218" | "+423" | "+370" | "+352" | "+853" | "+389" | "+261" | "+265" | "+60" | "+960" | "+223" | "+356" | "+692" | "+596" | "+222" | "+230" | "+262" | "+52" | "+691" | "+373" | "+377" | "+976" | "+382" | "+1664" | "+212" | "+258" | "+95" | "+264" | "+674" | "+977" | "+31" | "+599" | "+687" | "+64" | "+505" | "+227" | "+234" | "+683" | "+1670" | "+47" | "+968" | "+92" | "+680" | "+970" | "+507" | "+675" | "+595" | "+51" | "+63" | "+872" | "+48" | "+351" | "+1939" | "+974" | "+40" | "+7" | "+250" | "+290" | "+1869" | "+1758" | "+508" | "+1784" | "+685" | "+378" | "+239" | "+966" | "+221" | "+381" | "+248" | "+232" | "+65" | "+421" | "+386" | "+677" | "+252" | "+27" | "+211" | "+34" | "+94" | "+249" | "+597" | "+268" | "+46" | "+41" | "+963" | "+886" | "+992" | "+255" | "+66" | "+670" | "+228" | "+690" | "+676" | "+1868" | "+216" | "+90" | "+993" | "+1649" | "+688" | "+256" | "+380" | "+971" | "+598" | "+998" | "+678" | "+58" | "+84" | "+1284" | "+1340" | "+681" | "+967" | "+260" | "+263">;
|
|
101
|
+
}, zod.z.core.$strip>;
|
|
102
|
+
owners: zod.ZodArray<zod.ZodObject<{
|
|
103
|
+
first: zod.ZodString;
|
|
104
|
+
last: zod.ZodString;
|
|
105
|
+
}, zod.z.core.$strip>>;
|
|
106
|
+
}, zod.z.core.$strip>;
|
|
13
107
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Creatable = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
+
const zod_1 = require("../../zod");
|
|
5
6
|
const Addresses_1 = require("./Addresses");
|
|
6
7
|
const Name_1 = require("./Name");
|
|
7
8
|
const Phone_1 = require("./Phone");
|
|
@@ -14,5 +15,12 @@ var Creatable;
|
|
|
14
15
|
phone: Phone_1.Phone.type,
|
|
15
16
|
owners: Name_1.Name.type.array({ criteria: "minLength", value: 1 }),
|
|
16
17
|
});
|
|
18
|
+
Creatable.typeZod = zod_1.zod.object({
|
|
19
|
+
address: Addresses_1.Addresses.typeZod,
|
|
20
|
+
email: zod_1.zod.string().regex(/^\S+@\S+\.\S+$/),
|
|
21
|
+
name: Name_1.Name.typeZod,
|
|
22
|
+
phone: Phone_1.Phone.typeZod,
|
|
23
|
+
owners: zod_1.zod.array(Name_1.Name.typeZod).min(1),
|
|
24
|
+
});
|
|
17
25
|
})(Creatable || (exports.Creatable = Creatable = {}));
|
|
18
26
|
//# sourceMappingURL=Creatable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../../Organization/Contact/Creatable.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,2CAAuC;AACvC,iCAA6B;AAC7B,mCAA+B;AAS/B,IAAiB,SAAS,
|
|
1
|
+
{"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../../Organization/Contact/Creatable.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,mCAA+B;AAC/B,2CAAuC;AACvC,iCAA6B;AAC7B,mCAA+B;AAS/B,IAAiB,SAAS,CAezB;AAfD,WAAiB,SAAS;IACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;QAC1C,OAAO,EAAE,qBAAS,CAAC,IAAI;QACvB,KAAK,EAAE,WAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACpC,IAAI,EAAE,WAAI,CAAC,IAAI;QACf,KAAK,EAAE,aAAK,CAAC,IAAI;QACjB,MAAM,EAAE,WAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KAC5D,CAAC,CAAA;IACW,iBAAO,GAAG,SAAG,CAAC,MAAM,CAAC;QACjC,OAAO,EAAE,qBAAS,CAAC,OAAO;QAC1B,KAAK,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;QAC3C,IAAI,EAAE,WAAI,CAAC,OAAO;QAClB,KAAK,EAAE,aAAK,CAAC,OAAO;QACpB,MAAM,EAAE,SAAG,CAAC,KAAK,CAAC,WAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;KACtC,CAAC,CAAA;AACH,CAAC,EAfgB,SAAS,yBAAT,SAAS,QAezB"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { zod } from "../../zod";
|
|
1
2
|
export interface Name {
|
|
2
3
|
first: string;
|
|
3
4
|
last: string;
|
|
4
5
|
}
|
|
5
6
|
export declare namespace Name {
|
|
6
7
|
const type: import("isly/dist/cjs/object").IslyObject<Name, object>;
|
|
8
|
+
const typeZod: zod.ZodObject<{
|
|
9
|
+
first: zod.ZodString;
|
|
10
|
+
last: zod.ZodString;
|
|
11
|
+
}, zod.z.core.$strip>;
|
|
7
12
|
}
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Name = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
+
const zod_1 = require("../../zod");
|
|
5
6
|
var Name;
|
|
6
7
|
(function (Name) {
|
|
7
8
|
Name.type = isly_1.isly.object({ first: isly_1.isly.string(), last: isly_1.isly.string() });
|
|
9
|
+
Name.typeZod = zod_1.zod.object({ first: zod_1.zod.string(), last: zod_1.zod.string() });
|
|
8
10
|
})(Name || (exports.Name = Name = {}));
|
|
9
11
|
//# sourceMappingURL=Name.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Name.js","sourceRoot":"","sources":["../../../../Organization/Contact/Name.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;
|
|
1
|
+
{"version":3,"file":"Name.js","sourceRoot":"","sources":["../../../../Organization/Contact/Name.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,mCAA+B;AAM/B,IAAiB,IAAI,CAGpB;AAHD,WAAiB,IAAI;IACP,SAAI,GAAG,WAAI,CAAC,MAAM,CAAO,EAAE,KAAK,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IACvE,YAAO,GAAG,SAAG,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;AAC/E,CAAC,EAHgB,IAAI,oBAAJ,IAAI,QAGpB"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
+
import { zod } from "../../zod";
|
|
2
3
|
export interface Phone {
|
|
3
4
|
number: string;
|
|
4
5
|
code: isoly.CallingCode;
|
|
5
6
|
}
|
|
6
7
|
export declare namespace Phone {
|
|
7
8
|
const type: import("isly/dist/cjs/object").IslyObject<Phone, object>;
|
|
9
|
+
const typeZod: zod.ZodObject<{
|
|
10
|
+
number: zod.ZodString;
|
|
11
|
+
code: zod.ZodCustom<"+93" | "+358" | "+355" | "+213" | "+1684" | "+376" | "+244" | "+1264" | "+672" | "+1268" | "+54" | "+374" | "+297" | "+61" | "+43" | "+994" | "+1242" | "+973" | "+880" | "+1246" | "+375" | "+32" | "+501" | "+229" | "+1441" | "+975" | "+591" | "+387" | "+267" | "+55" | "+246" | "+673" | "+359" | "+226" | "+257" | "+855" | "+237" | "+1" | "+238" | "+345" | "+236" | "+235" | "+56" | "+86" | "+57" | "+269" | "+242" | "+243" | "+682" | "+506" | "+225" | "+385" | "+53" | "+357" | "+420" | "+45" | "+253" | "+1767" | "+1849" | "+593" | "+20" | "+503" | "+240" | "+291" | "+372" | "+251" | "+500" | "+298" | "+679" | "+33" | "+594" | "+689" | "+241" | "+220" | "+995" | "+49" | "+233" | "+350" | "+30" | "+299" | "+1473" | "+590" | "+1671" | "+502" | "+44" | "+224" | "+245" | "+592" | "+509" | "+379" | "+504" | "+852" | "+36" | "+354" | "+91" | "+62" | "+98" | "+964" | "+353" | "+972" | "+39" | "+1876" | "+81" | "+962" | "+77" | "+254" | "+686" | "+850" | "+82" | "+965" | "+996" | "+856" | "+371" | "+961" | "+266" | "+231" | "+218" | "+423" | "+370" | "+352" | "+853" | "+389" | "+261" | "+265" | "+60" | "+960" | "+223" | "+356" | "+692" | "+596" | "+222" | "+230" | "+262" | "+52" | "+691" | "+373" | "+377" | "+976" | "+382" | "+1664" | "+212" | "+258" | "+95" | "+264" | "+674" | "+977" | "+31" | "+599" | "+687" | "+64" | "+505" | "+227" | "+234" | "+683" | "+1670" | "+47" | "+968" | "+92" | "+680" | "+970" | "+507" | "+675" | "+595" | "+51" | "+63" | "+872" | "+48" | "+351" | "+1939" | "+974" | "+40" | "+7" | "+250" | "+290" | "+1869" | "+1758" | "+508" | "+1784" | "+685" | "+378" | "+239" | "+966" | "+221" | "+381" | "+248" | "+232" | "+65" | "+421" | "+386" | "+677" | "+252" | "+27" | "+211" | "+34" | "+94" | "+249" | "+597" | "+268" | "+46" | "+41" | "+963" | "+886" | "+992" | "+255" | "+66" | "+670" | "+228" | "+690" | "+676" | "+1868" | "+216" | "+90" | "+993" | "+1649" | "+688" | "+256" | "+380" | "+971" | "+598" | "+998" | "+678" | "+58" | "+84" | "+1284" | "+1340" | "+681" | "+967" | "+260" | "+263", "+93" | "+358" | "+355" | "+213" | "+1684" | "+376" | "+244" | "+1264" | "+672" | "+1268" | "+54" | "+374" | "+297" | "+61" | "+43" | "+994" | "+1242" | "+973" | "+880" | "+1246" | "+375" | "+32" | "+501" | "+229" | "+1441" | "+975" | "+591" | "+387" | "+267" | "+55" | "+246" | "+673" | "+359" | "+226" | "+257" | "+855" | "+237" | "+1" | "+238" | "+345" | "+236" | "+235" | "+56" | "+86" | "+57" | "+269" | "+242" | "+243" | "+682" | "+506" | "+225" | "+385" | "+53" | "+357" | "+420" | "+45" | "+253" | "+1767" | "+1849" | "+593" | "+20" | "+503" | "+240" | "+291" | "+372" | "+251" | "+500" | "+298" | "+679" | "+33" | "+594" | "+689" | "+241" | "+220" | "+995" | "+49" | "+233" | "+350" | "+30" | "+299" | "+1473" | "+590" | "+1671" | "+502" | "+44" | "+224" | "+245" | "+592" | "+509" | "+379" | "+504" | "+852" | "+36" | "+354" | "+91" | "+62" | "+98" | "+964" | "+353" | "+972" | "+39" | "+1876" | "+81" | "+962" | "+77" | "+254" | "+686" | "+850" | "+82" | "+965" | "+996" | "+856" | "+371" | "+961" | "+266" | "+231" | "+218" | "+423" | "+370" | "+352" | "+853" | "+389" | "+261" | "+265" | "+60" | "+960" | "+223" | "+356" | "+692" | "+596" | "+222" | "+230" | "+262" | "+52" | "+691" | "+373" | "+377" | "+976" | "+382" | "+1664" | "+212" | "+258" | "+95" | "+264" | "+674" | "+977" | "+31" | "+599" | "+687" | "+64" | "+505" | "+227" | "+234" | "+683" | "+1670" | "+47" | "+968" | "+92" | "+680" | "+970" | "+507" | "+675" | "+595" | "+51" | "+63" | "+872" | "+48" | "+351" | "+1939" | "+974" | "+40" | "+7" | "+250" | "+290" | "+1869" | "+1758" | "+508" | "+1784" | "+685" | "+378" | "+239" | "+966" | "+221" | "+381" | "+248" | "+232" | "+65" | "+421" | "+386" | "+677" | "+252" | "+27" | "+211" | "+34" | "+94" | "+249" | "+597" | "+268" | "+46" | "+41" | "+963" | "+886" | "+992" | "+255" | "+66" | "+670" | "+228" | "+690" | "+676" | "+1868" | "+216" | "+90" | "+993" | "+1649" | "+688" | "+256" | "+380" | "+971" | "+598" | "+998" | "+678" | "+58" | "+84" | "+1284" | "+1340" | "+681" | "+967" | "+260" | "+263">;
|
|
12
|
+
}, zod.z.core.$strip>;
|
|
8
13
|
}
|
|
@@ -3,11 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Phone = void 0;
|
|
4
4
|
const isoly_1 = require("isoly");
|
|
5
5
|
const isly_1 = require("isly");
|
|
6
|
+
const zod_1 = require("../../zod");
|
|
6
7
|
var Phone;
|
|
7
8
|
(function (Phone) {
|
|
8
9
|
Phone.type = isly_1.isly.object({
|
|
9
10
|
number: isly_1.isly.string(/^\d+$/),
|
|
10
11
|
code: isly_1.isly.fromIs("CallingCode", isoly_1.isoly.CallingCode.is),
|
|
11
12
|
});
|
|
13
|
+
Phone.typeZod = zod_1.zod.object({
|
|
14
|
+
number: zod_1.zod.string().regex(/^\d+$/),
|
|
15
|
+
code: zod_1.zod.custom(isoly_1.isoly.CallingCode.is),
|
|
16
|
+
});
|
|
12
17
|
})(Phone || (exports.Phone = Phone = {}));
|
|
13
18
|
//# sourceMappingURL=Phone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Phone.js","sourceRoot":"","sources":["../../../../Organization/Contact/Phone.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;
|
|
1
|
+
{"version":3,"file":"Phone.js","sourceRoot":"","sources":["../../../../Organization/Contact/Phone.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAC3B,mCAA+B;AAM/B,IAAiB,KAAK,CASrB;AATD,WAAiB,KAAK;IACR,UAAI,GAAG,WAAI,CAAC,MAAM,CAAQ;QACtC,MAAM,EAAE,WAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAC5B,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,aAAa,EAAE,aAAK,CAAC,WAAW,CAAC,EAAE,CAAC;KACtD,CAAC,CAAA;IACW,aAAO,GAAG,SAAG,CAAC,MAAM,CAAC;QACjC,MAAM,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;QACnC,IAAI,EAAE,SAAG,CAAC,MAAM,CAAoB,aAAK,CAAC,WAAW,CAAC,EAAE,CAAC;KACzD,CAAC,CAAA;AACH,CAAC,EATgB,KAAK,qBAAL,KAAK,QASrB"}
|