@pax2pay/model-banking 0.1.612 → 0.1.614
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/Amount.ts +0 -6
- package/Card/Changeable.ts +0 -13
- package/Card/Creatable.ts +0 -28
- package/Card/Expiry.ts +0 -14
- package/Card/Operation/Authorization.ts +1 -13
- package/Card/Operation/Card.ts +0 -14
- package/Card/Operation/index.ts +0 -5
- package/Card/Preset.ts +0 -5
- package/Card/Restriction/Merchant.ts +0 -2
- package/Card/Restriction/index.ts +0 -8
- package/Card/Restriction/merchants/Merchant.ts +2 -2
- package/Card/Scheme.ts +0 -5
- package/Card/index.ts +0 -37
- package/Client/Transactions/index.ts +0 -21
- package/Rail/index.ts +0 -2
- package/Realm.ts +0 -5
- package/Rule/Base.ts +0 -26
- package/Rule/Other.ts +0 -6
- package/Rule/type.ts +0 -5
- package/Treasury/Snapshot/Reconciliation.ts +4 -0
- package/Treasury/Snapshot/index.ts +3 -1
- package/Warning/Snapshot/Reconciliation.ts +20 -0
- package/Warning/Snapshot/index.ts +15 -9
- package/dist/cjs/Amount.d.ts +0 -2
- package/dist/cjs/Amount.js +0 -3
- package/dist/cjs/Amount.js.map +1 -1
- package/dist/cjs/Card/Changeable.d.ts +0 -2
- package/dist/cjs/Card/Changeable.js +0 -13
- package/dist/cjs/Card/Changeable.js.map +1 -1
- package/dist/cjs/Card/Creatable.d.ts +0 -2
- package/dist/cjs/Card/Creatable.js +0 -28
- package/dist/cjs/Card/Creatable.js.map +1 -1
- package/dist/cjs/Card/Expiry.d.ts +0 -2
- package/dist/cjs/Card/Expiry.js +0 -11
- package/dist/cjs/Card/Expiry.js.map +1 -1
- package/dist/cjs/Card/Operation/Authorization.d.ts +0 -2
- package/dist/cjs/Card/Operation/Authorization.js +0 -12
- package/dist/cjs/Card/Operation/Authorization.js.map +1 -1
- package/dist/cjs/Card/Operation/Card.d.ts +0 -2
- package/dist/cjs/Card/Operation/Card.js +0 -14
- package/dist/cjs/Card/Operation/Card.js.map +1 -1
- package/dist/cjs/Card/Operation/index.d.ts +0 -2
- package/dist/cjs/Card/Operation/index.js +0 -5
- package/dist/cjs/Card/Operation/index.js.map +1 -1
- package/dist/cjs/Card/Preset.d.ts +0 -2
- package/dist/cjs/Card/Preset.js +0 -5
- package/dist/cjs/Card/Preset.js.map +1 -1
- package/dist/cjs/Card/Restriction/Merchant.d.ts +0 -2
- package/dist/cjs/Card/Restriction/Merchant.js +0 -2
- package/dist/cjs/Card/Restriction/Merchant.js.map +1 -1
- package/dist/cjs/Card/Restriction/index.d.ts +0 -2
- package/dist/cjs/Card/Restriction/index.js +0 -8
- package/dist/cjs/Card/Restriction/index.js.map +1 -1
- package/dist/cjs/Card/Restriction/merchants/Merchant.d.ts +1 -2
- package/dist/cjs/Card/Restriction/merchants/Merchant.js +8 -8
- package/dist/cjs/Card/Restriction/merchants/Merchant.js.map +1 -1
- package/dist/cjs/Card/Scheme.d.ts +0 -2
- package/dist/cjs/Card/Scheme.js +0 -5
- package/dist/cjs/Card/Scheme.js.map +1 -1
- package/dist/cjs/Card/index.d.ts +0 -2
- package/dist/cjs/Card/index.js +0 -38
- package/dist/cjs/Card/index.js.map +1 -1
- package/dist/cjs/Client/Transactions/index.d.ts +0 -16
- package/dist/cjs/Client/Transactions/index.js +0 -27
- package/dist/cjs/Client/Transactions/index.js.map +1 -1
- package/dist/cjs/Rail/index.d.ts +0 -2
- package/dist/cjs/Rail/index.js +0 -2
- package/dist/cjs/Rail/index.js.map +1 -1
- package/dist/cjs/Realm.d.ts +0 -2
- package/dist/cjs/Realm.js +0 -5
- package/dist/cjs/Realm.js.map +1 -1
- package/dist/cjs/Rule/Base.d.ts +0 -4
- package/dist/cjs/Rule/Base.js +0 -26
- package/dist/cjs/Rule/Base.js.map +1 -1
- package/dist/cjs/Rule/Other.d.ts +0 -3
- package/dist/cjs/Rule/Other.js +0 -6
- package/dist/cjs/Rule/Other.js.map +1 -1
- package/dist/cjs/Rule/type.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Reconciliation.d.ts +4 -0
- package/dist/cjs/Treasury/Snapshot/Reconciliation.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Reconciliation.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/index.d.ts +3 -0
- package/dist/cjs/Treasury/Snapshot/index.js.map +1 -1
- package/dist/cjs/Warning/Snapshot/Reconciliation.d.ts +15 -0
- package/dist/cjs/Warning/Snapshot/Reconciliation.js +16 -0
- package/dist/cjs/Warning/Snapshot/Reconciliation.js.map +1 -0
- package/dist/cjs/Warning/Snapshot/index.d.ts +6 -4
- package/dist/cjs/Warning/Snapshot/index.js +6 -4
- package/dist/cjs/Warning/Snapshot/index.js.map +1 -1
- package/dist/cjs/Warning/index.d.ts +1 -1
- package/dist/mjs/Amount.d.ts +0 -2
- package/dist/mjs/Amount.js +0 -3
- package/dist/mjs/Amount.js.map +1 -1
- package/dist/mjs/Card/Changeable.d.ts +0 -2
- package/dist/mjs/Card/Changeable.js +0 -13
- package/dist/mjs/Card/Changeable.js.map +1 -1
- package/dist/mjs/Card/Creatable.d.ts +0 -2
- package/dist/mjs/Card/Creatable.js +0 -28
- package/dist/mjs/Card/Creatable.js.map +1 -1
- package/dist/mjs/Card/Expiry.d.ts +0 -2
- package/dist/mjs/Card/Expiry.js +0 -11
- package/dist/mjs/Card/Expiry.js.map +1 -1
- package/dist/mjs/Card/Operation/Authorization.d.ts +0 -2
- package/dist/mjs/Card/Operation/Authorization.js +0 -12
- package/dist/mjs/Card/Operation/Authorization.js.map +1 -1
- package/dist/mjs/Card/Operation/Card.d.ts +0 -2
- package/dist/mjs/Card/Operation/Card.js +0 -14
- package/dist/mjs/Card/Operation/Card.js.map +1 -1
- package/dist/mjs/Card/Operation/index.d.ts +0 -2
- package/dist/mjs/Card/Operation/index.js +0 -5
- package/dist/mjs/Card/Operation/index.js.map +1 -1
- package/dist/mjs/Card/Preset.d.ts +0 -2
- package/dist/mjs/Card/Preset.js +0 -5
- package/dist/mjs/Card/Preset.js.map +1 -1
- package/dist/mjs/Card/Restriction/Merchant.d.ts +0 -2
- package/dist/mjs/Card/Restriction/Merchant.js +0 -2
- package/dist/mjs/Card/Restriction/Merchant.js.map +1 -1
- package/dist/mjs/Card/Restriction/index.d.ts +0 -2
- package/dist/mjs/Card/Restriction/index.js +0 -8
- package/dist/mjs/Card/Restriction/index.js.map +1 -1
- package/dist/mjs/Card/Restriction/merchants/Merchant.d.ts +1 -2
- package/dist/mjs/Card/Restriction/merchants/Merchant.js +2 -2
- package/dist/mjs/Card/Restriction/merchants/Merchant.js.map +1 -1
- package/dist/mjs/Card/Scheme.d.ts +0 -2
- package/dist/mjs/Card/Scheme.js +0 -5
- package/dist/mjs/Card/Scheme.js.map +1 -1
- package/dist/mjs/Card/index.d.ts +0 -2
- package/dist/mjs/Card/index.js +0 -38
- package/dist/mjs/Card/index.js.map +1 -1
- package/dist/mjs/Client/Transactions/index.d.ts +0 -16
- package/dist/mjs/Client/Transactions/index.js +0 -27
- package/dist/mjs/Client/Transactions/index.js.map +1 -1
- package/dist/mjs/Rail/index.d.ts +0 -2
- package/dist/mjs/Rail/index.js +0 -2
- package/dist/mjs/Rail/index.js.map +1 -1
- package/dist/mjs/Realm.d.ts +0 -2
- package/dist/mjs/Realm.js +0 -5
- package/dist/mjs/Realm.js.map +1 -1
- package/dist/mjs/Rule/Base.d.ts +0 -4
- package/dist/mjs/Rule/Base.js +0 -26
- package/dist/mjs/Rule/Base.js.map +1 -1
- package/dist/mjs/Rule/Other.d.ts +0 -3
- package/dist/mjs/Rule/Other.js +0 -6
- package/dist/mjs/Rule/Other.js.map +1 -1
- package/dist/mjs/Rule/type.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Reconciliation.d.ts +4 -0
- package/dist/mjs/Treasury/Snapshot/Reconciliation.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Reconciliation.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/index.d.ts +3 -0
- package/dist/mjs/Treasury/Snapshot/index.js.map +1 -1
- package/dist/mjs/Warning/Snapshot/Reconciliation.d.ts +15 -0
- package/dist/mjs/Warning/Snapshot/Reconciliation.js +13 -0
- package/dist/mjs/Warning/Snapshot/Reconciliation.js.map +1 -0
- package/dist/mjs/Warning/Snapshot/index.d.ts +6 -4
- package/dist/mjs/Warning/Snapshot/index.js +6 -4
- package/dist/mjs/Warning/Snapshot/index.js.map +1 -1
- package/dist/mjs/Warning/index.d.ts +1 -1
- package/package.json +1 -6
package/dist/mjs/Rule/Base.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Preset } from "../Card/Preset";
|
|
4
3
|
export interface Base {
|
|
5
4
|
code: string;
|
|
@@ -17,15 +16,12 @@ export declare namespace Base {
|
|
|
17
16
|
namespace Kind {
|
|
18
17
|
const values: readonly ["authorization", "outbound", "inbound", "capture", "refund"];
|
|
19
18
|
const type: isly.Type<"authorization" | "outbound" | "inbound" | "capture" | "refund">;
|
|
20
|
-
const type2: isly2.String<"authorization" | "outbound" | "inbound" | "capture" | "refund">;
|
|
21
19
|
function is(kind: Kind, rule: Base, groups: string[] | undefined, preset: Preset | undefined): boolean;
|
|
22
20
|
}
|
|
23
21
|
type Category = (typeof Category.values)[number];
|
|
24
22
|
namespace Category {
|
|
25
23
|
const values: readonly ["fincrime", "product", "customer"];
|
|
26
24
|
const type: isly.Type<"fincrime" | "product" | "customer">;
|
|
27
|
-
const type2: isly2.String<"fincrime" | "product" | "customer">;
|
|
28
25
|
}
|
|
29
26
|
const type: import("isly/dist/cjs/object").IslyObject<Base, object>;
|
|
30
|
-
const type2: isly2.Object<Base>;
|
|
31
27
|
}
|
package/dist/mjs/Rule/Base.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Preset } from "../Card/Preset";
|
|
4
3
|
export var Base;
|
|
5
4
|
(function (Base) {
|
|
@@ -7,10 +6,6 @@ export var Base;
|
|
|
7
6
|
(function (Kind) {
|
|
8
7
|
Kind.values = ["authorization", "outbound", "inbound", "capture", "refund"];
|
|
9
8
|
Kind.type = isly.string(Kind.values);
|
|
10
|
-
Kind.type2 = isly2
|
|
11
|
-
.string("value", ...Kind.values)
|
|
12
|
-
.rename("Kind")
|
|
13
|
-
.describe("The type of the rule.");
|
|
14
9
|
function is(kind, rule, groups, preset) {
|
|
15
10
|
const applyRuleForGroup = !rule.groups || rule.groups.some(ruleGroup => groups?.some(organizationGroup => organizationGroup == ruleGroup));
|
|
16
11
|
const applyRuleForPreset = !rule.presets || rule.presets.some(rulePreset => preset == rulePreset);
|
|
@@ -22,10 +17,6 @@ export var Base;
|
|
|
22
17
|
(function (Category) {
|
|
23
18
|
Category.values = ["fincrime", "product", "customer"];
|
|
24
19
|
Category.type = isly.string(Category.values);
|
|
25
|
-
Category.type2 = isly2
|
|
26
|
-
.string("value", ...Category.values)
|
|
27
|
-
.rename("Category")
|
|
28
|
-
.describe("The category of the rule.");
|
|
29
20
|
})(Category = Base.Category || (Base.Category = {}));
|
|
30
21
|
Base.type = isly.object({
|
|
31
22
|
code: isly.string(/^[a-z0-9\-_]+$/),
|
|
@@ -38,22 +29,5 @@ export var Base;
|
|
|
38
29
|
groups: isly.string().array().optional(),
|
|
39
30
|
presets: Preset.type.array().optional(),
|
|
40
31
|
});
|
|
41
|
-
Base.type2 = isly2.object({
|
|
42
|
-
code: isly2
|
|
43
|
-
.string("value", /^[a-z0-9\-_]+$/)
|
|
44
|
-
.rename("Code")
|
|
45
|
-
.describe("The unique identifier of the rule."),
|
|
46
|
-
name: isly2.string().rename("Name").describe("The name of the rule."),
|
|
47
|
-
description: isly2.string().rename("Description").describe("The description of the rule."),
|
|
48
|
-
type: Kind.type2,
|
|
49
|
-
category: Category.type2,
|
|
50
|
-
condition: isly2
|
|
51
|
-
.string()
|
|
52
|
-
.rename("Condition")
|
|
53
|
-
.describe("The condition to evaluate, determines if the action is applied or not."),
|
|
54
|
-
flags: isly2.string().array().rename("Flags").describe("The flags to set when the rule is applied."),
|
|
55
|
-
groups: isly2.string().array().optional().rename("Groups").describe("The groups the rule applies to."),
|
|
56
|
-
presets: Preset.type2.array().optional().rename("Presets").describe("The presets the rule applies to."),
|
|
57
|
-
});
|
|
58
32
|
})(Base || (Base = {}));
|
|
59
33
|
//# sourceMappingURL=Base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../Rule/Base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../Rule/Base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAavC,MAAM,KAAW,IAAI,CA4BpB;AA5BD,WAAiB,IAAI;IAEpB,IAAiB,IAAI,CASpB;IATD,WAAiB,IAAI;QACP,WAAM,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAA;QAC/E,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO,KAAA,MAAM,CAAC,CAAA;QAC7C,SAAgB,EAAE,CAAC,IAAU,EAAE,IAAU,EAAE,MAA4B,EAAE,MAA0B;YAClG,MAAM,iBAAiB,GACtB,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC,iBAAiB,IAAI,SAAS,CAAC,CAAC,CAAA;YACjH,MAAM,kBAAkB,GAAG,CAAC,IAAI,CAAC,O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/Note";
|
|
4
3
|
import { Base } from "./Base";
|
|
5
4
|
import type { State } from "./State";
|
|
@@ -11,10 +10,8 @@ export declare namespace Other {
|
|
|
11
10
|
namespace Action {
|
|
12
11
|
const values: readonly ["review", "reject", "flag"];
|
|
13
12
|
const type: isly.Type<"reject" | "review" | "flag">;
|
|
14
|
-
const type2: isly2.String<"reject" | "review" | "flag">;
|
|
15
13
|
}
|
|
16
14
|
const type: import("isly/dist/cjs/object").IslyObject<Other, Base>;
|
|
17
|
-
const type2: isly2.Object<Other>;
|
|
18
15
|
function evaluate(rules: Other[], state: State): {
|
|
19
16
|
outcomes: Record<Other.Action, Other[]>;
|
|
20
17
|
notes: Note[];
|
package/dist/mjs/Rule/Other.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
-
import { isly as isly2 } from "isly2";
|
|
4
3
|
import { Base } from "./Base";
|
|
5
4
|
import { control } from "./control";
|
|
6
5
|
export var Other;
|
|
@@ -9,13 +8,8 @@ export var Other;
|
|
|
9
8
|
(function (Action) {
|
|
10
9
|
Action.values = ["review", "reject", "flag"];
|
|
11
10
|
Action.type = isly.string(Action.values);
|
|
12
|
-
Action.type2 = isly2
|
|
13
|
-
.string("value", ...Action.values)
|
|
14
|
-
.rename("Action")
|
|
15
|
-
.describe("The action to take when the rule is applied.");
|
|
16
11
|
})(Action = Other.Action || (Other.Action = {}));
|
|
17
12
|
Other.type = Base.type.extend({ action: Action.type });
|
|
18
|
-
Other.type2 = Base.type2.extend({ action: Action.type2 });
|
|
19
13
|
function evaluate(rules, state) {
|
|
20
14
|
const now = isoly.DateTime.now();
|
|
21
15
|
const result = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Other.js","sourceRoot":"","sources":["../../../Rule/Other.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI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I,KAAK,EAAE,CAAC;gBAC1B,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;oBAC1B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;oBACvC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;oBAC/E,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;oBAC5C,IAAI,CAAC,MAAM,IAAI,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;gBACtD,CAAC;YACF,CAAC;QACF,CAAC;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IA5Be,cAAQ,WA4BvB,CAAA;AACF,CAAC,EApCgB,KAAK,KAAL,KAAK,QAoCrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../Rule/type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../Rule/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reconciliation.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/Reconciliation.ts"],"names":[],"mappings":""}
|
|
@@ -7,10 +7,12 @@ import { Account as SnapshotAccount } from "./Account";
|
|
|
7
7
|
import { Emoney as SnapshotEmoney } from "./Emoney";
|
|
8
8
|
import { Fiat as SnapshotFiat } from "./Fiat";
|
|
9
9
|
import { funding as snapshotFunding } from "./funding";
|
|
10
|
+
import { Reconciliation as SnapshotReconciliation } from "./Reconciliation";
|
|
10
11
|
export interface Snapshot {
|
|
11
12
|
warnings: Warning.Snapshot[];
|
|
12
13
|
emoney: Balance.Extended & {
|
|
13
14
|
total?: number;
|
|
15
|
+
reconciliation?: Snapshot.Reconciliation;
|
|
14
16
|
};
|
|
15
17
|
currency: isoly.Currency;
|
|
16
18
|
supplier: Supplier;
|
|
@@ -26,6 +28,7 @@ export interface Snapshot {
|
|
|
26
28
|
}
|
|
27
29
|
export declare namespace Snapshot {
|
|
28
30
|
export import funding = snapshotFunding;
|
|
31
|
+
type Reconciliation = SnapshotReconciliation;
|
|
29
32
|
type Emoney = SnapshotEmoney;
|
|
30
33
|
type Fiat = SnapshotFiat;
|
|
31
34
|
export import Account = SnapshotAccount;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AAGtD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EA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,MAAM,EAAE;YACrB,QAAQ,EAAE,SAAA,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE;SAC9B,CAAC;QACF,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;KACpC,CAAC,CAAA;AACH,CAAC,EA1BgB,QAAQ,KAAR,QAAQ,QA0BxB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { Base } from "../Base";
|
|
3
|
+
export interface Reconciliation extends Base {
|
|
4
|
+
type: "reconciliation";
|
|
5
|
+
severity?: "high";
|
|
6
|
+
delta: {
|
|
7
|
+
account: number;
|
|
8
|
+
operation: number;
|
|
9
|
+
};
|
|
10
|
+
currency: isoly.Currency;
|
|
11
|
+
account: string;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace Reconciliation {
|
|
14
|
+
const type: import("isly/dist/cjs/object").IslyObject<Reconciliation, Base>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { Base } from "../Base";
|
|
3
|
+
export var Reconciliation;
|
|
4
|
+
(function (Reconciliation) {
|
|
5
|
+
Reconciliation.type = Base.type.extend({
|
|
6
|
+
type: isly.string("reconciliation"),
|
|
7
|
+
severity: isly.string(["high"]).optional(),
|
|
8
|
+
currency: isly.string(),
|
|
9
|
+
delta: isly.object({ account: isly.number(), operation: isly.number() }),
|
|
10
|
+
account: isly.string(),
|
|
11
|
+
});
|
|
12
|
+
})(Reconciliation || (Reconciliation = {}));
|
|
13
|
+
//# sourceMappingURL=Reconciliation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reconciliation.js","sourceRoot":"","sources":["../../../../Warning/Snapshot/Reconciliation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAS9B,MAAM,KAAW,cAAc,CAQ9B;AARD,WAAiB,cAAc;IACjB,mBAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAiB;QACpD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACnC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC1C,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;QACvB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC;QACxE,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;AACH,CAAC,EARgB,cAAc,KAAd,cAAc,QAQ9B"}
|
|
@@ -5,15 +5,17 @@ import { MissingEmoney as WarningMissingEmoney } from "./MissingEmoney";
|
|
|
5
5
|
import { MissingFiat as WarningMissingFiat } from "./MissingFiat";
|
|
6
6
|
import { MissingTransaction as WarningMissingTransaction } from "./MissingTransaction";
|
|
7
7
|
import { Overdraft as WarningOverdraft } from "./Overdraft";
|
|
8
|
+
import { Reconciliation as WarningReconciliation } from "./Reconciliation";
|
|
8
9
|
import { StaleFiat as WarningStaleFiat } from "./StaleFiat";
|
|
9
|
-
export type Snapshot = Snapshot.
|
|
10
|
+
export type Snapshot = Snapshot.DeltaFiat | Snapshot.MissingBuffer | Snapshot.MissingEmoney | Snapshot.MissingFiat | Snapshot.MissingTransaction | Snapshot.Overdraft | Snapshot.Reconciliation | Snapshot.StaleFiat;
|
|
10
11
|
export declare namespace Snapshot {
|
|
11
|
-
export import
|
|
12
|
-
export import StaleFiat = WarningStaleFiat;
|
|
12
|
+
export import DeltaFiat = WarningDeltaFiat;
|
|
13
13
|
export import MissingBuffer = WarningMissingBuffer;
|
|
14
14
|
export import MissingEmoney = WarningMissingEmoney;
|
|
15
15
|
export import MissingFiat = WarningMissingFiat;
|
|
16
16
|
export import MissingTransaction = WarningMissingTransaction;
|
|
17
|
-
export import
|
|
17
|
+
export import Overdraft = WarningOverdraft;
|
|
18
|
+
export import Reconciliation = WarningReconciliation;
|
|
19
|
+
export import StaleFiat = WarningStaleFiat;
|
|
18
20
|
const type: isly.Type<Snapshot>;
|
|
19
21
|
}
|
|
@@ -5,16 +5,18 @@ import { MissingEmoney as WarningMissingEmoney } from "./MissingEmoney";
|
|
|
5
5
|
import { MissingFiat as WarningMissingFiat } from "./MissingFiat";
|
|
6
6
|
import { MissingTransaction as WarningMissingTransaction } from "./MissingTransaction";
|
|
7
7
|
import { Overdraft as WarningOverdraft } from "./Overdraft";
|
|
8
|
+
import { Reconciliation as WarningReconciliation } from "./Reconciliation";
|
|
8
9
|
import { StaleFiat as WarningStaleFiat } from "./StaleFiat";
|
|
9
10
|
export var Snapshot;
|
|
10
11
|
(function (Snapshot) {
|
|
11
|
-
Snapshot.
|
|
12
|
-
Snapshot.StaleFiat = WarningStaleFiat;
|
|
12
|
+
Snapshot.DeltaFiat = WarningDeltaFiat;
|
|
13
13
|
Snapshot.MissingBuffer = WarningMissingBuffer;
|
|
14
14
|
Snapshot.MissingEmoney = WarningMissingEmoney;
|
|
15
15
|
Snapshot.MissingFiat = WarningMissingFiat;
|
|
16
16
|
Snapshot.MissingTransaction = WarningMissingTransaction;
|
|
17
|
-
Snapshot.
|
|
18
|
-
Snapshot.
|
|
17
|
+
Snapshot.Overdraft = WarningOverdraft;
|
|
18
|
+
Snapshot.Reconciliation = WarningReconciliation;
|
|
19
|
+
Snapshot.StaleFiat = WarningStaleFiat;
|
|
20
|
+
Snapshot.type = isly.union(Snapshot.DeltaFiat.type, Snapshot.MissingBuffer.type, Snapshot.MissingEmoney.type, Snapshot.MissingFiat.type, Snapshot.MissingTransaction.type, Snapshot.Overdraft.type, Snapshot.Reconciliation.type, Snapshot.StaleFiat.type);
|
|
19
21
|
})(Snapshot || (Snapshot = {}));
|
|
20
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Warning/Snapshot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AACtF,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Warning/Snapshot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AACtF,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAC1E,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAY3D,MAAM,KAAW,QAAQ,CAoBxB;AApBD,WAAiB,QAAQ;IACV,kBAAS,GAAG,gBAAgB,CAAA;IAC5B,sBAAa,GAAG,oBAAoB,CAAA;IACpC,sBAAa,GAAG,oBAAoB,CAAA;IACpC,oBAAW,GAAG,kBAAkB,CAAA;IAChC,2BAAkB,GAAG,yBAAyB,CAAA;IAC9C,kBAAS,GAAG,gBAAgB,CAAA;IAC5B,uBAAc,GAAG,qBAAqB,CAAA;IACtC,kBAAS,GAAG,gBAAgB,CAAA;IAE7B,aAAI,GAAG,IAAI,CAAC,KAAK,CAC7B,SAAA,SAAS,CAAC,IAAI,EACd,SAAA,aAAa,CAAC,IAAI,EAClB,SAAA,aAAa,CAAC,IAAI,EAClB,SAAA,WAAW,CAAC,IAAI,EAChB,SAAA,kBAAkB,CAAC,IAAI,EACvB,SAAA,SAAS,CAAC,IAAI,EACd,SAAA,cAAc,CAAC,IAAI,EACnB,SAAA,SAAS,CAAC,IAAI,CACd,CAAA;AACF,CAAC,EApBgB,QAAQ,KAAR,QAAQ,QAoBxB"}
|
|
@@ -11,7 +11,7 @@ export declare namespace Warning {
|
|
|
11
11
|
export import Issue = WarningIssue;
|
|
12
12
|
namespace Type {
|
|
13
13
|
type Snapshot = WarningSnapshot["type"];
|
|
14
|
-
const Snapshot: isly.Type<"overdraft" | "delta-fiat" | "missing-buffer" | "missing-emoney" | "missing-fiat" | "missing-transaction" | "stale-fiat">;
|
|
14
|
+
const Snapshot: isly.Type<"overdraft" | "delta-fiat" | "missing-buffer" | "missing-emoney" | "missing-fiat" | "missing-transaction" | "reconciliation" | "stale-fiat">;
|
|
15
15
|
type Settlement = WarningSettlement["type"];
|
|
16
16
|
const Settlement: isly.Type<"missing-file" | "negative-amount" | "unknown-entry">;
|
|
17
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pax2pay/model-banking",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.614",
|
|
4
4
|
"description": "Library containing data model types and functions for the Pax2Pay Banking API.",
|
|
5
5
|
"author": "Pax2Pay Ltd",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,9 +40,6 @@
|
|
|
40
40
|
"prepare": "npm run build",
|
|
41
41
|
"clean": "rimraf dist node_modules coverage"
|
|
42
42
|
},
|
|
43
|
-
"overrides": {
|
|
44
|
-
"esbuild": ">=0.25.0"
|
|
45
|
-
},
|
|
46
43
|
"devDependencies": {
|
|
47
44
|
"@cloudflare/workers-types": "^4.20260405.1",
|
|
48
45
|
"@typescript-eslint/eslint-plugin": "8.44.1",
|
|
@@ -64,9 +61,7 @@
|
|
|
64
61
|
"cryptly": "^4.0.6",
|
|
65
62
|
"gracely": "^2.0.13",
|
|
66
63
|
"isly": "0.1.20",
|
|
67
|
-
"isly2": "npm:isly@1.3.0",
|
|
68
64
|
"isoly": "3.0.6",
|
|
69
|
-
"isoly2": "npm:isoly@3.1.3",
|
|
70
65
|
"selectively": "^2.0.15",
|
|
71
66
|
"slackly": "0.0.6",
|
|
72
67
|
"typedly": "0.0.27",
|