@wildix/wms-api-client 1.1.18 → 1.1.19
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/dist-cjs/WmsApiClient.js +4 -5
- package/dist-cjs/models/models_0.js +13 -6
- package/dist-cjs/protocols/Aws_restJson1.js +75 -129
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +4 -3
- package/dist-cjs/runtimeExtensions.js +2 -10
- package/dist-es/WmsApiClient.js +4 -5
- package/dist-es/models/models_0.js +13 -6
- package/dist-es/protocols/Aws_restJson1.js +38 -92
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +5 -4
- package/dist-es/runtimeExtensions.js +2 -10
- package/dist-types/commands/CreatePbxAclGroupCommand.d.ts +12 -0
- package/dist-types/commands/CreatePbxColleagueCommand.d.ts +12 -0
- package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +12 -0
- package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +12 -0
- package/dist-types/commands/DeletePbxColleagueCommand.d.ts +12 -0
- package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +12 -0
- package/dist-types/commands/GetColleagueByIdCommand.d.ts +12 -0
- package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +12 -0
- package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +12 -0
- package/dist-types/commands/GetPbxColleaguesCommand.d.ts +33 -0
- package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +12 -0
- package/dist-types/commands/GetPbxesCommand.d.ts +12 -0
- package/dist-types/commands/GetPersonalInfoCommand.d.ts +12 -0
- package/dist-types/commands/NotificationsCommand.d.ts +12 -0
- package/dist-types/commands/OriginateCallCommand.d.ts +12 -0
- package/dist-types/commands/OriginateCommand.d.ts +12 -0
- package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +117 -117
- package/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/dist-types/runtimeConfig.d.ts +2 -1
- package/dist-types/runtimeConfig.native.d.ts +2 -1
- package/package.json +37 -33
|
@@ -19,14 +19,16 @@ export const ResponseType = {
|
|
|
19
19
|
RESULT: "result",
|
|
20
20
|
};
|
|
21
21
|
export class WmsUnauthorizedException extends __BaseException {
|
|
22
|
+
name = "WmsUnauthorizedException";
|
|
23
|
+
$fault = "client";
|
|
24
|
+
type;
|
|
25
|
+
reason;
|
|
22
26
|
constructor(opts) {
|
|
23
27
|
super({
|
|
24
28
|
name: "WmsUnauthorizedException",
|
|
25
29
|
$fault: "client",
|
|
26
30
|
...opts
|
|
27
31
|
});
|
|
28
|
-
this.name = "WmsUnauthorizedException";
|
|
29
|
-
this.$fault = "client";
|
|
30
32
|
Object.setPrototypeOf(this, WmsUnauthorizedException.prototype);
|
|
31
33
|
this.type = opts.type;
|
|
32
34
|
this.reason = opts.reason;
|
|
@@ -40,14 +42,17 @@ export const PbxColleagueRole = {
|
|
|
40
42
|
USER: "user",
|
|
41
43
|
};
|
|
42
44
|
export class WmsValidationException extends __BaseException {
|
|
45
|
+
name = "WmsValidationException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
type;
|
|
48
|
+
reason;
|
|
49
|
+
errors;
|
|
43
50
|
constructor(opts) {
|
|
44
51
|
super({
|
|
45
52
|
name: "WmsValidationException",
|
|
46
53
|
$fault: "client",
|
|
47
54
|
...opts
|
|
48
55
|
});
|
|
49
|
-
this.name = "WmsValidationException";
|
|
50
|
-
this.$fault = "client";
|
|
51
56
|
Object.setPrototypeOf(this, WmsValidationException.prototype);
|
|
52
57
|
this.type = opts.type;
|
|
53
58
|
this.reason = opts.reason;
|
|
@@ -55,14 +60,16 @@ export class WmsValidationException extends __BaseException {
|
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
export class WmsNotFoundException extends __BaseException {
|
|
63
|
+
name = "WmsNotFoundException";
|
|
64
|
+
$fault = "client";
|
|
65
|
+
type;
|
|
66
|
+
reason;
|
|
58
67
|
constructor(opts) {
|
|
59
68
|
super({
|
|
60
69
|
name: "WmsNotFoundException",
|
|
61
70
|
$fault: "client",
|
|
62
71
|
...opts
|
|
63
72
|
});
|
|
64
|
-
this.name = "WmsNotFoundException";
|
|
65
|
-
this.$fault = "client";
|
|
66
73
|
Object.setPrototypeOf(this, WmsNotFoundException.prototype);
|
|
67
74
|
this.type = opts.type;
|
|
68
75
|
this.reason = opts.reason;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WmsApiServiceException as __BaseException } from "../models/WmsApiServiceException";
|
|
2
2
|
import { WmsNotFoundException, WmsUnauthorizedException, WmsValidationException, } from "../models/models_0";
|
|
3
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
3
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
5
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
6
|
export const se_CreatePbxAclGroupCommand = async (input, context) => {
|
|
@@ -115,8 +116,8 @@ export const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
|
|
|
115
116
|
const headers = {};
|
|
116
117
|
b.bp("/api/v1/pbx/aclgroups/permissions");
|
|
117
118
|
const query = map({
|
|
118
|
-
[_gr]: [() => input.groups !== void 0, () => ((input[_g] || [])
|
|
119
|
-
[_pe]: [() => input.permissions !== void 0, () => ((input[_p] || [])
|
|
119
|
+
[_gr]: [() => input.groups !== void 0, () => ((input[_g] || []))],
|
|
120
|
+
[_pe]: [() => input.permissions !== void 0, () => ((input[_p] || []))],
|
|
120
121
|
});
|
|
121
122
|
let body;
|
|
122
123
|
b.m("GET")
|
|
@@ -127,12 +128,9 @@ export const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
|
|
|
127
128
|
};
|
|
128
129
|
export const se_GetPbxCallGroupsCommand = async (input, context) => {
|
|
129
130
|
const b = rb(input, context);
|
|
130
|
-
const headers = {
|
|
131
|
-
'content-type': 'application/json',
|
|
132
|
-
};
|
|
131
|
+
const headers = {};
|
|
133
132
|
b.bp("/api/v1/Dialplan/CallGroups");
|
|
134
133
|
let body;
|
|
135
|
-
body = "";
|
|
136
134
|
b.m("GET")
|
|
137
135
|
.h(headers)
|
|
138
136
|
.b(body);
|
|
@@ -143,24 +141,24 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
|
|
|
143
141
|
const headers = {};
|
|
144
142
|
b.bp("/api/v1/PBX/Colleagues");
|
|
145
143
|
const query = map({
|
|
146
|
-
[_f]: [() => input.extension !== void 0, () => ((input[_e] || [])
|
|
147
|
-
[_fi]: [() => input.id !== void 0, () => ((input[_i] || [])
|
|
148
|
-
[_fP]: [() => input.officePhone !== void 0, () => ((input[_oP] || [])
|
|
149
|
-
[_fPi]: [() => input.mobilePhone !== void 0, () => ((input[_mP] || [])
|
|
150
|
-
[_fil]: [() => input.name !== void 0, () => ((input[_n] || [])
|
|
151
|
-
[_filt]: [() => input.email !== void 0, () => ((input[_em] || [])
|
|
152
|
-
[_filte]: [() => input.role !== void 0, () => ((input[_r] || [])
|
|
153
|
-
[_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || [])
|
|
154
|
-
[_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || [])
|
|
155
|
-
[_filterd]: [() => input.department !== void 0, () => ((input[_de] || [])
|
|
156
|
-
[_filterl]: [() => input.login !== void 0, () => ((input[_l] || [])
|
|
157
|
-
[_fDil]: [() => input.groupDn !== void 0, () => ((input[_gD] || [])
|
|
158
|
-
[_fDilt]: [() => input.pbxDn !== void 0, () => ((input[_pD] || [])
|
|
159
|
-
[_fT]: [() => input.licenseType !== void 0, () => ((input[_lT] || [])
|
|
144
|
+
[_f]: [() => input.extension !== void 0, () => ((input[_e] || []))],
|
|
145
|
+
[_fi]: [() => input.id !== void 0, () => ((input[_i] || []))],
|
|
146
|
+
[_fP]: [() => input.officePhone !== void 0, () => ((input[_oP] || []))],
|
|
147
|
+
[_fPi]: [() => input.mobilePhone !== void 0, () => ((input[_mP] || []))],
|
|
148
|
+
[_fil]: [() => input.name !== void 0, () => ((input[_n] || []))],
|
|
149
|
+
[_filt]: [() => input.email !== void 0, () => ((input[_em] || []))],
|
|
150
|
+
[_filte]: [() => input.role !== void 0, () => ((input[_r] || []))],
|
|
151
|
+
[_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []))],
|
|
152
|
+
[_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []))],
|
|
153
|
+
[_filterd]: [() => input.department !== void 0, () => ((input[_de] || []))],
|
|
154
|
+
[_filterl]: [() => input.login !== void 0, () => ((input[_l] || []))],
|
|
155
|
+
[_fDil]: [() => input.groupDn !== void 0, () => ((input[_gD] || []))],
|
|
156
|
+
[_fDilt]: [() => input.pbxDn !== void 0, () => ((input[_pD] || []))],
|
|
157
|
+
[_fT]: [() => input.licenseType !== void 0, () => ((input[_lT] || []))],
|
|
160
158
|
[_fie]: [() => input.fields !== void 0, () => ((input[_fie] || []).join(','))],
|
|
161
159
|
[_sF]: [() => input.searchFields !== void 0, () => ((input[_sF] || []).join(','))],
|
|
162
160
|
[_s]: [, input[_s]],
|
|
163
|
-
[_so]: [() => input.sort !== void 0, () => ((input[_so] || [])
|
|
161
|
+
[_so]: [() => input.sort !== void 0, () => ((input[_so] || []))],
|
|
164
162
|
[_st]: [() => input.start !== void 0, () => (input[_st].toString())],
|
|
165
163
|
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
166
164
|
[_di]: [, input[_di]],
|
|
@@ -175,12 +173,9 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
|
|
|
175
173
|
};
|
|
176
174
|
export const se_GetPbxesCommand = async (input, context) => {
|
|
177
175
|
const b = rb(input, context);
|
|
178
|
-
const headers = {
|
|
179
|
-
'content-type': 'application/json',
|
|
180
|
-
};
|
|
176
|
+
const headers = {};
|
|
181
177
|
b.bp("/api/v1/network/pbxes");
|
|
182
178
|
let body;
|
|
183
|
-
body = "";
|
|
184
179
|
b.m("GET")
|
|
185
180
|
.h(headers)
|
|
186
181
|
.b(body);
|
|
@@ -188,12 +183,9 @@ export const se_GetPbxesCommand = async (input, context) => {
|
|
|
188
183
|
};
|
|
189
184
|
export const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
|
|
190
185
|
const b = rb(input, context);
|
|
191
|
-
const headers = {
|
|
192
|
-
'content-type': 'application/json',
|
|
193
|
-
};
|
|
186
|
+
const headers = {};
|
|
194
187
|
b.bp("/api/v1/pbx/applications/oauth2");
|
|
195
188
|
let body;
|
|
196
|
-
body = "";
|
|
197
189
|
b.m("GET")
|
|
198
190
|
.h(headers)
|
|
199
191
|
.b(body);
|
|
@@ -204,24 +196,24 @@ export const se_GetPersonalInfoCommand = async (input, context) => {
|
|
|
204
196
|
const headers = {};
|
|
205
197
|
b.bp("/api/v1/personal/info");
|
|
206
198
|
const query = map({
|
|
207
|
-
[_f]: [() => input.extension !== void 0, () => ((input[_e] || [])
|
|
208
|
-
[_fi]: [() => input.id !== void 0, () => ((input[_i] || [])
|
|
209
|
-
[_fP]: [() => input.officePhone !== void 0, () => ((input[_oP] || [])
|
|
210
|
-
[_fPi]: [() => input.mobilePhone !== void 0, () => ((input[_mP] || [])
|
|
211
|
-
[_fil]: [() => input.name !== void 0, () => ((input[_n] || [])
|
|
212
|
-
[_filt]: [() => input.email !== void 0, () => ((input[_em] || [])
|
|
213
|
-
[_filte]: [() => input.role !== void 0, () => ((input[_r] || [])
|
|
214
|
-
[_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || [])
|
|
215
|
-
[_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || [])
|
|
216
|
-
[_filterd]: [() => input.department !== void 0, () => ((input[_de] || [])
|
|
217
|
-
[_filterl]: [() => input.login !== void 0, () => ((input[_l] || [])
|
|
218
|
-
[_fDil]: [() => input.groupDn !== void 0, () => ((input[_gD] || [])
|
|
219
|
-
[_fDilt]: [() => input.pbxDn !== void 0, () => ((input[_pD] || [])
|
|
220
|
-
[_fT]: [() => input.licenseType !== void 0, () => ((input[_lT] || [])
|
|
221
|
-
[_fie]: [() => input.fields !== void 0, () => ((input[_fie] || [])
|
|
222
|
-
[_sF]: [() => input.searchFields !== void 0, () => ((input[_sF] || [])
|
|
199
|
+
[_f]: [() => input.extension !== void 0, () => ((input[_e] || []))],
|
|
200
|
+
[_fi]: [() => input.id !== void 0, () => ((input[_i] || []))],
|
|
201
|
+
[_fP]: [() => input.officePhone !== void 0, () => ((input[_oP] || []))],
|
|
202
|
+
[_fPi]: [() => input.mobilePhone !== void 0, () => ((input[_mP] || []))],
|
|
203
|
+
[_fil]: [() => input.name !== void 0, () => ((input[_n] || []))],
|
|
204
|
+
[_filt]: [() => input.email !== void 0, () => ((input[_em] || []))],
|
|
205
|
+
[_filte]: [() => input.role !== void 0, () => ((input[_r] || []))],
|
|
206
|
+
[_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []))],
|
|
207
|
+
[_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []))],
|
|
208
|
+
[_filterd]: [() => input.department !== void 0, () => ((input[_de] || []))],
|
|
209
|
+
[_filterl]: [() => input.login !== void 0, () => ((input[_l] || []))],
|
|
210
|
+
[_fDil]: [() => input.groupDn !== void 0, () => ((input[_gD] || []))],
|
|
211
|
+
[_fDilt]: [() => input.pbxDn !== void 0, () => ((input[_pD] || []))],
|
|
212
|
+
[_fT]: [() => input.licenseType !== void 0, () => ((input[_lT] || []))],
|
|
213
|
+
[_fie]: [() => input.fields !== void 0, () => ((input[_fie] || []))],
|
|
214
|
+
[_sF]: [() => input.searchFields !== void 0, () => ((input[_sF] || []))],
|
|
223
215
|
[_s]: [, input[_s]],
|
|
224
|
-
[_so]: [() => input.sort !== void 0, () => ((input[_so] || [])
|
|
216
|
+
[_so]: [() => input.sort !== void 0, () => ((input[_so] || []))],
|
|
225
217
|
[_st]: [() => input.start !== void 0, () => (input[_st].toString())],
|
|
226
218
|
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
227
219
|
[_di]: [, input[_di]],
|
|
@@ -650,12 +642,6 @@ const deserializeMetadata = (output) => ({
|
|
|
650
642
|
cfId: output.headers["x-amz-cf-id"],
|
|
651
643
|
});
|
|
652
644
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
653
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
654
|
-
value !== null &&
|
|
655
|
-
value !== "" &&
|
|
656
|
-
(!Object.getOwnPropertyNames(value).includes("length") ||
|
|
657
|
-
value.length != 0) &&
|
|
658
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
659
645
|
const _c = "count";
|
|
660
646
|
const _d = "dialplan";
|
|
661
647
|
const _de = "department";
|
|
@@ -696,43 +682,3 @@ const _sF = "searchFields";
|
|
|
696
682
|
const _sS = "searchStrategy";
|
|
697
683
|
const _so = "sort";
|
|
698
684
|
const _st = "start";
|
|
699
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
|
|
700
|
-
if (encoded.length) {
|
|
701
|
-
return JSON.parse(encoded);
|
|
702
|
-
}
|
|
703
|
-
return {};
|
|
704
|
-
});
|
|
705
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
706
|
-
const value = await parseBody(errorBody, context);
|
|
707
|
-
value.message = value.message ?? value.Message;
|
|
708
|
-
return value;
|
|
709
|
-
};
|
|
710
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
711
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
712
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
713
|
-
let cleanValue = rawValue;
|
|
714
|
-
if (typeof cleanValue === "number") {
|
|
715
|
-
cleanValue = cleanValue.toString();
|
|
716
|
-
}
|
|
717
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
718
|
-
cleanValue = cleanValue.split(",")[0];
|
|
719
|
-
}
|
|
720
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
721
|
-
cleanValue = cleanValue.split(":")[0];
|
|
722
|
-
}
|
|
723
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
724
|
-
cleanValue = cleanValue.split("#")[1];
|
|
725
|
-
}
|
|
726
|
-
return cleanValue;
|
|
727
|
-
};
|
|
728
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
729
|
-
if (headerKey !== undefined) {
|
|
730
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
731
|
-
}
|
|
732
|
-
if (data.code !== undefined) {
|
|
733
|
-
return sanitizeErrorCode(data.code);
|
|
734
|
-
}
|
|
735
|
-
if (data["__type"] !== undefined) {
|
|
736
|
-
return sanitizeErrorCode(data["__type"]);
|
|
737
|
-
}
|
|
738
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
-
import {
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
4
4
|
import { FetchHttpHandler as RequestHandler, streamCollector, } from "@smithy/fetch-http-handler";
|
|
5
5
|
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
6
6
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, } from "@smithy/util-retry";
|
|
@@ -17,7 +17,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
17
17
|
runtime: "browser",
|
|
18
18
|
defaultsMode,
|
|
19
19
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
20
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: packageInfo.name, clientVersion: packageInfo.version }),
|
|
21
21
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
22
22
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
23
23
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import {
|
|
2
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider, } from "@aws-sdk/util-user-agent-node";
|
|
3
3
|
import { Hash } from "@smithy/hash-node";
|
|
4
4
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/middleware-retry";
|
|
5
5
|
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
@@ -21,11 +21,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
21
21
|
runtime: "node",
|
|
22
22
|
defaultsMode,
|
|
23
23
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
25
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: packageInfo.name, clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
26
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
-
retryMode: config?.retryMode ?? loadNodeConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }),
|
|
27
|
+
retryMode: config?.retryMode ?? loadNodeConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }, config),
|
|
28
28
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
29
29
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
30
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, { profile: 'wildix' }),
|
|
30
31
|
};
|
|
31
32
|
};
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, } from "@smithy/protocol-http";
|
|
2
2
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, } from "@smithy/smithy-client";
|
|
3
|
-
const asPartial = (t) => t;
|
|
4
3
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
5
|
-
const extensionConfiguration =
|
|
6
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
7
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
8
|
-
};
|
|
4
|
+
const extensionConfiguration = Object.assign(getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig));
|
|
9
5
|
extensions.forEach(extension => extension.configure(extensionConfiguration));
|
|
10
|
-
return
|
|
11
|
-
...runtimeConfig,
|
|
12
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
13
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
14
|
-
};
|
|
6
|
+
return Object.assign(runtimeConfig, resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration));
|
|
15
7
|
};
|
|
@@ -81,6 +81,18 @@ declare const CreatePbxAclGroupCommand_base: {
|
|
|
81
81
|
* @throws {@link WmsApiServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
83
83
|
*
|
|
84
|
+
*
|
|
84
85
|
*/
|
|
85
86
|
export declare class CreatePbxAclGroupCommand extends CreatePbxAclGroupCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: CreatePbxAclGroupInput;
|
|
91
|
+
output: CreatePbxAclGroupOutput;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: CreatePbxAclGroupCommandInput;
|
|
95
|
+
output: CreatePbxAclGroupCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
86
98
|
}
|
|
@@ -95,6 +95,18 @@ declare const CreatePbxColleagueCommand_base: {
|
|
|
95
95
|
* @throws {@link WmsApiServiceException}
|
|
96
96
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
97
97
|
*
|
|
98
|
+
*
|
|
98
99
|
*/
|
|
99
100
|
export declare class CreatePbxColleagueCommand extends CreatePbxColleagueCommand_base {
|
|
101
|
+
/** @internal type navigation helper, not in runtime. */
|
|
102
|
+
protected static __types: {
|
|
103
|
+
api: {
|
|
104
|
+
input: CreatePbxColleagueInput;
|
|
105
|
+
output: CreatePbxColleagueOutput;
|
|
106
|
+
};
|
|
107
|
+
sdk: {
|
|
108
|
+
input: CreatePbxColleagueCommandInput;
|
|
109
|
+
output: CreatePbxColleagueCommandOutput;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
100
112
|
}
|
|
@@ -74,7 +74,19 @@ declare const CreatePbxOAuth2ClientCommand_base: {
|
|
|
74
74
|
* @throws {@link WmsApiServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
76
76
|
*
|
|
77
|
+
*
|
|
77
78
|
* @public
|
|
78
79
|
*/
|
|
79
80
|
export declare class CreatePbxOAuth2ClientCommand extends CreatePbxOAuth2ClientCommand_base {
|
|
81
|
+
/** @internal type navigation helper, not in runtime. */
|
|
82
|
+
protected static __types: {
|
|
83
|
+
api: {
|
|
84
|
+
input: CreatePbxOAuth2ClientInput;
|
|
85
|
+
output: CreatePbxOAuth2ClientOutput;
|
|
86
|
+
};
|
|
87
|
+
sdk: {
|
|
88
|
+
input: CreatePbxOAuth2ClientCommandInput;
|
|
89
|
+
output: CreatePbxOAuth2ClientCommandOutput;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
80
92
|
}
|
|
@@ -58,6 +58,18 @@ declare const DeletePbxAclGroupCommand_base: {
|
|
|
58
58
|
* @throws {@link WmsApiServiceException}
|
|
59
59
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
60
60
|
*
|
|
61
|
+
*
|
|
61
62
|
*/
|
|
62
63
|
export declare class DeletePbxAclGroupCommand extends DeletePbxAclGroupCommand_base {
|
|
64
|
+
/** @internal type navigation helper, not in runtime. */
|
|
65
|
+
protected static __types: {
|
|
66
|
+
api: {
|
|
67
|
+
input: DeletePbxAclGroupInput;
|
|
68
|
+
output: DeletePbxAclGroupOutput;
|
|
69
|
+
};
|
|
70
|
+
sdk: {
|
|
71
|
+
input: DeletePbxAclGroupCommandInput;
|
|
72
|
+
output: DeletePbxAclGroupCommandOutput;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
63
75
|
}
|
|
@@ -58,6 +58,18 @@ declare const DeletePbxColleagueCommand_base: {
|
|
|
58
58
|
* @throws {@link WmsApiServiceException}
|
|
59
59
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
60
60
|
*
|
|
61
|
+
*
|
|
61
62
|
*/
|
|
62
63
|
export declare class DeletePbxColleagueCommand extends DeletePbxColleagueCommand_base {
|
|
64
|
+
/** @internal type navigation helper, not in runtime. */
|
|
65
|
+
protected static __types: {
|
|
66
|
+
api: {
|
|
67
|
+
input: DeletePbxColleagueInput;
|
|
68
|
+
output: DeletePbxColleagueOutput;
|
|
69
|
+
};
|
|
70
|
+
sdk: {
|
|
71
|
+
input: DeletePbxColleagueCommandInput;
|
|
72
|
+
output: DeletePbxColleagueCommandOutput;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
63
75
|
}
|
|
@@ -59,7 +59,19 @@ declare const DeletePbxOAuth2ClientCommand_base: {
|
|
|
59
59
|
* @throws {@link WmsApiServiceException}
|
|
60
60
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
61
61
|
*
|
|
62
|
+
*
|
|
62
63
|
* @public
|
|
63
64
|
*/
|
|
64
65
|
export declare class DeletePbxOAuth2ClientCommand extends DeletePbxOAuth2ClientCommand_base {
|
|
66
|
+
/** @internal type navigation helper, not in runtime. */
|
|
67
|
+
protected static __types: {
|
|
68
|
+
api: {
|
|
69
|
+
input: DeletePbxOAuth2ClientInput;
|
|
70
|
+
output: DeletePbxOAuth2ClientOutput;
|
|
71
|
+
};
|
|
72
|
+
sdk: {
|
|
73
|
+
input: DeletePbxOAuth2ClientCommandInput;
|
|
74
|
+
output: DeletePbxOAuth2ClientCommandOutput;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
65
77
|
}
|
|
@@ -80,6 +80,18 @@ declare const GetColleagueByIdCommand_base: {
|
|
|
80
80
|
* @throws {@link WmsApiServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
82
82
|
*
|
|
83
|
+
*
|
|
83
84
|
*/
|
|
84
85
|
export declare class GetColleagueByIdCommand extends GetColleagueByIdCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: GetColleagueByIdInput;
|
|
90
|
+
output: GetColleagueByIdOutput;
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: GetColleagueByIdCommandInput;
|
|
94
|
+
output: GetColleagueByIdCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
85
97
|
}
|
|
@@ -84,6 +84,18 @@ declare const GetPbxAclGroupsPermissionsCommand_base: {
|
|
|
84
84
|
* @throws {@link WmsApiServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
86
86
|
*
|
|
87
|
+
*
|
|
87
88
|
*/
|
|
88
89
|
export declare class GetPbxAclGroupsPermissionsCommand extends GetPbxAclGroupsPermissionsCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: GetPbxAclGroupsPermissionsInput;
|
|
94
|
+
output: GetPbxAclGroupsPermissionsOutput;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: GetPbxAclGroupsPermissionsCommandInput;
|
|
98
|
+
output: GetPbxAclGroupsPermissionsCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
89
101
|
}
|
|
@@ -95,7 +95,19 @@ declare const GetPbxCallGroupsCommand_base: {
|
|
|
95
95
|
* @throws {@link WmsApiServiceException}
|
|
96
96
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
97
97
|
*
|
|
98
|
+
*
|
|
98
99
|
* @public
|
|
99
100
|
*/
|
|
100
101
|
export declare class GetPbxCallGroupsCommand extends GetPbxCallGroupsCommand_base {
|
|
102
|
+
/** @internal type navigation helper, not in runtime. */
|
|
103
|
+
protected static __types: {
|
|
104
|
+
api: {
|
|
105
|
+
input: {};
|
|
106
|
+
output: GetPbxCallGroupsOutput;
|
|
107
|
+
};
|
|
108
|
+
sdk: {
|
|
109
|
+
input: GetPbxCallGroupsCommandInput;
|
|
110
|
+
output: GetPbxCallGroupsCommandOutput;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
101
113
|
}
|
|
@@ -124,6 +124,39 @@ declare const GetPbxColleaguesCommand_base: {
|
|
|
124
124
|
* @throws {@link WmsApiServiceException}
|
|
125
125
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
126
126
|
*
|
|
127
|
+
*
|
|
128
|
+
* @example valid example
|
|
129
|
+
* ```javascript
|
|
130
|
+
* // valid example doc
|
|
131
|
+
* const input = {
|
|
132
|
+
* extension: [
|
|
133
|
+
* "1234"
|
|
134
|
+
* ]
|
|
135
|
+
* };
|
|
136
|
+
* const command = new GetPbxColleaguesCommand(input);
|
|
137
|
+
* const response = await client.send(command);
|
|
138
|
+
* /* response is
|
|
139
|
+
* {
|
|
140
|
+
* result: {
|
|
141
|
+
* records: [],
|
|
142
|
+
* total: 0
|
|
143
|
+
* },
|
|
144
|
+
* type: "result"
|
|
145
|
+
* }
|
|
146
|
+
* *\/
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
127
149
|
*/
|
|
128
150
|
export declare class GetPbxColleaguesCommand extends GetPbxColleaguesCommand_base {
|
|
151
|
+
/** @internal type navigation helper, not in runtime. */
|
|
152
|
+
protected static __types: {
|
|
153
|
+
api: {
|
|
154
|
+
input: GetPbxColleaguesInput;
|
|
155
|
+
output: GetPbxColleaguesOutput;
|
|
156
|
+
};
|
|
157
|
+
sdk: {
|
|
158
|
+
input: GetPbxColleaguesCommandInput;
|
|
159
|
+
output: GetPbxColleaguesCommandOutput;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
129
162
|
}
|
|
@@ -67,7 +67,19 @@ declare const GetPbxOAuth2ClientsCommand_base: {
|
|
|
67
67
|
* @throws {@link WmsApiServiceException}
|
|
68
68
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
69
69
|
*
|
|
70
|
+
*
|
|
70
71
|
* @public
|
|
71
72
|
*/
|
|
72
73
|
export declare class GetPbxOAuth2ClientsCommand extends GetPbxOAuth2ClientsCommand_base {
|
|
74
|
+
/** @internal type navigation helper, not in runtime. */
|
|
75
|
+
protected static __types: {
|
|
76
|
+
api: {
|
|
77
|
+
input: {};
|
|
78
|
+
output: GetPbxOAuth2ClientsOutput;
|
|
79
|
+
};
|
|
80
|
+
sdk: {
|
|
81
|
+
input: GetPbxOAuth2ClientsCommandInput;
|
|
82
|
+
output: GetPbxOAuth2ClientsCommandOutput;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
73
85
|
}
|
|
@@ -69,7 +69,19 @@ declare const GetPbxesCommand_base: {
|
|
|
69
69
|
* @throws {@link WmsApiServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
71
71
|
*
|
|
72
|
+
*
|
|
72
73
|
* @public
|
|
73
74
|
*/
|
|
74
75
|
export declare class GetPbxesCommand extends GetPbxesCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: {};
|
|
80
|
+
output: GetPbxesOutput;
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: GetPbxesCommandInput;
|
|
84
|
+
output: GetPbxesCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
75
87
|
}
|
|
@@ -119,6 +119,18 @@ declare const GetPersonalInfoCommand_base: {
|
|
|
119
119
|
* @throws {@link WmsApiServiceException}
|
|
120
120
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
121
121
|
*
|
|
122
|
+
*
|
|
122
123
|
*/
|
|
123
124
|
export declare class GetPersonalInfoCommand extends GetPersonalInfoCommand_base {
|
|
125
|
+
/** @internal type navigation helper, not in runtime. */
|
|
126
|
+
protected static __types: {
|
|
127
|
+
api: {
|
|
128
|
+
input: GetPersonalInfoInput;
|
|
129
|
+
output: GetPersonalInfoOutput;
|
|
130
|
+
};
|
|
131
|
+
sdk: {
|
|
132
|
+
input: GetPersonalInfoCommandInput;
|
|
133
|
+
output: GetPersonalInfoCommandOutput;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
124
136
|
}
|
|
@@ -69,7 +69,19 @@ declare const NotificationsCommand_base: {
|
|
|
69
69
|
* @throws {@link WmsApiServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
71
71
|
*
|
|
72
|
+
*
|
|
72
73
|
* @public
|
|
73
74
|
*/
|
|
74
75
|
export declare class NotificationsCommand extends NotificationsCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: NotificationsInput;
|
|
80
|
+
output: NotificationsOutput;
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: NotificationsCommandInput;
|
|
84
|
+
output: NotificationsCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
75
87
|
}
|
|
@@ -59,7 +59,19 @@ declare const OriginateCallCommand_base: {
|
|
|
59
59
|
* @throws {@link WmsApiServiceException}
|
|
60
60
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
61
61
|
*
|
|
62
|
+
*
|
|
62
63
|
* @public
|
|
63
64
|
*/
|
|
64
65
|
export declare class OriginateCallCommand extends OriginateCallCommand_base {
|
|
66
|
+
/** @internal type navigation helper, not in runtime. */
|
|
67
|
+
protected static __types: {
|
|
68
|
+
api: {
|
|
69
|
+
input: OriginateCallInput;
|
|
70
|
+
output: OriginateCallOutput;
|
|
71
|
+
};
|
|
72
|
+
sdk: {
|
|
73
|
+
input: OriginateCallCommandInput;
|
|
74
|
+
output: OriginateCallCommandOutput;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
65
77
|
}
|
|
@@ -68,7 +68,19 @@ declare const OriginateCommand_base: {
|
|
|
68
68
|
* @throws {@link WmsApiServiceException}
|
|
69
69
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
70
70
|
*
|
|
71
|
+
*
|
|
71
72
|
* @public
|
|
72
73
|
*/
|
|
73
74
|
export declare class OriginateCommand extends OriginateCommand_base {
|
|
75
|
+
/** @internal type navigation helper, not in runtime. */
|
|
76
|
+
protected static __types: {
|
|
77
|
+
api: {
|
|
78
|
+
input: OriginateInput;
|
|
79
|
+
output: OriginateOutput;
|
|
80
|
+
};
|
|
81
|
+
sdk: {
|
|
82
|
+
input: OriginateCommandInput;
|
|
83
|
+
output: OriginateCommandOutput;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
74
86
|
}
|