@pax2pay/model-banking 0.1.81 → 0.1.82

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.
@@ -17,17 +17,6 @@ export namespace Creatable {
17
17
  rules: isly.fromIs<Rule>("Rule", Rule.is).array(),
18
18
  contact: Contact.type.optional(),
19
19
  })
20
- export function is(value: any | Creatable): value is Creatable {
21
- return (
22
- value &&
23
- typeof value == "object" &&
24
- typeof value.name == "string" &&
25
- typeof value.address == "string" &&
26
- Realm.is(value.realm) &&
27
- value.rules &&
28
- typeof value.rules == "object" &&
29
- Array.isArray(value.rules) &&
30
- value.rules.every(Rule.is)
31
- )
32
- }
20
+ export const is = type.is
21
+ export const flaw = type.flaw
33
22
  }
@@ -10,5 +10,6 @@ export interface Creatable {
10
10
  }
11
11
  export declare namespace Creatable {
12
12
  const type: isly.object.ExtendableType<Creatable>;
13
- function is(value: any | Creatable): value is Creatable;
13
+ const is: isly.Type.IsFunction<Creatable>;
14
+ const flaw: isly.Type.FlawFunction;
14
15
  }
@@ -10,17 +10,7 @@ export var Creatable;
10
10
  rules: isly.fromIs("Rule", Rule.is).array(),
11
11
  contact: Contact.type.optional(),
12
12
  });
13
- function is(value) {
14
- return (value &&
15
- typeof value == "object" &&
16
- typeof value.name == "string" &&
17
- typeof value.address == "string" &&
18
- Realm.is(value.realm) &&
19
- value.rules &&
20
- typeof value.rules == "object" &&
21
- Array.isArray(value.rules) &&
22
- value.rules.every(Rule.is));
23
- }
24
- Creatable.is = is;
13
+ Creatable.is = Creatable.type.is;
14
+ Creatable.flaw = Creatable.type.flaw;
25
15
  })(Creatable || (Creatable = {}));
26
16
  //# sourceMappingURL=Creatable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Creatable.js","sourceRoot":"../","sources":["Organization/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU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,MAAM,KAAW,SAAS,CASzB;AATD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,KAAK,CAAC,IAAI;QACjB,KAAK,EAAE,IAAI,CAAC,MAAM,CAAO,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;QACjD,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;KAChC,CAAC,CAAA;IACW,YAAE,GAAG,UAAA,IAAI,CAAC,EAAE,CAAA;IACZ,cAAI,GAAG,UAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EATgB,SAAS,KAAT,SAAS,QASzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.81",
3
+ "version": "0.1.82",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",