@pax2pay/model-banking 0.1.248 → 0.1.249
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/Groups.ts +15 -0
- package/Client/Organizations/index.ts +3 -0
- package/dist/Client/Organizations/Groups.d.ts +8 -0
- package/dist/Client/Organizations/Groups.js +12 -0
- package/dist/Client/Organizations/Groups.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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { gracely } from "gracely"
|
|
2
|
+
import { http } from "cloudly-http"
|
|
3
|
+
import * as rest from "cloudly-rest"
|
|
4
|
+
import { Organization } from "../../Organization"
|
|
5
|
+
|
|
6
|
+
export class Groups extends rest.Collection<gracely.Error> {
|
|
7
|
+
constructor(client: http.Client) {
|
|
8
|
+
super(client)
|
|
9
|
+
}
|
|
10
|
+
async replace(organization: string, groups: string[]): Promise<Organization | gracely.Error> {
|
|
11
|
+
return this.client.put<Organization>(`/organization/group`, groups, {
|
|
12
|
+
organization,
|
|
13
|
+
})
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -2,10 +2,13 @@ import { gracely } from "gracely"
|
|
|
2
2
|
import { http } from "cloudly-http"
|
|
3
3
|
import * as rest from "cloudly-rest"
|
|
4
4
|
import { Organization } from "../../Organization"
|
|
5
|
+
import { Groups } from "./Groups"
|
|
5
6
|
import { Rules } from "./Rules"
|
|
6
7
|
|
|
7
8
|
export class Organizations extends rest.Collection<gracely.Error> {
|
|
8
9
|
readonly Rules = new Rules(this.client)
|
|
10
|
+
readonly groups = new Groups(this.client)
|
|
11
|
+
|
|
9
12
|
constructor(client: http.Client) {
|
|
10
13
|
super(client)
|
|
11
14
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import * as rest from "cloudly-rest";
|
|
4
|
+
import { Organization } from "../../Organization";
|
|
5
|
+
export declare class Groups extends rest.Collection<gracely.Error> {
|
|
6
|
+
constructor(client: http.Client);
|
|
7
|
+
replace(organization: string, groups: string[]): Promise<Organization | gracely.Error>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as rest from "cloudly-rest";
|
|
2
|
+
export class Groups extends rest.Collection {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
super(client);
|
|
5
|
+
}
|
|
6
|
+
async replace(organization, groups) {
|
|
7
|
+
return this.client.put(`/organization/group`, groups, {
|
|
8
|
+
organization,
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=Groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Groups.js","sourceRoot":"../","sources":["Client/Organizations/Groups.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,MAAO,SAAQ,IAAI,CAAC,UAAyB;IACzD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,YAAoB,EAAE,MAAgB;QACnD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAe,qBAAqB,EAAE,MAAM,EAAE;YACnE,YAAY;SACZ,CAAC,CAAA;IACH,CAAC;CACD"}
|
|
@@ -2,9 +2,11 @@ import { gracely } from "gracely";
|
|
|
2
2
|
import { http } from "cloudly-http";
|
|
3
3
|
import * as rest from "cloudly-rest";
|
|
4
4
|
import { Organization } from "../../Organization";
|
|
5
|
+
import { Groups } from "./Groups";
|
|
5
6
|
import { Rules } from "./Rules";
|
|
6
7
|
export declare class Organizations extends rest.Collection<gracely.Error> {
|
|
7
8
|
readonly Rules: Rules;
|
|
9
|
+
readonly groups: Groups;
|
|
8
10
|
constructor(client: http.Client);
|
|
9
11
|
list(options?: {
|
|
10
12
|
limit?: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as rest from "cloudly-rest";
|
|
2
|
+
import { Groups } from "./Groups";
|
|
2
3
|
import { Rules } from "./Rules";
|
|
3
4
|
export class Organizations extends rest.Collection {
|
|
4
5
|
constructor(client) {
|
|
5
6
|
super(client);
|
|
6
7
|
this.Rules = new Rules(this.client);
|
|
8
|
+
this.groups = new Groups(this.client);
|
|
7
9
|
}
|
|
8
10
|
async list(options) {
|
|
9
11
|
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;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,aAAc,SAAQ,IAAI,CAAC,UAAyB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,aAAc,SAAQ,IAAI,CAAC,UAAyB;IAIhE,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QAJL,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9B,WAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAIzC,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,YAA0B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,eAAe,EAAE,YAAY,CAAC,CAAA;IACrE,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,UAAmC;QAC3D,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,iBAAiB,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;IAC1E,CAAC;CACD"}
|