@pax2pay/model-banking 0.1.69 → 0.1.71

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.
@@ -9,7 +9,7 @@ export type Changeable = {
9
9
  }
10
10
 
11
11
  export namespace Changeable {
12
- export const type = isly.object({
12
+ export const type = isly.object<Changeable>({
13
13
  limit: isly.tuple(isly.fromIs("isoly.Currency", isoly.Currency.is), isly.number()).optional(),
14
14
  rules: isly.string().array().optional(),
15
15
  meta: isly.fromIs("Card.Meta", Meta.is).optional(),
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
  }
@@ -7,5 +7,5 @@ export type Changeable = {
7
7
  meta?: Meta;
8
8
  };
9
9
  export declare namespace Changeable {
10
- const type: isly.object.ExtendableType<object>;
10
+ const type: isly.object.ExtendableType<Changeable>;
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Changeable.js","sourceRoot":"../","sources":["Card/Changeable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAQ7B,MAAM,KAAW,UAAU,CAM1B;AAND,WAAiB,UAAU;IACb,eAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/B,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC7F,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACvC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KAClD,CAAC,CAAA;AACH,CAAC,EANgB,UAAU,KAAV,UAAU,QAM1B"}
1
+ {"version":3,"file":"Changeable.js","sourceRoot":"../","sources":["Card/Changeable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAQ7B,MAAM,KAAW,UAAU,CAM1B;AAND,WAAiB,UAAU;IACb,eAAI,GAAG,IAAI,CAAC,MAAM,CAAa;QAC3C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC7F,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACvC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KAClD,CAAC,CAAA;AACH,CAAC,EANgB,UAAU,KAAV,UAAU,QAM1B"}
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.69",
3
+ "version": "0.1.71",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",