@wildix/wms-api-client 1.0.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.
Files changed (49) hide show
  1. package/dist-cjs/WmsApi.js +15 -0
  2. package/dist-cjs/WmsApiClient.js +34 -0
  3. package/dist-cjs/commands/GetPbxAclGroupsPermissionsCommand.js +41 -0
  4. package/dist-cjs/commands/GetPbxColleaguesCommand.js +41 -0
  5. package/dist-cjs/commands/index.js +5 -0
  6. package/dist-cjs/extensionConfiguration.js +2 -0
  7. package/dist-cjs/index.js +10 -0
  8. package/dist-cjs/models/WmsApiServiceException.js +12 -0
  9. package/dist-cjs/models/index.js +4 -0
  10. package/dist-cjs/models/models_0.js +54 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +178 -0
  12. package/dist-cjs/runtimeConfig.browser.js +28 -0
  13. package/dist-cjs/runtimeConfig.js +32 -0
  14. package/dist-cjs/runtimeConfig.native.js +15 -0
  15. package/dist-cjs/runtimeConfig.shared.js +19 -0
  16. package/dist-cjs/runtimeExtensions.js +19 -0
  17. package/dist-es/WmsApi.js +11 -0
  18. package/dist-es/WmsApiClient.js +30 -0
  19. package/dist-es/commands/GetPbxAclGroupsPermissionsCommand.js +37 -0
  20. package/dist-es/commands/GetPbxColleaguesCommand.js +37 -0
  21. package/dist-es/commands/index.js +2 -0
  22. package/dist-es/extensionConfiguration.js +1 -0
  23. package/dist-es/index.js +5 -0
  24. package/dist-es/models/WmsApiServiceException.js +8 -0
  25. package/dist-es/models/index.js +1 -0
  26. package/dist-es/models/models_0.js +51 -0
  27. package/dist-es/protocols/Aws_restJson1.js +171 -0
  28. package/dist-es/runtimeConfig.browser.js +24 -0
  29. package/dist-es/runtimeConfig.js +28 -0
  30. package/dist-es/runtimeConfig.native.js +11 -0
  31. package/dist-es/runtimeConfig.shared.js +15 -0
  32. package/dist-es/runtimeExtensions.js +15 -0
  33. package/dist-types/WmsApi.d.ts +23 -0
  34. package/dist-types/WmsApiClient.d.ts +139 -0
  35. package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +91 -0
  36. package/dist-types/commands/GetPbxColleaguesCommand.d.ts +138 -0
  37. package/dist-types/commands/index.d.ts +2 -0
  38. package/dist-types/extensionConfiguration.d.ts +7 -0
  39. package/dist-types/index.d.ts +5 -0
  40. package/dist-types/models/WmsApiServiceException.d.ts +13 -0
  41. package/dist-types/models/index.d.ts +1 -0
  42. package/dist-types/models/models_0.d.ts +208 -0
  43. package/dist-types/protocols/Aws_restJson1.d.ts +20 -0
  44. package/dist-types/runtimeConfig.browser.d.ts +30 -0
  45. package/dist-types/runtimeConfig.d.ts +30 -0
  46. package/dist-types/runtimeConfig.native.d.ts +29 -0
  47. package/dist-types/runtimeConfig.shared.d.ts +15 -0
  48. package/dist-types/runtimeExtensions.d.ts +17 -0
  49. package/package.json +77 -0
@@ -0,0 +1,5 @@
1
+ export * from "./WmsApiClient";
2
+ export * from "./WmsApi";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export { WmsApiServiceException } from "./models/WmsApiServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class WmsApiServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, WmsApiServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,51 @@
1
+ export const AclGroupPermissionAbility = {
2
+ CAN: "can",
3
+ CANNOT: "cannot",
4
+ NO: "no",
5
+ YES: "yes",
6
+ };
7
+ export const PbxLicenseType = {
8
+ BASIC: "basic",
9
+ BUSINESS: "business",
10
+ ESSENTIAL: "essential",
11
+ PREMIUM: "premium",
12
+ WIZYCONF: "wizyconf",
13
+ };
14
+ export const ResponseType = {
15
+ ERROR: "error",
16
+ RESULT: "result",
17
+ };
18
+ export const GetPbxColleaguesDir = {
19
+ ASC: "asc",
20
+ DESC: "desc",
21
+ };
22
+ export const PbxColleaguesQueryField = {
23
+ DEPARTMENT: "department",
24
+ DIALPLAN: "dialplan",
25
+ EMAIL: "email",
26
+ EXTENSION: "extension",
27
+ FAX_DIALPLAN: "faxDialplan",
28
+ GROUP_DN: "groupDn",
29
+ ID: "id",
30
+ LANGUAGE: "language",
31
+ LICENSE_TYPE: "licenseType",
32
+ LOGIN: "login",
33
+ MOBILE_PHONE: "mobilePhone",
34
+ NAME: "name",
35
+ OFFICE_PHONE: "officePhone",
36
+ PBX_DN: "pbxDn",
37
+ PICTURE: "picture",
38
+ ROLE: "role",
39
+ SOURCE_ID: "sourceId",
40
+ };
41
+ export const PbxColleaguesSearchStrategy = {
42
+ CONTAIN: "contain",
43
+ STARTS_WITH: "startsWith",
44
+ };
45
+ export const PbxColleagueRole = {
46
+ ADMIN: "admin",
47
+ FAX: "fax",
48
+ PARK_ORBIT: "park_orbit",
49
+ ROOM: "room",
50
+ USER: "user",
51
+ };
@@ -0,0 +1,171 @@
1
+ import { WmsApiServiceException as __BaseException } from "../models/WmsApiServiceException";
2
+ import { HttpRequest as __HttpRequest, } from "@smithy/protocol-http";
3
+ import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
4
+ export const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
5
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const headers = {
7
+ 'content-type': 'application/json',
8
+ };
9
+ let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/api/v1/pbx/aclgroups/permissions";
10
+ let body;
11
+ body = "";
12
+ return new __HttpRequest({
13
+ protocol,
14
+ hostname,
15
+ port,
16
+ method: "GET",
17
+ headers,
18
+ path: resolvedPath,
19
+ body,
20
+ });
21
+ };
22
+ export const se_GetPbxColleaguesCommand = async (input, context) => {
23
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24
+ const headers = {};
25
+ let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/api/v1/PBX/Colleagues";
26
+ const query = map({
27
+ "filter[extension][]": [() => input.extension !== void 0, () => ((input.extension || []).map(_entry => _entry))],
28
+ "filter[id][]": [() => input.id !== void 0, () => ((input.id || []).map(_entry => _entry))],
29
+ "filter[officePhone][]": [() => input.officePhone !== void 0, () => ((input.officePhone || []).map(_entry => _entry))],
30
+ "filter[mobilePhone][]": [() => input.mobilePhone !== void 0, () => ((input.mobilePhone || []).map(_entry => _entry))],
31
+ "filter[name][]": [() => input.name !== void 0, () => ((input.name || []).map(_entry => _entry))],
32
+ "filter[email][]": [() => input.email !== void 0, () => ((input.email || []).map(_entry => _entry))],
33
+ "filter[role][]": [() => input.role !== void 0, () => ((input.role || []).map(_entry => _entry))],
34
+ "filter[dialplan][]": [() => input.dialplan !== void 0, () => ((input.dialplan || []).map(_entry => _entry))],
35
+ "filter[faxDialplan][]": [() => input.faxDialplan !== void 0, () => ((input.faxDialplan || []).map(_entry => _entry))],
36
+ "filter[department][]": [() => input.department !== void 0, () => ((input.department || []).map(_entry => _entry))],
37
+ "filter[login][]": [() => input.login !== void 0, () => ((input.login || []).map(_entry => _entry))],
38
+ "filter[groupDn][]": [() => input.groupDn !== void 0, () => ((input.groupDn || []).map(_entry => _entry))],
39
+ "filter[pbxDn][]": [() => input.pbxDn !== void 0, () => ((input.pbxDn || []).map(_entry => _entry))],
40
+ "filter[licenseType][]": [() => input.licenseType !== void 0, () => ((input.licenseType || []).map(_entry => _entry))],
41
+ "fields": [() => input.fields !== void 0, () => ((input.fields || []).map(_entry => _entry))],
42
+ "searchFields": [() => input.searchFields !== void 0, () => ((input.searchFields || []).map(_entry => _entry))],
43
+ "search": [, input.search],
44
+ "sort": [() => input.sort !== void 0, () => ((input.sort || []).map(_entry => _entry))],
45
+ "start": [() => input.start !== void 0, () => (input.start.toString())],
46
+ "count": [() => input.count !== void 0, () => (input.count.toString())],
47
+ "dir": [, input.dir],
48
+ "searchStrategy": [, input.searchStrategy],
49
+ });
50
+ let body;
51
+ return new __HttpRequest({
52
+ protocol,
53
+ hostname,
54
+ port,
55
+ method: "GET",
56
+ headers,
57
+ path: resolvedPath,
58
+ query,
59
+ body,
60
+ });
61
+ };
62
+ export const de_GetPbxAclGroupsPermissionsCommand = async (output, context) => {
63
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
64
+ return de_GetPbxAclGroupsPermissionsCommandError(output, context);
65
+ }
66
+ const contents = map({
67
+ $metadata: deserializeMetadata(output),
68
+ });
69
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
70
+ const doc = take(data, {
71
+ 'result': _json,
72
+ 'type': __expectString,
73
+ });
74
+ Object.assign(contents, doc);
75
+ return contents;
76
+ };
77
+ const de_GetPbxAclGroupsPermissionsCommandError = async (output, context) => {
78
+ const parsedOutput = {
79
+ ...output,
80
+ body: await parseErrorBody(output.body, context)
81
+ };
82
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
83
+ const parsedBody = parsedOutput.body;
84
+ return throwDefaultError({
85
+ output,
86
+ parsedBody,
87
+ errorCode
88
+ });
89
+ };
90
+ export const de_GetPbxColleaguesCommand = async (output, context) => {
91
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
92
+ return de_GetPbxColleaguesCommandError(output, context);
93
+ }
94
+ const contents = map({
95
+ $metadata: deserializeMetadata(output),
96
+ });
97
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
98
+ const doc = take(data, {
99
+ 'result': _json,
100
+ 'type': __expectString,
101
+ });
102
+ Object.assign(contents, doc);
103
+ return contents;
104
+ };
105
+ const de_GetPbxColleaguesCommandError = async (output, context) => {
106
+ const parsedOutput = {
107
+ ...output,
108
+ body: await parseErrorBody(output.body, context)
109
+ };
110
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
111
+ const parsedBody = parsedOutput.body;
112
+ return throwDefaultError({
113
+ output,
114
+ parsedBody,
115
+ errorCode
116
+ });
117
+ };
118
+ const throwDefaultError = withBaseException(__BaseException);
119
+ const deserializeMetadata = (output) => ({
120
+ httpStatusCode: output.statusCode,
121
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
122
+ extendedRequestId: output.headers["x-amz-id-2"],
123
+ cfId: output.headers["x-amz-cf-id"],
124
+ });
125
+ const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
126
+ const isSerializableHeaderValue = (value) => value !== undefined &&
127
+ value !== null &&
128
+ value !== "" &&
129
+ (!Object.getOwnPropertyNames(value).includes("length") ||
130
+ value.length != 0) &&
131
+ (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
132
+ const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
133
+ if (encoded.length) {
134
+ return JSON.parse(encoded);
135
+ }
136
+ return {};
137
+ });
138
+ const parseErrorBody = async (errorBody, context) => {
139
+ const value = await parseBody(errorBody, context);
140
+ value.message = value.message ?? value.Message;
141
+ return value;
142
+ };
143
+ const loadRestJsonErrorCode = (output, data) => {
144
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
145
+ const sanitizeErrorCode = (rawValue) => {
146
+ let cleanValue = rawValue;
147
+ if (typeof cleanValue === "number") {
148
+ cleanValue = cleanValue.toString();
149
+ }
150
+ if (cleanValue.indexOf(",") >= 0) {
151
+ cleanValue = cleanValue.split(",")[0];
152
+ }
153
+ if (cleanValue.indexOf(":") >= 0) {
154
+ cleanValue = cleanValue.split(":")[0];
155
+ }
156
+ if (cleanValue.indexOf("#") >= 0) {
157
+ cleanValue = cleanValue.split("#")[1];
158
+ }
159
+ return cleanValue;
160
+ };
161
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
162
+ if (headerKey !== undefined) {
163
+ return sanitizeErrorCode(output.headers[headerKey]);
164
+ }
165
+ if (data.code !== undefined) {
166
+ return sanitizeErrorCode(data.code);
167
+ }
168
+ if (data["__type"] !== undefined) {
169
+ return sanitizeErrorCode(data["__type"]);
170
+ }
171
+ };
@@ -0,0 +1,24 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-browser";
2
+ import { FetchHttpHandler as RequestHandler, streamCollector, } from "@smithy/fetch-http-handler";
3
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
4
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, } from "@smithy/util-retry";
5
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
6
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
7
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
8
+ export const getRuntimeConfig = (config) => {
9
+ const defaultsMode = resolveDefaultsModeConfig(config);
10
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
11
+ const clientSharedValues = getSharedRuntimeConfig(config);
12
+ return {
13
+ ...clientSharedValues,
14
+ ...config,
15
+ runtime: "browser",
16
+ defaultsMode,
17
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
18
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
19
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
20
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
21
+ sha256: config?.sha256 ?? Sha256,
22
+ streamCollector: config?.streamCollector ?? streamCollector,
23
+ };
24
+ };
@@ -0,0 +1,28 @@
1
+ import { Hash } from "@smithy/hash-node";
2
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/middleware-retry";
3
+ import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
4
+ import { NodeHttpHandler as RequestHandler, streamCollector, } from "@smithy/node-http-handler";
5
+ import { calculateBodyLength } from "@smithy/util-body-length-node";
6
+ import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
7
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
8
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
9
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
10
+ import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
11
+ export const getRuntimeConfig = (config) => {
12
+ emitWarningIfUnsupportedVersion(process.version);
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "node",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
23
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
24
+ retryMode: config?.retryMode ?? loadNodeConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }),
25
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
26
+ streamCollector: config?.streamCollector ?? streamCollector,
27
+ };
28
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,15 @@
1
+ import { NoOpLogger } from "@smithy/smithy-client";
2
+ import { parseUrl } from "@smithy/url-parser";
3
+ import { fromBase64, toBase64, } from "@smithy/util-base64";
4
+ import { fromUtf8, toUtf8, } from "@smithy/util-utf8";
5
+ export const getRuntimeConfig = (config) => ({
6
+ apiVersion: "",
7
+ base64Decoder: config?.base64Decoder ?? fromBase64,
8
+ base64Encoder: config?.base64Encoder ?? toBase64,
9
+ disableHostPrefix: config?.disableHostPrefix ?? false,
10
+ extensions: config?.extensions ?? [],
11
+ logger: config?.logger ?? new NoOpLogger(),
12
+ urlParser: config?.urlParser ?? parseUrl,
13
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
14
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
15
+ });
@@ -0,0 +1,15 @@
1
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, } from "@smithy/protocol-http";
2
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, } from "@smithy/smithy-client";
3
+ const asPartial = (t) => t;
4
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
5
+ const extensionConfiguration = {
6
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
7
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
8
+ };
9
+ extensions.forEach(extension => extension.configure(extensionConfiguration));
10
+ return {
11
+ ...runtimeConfig,
12
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
13
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
14
+ };
15
+ };
@@ -0,0 +1,23 @@
1
+ import { WmsApiClient } from "./WmsApiClient";
2
+ import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
3
+ import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
4
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
5
+ export interface WmsApi {
6
+ /**
7
+ * @see {@link GetPbxAclGroupsPermissionsCommand}
8
+ */
9
+ getPbxAclGroupsPermissions(args: GetPbxAclGroupsPermissionsCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxAclGroupsPermissionsCommandOutput>;
10
+ getPbxAclGroupsPermissions(args: GetPbxAclGroupsPermissionsCommandInput, cb: (err: any, data?: GetPbxAclGroupsPermissionsCommandOutput) => void): void;
11
+ getPbxAclGroupsPermissions(args: GetPbxAclGroupsPermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPbxAclGroupsPermissionsCommandOutput) => void): void;
12
+ /**
13
+ * @see {@link GetPbxColleaguesCommand}
14
+ */
15
+ getPbxColleagues(args: GetPbxColleaguesCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxColleaguesCommandOutput>;
16
+ getPbxColleagues(args: GetPbxColleaguesCommandInput, cb: (err: any, data?: GetPbxColleaguesCommandOutput) => void): void;
17
+ getPbxColleagues(args: GetPbxColleaguesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPbxColleaguesCommandOutput) => void): void;
18
+ }
19
+ /**
20
+ * @public
21
+ */
22
+ export declare class WmsApi extends WmsApiClient implements WmsApi {
23
+ }
@@ -0,0 +1,139 @@
1
+ import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
2
+ import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
3
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
4
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
5
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
6
+ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser } from "@smithy/types";
7
+ import { TokenProvider } from '@wildix/smithy-utils';
8
+ export { __Client };
9
+ /**
10
+ * @public
11
+ */
12
+ export type ServiceInputTypes = GetPbxAclGroupsPermissionsCommandInput | GetPbxColleaguesCommandInput;
13
+ /**
14
+ * @public
15
+ */
16
+ export type ServiceOutputTypes = GetPbxAclGroupsPermissionsCommandOutput | GetPbxColleaguesCommandOutput;
17
+ /**
18
+ * @public
19
+ */
20
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
21
+ /**
22
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
23
+ */
24
+ requestHandler?: __HttpHandler;
25
+ /**
26
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
27
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
28
+ * @internal
29
+ */
30
+ sha256?: __ChecksumConstructor | __HashConstructor;
31
+ /**
32
+ * The function that will be used to convert strings into HTTP endpoints.
33
+ * @internal
34
+ */
35
+ urlParser?: __UrlParser;
36
+ /**
37
+ * A function that can calculate the length of a request body.
38
+ * @internal
39
+ */
40
+ bodyLengthChecker?: __BodyLengthCalculator;
41
+ /**
42
+ * A function that converts a stream into an array of bytes.
43
+ * @internal
44
+ */
45
+ streamCollector?: __StreamCollector;
46
+ /**
47
+ * The function that will be used to convert a base64-encoded string to a byte array.
48
+ * @internal
49
+ */
50
+ base64Decoder?: __Decoder;
51
+ /**
52
+ * The function that will be used to convert binary data to a base64-encoded string.
53
+ * @internal
54
+ */
55
+ base64Encoder?: __Encoder;
56
+ /**
57
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
58
+ * @internal
59
+ */
60
+ utf8Decoder?: __Decoder;
61
+ /**
62
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
63
+ * @internal
64
+ */
65
+ utf8Encoder?: __Encoder;
66
+ /**
67
+ * The runtime environment.
68
+ * @internal
69
+ */
70
+ runtime?: string;
71
+ /**
72
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
73
+ * trait of an operation.
74
+ */
75
+ disableHostPrefix?: boolean;
76
+ /**
77
+ * Value for how many times a request will be made at most in case of retry.
78
+ */
79
+ maxAttempts?: number | __Provider<number>;
80
+ /**
81
+ * Specifies which retry algorithm to use.
82
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
83
+ *
84
+ */
85
+ retryMode?: string | __Provider<string>;
86
+ /**
87
+ * Optional logger for logging debug/info/warn/error.
88
+ */
89
+ logger?: __Logger;
90
+ /**
91
+ * Optional extensions
92
+ */
93
+ extensions?: RuntimeExtension[];
94
+ /**
95
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
96
+ */
97
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
98
+ }
99
+ /**
100
+ * @public
101
+ */
102
+ export type WmsApiClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults;
103
+ /**
104
+ * @public
105
+ *
106
+ * The configuration interface of WmsApiClient class constructor that set the region, credentials and other options.
107
+ */
108
+ export interface WmsApiClientConfig extends WmsApiClientConfigType {
109
+ domain: string;
110
+ port?: number;
111
+ token: TokenProvider;
112
+ }
113
+ /**
114
+ * @public
115
+ */
116
+ export type WmsApiClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig;
117
+ /**
118
+ * @public
119
+ *
120
+ * The resolved configuration interface of WmsApiClient class. This is resolved and normalized from the {@link WmsApiClientConfig | constructor configuration interface}.
121
+ */
122
+ export interface WmsApiClientResolvedConfig extends WmsApiClientResolvedConfigType {
123
+ }
124
+ /**
125
+ * @public
126
+ */
127
+ export declare class WmsApiClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig> {
128
+ /**
129
+ * The resolved configuration of WmsApiClient class. This is resolved and normalized from the {@link WmsApiClientConfig | constructor configuration interface}.
130
+ */
131
+ readonly config: WmsApiClientResolvedConfig;
132
+ constructor(...[configuration]: __CheckOptionalClientConfig<WmsApiClientConfig>);
133
+ /**
134
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
135
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
136
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
137
+ */
138
+ destroy(): void;
139
+ }
@@ -0,0 +1,91 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { GetPbxAclGroupsPermissionsOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetPbxAclGroupsPermissionsCommand}.
13
+ */
14
+ export interface GetPbxAclGroupsPermissionsCommandInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetPbxAclGroupsPermissionsCommand}.
20
+ */
21
+ export interface GetPbxAclGroupsPermissionsCommandOutput extends GetPbxAclGroupsPermissionsOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ *
26
+ * @example
27
+ * Use a bare-bones client and the command you need to make an API call.
28
+ * ```javascript
29
+ * import { WmsApiClient, GetPbxAclGroupsPermissionsCommand } from "@wildix/wms-api-client"; // ES Modules import
30
+ * // const { WmsApiClient, GetPbxAclGroupsPermissionsCommand } = require("@wildix/wms-api-client"); // CommonJS import
31
+ * const client = new WmsApiClient(config);
32
+ * const input = {};
33
+ * const command = new GetPbxAclGroupsPermissionsCommand(input);
34
+ * const response = await client.send(command);
35
+ * // { // GetPbxAclGroupsPermissionsOutput
36
+ * // type: "result" || "error", // required
37
+ * // result: [ // GetPbxAclGroupsPermissionsResult // required
38
+ * // { // AclGroupPermisson
39
+ * // ability: "can" || "cannot" || "yes" || "no", // required
40
+ * // key: "STRING_VALUE", // required
41
+ * // name: "STRING_VALUE", // required
42
+ * // containSubGroups: true || false, // required
43
+ * // groups: [ // AclGroupPermissonItemsList // required
44
+ * // { // AclGroupPermissonItem
45
+ * // groupDn: "STRING_VALUE", // required
46
+ * // groupName: "STRING_VALUE", // required
47
+ * // access: true || false, // required
48
+ * // subGroups: [ // AclGroupPermissonFlatItemList // required
49
+ * // { // AclGroupPermissonFlatItem
50
+ * // groupDn: "STRING_VALUE", // required
51
+ * // groupName: "STRING_VALUE", // required
52
+ * // access: true || false, // required
53
+ * // },
54
+ * // ],
55
+ * // },
56
+ * // ],
57
+ * // },
58
+ * // ],
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param GetPbxAclGroupsPermissionsCommandInput - {@link GetPbxAclGroupsPermissionsCommandInput}
64
+ * @returns {@link GetPbxAclGroupsPermissionsCommandOutput}
65
+ * @see {@link GetPbxAclGroupsPermissionsCommandInput} for command's `input` shape.
66
+ * @see {@link GetPbxAclGroupsPermissionsCommandOutput} for command's `response` shape.
67
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
68
+ *
69
+ * @throws {@link WmsApiServiceException}
70
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
71
+ *
72
+ */
73
+ export declare class GetPbxAclGroupsPermissionsCommand extends $Command<GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput, WmsApiClientResolvedConfig> {
74
+ readonly input: GetPbxAclGroupsPermissionsCommandInput;
75
+ /**
76
+ * @public
77
+ */
78
+ constructor(input: GetPbxAclGroupsPermissionsCommandInput);
79
+ /**
80
+ * @internal
81
+ */
82
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WmsApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput>;
83
+ /**
84
+ * @internal
85
+ */
86
+ private serialize;
87
+ /**
88
+ * @internal
89
+ */
90
+ private deserialize;
91
+ }