@wildix/wms-api-client 1.1.0 → 1.1.2
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({
|
|
@@ -103,8 +103,8 @@ const se_GetPbxColleaguesCommand = async (input, context) => {
|
|
|
103
103
|
"filter[groupDn][]": [() => input.groupDn !== void 0, () => ((input.groupDn || []).map(_entry => _entry))],
|
|
104
104
|
"filter[pbxDn][]": [() => input.pbxDn !== void 0, () => ((input.pbxDn || []).map(_entry => _entry))],
|
|
105
105
|
"filter[licenseType][]": [() => input.licenseType !== void 0, () => ((input.licenseType || []).map(_entry => _entry))],
|
|
106
|
-
"fields": [() => input.fields !== void 0, () => ((input.fields || []).
|
|
107
|
-
"searchFields": [() => input.searchFields !== void 0, () => ((input.searchFields || []).
|
|
106
|
+
"fields": [() => input.fields !== void 0, () => ((input.fields || []).join(','))],
|
|
107
|
+
"searchFields": [() => input.searchFields !== void 0, () => ((input.searchFields || []).join(','))],
|
|
108
108
|
"search": [, input.search],
|
|
109
109
|
"sort": [() => input.sort !== void 0, () => ((input.sort || []).map(_entry => _entry))],
|
|
110
110
|
"start": [() => input.start !== void 0, () => (input.start.toString())],
|
|
@@ -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({
|
|
@@ -96,8 +96,8 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
|
|
|
96
96
|
"filter[groupDn][]": [() => input.groupDn !== void 0, () => ((input.groupDn || []).map(_entry => _entry))],
|
|
97
97
|
"filter[pbxDn][]": [() => input.pbxDn !== void 0, () => ((input.pbxDn || []).map(_entry => _entry))],
|
|
98
98
|
"filter[licenseType][]": [() => input.licenseType !== void 0, () => ((input.licenseType || []).map(_entry => _entry))],
|
|
99
|
-
"fields": [() => input.fields !== void 0, () => ((input.fields || []).
|
|
100
|
-
"searchFields": [() => input.searchFields !== void 0, () => ((input.searchFields || []).
|
|
99
|
+
"fields": [() => input.fields !== void 0, () => ((input.fields || []).join(','))],
|
|
100
|
+
"searchFields": [() => input.searchFields !== void 0, () => ((input.searchFields || []).join(','))],
|
|
101
101
|
"search": [, input.search],
|
|
102
102
|
"sort": [() => input.sort !== void 0, () => ((input.sort || []).map(_entry => _entry))],
|
|
103
103
|
"start": [() => input.start !== void 0, () => (input.start.toString())],
|
|
@@ -30,8 +30,12 @@ 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);
|
|
@@ -172,14 +172,14 @@ 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
|
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.1.
|
|
4
|
+
"version": "1.1.2",
|
|
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",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@smithy/util-defaults-mode-node": "^2.0.15",
|
|
43
43
|
"@smithy/util-retry": "^2.0.3",
|
|
44
44
|
"@smithy/util-utf8": "^2.0.0",
|
|
45
|
-
"@wildix/smithy-utils": "^1.0.
|
|
45
|
+
"@wildix/smithy-utils": "^1.0.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@tsconfig/node14": "1.0.3",
|