@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.
- package/Client/Treasury.ts +3 -0
- package/Treasury/Account/Category.ts +1 -1
- package/Treasury/Account/index.ts +1 -1
- package/dist/cjs/Client/Treasury.d.ts +1 -0
- package/dist/cjs/Client/Treasury.js +3 -0
- package/dist/cjs/Client/Treasury.js.map +1 -1
- package/dist/cjs/Treasury/Account/Category.d.ts +2 -2
- package/dist/cjs/Treasury/Account/Category.js +1 -1
- package/dist/cjs/Treasury/Account/Category.js.map +1 -1
- package/dist/cjs/Treasury/Account/index.d.ts +1 -1
- package/dist/mjs/Client/Treasury.d.ts +1 -0
- package/dist/mjs/Client/Treasury.js +3 -0
- package/dist/mjs/Client/Treasury.js.map +1 -1
- package/dist/mjs/Treasury/Account/Category.d.ts +2 -2
- package/dist/mjs/Treasury/Account/Category.js +1 -1
- package/dist/mjs/Treasury/Account/Category.js.map +1 -1
- package/dist/mjs/Treasury/Account/index.d.ts +1 -1
- package/package.json +1 -1
package/Client/Treasury.ts
CHANGED
|
@@ -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"
|
|
5
|
+
export const name = ["safeguarded", "unsafe", "buffer", "other"] as const
|
|
6
6
|
export const type = isly.string(name)
|
|
7
7
|
}
|
|
@@ -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;
|
|
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"
|
|
5
|
-
const type: isly.Type<"buffer" | "other" | "
|
|
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"
|
|
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,
|
|
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"}
|
|
@@ -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,wBAAwB,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,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"}
|
|
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,wBAAwB,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,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"}
|
|
@@ -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"
|
|
5
|
-
const type: isly.Type<"buffer" | "other" | "
|
|
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"
|
|
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,
|
|
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"}
|