@pax2pay/model-banking 0.1.407 → 0.1.409
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/Account/History.ts +32 -0
- package/Account/index.ts +4 -2
- package/Audit.ts +48 -2
- package/Client/Accounts/History.ts +13 -0
- package/Client/Accounts/index.ts +2 -0
- package/dist/Account/History.d.ts +17 -0
- package/dist/Account/History.js +27 -0
- package/dist/Account/History.js.map +1 -0
- package/dist/Account/index.d.ts +4 -2
- package/dist/Account/index.js +2 -0
- package/dist/Account/index.js.map +1 -1
- package/dist/Audit.d.ts +11 -3
- package/dist/Audit.js +1 -1
- package/dist/Audit.js.map +1 -1
- package/dist/Client/Accounts/History.d.ts +8 -0
- package/dist/Client/Accounts/History.js +10 -0
- package/dist/Client/Accounts/History.js.map +1 -0
- package/dist/Client/Accounts/index.d.ts +2 -0
- package/dist/Client/Accounts/index.js +2 -0
- package/dist/Client/Accounts/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { isoly } from "isoly"
|
|
2
|
+
import { isly } from "isly"
|
|
3
|
+
|
|
4
|
+
export type History = {
|
|
5
|
+
timestamp: isoly.DateTime
|
|
6
|
+
property: History.Property
|
|
7
|
+
to?: any
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace History {
|
|
11
|
+
export type Property = typeof Property.values[number]
|
|
12
|
+
export namespace Property {
|
|
13
|
+
export const values = [
|
|
14
|
+
"status",
|
|
15
|
+
"rails",
|
|
16
|
+
"counterparts",
|
|
17
|
+
"rules",
|
|
18
|
+
"created",
|
|
19
|
+
"updated",
|
|
20
|
+
"buffer",
|
|
21
|
+
"listeners",
|
|
22
|
+
] as const
|
|
23
|
+
export const type = isly.string<Property>(values)
|
|
24
|
+
}
|
|
25
|
+
export const type = isly.object<History>({
|
|
26
|
+
timestamp: isly.fromIs("isoly.DateTime", isoly.DateTime.is),
|
|
27
|
+
property: Property.type,
|
|
28
|
+
to: isly.any().optional(),
|
|
29
|
+
})
|
|
30
|
+
export const is = type.is
|
|
31
|
+
export const flaw = type.flaw
|
|
32
|
+
}
|
package/Account/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Balances } from "../Balances"
|
|
|
5
5
|
import { Rail } from "../Rail"
|
|
6
6
|
import { Rule } from "../Rule"
|
|
7
7
|
import { Creatable as AccountCreatable } from "./Creatable"
|
|
8
|
+
import { History as AccountHistory } from "./History"
|
|
8
9
|
import { Status as AccountStatus } from "./Status"
|
|
9
10
|
|
|
10
11
|
export interface Account extends Account.Creatable {
|
|
@@ -15,11 +16,11 @@ export interface Account extends Account.Creatable {
|
|
|
15
16
|
counterparts?: Record<string, Rail.Address>
|
|
16
17
|
key?: string
|
|
17
18
|
rules?: Rule[]
|
|
18
|
-
status:
|
|
19
|
+
status: Account.Status
|
|
19
20
|
}
|
|
20
21
|
export namespace Account {
|
|
21
22
|
export type Legacy = Omit<Account, "status">
|
|
22
|
-
export function fromLegacy(maybeLegacy: Legacy | Account, status?:
|
|
23
|
+
export function fromLegacy(maybeLegacy: Legacy | Account, status?: Account.Status): Account {
|
|
23
24
|
return { ...maybeLegacy, status: status ?? ("status" in maybeLegacy ? maybeLegacy.status : { mode: "active" }) }
|
|
24
25
|
}
|
|
25
26
|
export const type = isly.object<Account>({
|
|
@@ -40,4 +41,5 @@ export namespace Account {
|
|
|
40
41
|
}
|
|
41
42
|
export import Creatable = AccountCreatable
|
|
42
43
|
export import Status = AccountStatus
|
|
44
|
+
export import History = AccountHistory
|
|
43
45
|
}
|
package/Audit.ts
CHANGED
|
@@ -3,10 +3,56 @@ import { isly } from "isly"
|
|
|
3
3
|
|
|
4
4
|
export type Audit = storage.AuditLogger.Entry<Audit.Type>
|
|
5
5
|
export namespace Audit {
|
|
6
|
-
export type Type = {
|
|
6
|
+
export type Type = {
|
|
7
|
+
rule: "change" | "add" | "remove"
|
|
8
|
+
user: "login" | "change"
|
|
9
|
+
settlements:
|
|
10
|
+
| "archive"
|
|
11
|
+
| "collect"
|
|
12
|
+
| "create"
|
|
13
|
+
| "inspect"
|
|
14
|
+
| "payout"
|
|
15
|
+
| "remove"
|
|
16
|
+
| "expect"
|
|
17
|
+
| "issue"
|
|
18
|
+
| "create-entry"
|
|
19
|
+
| "replace-entry"
|
|
20
|
+
marqeta: "gateway-create" | "gateway-update" | "hook-register" | "hook-update" | "product-create" | "user-create"
|
|
21
|
+
account:
|
|
22
|
+
| "buffer"
|
|
23
|
+
| "counterpart-remove"
|
|
24
|
+
| "counterpart-replace"
|
|
25
|
+
| "listener-create"
|
|
26
|
+
| "listener-remove"
|
|
27
|
+
| "rail-create"
|
|
28
|
+
| "rail-remove"
|
|
29
|
+
| "rail-replace"
|
|
30
|
+
| "rule-create"
|
|
31
|
+
| "rule-remove"
|
|
32
|
+
| "rule-replace"
|
|
33
|
+
| "create"
|
|
34
|
+
| "status"
|
|
35
|
+
| "operation"
|
|
36
|
+
| "remove"
|
|
37
|
+
| "update"
|
|
38
|
+
label: "create" | "remove" | "replace"
|
|
39
|
+
transaction: "operation" | "cancel" | "system" | "update" | "note"
|
|
40
|
+
organization:
|
|
41
|
+
| "group-replace"
|
|
42
|
+
| "listener-create"
|
|
43
|
+
| "listener-remove"
|
|
44
|
+
| "rule-create"
|
|
45
|
+
| "rule-remove"
|
|
46
|
+
| "rule-replace"
|
|
47
|
+
| "create"
|
|
48
|
+
| "remove"
|
|
49
|
+
| "update"
|
|
50
|
+
route: "create"
|
|
51
|
+
clearbank: "assessmentFailed" | "validationFailed"
|
|
52
|
+
}
|
|
7
53
|
export type Resource = typeof Resource.values[number]
|
|
8
54
|
export namespace Resource {
|
|
9
|
-
export const values = ["rule", "user"] as const
|
|
55
|
+
export const values = ["rule", "user", "settlements", "marqeta"] as const
|
|
10
56
|
export const type = isly.string(values)
|
|
11
57
|
}
|
|
12
58
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { gracely } from "gracely"
|
|
2
|
+
import { http } from "cloudly-http"
|
|
3
|
+
import * as rest from "cloudly-rest"
|
|
4
|
+
import { Account } from "../../Account"
|
|
5
|
+
|
|
6
|
+
export class History extends rest.Collection<gracely.Error> {
|
|
7
|
+
constructor(client: http.Client) {
|
|
8
|
+
super(client)
|
|
9
|
+
}
|
|
10
|
+
async list(account: string): Promise<Account.History[] | gracely.Error> {
|
|
11
|
+
return this.client.get<Account.History[]>(`/account/${account}/history`)
|
|
12
|
+
}
|
|
13
|
+
}
|
package/Client/Accounts/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as rest from "cloudly-rest"
|
|
|
4
4
|
import { Account } from "../../Account"
|
|
5
5
|
import { Buffer } from "./Buffer"
|
|
6
6
|
import { Counterparts } from "./Counterparts"
|
|
7
|
+
import { History } from "./History"
|
|
7
8
|
import { Rails } from "./Rails"
|
|
8
9
|
import { Rules } from "./Rules"
|
|
9
10
|
import { Status } from "./Status"
|
|
@@ -14,6 +15,7 @@ export class Accounts extends rest.Collection<gracely.Error> {
|
|
|
14
15
|
readonly rules = new Rules(this.client)
|
|
15
16
|
readonly status = new Status(this.client)
|
|
16
17
|
readonly counterparts = new Counterparts(this.client)
|
|
18
|
+
readonly history = new History(this.client)
|
|
17
19
|
|
|
18
20
|
constructor(client: http.Client) {
|
|
19
21
|
super(client)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
3
|
+
export type History = {
|
|
4
|
+
timestamp: isoly.DateTime;
|
|
5
|
+
property: History.Property;
|
|
6
|
+
to?: any;
|
|
7
|
+
};
|
|
8
|
+
export declare namespace History {
|
|
9
|
+
type Property = typeof Property.values[number];
|
|
10
|
+
namespace Property {
|
|
11
|
+
const values: readonly ["status", "rails", "counterparts", "rules", "created", "updated", "buffer", "listeners"];
|
|
12
|
+
const type: isly.Type<"buffer" | "created" | "status" | "rules" | "rails" | "counterparts" | "updated" | "listeners">;
|
|
13
|
+
}
|
|
14
|
+
const type: isly.object.ExtendableType<History>;
|
|
15
|
+
const is: isly.Type.IsFunction<History>;
|
|
16
|
+
const flaw: isly.Type.FlawFunction;
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { isoly } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
3
|
+
export var History;
|
|
4
|
+
(function (History) {
|
|
5
|
+
let Property;
|
|
6
|
+
(function (Property) {
|
|
7
|
+
Property.values = [
|
|
8
|
+
"status",
|
|
9
|
+
"rails",
|
|
10
|
+
"counterparts",
|
|
11
|
+
"rules",
|
|
12
|
+
"created",
|
|
13
|
+
"updated",
|
|
14
|
+
"buffer",
|
|
15
|
+
"listeners",
|
|
16
|
+
];
|
|
17
|
+
Property.type = isly.string(Property.values);
|
|
18
|
+
})(Property = History.Property || (History.Property = {}));
|
|
19
|
+
History.type = isly.object({
|
|
20
|
+
timestamp: isly.fromIs("isoly.DateTime", isoly.DateTime.is),
|
|
21
|
+
property: Property.type,
|
|
22
|
+
to: isly.any().optional(),
|
|
23
|
+
});
|
|
24
|
+
History.is = History.type.is;
|
|
25
|
+
History.flaw = History.type.flaw;
|
|
26
|
+
})(History || (History = {}));
|
|
27
|
+
//# sourceMappingURL=History.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"History.js","sourceRoot":"../","sources":["Account/History.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAQ3B,MAAM,KAAW,OAAO,CAsBvB;AAtBD,WAAiB,OAAO;IAEvB,IAAiB,QAAQ,CAYxB;IAZD,WAAiB,QAAQ;QACX,eAAM,GAAG;YACrB,QAAQ;YACR,OAAO;YACP,cAAc;YACd,OAAO;YACP,SAAS;YACT,SAAS;YACT,QAAQ;YACR,WAAW;SACF,CAAA;QACG,aAAI,GAAG,IAAI,CAAC,MAAM,CAAW,SAAA,MAAM,CAAC,CAAA;IAClD,CAAC,EAZgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAYxB;IACY,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3D,QAAQ,EAAE,QAAQ,CAAC,IAAI;QACvB,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;KACzB,CAAC,CAAA;IACW,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAtBgB,OAAO,KAAP,OAAO,QAsBvB"}
|
package/dist/Account/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Balances } from "../Balances";
|
|
|
5
5
|
import { Rail } from "../Rail";
|
|
6
6
|
import { Rule } from "../Rule";
|
|
7
7
|
import { Creatable as AccountCreatable } from "./Creatable";
|
|
8
|
+
import { History as AccountHistory } from "./History";
|
|
8
9
|
import { Status as AccountStatus } from "./Status";
|
|
9
10
|
export interface Account extends Account.Creatable {
|
|
10
11
|
id: cryptly.Identifier;
|
|
@@ -14,15 +15,16 @@ export interface Account extends Account.Creatable {
|
|
|
14
15
|
counterparts?: Record<string, Rail.Address>;
|
|
15
16
|
key?: string;
|
|
16
17
|
rules?: Rule[];
|
|
17
|
-
status:
|
|
18
|
+
status: Account.Status;
|
|
18
19
|
}
|
|
19
20
|
export declare namespace Account {
|
|
20
21
|
type Legacy = Omit<Account, "status">;
|
|
21
|
-
function fromLegacy(maybeLegacy: Legacy | Account, status?:
|
|
22
|
+
function fromLegacy(maybeLegacy: Legacy | Account, status?: Account.Status): Account;
|
|
22
23
|
const type: isly.object.ExtendableType<Account>;
|
|
23
24
|
const is: isly.Type.IsFunction<Account>;
|
|
24
25
|
const flaw: isly.Type.FlawFunction;
|
|
25
26
|
function isIdentifier(value: cryptly.Identifier | any): value is cryptly.Identifier;
|
|
26
27
|
export import Creatable = AccountCreatable;
|
|
27
28
|
export import Status = AccountStatus;
|
|
29
|
+
export import History = AccountHistory;
|
|
28
30
|
}
|
package/dist/Account/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { Balances } from "../Balances";
|
|
|
5
5
|
import { Rail } from "../Rail";
|
|
6
6
|
import { Rule } from "../Rule";
|
|
7
7
|
import { Creatable as AccountCreatable } from "./Creatable";
|
|
8
|
+
import { History as AccountHistory } from "./History";
|
|
8
9
|
import { Status as AccountStatus } from "./Status";
|
|
9
10
|
export var Account;
|
|
10
11
|
(function (Account) {
|
|
@@ -31,5 +32,6 @@ export var Account;
|
|
|
31
32
|
Account.isIdentifier = isIdentifier;
|
|
32
33
|
Account.Creatable = AccountCreatable;
|
|
33
34
|
Account.Status = AccountStatus;
|
|
35
|
+
Account.History = AccountHistory;
|
|
34
36
|
})(Account || (Account = {}));
|
|
35
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,UAAU,CAAA;AAYlD,MAAM,KAAW,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,UAAU,CAAA;AAYlD,MAAM,KAAW,OAAO,CAwBvB;AAxBD,WAAiB,OAAO;IAEvB,SAAgB,UAAU,CAAC,WAA6B,EAAE,MAAuB;QAChF,OAAO,EAAE,GAAG,WAAW,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAA;IACjH,CAAC;IAFe,kBAAU,aAEzB,CAAA;IACY,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzD,QAAQ,EAAE,QAAQ,CAAC,IAAI;QACvB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE;QAChC,YAAY,EAAE,IAAI,CAAC,MAAM,CAA+B,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QACpG,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACnC,MAAM,EAAE,aAAa,CAAC,IAAI;KAC1B,CAAC,CAAA;IACW,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;IAC7B,SAAgB,YAAY,CAAC,KAA+B;QAC3D,OAAO,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACvC,CAAC;IAFe,oBAAY,eAE3B,CAAA;IACa,iBAAS,GAAG,gBAAgB,CAAA;IAC5B,cAAM,GAAG,aAAa,CAAA;IACtB,eAAO,GAAG,cAAc,CAAA;AACvC,CAAC,EAxBgB,OAAO,KAAP,OAAO,QAwBvB"}
|
package/dist/Audit.d.ts
CHANGED
|
@@ -3,12 +3,20 @@ import { isly } from "isly";
|
|
|
3
3
|
export type Audit = storage.AuditLogger.Entry<Audit.Type>;
|
|
4
4
|
export declare namespace Audit {
|
|
5
5
|
type Type = {
|
|
6
|
-
rule: "change" | "add";
|
|
6
|
+
rule: "change" | "add" | "remove";
|
|
7
7
|
user: "login" | "change";
|
|
8
|
+
settlements: "archive" | "collect" | "create" | "inspect" | "payout" | "remove" | "expect" | "issue" | "create-entry" | "replace-entry";
|
|
9
|
+
marqeta: "gateway-create" | "gateway-update" | "hook-register" | "hook-update" | "product-create" | "user-create";
|
|
10
|
+
account: "buffer" | "counterpart-remove" | "counterpart-replace" | "listener-create" | "listener-remove" | "rail-create" | "rail-remove" | "rail-replace" | "rule-create" | "rule-remove" | "rule-replace" | "create" | "status" | "operation" | "remove" | "update";
|
|
11
|
+
label: "create" | "remove" | "replace";
|
|
12
|
+
transaction: "operation" | "cancel" | "system" | "update" | "note";
|
|
13
|
+
organization: "group-replace" | "listener-create" | "listener-remove" | "rule-create" | "rule-remove" | "rule-replace" | "create" | "remove" | "update";
|
|
14
|
+
route: "create";
|
|
15
|
+
clearbank: "assessmentFailed" | "validationFailed";
|
|
8
16
|
};
|
|
9
17
|
type Resource = typeof Resource.values[number];
|
|
10
18
|
namespace Resource {
|
|
11
|
-
const values: readonly ["rule", "user"];
|
|
12
|
-
const type: isly.Type<"rule" | "user">;
|
|
19
|
+
const values: readonly ["rule", "user", "settlements", "marqeta"];
|
|
20
|
+
const type: isly.Type<"rule" | "user" | "settlements" | "marqeta">;
|
|
13
21
|
}
|
|
14
22
|
}
|
package/dist/Audit.js
CHANGED
|
@@ -3,7 +3,7 @@ export var Audit;
|
|
|
3
3
|
(function (Audit) {
|
|
4
4
|
let Resource;
|
|
5
5
|
(function (Resource) {
|
|
6
|
-
Resource.values = ["rule", "user"];
|
|
6
|
+
Resource.values = ["rule", "user", "settlements", "marqeta"];
|
|
7
7
|
Resource.type = isly.string(Resource.values);
|
|
8
8
|
})(Resource = Audit.Resource || (Audit.Resource = {}));
|
|
9
9
|
})(Audit || (Audit = {}));
|
package/dist/Audit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Audit.js","sourceRoot":"../","sources":["Audit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"Audit.js","sourceRoot":"../","sources":["Audit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,KAAK,CAqDrB;AArDD,WAAiB,KAAK;IAiDrB,IAAiB,QAAQ,CAGxB;IAHD,WAAiB,QAAQ;QACX,eAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,CAAU,CAAA;QAC5D,aAAI,GAAG,IAAI,CAAC,MAAM,CAAC,SAAA,MAAM,CAAC,CAAA;IACxC,CAAC,EAHgB,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QAGxB;AACF,CAAC,EArDgB,KAAK,KAAL,KAAK,QAqDrB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import * as rest from "cloudly-rest";
|
|
4
|
+
import { Account } from "../../Account";
|
|
5
|
+
export declare class History extends rest.Collection<gracely.Error> {
|
|
6
|
+
constructor(client: http.Client);
|
|
7
|
+
list(account: string): Promise<Account.History[] | gracely.Error>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"History.js","sourceRoot":"../","sources":["Client/Accounts/History.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,OAAQ,SAAQ,IAAI,CAAC,UAAyB;IAC1D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAAe;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAoB,YAAY,OAAO,UAAU,CAAC,CAAA;IACzE,CAAC;CACD"}
|
|
@@ -4,6 +4,7 @@ import * as rest from "cloudly-rest";
|
|
|
4
4
|
import { Account } from "../../Account";
|
|
5
5
|
import { Buffer } from "./Buffer";
|
|
6
6
|
import { Counterparts } from "./Counterparts";
|
|
7
|
+
import { History } from "./History";
|
|
7
8
|
import { Rails } from "./Rails";
|
|
8
9
|
import { Rules } from "./Rules";
|
|
9
10
|
import { Status } from "./Status";
|
|
@@ -13,6 +14,7 @@ export declare class Accounts extends rest.Collection<gracely.Error> {
|
|
|
13
14
|
readonly rules: Rules;
|
|
14
15
|
readonly status: Status;
|
|
15
16
|
readonly counterparts: Counterparts;
|
|
17
|
+
readonly history: History;
|
|
16
18
|
constructor(client: http.Client);
|
|
17
19
|
create(account: Account.Creatable): Promise<Account | gracely.Error>;
|
|
18
20
|
get(account: string): Promise<Account | gracely.Error>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as rest from "cloudly-rest";
|
|
2
2
|
import { Buffer } from "./Buffer";
|
|
3
3
|
import { Counterparts } from "./Counterparts";
|
|
4
|
+
import { History } from "./History";
|
|
4
5
|
import { Rails } from "./Rails";
|
|
5
6
|
import { Rules } from "./Rules";
|
|
6
7
|
import { Status } from "./Status";
|
|
@@ -12,6 +13,7 @@ export class Accounts extends rest.Collection {
|
|
|
12
13
|
this.rules = new Rules(this.client);
|
|
13
14
|
this.status = new Status(this.client);
|
|
14
15
|
this.counterparts = new Counterparts(this.client);
|
|
16
|
+
this.history = new History(this.client);
|
|
15
17
|
}
|
|
16
18
|
async create(account) {
|
|
17
19
|
return this.client.post("/account", account);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAQ3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QARL,WAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChC,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9B,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9B,WAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChC,iBAAY,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC5C,YAAO,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAI3C,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA0B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAU,UAAU,EAAE,OAAO,CAAC,CAAA;IACtD,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,OAAe;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,YAAY,OAAO,EAAE,CAAC,CAAA;IACvD,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAIV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8C,UAAU,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pax2pay/model-banking",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.409",
|
|
4
4
|
"description": "Library containing data model types and functions for the Pax2Pay Banking API.",
|
|
5
5
|
"author": "Pax2Pay Ltd",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"cloudly-analytics-common": "^0.3.32",
|
|
78
78
|
"cloudly-http": "^0.1.7",
|
|
79
79
|
"cloudly-rest": "^0.1.4",
|
|
80
|
-
"cloudly-storage": "^0.10.
|
|
80
|
+
"cloudly-storage": "^0.10.13",
|
|
81
81
|
"cryptly": "^4.0.5",
|
|
82
82
|
"gracely": "^2.0.8",
|
|
83
83
|
"isly": "0.1.16",
|