@pax2pay/model-banking 0.0.9 → 0.0.11
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/Accounts.ts +2 -2
- package/Client/Organizations.ts +1 -1
- package/dist/Client/Accounts.d.ts +1 -1
- package/dist/Client/Accounts.js +2 -2
- package/dist/Client/Accounts.js.map +1 -1
- package/dist/Client/Organizations.js +1 -1
- package/dist/Client/Organizations.js.map +1 -1
- package/package.json +1 -1
package/Client/Accounts.ts
CHANGED
|
@@ -10,7 +10,7 @@ export class Accounts extends rest.Collection<gracely.Error> {
|
|
|
10
10
|
async create(account: Account.Creatable): Promise<Account | gracely.Error> {
|
|
11
11
|
return this.client.post<Account>("/account", account)
|
|
12
12
|
}
|
|
13
|
-
async list(organization: string
|
|
14
|
-
return this.client.get<Account.Info[]>("/account", { organization: organization
|
|
13
|
+
async list(organization: string): Promise<Account.Info[] | gracely.Error> {
|
|
14
|
+
return this.client.get<Account.Info[]>("/account", { organization: organization })
|
|
15
15
|
}
|
|
16
16
|
}
|
package/Client/Organizations.ts
CHANGED
|
@@ -8,7 +8,7 @@ export class Organizations extends rest.Collection<gracely.Error> {
|
|
|
8
8
|
super(client)
|
|
9
9
|
}
|
|
10
10
|
async list(): Promise<Organization[] | gracely.Error> {
|
|
11
|
-
return this.client.get<Organization[]>(`/organization
|
|
11
|
+
return this.client.get<Organization[]>(`/organization`)
|
|
12
12
|
}
|
|
13
13
|
async create(organization: Organization.Creatable): Promise<Organization | gracely.Error> {
|
|
14
14
|
return this.client.post<Organization>(`/organization`, organization)
|
|
@@ -5,5 +5,5 @@ import { Account } from "../Account";
|
|
|
5
5
|
export declare class Accounts extends rest.Collection<gracely.Error> {
|
|
6
6
|
constructor(client: http.Client);
|
|
7
7
|
create(account: Account.Creatable): Promise<Account | gracely.Error>;
|
|
8
|
-
list(organization: string
|
|
8
|
+
list(organization: string): Promise<Account.Info[] | gracely.Error>;
|
|
9
9
|
}
|
package/dist/Client/Accounts.js
CHANGED
|
@@ -6,8 +6,8 @@ export class Accounts extends rest.Collection {
|
|
|
6
6
|
async create(account) {
|
|
7
7
|
return this.client.post("/account", account);
|
|
8
8
|
}
|
|
9
|
-
async list(organization
|
|
10
|
-
return this.client.get("/account", { organization: organization
|
|
9
|
+
async list(organization) {
|
|
10
|
+
return this.client.get("/account", { organization: organization });
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=Accounts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accounts.js","sourceRoot":"../","sources":["Client/Accounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAC3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,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,IAAI,CAAC,YAAoB
|
|
1
|
+
{"version":3,"file":"Accounts.js","sourceRoot":"../","sources":["Client/Accounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAC3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,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,IAAI,CAAC,YAAoB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,UAAU,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC,CAAA;IACnF,CAAC;CACD"}
|
|
@@ -4,7 +4,7 @@ export class Organizations extends rest.Collection {
|
|
|
4
4
|
super(client);
|
|
5
5
|
}
|
|
6
6
|
async list() {
|
|
7
|
-
return this.client.get(`/organization
|
|
7
|
+
return this.client.get(`/organization`);
|
|
8
8
|
}
|
|
9
9
|
async create(organization) {
|
|
10
10
|
return this.client.post(`/organization`, organization);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Organizations.js","sourceRoot":"../","sources":["Client/Organizations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,aAAc,SAAQ,IAAI,CAAC,UAAyB;IAChE,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,
|
|
1
|
+
{"version":3,"file":"Organizations.js","sourceRoot":"../","sources":["Client/Organizations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,aAAc,SAAQ,IAAI,CAAC,UAAyB;IAChE,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,eAAe,CAAC,CAAA;IACxD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,YAAoC;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,eAAe,EAAE,YAAY,CAAC,CAAA;IACrE,CAAC;CACD"}
|