@pax2pay/model-banking 0.1.93 → 0.1.94
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/Rule/State/Account.ts +3 -0
- package/Rule/State/Authorization.ts +3 -0
- package/Rule/State/Card.ts +3 -0
- package/Rule/State/Transaction.ts +3 -0
- package/Rule/State/index.ts +11 -0
- package/Rule/index.ts +2 -0
- package/dist/Rule/State/Account.d.ts +2 -0
- package/dist/Rule/State/Account.js +2 -0
- package/dist/Rule/State/Account.js.map +1 -0
- package/dist/Rule/State/Authorization.d.ts +2 -0
- package/dist/Rule/State/Authorization.js +2 -0
- package/dist/Rule/State/Authorization.js.map +1 -0
- package/dist/Rule/State/Card.d.ts +2 -0
- package/dist/Rule/State/Card.js +2 -0
- package/dist/Rule/State/Card.js.map +1 -0
- package/dist/Rule/State/Transaction.d.ts +2 -0
- package/dist/Rule/State/Transaction.js +2 -0
- package/dist/Rule/State/Transaction.js.map +1 -0
- package/dist/Rule/State/index.d.ts +10 -0
- package/dist/Rule/State/index.js +2 -0
- package/dist/Rule/State/index.js.map +1 -0
- package/dist/Rule/index.d.ts +2 -0
- package/dist/Rule/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Account } from "./Account"
|
|
2
|
+
import { Authorization } from "./Authorization"
|
|
3
|
+
import { Card } from "./Card"
|
|
4
|
+
import { Transaction } from "./Transaction"
|
|
5
|
+
|
|
6
|
+
export interface State {
|
|
7
|
+
authorization: Authorization
|
|
8
|
+
transaction: Transaction
|
|
9
|
+
account: Account
|
|
10
|
+
card: Card
|
|
11
|
+
}
|
package/Rule/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { selectively } from "selectively"
|
|
2
2
|
import { isly } from "isly"
|
|
3
3
|
import { definitions } from "./definitions"
|
|
4
|
+
import { State as RuleState } from "./State"
|
|
4
5
|
|
|
5
6
|
export interface Rule {
|
|
6
7
|
name: string
|
|
@@ -16,6 +17,7 @@ export namespace Rule {
|
|
|
16
17
|
export type Action = typeof actions[number]
|
|
17
18
|
export const kinds = ["authorization", "outbound", "inbound"] as const
|
|
18
19
|
export type Kind = typeof kinds[number]
|
|
20
|
+
export type State = RuleState
|
|
19
21
|
export const type = isly.object<Rule>({
|
|
20
22
|
name: isly.string(),
|
|
21
23
|
description: isly.string(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Account.js","sourceRoot":"../","sources":["Rule/State/Account.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Authorization.js","sourceRoot":"../","sources":["Rule/State/Authorization.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"../","sources":["Rule/State/Card.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Transaction.js","sourceRoot":"../","sources":["Rule/State/Transaction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Account } from "./Account";
|
|
2
|
+
import { Authorization } from "./Authorization";
|
|
3
|
+
import { Card } from "./Card";
|
|
4
|
+
import { Transaction } from "./Transaction";
|
|
5
|
+
export interface State {
|
|
6
|
+
authorization: Authorization;
|
|
7
|
+
transaction: Transaction;
|
|
8
|
+
account: Account;
|
|
9
|
+
card: Card;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/State/index.ts"],"names":[],"mappings":""}
|
package/dist/Rule/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { selectively } from "selectively";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
+
import { State as RuleState } from "./State";
|
|
3
4
|
export interface Rule {
|
|
4
5
|
name: string;
|
|
5
6
|
description: string;
|
|
@@ -13,6 +14,7 @@ export declare namespace Rule {
|
|
|
13
14
|
type Action = typeof actions[number];
|
|
14
15
|
const kinds: readonly ["authorization", "outbound", "inbound"];
|
|
15
16
|
type Kind = typeof kinds[number];
|
|
17
|
+
type State = RuleState;
|
|
16
18
|
const type: isly.object.ExtendableType<Rule>;
|
|
17
19
|
const is: isly.Type.IsFunction<Rule>;
|
|
18
20
|
const flaw: isly.Type.FlawFunction;
|
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,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAY3C,MAAM,KAAW,IAAI,CAgCpB;AAhCD,WAAiB,IAAI;IACP,YAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAA;IAE/C,UAAK,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,SAAS,CAAU,CAAA;IAGzD,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,KAAA,OAAO,CAAC;QAC5B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAA,KAAK,CAAC;QACxB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,K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