@pax2pay/model-banking 0.1.603 → 0.1.605

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.
@@ -16,4 +16,7 @@ export class Treasury {
16
16
  async listAccounts(): Promise<TreasuryModel.Account.Listable[] | gracely.Error> {
17
17
  return this.client.get<TreasuryModel.Account.Listable[]>(`/treasury/account`)
18
18
  }
19
+ async report(start: isoly.Date, end: isoly.Date, supplier: string): Promise<string | gracely.Error> {
20
+ return this.client.get<string>(`/treasury/${supplier}/report?start=${start}&end=${end}`)
21
+ }
19
22
  }
@@ -2,6 +2,6 @@ import { isly } from "isly"
2
2
 
3
3
  export type Category = (typeof Category.name)[number]
4
4
  export namespace Category {
5
- export const name = ["safeguarded", "unsafe", "buffer", "other", "external"] as const
5
+ export const name = ["safeguarded", "unsafe", "buffer", "other"] as const
6
6
  export const type = isly.string(name)
7
7
  }
@@ -15,7 +15,7 @@ export interface Account {
15
15
  created: isoly.DateTime
16
16
  label: string
17
17
  realm: Realm
18
- supplier: Supplier | "external"
18
+ supplier: Supplier
19
19
  reference: string
20
20
  currencies: isoly.Currency[]
21
21
  type: AccountCategory
@@ -8,4 +8,5 @@ export declare class Treasury {
8
8
  fetch(hour?: isoly.DateTime): Promise<TreasuryModel.Snapshot[] | gracely.Error>;
9
9
  listTransactions(accountId: string): Promise<TreasuryModel.Transaction[] | gracely.Error>;
10
10
  listAccounts(): Promise<TreasuryModel.Account.Listable[] | gracely.Error>;
11
+ report(start: isoly.Date, end: isoly.Date, supplier: string): Promise<string | gracely.Error>;
11
12
  }
@@ -16,6 +16,9 @@ class Treasury {
16
16
  async listAccounts() {
17
17
  return this.client.get(`/treasury/account`);
18
18
  }
19
+ async report(start, end, supplier) {
20
+ return this.client.get(`/treasury/${supplier}/report?start=${start}&end=${end}`);
21
+ }
19
22
  }
20
23
  exports.Treasury = Treasury;
21
24
  //# sourceMappingURL=Treasury.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Treasury.js","sourceRoot":"","sources":["../../../Client/Treasury.ts"],"names":[],"mappings":";;;AACA,iCAA6B;AAI7B,MAAa,QAAQ;IACS;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,KAAK,CAAC,IAAqB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,wBAAwB,IAAI,CAAC,CAAC,CAAC,IAAI,aAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAClF,CAAA;IACF,CAAC;IACD,KAAK,CAAC,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8B,qBAAqB,SAAS,cAAc,CAAC,CAAA;IAClG,CAAC;IACD,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmC,mBAAmB,CAAC,CAAA;IAC9E,CAAC;CACD;AAbD,4BAaC"}
1
+ {"version":3,"file":"Treasury.js","sourceRoot":"","sources":["../../../Client/Treasury.ts"],"names":[],"mappings":";;;AACA,iCAA6B;AAI7B,MAAa,QAAQ;IACS;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,KAAK,CAAC,IAAqB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,wBAAwB,IAAI,CAAC,CAAC,CAAC,IAAI,aAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAClF,CAAA;IACF,CAAC;IACD,KAAK,CAAC,gBAAgB,CAAC,SAAiB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8B,qBAAqB,SAAS,cAAc,CAAC,CAAA;IAClG,CAAC;IACD,KAAK,CAAC,YAAY;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmC,mBAAmB,CAAC,CAAA;IAC9E,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,KAAiB,EAAE,GAAe,EAAE,QAAgB;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAS,aAAa,QAAQ,iBAAiB,KAAK,QAAQ,GAAG,EAAE,CAAC,CAAA;IACzF,CAAC;CACD;AAhBD,4BAgBC"}
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly";
2
2
  export type Category = (typeof Category.name)[number];
3
3
  export declare namespace Category {
4
- const name: readonly ["safeguarded", "unsafe", "buffer", "other", "external"];
5
- const type: isly.Type<"buffer" | "other" | "external" | "safeguarded" | "unsafe">;
4
+ const name: readonly ["safeguarded", "unsafe", "buffer", "other"];
5
+ const type: isly.Type<"buffer" | "other" | "safeguarded" | "unsafe">;
6
6
  }
@@ -4,7 +4,7 @@ exports.Category = void 0;
4
4
  const isly_1 = require("isly");
5
5
  var Category;
6
6
  (function (Category) {
7
- Category.name = ["safeguarded", "unsafe", "buffer", "other", "external"];
7
+ Category.name = ["safeguarded", "unsafe", "buffer", "other"];
8
8
  Category.type = isly_1.isly.string(Category.name);
9
9
  })(Category || (exports.Category = Category = {}));
10
10
  //# sourceMappingURL=Category.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Category.js","sourceRoot":"","sources":["../../../../Treasury/Account/Category.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAG3B,IAAiB,QAAQ,CAGxB;AAHD,WAAiB,QAAQ;IACX,aAAI,GAAG,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAU,CAAA;IACxE,aAAI,GAAG,WAAI,CAAC,MAAM,CAAC,SAAA,IAAI,CAAC,CAAA;AACtC,CAAC,EAHgB,QAAQ,wBAAR,QAAQ,QAGxB"}
1
+ {"version":3,"file":"Category.js","sourceRoot":"","sources":["../../../../Treasury/Account/Category.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAG3B,IAAiB,QAAQ,CAGxB;AAHD,WAAiB,QAAQ;IACX,aAAI,GAAG,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAA;IAC5D,aAAI,GAAG,WAAI,CAAC,MAAM,CAAC,SAAA,IAAI,CAAC,CAAA;AACtC,CAAC,EAHgB,QAAQ,wBAAR,QAAQ,QAGxB"}
@@ -13,7 +13,7 @@ export interface Account {
13
13
  created: isoly.DateTime;
14
14
  label: string;
15
15
  realm: Realm;
16
- supplier: Supplier | "external";
16
+ supplier: Supplier;
17
17
  reference: string;
18
18
  currencies: isoly.Currency[];
19
19
  type: AccountCategory;
@@ -8,4 +8,5 @@ export declare class Treasury {
8
8
  fetch(hour?: isoly.DateTime): Promise<TreasuryModel.Snapshot[] | gracely.Error>;
9
9
  listTransactions(accountId: string): Promise<TreasuryModel.Transaction[] | gracely.Error>;
10
10
  listAccounts(): Promise<TreasuryModel.Account.Listable[] | gracely.Error>;
11
+ report(start: isoly.Date, end: isoly.Date, supplier: string): Promise<string | gracely.Error>;
11
12
  }
@@ -13,5 +13,8 @@ export class Treasury {
13
13
  async listAccounts() {
14
14
  return this.client.get(`/treasury/account`);
15
15
  }
16
+ async report(start, end, supplier) {
17
+ return this.client.get(`/treasury/${supplier}/report?start=${start}&end=${end}`);
18
+ }
16
19
  }
17
20
  //# sourceMappingURL=Treasury.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Treasury.js","sourceRoot":"","sources":["../../../Client/Treasury.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAI7B,MAAM,OAAO,QAAQ;IACS;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,KAAK,CAAC,IAAqB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,wBAA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AAK,QAAQ,GAAG,EAAE,CAAC,CAAA;IACzF,CAAC;CACD"}
@@ -1,6 +1,6 @@
1
1
  import { isly } from "isly";
2
2
  export type Category = (typeof Category.name)[number];
3
3
  export declare namespace Category {
4
- const name: readonly ["safeguarded", "unsafe", "buffer", "other", "external"];
5
- const type: isly.Type<"buffer" | "other" | "external" | "safeguarded" | "unsafe">;
4
+ const name: readonly ["safeguarded", "unsafe", "buffer", "other"];
5
+ const type: isly.Type<"buffer" | "other" | "safeguarded" | "unsafe">;
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { isly } from "isly";
2
2
  export var Category;
3
3
  (function (Category) {
4
- Category.name = ["safeguarded", "unsafe", "buffer", "other", "external"];
4
+ Category.name = ["safeguarded", "unsafe", "buffer", "other"];
5
5
  Category.type = isly.string(Category.name);
6
6
  })(Category || (Category = {}));
7
7
  //# sourceMappingURL=Category.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Category.js","sourceRoot":"","sources":["../../../../Treasury/Account/Category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,QAAQ,CAGxB;AAHD,WAAiB,QAAQ;IACX,aAAI,GAAG,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAU,CAAA;IACxE,aAAI,GAAG,IAAI,CAAC,MAAM,CAAC,SAAA,IAAI,CAAC,CAAA;AACtC,CAAC,EAHgB,QAAQ,KAAR,QAAQ,QAGxB"}
1
+ {"version":3,"file":"Category.js","sourceRoot":"","sources":["../../../../Treasury/Account/Category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,QAAQ,CAGxB;AAHD,WAAiB,QAAQ;IACX,aAAI,GAAG,CAAC,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAA;IAC5D,aAAI,GAAG,IAAI,CAAC,MAAM,CAAC,SAAA,IAAI,CAAC,CAAA;AACtC,CAAC,EAHgB,QAAQ,KAAR,QAAQ,QAGxB"}
@@ -13,7 +13,7 @@ export interface Account {
13
13
  created: isoly.DateTime;
14
14
  label: string;
15
15
  realm: Realm;
16
- supplier: Supplier | "external";
16
+ supplier: Supplier;
17
17
  reference: string;
18
18
  currencies: isoly.Currency[];
19
19
  type: AccountCategory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.603",
3
+ "version": "0.1.605",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",