@pax2pay/model-banking 0.1.50 → 0.1.51
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/Realm/index.ts +10 -6
- package/dist/Realm/index.d.ts +4 -2
- package/dist/Realm/index.js +4 -5
- package/dist/Realm/index.js.map +1 -1
- package/package.json +1 -1
package/Realm/index.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
|
|
3
|
+
export const Realms = ["test", "testUK", "uk", "eu"] as const
|
|
2
4
|
export type Realm = typeof Realms[number]
|
|
3
5
|
|
|
4
6
|
export namespace Realm {
|
|
5
7
|
export const realms: Realm[] = [...Realms]
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export const type: isly.Type<Realm> = isly.union(
|
|
9
|
+
isly.string("test"),
|
|
10
|
+
isly.string("testUK"),
|
|
11
|
+
isly.string("uk"),
|
|
12
|
+
isly.string("eu")
|
|
13
|
+
)
|
|
14
|
+
export const is = type.is
|
|
11
15
|
export function toString(): string {
|
|
12
16
|
return realms.toString().replaceAll(",", ", ") + "."
|
|
13
17
|
}
|
package/dist/Realm/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export declare const Realms: readonly ["test", "testUK", "uk", "eu"];
|
|
2
3
|
export type Realm = typeof Realms[number];
|
|
3
4
|
export declare namespace Realm {
|
|
4
5
|
const realms: Realm[];
|
|
5
|
-
|
|
6
|
+
const type: isly.Type<Realm>;
|
|
7
|
+
const is: isly.Type.IsFunction<"eu" | "uk" | "test" | "testUK">;
|
|
6
8
|
function toString(): string;
|
|
7
9
|
}
|
package/dist/Realm/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export const Realms = ["test", "testUK", "uk", "eu"];
|
|
2
3
|
export var Realm;
|
|
3
4
|
(function (Realm) {
|
|
4
5
|
Realm.realms = [...Realms];
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
Realm.is = is;
|
|
6
|
+
Realm.type = isly.union(isly.string("test"), isly.string("testUK"), isly.string("uk"), isly.string("eu"));
|
|
7
|
+
Realm.is = Realm.type.is;
|
|
9
8
|
function toString() {
|
|
10
9
|
return Realm.realms.toString().replaceAll(",", ", ") + ".";
|
|
11
10
|
}
|
package/dist/Realm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Realm/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Realm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAU,CAAA;AAG7D,MAAM,KAAW,KAAK,CAYrB;AAZD,WAAiB,KAAK;IACR,YAAM,GAAY,CAAC,GAAG,MAAM,CAAC,CAAA;IAC7B,UAAI,GAAqB,IAAI,CAAC,KAAK,CAC/C,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EACnB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EACrB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EACjB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CACjB,CAAA;IACY,QAAE,GAAG,MAAA,IAAI,CAAC,EAAE,CAAA;IACzB,SAAgB,QAAQ;QACvB,OAAO,MAAA,MAAM,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,GAAG,CAAA;IACrD,CAAC;IAFe,cAAQ,WAEvB,CAAA;AACF,CAAC,EAZgB,KAAK,KAAL,KAAK,QAYrB"}
|