@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
package/dist/cjs/Rule/index.d.ts
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { Base as RuleBase } from "./Base";
|
|
3
|
-
import { control as ruleControl } from "./control";
|
|
4
|
-
import { Other as RuleOther } from "./Other";
|
|
5
2
|
import { State as RuleState } from "./State";
|
|
6
|
-
export type Rule =
|
|
3
|
+
export type Rule = never;
|
|
7
4
|
export declare namespace Rule {
|
|
8
|
-
export import Other = RuleOther;
|
|
9
5
|
export import State = RuleState;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
type Kind = (typeof Kind.values)[number];
|
|
7
|
+
namespace Kind {
|
|
8
|
+
const values: readonly ["authorization", "outbound", "inbound", "capture", "refund"];
|
|
9
|
+
const type: isly.Type<"capture" | "refund" | "authorization" | "inbound" | "outbound">;
|
|
10
|
+
}
|
|
14
11
|
type Action = (typeof Action.values)[number];
|
|
15
12
|
namespace Action {
|
|
16
13
|
const values: readonly ["review", "reject", "flag"];
|
|
17
|
-
const type: isly.Type<"
|
|
14
|
+
const type: isly.Type<"review" | "reject" | "flag">;
|
|
18
15
|
}
|
|
19
|
-
const type:
|
|
20
|
-
function evaluate(rules: Rule[], state: RuleState): RuleState.Evaluated;
|
|
21
|
-
function isLegacy(rule: Rule): boolean;
|
|
22
|
-
function fromLegacy(rule: Rule): Rule;
|
|
16
|
+
const type: isly.Type<never>;
|
|
23
17
|
}
|
package/dist/cjs/Rule/index.js
CHANGED
|
@@ -2,48 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Rule = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
-
const Base_1 = require("./Base");
|
|
6
|
-
const control_1 = require("./control");
|
|
7
|
-
const Other_1 = require("./Other");
|
|
8
5
|
const State_1 = require("./State");
|
|
9
6
|
const type_1 = require("./type");
|
|
10
7
|
var Rule;
|
|
11
8
|
(function (Rule) {
|
|
12
|
-
Rule.Other = Other_1.Other;
|
|
13
9
|
Rule.State = State_1.State;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
let Kind;
|
|
11
|
+
(function (Kind) {
|
|
12
|
+
Kind.values = ["authorization", "outbound", "inbound", "capture", "refund"];
|
|
13
|
+
Kind.type = isly_1.isly.string(Kind.values);
|
|
14
|
+
})(Kind = Rule.Kind || (Rule.Kind = {}));
|
|
18
15
|
let Action;
|
|
19
16
|
(function (Action) {
|
|
20
|
-
Action.values = [
|
|
17
|
+
Action.values = ["review", "reject", "flag"];
|
|
21
18
|
Action.type = isly_1.isly.string(Action.values);
|
|
22
19
|
})(Action = Rule.Action || (Rule.Action = {}));
|
|
23
20
|
Rule.type = type_1.type;
|
|
24
|
-
function evaluate(rules, state) {
|
|
25
|
-
const outcomes = {
|
|
26
|
-
review: [],
|
|
27
|
-
reject: [],
|
|
28
|
-
flag: [],
|
|
29
|
-
};
|
|
30
|
-
const notes = [];
|
|
31
|
-
const evaluated = Rule.Other.evaluate(rules.filter(rule => Rule.Base.Kind.is(state.transaction.kind, rule, state.organization?.groups, state.card?.preset)), state);
|
|
32
|
-
notes.push(...evaluated.notes);
|
|
33
|
-
outcomes.flag.push(...evaluated.outcomes.flag);
|
|
34
|
-
outcomes.review.push(...evaluated.outcomes.review);
|
|
35
|
-
outcomes.reject.push(...evaluated.outcomes.reject);
|
|
36
|
-
const outcome = outcomes.reject.length > 0 ? "reject" : outcomes.review.length > 0 ? "review" : "approve";
|
|
37
|
-
return { ...state, flags: [...evaluated.flags], notes, outcomes, outcome };
|
|
38
|
-
}
|
|
39
|
-
Rule.evaluate = evaluate;
|
|
40
|
-
function isLegacy(rule) {
|
|
41
|
-
return !Rule.Base.Category.type.is(rule.category);
|
|
42
|
-
}
|
|
43
|
-
Rule.isLegacy = isLegacy;
|
|
44
|
-
function fromLegacy(rule) {
|
|
45
|
-
return isLegacy(rule) ? { ...rule, category: "fincrime" } : rule;
|
|
46
|
-
}
|
|
47
|
-
Rule.fromLegacy = fromLegacy;
|
|
48
21
|
})(Rule || (exports.Rule = Rule = {}));
|
|
49
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Rule/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Rule/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,mCAA4C;AAC5C,iCAAyC;AAGzC,IAAiB,IAAI,CAapB;AAbD,WAAiB,IAAI;IACN,UAAK,GAAG,aAAS,CAAA;IAE/B,IAAiB,IAAI,CAGpB;IAHD,WAAiB,IAAI;QACP,WAAM,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAA;QAC/E,SAAI,GAAG,WAAI,CAAC,MAAM,CAAO,KAAA,MAAM,CAAC,CAAA;IAC9C,CAAC,EAHgB,IAAI,GAAJ,SAAI,KAAJ,SAAI,QAGpB;IAED,IAAiB,MAAM,CAGtB;IAHD,WAAiB,MAAM;QACT,aAAM,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAA;QAC9C,WAAI,GAAG,WAAI,CAAC,MAAM,CAAS,OAAA,MAAM,CAAC,CAAA;IAChD,CAAC,EAHgB,MAAM,GAAN,WAAM,KAAN,WAAM,QAGtB;IACY,SAAI,GAAG,WAAQ,CAAA;AAC7B,CAAC,EAbgB,IAAI,oBAAJ,IAAI,QAapB"}
|
package/dist/cjs/Rule/type.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const type:
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export declare const type: isly.Type<never>;
|
package/dist/cjs/Rule/type.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.type = void 0;
|
|
4
|
-
const
|
|
5
|
-
exports.type =
|
|
4
|
+
const isly_1 = require("isly");
|
|
5
|
+
exports.type = isly_1.isly.any();
|
|
6
6
|
//# sourceMappingURL=type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../Rule/type.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../Rule/type.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAKd,QAAA,IAAI,GAAG,WAAI,CAAC,GAAG,EAAS,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import type { Rule } from "../Rule";
|
|
3
2
|
export interface Note extends Note.Creatable {
|
|
4
3
|
author: string;
|
|
5
4
|
created: isoly.DateTime;
|
|
@@ -10,7 +9,16 @@ export declare namespace Note {
|
|
|
10
9
|
text?: string;
|
|
11
10
|
action?: "approve" | "reject";
|
|
12
11
|
flags?: string[];
|
|
13
|
-
rule?:
|
|
12
|
+
rule?: {
|
|
13
|
+
action: "reject";
|
|
14
|
+
code: string;
|
|
15
|
+
name: string;
|
|
16
|
+
type: "authorization";
|
|
17
|
+
category: "fincrime";
|
|
18
|
+
condition: "";
|
|
19
|
+
description: string;
|
|
20
|
+
flags: ["category", "merchant"];
|
|
21
|
+
};
|
|
14
22
|
}
|
|
15
23
|
namespace Creatable {
|
|
16
24
|
const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Note.js","sourceRoot":"","sources":["../../../Transaction/Note.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;
|
|
1
|
+
{"version":3,"file":"Note.js","sourceRoot":"","sources":["../../../Transaction/Note.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAO3B,IAAiB,IAAI,CA+BpB;AA/BD,WAAiB,IAAI;IACpB,SAAgB,aAAa,CAAC,IAAe,EAAE,MAAc;QAC5D,OAAO,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,aAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAA;IAClE,CAAC;IAFe,kBAAa,gBAE5B,CAAA;IAgBD,IAAiB,SAAS,CAOzB;IAPD,WAAiB,SAAS;QACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;YAC1C,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC9B,MAAM,EAAE,WAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;YACrD,KAAK,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;YACvC,IAAI,EAAE,WAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;SAC3B,CAAC,CAAA;IACH,CAAC,EAPgB,SAAS,GAAT,cAAS,KAAT,cAAS,QAOzB;IACY,SAAI,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,CAAO;QAC/C,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,WAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;AACH,CAAC,EA/BgB,IAAI,oBAAJ,IAAI,QA+BpB"}
|
|
@@ -30,26 +30,26 @@ export declare namespace Permission {
|
|
|
30
30
|
}
|
|
31
31
|
const values: readonly ["*", "card", "log", "operation", "organization", "rule", "settlement", "transaction", "treasury", "user"];
|
|
32
32
|
const typeZod: zod.ZodEnum<{
|
|
33
|
-
rule: "rule";
|
|
34
33
|
card: "card";
|
|
35
34
|
transaction: "transaction";
|
|
36
35
|
settlement: "settlement";
|
|
37
36
|
organization: "organization";
|
|
37
|
+
rule: "rule";
|
|
38
38
|
user: "user";
|
|
39
39
|
log: "log";
|
|
40
40
|
operation: "operation";
|
|
41
41
|
"*": "*";
|
|
42
42
|
treasury: "treasury";
|
|
43
43
|
}>;
|
|
44
|
-
const type: isly.Type<"
|
|
44
|
+
const type: isly.Type<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury">;
|
|
45
45
|
}
|
|
46
|
-
const type: isly.Type<Partial<Record<"
|
|
46
|
+
const type: isly.Type<Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>>;
|
|
47
47
|
const typeZod: zod.ZodRecord<zod.ZodEnum<{
|
|
48
|
-
rule: "rule";
|
|
49
48
|
card: "card";
|
|
50
49
|
transaction: "transaction";
|
|
51
50
|
settlement: "settlement";
|
|
52
51
|
organization: "organization";
|
|
52
|
+
rule: "rule";
|
|
53
53
|
user: "user";
|
|
54
54
|
log: "log";
|
|
55
55
|
operation: "operation";
|
|
@@ -6,11 +6,11 @@ export declare namespace Access {
|
|
|
6
6
|
const type: import("isly/dist/cjs/object").IslyObject<object, object>;
|
|
7
7
|
const typeZod: zod.ZodObject<{
|
|
8
8
|
uk: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
9
|
-
rule: "rule";
|
|
10
9
|
card: "card";
|
|
11
10
|
transaction: "transaction";
|
|
12
11
|
settlement: "settlement";
|
|
13
12
|
organization: "organization";
|
|
13
|
+
rule: "rule";
|
|
14
14
|
user: "user";
|
|
15
15
|
log: "log";
|
|
16
16
|
operation: "operation";
|
|
@@ -23,11 +23,11 @@ export declare namespace Access {
|
|
|
23
23
|
admin: "admin";
|
|
24
24
|
}>>>;
|
|
25
25
|
eea: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
26
|
-
rule: "rule";
|
|
27
26
|
card: "card";
|
|
28
27
|
transaction: "transaction";
|
|
29
28
|
settlement: "settlement";
|
|
30
29
|
organization: "organization";
|
|
30
|
+
rule: "rule";
|
|
31
31
|
user: "user";
|
|
32
32
|
log: "log";
|
|
33
33
|
operation: "operation";
|
|
@@ -40,11 +40,11 @@ export declare namespace Access {
|
|
|
40
40
|
admin: "admin";
|
|
41
41
|
}>>>;
|
|
42
42
|
test: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
43
|
-
rule: "rule";
|
|
44
43
|
card: "card";
|
|
45
44
|
transaction: "transaction";
|
|
46
45
|
settlement: "settlement";
|
|
47
46
|
organization: "organization";
|
|
47
|
+
rule: "rule";
|
|
48
48
|
user: "user";
|
|
49
49
|
log: "log";
|
|
50
50
|
operation: "operation";
|
|
@@ -6,17 +6,17 @@ export declare namespace Payload {
|
|
|
6
6
|
namespace Creatable {
|
|
7
7
|
const type: import("isly/dist/cjs/object").IslyObject<{
|
|
8
8
|
sub: string;
|
|
9
|
-
permission: Partial<Record<"
|
|
9
|
+
permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
10
10
|
realm: "test" | "uk" | "eea";
|
|
11
11
|
}, object>;
|
|
12
12
|
const typeZod: zod.ZodObject<{
|
|
13
13
|
sub: zod.ZodString;
|
|
14
14
|
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
15
|
-
rule: "rule";
|
|
16
15
|
card: "card";
|
|
17
16
|
transaction: "transaction";
|
|
18
17
|
settlement: "settlement";
|
|
19
18
|
organization: "organization";
|
|
19
|
+
rule: "rule";
|
|
20
20
|
user: "user";
|
|
21
21
|
log: "log";
|
|
22
22
|
operation: "operation";
|
|
@@ -42,7 +42,7 @@ export declare namespace Payload {
|
|
|
42
42
|
iat: number;
|
|
43
43
|
iss: string;
|
|
44
44
|
sub: string;
|
|
45
|
-
permission: Partial<Record<"
|
|
45
|
+
permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
46
46
|
realm: "test" | "uk" | "eea";
|
|
47
47
|
token?: string | undefined;
|
|
48
48
|
}, object>;
|
|
@@ -52,11 +52,11 @@ export declare namespace Payload {
|
|
|
52
52
|
iss: zod.ZodString;
|
|
53
53
|
sub: zod.ZodString;
|
|
54
54
|
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
55
|
-
rule: "rule";
|
|
56
55
|
card: "card";
|
|
57
56
|
transaction: "transaction";
|
|
58
57
|
settlement: "settlement";
|
|
59
58
|
organization: "organization";
|
|
59
|
+
rule: "rule";
|
|
60
60
|
user: "user";
|
|
61
61
|
log: "log";
|
|
62
62
|
operation: "operation";
|
|
@@ -83,7 +83,7 @@ export declare namespace Payload {
|
|
|
83
83
|
iat: number;
|
|
84
84
|
iss: string;
|
|
85
85
|
sub: string;
|
|
86
|
-
permission: Partial<Record<"
|
|
86
|
+
permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
87
87
|
realm: "test" | "uk" | "eea";
|
|
88
88
|
id: string;
|
|
89
89
|
token?: string | undefined;
|
|
@@ -92,7 +92,7 @@ export declare namespace Payload {
|
|
|
92
92
|
iat: number;
|
|
93
93
|
iss: string;
|
|
94
94
|
sub: string;
|
|
95
|
-
permission: Partial<Record<"
|
|
95
|
+
permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
96
96
|
realm: "test" | "uk" | "eea";
|
|
97
97
|
token?: string | undefined;
|
|
98
98
|
}>;
|
|
@@ -102,11 +102,11 @@ export declare namespace Payload {
|
|
|
102
102
|
iss: zod.ZodString;
|
|
103
103
|
sub: zod.ZodString;
|
|
104
104
|
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
105
|
-
rule: "rule";
|
|
106
105
|
card: "card";
|
|
107
106
|
transaction: "transaction";
|
|
108
107
|
settlement: "settlement";
|
|
109
108
|
organization: "organization";
|
|
109
|
+
rule: "rule";
|
|
110
110
|
user: "user";
|
|
111
111
|
log: "log";
|
|
112
112
|
operation: "operation";
|
|
@@ -134,7 +134,7 @@ export declare namespace Payload {
|
|
|
134
134
|
iat: number;
|
|
135
135
|
iss: string;
|
|
136
136
|
sub: string;
|
|
137
|
-
permission: Partial<Record<"
|
|
137
|
+
permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
138
138
|
realm: "test" | "uk" | "eea";
|
|
139
139
|
exp: number;
|
|
140
140
|
token?: string | undefined;
|
|
@@ -143,7 +143,7 @@ export declare namespace Payload {
|
|
|
143
143
|
iat: number;
|
|
144
144
|
iss: string;
|
|
145
145
|
sub: string;
|
|
146
|
-
permission: Partial<Record<"
|
|
146
|
+
permission: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
147
147
|
realm: "test" | "uk" | "eea";
|
|
148
148
|
token?: string | undefined;
|
|
149
149
|
}>;
|
|
@@ -153,11 +153,11 @@ export declare namespace Payload {
|
|
|
153
153
|
iss: zod.ZodString;
|
|
154
154
|
sub: zod.ZodString;
|
|
155
155
|
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
156
|
-
rule: "rule";
|
|
157
156
|
card: "card";
|
|
158
157
|
transaction: "transaction";
|
|
159
158
|
settlement: "settlement";
|
|
160
159
|
organization: "organization";
|
|
160
|
+
rule: "rule";
|
|
161
161
|
user: "user";
|
|
162
162
|
log: "log";
|
|
163
163
|
operation: "operation";
|
|
@@ -189,11 +189,11 @@ export declare namespace Payload {
|
|
|
189
189
|
iss: zod.ZodString;
|
|
190
190
|
sub: zod.ZodString;
|
|
191
191
|
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
192
|
-
rule: "rule";
|
|
193
192
|
card: "card";
|
|
194
193
|
transaction: "transaction";
|
|
195
194
|
settlement: "settlement";
|
|
196
195
|
organization: "organization";
|
|
196
|
+
rule: "rule";
|
|
197
197
|
user: "user";
|
|
198
198
|
log: "log";
|
|
199
199
|
operation: "operation";
|
|
@@ -218,11 +218,11 @@ export declare namespace Payload {
|
|
|
218
218
|
iss: zod.ZodString;
|
|
219
219
|
sub: zod.ZodString;
|
|
220
220
|
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
221
|
-
rule: "rule";
|
|
222
221
|
card: "card";
|
|
223
222
|
transaction: "transaction";
|
|
224
223
|
settlement: "settlement";
|
|
225
224
|
organization: "organization";
|
|
225
|
+
rule: "rule";
|
|
226
226
|
user: "user";
|
|
227
227
|
log: "log";
|
|
228
228
|
operation: "operation";
|
package/dist/cjs/User/index.d.ts
CHANGED
|
@@ -70,11 +70,11 @@ export declare namespace User {
|
|
|
70
70
|
email: zod.ZodString;
|
|
71
71
|
access: zod.ZodObject<{
|
|
72
72
|
uk: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
73
|
-
rule: "rule";
|
|
74
73
|
card: "card";
|
|
75
74
|
transaction: "transaction";
|
|
76
75
|
settlement: "settlement";
|
|
77
76
|
organization: "organization";
|
|
77
|
+
rule: "rule";
|
|
78
78
|
user: "user";
|
|
79
79
|
log: "log";
|
|
80
80
|
operation: "operation";
|
|
@@ -87,11 +87,11 @@ export declare namespace User {
|
|
|
87
87
|
admin: "admin";
|
|
88
88
|
}>>>;
|
|
89
89
|
eea: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
90
|
-
rule: "rule";
|
|
91
90
|
card: "card";
|
|
92
91
|
transaction: "transaction";
|
|
93
92
|
settlement: "settlement";
|
|
94
93
|
organization: "organization";
|
|
94
|
+
rule: "rule";
|
|
95
95
|
user: "user";
|
|
96
96
|
log: "log";
|
|
97
97
|
operation: "operation";
|
|
@@ -104,11 +104,11 @@ export declare namespace User {
|
|
|
104
104
|
admin: "admin";
|
|
105
105
|
}>>>;
|
|
106
106
|
test: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
107
|
-
rule: "rule";
|
|
108
107
|
card: "card";
|
|
109
108
|
transaction: "transaction";
|
|
110
109
|
settlement: "settlement";
|
|
111
110
|
organization: "organization";
|
|
111
|
+
rule: "rule";
|
|
112
112
|
user: "user";
|
|
113
113
|
log: "log";
|
|
114
114
|
operation: "operation";
|
|
@@ -133,9 +133,9 @@ export declare namespace User {
|
|
|
133
133
|
const type: import("isly/dist/cjs/object").IslyObject<{
|
|
134
134
|
email: string;
|
|
135
135
|
access: {
|
|
136
|
-
uk?: Partial<Record<"
|
|
137
|
-
eea?: Partial<Record<"
|
|
138
|
-
test?: Partial<Record<"
|
|
136
|
+
uk?: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
137
|
+
eea?: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
138
|
+
test?: Partial<Record<"card" | "transaction" | "settlement" | "organization" | "rule" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">> | undefined;
|
|
139
139
|
"*"?: {
|
|
140
140
|
user?: "developer" | "read" | "write" | "admin" | undefined;
|
|
141
141
|
} | undefined;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { zod } from "../zod";
|
|
2
3
|
export type Type = (typeof Type.values)[number];
|
|
3
4
|
export declare namespace Type {
|
|
4
5
|
const values: readonly ["own funds", "emoney"];
|
|
5
6
|
const type: isly.Type<"own funds" | "emoney">;
|
|
7
|
+
const typeZod: zod.ZodEnum<{
|
|
8
|
+
"own funds": "own funds";
|
|
9
|
+
emoney: "emoney";
|
|
10
|
+
}>;
|
|
6
11
|
}
|
package/dist/mjs/Account/Type.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { zod } from "../zod";
|
|
2
3
|
export var Type;
|
|
3
4
|
(function (Type) {
|
|
4
5
|
Type.values = ["own funds", "emoney"];
|
|
5
6
|
Type.type = isly.string(Type.values);
|
|
7
|
+
Type.typeZod = zod.enum(Type.values);
|
|
6
8
|
})(Type || (Type = {}));
|
|
7
9
|
//# sourceMappingURL=Type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Type.js","sourceRoot":"","sources":["../../../Account/Type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Type.js","sourceRoot":"","sources":["../../../Account/Type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAG5B,MAAM,KAAW,IAAI,CAIpB;AAJD,WAAiB,IAAI;IACP,WAAM,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAU,CAAA;IACzC,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO,KAAA,MAAM,CAAC,CAAA;IAChC,YAAO,GAAG,GAAG,CAAC,IAAI,CAAC,KAAA,MAAM,CAAC,CAAA;AACxC,CAAC,EAJgB,IAAI,KAAJ,IAAI,QAIpB"}
|
package/dist/mjs/Audit.d.ts
CHANGED
|
@@ -38,6 +38,6 @@ export declare namespace Audit {
|
|
|
38
38
|
readonly clearbank: readonly ["assessmentFailed", "validationFailed"];
|
|
39
39
|
};
|
|
40
40
|
const keys: (keyof typeof value)[];
|
|
41
|
-
const type: isly.Type<"clearbank" | "
|
|
41
|
+
const type: isly.Type<"clearbank" | "account" | "transaction" | "organization" | "rule" | "settlements" | "user" | "marqeta" | "label" | "route">;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -10,7 +10,7 @@ export declare namespace Rule {
|
|
|
10
10
|
organization?: string;
|
|
11
11
|
account?: string;
|
|
12
12
|
}>;
|
|
13
|
-
const addSender: (sender: (backup: Rule) => any | Promise<any>) => (args_0:
|
|
13
|
+
const addSender: (sender: (backup: Rule) => any | Promise<any>) => (args_0: never, args_1: "created" | "cancelled" | "updated" | "removed" | "inactivated", args_2?: {
|
|
14
14
|
organization?: string;
|
|
15
15
|
account?: string;
|
|
16
16
|
} | undefined) => ReturnType<(backup: Rule) => any | Promise<any>>;
|
package/dist/mjs/Backup/Rule.js
CHANGED
|
@@ -2,15 +2,18 @@ import { isoly } from "isoly";
|
|
|
2
2
|
import { Base } from "./Base";
|
|
3
3
|
export var Rule;
|
|
4
4
|
(function (Rule) {
|
|
5
|
-
Rule.create = (value, action, data) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
Rule.create = (value, action, data) => {
|
|
6
|
+
const rule = value;
|
|
7
|
+
return {
|
|
8
|
+
entityType: "rule",
|
|
9
|
+
entity: rule.code,
|
|
10
|
+
...data,
|
|
11
|
+
action,
|
|
12
|
+
created: isoly.DateTime.now(),
|
|
13
|
+
meta: `${rule.category}.${rule.type}.${rule.action}`,
|
|
14
|
+
value,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
14
17
|
Rule.addSender = Base.pipeToSender(Rule.create);
|
|
15
18
|
})(Rule || (Rule = {}));
|
|
16
19
|
//# sourceMappingURL=Rule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../Backup/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAO7B,MAAM,KAAW,IAAI,
|
|
1
|
+
{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../Backup/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAO7B,MAAM,KAAW,IAAI,CAmBpB;AAnBD,WAAiB,IAAI;IACP,WAAM,GAA8E,CAChG,KAAgB,EAChB,MAAmB,EACnB,IAAkD,EACjD,EAAE;QAEH,MAAM,IAAI,GAAG,KAAyE,CAAA;QACtF,OAAO;YACN,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,IAAI,CAAC,IAAI;YACjB,GAAG,IAAI;YACP,MAAM;YACN,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;YAC7B,IAAI,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,EAAE;YACpD,KAAK;SACL,CAAA;IACF,CAAC,CAAA;IACY,cAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAA,MAAM,CAAC,CAAA;AACnD,CAAC,EAnBgB,IAAI,KAAJ,IAAI,QAmBpB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zod } from "../zod";
|
|
1
2
|
import { Contact } from "./Contact";
|
|
2
3
|
export interface Changeable {
|
|
3
4
|
name?: string;
|
|
@@ -5,4 +6,100 @@ export interface Changeable {
|
|
|
5
6
|
}
|
|
6
7
|
export declare namespace Changeable {
|
|
7
8
|
const type: import("isly/dist/cjs/object").IslyObject<Changeable, object>;
|
|
9
|
+
const typeZod: zod.ZodObject<{
|
|
10
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
11
|
+
contact: zod.ZodOptional<zod.ZodObject<{
|
|
12
|
+
address: zod.ZodObject<{
|
|
13
|
+
primary: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
14
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
15
|
+
city: zod.ZodString;
|
|
16
|
+
street: zod.ZodString;
|
|
17
|
+
building: zod.ZodString;
|
|
18
|
+
zipCode: zod.ZodString;
|
|
19
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
20
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
21
|
+
zipCode: zod.ZodString;
|
|
22
|
+
city: zod.ZodString;
|
|
23
|
+
street: zod.ZodString;
|
|
24
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
25
|
+
countryCode: zod.ZodString;
|
|
26
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
27
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
28
|
+
city: zod.ZodString;
|
|
29
|
+
zipCode: zod.ZodString;
|
|
30
|
+
street: zod.ZodString;
|
|
31
|
+
}, zod.z.core.$strip>]>;
|
|
32
|
+
billing: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
33
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
34
|
+
city: zod.ZodString;
|
|
35
|
+
street: zod.ZodString;
|
|
36
|
+
building: zod.ZodString;
|
|
37
|
+
zipCode: zod.ZodString;
|
|
38
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
39
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
40
|
+
zipCode: zod.ZodString;
|
|
41
|
+
city: zod.ZodString;
|
|
42
|
+
street: zod.ZodString;
|
|
43
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
44
|
+
countryCode: zod.ZodString;
|
|
45
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
46
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
47
|
+
city: zod.ZodString;
|
|
48
|
+
zipCode: zod.ZodString;
|
|
49
|
+
street: zod.ZodString;
|
|
50
|
+
}, zod.z.core.$strip>]>>;
|
|
51
|
+
delivery: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
52
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
53
|
+
city: zod.ZodString;
|
|
54
|
+
street: zod.ZodString;
|
|
55
|
+
building: zod.ZodString;
|
|
56
|
+
zipCode: zod.ZodString;
|
|
57
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
58
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
59
|
+
zipCode: zod.ZodString;
|
|
60
|
+
city: zod.ZodString;
|
|
61
|
+
street: zod.ZodString;
|
|
62
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
63
|
+
countryCode: zod.ZodString;
|
|
64
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
65
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
66
|
+
city: zod.ZodString;
|
|
67
|
+
zipCode: zod.ZodString;
|
|
68
|
+
street: zod.ZodString;
|
|
69
|
+
}, zod.z.core.$strip>]>>;
|
|
70
|
+
visit: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
71
|
+
countryCode: zod.ZodLiteral<"GB">;
|
|
72
|
+
city: zod.ZodString;
|
|
73
|
+
street: zod.ZodString;
|
|
74
|
+
building: zod.ZodString;
|
|
75
|
+
zipCode: zod.ZodString;
|
|
76
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
77
|
+
countryCode: zod.ZodLiteral<"SE">;
|
|
78
|
+
zipCode: zod.ZodString;
|
|
79
|
+
city: zod.ZodString;
|
|
80
|
+
street: zod.ZodString;
|
|
81
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
82
|
+
countryCode: zod.ZodString;
|
|
83
|
+
state: zod.ZodOptional<zod.ZodString>;
|
|
84
|
+
county: zod.ZodOptional<zod.ZodString>;
|
|
85
|
+
city: zod.ZodString;
|
|
86
|
+
zipCode: zod.ZodString;
|
|
87
|
+
street: zod.ZodString;
|
|
88
|
+
}, zod.z.core.$strip>]>>;
|
|
89
|
+
}, zod.z.core.$strip>;
|
|
90
|
+
email: zod.ZodString;
|
|
91
|
+
name: zod.ZodObject<{
|
|
92
|
+
first: zod.ZodString;
|
|
93
|
+
last: zod.ZodString;
|
|
94
|
+
}, zod.z.core.$strip>;
|
|
95
|
+
phone: zod.ZodObject<{
|
|
96
|
+
number: zod.ZodString;
|
|
97
|
+
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">;
|
|
98
|
+
}, zod.z.core.$strip>;
|
|
99
|
+
owners: zod.ZodArray<zod.ZodObject<{
|
|
100
|
+
first: zod.ZodString;
|
|
101
|
+
last: zod.ZodString;
|
|
102
|
+
}, zod.z.core.$strip>>;
|
|
103
|
+
}, zod.z.core.$strip>>;
|
|
104
|
+
}, zod.z.core.$strip>;
|
|
8
105
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { zod } from "../zod";
|
|
2
3
|
import { Contact } from "./Contact";
|
|
3
4
|
export var Changeable;
|
|
4
5
|
(function (Changeable) {
|
|
@@ -6,5 +7,9 @@ export var Changeable;
|
|
|
6
7
|
name: isly.string().optional(),
|
|
7
8
|
contact: Contact.Creatable.type.optional(),
|
|
8
9
|
});
|
|
10
|
+
Changeable.typeZod = zod.object({
|
|
11
|
+
name: zod.string().optional(),
|
|
12
|
+
contact: Contact.Creatable.typeZod.optional(),
|
|
13
|
+
});
|
|
9
14
|
})(Changeable || (Changeable = {}));
|
|
10
15
|
//# sourceMappingURL=Changeable.js.map
|