@wildix/wms-api-client 1.0.4 → 1.1.0

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.
@@ -46,12 +46,13 @@ const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
46
46
  exports.se_DeletePbxOAuth2ClientCommand = se_DeletePbxOAuth2ClientCommand;
47
47
  const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
48
48
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
- const headers = {
50
- 'content-type': 'application/json',
51
- };
49
+ const headers = {};
52
50
  let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/api/v1/pbx/aclgroups/permissions";
51
+ const query = (0, smithy_client_1.map)({
52
+ "groups": [, input.groups],
53
+ "permissions": [, input.permissions],
54
+ });
53
55
  let body;
54
- body = "";
55
56
  return new protocol_http_1.HttpRequest({
56
57
  protocol,
57
58
  hostname,
@@ -59,6 +60,7 @@ const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
59
60
  method: "GET",
60
61
  headers,
61
62
  path: resolvedPath,
63
+ query,
62
64
  body,
63
65
  });
64
66
  };
@@ -41,12 +41,13 @@ export const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
41
41
  };
42
42
  export const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
43
43
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
44
- const headers = {
45
- 'content-type': 'application/json',
46
- };
44
+ const headers = {};
47
45
  let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/api/v1/pbx/aclgroups/permissions";
46
+ const query = map({
47
+ "groups": [, input.groups],
48
+ "permissions": [, input.permissions],
49
+ });
48
50
  let body;
49
- body = "";
50
51
  return new __HttpRequest({
51
52
  protocol,
52
53
  hostname,
@@ -54,6 +55,7 @@ export const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
54
55
  method: "GET",
55
56
  headers,
56
57
  path: resolvedPath,
58
+ query,
57
59
  body,
58
60
  });
59
61
  };
@@ -22,7 +22,7 @@ export interface DeletePbxOAuth2ClientCommandOutput extends DeletePbxOAuth2Clien
22
22
  }
23
23
  /**
24
24
  * @public
25
- * Update OAuth2 client in the PBX. Only for root admin.
25
+ * Update OAuth2 client in the PBX.
26
26
  * @example
27
27
  * Use a bare-bones client and the command you need to make an API call.
28
28
  * ```javascript
@@ -1,5 +1,5 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
- import { GetPbxAclGroupsPermissionsOutput } from "../models/models_0";
2
+ import { GetPbxAclGroupsPermissionsInput, GetPbxAclGroupsPermissionsOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
@@ -11,7 +11,7 @@ export { __MetadataBearer, $Command };
11
11
  *
12
12
  * The input for {@link GetPbxAclGroupsPermissionsCommand}.
13
13
  */
14
- export interface GetPbxAclGroupsPermissionsCommandInput {
14
+ export interface GetPbxAclGroupsPermissionsCommandInput extends GetPbxAclGroupsPermissionsInput {
15
15
  }
16
16
  /**
17
17
  * @public
@@ -29,24 +29,27 @@ export interface GetPbxAclGroupsPermissionsCommandOutput extends GetPbxAclGroups
29
29
  * import { WmsApiClient, GetPbxAclGroupsPermissionsCommand } from "@wildix/wms-api-client"; // ES Modules import
30
30
  * // const { WmsApiClient, GetPbxAclGroupsPermissionsCommand } = require("@wildix/wms-api-client"); // CommonJS import
31
31
  * const client = new WmsApiClient(config);
32
- * const input = {};
32
+ * const input = { // GetPbxAclGroupsPermissionsInput
33
+ * groups: "STRING_VALUE",
34
+ * permissions: "STRING_VALUE",
35
+ * };
33
36
  * const command = new GetPbxAclGroupsPermissionsCommand(input);
34
37
  * const response = await client.send(command);
35
38
  * // { // GetPbxAclGroupsPermissionsOutput
36
39
  * // type: "result" || "error", // required
37
40
  * // result: [ // GetPbxAclGroupsPermissionsResult // required
38
- * // { // AclGroupPermisson
41
+ * // { // AclGroupPermission
39
42
  * // ability: "can" || "cannot" || "yes" || "no", // required
40
43
  * // key: "STRING_VALUE", // required
41
44
  * // name: "STRING_VALUE", // required
42
45
  * // containSubGroups: true || false, // required
43
- * // groups: [ // AclGroupPermissonItemsList // required
44
- * // { // AclGroupPermissonItem
46
+ * // groups: [ // AclGroupPermissionItemsList // required
47
+ * // { // AclGroupPermissionItem
45
48
  * // groupDn: "STRING_VALUE", // required
46
49
  * // groupName: "STRING_VALUE", // required
47
50
  * // access: true || false, // required
48
- * // subGroups: [ // AclGroupPermissonFlatItemList // required
49
- * // { // AclGroupPermissonFlatItem
51
+ * // subGroups: [ // AclGroupPermissionFlatItemList // required
52
+ * // { // AclGroupPermissionFlatItem
50
53
  * // groupDn: "STRING_VALUE", // required
51
54
  * // groupName: "STRING_VALUE", // required
52
55
  * // access: true || false, // required
@@ -22,7 +22,7 @@ export interface GetPbxOAuth2ClientsCommandOutput extends GetPbxOAuth2ClientsOut
22
22
  }
23
23
  /**
24
24
  * @public
25
- * Get the list of all OAuth2 clients on the PBX. Only for root admin.
25
+ * Get the list of all OAuth2 clients on the PBX.
26
26
  * @example
27
27
  * Use a bare-bones client and the command you need to make an API call.
28
28
  * ```javascript
@@ -22,7 +22,7 @@ export interface UpdatePbxOAuth2ClientCommandOutput extends UpdatePbxOAuth2Clien
22
22
  }
23
23
  /**
24
24
  * @public
25
- * Update OAuth2 client in the PBX. Only for root admin.
25
+ * Update OAuth2 client in the PBX.
26
26
  * @example
27
27
  * Use a bare-bones client and the command you need to make an API call.
28
28
  * ```javascript
@@ -17,7 +17,7 @@ export type AclGroupPermissionAbility = typeof AclGroupPermissionAbility[keyof t
17
17
  /**
18
18
  * @public
19
19
  */
20
- export interface AclGroupPermissonFlatItem {
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 AclGroupPermissonItem {
28
+ export interface AclGroupPermissionItem {
29
29
  groupDn: string;
30
30
  groupName: string;
31
31
  access: boolean;
32
- subGroups: (AclGroupPermissonFlatItem)[];
32
+ subGroups: (AclGroupPermissionFlatItem)[];
33
33
  }
34
34
  /**
35
35
  * @public
36
36
  */
37
- export interface AclGroupPermisson {
37
+ export interface AclGroupPermission {
38
38
  ability: AclGroupPermissionAbility | string;
39
39
  key: string;
40
40
  name: string;
41
41
  containSubGroups: boolean;
42
- groups: (AclGroupPermissonItem)[];
42
+ groups: (AclGroupPermissionItem)[];
43
43
  }
44
44
  /**
45
45
  * @public
@@ -166,12 +166,27 @@ export declare class WmsNotFoundException extends __BaseException {
166
166
  */
167
167
  constructor(opts: __ExceptionOptionType<WmsNotFoundException, __BaseException>);
168
168
  }
169
+ /**
170
+ * @public
171
+ */
172
+ export interface GetPbxAclGroupsPermissionsInput {
173
+ /**
174
+ * @public
175
+ * User group(s) ID for filter result. Example: 12345 or 12345,67890,134711
176
+ */
177
+ groups?: string;
178
+ /**
179
+ * @public
180
+ * ACL permission(s) key for filter result. Example: SEE_CALL_RECORDINGS or CTI_ANALYTICS,SUPERVISION,SEE_ANALYTICS
181
+ */
182
+ permissions?: string;
183
+ }
169
184
  /**
170
185
  * @public
171
186
  */
172
187
  export interface GetPbxAclGroupsPermissionsOutput {
173
188
  type: ResponseType | string;
174
- result: (AclGroupPermisson)[];
189
+ result: (AclGroupPermission)[];
175
190
  }
176
191
  /**
177
192
  * @public
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  maxAttempts: number | import("@smithy/types").Provider<number>;
11
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
11
+ requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/fetch-http-handler").FetchHttpHandlerOptions) & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
12
12
  updateHttpClientConfig(key: never, value: never): void;
13
13
  httpHandlerConfigs(): {};
14
14
  }) | RequestHandler;
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
21
21
  apiVersion: string;
22
22
  urlParser: import("@smithy/types").UrlParser;
23
23
  base64Decoder: import("@smithy/types").Decoder;
24
- base64Encoder: import("@smithy/types").Encoder;
24
+ base64Encoder: (_input: string | Uint8Array) => string;
25
25
  utf8Decoder: import("@smithy/types").Decoder;
26
- utf8Encoder: import("@smithy/types").Encoder;
26
+ utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  maxAttempts: number | import("@smithy/types").Provider<number>;
11
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
11
+ requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/node-http-handler").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions) & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
12
12
  updateHttpClientConfig(key: never, value: never): void;
13
13
  httpHandlerConfigs(): {};
14
14
  }) | RequestHandler;
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
21
21
  apiVersion: string;
22
22
  urlParser: import("@smithy/types").UrlParser;
23
23
  base64Decoder: import("@smithy/types").Decoder;
24
- base64Encoder: import("@smithy/types").Encoder;
24
+ base64Encoder: (_input: string | Uint8Array) => string;
25
25
  utf8Decoder: import("@smithy/types").Decoder;
26
- utf8Encoder: import("@smithy/types").Encoder;
26
+ utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
8
8
  domain: string;
9
9
  port?: number | undefined;
10
10
  token: import("@wildix/smithy-utils").TokenProvider;
11
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
11
+ requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions) & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
12
12
  updateHttpClientConfig(key: never, value: never): void;
13
13
  httpHandlerConfigs(): {};
14
14
  }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
@@ -17,9 +17,9 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
18
  streamCollector: import("@smithy/types").StreamCollector;
19
19
  base64Decoder: import("@smithy/types").Decoder;
20
- base64Encoder: import("@smithy/types").Encoder;
20
+ base64Encoder: (_input: string | Uint8Array) => string;
21
21
  utf8Decoder: import("@smithy/types").Decoder;
22
- utf8Encoder: import("@smithy/types").Encoder;
22
+ utf8Encoder: (input: string | Uint8Array) => string;
23
23
  disableHostPrefix: boolean;
24
24
  maxAttempts: number | import("@smithy/types").Provider<number>;
25
25
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -5,11 +5,11 @@ import { WmsApiClientConfig } from "./WmsApiClient";
5
5
  export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
6
6
  apiVersion: string;
7
7
  base64Decoder: import("@smithy/types").Decoder;
8
- base64Encoder: import("@smithy/types").Encoder;
8
+ base64Encoder: (_input: string | Uint8Array) => string;
9
9
  disableHostPrefix: boolean;
10
10
  extensions: import("./runtimeExtensions").RuntimeExtension[];
11
11
  logger: import("@smithy/types").Logger;
12
12
  urlParser: import("@smithy/types").UrlParser;
13
13
  utf8Decoder: import("@smithy/types").Decoder;
14
- utf8Encoder: import("@smithy/types").Encoder;
14
+ utf8Encoder: (input: string | Uint8Array) => string;
15
15
  };
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.0.4",
4
+ "version": "1.1.0",
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",