@pax2pay/model-banking 0.1.213 → 0.1.214

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/Identifier.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { cryptly } from "cryptly"
2
2
  import { isoly } from "isoly"
3
+ import { isly } from "isly"
3
4
 
5
+ export type Identifier = cryptly.Identifier
4
6
  export namespace Identifier {
5
7
  export function generate(
6
8
  date: isoly.DateTime = isoly.DateTime.now(),
@@ -16,4 +18,7 @@ export namespace Identifier {
16
18
  const decoded = cryptly.Base64.decode(identifier, ordering)
17
19
  return isoly.DateTime.create(Number(new BigUint64Array(decoded.slice(decoded.length - 8).buffer)), "milliseconds")
18
20
  }
21
+ export const type = isly.fromIs("Identifier", cryptly.Identifier.is)
22
+ export const is = type.is
23
+ export const flaw = type.flaw
19
24
  }
@@ -1,6 +1,11 @@
1
1
  import { cryptly } from "cryptly";
2
2
  import { isoly } from "isoly";
3
+ import { isly } from "isly";
4
+ export type Identifier = cryptly.Identifier;
3
5
  export declare namespace Identifier {
4
6
  function generate(date?: isoly.DateTime, length?: cryptly.Identifier.Length, ordering?: "ordered" | "reversed"): string;
5
7
  function timeOf(identifier: cryptly.Identifier, ordering?: "ordered" | "reversed"): isoly.DateTime;
8
+ const type: isly.Type<string>;
9
+ const is: isly.Type.IsFunction<string>;
10
+ const flaw: isly.Type.FlawFunction;
6
11
  }
@@ -1,5 +1,6 @@
1
1
  import { cryptly } from "cryptly";
2
2
  import { isoly } from "isoly";
3
+ import { isly } from "isly";
3
4
  export var Identifier;
4
5
  (function (Identifier) {
5
6
  function generate(date = isoly.DateTime.now(), length = 16, ordering = "reversed") {
@@ -11,5 +12,8 @@ export var Identifier;
11
12
  return isoly.DateTime.create(Number(new BigUint64Array(decoded.slice(decoded.length - 8).buffer)), "milliseconds");
12
13
  }
13
14
  Identifier.timeOf = timeOf;
15
+ Identifier.type = isly.fromIs("Identifier", cryptly.Identifier.is);
16
+ Identifier.is = Identifier.type.is;
17
+ Identifier.flaw = Identifier.type.flaw;
14
18
  })(Identifier || (Identifier = {}));
15
19
  //# sourceMappingURL=Identifier.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Identifier.js","sourceRoot":"../","sources":["Identifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,MAAM,KAAW,UAAU,CAe1B;AAfD,WAAiB,UAAU;IAC1B,SAAgB,QAAQ,CACvB,OAAuB,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,EAC3C,SAAoC,EAAE,EACtC,WAAmC,UAAU;QAE7C,OAAO,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAA;IACjG,CAAC;IANe,mBAAQ,WAMvB,CAAA;IACD,SAAgB,MAAM,CACrB,UAA8B,EAC9B,WAAmC,UAAU;QAE7C,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;QAC3D,OAAO,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC,CAAA;IACnH,CAAC;IANe,iBAAM,SAMrB,CAAA;AACF,CAAC,EAfgB,UAAU,KAAV,UAAU,QAe1B"}
1
+ {"version":3,"file":"Identifier.js","sourceRoot":"../","sources":["Identifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,UAAU,CAkB1B;AAlBD,WAAiB,UAAU;IAC1B,SAAgB,QAAQ,CACvB,OAAuB,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,EAC3C,SAAoC,EAAE,EACtC,WAAmC,UAAU;QAE7C,OAAO,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAA;IACjG,CAAC;IANe,mBAAQ,WAMvB,CAAA;IACD,SAAgB,MAAM,CACrB,UAA8B,EAC9B,WAAmC,UAAU;QAE7C,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;QAC3D,OAAO,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC,CAAA;IACnH,CAAC;IANe,iBAAM,SAMrB,CAAA;IACY,eAAI,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;IACvD,aAAE,GAAG,WAAA,IAAI,CAAC,EAAE,CAAA;IACZ,eAAI,GAAG,WAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAlBgB,UAAU,KAAV,UAAU,QAkB1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.213",
3
+ "version": "0.1.214",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",