@pax2pay/model-banking 0.1.78 → 0.1.79
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/Card/index.ts +1 -1
- package/Organization/Contact.ts +36 -0
- package/Organization/Creatable.ts +9 -1
- package/dist/Card/index.js +1 -1
- package/dist/Card/index.js.map +1 -1
- package/dist/Organization/Contact.d.ts +20 -0
- package/dist/Organization/Contact.js +21 -0
- package/dist/Organization/Contact.js.map +1 -0
- package/dist/Organization/Creatable.d.ts +4 -1
- package/dist/Organization/Creatable.js +8 -0
- package/dist/Organization/Creatable.js.map +1 -1
- package/package.json +1 -1
package/Card/index.ts
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { isoly } from "isoly"
|
|
2
|
+
import { isly } from "isly"
|
|
3
|
+
|
|
4
|
+
export interface Contact {
|
|
5
|
+
address: string
|
|
6
|
+
city: string
|
|
7
|
+
zip: string
|
|
8
|
+
country: isoly.CountryCode.Alpha2
|
|
9
|
+
email: `${string}@${string}.${string}`
|
|
10
|
+
name: {
|
|
11
|
+
first: string
|
|
12
|
+
last: string
|
|
13
|
+
}
|
|
14
|
+
phone: {
|
|
15
|
+
number: `${number}`
|
|
16
|
+
code: isoly.CallingCode
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export namespace Contact {
|
|
21
|
+
export const type = isly.object<Contact>({
|
|
22
|
+
address: isly.string(),
|
|
23
|
+
city: isly.string(),
|
|
24
|
+
zip: isly.string(),
|
|
25
|
+
country: isly.fromIs("CountryCode.Alpha2", isoly.CountryCode.Alpha2.is),
|
|
26
|
+
email: isly.string(),
|
|
27
|
+
name: isly.object<Contact["name"]>({
|
|
28
|
+
first: isly.string(),
|
|
29
|
+
last: isly.string(),
|
|
30
|
+
}),
|
|
31
|
+
phone: isly.object<Contact["phone"]>({
|
|
32
|
+
number: isly.string(),
|
|
33
|
+
code: isly.fromIs("CallingCode", isoly.CallingCode.is),
|
|
34
|
+
}),
|
|
35
|
+
})
|
|
36
|
+
}
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
1
2
|
import { Realm } from "../Realm"
|
|
3
|
+
import { Contact } from "./Contact"
|
|
2
4
|
import { Rule } from "./Rule"
|
|
3
5
|
|
|
4
6
|
export interface Creatable {
|
|
5
7
|
name: string
|
|
6
|
-
address: string
|
|
7
8
|
realm: Realm
|
|
8
9
|
rules: Rule[]
|
|
10
|
+
contact?: Contact
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
export namespace Creatable {
|
|
14
|
+
export const type = isly.object<Creatable>({
|
|
15
|
+
name: isly.string(),
|
|
16
|
+
realm: Realm.type,
|
|
17
|
+
rules: isly.fromIs<Rule>("Rule", Rule.is).array(),
|
|
18
|
+
contact: Contact.type.optional(),
|
|
19
|
+
})
|
|
12
20
|
export function is(value: any | Creatable): value is Creatable {
|
|
13
21
|
return (
|
|
14
22
|
value &&
|
package/dist/Card/index.js
CHANGED
package/dist/Card/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAE,MAAM,IAAI,UAAU,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string;
|
|
6
|
+
zip: string;
|
|
7
|
+
country: isoly.CountryCode.Alpha2;
|
|
8
|
+
email: `${string}@${string}.${string}`;
|
|
9
|
+
name: {
|
|
10
|
+
first: string;
|
|
11
|
+
last: string;
|
|
12
|
+
};
|
|
13
|
+
phone: {
|
|
14
|
+
number: `${number}`;
|
|
15
|
+
code: isoly.CallingCode;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare namespace Contact {
|
|
19
|
+
const type: isly.object.ExtendableType<Contact>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
3
|
+
export var Contact;
|
|
4
|
+
(function (Contact) {
|
|
5
|
+
Contact.type = isly.object({
|
|
6
|
+
address: isly.string(),
|
|
7
|
+
city: isly.string(),
|
|
8
|
+
zip: isly.string(),
|
|
9
|
+
country: isly.fromIs("CountryCode.Alpha2", isoly.CountryCode.Alpha2.is),
|
|
10
|
+
email: isly.string(),
|
|
11
|
+
name: isly.object({
|
|
12
|
+
first: isly.string(),
|
|
13
|
+
last: isly.string(),
|
|
14
|
+
}),
|
|
15
|
+
phone: isly.object({
|
|
16
|
+
number: isly.string(),
|
|
17
|
+
code: isly.fromIs("CallingCode", isoly.CallingCode.is),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(Contact || (Contact = {}));
|
|
21
|
+
//# sourceMappingURL=Contact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Contact.js","sourceRoot":"../","sources":["Organization/Contact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAkB3B,MAAM,KAAW,OAAO,CAgBvB;AAhBD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE;QAClB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC;QACvE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;QACpB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAkB;YAClC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;YACpB,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;SACnB,CAAC;QACF,KAAK,EAAE,IAAI,CAAC,MAAM,CAAmB;YACpC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC;SACtD,CAAC;KACF,CAAC,CAAA;AACH,CAAC,EAhBgB,OAAO,KAAP,OAAO,QAgBvB"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
1
2
|
import { Realm } from "../Realm";
|
|
3
|
+
import { Contact } from "./Contact";
|
|
2
4
|
import { Rule } from "./Rule";
|
|
3
5
|
export interface Creatable {
|
|
4
6
|
name: string;
|
|
5
|
-
address: string;
|
|
6
7
|
realm: Realm;
|
|
7
8
|
rules: Rule[];
|
|
9
|
+
contact?: Contact;
|
|
8
10
|
}
|
|
9
11
|
export declare namespace Creatable {
|
|
12
|
+
const type: isly.object.ExtendableType<Creatable>;
|
|
10
13
|
function is(value: any | Creatable): value is Creatable;
|
|
11
14
|
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
1
2
|
import { Realm } from "../Realm";
|
|
3
|
+
import { Contact } from "./Contact";
|
|
2
4
|
import { Rule } from "./Rule";
|
|
3
5
|
export var Creatable;
|
|
4
6
|
(function (Creatable) {
|
|
7
|
+
Creatable.type = isly.object({
|
|
8
|
+
name: isly.string(),
|
|
9
|
+
realm: Realm.type,
|
|
10
|
+
rules: isly.fromIs("Rule", Rule.is).array(),
|
|
11
|
+
contact: Contact.type.optional(),
|
|
12
|
+
});
|
|
5
13
|
function is(value) {
|
|
6
14
|
return (value &&
|
|
7
15
|
typeof value == "object" &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Organization/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAS7B,MAAM,KAAW,SAAS,
|
|
1
|
+
{"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Organization/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAS7B,MAAM,KAAW,SAAS,CAoBzB;AApBD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,KAAK,CAAC,IAAI;QACjB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAO,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;QACjD,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;KAChC,CAAC,CAAA;IACF,SAAgB,EAAE,CAAC,KAAsB;QACxC,OAAO,CACN,KAAK;YACL,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ;YAChC,KAAK,CAA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