@pax2pay/model-banking 0.1.394 → 0.1.395

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/index.ts CHANGED
@@ -11,5 +11,18 @@ export namespace Warning {
11
11
  export import Settlement = WarningSettlement
12
12
  export import Base = WarningBase
13
13
  export import Issue = WarningIssue
14
+ export namespace Type {
15
+ export type Snapshot = WarningSnapshot["type"]
16
+ export const Snapshot = isly.string<Snapshot>([
17
+ "overdraft",
18
+ "stale-fiat",
19
+ "missing-buffer",
20
+ "counterbalance",
21
+ "missing-emoney",
22
+ "missing-fiat",
23
+ ])
24
+ export type Settlement = WarningSettlement["type"]
25
+ export const Settlement = isly.string<Settlement>(["negative-amount", "missing-file", "unknown-entry"])
26
+ }
14
27
  export const type = isly.union<Warning, Snapshot, Settlement>(Snapshot.type, Settlement.type)
15
28
  }
@@ -9,5 +9,11 @@ export declare namespace Warning {
9
9
  export import Settlement = WarningSettlement;
10
10
  export import Base = WarningBase;
11
11
  export import Issue = WarningIssue;
12
+ namespace Type {
13
+ type Snapshot = WarningSnapshot["type"];
14
+ const Snapshot: isly.Type<"counterbalance" | "missing-buffer" | "missing-emoney" | "missing-fiat" | "overdraft" | "stale-fiat">;
15
+ type Settlement = WarningSettlement["type"];
16
+ const Settlement: isly.Type<"missing-file" | "negative-amount" | "unknown-entry">;
17
+ }
12
18
  const type: isly.Type<Warning>;
13
19
  }
@@ -9,6 +9,18 @@ export var Warning;
9
9
  Warning.Settlement = WarningSettlement;
10
10
  Warning.Base = WarningBase;
11
11
  Warning.Issue = WarningIssue;
12
+ let Type;
13
+ (function (Type) {
14
+ Type.Snapshot = isly.string([
15
+ "overdraft",
16
+ "stale-fiat",
17
+ "missing-buffer",
18
+ "counterbalance",
19
+ "missing-emoney",
20
+ "missing-fiat",
21
+ ]);
22
+ Type.Settlement = isly.string(["negative-amount", "missing-file", "unknown-entry"]);
23
+ })(Type = Warning.Type || (Warning.Type = {}));
12
24
  Warning.type = isly.union(Warning.Snapshot.type, Warning.Settlement.type);
13
25
  })(Warning || (Warning = {}));
14
26
  //# 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,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"}
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,CAmBvB;AAnBD,WAAiB,OAAO;IACT,gBAAQ,GAAG,eAAe,CAAA;IAC1B,kBAAU,GAAG,iBAAiB,CAAA;IAC9B,YAAI,GAAG,WAAW,CAAA;IAClB,aAAK,GAAG,YAAY,CAAA;IAClC,IAAiB,IAAI,CAYpB;IAZD,WAAiB,IAAI;QAEP,aAAQ,GAAG,IAAI,CAAC,MAAM,CAAW;YAC7C,WAAW;YACX,YAAY;YACZ,gBAAgB;YAChB,gBAAgB;YAChB,gBAAgB;YAChB,cAAc;SACd,CAAC,CAAA;QAEW,eAAU,GAAG,IAAI,CAAC,MAAM,CAAa,CAAC,iBAAiB,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC,CAAA;IACxG,CAAC,EAZgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAYpB;IACY,YAAI,GAAG,IAAI,CAAC,KAAK,CAAgC,QAAA,QAAQ,CAAC,IAAI,EAAE,QAAA,UAAU,CAAC,IAAI,CAAC,CAAA;AAC9F,CAAC,EAnBgB,OAAO,KAAP,OAAO,QAmBvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.394",
3
+ "version": "0.1.395",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",