@pax2pay/model-banking 0.1.68 → 0.1.70

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/Card/Preset.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { isly } from "isly"
2
2
 
3
- const preset = ["example1"] as const
4
-
5
- export type Preset = typeof preset[number]
3
+ export type Preset = typeof Preset.names[number]
6
4
 
7
5
  export namespace Preset {
8
- export const type = isly.string(preset)
6
+ export const names = ["example1", "p2p-pg-200", "p2p-mc-200"] as const
7
+ export const type = isly.string(names) //isly.union(isly.string("p2p-pg-200"), isly.string("p2p-mc-200"))
9
8
  export const is = type.is
9
+ export const flaw = type.flaw
10
10
  }
@@ -14,7 +14,7 @@ export interface Account {
14
14
  created: isoly.DateTime
15
15
  name: string
16
16
  realm: Realm
17
- supplier: Supplier
17
+ supplier: Supplier | "external"
18
18
  reference: string
19
19
  currencies: isoly.Currency[]
20
20
  type: "safeguarded" | "other" | "external"
@@ -1,8 +1,8 @@
1
1
  import { isly } from "isly";
2
- declare const preset: readonly ["example1"];
3
- export type Preset = typeof preset[number];
2
+ export type Preset = typeof Preset.names[number];
4
3
  export declare namespace Preset {
5
- const type: isly.Type<"example1">;
6
- const is: isly.Type.IsFunction<"example1">;
4
+ const names: readonly ["example1", "p2p-pg-200", "p2p-mc-200"];
5
+ const type: isly.Type<"example1" | "p2p-pg-200" | "p2p-mc-200">;
6
+ const is: isly.Type.IsFunction<"example1" | "p2p-pg-200" | "p2p-mc-200">;
7
+ const flaw: isly.Type.FlawFunction;
7
8
  }
8
- export {};
@@ -1,8 +1,9 @@
1
1
  import { isly } from "isly";
2
- const preset = ["example1"];
3
2
  export var Preset;
4
3
  (function (Preset) {
5
- Preset.type = isly.string(preset);
4
+ Preset.names = ["example1", "p2p-pg-200", "p2p-mc-200"];
5
+ Preset.type = isly.string(Preset.names);
6
6
  Preset.is = Preset.type.is;
7
+ Preset.flaw = Preset.type.flaw;
7
8
  })(Preset || (Preset = {}));
8
9
  //# sourceMappingURL=Preset.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Preset.js","sourceRoot":"../","sources":["Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,MAAM,MAAM,GAAG,CAAC,UAAU,CAAU,CAAA;AAIpC,MAAM,KAAW,MAAM,CAGtB;AAHD,WAAiB,MAAM;IACT,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAC1B,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAHgB,MAAM,KAAN,MAAM,QAGtB"}
1
+ {"version":3,"file":"Preset.js","sourceRoot":"../","sources":["Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,MAAM,CAKtB;AALD,WAAiB,MAAM;IACT,YAAK,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,CAAU,CAAA;IACzD,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAA,KAAK,CAAC,CAAA;IACzB,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;IACZ,WAAI,GAAG,OAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EALgB,MAAM,KAAN,MAAM,QAKtB"}
@@ -13,7 +13,7 @@ export interface Account {
13
13
  created: isoly.DateTime;
14
14
  name: string;
15
15
  realm: Realm;
16
- supplier: Supplier;
16
+ supplier: Supplier | "external";
17
17
  reference: string;
18
18
  currencies: isoly.Currency[];
19
19
  type: "safeguarded" | "other" | "external";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",