@pax2pay/model-banking 0.1.14 → 0.1.15
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/Organizations/index.ts +2 -0
- package/dist/Client/Organizations/Rules.d.ts +8 -0
- package/dist/Client/Organizations/Rules.js +12 -0
- package/dist/Client/Organizations/Rules.js.map +1 -0
- package/dist/Client/Organizations/index.d.ts +2 -0
- package/dist/Client/Organizations/index.js +2 -0
- package/dist/Client/Organizations/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,10 @@ import * as gracely from "gracely"
|
|
|
2
2
|
import * as http from "cloudly-http"
|
|
3
3
|
import * as rest from "cloudly-rest"
|
|
4
4
|
import { Organization } from "../../Organization"
|
|
5
|
+
import { Rules } from "./Rules"
|
|
5
6
|
|
|
6
7
|
export class Organizations extends rest.Collection<gracely.Error> {
|
|
8
|
+
readonly Rules = new Rules(this.client)
|
|
7
9
|
constructor(client: http.Client) {
|
|
8
10
|
super(client)
|
|
9
11
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as gracely from "gracely";
|
|
2
|
+
import * as http from "cloudly-http";
|
|
3
|
+
import * as rest from "cloudly-rest";
|
|
4
|
+
import { Organization } from "../../Organization";
|
|
5
|
+
export declare class Rules extends rest.Collection<gracely.Error> {
|
|
6
|
+
constructor(client: http.Client);
|
|
7
|
+
replace(organization: string, rules: Organization.Rule[]): Promise<Organization.Rule[] | gracely.Error>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as rest from "cloudly-rest";
|
|
2
|
+
export class Rules extends rest.Collection {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
super(client);
|
|
5
|
+
}
|
|
6
|
+
async replace(organization, rules) {
|
|
7
|
+
return this.client.put(`/organization/rule`, rules, {
|
|
8
|
+
organization: organization,
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=Rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rules.js","sourceRoot":"../","sources":["Client/Organizations/Rules.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,YAAoB,EAAE,KAA0B;QAC7D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAsB,oBAAoB,EAAE,KAAK,EAAE;YACxE,YAAY,EAAE,YAAY;SAC1B,CAAC,CAAA;IACH,CAAC;CACD"}
|
|
@@ -2,7 +2,9 @@ import * as gracely from "gracely";
|
|
|
2
2
|
import * as http from "cloudly-http";
|
|
3
3
|
import * as rest from "cloudly-rest";
|
|
4
4
|
import { Organization } from "../../Organization";
|
|
5
|
+
import { Rules } from "./Rules";
|
|
5
6
|
export declare class Organizations extends rest.Collection<gracely.Error> {
|
|
7
|
+
readonly Rules: Rules;
|
|
6
8
|
constructor(client: http.Client);
|
|
7
9
|
list(options?: {
|
|
8
10
|
limit?: string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as rest from "cloudly-rest";
|
|
2
|
+
import { Rules } from "./Rules";
|
|
2
3
|
export class Organizations extends rest.Collection {
|
|
3
4
|
constructor(client) {
|
|
4
5
|
super(client);
|
|
6
|
+
this.Rules = new Rules(this.client);
|
|
5
7
|
}
|
|
6
8
|
async list(options) {
|
|
7
9
|
return this.client.get(`/organization`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,aAAc,SAAQ,IAAI,CAAC,UAAyB;IAEhE,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QAFL,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAGvC,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAGV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmD,eAAe,EAAE,OAAO,CAAC,CAAA;IACnG,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,YAAoC;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,eAAe,EAAE,YAAY,CAAC,CAAA;IACrE,CAAC;CACD"}
|