@pax2pay/model-banking 0.1.106 → 0.1.108
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/Creatable.ts +2 -2
- package/Card/index.ts +2 -2
- package/Rule/Rule.ts +29 -0
- package/Rule/State/Authorization.ts +4 -1
- package/Rule/State/Card.ts +4 -1
- package/Rule/State/Partial.ts +14 -0
- package/Rule/State/index.ts +3 -0
- package/Rule/index.ts +10 -26
- package/Settlement/Entry.ts +4 -0
- package/dist/Card/Creatable.d.ts +1 -1
- package/dist/Card/Creatable.js +2 -2
- package/dist/Card/Creatable.js.map +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +2 -2
- package/dist/Card/index.js.map +1 -1
- package/dist/Rule/Rule.d.ts +17 -0
- package/dist/Rule/Rule.js +17 -0
- package/dist/Rule/Rule.js.map +1 -0
- package/dist/Rule/State/Authorization.d.ts +4 -1
- package/dist/Rule/State/Authorization.js +4 -0
- package/dist/Rule/State/Authorization.js.map +1 -1
- package/dist/Rule/State/Card.d.ts +4 -1
- package/dist/Rule/State/Card.js +4 -0
- package/dist/Rule/State/Card.js.map +1 -1
- package/dist/Rule/State/Partial.d.ts +12 -0
- package/dist/Rule/State/Partial.js +10 -0
- package/dist/Rule/State/Partial.js.map +1 -0
- package/dist/Rule/State/index.d.ts +3 -0
- package/dist/Rule/State/index.js +2 -0
- package/dist/Rule/State/index.js.map +1 -1
- package/dist/Rule/index.d.ts +8 -15
- package/dist/Rule/index.js +7 -17
- package/dist/Rule/index.js.map +1 -1
- package/dist/Settlement/Entry.d.ts +2 -0
- package/dist/Settlement/Entry.js +2 -0
- package/dist/Settlement/Entry.js.map +1 -1
- package/package.json +1 -1
package/Card/Creatable.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isoly } from "isoly"
|
|
2
2
|
import { isly } from "isly"
|
|
3
|
-
import { Rule } from "../Rule"
|
|
3
|
+
import { Rule, type as ruleType } from "../Rule/Rule"
|
|
4
4
|
import { Expiry } from "./Expiry"
|
|
5
5
|
import { Meta } from "./Meta"
|
|
6
6
|
import { Preset } from "./Preset"
|
|
@@ -28,7 +28,7 @@ export namespace Creatable {
|
|
|
28
28
|
holder: isly.string(),
|
|
29
29
|
}),
|
|
30
30
|
limit: isly.tuple(isly.fromIs("isoly.Currency", isoly.Currency.is), isly.number()),
|
|
31
|
-
rules:
|
|
31
|
+
rules: ruleType.array().optional(),
|
|
32
32
|
meta: isly.fromIs("Card.Meta", Meta.is).optional(),
|
|
33
33
|
})
|
|
34
34
|
export const is = type.is
|
package/Card/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isoly } from "isoly"
|
|
2
2
|
import { isly } from "isly"
|
|
3
3
|
import { Realm } from "../Realm"
|
|
4
|
-
import { Rule } from "../Rule"
|
|
4
|
+
import { Rule, type as ruleType } from "../Rule/Rule"
|
|
5
5
|
import { Changeable as CardChangeable } from "./Changeable"
|
|
6
6
|
import { Creatable as CardCreatable } from "./Creatable"
|
|
7
7
|
import { Expiry as CardExpiry } from "./Expiry"
|
|
@@ -54,7 +54,7 @@ export namespace Card {
|
|
|
54
54
|
spent: isly.tuple(isly.fromIs("isoly.Currency", isoly.Currency.is), isly.number()),
|
|
55
55
|
status: isly.union(isly.string("active"), isly.string("cancelled")),
|
|
56
56
|
history: isly.array(CardOperation.type),
|
|
57
|
-
rules:
|
|
57
|
+
rules: ruleType.array(),
|
|
58
58
|
meta: isly.fromIs("Card.Meta", CardMeta.is).optional(),
|
|
59
59
|
})
|
|
60
60
|
export const is = type.is
|
package/Rule/Rule.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
|
|
3
|
+
export interface Rule {
|
|
4
|
+
name: string
|
|
5
|
+
description: string
|
|
6
|
+
action: Action
|
|
7
|
+
type: Kind
|
|
8
|
+
condition: string
|
|
9
|
+
flags: string[]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const actions = ["review", "reject", "flag"] as const
|
|
13
|
+
export type Action = typeof actions[number]
|
|
14
|
+
export const kinds = ["authorization", "outbound", "inbound"] as const
|
|
15
|
+
export type Kind = typeof kinds[number]
|
|
16
|
+
|
|
17
|
+
export const type = isly.object<Rule>({
|
|
18
|
+
name: isly.string(),
|
|
19
|
+
description: isly.string(),
|
|
20
|
+
action: isly.string(actions),
|
|
21
|
+
type: isly.string(kinds),
|
|
22
|
+
condition: isly.string(),
|
|
23
|
+
flags: isly.string().array(),
|
|
24
|
+
})
|
|
25
|
+
export const is = type.is
|
|
26
|
+
export const flaw = type.flaw
|
|
27
|
+
export function stringify(rule: Rule): string {
|
|
28
|
+
return `{ label: ${rule.name}, action: ${rule.action}, type: ${rule.type}, condition: ${rule.condition}, description: ${rule.description}. }`
|
|
29
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Authorization as ModelAuthorization } from "../../Authorization"
|
|
2
2
|
|
|
3
3
|
export type Authorization = ModelAuthorization.Creatable
|
|
4
4
|
|
|
@@ -6,4 +6,7 @@ export namespace Authorization {
|
|
|
6
6
|
export function from(authorization: ModelAuthorization.Creatable): Authorization {
|
|
7
7
|
return authorization
|
|
8
8
|
}
|
|
9
|
+
export const type = ModelAuthorization.Creatable.type
|
|
10
|
+
export const is = type.is
|
|
11
|
+
export const flaw = type.flaw
|
|
9
12
|
}
|
package/Rule/State/Card.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Card as ModelCard } from "../../Card"
|
|
2
2
|
|
|
3
3
|
export type Card = ModelCard
|
|
4
4
|
|
|
@@ -6,4 +6,7 @@ export namespace Card {
|
|
|
6
6
|
export function from(card: ModelCard): Card {
|
|
7
7
|
return card
|
|
8
8
|
}
|
|
9
|
+
export const type = ModelCard.type
|
|
10
|
+
export const is = type.is
|
|
11
|
+
export const flaw = type.flaw
|
|
9
12
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
import { Authorization } from "./Authorization"
|
|
3
|
+
import { Card } from "./Card"
|
|
4
|
+
|
|
5
|
+
export interface Partial {
|
|
6
|
+
authorization: Authorization
|
|
7
|
+
card: Card
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace Partial {
|
|
11
|
+
export const type = isly.object<Partial>({ card: Card.type, authorization: Authorization.type })
|
|
12
|
+
export const is = type.is
|
|
13
|
+
export const flaw = type.flaw
|
|
14
|
+
}
|
package/Rule/State/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Transaction as ModelTransaction } from "../../Transaction"
|
|
|
5
5
|
import { Account as StateAccount } from "./Account"
|
|
6
6
|
import { Authorization as StateAuthorization } from "./Authorization"
|
|
7
7
|
import { Card as StateCard } from "./Card"
|
|
8
|
+
import { Partial as StatePartial } from "./Partial"
|
|
8
9
|
import { Transaction as StateTransaction } from "./Transaction"
|
|
9
10
|
|
|
10
11
|
export interface State {
|
|
@@ -28,6 +29,8 @@ export namespace State {
|
|
|
28
29
|
transaction: Transaction.from(transaction),
|
|
29
30
|
}
|
|
30
31
|
}
|
|
32
|
+
export type Partial = StatePartial
|
|
33
|
+
export const Partial = StatePartial
|
|
31
34
|
export type Account = StateAccount
|
|
32
35
|
export const Account = StateAccount
|
|
33
36
|
export type Authorization = StateAuthorization
|
package/Rule/index.ts
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import { selectively } from "selectively"
|
|
2
|
-
import { isly } from "isly"
|
|
3
2
|
import { definitions } from "./definitions"
|
|
3
|
+
import * as ModelRule from "./Rule"
|
|
4
4
|
import { State as RuleState } from "./State"
|
|
5
5
|
|
|
6
|
-
export
|
|
7
|
-
name: string
|
|
8
|
-
description: string
|
|
9
|
-
action: Rule.Action
|
|
10
|
-
type: Rule.Kind
|
|
11
|
-
condition: string
|
|
12
|
-
flags: string[]
|
|
13
|
-
}
|
|
6
|
+
export type Rule = ModelRule.Rule
|
|
14
7
|
|
|
15
8
|
export namespace Rule {
|
|
16
|
-
export const actions =
|
|
17
|
-
export type Action =
|
|
18
|
-
export const kinds =
|
|
19
|
-
export type Kind =
|
|
9
|
+
export const actions = ModelRule.actions
|
|
10
|
+
export type Action = ModelRule.Action
|
|
11
|
+
export const kinds = ModelRule.kinds
|
|
12
|
+
export type Kind = ModelRule.Kind
|
|
20
13
|
export type State = RuleState
|
|
21
14
|
export const State = RuleState
|
|
22
15
|
export namespace State {
|
|
@@ -26,19 +19,10 @@ export namespace Rule {
|
|
|
26
19
|
export type Transaction = RuleState.Transaction
|
|
27
20
|
}
|
|
28
21
|
|
|
29
|
-
export const type =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
type: isly.string(kinds),
|
|
34
|
-
condition: isly.string(),
|
|
35
|
-
flags: isly.string().array(),
|
|
36
|
-
})
|
|
37
|
-
export const is = type.is
|
|
38
|
-
export const flaw = type.flaw
|
|
39
|
-
export function stringify(rule: Rule): string {
|
|
40
|
-
return `{ label: ${rule.name}, action: ${rule.action}, type: ${rule.type}, condition: ${rule.condition}, description: ${rule.description}. }`
|
|
41
|
-
}
|
|
22
|
+
export const type = ModelRule.type
|
|
23
|
+
export const is = ModelRule.type.is
|
|
24
|
+
export const flaw = ModelRule.type.flaw
|
|
25
|
+
export const stringify = ModelRule.stringify
|
|
42
26
|
export function evaluate(
|
|
43
27
|
rules: Rule[],
|
|
44
28
|
state: State,
|
package/Settlement/Entry.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface Succeeded {
|
|
|
10
10
|
type: "capture" | "cancel" | "refund"
|
|
11
11
|
account: string
|
|
12
12
|
card: { id: string; token: string; iin: string; last4: string }
|
|
13
|
+
authorization: string
|
|
13
14
|
transaction: { id: string; posted: isoly.DateTime; description: string }
|
|
14
15
|
amount: [isoly.Currency, number]
|
|
15
16
|
fee: [isoly.Currency, number]
|
|
@@ -21,6 +22,7 @@ export interface Failed {
|
|
|
21
22
|
type?: "capture" | "cancel" | "refund"
|
|
22
23
|
account?: string
|
|
23
24
|
card?: { id: string; token: string; iin: string; last4: string }
|
|
25
|
+
authorization?: string
|
|
24
26
|
transaction?: { id: string; posted: isoly.DateTime; description: string }
|
|
25
27
|
amount?: [isoly.Currency, number]
|
|
26
28
|
fee?: [isoly.Currency, number]
|
|
@@ -39,6 +41,7 @@ export namespace Entry {
|
|
|
39
41
|
iin: isly.string(),
|
|
40
42
|
last4: isly.string(),
|
|
41
43
|
}),
|
|
44
|
+
authorization: isly.string(),
|
|
42
45
|
transaction: isly.object<{ id: string; posted: string; description: string }>({
|
|
43
46
|
id: isly.string(),
|
|
44
47
|
posted: isly.fromIs("transaction.posted", isoly.DateTime.is),
|
|
@@ -64,6 +67,7 @@ export namespace Entry {
|
|
|
64
67
|
last4: isly.string(),
|
|
65
68
|
})
|
|
66
69
|
.optional(),
|
|
70
|
+
authorization: isly.string().optional(),
|
|
67
71
|
transaction: isly
|
|
68
72
|
.object<{ id: string; posted: string; description: string }>({
|
|
69
73
|
id: isly.string(),
|
package/dist/Card/Creatable.d.ts
CHANGED
package/dist/Card/Creatable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
-
import {
|
|
3
|
+
import { type as ruleType } from "../Rule/Rule";
|
|
4
4
|
import { Expiry } from "./Expiry";
|
|
5
5
|
import { Meta } from "./Meta";
|
|
6
6
|
import { Preset } from "./Preset";
|
|
@@ -15,7 +15,7 @@ export var Creatable;
|
|
|
15
15
|
holder: isly.string(),
|
|
16
16
|
}),
|
|
17
17
|
limit: isly.tuple(isly.fromIs("isoly.Currency", isoly.Currency.is), isly.number()),
|
|
18
|
-
rules:
|
|
18
|
+
rules: ruleType.array().optional(),
|
|
19
19
|
meta: isly.fromIs("Card.Meta", Meta.is).optional(),
|
|
20
20
|
});
|
|
21
21
|
Creatable.is = Creatable.type.is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Card/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,
|
|
1
|
+
{"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Card/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAQ,IAAI,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAejC,MAAM,KAAW,SAAS,CAczB;AAdD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,MAAM,EAAE,MAAM,CAAC,IAAI;QACnB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC;YACpB,MAAM,EAAE,MAAM,CAAC,IAAI;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;SACrB,CAAC;QACF,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;QAClF,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAClC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KAClD,CAAC,CAAA;IACW,YAAE,GAAG,UAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAdgB,SAAS,KAAT,SAAS,QAczB"}
|
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
3
|
import { Realm } from "../Realm";
|
|
4
|
-
import { Rule } from "../Rule";
|
|
4
|
+
import { Rule } from "../Rule/Rule";
|
|
5
5
|
import { Changeable as CardChangeable } from "./Changeable";
|
|
6
6
|
import { Creatable as CardCreatable } from "./Creatable";
|
|
7
7
|
import { Expiry as CardExpiry } from "./Expiry";
|
package/dist/Card/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
3
|
import { Realm } from "../Realm";
|
|
4
|
-
import {
|
|
4
|
+
import { type as ruleType } from "../Rule/Rule";
|
|
5
5
|
import { Changeable as CardChangeable } from "./Changeable";
|
|
6
6
|
import { Creatable as CardCreatable } from "./Creatable";
|
|
7
7
|
import { Expiry as CardExpiry } from "./Expiry";
|
|
@@ -30,7 +30,7 @@ export var Card;
|
|
|
30
30
|
spent: isly.tuple(isly.fromIs("isoly.Currency", isoly.Currency.is), isly.number()),
|
|
31
31
|
status: isly.union(isly.string("active"), isly.string("cancelled")),
|
|
32
32
|
history: isly.array(CardOperation.type),
|
|
33
|
-
rules:
|
|
33
|
+
rules: ruleType.array(),
|
|
34
34
|
meta: isly.fromIs("Card.Meta", CardMeta.is).optional(),
|
|
35
35
|
});
|
|
36
36
|
Card.is = Card.type.is;
|
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,KAAK,EAAE,MAAM,OAAO,CAAA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} from "isly";
|
|
2
|
+
export interface Rule {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
action: Action;
|
|
6
|
+
type: Kind;
|
|
7
|
+
condition: string;
|
|
8
|
+
flags: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare const actions: readonly ["review", "reject", "flag"];
|
|
11
|
+
export type Action = typeof actions[number];
|
|
12
|
+
export declare const kinds: readonly ["authorization", "outbound", "inbound"];
|
|
13
|
+
export type Kind = typeof kinds[number];
|
|
14
|
+
export declare const type: isly.object.ExtendableType<Rule>;
|
|
15
|
+
export declare const is: isly.Type.IsFunction<Rule>;
|
|
16
|
+
export declare const flaw: isly.Type.FlawFunction;
|
|
17
|
+
export declare function stringify(rule: Rule): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export const actions = ["review", "reject", "flag"];
|
|
3
|
+
export const kinds = ["authorization", "outbound", "inbound"];
|
|
4
|
+
export const type = isly.object({
|
|
5
|
+
name: isly.string(),
|
|
6
|
+
description: isly.string(),
|
|
7
|
+
action: isly.string(actions),
|
|
8
|
+
type: isly.string(kinds),
|
|
9
|
+
condition: isly.string(),
|
|
10
|
+
flags: isly.string().array(),
|
|
11
|
+
});
|
|
12
|
+
export const is = type.is;
|
|
13
|
+
export const flaw = type.flaw;
|
|
14
|
+
export function stringify(rule) {
|
|
15
|
+
return `{ label: ${rule.name}, action: ${rule.action}, type: ${rule.type}, condition: ${rule.condition}, description: ${rule.description}. }`;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Rule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rule.js","sourceRoot":"../","sources":["Rule/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAW3B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAA;AAE5D,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,SAAS,CAAU,CAAA;AAGtE,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAO;IACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;IAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IACxB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;CAC5B,CAAC,CAAA;AACF,MAAM,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,CAAA;AACzB,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;AAC7B,MAAM,UAAU,SAAS,CAAC,IAAU;IACnC,OAAO,YAAY,IAAI,CAAC,IAAI,aAAa,IAAI,CAAC,MAAM,WAAW,IAAI,CAAC,IAAI,gBAAgB,IAAI,CAAC,SAAS,kBAAkB,IAAI,CAAC,WAAW,KAAK,CAAA;AAC9I,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Authorization as ModelAuthorization } from "../../Authorization";
|
|
2
2
|
export type Authorization = ModelAuthorization.Creatable;
|
|
3
3
|
export declare namespace Authorization {
|
|
4
4
|
function from(authorization: ModelAuthorization.Creatable): Authorization;
|
|
5
|
+
const type: import("isly/dist/object").object.ExtendableType<import("../../Authorization/Creatable").Creatable>;
|
|
6
|
+
const is: import("isly/dist/Type").Type.IsFunction<import("../../Authorization/Creatable").Creatable>;
|
|
7
|
+
const flaw: import("isly/dist/Type").Type.FlawFunction;
|
|
5
8
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { Authorization as ModelAuthorization } from "../../Authorization";
|
|
1
2
|
export var Authorization;
|
|
2
3
|
(function (Authorization) {
|
|
3
4
|
function from(authorization) {
|
|
4
5
|
return authorization;
|
|
5
6
|
}
|
|
6
7
|
Authorization.from = from;
|
|
8
|
+
Authorization.type = ModelAuthorization.Creatable.type;
|
|
9
|
+
Authorization.is = Authorization.type.is;
|
|
10
|
+
Authorization.flaw = Authorization.type.flaw;
|
|
7
11
|
})(Authorization || (Authorization = {}));
|
|
8
12
|
//# sourceMappingURL=Authorization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authorization.js","sourceRoot":"../","sources":["Rule/State/Authorization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Authorization.js","sourceRoot":"../","sources":["Rule/State/Authorization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAIzE,MAAM,KAAW,aAAa,CAO7B;AAPD,WAAiB,aAAa;IAC7B,SAAgB,IAAI,CAAC,aAA2C;QAC/D,OAAO,aAAa,CAAA;IACrB,CAAC;IAFe,kBAAI,OAEnB,CAAA;IACY,kBAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,IAAI,CAAA;IACxC,gBAAE,GAAG,cAAA,IAAI,CAAC,EAAE,CAAA;IACZ,kBAAI,GAAG,cAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAPgB,aAAa,KAAb,aAAa,QAO7B"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Card as ModelCard } from "../../Card";
|
|
2
2
|
export type Card = ModelCard;
|
|
3
3
|
export declare namespace Card {
|
|
4
4
|
function from(card: ModelCard): Card;
|
|
5
|
+
const type: import("isly/dist/object").object.ExtendableType<ModelCard>;
|
|
6
|
+
const is: import("isly/dist/Type").Type.IsFunction<ModelCard>;
|
|
7
|
+
const flaw: import("isly/dist/Type").Type.FlawFunction;
|
|
5
8
|
}
|
package/dist/Rule/State/Card.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { Card as ModelCard } from "../../Card";
|
|
1
2
|
export var Card;
|
|
2
3
|
(function (Card) {
|
|
3
4
|
function from(card) {
|
|
4
5
|
return card;
|
|
5
6
|
}
|
|
6
7
|
Card.from = from;
|
|
8
|
+
Card.type = ModelCard.type;
|
|
9
|
+
Card.is = Card.type.is;
|
|
10
|
+
Card.flaw = Card.type.flaw;
|
|
7
11
|
})(Card || (Card = {}));
|
|
8
12
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"../","sources":["Rule/State/Card.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"../","sources":["Rule/State/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,YAAY,CAAA;AAI9C,MAAM,KAAW,IAAI,CAOpB;AAPD,WAAiB,IAAI;IACpB,SAAgB,IAAI,CAAC,IAAe;QACnC,OAAO,IAAI,CAAA;IACZ,CAAC;IAFe,SAAI,OAEnB,CAAA;IACY,SAAI,GAAG,SAAS,CAAC,IAAI,CAAA;IACrB,OAAE,GAAG,KAAA,IAAI,CAAC,EAAE,CAAA;IACZ,SAAI,GAAG,KAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAPgB,IAAI,KAAJ,IAAI,QAOpB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { Authorization } from "./Authorization";
|
|
3
|
+
import { Card } from "./Card";
|
|
4
|
+
export interface Partial {
|
|
5
|
+
authorization: Authorization;
|
|
6
|
+
card: Card;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace Partial {
|
|
9
|
+
const type: isly.object.ExtendableType<Partial>;
|
|
10
|
+
const is: isly.Type.IsFunction<Partial>;
|
|
11
|
+
const flaw: isly.Type.FlawFunction;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { Authorization } from "./Authorization";
|
|
3
|
+
import { Card } from "./Card";
|
|
4
|
+
export var Partial;
|
|
5
|
+
(function (Partial) {
|
|
6
|
+
Partial.type = isly.object({ card: Card.type, authorization: Authorization.type });
|
|
7
|
+
Partial.is = Partial.type.is;
|
|
8
|
+
Partial.flaw = Partial.type.flaw;
|
|
9
|
+
})(Partial || (Partial = {}));
|
|
10
|
+
//# sourceMappingURL=Partial.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Partial.js","sourceRoot":"../","sources":["Rule/State/Partial.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAO7B,MAAM,KAAW,OAAO,CAIvB;AAJD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC,CAAA;IACnF,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAJgB,OAAO,KAAP,OAAO,QAIvB"}
|
|
@@ -5,6 +5,7 @@ import { Transaction as ModelTransaction } from "../../Transaction";
|
|
|
5
5
|
import { Account as StateAccount } from "./Account";
|
|
6
6
|
import { Authorization as StateAuthorization } from "./Authorization";
|
|
7
7
|
import { Card as StateCard } from "./Card";
|
|
8
|
+
import { Partial as StatePartial } from "./Partial";
|
|
8
9
|
import { Transaction as StateTransaction } from "./Transaction";
|
|
9
10
|
export interface State {
|
|
10
11
|
account: StateAccount;
|
|
@@ -14,6 +15,8 @@ export interface State {
|
|
|
14
15
|
}
|
|
15
16
|
export declare namespace State {
|
|
16
17
|
function from(account: ModelAccount, transaction: ModelTransaction, authorization?: ModelAuthorization, card?: ModelCard): State;
|
|
18
|
+
type Partial = StatePartial;
|
|
19
|
+
const Partial: typeof StatePartial;
|
|
17
20
|
type Account = StateAccount;
|
|
18
21
|
const Account: typeof StateAccount;
|
|
19
22
|
type Authorization = StateAuthorization;
|
package/dist/Rule/State/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Account as StateAccount } from "./Account";
|
|
2
2
|
import { Authorization as StateAuthorization } from "./Authorization";
|
|
3
3
|
import { Card as StateCard } from "./Card";
|
|
4
|
+
import { Partial as StatePartial } from "./Partial";
|
|
4
5
|
import { Transaction as StateTransaction } from "./Transaction";
|
|
5
6
|
export var State;
|
|
6
7
|
(function (State) {
|
|
@@ -13,6 +14,7 @@ export var State;
|
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
16
|
State.from = from;
|
|
17
|
+
State.Partial = StatePartial;
|
|
16
18
|
State.Account = StateAccount;
|
|
17
19
|
State.Authorization = StateAuthorization;
|
|
18
20
|
State.Card = StateCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/State/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAS/D,MAAM,KAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/State/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAS/D,MAAM,KAAW,KAAK,CAwBrB;AAxBD,WAAiB,KAAK;IACrB,SAAgB,IAAI,CACnB,OAAqB,EACrB,WAA6B,EAC7B,aAAkC,EAClC,IAAgB;QAEhB,OAAO;YACN,OAAO,EAAE,MAAA,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;YAC9B,aAAa,EAAE,aAAa,IAAI,MAAA,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC;YACjE,IAAI,EAAE,IAAI,IAAI,MAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;YAC7B,WAAW,EAAE,MAAA,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;SAC1C,CAAA;IACF,CAAC;IAZe,UAAI,OAYnB,CAAA;IAEY,aAAO,GAAG,YAAY,CAAA;IAEtB,aAAO,GAAG,YAAY,CAAA;IAEtB,mBAAa,GAAG,kBAAkB,CAAA;IAElC,UAAI,GAAG,SAAS,CAAA;IAEhB,iBAAW,GAAG,gBAAgB,CAAA;AAC5C,CAAC,EAxBgB,KAAK,KAAL,KAAK,QAwBrB"}
|
package/dist/Rule/index.d.ts
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import { selectively } from "selectively";
|
|
2
|
-
import
|
|
2
|
+
import * as ModelRule from "./Rule";
|
|
3
3
|
import { State as RuleState } from "./State";
|
|
4
|
-
export
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
action: Rule.Action;
|
|
8
|
-
type: Rule.Kind;
|
|
9
|
-
condition: string;
|
|
10
|
-
flags: string[];
|
|
11
|
-
}
|
|
4
|
+
export type Rule = ModelRule.Rule;
|
|
12
5
|
export declare namespace Rule {
|
|
13
6
|
const actions: readonly ["review", "reject", "flag"];
|
|
14
|
-
type Action =
|
|
7
|
+
type Action = ModelRule.Action;
|
|
15
8
|
const kinds: readonly ["authorization", "outbound", "inbound"];
|
|
16
|
-
type Kind =
|
|
9
|
+
type Kind = ModelRule.Kind;
|
|
17
10
|
type State = RuleState;
|
|
18
11
|
const State: typeof RuleState;
|
|
19
12
|
namespace State {
|
|
@@ -22,9 +15,9 @@ export declare namespace Rule {
|
|
|
22
15
|
type Card = RuleState.Card;
|
|
23
16
|
type Transaction = RuleState.Transaction;
|
|
24
17
|
}
|
|
25
|
-
const type: isly.object.ExtendableType<Rule>;
|
|
26
|
-
const is: isly.Type.IsFunction<Rule>;
|
|
27
|
-
const flaw: isly.Type.FlawFunction;
|
|
28
|
-
|
|
18
|
+
const type: import("isly/dist/object").object.ExtendableType<ModelRule.Rule>;
|
|
19
|
+
const is: import("isly/dist/Type").Type.IsFunction<ModelRule.Rule>;
|
|
20
|
+
const flaw: import("isly/dist/Type").Type.FlawFunction;
|
|
21
|
+
const stringify: typeof ModelRule.stringify;
|
|
29
22
|
function evaluate(rules: Rule[], state: State, macros?: Record<string, selectively.Definition>): Record<Action, Rule[]>;
|
|
30
23
|
}
|
package/dist/Rule/index.js
CHANGED
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
import { selectively } from "selectively";
|
|
2
|
-
import { isly } from "isly";
|
|
3
2
|
import { definitions } from "./definitions";
|
|
3
|
+
import * as ModelRule from "./Rule";
|
|
4
4
|
import { State as RuleState } from "./State";
|
|
5
5
|
export var Rule;
|
|
6
6
|
(function (Rule) {
|
|
7
|
-
Rule.actions =
|
|
8
|
-
Rule.kinds =
|
|
7
|
+
Rule.actions = ModelRule.actions;
|
|
8
|
+
Rule.kinds = ModelRule.kinds;
|
|
9
9
|
Rule.State = RuleState;
|
|
10
|
-
Rule.type =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
type: isly.string(Rule.kinds),
|
|
15
|
-
condition: isly.string(),
|
|
16
|
-
flags: isly.string().array(),
|
|
17
|
-
});
|
|
18
|
-
Rule.is = Rule.type.is;
|
|
19
|
-
Rule.flaw = Rule.type.flaw;
|
|
20
|
-
function stringify(rule) {
|
|
21
|
-
return `{ label: ${rule.name}, action: ${rule.action}, type: ${rule.type}, condition: ${rule.condition}, description: ${rule.description}. }`;
|
|
22
|
-
}
|
|
23
|
-
Rule.stringify = stringify;
|
|
10
|
+
Rule.type = ModelRule.type;
|
|
11
|
+
Rule.is = ModelRule.type.is;
|
|
12
|
+
Rule.flaw = ModelRule.type.flaw;
|
|
13
|
+
Rule.stringify = ModelRule.stringify;
|
|
24
14
|
function evaluate(rules, state, macros) {
|
|
25
15
|
const result = { review: [], reject: [], flag: [] };
|
|
26
16
|
rules.forEach(r => selectively.resolve({ ...macros, ...definitions }, selectively.parse(r.condition)).is(state) &&
|
package/dist/Rule/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,KAAW,IAAI,CA+BpB;AA/BD,WAAiB,IAAI;IACP,YAAO,GAAG,SAAS,CAAC,OAAO,CAAA;IAE3B,UAAK,GAAG,SAAS,CAAC,KAAK,CAAA;IAGvB,UAAK,GAAG,SAAS,CAAA;IAQjB,SAAI,GAAG,SAAS,CAAC,IAAI,CAAA;IACrB,OAAE,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,CAAA;IACtB,SAAI,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA;IAC1B,cAAS,GAAG,SAAS,CAAC,SAAS,CAAA;IAC5C,SAAgB,QAAQ,CACvB,KAAa,EACb,KAAY,EACZ,MAA+C;QAE/C,MAAM,MAAM,GAA2B,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;QAC3E,KAAK,CAAC,OAAO,CACZ,CAAC,CAAC,EAAE,CACH,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,WAAW,EAAE,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;YAC5F,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACzB,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IAZe,aAAQ,WAYvB,CAAA;AACF,CAAC,EA/BgB,IAAI,KAAJ,IAAI,QA+BpB"}
|
|
@@ -13,6 +13,7 @@ export interface Succeeded {
|
|
|
13
13
|
iin: string;
|
|
14
14
|
last4: string;
|
|
15
15
|
};
|
|
16
|
+
authorization: string;
|
|
16
17
|
transaction: {
|
|
17
18
|
id: string;
|
|
18
19
|
posted: isoly.DateTime;
|
|
@@ -33,6 +34,7 @@ export interface Failed {
|
|
|
33
34
|
iin: string;
|
|
34
35
|
last4: string;
|
|
35
36
|
};
|
|
37
|
+
authorization?: string;
|
|
36
38
|
transaction?: {
|
|
37
39
|
id: string;
|
|
38
40
|
posted: isoly.DateTime;
|
package/dist/Settlement/Entry.js
CHANGED
|
@@ -16,6 +16,7 @@ export var Entry;
|
|
|
16
16
|
iin: isly.string(),
|
|
17
17
|
last4: isly.string(),
|
|
18
18
|
}),
|
|
19
|
+
authorization: isly.string(),
|
|
19
20
|
transaction: isly.object({
|
|
20
21
|
id: isly.string(),
|
|
21
22
|
posted: isly.fromIs("transaction.posted", isoly.DateTime.is),
|
|
@@ -42,6 +43,7 @@ export var Entry;
|
|
|
42
43
|
last4: isly.string(),
|
|
43
44
|
})
|
|
44
45
|
.optional(),
|
|
46
|
+
authorization: isly.string().optional(),
|
|
45
47
|
transaction: isly
|
|
46
48
|
.object({
|
|
47
49
|
id: isly.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Entry.js","sourceRoot":"../","sources":["Settlement/Entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"Entry.js","sourceRoot":"../","sources":["Settlement/Entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AA4BtC,MAAM,KAAW,KAAK,CAuDrB;AAvDD,WAAiB,KAAK;IACrB,IAAiB,SAAS,CAuBzB;IAvBD,WAAiB,SAAS;QACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;YAC1C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;YAChC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC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