@pax2pay/model-banking 0.0.22 → 0.0.23
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/Balances/type.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export type BalanceEntry = "actual" | "reserved"
|
|
1
|
+
export type BalanceEntry = "actual" | "incoming reserved" | "outgoing reserved"
|
|
2
2
|
|
|
3
3
|
export namespace BalanceEntry {
|
|
4
4
|
export function is(value: any | BalanceEntry): value is BalanceEntry {
|
|
5
|
-
return
|
|
5
|
+
return (
|
|
6
|
+
typeof value == "string" && (value == "actual" || value == "incoming reserved" || value == "outgoing reserved")
|
|
7
|
+
)
|
|
6
8
|
}
|
|
7
9
|
}
|
package/dist/Balances/type.d.ts
CHANGED
package/dist/Balances/type.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export var BalanceEntry;
|
|
2
2
|
(function (BalanceEntry) {
|
|
3
3
|
function is(value) {
|
|
4
|
-
return typeof value == "string" && (value == "actual" || value == "reserved");
|
|
4
|
+
return (typeof value == "string" && (value == "actual" || value == "incoming reserved" || value == "outgoing reserved"));
|
|
5
5
|
}
|
|
6
6
|
BalanceEntry.is = is;
|
|
7
7
|
})(BalanceEntry || (BalanceEntry = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"../","sources":["Balances/type.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,YAAY,
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"../","sources":["Balances/type.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,YAAY,CAM5B;AAND,WAAiB,YAAY;IAC5B,SAAgB,EAAE,CAAC,KAAyB;QAC3C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ,IAAI,CAAC,KAAK,IAAI,QAAQ,IAAI,KAAK,IAAI,mBAAmB,IAAI,KAAK,IAAI,mBAAmB,CAAC,CAC/G,CAAA;IACF,CAAC;IAJe,eAAE,KAIjB,CAAA;AACF,CAAC,EANgB,YAAY,KAAZ,YAAY,QAM5B"}
|