@pax2pay/model-banking 0.1.392 → 0.1.394

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/Warning/Base.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  import { isoly } from "isoly"
2
2
  import { isly } from "isly"
3
+ import { Issue } from "./Issue"
3
4
 
4
5
  export interface Base {
5
6
  type: string
6
7
  resource: string
7
8
  value?: number
8
9
  date: isoly.Date
10
+ issue?: Issue
9
11
  }
10
12
 
11
13
  export namespace Base {
@@ -14,5 +16,6 @@ export namespace Base {
14
16
  resource: isly.string(),
15
17
  value: isly.number().optional(),
16
18
  date: isly.string(),
19
+ issue: Issue.type.optional(),
17
20
  })
18
21
  }
@@ -0,0 +1,13 @@
1
+ import { isly } from "isly"
2
+
3
+ export interface Issue {
4
+ link: string
5
+ status: "closed" | "open"
6
+ }
7
+
8
+ export namespace Issue {
9
+ export const type = isly.object<Issue>({
10
+ link: isly.string(),
11
+ status: isly.string(["closed", "open"]),
12
+ })
13
+ }
package/Warning/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { isly } from "isly"
2
2
  import { Base as WarningBase } from "./Base"
3
+ import { Issue as WarningIssue } from "./Issue"
3
4
  import { Settlement as WarningSettlement } from "./Settlement"
4
5
  import { Snapshot as WarningSnapshot } from "./Snapshot"
5
6
 
@@ -9,5 +10,6 @@ export namespace Warning {
9
10
  export import Snapshot = WarningSnapshot
10
11
  export import Settlement = WarningSettlement
11
12
  export import Base = WarningBase
13
+ export import Issue = WarningIssue
12
14
  export const type = isly.union<Warning, Snapshot, Settlement>(Snapshot.type, Settlement.type)
13
15
  }
@@ -1,10 +1,12 @@
1
1
  import { isoly } from "isoly";
2
2
  import { isly } from "isly";
3
+ import { Issue } from "./Issue";
3
4
  export interface Base {
4
5
  type: string;
5
6
  resource: string;
6
7
  value?: number;
7
8
  date: isoly.Date;
9
+ issue?: Issue;
8
10
  }
9
11
  export declare namespace Base {
10
12
  const type: isly.object.ExtendableType<Base>;
@@ -1,4 +1,5 @@
1
1
  import { isly } from "isly";
2
+ import { Issue } from "./Issue";
2
3
  export var Base;
3
4
  (function (Base) {
4
5
  Base.type = isly.object({
@@ -6,6 +7,7 @@ export var Base;
6
7
  resource: isly.string(),
7
8
  value: isly.number().optional(),
8
9
  date: isly.string(),
10
+ issue: Issue.type.optional(),
9
11
  });
10
12
  })(Base || (Base = {}));
11
13
  //# sourceMappingURL=Base.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Base.js","sourceRoot":"../","sources":["Warning/Base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAS3B,MAAM,KAAW,IAAI,CAOpB;AAPD,WAAiB,IAAI;IACP,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;QACvB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;KACnB,CAAC,CAAA;AACH,CAAC,EAPgB,IAAI,KAAJ,IAAI,QAOpB"}
1
+ {"version":3,"file":"Base.js","sourceRoot":"../","sources":["Warning/Base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAU/B,MAAM,KAAW,IAAI,CAQpB;AARD,WAAiB,IAAI;IACP,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;QACvB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;KAC5B,CAAC,CAAA;AACH,CAAC,EARgB,IAAI,KAAJ,IAAI,QAQpB"}
@@ -0,0 +1,8 @@
1
+ import { isly } from "isly";
2
+ export interface Issue {
3
+ link: string;
4
+ status: "closed" | "open";
5
+ }
6
+ export declare namespace Issue {
7
+ const type: isly.object.ExtendableType<Issue>;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { isly } from "isly";
2
+ export var Issue;
3
+ (function (Issue) {
4
+ Issue.type = isly.object({
5
+ link: isly.string(),
6
+ status: isly.string(["closed", "open"]),
7
+ });
8
+ })(Issue || (Issue = {}));
9
+ //# sourceMappingURL=Issue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Issue.js","sourceRoot":"../","sources":["Warning/Issue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,KAAW,KAAK,CAKrB;AALD,WAAiB,KAAK;IACR,UAAI,GAAG,IAAI,CAAC,MAAM,CAAQ;QACtC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;KACvC,CAAC,CAAA;AACH,CAAC,EALgB,KAAK,KAAL,KAAK,QAKrB"}
@@ -1,5 +1,6 @@
1
1
  import { isly } from "isly";
2
2
  import { Base as WarningBase } from "./Base";
3
+ import { Issue as WarningIssue } from "./Issue";
3
4
  import { Settlement as WarningSettlement } from "./Settlement";
4
5
  import { Snapshot as WarningSnapshot } from "./Snapshot";
5
6
  export type Warning = Warning.Snapshot | Warning.Settlement;
@@ -7,5 +8,6 @@ export declare namespace Warning {
7
8
  export import Snapshot = WarningSnapshot;
8
9
  export import Settlement = WarningSettlement;
9
10
  export import Base = WarningBase;
11
+ export import Issue = WarningIssue;
10
12
  const type: isly.Type<Warning>;
11
13
  }
@@ -1,5 +1,6 @@
1
1
  import { isly } from "isly";
2
2
  import { Base as WarningBase } from "./Base";
3
+ import { Issue as WarningIssue } from "./Issue";
3
4
  import { Settlement as WarningSettlement } from "./Settlement";
4
5
  import { Snapshot as WarningSnapshot } from "./Snapshot";
5
6
  export var Warning;
@@ -7,6 +8,7 @@ export var Warning;
7
8
  Warning.Snapshot = WarningSnapshot;
8
9
  Warning.Settlement = WarningSettlement;
9
10
  Warning.Base = WarningBase;
11
+ Warning.Issue = WarningIssue;
10
12
  Warning.type = isly.union(Warning.Snapshot.type, Warning.Settlement.type);
11
13
  })(Warning || (Warning = {}));
12
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Warning/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AAIxD,MAAM,KAAW,OAAO,CAKvB;AALD,WAAiB,OAAO;IACT,gBAAQ,GAAG,eAAe,CAAA;IAC1B,kBAAU,GAAG,iBAAiB,CAAA;IAC9B,YAAI,GAAG,WAAW,CAAA;IACnB,YAAI,GAAG,IAAI,CAAC,KAAK,CAAgC,QAAA,QAAQ,CAAC,IAAI,EAAE,QAAA,UAAU,CAAC,IAAI,CAAC,CAAA;AAC9F,CAAC,EALgB,OAAO,KAAP,OAAO,QAKvB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Warning/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,YAAY,CAAA;AAIxD,MAAM,KAAW,OAAO,CAMvB;AAND,WAAiB,OAAO;IACT,gBAAQ,GAAG,eAAe,CAAA;IAC1B,kBAAU,GAAG,iBAAiB,CAAA;IAC9B,YAAI,GAAG,WAAW,CAAA;IAClB,aAAK,GAAG,YAAY,CAAA;IACrB,YAAI,GAAG,IAAI,CAAC,KAAK,CAAgC,QAAA,QAAQ,CAAC,IAAI,EAAE,QAAA,UAAU,CAAC,IAAI,CAAC,CAAA;AAC9F,CAAC,EANgB,OAAO,KAAP,OAAO,QAMvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.392",
3
+ "version": "0.1.394",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",