@pax2pay/client 0.0.88 → 0.0.89
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/Users/index.ts
CHANGED
|
@@ -15,4 +15,9 @@ export class Users extends Collection<model.UserResponse, model.UserSearchReques
|
|
|
15
15
|
static create(connection: Connection) {
|
|
16
16
|
return new Users(connection)
|
|
17
17
|
}
|
|
18
|
+
async getUsersActiveRoles(username: string, token: string): Promise<string[] | model.ErrorResponse> {
|
|
19
|
+
this.connection.token = token
|
|
20
|
+
const result = await this.connection.get<string[]>(`users/${username}/roles/minified`)
|
|
21
|
+
return result
|
|
22
|
+
}
|
|
18
23
|
}
|
|
@@ -11,5 +11,10 @@ export class Users extends Collection {
|
|
|
11
11
|
static create(connection) {
|
|
12
12
|
return new Users(connection);
|
|
13
13
|
}
|
|
14
|
+
async getUsersActiveRoles(username, token) {
|
|
15
|
+
this.connection.token = token;
|
|
16
|
+
const result = await this.connection.get(`users/${username}/roles/minified`);
|
|
17
|
+
return result;
|
|
18
|
+
}
|
|
14
19
|
}
|
|
15
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Users/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,KAAM,SAAQ,UAA0E;IAEpG,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,OAAO,CAAA;IAG1B,CAAC;IACS,cAAc,CAAC,QAA4B;QACpD,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAA;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