@pax2pay/model-banking 0.1.394 → 0.1.396
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/Issue.ts +15 -1
- package/Warning/index.ts +13 -0
- package/dist/Warning/Issue.d.ts +10 -0
- package/dist/Warning/Issue.js +10 -0
- package/dist/Warning/Issue.js.map +1 -1
- package/dist/Warning/index.d.ts +6 -0
- package/dist/Warning/index.js +12 -0
- package/dist/Warning/index.js.map +1 -1
- package/package.json +1 -1
package/Warning/Issue.ts
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
|
+
import { isoly } from "isoly"
|
|
1
2
|
import { isly } from "isly"
|
|
2
3
|
|
|
3
4
|
export interface Issue {
|
|
4
5
|
link: string
|
|
5
6
|
status: "closed" | "open"
|
|
6
7
|
}
|
|
7
|
-
|
|
8
8
|
export namespace Issue {
|
|
9
9
|
export const type = isly.object<Issue>({
|
|
10
10
|
link: isly.string(),
|
|
11
11
|
status: isly.string(["closed", "open"]),
|
|
12
12
|
})
|
|
13
|
+
export interface Creatable {
|
|
14
|
+
type: string
|
|
15
|
+
currency: isoly.Currency
|
|
16
|
+
resource?: string
|
|
17
|
+
issue: Issue
|
|
18
|
+
}
|
|
19
|
+
export namespace Creatable {
|
|
20
|
+
export const type = isly.object<Creatable>({
|
|
21
|
+
type: isly.string(),
|
|
22
|
+
currency: isly.fromIs("Currency", isoly.Currency.is),
|
|
23
|
+
resource: isly.string().optional(),
|
|
24
|
+
issue: Issue.type,
|
|
25
|
+
})
|
|
26
|
+
}
|
|
13
27
|
}
|
package/Warning/index.ts
CHANGED
|
@@ -11,5 +11,18 @@ export namespace Warning {
|
|
|
11
11
|
export import Settlement = WarningSettlement
|
|
12
12
|
export import Base = WarningBase
|
|
13
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
|
+
}
|
|
14
27
|
export const type = isly.union<Warning, Snapshot, Settlement>(Snapshot.type, Settlement.type)
|
|
15
28
|
}
|
package/dist/Warning/Issue.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
1
2
|
import { isly } from "isly";
|
|
2
3
|
export interface Issue {
|
|
3
4
|
link: string;
|
|
@@ -5,4 +6,13 @@ export interface Issue {
|
|
|
5
6
|
}
|
|
6
7
|
export declare namespace Issue {
|
|
7
8
|
const type: isly.object.ExtendableType<Issue>;
|
|
9
|
+
interface Creatable {
|
|
10
|
+
type: string;
|
|
11
|
+
currency: isoly.Currency;
|
|
12
|
+
resource?: string;
|
|
13
|
+
issue: Issue;
|
|
14
|
+
}
|
|
15
|
+
namespace Creatable {
|
|
16
|
+
const type: isly.object.ExtendableType<Creatable>;
|
|
17
|
+
}
|
|
8
18
|
}
|
package/dist/Warning/Issue.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
1
2
|
import { isly } from "isly";
|
|
2
3
|
export var Issue;
|
|
3
4
|
(function (Issue) {
|
|
@@ -5,5 +6,14 @@ export var Issue;
|
|
|
5
6
|
link: isly.string(),
|
|
6
7
|
status: isly.string(["closed", "open"]),
|
|
7
8
|
});
|
|
9
|
+
let Creatable;
|
|
10
|
+
(function (Creatable) {
|
|
11
|
+
Creatable.type = isly.object({
|
|
12
|
+
type: isly.string(),
|
|
13
|
+
currency: isly.fromIs("Currency", isoly.Currency.is),
|
|
14
|
+
resource: isly.string().optional(),
|
|
15
|
+
issue: Issue.type,
|
|
16
|
+
});
|
|
17
|
+
})(Creatable = Issue.Creatable || (Issue.Creatable = {}));
|
|
8
18
|
})(Issue || (Issue = {}));
|
|
9
19
|
//# sourceMappingURL=Issue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Issue.js","sourceRoot":"../","sources":["Warning/Issue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Issue.js","sourceRoot":"../","sources":["Warning/Issue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,KAAK,CAmBrB;AAnBD,WAAiB,KAAK;IACR,UAAI,GAAG,IAAI,CAAC,MAAM,CAAQ;QACtC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;KACvC,CAAC,CAAA;IAOF,IAAiB,SAAS,CAOzB;IAPD,WAAiB,SAAS;QACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;YAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;YACnB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;YACpD,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAClC,KAAK,EAAE,KAAK,CAAC,IAAI;SACjB,CAAC,CAAA;IACH,CAAC,EAPgB,SAAS,GAAT,eAAS,KAAT,eAAS,QAOzB;AACF,CAAC,EAnBgB,KAAK,KAAL,KAAK,QAmBrB"}
|
package/dist/Warning/index.d.ts
CHANGED
|
@@ -9,5 +9,11 @@ export declare namespace Warning {
|
|
|
9
9
|
export import Settlement = WarningSettlement;
|
|
10
10
|
export import Base = WarningBase;
|
|
11
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
|
+
}
|
|
12
18
|
const type: isly.Type<Warning>;
|
|
13
19
|
}
|
package/dist/Warning/index.js
CHANGED
|
@@ -9,6 +9,18 @@ export var Warning;
|
|
|
9
9
|
Warning.Settlement = WarningSettlement;
|
|
10
10
|
Warning.Base = WarningBase;
|
|
11
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 = {}));
|
|
12
24
|
Warning.type = isly.union(Warning.Snapshot.type, Warning.Settlement.type);
|
|
13
25
|
})(Warning || (Warning = {}));
|
|
14
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,KAAK,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,UAAU,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