@wildix/wms-api-client 1.0.5 → 1.1.1
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.
|
@@ -49,8 +49,8 @@ const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
|
|
|
49
49
|
const headers = {};
|
|
50
50
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/api/v1/pbx/aclgroups/permissions";
|
|
51
51
|
const query = (0, smithy_client_1.map)({
|
|
52
|
-
"groups": [, input.groups],
|
|
53
|
-
"permissions": [, input.permissions],
|
|
52
|
+
"groups[]": [() => input.groups !== void 0, () => ((input.groups || []).map(_entry => _entry))],
|
|
53
|
+
"permissions[]": [() => input.permissions !== void 0, () => ((input.permissions || []).map(_entry => _entry))],
|
|
54
54
|
});
|
|
55
55
|
let body;
|
|
56
56
|
return new protocol_http_1.HttpRequest({
|
|
@@ -44,8 +44,8 @@ export const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
|
|
|
44
44
|
const headers = {};
|
|
45
45
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/api/v1/pbx/aclgroups/permissions";
|
|
46
46
|
const query = map({
|
|
47
|
-
"groups": [, input.groups],
|
|
48
|
-
"permissions": [, input.permissions],
|
|
47
|
+
"groups[]": [() => input.groups !== void 0, () => ((input.groups || []).map(_entry => _entry))],
|
|
48
|
+
"permissions[]": [() => input.permissions !== void 0, () => ((input.permissions || []).map(_entry => _entry))],
|
|
49
49
|
});
|
|
50
50
|
let body;
|
|
51
51
|
return new __HttpRequest({
|
|
@@ -30,26 +30,30 @@ export interface GetPbxAclGroupsPermissionsCommandOutput extends GetPbxAclGroups
|
|
|
30
30
|
* // const { WmsApiClient, GetPbxAclGroupsPermissionsCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
31
31
|
* const client = new WmsApiClient(config);
|
|
32
32
|
* const input = { // GetPbxAclGroupsPermissionsInput
|
|
33
|
-
* groups:
|
|
34
|
-
*
|
|
33
|
+
* groups: [ // FilterList
|
|
34
|
+
* "STRING_VALUE",
|
|
35
|
+
* ],
|
|
36
|
+
* permissions: [
|
|
37
|
+
* "STRING_VALUE",
|
|
38
|
+
* ],
|
|
35
39
|
* };
|
|
36
40
|
* const command = new GetPbxAclGroupsPermissionsCommand(input);
|
|
37
41
|
* const response = await client.send(command);
|
|
38
42
|
* // { // GetPbxAclGroupsPermissionsOutput
|
|
39
43
|
* // type: "result" || "error", // required
|
|
40
44
|
* // result: [ // GetPbxAclGroupsPermissionsResult // required
|
|
41
|
-
* // { //
|
|
45
|
+
* // { // AclGroupPermission
|
|
42
46
|
* // ability: "can" || "cannot" || "yes" || "no", // required
|
|
43
47
|
* // key: "STRING_VALUE", // required
|
|
44
48
|
* // name: "STRING_VALUE", // required
|
|
45
49
|
* // containSubGroups: true || false, // required
|
|
46
|
-
* // groups: [ //
|
|
47
|
-
* // { //
|
|
50
|
+
* // groups: [ // AclGroupPermissionItemsList // required
|
|
51
|
+
* // { // AclGroupPermissionItem
|
|
48
52
|
* // groupDn: "STRING_VALUE", // required
|
|
49
53
|
* // groupName: "STRING_VALUE", // required
|
|
50
54
|
* // access: true || false, // required
|
|
51
|
-
* // subGroups: [ //
|
|
52
|
-
* // { //
|
|
55
|
+
* // subGroups: [ // AclGroupPermissionFlatItemList // required
|
|
56
|
+
* // { // AclGroupPermissionFlatItem
|
|
53
57
|
* // groupDn: "STRING_VALUE", // required
|
|
54
58
|
* // groupName: "STRING_VALUE", // required
|
|
55
59
|
* // access: true || false, // required
|
|
@@ -17,7 +17,7 @@ export type AclGroupPermissionAbility = typeof AclGroupPermissionAbility[keyof t
|
|
|
17
17
|
/**
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
20
|
+
export interface AclGroupPermissionFlatItem {
|
|
21
21
|
groupDn: string;
|
|
22
22
|
groupName: string;
|
|
23
23
|
access: boolean;
|
|
@@ -25,21 +25,21 @@ export interface AclGroupPermissonFlatItem {
|
|
|
25
25
|
/**
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
|
-
export interface
|
|
28
|
+
export interface AclGroupPermissionItem {
|
|
29
29
|
groupDn: string;
|
|
30
30
|
groupName: string;
|
|
31
31
|
access: boolean;
|
|
32
|
-
subGroups: (
|
|
32
|
+
subGroups: (AclGroupPermissionFlatItem)[];
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* @public
|
|
36
36
|
*/
|
|
37
|
-
export interface
|
|
37
|
+
export interface AclGroupPermission {
|
|
38
38
|
ability: AclGroupPermissionAbility | string;
|
|
39
39
|
key: string;
|
|
40
40
|
name: string;
|
|
41
41
|
containSubGroups: boolean;
|
|
42
|
-
groups: (
|
|
42
|
+
groups: (AclGroupPermissionItem)[];
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* @public
|
|
@@ -172,21 +172,21 @@ export declare class WmsNotFoundException extends __BaseException {
|
|
|
172
172
|
export interface GetPbxAclGroupsPermissionsInput {
|
|
173
173
|
/**
|
|
174
174
|
* @public
|
|
175
|
-
* User group(s) ID for filter result. Example: 12345 or 12345,67890,134711
|
|
175
|
+
* User group(s) ID for filter result. Example: ['12345'] or ['12345','67890','134711']
|
|
176
176
|
*/
|
|
177
|
-
groups?: string;
|
|
177
|
+
groups?: (string)[];
|
|
178
178
|
/**
|
|
179
179
|
* @public
|
|
180
|
-
* ACL permission(s) key for filter result. Example: SEE_CALL_RECORDINGS or CTI_ANALYTICS,SUPERVISION,SEE_ANALYTICS
|
|
180
|
+
* ACL permission(s) key for filter result. Example: ['SEE_CALL_RECORDINGS'] or ['CTI_ANALYTICS','SUPERVISION','SEE_ANALYTICS']
|
|
181
181
|
*/
|
|
182
|
-
permissions?: string;
|
|
182
|
+
permissions?: (string)[];
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
185
|
* @public
|
|
186
186
|
*/
|
|
187
187
|
export interface GetPbxAclGroupsPermissionsOutput {
|
|
188
188
|
type: ResponseType | string;
|
|
189
|
-
result: (
|
|
189
|
+
result: (AclGroupPermission)[];
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
192
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wms-api-client",
|
|
3
3
|
"description": "@wildix/wms-api-client client",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|