@pax2pay/model-banking 0.1.393 → 0.1.395
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/Warning/index.ts +15 -0
- package/dist/Warning/index.d.ts +8 -0
- package/dist/Warning/index.js +14 -0
- package/dist/Warning/index.js.map +1 -1
- package/package.json +1 -1
package/Warning/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { Base as WarningBase } from "./Base"
|
|
3
|
+
import { Issue as WarningIssue } from "./Issue"
|
|
3
4
|
import { Settlement as WarningSettlement } from "./Settlement"
|
|
4
5
|
import { Snapshot as WarningSnapshot } from "./Snapshot"
|
|
5
6
|
|
|
@@ -9,5 +10,19 @@ export namespace Warning {
|
|
|
9
10
|
export import Snapshot = WarningSnapshot
|
|
10
11
|
export import Settlement = WarningSettlement
|
|
11
12
|
export import Base = WarningBase
|
|
13
|
+
export import Issue = WarningIssue
|
|
14
|
+
export namespace Type {
|
|
15
|
+
export type Snapshot = WarningSnapshot["type"]
|
|
16
|
+
export const Snapshot = isly.string<Snapshot>([
|
|
17
|
+
"overdraft",
|
|
18
|
+
"stale-fiat",
|
|
19
|
+
"missing-buffer",
|
|
20
|
+
"counterbalance",
|
|
21
|
+
"missing-emoney",
|
|
22
|
+
"missing-fiat",
|
|
23
|
+
])
|
|
24
|
+
export type Settlement = WarningSettlement["type"]
|
|
25
|
+
export const Settlement = isly.string<Settlement>(["negative-amount", "missing-file", "unknown-entry"])
|
|
26
|
+
}
|
|
12
27
|
export const type = isly.union<Warning, Snapshot, Settlement>(Snapshot.type, Settlement.type)
|
|
13
28
|
}
|
package/dist/Warning/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { Base as WarningBase } from "./Base";
|
|
3
|
+
import { Issue as WarningIssue } from "./Issue";
|
|
3
4
|
import { Settlement as WarningSettlement } from "./Settlement";
|
|
4
5
|
import { Snapshot as WarningSnapshot } from "./Snapshot";
|
|
5
6
|
export type Warning = Warning.Snapshot | Warning.Settlement;
|
|
@@ -7,5 +8,12 @@ export declare namespace Warning {
|
|
|
7
8
|
export import Snapshot = WarningSnapshot;
|
|
8
9
|
export import Settlement = WarningSettlement;
|
|
9
10
|
export import Base = WarningBase;
|
|
11
|
+
export import Issue = WarningIssue;
|
|
12
|
+
namespace Type {
|
|
13
|
+
type Snapshot = WarningSnapshot["type"];
|
|
14
|
+
const Snapshot: isly.Type<"counterbalance" | "missing-buffer" | "missing-emoney" | "missing-fiat" | "overdraft" | "stale-fiat">;
|
|
15
|
+
type Settlement = WarningSettlement["type"];
|
|
16
|
+
const Settlement: isly.Type<"missing-file" | "negative-amount" | "unknown-entry">;
|
|
17
|
+
}
|
|
10
18
|
const type: isly.Type<Warning>;
|
|
11
19
|
}
|
package/dist/Warning/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { Base as WarningBase } from "./Base";
|
|
3
|
+
import { Issue as WarningIssue } from "./Issue";
|
|
3
4
|
import { Settlement as WarningSettlement } from "./Settlement";
|
|
4
5
|
import { Snapshot as WarningSnapshot } from "./Snapshot";
|
|
5
6
|
export var Warning;
|
|
@@ -7,6 +8,19 @@ export var Warning;
|
|
|
7
8
|
Warning.Snapshot = WarningSnapshot;
|
|
8
9
|
Warning.Settlement = WarningSettlement;
|
|
9
10
|
Warning.Base = WarningBase;
|
|
11
|
+
Warning.Issue = WarningIssue;
|
|
12
|
+
let Type;
|
|
13
|
+
(function (Type) {
|
|
14
|
+
Type.Snapshot = isly.string([
|
|
15
|
+
"overdraft",
|
|
16
|
+
"stale-fiat",
|
|
17
|
+
"missing-buffer",
|
|
18
|
+
"counterbalance",
|
|
19
|
+
"missing-emoney",
|
|
20
|
+
"missing-fiat",
|
|
21
|
+
]);
|
|
22
|
+
Type.Settlement = isly.string(["negative-amount", "missing-file", "unknown-entry"]);
|
|
23
|
+
})(Type = Warning.Type || (Warning.Type = {}));
|
|
10
24
|
Warning.type = isly.union(Warning.Snapshot.type, Warning.Settlement.type);
|
|
11
25
|
})(Warning || (Warning = {}));
|
|
12
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Warning/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AAIxD,MAAM,KAAW,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Warning/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AAIxD,MAAM,KAAW,OAAO,CAmBvB;AAnBD,WAAiB,OAAO;IACT,gBAAQ,GAAG,eAAe,CAAA;IAC1B,kBAAU,GAAG,iBAAiB,CAAA;IAC9B,YAAI,GAAG,WAAW,CAAA;IAClB,aAAK,GAAG,YAAY,CAAA;IAClC,IAAiB,IAAI,CAYpB;IAZD,WAAiB,IAAI;QAEP,aAAQ,GAAG,IAAI,CAAC,MAAM,CAAW;YAC7C,WAAW;YACX,YAAY;YACZ,gBAAgB;YAChB,gBAAgB;YAChB,gBAAgB;YAChB,cAAc;SACd,CAAC,CAAA;QAEW,eAAU,GAAG,IAAI,CAAC,MAAM,CAAa,CAAC,iBAAiB,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC,CAAA;IACxG,CAAC,EAZgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAYpB;IACY,YAAI,GAAG,IAAI,CAAC,KAAK,CAAgC,QAAA,QAAQ,CAAC,IAAI,EAAE,QAAA,UAAU,CAAC,IAAI,CAAC,CAAA;AAC9F,CAAC,EAnBgB,OAAO,KAAP,OAAO,QAmBvB"}
|