@wildix/wms-api-client 1.1.3 → 1.1.5

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.
@@ -2,7 +2,9 @@
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");
5
6
  const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
7
+ const DeletePbxColleagueCommand_1 = require("./commands/DeletePbxColleagueCommand");
6
8
  const DeletePbxOAuth2ClientCommand_1 = require("./commands/DeletePbxOAuth2ClientCommand");
7
9
  const GetPbxAclGroupsPermissionsCommand_1 = require("./commands/GetPbxAclGroupsPermissionsCommand");
8
10
  const GetPbxCallGroupsCommand_1 = require("./commands/GetPbxCallGroupsCommand");
@@ -11,7 +13,9 @@ const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsComm
11
13
  const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
12
14
  const smithy_client_1 = require("@smithy/smithy-client");
13
15
  const commands = {
16
+ CreatePbxColleagueCommand: CreatePbxColleagueCommand_1.CreatePbxColleagueCommand,
14
17
  CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
18
+ DeletePbxColleagueCommand: DeletePbxColleagueCommand_1.DeletePbxColleagueCommand,
15
19
  DeletePbxOAuth2ClientCommand: DeletePbxOAuth2ClientCommand_1.DeletePbxOAuth2ClientCommand,
16
20
  GetPbxAclGroupsPermissionsCommand: GetPbxAclGroupsPermissionsCommand_1.GetPbxAclGroupsPermissionsCommand,
17
21
  GetPbxCallGroupsCommand: GetPbxCallGroupsCommand_1.GetPbxCallGroupsCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePbxColleagueCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class CreatePbxColleagueCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WmsApi", "CreatePbxColleague", {})
15
+ .n("WmsApiClient", "CreatePbxColleagueCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreatePbxColleagueCommand)
18
+ .de(Aws_restJson1_1.de_CreatePbxColleagueCommand)
19
+ .build() {
20
+ }
21
+ exports.CreatePbxColleagueCommand = CreatePbxColleagueCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePbxColleagueCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class DeletePbxColleagueCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WmsApi", "DeletePbxColleague", {})
15
+ .n("WmsApiClient", "DeletePbxColleagueCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeletePbxColleagueCommand)
18
+ .de(Aws_restJson1_1.de_DeletePbxColleagueCommand)
19
+ .build() {
20
+ }
21
+ exports.DeletePbxColleagueCommand = DeletePbxColleagueCommand;
@@ -1,7 +1,9 @@
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);
4
5
  tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
6
+ tslib_1.__exportStar(require("./DeletePbxColleagueCommand"), exports);
5
7
  tslib_1.__exportStar(require("./DeletePbxOAuth2ClientCommand"), exports);
6
8
  tslib_1.__exportStar(require("./GetPbxAclGroupsPermissionsCommand"), exports);
7
9
  tslib_1.__exportStar(require("./GetPbxCallGroupsCommand"), exports);
@@ -1,13 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PbxColleagueRole = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.WmsUnauthorizedException = exports.ResponseType = exports.PbxLicenseType = exports.AclGroupPermissionAbility = void 0;
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;
4
4
  const WmsApiServiceException_1 = require("./WmsApiServiceException");
5
- exports.AclGroupPermissionAbility = {
6
- CAN: "can",
7
- CANNOT: "cannot",
8
- NO: "no",
9
- YES: "yes",
10
- };
11
5
  exports.PbxLicenseType = {
12
6
  BASIC: "basic",
13
7
  BUSINESS: "business",
@@ -15,6 +9,19 @@ exports.PbxLicenseType = {
15
9
  PREMIUM: "premium",
16
10
  WIZYCONF: "wizyconf",
17
11
  };
12
+ exports.AclGroupPermissionAbility = {
13
+ CAN: "can",
14
+ CANNOT: "cannot",
15
+ NO: "no",
16
+ YES: "yes",
17
+ };
18
+ exports.PbxColleagueRole = {
19
+ ADMIN: "admin",
20
+ FAX: "fax",
21
+ PARK_ORBIT: "park_orbit",
22
+ ROOM: "room",
23
+ USER: "user",
24
+ };
18
25
  exports.ResponseType = {
19
26
  ERROR: "error",
20
27
  RESULT: "result",
@@ -50,6 +57,21 @@ class WmsValidationException extends WmsApiServiceException_1.WmsApiServiceExcep
50
57
  }
51
58
  }
52
59
  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
+ };
53
75
  class WmsNotFoundException extends WmsApiServiceException_1.WmsApiServiceException {
54
76
  constructor(opts) {
55
77
  super({
@@ -92,10 +114,3 @@ exports.PbxColleaguesSearchStrategy = {
92
114
  CONTAIN: "contain",
93
115
  STARTS_WITH: "startsWith",
94
116
  };
95
- exports.PbxColleagueRole = {
96
- ADMIN: "admin",
97
- FAX: "fax",
98
- PARK_ORBIT: "park_orbit",
99
- ROOM: "room",
100
- USER: "user",
101
- };
@@ -1,10 +1,41 @@
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_CreatePbxOAuth2ClientCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_CreatePbxOAuth2ClientCommand = void 0;
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;
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;
8
39
  const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
9
40
  const b = (0, core_1.requestBuilder)(input, context);
10
41
  const headers = {
@@ -22,6 +53,22 @@ const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
22
53
  return b.build();
23
54
  };
24
55
  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;
25
72
  const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
26
73
  const b = (0, core_1.requestBuilder)(input, context);
27
74
  const headers = {};
@@ -76,7 +123,7 @@ const se_GetPbxColleaguesCommand = async (input, context) => {
76
123
  [_fil]: [() => input.name !== void 0, () => ((input[_n] || []).map(_entry => _entry))],
77
124
  [_filt]: [() => input.email !== void 0, () => ((input[_em] || []).map(_entry => _entry))],
78
125
  [_filte]: [() => input.role !== void 0, () => ((input[_r] || []).map(_entry => _entry))],
79
- [_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
126
+ [_filter]: [() => input.dialplan !== void 0, () => ((input[_di] || []).map(_entry => _entry))],
80
127
  [_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []).map(_entry => _entry))],
81
128
  [_filterd]: [() => input.department !== void 0, () => ((input[_de] || []).map(_entry => _entry))],
82
129
  [_filterl]: [() => input.login !== void 0, () => ((input[_l] || []).map(_entry => _entry))],
@@ -89,7 +136,7 @@ const se_GetPbxColleaguesCommand = async (input, context) => {
89
136
  [_so]: [() => input.sort !== void 0, () => ((input[_so] || []).map(_entry => _entry))],
90
137
  [_st]: [() => input.start !== void 0, () => (input[_st].toString())],
91
138
  [_c]: [() => input.count !== void 0, () => (input[_c].toString())],
92
- [_di]: [, input[_di]],
139
+ [_dir]: [, input[_dir]],
93
140
  [_sS]: [, input[_sS]],
94
141
  });
95
142
  let body;
@@ -132,6 +179,22 @@ const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
132
179
  return b.build();
133
180
  };
134
181
  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;
135
198
  const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
136
199
  if (output.statusCode !== 200 && output.statusCode >= 300) {
137
200
  return de_CommandError(output, context);
@@ -148,6 +211,22 @@ const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
148
211
  return contents;
149
212
  };
150
213
  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;
151
230
  const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
152
231
  if (output.statusCode !== 200 && output.statusCode >= 300) {
153
232
  return de_CommandError(output, context);
@@ -327,9 +406,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
327
406
  value.length != 0) &&
328
407
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
329
408
  const _c = "count";
330
- const _d = "dialplan";
409
+ const _d = "data";
331
410
  const _de = "department";
332
- const _di = "dir";
411
+ const _di = "dialplan";
412
+ const _dir = "dir";
333
413
  const _e = "extension";
334
414
  const _em = "email";
335
415
  const _f = "filter[extension][]";
package/dist-es/WmsApi.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { WmsApiClient, } from "./WmsApiClient";
2
+ import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
2
3
  import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
4
+ import { DeletePbxColleagueCommand, } from "./commands/DeletePbxColleagueCommand";
3
5
  import { DeletePbxOAuth2ClientCommand, } from "./commands/DeletePbxOAuth2ClientCommand";
4
6
  import { GetPbxAclGroupsPermissionsCommand, } from "./commands/GetPbxAclGroupsPermissionsCommand";
5
7
  import { GetPbxCallGroupsCommand, } from "./commands/GetPbxCallGroupsCommand";
@@ -8,7 +10,9 @@ import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsComma
8
10
  import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
9
11
  import { createAggregatedClient } from "@smithy/smithy-client";
10
12
  const commands = {
13
+ CreatePbxColleagueCommand,
11
14
  CreatePbxOAuth2ClientCommand,
15
+ DeletePbxColleagueCommand,
12
16
  DeletePbxOAuth2ClientCommand,
13
17
  GetPbxAclGroupsPermissionsCommand,
14
18
  GetPbxCallGroupsCommand,
@@ -0,0 +1,17 @@
1
+ import { de_CreatePbxColleagueCommand, se_CreatePbxColleagueCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class CreatePbxColleagueCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "CreatePbxColleague", {})
12
+ .n("WmsApiClient", "CreatePbxColleagueCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreatePbxColleagueCommand)
15
+ .de(de_CreatePbxColleagueCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_DeletePbxColleagueCommand, se_DeletePbxColleagueCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class DeletePbxColleagueCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "DeletePbxColleague", {})
12
+ .n("WmsApiClient", "DeletePbxColleagueCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeletePbxColleagueCommand)
15
+ .de(de_DeletePbxColleagueCommand)
16
+ .build() {
17
+ }
@@ -1,4 +1,6 @@
1
+ export * from "./CreatePbxColleagueCommand";
1
2
  export * from "./CreatePbxOAuth2ClientCommand";
3
+ export * from "./DeletePbxColleagueCommand";
2
4
  export * from "./DeletePbxOAuth2ClientCommand";
3
5
  export * from "./GetPbxAclGroupsPermissionsCommand";
4
6
  export * from "./GetPbxCallGroupsCommand";
@@ -1,10 +1,4 @@
1
1
  import { WmsApiServiceException as __BaseException } from "./WmsApiServiceException";
2
- export const AclGroupPermissionAbility = {
3
- CAN: "can",
4
- CANNOT: "cannot",
5
- NO: "no",
6
- YES: "yes",
7
- };
8
2
  export const PbxLicenseType = {
9
3
  BASIC: "basic",
10
4
  BUSINESS: "business",
@@ -12,6 +6,19 @@ export const PbxLicenseType = {
12
6
  PREMIUM: "premium",
13
7
  WIZYCONF: "wizyconf",
14
8
  };
9
+ export const AclGroupPermissionAbility = {
10
+ CAN: "can",
11
+ CANNOT: "cannot",
12
+ NO: "no",
13
+ YES: "yes",
14
+ };
15
+ export const PbxColleagueRole = {
16
+ ADMIN: "admin",
17
+ FAX: "fax",
18
+ PARK_ORBIT: "park_orbit",
19
+ ROOM: "room",
20
+ USER: "user",
21
+ };
15
22
  export const ResponseType = {
16
23
  ERROR: "error",
17
24
  RESULT: "result",
@@ -45,6 +52,21 @@ export class WmsValidationException extends __BaseException {
45
52
  this.errors = opts.errors;
46
53
  }
47
54
  }
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
+ };
48
70
  export class WmsNotFoundException extends __BaseException {
49
71
  constructor(opts) {
50
72
  super({
@@ -86,10 +108,3 @@ export const PbxColleaguesSearchStrategy = {
86
108
  CONTAIN: "contain",
87
109
  STARTS_WITH: "startsWith",
88
110
  };
89
- export const PbxColleagueRole = {
90
- ADMIN: "admin",
91
- FAX: "fax",
92
- PARK_ORBIT: "park_orbit",
93
- ROOM: "room",
94
- USER: "user",
95
- };
@@ -2,6 +2,36 @@ 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
+ };
5
35
  export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
6
36
  const b = rb(input, context);
7
37
  const headers = {
@@ -18,6 +48,21 @@ export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
18
48
  .b(body);
19
49
  return b.build();
20
50
  };
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
+ };
21
66
  export const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
22
67
  const b = rb(input, context);
23
68
  const headers = {};
@@ -69,7 +114,7 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
69
114
  [_fil]: [() => input.name !== void 0, () => ((input[_n] || []).map(_entry => _entry))],
70
115
  [_filt]: [() => input.email !== void 0, () => ((input[_em] || []).map(_entry => _entry))],
71
116
  [_filte]: [() => input.role !== void 0, () => ((input[_r] || []).map(_entry => _entry))],
72
- [_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
117
+ [_filter]: [() => input.dialplan !== void 0, () => ((input[_di] || []).map(_entry => _entry))],
73
118
  [_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []).map(_entry => _entry))],
74
119
  [_filterd]: [() => input.department !== void 0, () => ((input[_de] || []).map(_entry => _entry))],
75
120
  [_filterl]: [() => input.login !== void 0, () => ((input[_l] || []).map(_entry => _entry))],
@@ -82,7 +127,7 @@ export const se_GetPbxColleaguesCommand = async (input, context) => {
82
127
  [_so]: [() => input.sort !== void 0, () => ((input[_so] || []).map(_entry => _entry))],
83
128
  [_st]: [() => input.start !== void 0, () => (input[_st].toString())],
84
129
  [_c]: [() => input.count !== void 0, () => (input[_c].toString())],
85
- [_di]: [, input[_di]],
130
+ [_dir]: [, input[_dir]],
86
131
  [_sS]: [, input[_sS]],
87
132
  });
88
133
  let body;
@@ -122,6 +167,21 @@ export const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
122
167
  .b(body);
123
168
  return b.build();
124
169
  };
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
+ };
125
185
  export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
126
186
  if (output.statusCode !== 200 && output.statusCode >= 300) {
127
187
  return de_CommandError(output, context);
@@ -137,6 +197,21 @@ export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
137
197
  Object.assign(contents, doc);
138
198
  return contents;
139
199
  };
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
+ };
140
215
  export const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
141
216
  if (output.statusCode !== 200 && output.statusCode >= 300) {
142
217
  return de_CommandError(output, context);
@@ -310,9 +385,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
310
385
  value.length != 0) &&
311
386
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
312
387
  const _c = "count";
313
- const _d = "dialplan";
388
+ const _d = "data";
314
389
  const _de = "department";
315
- const _di = "dir";
390
+ const _di = "dialplan";
391
+ const _dir = "dir";
316
392
  const _e = "extension";
317
393
  const _em = "email";
318
394
  const _f = "filter[extension][]";
@@ -1,5 +1,7 @@
1
1
  import { WmsApiClient } from "./WmsApiClient";
2
+ import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
2
3
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
4
+ import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "./commands/DeletePbxColleagueCommand";
3
5
  import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
4
6
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
5
7
  import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
@@ -8,12 +10,24 @@ import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } fro
8
10
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
9
11
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
10
12
  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;
11
19
  /**
12
20
  * @see {@link CreatePbxOAuth2ClientCommand}
13
21
  */
14
22
  createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxOAuth2ClientCommandOutput>;
15
23
  createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, cb: (err: any, data?: CreatePbxOAuth2ClientCommandOutput) => void): void;
16
24
  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;
17
31
  /**
18
32
  * @see {@link DeletePbxOAuth2ClientCommand}
19
33
  */
@@ -1,4 +1,6 @@
1
+ import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
1
2
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
3
+ import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "./commands/DeletePbxColleagueCommand";
2
4
  import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
3
5
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
4
6
  import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
@@ -15,11 +17,11 @@ export { __Client };
15
17
  /**
16
18
  * @public
17
19
  */
18
- export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | UpdatePbxOAuth2ClientCommandInput;
20
+ export type ServiceInputTypes = CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | UpdatePbxOAuth2ClientCommandInput;
19
21
  /**
20
22
  * @public
21
23
  */
22
- export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
24
+ export type ServiceOutputTypes = CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
23
25
  /**
24
26
  * @public
25
27
  */
@@ -0,0 +1,99 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { CreatePbxColleagueInput, CreatePbxColleagueOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link CreatePbxColleagueCommand}.
13
+ */
14
+ export interface CreatePbxColleagueCommandInput extends CreatePbxColleagueInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link CreatePbxColleagueCommand}.
20
+ */
21
+ export interface CreatePbxColleagueCommandOutput extends CreatePbxColleagueOutput, __MetadataBearer {
22
+ }
23
+ declare const CreatePbxColleagueCommand_base: {
24
+ new (input: CreatePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: CreatePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * @public
30
+ *
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WmsApiClient, CreatePbxColleagueCommand } from "@wildix/wms-api-client"; // ES Modules import
35
+ * // const { WmsApiClient, CreatePbxColleagueCommand } = require("@wildix/wms-api-client"); // CommonJS import
36
+ * const client = new WmsApiClient(config);
37
+ * const input = { // CreatePbxColleagueInput
38
+ * extension: "STRING_VALUE", // required
39
+ * name: "STRING_VALUE", // required
40
+ * officePhone: "STRING_VALUE",
41
+ * mobilePhone: "STRING_VALUE",
42
+ * faxNumber: "STRING_VALUE",
43
+ * email: "STRING_VALUE",
44
+ * role: "admin" || "user" || "fax" || "park_orbit" || "room",
45
+ * groupDn: "STRING_VALUE",
46
+ * language: "STRING_VALUE",
47
+ * dialplan: "STRING_VALUE",
48
+ * faxDialplan: "STRING_VALUE",
49
+ * department: "STRING_VALUE",
50
+ * login: "STRING_VALUE",
51
+ * password: "STRING_VALUE",
52
+ * sipPassword: "STRING_VALUE",
53
+ * licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf",
54
+ * };
55
+ * const command = new CreatePbxColleagueCommand(input);
56
+ * const response = await client.send(command);
57
+ * // { // CreatePbxColleagueOutput
58
+ * // type: "STRING_VALUE", // required
59
+ * // result: { // PbxColleague
60
+ * // id: "STRING_VALUE", // required
61
+ * // name: "STRING_VALUE",
62
+ * // login: "STRING_VALUE",
63
+ * // extension: "STRING_VALUE", // required
64
+ * // officePhone: "STRING_VALUE",
65
+ * // mobilePhone: "STRING_VALUE",
66
+ * // faxNumber: "STRING_VALUE",
67
+ * // email: "STRING_VALUE",
68
+ * // pbxDn: "STRING_VALUE", // required
69
+ * // pbx: "STRING_VALUE", // required
70
+ * // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
71
+ * // groupName: "STRING_VALUE", // required
72
+ * // groupDn: "STRING_VALUE", // required
73
+ * // language: "STRING_VALUE", // required
74
+ * // dialplan: "STRING_VALUE", // required
75
+ * // faxDialplan: "STRING_VALUE", // required
76
+ * // department: "STRING_VALUE",
77
+ * // picture: "STRING_VALUE", // required
78
+ * // sourceId: "STRING_VALUE",
79
+ * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
80
+ * // jid: "STRING_VALUE", // required
81
+ * // },
82
+ * // };
83
+ *
84
+ * ```
85
+ *
86
+ * @param CreatePbxColleagueCommandInput - {@link CreatePbxColleagueCommandInput}
87
+ * @returns {@link CreatePbxColleagueCommandOutput}
88
+ * @see {@link CreatePbxColleagueCommandInput} for command's `input` shape.
89
+ * @see {@link CreatePbxColleagueCommandOutput} for command's `response` shape.
90
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
91
+ *
92
+ * @throws {@link WmsUnauthorizedException} (client fault)
93
+ *
94
+ * @throws {@link WmsApiServiceException}
95
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
96
+ *
97
+ */
98
+ export declare class CreatePbxColleagueCommand extends CreatePbxColleagueCommand_base {
99
+ }
@@ -0,0 +1,65 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { DeletePbxColleagueInput, DeletePbxColleagueOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DeletePbxColleagueCommand}.
13
+ */
14
+ export interface DeletePbxColleagueCommandInput extends DeletePbxColleagueInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DeletePbxColleagueCommand}.
20
+ */
21
+ export interface DeletePbxColleagueCommandOutput extends DeletePbxColleagueOutput, __MetadataBearer {
22
+ }
23
+ declare const DeletePbxColleagueCommand_base: {
24
+ new (input: DeletePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeletePbxColleagueCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * @public
30
+ *
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WmsApiClient, DeletePbxColleagueCommand } from "@wildix/wms-api-client"; // ES Modules import
35
+ * // const { WmsApiClient, DeletePbxColleagueCommand } = require("@wildix/wms-api-client"); // CommonJS import
36
+ * const client = new WmsApiClient(config);
37
+ * const input = { // DeletePbxColleagueInput
38
+ * colleagueId: Number("int"), // required
39
+ * data: [ // PbxColleagueDeleteFieldList
40
+ * "user" || "userAvatar" || "personalData" || "voicemails" || "voicemailGreetings" || "calls" || "chatHistory" || "phonebooks" || "callGroupMember" || "missedCallManager" || "pagingGroupMember" || "applications" || "devices",
41
+ * ],
42
+ * };
43
+ * const command = new DeletePbxColleagueCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // DeletePbxColleagueOutput
46
+ * // type: "STRING_VALUE",
47
+ * // result: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param DeletePbxColleagueCommandInput - {@link DeletePbxColleagueCommandInput}
53
+ * @returns {@link DeletePbxColleagueCommandOutput}
54
+ * @see {@link DeletePbxColleagueCommandInput} for command's `input` shape.
55
+ * @see {@link DeletePbxColleagueCommandOutput} for command's `response` shape.
56
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
57
+ *
58
+ * @throws {@link WmsUnauthorizedException} (client fault)
59
+ *
60
+ * @throws {@link WmsApiServiceException}
61
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
62
+ *
63
+ */
64
+ export declare class DeletePbxColleagueCommand extends DeletePbxColleagueCommand_base {
65
+ }
@@ -1,4 +1,6 @@
1
+ export * from "./CreatePbxColleagueCommand";
1
2
  export * from "./CreatePbxOAuth2ClientCommand";
3
+ export * from "./DeletePbxColleagueCommand";
2
4
  export * from "./DeletePbxOAuth2ClientCommand";
3
5
  export * from "./GetPbxAclGroupsPermissionsCommand";
4
6
  export * from "./GetPbxCallGroupsCommand";
@@ -1,5 +1,20 @@
1
1
  import { WmsApiServiceException as __BaseException } from "./WmsApiServiceException";
2
2
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
3
+ /**
4
+ * @public
5
+ * @enum
6
+ */
7
+ export declare const PbxLicenseType: {
8
+ readonly BASIC: "basic";
9
+ readonly BUSINESS: "business";
10
+ readonly ESSENTIAL: "essential";
11
+ readonly PREMIUM: "premium";
12
+ readonly WIZYCONF: "wizyconf";
13
+ };
14
+ /**
15
+ * @public
16
+ */
17
+ export type PbxLicenseType = typeof PbxLicenseType[keyof typeof PbxLicenseType];
3
18
  /**
4
19
  * @public
5
20
  * @enum
@@ -45,43 +60,70 @@ export interface AclGroupPermission {
45
60
  * @public
46
61
  * @enum
47
62
  */
48
- export declare const PbxLicenseType: {
49
- readonly BASIC: "basic";
50
- readonly BUSINESS: "business";
51
- readonly ESSENTIAL: "essential";
52
- readonly PREMIUM: "premium";
53
- readonly WIZYCONF: "wizyconf";
63
+ export declare const PbxColleagueRole: {
64
+ readonly ADMIN: "admin";
65
+ readonly FAX: "fax";
66
+ readonly PARK_ORBIT: "park_orbit";
67
+ readonly ROOM: "room";
68
+ readonly USER: "user";
54
69
  };
55
70
  /**
56
71
  * @public
57
72
  */
58
- export type PbxLicenseType = typeof PbxLicenseType[keyof typeof PbxLicenseType];
73
+ export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
59
74
  /**
60
75
  * @public
61
76
  */
62
- export interface CreatePbxOAuth2ClientInput {
63
- /**
64
- * A name of OAuth2 client.
65
- * @public
66
- */
77
+ export interface CreatePbxColleagueInput {
78
+ extension: string;
67
79
  name: string;
68
- /**
69
- * Array of redirect URLs, allowed for this client.
70
- * @public
71
- */
72
- redirectUri: (string)[];
80
+ officePhone?: string;
81
+ mobilePhone?: string;
82
+ faxNumber?: string;
83
+ email?: string;
84
+ role?: PbxColleagueRole;
85
+ groupDn?: string;
86
+ language?: string;
87
+ dialplan?: string;
88
+ faxDialplan?: string;
89
+ department?: string;
90
+ login?: string;
91
+ password?: string;
92
+ sipPassword?: string;
93
+ licenseType?: PbxLicenseType;
73
94
  }
74
95
  /**
75
96
  * @public
76
97
  */
77
- export interface PbxOAuth2Client {
98
+ export interface PbxColleague {
78
99
  id: string;
79
- name: string;
80
- redirectUri: (string)[];
81
- secret: string;
82
- created: number;
83
- origins: (string)[];
84
- accessTokenTtl: number;
100
+ name?: string;
101
+ login?: string;
102
+ extension: string;
103
+ officePhone?: string;
104
+ mobilePhone?: string;
105
+ faxNumber?: string;
106
+ email?: string;
107
+ pbxDn: string;
108
+ pbx: string;
109
+ role: PbxColleagueRole;
110
+ groupName: string;
111
+ groupDn: string;
112
+ language: string;
113
+ dialplan: string;
114
+ faxDialplan: string;
115
+ department?: string;
116
+ picture: string;
117
+ sourceId?: string;
118
+ licenseType: PbxLicenseType;
119
+ jid: string;
120
+ }
121
+ /**
122
+ * @public
123
+ */
124
+ export interface CreatePbxColleagueOutput {
125
+ type: string;
126
+ result: PbxColleague;
85
127
  }
86
128
  /**
87
129
  * @public
@@ -95,13 +137,6 @@ export declare const ResponseType: {
95
137
  * @public
96
138
  */
97
139
  export type ResponseType = typeof ResponseType[keyof typeof ResponseType];
98
- /**
99
- * @public
100
- */
101
- export interface CreatePbxOAuth2ClientOutput {
102
- type: ResponseType;
103
- result: PbxOAuth2Client;
104
- }
105
140
  /**
106
141
  * @public
107
142
  */
@@ -115,6 +150,40 @@ export declare class WmsUnauthorizedException extends __BaseException {
115
150
  */
116
151
  constructor(opts: __ExceptionOptionType<WmsUnauthorizedException, __BaseException>);
117
152
  }
153
+ /**
154
+ * @public
155
+ */
156
+ export interface CreatePbxOAuth2ClientInput {
157
+ /**
158
+ * A name of OAuth2 client.
159
+ * @public
160
+ */
161
+ name: string;
162
+ /**
163
+ * Array of redirect URLs, allowed for this client.
164
+ * @public
165
+ */
166
+ redirectUri: (string)[];
167
+ }
168
+ /**
169
+ * @public
170
+ */
171
+ export interface PbxOAuth2Client {
172
+ id: string;
173
+ name: string;
174
+ redirectUri: (string)[];
175
+ secret: string;
176
+ created: number;
177
+ origins: (string)[];
178
+ accessTokenTtl: number;
179
+ }
180
+ /**
181
+ * @public
182
+ */
183
+ export interface CreatePbxOAuth2ClientOutput {
184
+ type: ResponseType;
185
+ result: PbxOAuth2Client;
186
+ }
118
187
  /**
119
188
  * @public
120
189
  */
@@ -136,6 +205,43 @@ export declare class WmsValidationException extends __BaseException {
136
205
  */
137
206
  constructor(opts: __ExceptionOptionType<WmsValidationException, __BaseException>);
138
207
  }
208
+ /**
209
+ * @public
210
+ * @enum
211
+ */
212
+ export declare const PbxColleaguesDeleteField: {
213
+ readonly APPLICATIONS: "applications";
214
+ readonly CALLS: "calls";
215
+ readonly CALL_GROUP_MEMBER: "callGroupMember";
216
+ readonly CHAT_HISTORY: "chatHistory";
217
+ readonly DEVICES: "devices";
218
+ readonly MISSED_CALL_MANAGER: "missedCallManager";
219
+ readonly PAGING_GROUP_MEMBER: "pagingGroupMember";
220
+ readonly PERSONAL_DATA: "personalData";
221
+ readonly PHONEBOOKS: "phonebooks";
222
+ readonly USER: "user";
223
+ readonly USER_AVATAR: "userAvatar";
224
+ readonly VOICEMAILS: "voicemails";
225
+ readonly VOICEMAIL_GREETINGS: "voicemailGreetings";
226
+ };
227
+ /**
228
+ * @public
229
+ */
230
+ export type PbxColleaguesDeleteField = typeof PbxColleaguesDeleteField[keyof typeof PbxColleaguesDeleteField];
231
+ /**
232
+ * @public
233
+ */
234
+ export interface DeletePbxColleagueInput {
235
+ colleagueId: number;
236
+ data?: (PbxColleaguesDeleteField)[];
237
+ }
238
+ /**
239
+ * @public
240
+ */
241
+ export interface DeletePbxColleagueOutput {
242
+ type?: string;
243
+ result?: string;
244
+ }
139
245
  /**
140
246
  * @public
141
247
  */
@@ -329,47 +435,6 @@ export interface GetPbxColleaguesInput {
329
435
  dir?: GetPbxColleaguesDir;
330
436
  searchStrategy?: PbxColleaguesSearchStrategy;
331
437
  }
332
- /**
333
- * @public
334
- * @enum
335
- */
336
- export declare const PbxColleagueRole: {
337
- readonly ADMIN: "admin";
338
- readonly FAX: "fax";
339
- readonly PARK_ORBIT: "park_orbit";
340
- readonly ROOM: "room";
341
- readonly USER: "user";
342
- };
343
- /**
344
- * @public
345
- */
346
- export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
347
- /**
348
- * @public
349
- */
350
- export interface PbxColleague {
351
- id: string;
352
- name?: string;
353
- login?: string;
354
- extension: string;
355
- officePhone?: string;
356
- mobilePhone?: string;
357
- faxNumber?: string;
358
- email?: string;
359
- pbxDn: string;
360
- pbx: string;
361
- role: PbxColleagueRole;
362
- groupName: string;
363
- groupDn: string;
364
- language: string;
365
- dialplan: string;
366
- faxDialplan: string;
367
- department?: string;
368
- picture: string;
369
- sourceId?: string;
370
- licenseType: PbxLicenseType;
371
- jid: string;
372
- }
373
438
  /**
374
439
  * @public
375
440
  */
@@ -1,4 +1,6 @@
1
+ import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "../commands/CreatePbxColleagueCommand";
1
2
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "../commands/CreatePbxOAuth2ClientCommand";
3
+ import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "../commands/DeletePbxColleagueCommand";
2
4
  import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "../commands/DeletePbxOAuth2ClientCommand";
3
5
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "../commands/GetPbxAclGroupsPermissionsCommand";
4
6
  import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "../commands/GetPbxCallGroupsCommand";
@@ -7,10 +9,18 @@ import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } fro
7
9
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
8
10
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
9
11
  import { SerdeContext as __SerdeContext } from "@smithy/types";
12
+ /**
13
+ * serializeAws_restJson1CreatePbxColleagueCommand
14
+ */
15
+ export declare const se_CreatePbxColleagueCommand: (input: CreatePbxColleagueCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
10
16
  /**
11
17
  * serializeAws_restJson1CreatePbxOAuth2ClientCommand
12
18
  */
13
19
  export declare const se_CreatePbxOAuth2ClientCommand: (input: CreatePbxOAuth2ClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
+ /**
21
+ * serializeAws_restJson1DeletePbxColleagueCommand
22
+ */
23
+ export declare const se_DeletePbxColleagueCommand: (input: DeletePbxColleagueCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
24
  /**
15
25
  * serializeAws_restJson1DeletePbxOAuth2ClientCommand
16
26
  */
@@ -35,10 +45,18 @@ export declare const se_GetPbxOAuth2ClientsCommand: (input: GetPbxOAuth2ClientsC
35
45
  * serializeAws_restJson1UpdatePbxOAuth2ClientCommand
36
46
  */
37
47
  export declare const se_UpdatePbxOAuth2ClientCommand: (input: UpdatePbxOAuth2ClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
48
+ /**
49
+ * deserializeAws_restJson1CreatePbxColleagueCommand
50
+ */
51
+ export declare const de_CreatePbxColleagueCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePbxColleagueCommandOutput>;
38
52
  /**
39
53
  * deserializeAws_restJson1CreatePbxOAuth2ClientCommand
40
54
  */
41
55
  export declare const de_CreatePbxOAuth2ClientCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePbxOAuth2ClientCommandOutput>;
56
+ /**
57
+ * deserializeAws_restJson1DeletePbxColleagueCommand
58
+ */
59
+ export declare const de_DeletePbxColleagueCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePbxColleagueCommandOutput>;
42
60
  /**
43
61
  * deserializeAws_restJson1DeletePbxOAuth2ClientCommand
44
62
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wms-api-client",
3
3
  "description": "@wildix/wms-api-client client",
4
- "version": "1.1.3",
4
+ "version": "1.1.5",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,45 +19,44 @@
19
19
  "tslib": "^2.6.2",
20
20
  "@aws-crypto/sha256-browser": "3.0.0",
21
21
  "@aws-crypto/sha256-js": "3.0.0",
22
- "@aws-sdk/middleware-user-agent": "3.428.0",
22
+ "@aws-sdk/middleware-user-agent": "3.587.0",
23
23
  "@aws-sdk/types": "latest",
24
- "@aws-sdk/util-user-agent-browser": "3.428.0",
25
- "@aws-sdk/util-user-agent-node": "3.428.0",
26
- "@smithy/config-resolver": "^2.2.0",
27
- "@smithy/core": "^1.4.0",
28
- "@smithy/fetch-http-handler": "^2.5.0",
29
- "@smithy/hash-node": "^2.2.0",
30
- "@smithy/invalid-dependency": "^2.2.0",
31
- "@smithy/middleware-content-length": "^2.2.0",
32
- "@smithy/middleware-retry": "^2.2.0",
33
- "@smithy/middleware-serde": "^2.3.0",
34
- "@smithy/middleware-stack": "^2.2.0",
35
- "@smithy/node-config-provider": "^2.3.0",
36
- "@smithy/node-http-handler": "^2.5.0",
37
- "@smithy/protocol-http": "^3.3.0",
38
- "@smithy/smithy-client": "^2.5.0",
39
- "@smithy/types": "^2.12.0",
40
- "@smithy/url-parser": "^2.2.0",
41
- "@smithy/util-base64": "^2.3.0",
42
- "@smithy/util-body-length-browser": "^2.2.0",
43
- "@smithy/util-body-length-node": "^2.3.0",
44
- "@smithy/util-defaults-mode-browser": "^2.2.0",
45
- "@smithy/util-defaults-mode-node": "^2.3.0",
46
- "@smithy/util-retry": "^2.2.0",
47
- "@smithy/util-utf8": "^2.3.0",
24
+ "@aws-sdk/util-user-agent-browser": "3.577.0",
25
+ "@aws-sdk/util-user-agent-node": "3.577.0",
26
+ "@smithy/config-resolver": "^3.0.0",
27
+ "@smithy/core": "^2.0.1",
28
+ "@smithy/fetch-http-handler": "^3.0.1",
29
+ "@smithy/hash-node": "^3.0.0",
30
+ "@smithy/invalid-dependency": "^3.0.0",
31
+ "@smithy/middleware-content-length": "^3.0.0",
32
+ "@smithy/middleware-retry": "^3.0.1",
33
+ "@smithy/middleware-serde": "^3.0.0",
34
+ "@smithy/middleware-stack": "^3.0.0",
35
+ "@smithy/node-config-provider": "^3.0.0",
36
+ "@smithy/node-http-handler": "^3.0.0",
37
+ "@smithy/protocol-http": "^4.0.0",
38
+ "@smithy/smithy-client": "^3.0.1",
39
+ "@smithy/types": "^3.0.0",
40
+ "@smithy/url-parser": "^3.0.0",
41
+ "@smithy/util-base64": "^3.0.0",
42
+ "@smithy/util-body-length-browser": "^3.0.0",
43
+ "@smithy/util-body-length-node": "^3.0.0",
44
+ "@smithy/util-defaults-mode-browser": "^3.0.1",
45
+ "@smithy/util-defaults-mode-node": "^3.0.1",
46
+ "@smithy/util-retry": "^3.0.0",
47
+ "@smithy/util-utf8": "^3.0.0",
48
48
  "@wildix/smithy-utils": "^1.0.2"
49
49
  },
50
50
  "devDependencies": {
51
- "@tsconfig/node14": "1.0.3",
51
+ "@tsconfig/node16": "16.1.3",
52
52
  "concurrently": "7.0.0",
53
53
  "downlevel-dts": "0.10.1",
54
54
  "rimraf": "^3.0.0",
55
55
  "typescript": "~4.9.5",
56
- "@smithy/service-client-documentation-generator": "^2.2.0",
57
- "@types/node": "^14.14.31"
56
+ "@types/node": "^16.18.96"
58
57
  },
59
58
  "engines": {
60
- "node": ">=14.0.0"
59
+ "node": ">=16.0.0"
61
60
  },
62
61
  "typesVersions": {
63
62
  "<4.0": {