@pax2pay/model-banking 0.1.565 → 0.1.566

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/dist/cjs/fx.d.ts CHANGED
@@ -1,9 +1,17 @@
1
1
  import { isoly } from "isoly";
2
+ import { isly } from "isly";
2
3
  export declare namespace fx {
3
4
  interface Quote {
4
5
  id: string;
5
6
  created: isoly.DateTime;
6
7
  expires: isoly.DateTime;
8
+ account: {
9
+ id: string;
10
+ fx: {
11
+ markup: number;
12
+ };
13
+ };
14
+ fixed: Quote.Fixed;
7
15
  from: {
8
16
  amount: number;
9
17
  currency: isoly.Currency;
@@ -19,14 +27,35 @@ export declare namespace fx {
19
27
  };
20
28
  }
21
29
  namespace Quote {
22
- interface Creatable {
23
- type: "sell" | "buy";
24
- from: isoly.Currency;
25
- to: isoly.Currency;
26
- amount: number;
30
+ type Fixed = typeof Fixed.values[number];
31
+ namespace Fixed {
32
+ const values: readonly ["from", "to"];
33
+ const type: isly.Type<"from" | "to">;
27
34
  }
35
+ type Creatable = Creatable.From | Creatable.To;
28
36
  namespace Creatable {
29
- const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
37
+ interface From {
38
+ from: {
39
+ amount: number;
40
+ currency: isoly.Currency;
41
+ };
42
+ to: isoly.Currency;
43
+ }
44
+ namespace From {
45
+ const type: import("isly/dist/cjs/object").IslyObject<From, object>;
46
+ }
47
+ interface To {
48
+ from: isoly.Currency;
49
+ to: {
50
+ amount: number;
51
+ currency: isoly.Currency;
52
+ };
53
+ }
54
+ namespace To {
55
+ const type: import("isly/dist/cjs/object").IslyObject<To, object>;
56
+ }
57
+ const type: isly.Type<Creatable>;
30
58
  }
31
59
  }
60
+ const type: import("isly/dist/cjs/object").IslyObject<Quote, object>;
32
61
  }
package/dist/cjs/fx.js CHANGED
@@ -7,15 +7,42 @@ var fx;
7
7
  (function (fx) {
8
8
  let Quote;
9
9
  (function (Quote) {
10
+ let Fixed;
11
+ (function (Fixed) {
12
+ Fixed.values = ["from", "to"];
13
+ Fixed.type = isly_1.isly.string(Fixed.values);
14
+ })(Fixed = Quote.Fixed || (Quote.Fixed = {}));
10
15
  let Creatable;
11
16
  (function (Creatable) {
12
- Creatable.type = isly_1.isly.object({
13
- type: isly_1.isly.string(["sell", "buy"]),
14
- from: isly_1.isly.string(isoly_1.isoly.Currency.values),
15
- to: isly_1.isly.string(isoly_1.isoly.Currency.values),
16
- amount: isly_1.isly.number(),
17
- });
17
+ let From;
18
+ (function (From) {
19
+ From.type = isly_1.isly.object({
20
+ from: isly_1.isly.object({ currency: isly_1.isly.string(isoly_1.isoly.Currency.values), amount: isly_1.isly.number() }),
21
+ to: isly_1.isly.string(isoly_1.isoly.Currency.values),
22
+ });
23
+ })(From = Creatable.From || (Creatable.From = {}));
24
+ let To;
25
+ (function (To) {
26
+ To.type = isly_1.isly.object({
27
+ from: isly_1.isly.string(isoly_1.isoly.Currency.values),
28
+ to: isly_1.isly.object({ currency: isly_1.isly.string(isoly_1.isoly.Currency.values), amount: isly_1.isly.number() }),
29
+ });
30
+ })(To = Creatable.To || (Creatable.To = {}));
31
+ Creatable.type = isly_1.isly.union(From.type, To.type);
18
32
  })(Creatable = Quote.Creatable || (Quote.Creatable = {}));
19
33
  })(Quote = fx.Quote || (fx.Quote = {}));
34
+ fx.type = isly_1.isly.object({
35
+ id: isly_1.isly.string(),
36
+ created: isly_1.isly.string(),
37
+ expires: isly_1.isly.string(),
38
+ account: isly_1.isly.object({
39
+ id: isly_1.isly.string(),
40
+ fx: isly_1.isly.object({ markup: isly_1.isly.number() }),
41
+ }),
42
+ fixed: Quote.Fixed.type,
43
+ from: isly_1.isly.object({ amount: isly_1.isly.number(), currency: isly_1.isly.string(isoly_1.isoly.Currency.values) }),
44
+ to: isly_1.isly.object({ amount: isly_1.isly.number(), currency: isly_1.isly.string(isoly_1.isoly.Currency.values) }),
45
+ rate: isly_1.isly.object({ base: isly_1.isly.number(), markup: isly_1.isly.number(), effective: isly_1.isly.number() }),
46
+ });
20
47
  })(fx || (exports.fx = fx = {}));
21
48
  //# sourceMappingURL=fx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fx.js","sourceRoot":"","sources":["../../fx.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAE3B,IAAiB,EAAE,CA6BlB;AA7BD,WAAiB,EAAE;IAalB,IAAiB,KAAK,CAerB;IAfD,WAAiB,KAAK;QAOrB,IAAiB,SAAS,CAOzB;QAPD,WAAiB,SAAS;YACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;gBAC1C,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;gBAClC,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;gBACxC,EAAE,EAAE,WAAI,CAAC,MAAM,CAAC,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;gBACtC,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE;aACrB,CAAC,CAAA;QACH,CAAC,EAPgB,SAAS,GAAT,eAAS,KAAT,eAAS,QAOzB;IACF,CAAC,EAfgB,KAAK,GAAL,QAAK,KAAL,QAAK,QAerB;AACF,CAAC,EA7BgB,EAAE,kBAAF,EAAE,QA6BlB"}
1
+ {"version":3,"file":"fx.js","sourceRoot":"","sources":["../../fx.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAE3B,IAAiB,EAAE,CAuDlB;AAvDD,WAAiB,EAAE;IAWlB,IAAiB,KAAK,CA8BrB;IA9BD,WAAiB,KAAK;QAErB,IAAiB,KAAK,CAGrB;QAHD,WAAiB,KAAK;YACR,YAAM,GAAG,CAAC,MAAM,EAAE,IAAI,CAAU,CAAA;YAChC,UAAI,GAAG,WAAI,CAAC,MAAM,CAAQ,MAAA,MAAM,CAAC,CAAA;QAC/C,CAAC,EAHgB,KAAK,GAAL,WAAK,K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,MAAM,EAAE;QACtB,OAAO,EAAE,WAAI,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,WAAI,CAAC,MAAM,CAAmB;YACtC,EAAE,EAAE,WAAI,CAAC,MAAM,EAAE;YACjB,EAAE,EAAE,WAAI,CAAC,MAAM,CAAyB,EAAE,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,CAAC;SAClE,CAAC;QACF,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI;QACvB,IAAI,EAAE,WAAI,CAAC,MAAM,CAAgB,EAAE,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,WAAI,CAAC,MAAM,CAAC,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACzG,EAAE,EAAE,WAAI,CAAC,MAAM,CAAc,EAAE,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,WAAI,CAAC,MAAM,CAAC,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACrG,IAAI,EAAE,WAAI,CAAC,MAAM,CAAgB,EAAE,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,CAAC;KAC1G,CAAC,CAAA;AACH,CAAC,EAvDgB,EAAE,kBAAF,EAAE,QAuDlB"}
package/dist/mjs/fx.d.ts CHANGED
@@ -1,9 +1,17 @@
1
1
  import { isoly } from "isoly";
2
+ import { isly } from "isly";
2
3
  export declare namespace fx {
3
4
  interface Quote {
4
5
  id: string;
5
6
  created: isoly.DateTime;
6
7
  expires: isoly.DateTime;
8
+ account: {
9
+ id: string;
10
+ fx: {
11
+ markup: number;
12
+ };
13
+ };
14
+ fixed: Quote.Fixed;
7
15
  from: {
8
16
  amount: number;
9
17
  currency: isoly.Currency;
@@ -19,14 +27,35 @@ export declare namespace fx {
19
27
  };
20
28
  }
21
29
  namespace Quote {
22
- interface Creatable {
23
- type: "sell" | "buy";
24
- from: isoly.Currency;
25
- to: isoly.Currency;
26
- amount: number;
30
+ type Fixed = typeof Fixed.values[number];
31
+ namespace Fixed {
32
+ const values: readonly ["from", "to"];
33
+ const type: isly.Type<"from" | "to">;
27
34
  }
35
+ type Creatable = Creatable.From | Creatable.To;
28
36
  namespace Creatable {
29
- const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
37
+ interface From {
38
+ from: {
39
+ amount: number;
40
+ currency: isoly.Currency;
41
+ };
42
+ to: isoly.Currency;
43
+ }
44
+ namespace From {
45
+ const type: import("isly/dist/cjs/object").IslyObject<From, object>;
46
+ }
47
+ interface To {
48
+ from: isoly.Currency;
49
+ to: {
50
+ amount: number;
51
+ currency: isoly.Currency;
52
+ };
53
+ }
54
+ namespace To {
55
+ const type: import("isly/dist/cjs/object").IslyObject<To, object>;
56
+ }
57
+ const type: isly.Type<Creatable>;
30
58
  }
31
59
  }
60
+ const type: import("isly/dist/cjs/object").IslyObject<Quote, object>;
32
61
  }
package/dist/mjs/fx.js CHANGED
@@ -4,15 +4,42 @@ export var fx;
4
4
  (function (fx) {
5
5
  let Quote;
6
6
  (function (Quote) {
7
+ let Fixed;
8
+ (function (Fixed) {
9
+ Fixed.values = ["from", "to"];
10
+ Fixed.type = isly.string(Fixed.values);
11
+ })(Fixed = Quote.Fixed || (Quote.Fixed = {}));
7
12
  let Creatable;
8
13
  (function (Creatable) {
9
- Creatable.type = isly.object({
10
- type: isly.string(["sell", "buy"]),
11
- from: isly.string(isoly.Currency.values),
12
- to: isly.string(isoly.Currency.values),
13
- amount: isly.number(),
14
- });
14
+ let From;
15
+ (function (From) {
16
+ From.type = isly.object({
17
+ from: isly.object({ currency: isly.string(isoly.Currency.values), amount: isly.number() }),
18
+ to: isly.string(isoly.Currency.values),
19
+ });
20
+ })(From = Creatable.From || (Creatable.From = {}));
21
+ let To;
22
+ (function (To) {
23
+ To.type = isly.object({
24
+ from: isly.string(isoly.Currency.values),
25
+ to: isly.object({ currency: isly.string(isoly.Currency.values), amount: isly.number() }),
26
+ });
27
+ })(To = Creatable.To || (Creatable.To = {}));
28
+ Creatable.type = isly.union(From.type, To.type);
15
29
  })(Creatable = Quote.Creatable || (Quote.Creatable = {}));
16
30
  })(Quote = fx.Quote || (fx.Quote = {}));
31
+ fx.type = isly.object({
32
+ id: isly.string(),
33
+ created: isly.string(),
34
+ expires: isly.string(),
35
+ account: isly.object({
36
+ id: isly.string(),
37
+ fx: isly.object({ markup: isly.number() }),
38
+ }),
39
+ fixed: Quote.Fixed.type,
40
+ from: isly.object({ amount: isly.number(), currency: isly.string(isoly.Currency.values) }),
41
+ to: isly.object({ amount: isly.number(), currency: isly.string(isoly.Currency.values) }),
42
+ rate: isly.object({ base: isly.number(), markup: isly.number(), effective: isly.number() }),
43
+ });
17
44
  })(fx || (fx = {}));
18
45
  //# sourceMappingURL=fx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fx.js","sourceRoot":"","sources":["../../fx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,MAAM,KAAW,EAAE,CA6BlB;AA7BD,WAAiB,EAAE;IAalB,IAAiB,KAAK,CAerB;IAfD,WAAiB,KAAK;QAOrB,IAAiB,SAAS,CAOzB;QAPD,WAAiB,SAAS;YACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;gBAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;gBAClC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;gBACxC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;gBACtC,MAAM,EAAE,IAAI,CAAC,MAAM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AAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACrG,IAAI,EAAE,IAAI,CAAC,MAAM,CAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC;KAC1G,CAAC,CAAA;AACH,CAAC,EAvDgB,EAAE,KAAF,EAAE,QAuDlB"}
package/fx.ts CHANGED
@@ -6,28 +6,54 @@ export namespace fx {
6
6
  id: string
7
7
  created: isoly.DateTime
8
8
  expires: isoly.DateTime
9
+ account: { id: string; fx: { markup: number } }
10
+ fixed: Quote.Fixed
9
11
  from: { amount: number; currency: isoly.Currency }
10
12
  to: { amount: number; currency: isoly.Currency }
11
- rate: {
12
- base: number
13
- markup: number
14
- effective: number
15
- }
13
+ rate: { base: number; markup: number; effective: number }
16
14
  }
17
15
  export namespace Quote {
18
- export interface Creatable {
19
- type: "sell" | "buy"
20
- from: isoly.Currency
21
- to: isoly.Currency
22
- amount: number
16
+ export type Fixed = typeof Fixed.values[number]
17
+ export namespace Fixed {
18
+ export const values = ["from", "to"] as const
19
+ export const type = isly.string<Fixed>(values)
23
20
  }
21
+ export type Creatable = Creatable.From | Creatable.To
24
22
  export namespace Creatable {
25
- export const type = isly.object<Creatable>({
26
- type: isly.string(["sell", "buy"]),
27
- from: isly.string(isoly.Currency.values),
28
- to: isly.string(isoly.Currency.values),
29
- amount: isly.number(),
30
- })
23
+ export interface From {
24
+ from: { amount: number; currency: isoly.Currency }
25
+ to: isoly.Currency
26
+ }
27
+ export namespace From {
28
+ export const type = isly.object<From>({
29
+ from: isly.object<From["from"]>({ currency: isly.string(isoly.Currency.values), amount: isly.number() }),
30
+ to: isly.string(isoly.Currency.values),
31
+ })
32
+ }
33
+ export interface To {
34
+ from: isoly.Currency
35
+ to: { amount: number; currency: isoly.Currency }
36
+ }
37
+ export namespace To {
38
+ export const type = isly.object<To>({
39
+ from: isly.string(isoly.Currency.values),
40
+ to: isly.object<To["to"]>({ currency: isly.string(isoly.Currency.values), amount: isly.number() }),
41
+ })
42
+ }
43
+ export const type = isly.union<Creatable, From, To>(From.type, To.type)
31
44
  }
32
45
  }
46
+ export const type = isly.object<Quote>({
47
+ id: isly.string(),
48
+ created: isly.string(),
49
+ expires: isly.string(),
50
+ account: isly.object<Quote["account"]>({
51
+ id: isly.string(),
52
+ fx: isly.object<Quote["account"]["fx"]>({ markup: isly.number() }),
53
+ }),
54
+ fixed: Quote.Fixed.type,
55
+ from: isly.object<Quote["from"]>({ amount: isly.number(), currency: isly.string(isoly.Currency.values) }),
56
+ to: isly.object<Quote["to"]>({ amount: isly.number(), currency: isly.string(isoly.Currency.values) }),
57
+ rate: isly.object<Quote["rate"]>({ base: isly.number(), markup: isly.number(), effective: isly.number() }),
58
+ })
33
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.565",
3
+ "version": "0.1.566",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",