@wildix/wms-api-client 1.1.5 → 1.1.6

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 (34) hide show
  1. package/dist-cjs/WmsApi.js +0 -4
  2. package/dist-cjs/WmsApiClient.js +7 -2
  3. package/dist-cjs/commands/index.js +0 -2
  4. package/dist-cjs/models/models_0.js +8 -23
  5. package/dist-cjs/protocols/Aws_restJson1.js +5 -85
  6. package/dist-es/WmsApi.js +0 -4
  7. package/dist-es/WmsApiClient.js +7 -2
  8. package/dist-es/commands/index.js +0 -2
  9. package/dist-es/models/models_0.js +7 -22
  10. package/dist-es/protocols/Aws_restJson1.js +4 -80
  11. package/dist-types/WmsApi.d.ts +0 -14
  12. package/dist-types/WmsApiClient.d.ts +5 -6
  13. package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +2 -1
  14. package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +2 -1
  15. package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +2 -1
  16. package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +2 -1
  17. package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -1
  18. package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +2 -1
  19. package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +2 -1
  20. package/dist-types/commands/index.d.ts +0 -2
  21. package/dist-types/index.d.ts +2 -2
  22. package/dist-types/models/WmsApiServiceException.d.ts +2 -1
  23. package/dist-types/models/models_0.d.ts +65 -130
  24. package/dist-types/protocols/Aws_restJson1.d.ts +0 -18
  25. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  26. package/dist-types/runtimeConfig.d.ts +1 -0
  27. package/dist-types/runtimeConfig.native.d.ts +1 -0
  28. package/package.json +9 -9
  29. package/dist-cjs/commands/CreatePbxColleagueCommand.js +0 -21
  30. package/dist-cjs/commands/DeletePbxColleagueCommand.js +0 -21
  31. package/dist-es/commands/CreatePbxColleagueCommand.js +0 -17
  32. package/dist-es/commands/DeletePbxColleagueCommand.js +0 -17
  33. package/dist-types/commands/CreatePbxColleagueCommand.d.ts +0 -99
  34. package/dist-types/commands/DeletePbxColleagueCommand.d.ts +0 -65
@@ -2,9 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WmsApi = void 0;
4
4
  const WmsApiClient_1 = require("./WmsApiClient");
5
- const CreatePbxColleagueCommand_1 = require("./commands/CreatePbxColleagueCommand");
6
5
  const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
7
- const DeletePbxColleagueCommand_1 = require("./commands/DeletePbxColleagueCommand");
8
6
  const DeletePbxOAuth2ClientCommand_1 = require("./commands/DeletePbxOAuth2ClientCommand");
9
7
  const GetPbxAclGroupsPermissionsCommand_1 = require("./commands/GetPbxAclGroupsPermissionsCommand");
10
8
  const GetPbxCallGroupsCommand_1 = require("./commands/GetPbxCallGroupsCommand");
@@ -13,9 +11,7 @@ const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsComm
13
11
  const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
14
12
  const smithy_client_1 = require("@smithy/smithy-client");
15
13
  const commands = {
16
- CreatePbxColleagueCommand: CreatePbxColleagueCommand_1.CreatePbxColleagueCommand,
17
14
  CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
18
- DeletePbxColleagueCommand: DeletePbxColleagueCommand_1.DeletePbxColleagueCommand,
19
15
  DeletePbxOAuth2ClientCommand: DeletePbxOAuth2ClientCommand_1.DeletePbxOAuth2ClientCommand,
20
16
  GetPbxAclGroupsPermissionsCommand: GetPbxAclGroupsPermissionsCommand_1.GetPbxAclGroupsPermissionsCommand,
21
17
  GetPbxCallGroupsCommand: GetPbxCallGroupsCommand_1.GetPbxCallGroupsCommand,
@@ -4,6 +4,8 @@ exports.WmsApiClient = exports.__Client = void 0;
4
4
  const runtimeConfig_1 = require("./runtimeConfig");
5
5
  const runtimeExtensions_1 = require("./runtimeExtensions");
6
6
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
7
+ const middleware_content_length_1 = require("@smithy/middleware-content-length");
8
+ const middleware_retry_1 = require("@smithy/middleware-retry");
7
9
  const smithy_client_1 = require("@smithy/smithy-client");
8
10
  Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
9
11
  const smithy_utils_1 = require("@wildix/smithy-utils");
@@ -11,7 +13,8 @@ class WmsApiClient extends smithy_client_1.Client {
11
13
  constructor(...[configuration]) {
12
14
  let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
13
15
  let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
14
- let _config_2 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_1, configuration?.extensions || []);
16
+ let _config_2 = (0, middleware_retry_1.resolveRetryConfig)(_config_1);
17
+ let _config_3 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_2, configuration?.extensions || []);
15
18
  const hostname = configuration.domain.endsWith("wildixin.com") ? configuration.domain : `${configuration.domain}.wildixin.com`;
16
19
  const endpoint = () => {
17
20
  return {
@@ -22,13 +25,15 @@ class WmsApiClient extends smithy_client_1.Client {
22
25
  };
23
26
  };
24
27
  const config = {
25
- ..._config_2,
28
+ ..._config_3,
26
29
  endpoint,
27
30
  };
28
31
  super(config);
29
32
  this.config = config;
30
33
  this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
31
34
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
35
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
36
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
32
37
  }
33
38
  destroy() {
34
39
  super.destroy();
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./CreatePbxColleagueCommand"), exports);
5
4
  tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
6
- tslib_1.__exportStar(require("./DeletePbxColleagueCommand"), exports);
7
5
  tslib_1.__exportStar(require("./DeletePbxOAuth2ClientCommand"), exports);
8
6
  tslib_1.__exportStar(require("./GetPbxAclGroupsPermissionsCommand"), exports);
9
7
  tslib_1.__exportStar(require("./GetPbxCallGroupsCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.PbxColleaguesDeleteField = exports.WmsValidationException = exports.WmsUnauthorizedException = exports.ResponseType = exports.PbxColleagueRole = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
3
+ exports.PbxColleagueRole = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.WmsUnauthorizedException = exports.ResponseType = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
4
4
  const WmsApiServiceException_1 = require("./WmsApiServiceException");
5
5
  exports.PbxLicenseType = {
6
6
  BASIC: "basic",
@@ -15,13 +15,6 @@ exports.AclGroupPermissionAbility = {
15
15
  NO: "no",
16
16
  YES: "yes",
17
17
  };
18
- exports.PbxColleagueRole = {
19
- ADMIN: "admin",
20
- FAX: "fax",
21
- PARK_ORBIT: "park_orbit",
22
- ROOM: "room",
23
- USER: "user",
24
- };
25
18
  exports.ResponseType = {
26
19
  ERROR: "error",
27
20
  RESULT: "result",
@@ -57,21 +50,6 @@ class WmsValidationException extends WmsApiServiceException_1.WmsApiServiceExcep
57
50
  }
58
51
  }
59
52
  exports.WmsValidationException = WmsValidationException;
60
- exports.PbxColleaguesDeleteField = {
61
- APPLICATIONS: "applications",
62
- CALLS: "calls",
63
- CALL_GROUP_MEMBER: "callGroupMember",
64
- CHAT_HISTORY: "chatHistory",
65
- DEVICES: "devices",
66
- MISSED_CALL_MANAGER: "missedCallManager",
67
- PAGING_GROUP_MEMBER: "pagingGroupMember",
68
- PERSONAL_DATA: "personalData",
69
- PHONEBOOKS: "phonebooks",
70
- USER: "user",
71
- USER_AVATAR: "userAvatar",
72
- VOICEMAILS: "voicemails",
73
- VOICEMAIL_GREETINGS: "voicemailGreetings",
74
- };
75
53
  class WmsNotFoundException extends WmsApiServiceException_1.WmsApiServiceException {
76
54
  constructor(opts) {
77
55
  super({
@@ -114,3 +92,10 @@ exports.PbxColleaguesSearchStrategy = {
114
92
  CONTAIN: "contain",
115
93
  STARTS_WITH: "startsWith",
116
94
  };
95
+ exports.PbxColleagueRole = {
96
+ ADMIN: "admin",
97
+ FAX: "fax",
98
+ PARK_ORBIT: "park_orbit",
99
+ ROOM: "room",
100
+ USER: "user",
101
+ };
@@ -1,41 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdatePbxOAuth2ClientCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_DeletePbxColleagueCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.de_CreatePbxColleagueCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_DeletePbxColleagueCommand = exports.se_CreatePbxOAuth2ClientCommand = exports.se_CreatePbxColleagueCommand = void 0;
3
+ exports.de_UpdatePbxOAuth2ClientCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_CreatePbxOAuth2ClientCommand = void 0;
4
4
  const WmsApiServiceException_1 = require("../models/WmsApiServiceException");
5
5
  const models_0_1 = require("../models/models_0");
6
6
  const core_1 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
- const se_CreatePbxColleagueCommand = async (input, context) => {
9
- const b = (0, core_1.requestBuilder)(input, context);
10
- const headers = {
11
- 'content-type': 'application/json',
12
- };
13
- b.bp("/api/v1/PBX/Colleagues");
14
- let body;
15
- body = JSON.stringify((0, smithy_client_1.take)(input, {
16
- 'department': [],
17
- 'dialplan': [],
18
- 'email': [],
19
- 'extension': [],
20
- 'faxDialplan': [],
21
- 'faxNumber': [],
22
- 'groupDn': [],
23
- 'language': [],
24
- 'licenseType': [],
25
- 'login': [],
26
- 'mobilePhone': [],
27
- 'name': [],
28
- 'officePhone': [],
29
- 'password': [],
30
- 'role': [],
31
- 'sipPassword': [],
32
- }));
33
- b.m("POST")
34
- .h(headers)
35
- .b(body);
36
- return b.build();
37
- };
38
- exports.se_CreatePbxColleagueCommand = se_CreatePbxColleagueCommand;
39
8
  const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
40
9
  const b = (0, core_1.requestBuilder)(input, context);
41
10
  const headers = {
@@ -53,22 +22,6 @@ const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
53
22
  return b.build();
54
23
  };
55
24
  exports.se_CreatePbxOAuth2ClientCommand = se_CreatePbxOAuth2ClientCommand;
56
- const se_DeletePbxColleagueCommand = async (input, context) => {
57
- const b = (0, core_1.requestBuilder)(input, context);
58
- const headers = {};
59
- b.bp("/api/v1/PBX/Colleagues/{colleagueId}");
60
- b.p('colleagueId', () => input.colleagueId.toString(), '{colleagueId}', false);
61
- const query = (0, smithy_client_1.map)({
62
- [_d]: [() => input.data !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
63
- });
64
- let body;
65
- b.m("DELETE")
66
- .h(headers)
67
- .q(query)
68
- .b(body);
69
- return b.build();
70
- };
71
- exports.se_DeletePbxColleagueCommand = se_DeletePbxColleagueCommand;
72
25
  const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
73
26
  const b = (0, core_1.requestBuilder)(input, context);
74
27
  const headers = {};
@@ -123,7 +76,7 @@ const se_GetPbxColleaguesCommand = async (input, context) => {
123
76
  [_fil]: [() => input.name !== void 0, () => ((input[_n] || []).map(_entry => _entry))],
124
77
  [_filt]: [() => input.email !== void 0, () => ((input[_em] || []).map(_entry => _entry))],
125
78
  [_filte]: [() => input.role !== void 0, () => ((input[_r] || []).map(_entry => _entry))],
126
- [_filter]: [() => input.dialplan !== void 0, () => ((input[_di] || []).map(_entry => _entry))],
79
+ [_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
127
80
  [_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []).map(_entry => _entry))],
128
81
  [_filterd]: [() => input.department !== void 0, () => ((input[_de] || []).map(_entry => _entry))],
129
82
  [_filterl]: [() => input.login !== void 0, () => ((input[_l] || []).map(_entry => _entry))],
@@ -136,7 +89,7 @@ const se_GetPbxColleaguesCommand = async (input, context) => {
136
89
  [_so]: [() => input.sort !== void 0, () => ((input[_so] || []).map(_entry => _entry))],
137
90
  [_st]: [() => input.start !== void 0, () => (input[_st].toString())],
138
91
  [_c]: [() => input.count !== void 0, () => (input[_c].toString())],
139
- [_dir]: [, input[_dir]],
92
+ [_di]: [, input[_di]],
140
93
  [_sS]: [, input[_sS]],
141
94
  });
142
95
  let body;
@@ -179,22 +132,6 @@ const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
179
132
  return b.build();
180
133
  };
181
134
  exports.se_UpdatePbxOAuth2ClientCommand = se_UpdatePbxOAuth2ClientCommand;
182
- const de_CreatePbxColleagueCommand = async (output, context) => {
183
- if (output.statusCode !== 200 && output.statusCode >= 300) {
184
- return de_CommandError(output, context);
185
- }
186
- const contents = (0, smithy_client_1.map)({
187
- $metadata: deserializeMetadata(output),
188
- });
189
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
190
- const doc = (0, smithy_client_1.take)(data, {
191
- 'result': smithy_client_1._json,
192
- 'type': smithy_client_1.expectString,
193
- });
194
- Object.assign(contents, doc);
195
- return contents;
196
- };
197
- exports.de_CreatePbxColleagueCommand = de_CreatePbxColleagueCommand;
198
135
  const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
199
136
  if (output.statusCode !== 200 && output.statusCode >= 300) {
200
137
  return de_CommandError(output, context);
@@ -211,22 +148,6 @@ const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
211
148
  return contents;
212
149
  };
213
150
  exports.de_CreatePbxOAuth2ClientCommand = de_CreatePbxOAuth2ClientCommand;
214
- const de_DeletePbxColleagueCommand = async (output, context) => {
215
- if (output.statusCode !== 200 && output.statusCode >= 300) {
216
- return de_CommandError(output, context);
217
- }
218
- const contents = (0, smithy_client_1.map)({
219
- $metadata: deserializeMetadata(output),
220
- });
221
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
222
- const doc = (0, smithy_client_1.take)(data, {
223
- 'result': smithy_client_1.expectString,
224
- 'type': smithy_client_1.expectString,
225
- });
226
- Object.assign(contents, doc);
227
- return contents;
228
- };
229
- exports.de_DeletePbxColleagueCommand = de_DeletePbxColleagueCommand;
230
151
  const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
231
152
  if (output.statusCode !== 200 && output.statusCode >= 300) {
232
153
  return de_CommandError(output, context);
@@ -406,10 +327,9 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
406
327
  value.length != 0) &&
407
328
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
408
329
  const _c = "count";
409
- const _d = "data";
330
+ const _d = "dialplan";
410
331
  const _de = "department";
411
- const _di = "dialplan";
412
- const _dir = "dir";
332
+ const _di = "dir";
413
333
  const _e = "extension";
414
334
  const _em = "email";
415
335
  const _f = "filter[extension][]";
package/dist-es/WmsApi.js CHANGED
@@ -1,7 +1,5 @@
1
1
  import { WmsApiClient, } from "./WmsApiClient";
2
- import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
3
2
  import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
4
- import { DeletePbxColleagueCommand, } from "./commands/DeletePbxColleagueCommand";
5
3
  import { DeletePbxOAuth2ClientCommand, } from "./commands/DeletePbxOAuth2ClientCommand";
6
4
  import { GetPbxAclGroupsPermissionsCommand, } from "./commands/GetPbxAclGroupsPermissionsCommand";
7
5
  import { GetPbxCallGroupsCommand, } from "./commands/GetPbxCallGroupsCommand";
@@ -10,9 +8,7 @@ import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsComma
10
8
  import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
11
9
  import { createAggregatedClient } from "@smithy/smithy-client";
12
10
  const commands = {
13
- CreatePbxColleagueCommand,
14
11
  CreatePbxOAuth2ClientCommand,
15
- DeletePbxColleagueCommand,
16
12
  DeletePbxOAuth2ClientCommand,
17
13
  GetPbxAclGroupsPermissionsCommand,
18
14
  GetPbxCallGroupsCommand,
@@ -1,6 +1,8 @@
1
1
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
2
2
  import { resolveRuntimeExtensions, } from "./runtimeExtensions";
3
3
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
4
+ import { getContentLengthPlugin } from "@smithy/middleware-content-length";
5
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
4
6
  import { Client as __Client, } from "@smithy/smithy-client";
5
7
  import { authorizationMiddleware } from '@wildix/smithy-utils';
6
8
  export { __Client };
@@ -8,7 +10,8 @@ export class WmsApiClient extends __Client {
8
10
  constructor(...[configuration]) {
9
11
  let _config_0 = __getRuntimeConfig(configuration || {});
10
12
  let _config_1 = resolveUserAgentConfig(_config_0);
11
- let _config_2 = resolveRuntimeExtensions(_config_1, configuration?.extensions || []);
13
+ let _config_2 = resolveRetryConfig(_config_1);
14
+ let _config_3 = resolveRuntimeExtensions(_config_2, configuration?.extensions || []);
12
15
  const hostname = configuration.domain.endsWith("wildixin.com") ? configuration.domain : `${configuration.domain}.wildixin.com`;
13
16
  const endpoint = () => {
14
17
  return {
@@ -19,13 +22,15 @@ export class WmsApiClient extends __Client {
19
22
  };
20
23
  };
21
24
  const config = {
22
- ..._config_2,
25
+ ..._config_3,
23
26
  endpoint,
24
27
  };
25
28
  super(config);
26
29
  this.config = config;
27
30
  this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
28
31
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
+ this.middlewareStack.use(getRetryPlugin(this.config));
33
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
29
34
  }
30
35
  destroy() {
31
36
  super.destroy();
@@ -1,6 +1,4 @@
1
- export * from "./CreatePbxColleagueCommand";
2
1
  export * from "./CreatePbxOAuth2ClientCommand";
3
- export * from "./DeletePbxColleagueCommand";
4
2
  export * from "./DeletePbxOAuth2ClientCommand";
5
3
  export * from "./GetPbxAclGroupsPermissionsCommand";
6
4
  export * from "./GetPbxCallGroupsCommand";
@@ -12,13 +12,6 @@ export const AclGroupPermissionAbility = {
12
12
  NO: "no",
13
13
  YES: "yes",
14
14
  };
15
- export const PbxColleagueRole = {
16
- ADMIN: "admin",
17
- FAX: "fax",
18
- PARK_ORBIT: "park_orbit",
19
- ROOM: "room",
20
- USER: "user",
21
- };
22
15
  export const ResponseType = {
23
16
  ERROR: "error",
24
17
  RESULT: "result",
@@ -52,21 +45,6 @@ export class WmsValidationException extends __BaseException {
52
45
  this.errors = opts.errors;
53
46
  }
54
47
  }
55
- export const PbxColleaguesDeleteField = {
56
- APPLICATIONS: "applications",
57
- CALLS: "calls",
58
- CALL_GROUP_MEMBER: "callGroupMember",
59
- CHAT_HISTORY: "chatHistory",
60
- DEVICES: "devices",
61
- MISSED_CALL_MANAGER: "missedCallManager",
62
- PAGING_GROUP_MEMBER: "pagingGroupMember",
63
- PERSONAL_DATA: "personalData",
64
- PHONEBOOKS: "phonebooks",
65
- USER: "user",
66
- USER_AVATAR: "userAvatar",
67
- VOICEMAILS: "voicemails",
68
- VOICEMAIL_GREETINGS: "voicemailGreetings",
69
- };
70
48
  export class WmsNotFoundException extends __BaseException {
71
49
  constructor(opts) {
72
50
  super({
@@ -108,3 +86,10 @@ export const PbxColleaguesSearchStrategy = {
108
86
  CONTAIN: "contain",
109
87
  STARTS_WITH: "startsWith",
110
88
  };
89
+ export const PbxColleagueRole = {
90
+ ADMIN: "admin",
91
+ FAX: "fax",
92
+ PARK_ORBIT: "park_orbit",
93
+ ROOM: "room",
94
+ USER: "user",
95
+ };
@@ -2,36 +2,6 @@ import { WmsApiServiceException as __BaseException } from "../models/WmsApiServi
2
2
  import { WmsNotFoundException, WmsUnauthorizedException, WmsValidationException, } from "../models/models_0";
3
3
  import { requestBuilder as rb } from "@smithy/core";
4
4
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
- export const se_CreatePbxColleagueCommand = async (input, context) => {
6
- const b = rb(input, context);
7
- const headers = {
8
- 'content-type': 'application/json',
9
- };
10
- b.bp("/api/v1/PBX/Colleagues");
11
- let body;
12
- body = JSON.stringify(take(input, {
13
- 'department': [],
14
- 'dialplan': [],
15
- 'email': [],
16
- 'extension': [],
17
- 'faxDialplan': [],
18
- 'faxNumber': [],
19
- 'groupDn': [],
20
- 'language': [],
21
- 'licenseType': [],
22
- 'login': [],
23
- 'mobilePhone': [],
24
- 'name': [],
25
- 'officePhone': [],
26
- 'password': [],
27
- 'role': [],
28
- 'sipPassword': [],
29
- }));
30
- b.m("POST")
31
- .h(headers)
32
- .b(body);
33
- return b.build();
34
- };
35
5
  export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
36
6
  const b = rb(input, context);
37
7
  const headers = {
@@ -48,21 +18,6 @@ export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
48
18
  .b(body);
49
19
  return b.build();
50
20
  };
51
- export const se_DeletePbxColleagueCommand = async (input, context) => {
52
- const b = rb(input, context);
53
- const headers = {};
54
- b.bp("/api/v1/PBX/Colleagues/{colleagueId}");
55
- b.p('colleagueId', () => input.colleagueId.toString(), '{colleagueId}', false);
56
- const query = map({
57
- [_d]: [() => input.data !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
58
- });
59
- let body;
60
- b.m("DELETE")
61
- .h(headers)
62
- .q(query)
63
- .b(body);
64
- return b.build();
65
- };
66
21
  export const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
67
22
  const b = rb(input, context);
68
23
  const headers = {};
@@ -114,7 +69,7 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
114
69
  [_fil]: [() => input.name !== void 0, () => ((input[_n] || []).map(_entry => _entry))],
115
70
  [_filt]: [() => input.email !== void 0, () => ((input[_em] || []).map(_entry => _entry))],
116
71
  [_filte]: [() => input.role !== void 0, () => ((input[_r] || []).map(_entry => _entry))],
117
- [_filter]: [() => input.dialplan !== void 0, () => ((input[_di] || []).map(_entry => _entry))],
72
+ [_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
118
73
  [_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []).map(_entry => _entry))],
119
74
  [_filterd]: [() => input.department !== void 0, () => ((input[_de] || []).map(_entry => _entry))],
120
75
  [_filterl]: [() => input.login !== void 0, () => ((input[_l] || []).map(_entry => _entry))],
@@ -127,7 +82,7 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
127
82
  [_so]: [() => input.sort !== void 0, () => ((input[_so] || []).map(_entry => _entry))],
128
83
  [_st]: [() => input.start !== void 0, () => (input[_st].toString())],
129
84
  [_c]: [() => input.count !== void 0, () => (input[_c].toString())],
130
- [_dir]: [, input[_dir]],
85
+ [_di]: [, input[_di]],
131
86
  [_sS]: [, input[_sS]],
132
87
  });
133
88
  let body;
@@ -167,21 +122,6 @@ export const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
167
122
  .b(body);
168
123
  return b.build();
169
124
  };
170
- export const de_CreatePbxColleagueCommand = async (output, context) => {
171
- if (output.statusCode !== 200 && output.statusCode >= 300) {
172
- return de_CommandError(output, context);
173
- }
174
- const contents = map({
175
- $metadata: deserializeMetadata(output),
176
- });
177
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
178
- const doc = take(data, {
179
- 'result': _json,
180
- 'type': __expectString,
181
- });
182
- Object.assign(contents, doc);
183
- return contents;
184
- };
185
125
  export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
186
126
  if (output.statusCode !== 200 && output.statusCode >= 300) {
187
127
  return de_CommandError(output, context);
@@ -197,21 +137,6 @@ export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
197
137
  Object.assign(contents, doc);
198
138
  return contents;
199
139
  };
200
- export const de_DeletePbxColleagueCommand = async (output, context) => {
201
- if (output.statusCode !== 200 && output.statusCode >= 300) {
202
- return de_CommandError(output, context);
203
- }
204
- const contents = map({
205
- $metadata: deserializeMetadata(output),
206
- });
207
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
208
- const doc = take(data, {
209
- 'result': __expectString,
210
- 'type': __expectString,
211
- });
212
- Object.assign(contents, doc);
213
- return contents;
214
- };
215
140
  export const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
216
141
  if (output.statusCode !== 200 && output.statusCode >= 300) {
217
142
  return de_CommandError(output, context);
@@ -385,10 +310,9 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
385
310
  value.length != 0) &&
386
311
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
387
312
  const _c = "count";
388
- const _d = "data";
313
+ const _d = "dialplan";
389
314
  const _de = "department";
390
- const _di = "dialplan";
391
- const _dir = "dir";
315
+ const _di = "dir";
392
316
  const _e = "extension";
393
317
  const _em = "email";
394
318
  const _f = "filter[extension][]";
@@ -1,7 +1,5 @@
1
1
  import { WmsApiClient } from "./WmsApiClient";
2
- import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
3
2
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
4
- import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "./commands/DeletePbxColleagueCommand";
5
3
  import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
6
4
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
7
5
  import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
@@ -10,24 +8,12 @@ import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } fro
10
8
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
11
9
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
12
10
  export interface WmsApi {
13
- /**
14
- * @see {@link CreatePbxColleagueCommand}
15
- */
16
- createPbxColleague(args: CreatePbxColleagueCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxColleagueCommandOutput>;
17
- createPbxColleague(args: CreatePbxColleagueCommandInput, cb: (err: any, data?: CreatePbxColleagueCommandOutput) => void): void;
18
- createPbxColleague(args: CreatePbxColleagueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePbxColleagueCommandOutput) => void): void;
19
11
  /**
20
12
  * @see {@link CreatePbxOAuth2ClientCommand}
21
13
  */
22
14
  createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxOAuth2ClientCommandOutput>;
23
15
  createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, cb: (err: any, data?: CreatePbxOAuth2ClientCommandOutput) => void): void;
24
16
  createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePbxOAuth2ClientCommandOutput) => void): void;
25
- /**
26
- * @see {@link DeletePbxColleagueCommand}
27
- */
28
- deletePbxColleague(args: DeletePbxColleagueCommandInput, options?: __HttpHandlerOptions): Promise<DeletePbxColleagueCommandOutput>;
29
- deletePbxColleague(args: DeletePbxColleagueCommandInput, cb: (err: any, data?: DeletePbxColleagueCommandOutput) => void): void;
30
- deletePbxColleague(args: DeletePbxColleagueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePbxColleagueCommandOutput) => void): void;
31
17
  /**
32
18
  * @see {@link DeletePbxOAuth2ClientCommand}
33
19
  */
@@ -1,6 +1,4 @@
1
- import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
2
1
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
3
- import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "./commands/DeletePbxColleagueCommand";
4
2
  import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
5
3
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
6
4
  import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
@@ -9,6 +7,7 @@ import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } fro
9
7
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
10
8
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
11
9
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
10
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
12
11
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
13
12
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
14
13
  import { Provider, 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, UserAgent as __UserAgent } from "@smithy/types";
@@ -17,11 +16,11 @@ export { __Client };
17
16
  /**
18
17
  * @public
19
18
  */
20
- export type ServiceInputTypes = CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | UpdatePbxOAuth2ClientCommandInput;
19
+ export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | UpdatePbxOAuth2ClientCommandInput;
21
20
  /**
22
21
  * @public
23
22
  */
24
- export type ServiceOutputTypes = CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
23
+ export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
25
24
  /**
26
25
  * @public
27
26
  */
@@ -112,7 +111,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
112
111
  /**
113
112
  * @public
114
113
  */
115
- export type WmsApiClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig;
114
+ export type WmsApiClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig;
116
115
  /**
117
116
  * @public
118
117
  *
@@ -126,7 +125,7 @@ export interface WmsApiClientConfig extends WmsApiClientConfigType {
126
125
  /**
127
126
  * @public
128
127
  */
129
- export type WmsApiClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig;
128
+ export type WmsApiClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig;
130
129
  /**
131
130
  * @public
132
131
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *