@wildix/wms-api-client 1.1.3 → 1.1.4

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,41 @@ 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
+ 'department': smithy_client_1.expectString,
192
+ 'dialplan': smithy_client_1.expectString,
193
+ 'email': smithy_client_1.expectString,
194
+ 'extension': smithy_client_1.expectString,
195
+ 'faxDialplan': smithy_client_1.expectString,
196
+ 'faxNumber': smithy_client_1.expectString,
197
+ 'groupDn': smithy_client_1.expectString,
198
+ 'groupName': smithy_client_1.expectString,
199
+ 'id': smithy_client_1.expectString,
200
+ 'jid': smithy_client_1.expectString,
201
+ 'language': smithy_client_1.expectString,
202
+ 'licenseType': smithy_client_1.expectString,
203
+ 'login': smithy_client_1.expectString,
204
+ 'mobilePhone': smithy_client_1.expectString,
205
+ 'name': smithy_client_1.expectString,
206
+ 'officePhone': smithy_client_1.expectString,
207
+ 'pbx': smithy_client_1.expectString,
208
+ 'pbxDn': smithy_client_1.expectString,
209
+ 'picture': smithy_client_1.expectString,
210
+ 'role': smithy_client_1.expectString,
211
+ 'sourceId': smithy_client_1.expectString,
212
+ });
213
+ Object.assign(contents, doc);
214
+ return contents;
215
+ };
216
+ exports.de_CreatePbxColleagueCommand = de_CreatePbxColleagueCommand;
135
217
  const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
136
218
  if (output.statusCode !== 200 && output.statusCode >= 300) {
137
219
  return de_CommandError(output, context);
@@ -148,6 +230,22 @@ const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
148
230
  return contents;
149
231
  };
150
232
  exports.de_CreatePbxOAuth2ClientCommand = de_CreatePbxOAuth2ClientCommand;
233
+ const de_DeletePbxColleagueCommand = async (output, context) => {
234
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
235
+ return de_CommandError(output, context);
236
+ }
237
+ const contents = (0, smithy_client_1.map)({
238
+ $metadata: deserializeMetadata(output),
239
+ });
240
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
241
+ const doc = (0, smithy_client_1.take)(data, {
242
+ 'result': smithy_client_1.expectString,
243
+ 'type': smithy_client_1.expectString,
244
+ });
245
+ Object.assign(contents, doc);
246
+ return contents;
247
+ };
248
+ exports.de_DeletePbxColleagueCommand = de_DeletePbxColleagueCommand;
151
249
  const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
152
250
  if (output.statusCode !== 200 && output.statusCode >= 300) {
153
251
  return de_CommandError(output, context);
@@ -327,9 +425,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
327
425
  value.length != 0) &&
328
426
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
329
427
  const _c = "count";
330
- const _d = "dialplan";
428
+ const _d = "data";
331
429
  const _de = "department";
332
- const _di = "dir";
430
+ const _di = "dialplan";
431
+ const _dir = "dir";
333
432
  const _e = "extension";
334
433
  const _em = "email";
335
434
  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,40 @@ 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
+ 'department': __expectString,
180
+ 'dialplan': __expectString,
181
+ 'email': __expectString,
182
+ 'extension': __expectString,
183
+ 'faxDialplan': __expectString,
184
+ 'faxNumber': __expectString,
185
+ 'groupDn': __expectString,
186
+ 'groupName': __expectString,
187
+ 'id': __expectString,
188
+ 'jid': __expectString,
189
+ 'language': __expectString,
190
+ 'licenseType': __expectString,
191
+ 'login': __expectString,
192
+ 'mobilePhone': __expectString,
193
+ 'name': __expectString,
194
+ 'officePhone': __expectString,
195
+ 'pbx': __expectString,
196
+ 'pbxDn': __expectString,
197
+ 'picture': __expectString,
198
+ 'role': __expectString,
199
+ 'sourceId': __expectString,
200
+ });
201
+ Object.assign(contents, doc);
202
+ return contents;
203
+ };
125
204
  export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
126
205
  if (output.statusCode !== 200 && output.statusCode >= 300) {
127
206
  return de_CommandError(output, context);
@@ -137,6 +216,21 @@ export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
137
216
  Object.assign(contents, doc);
138
217
  return contents;
139
218
  };
219
+ export const de_DeletePbxColleagueCommand = async (output, context) => {
220
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
221
+ return de_CommandError(output, context);
222
+ }
223
+ const contents = map({
224
+ $metadata: deserializeMetadata(output),
225
+ });
226
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
227
+ const doc = take(data, {
228
+ 'result': __expectString,
229
+ 'type': __expectString,
230
+ });
231
+ Object.assign(contents, doc);
232
+ return contents;
233
+ };
140
234
  export const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
141
235
  if (output.statusCode !== 200 && output.statusCode >= 300) {
142
236
  return de_CommandError(output, context);
@@ -310,9 +404,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
310
404
  value.length != 0) &&
311
405
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
312
406
  const _c = "count";
313
- const _d = "dialplan";
407
+ const _d = "data";
314
408
  const _de = "department";
315
- const _di = "dir";
409
+ const _di = "dialplan";
410
+ const _dir = "dir";
316
411
  const _e = "extension";
317
412
  const _em = "email";
318
413
  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,96 @@
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
+ * // id: "STRING_VALUE", // required
59
+ * // name: "STRING_VALUE",
60
+ * // login: "STRING_VALUE",
61
+ * // extension: "STRING_VALUE", // required
62
+ * // officePhone: "STRING_VALUE",
63
+ * // mobilePhone: "STRING_VALUE",
64
+ * // faxNumber: "STRING_VALUE",
65
+ * // email: "STRING_VALUE",
66
+ * // pbxDn: "STRING_VALUE", // required
67
+ * // pbx: "STRING_VALUE", // required
68
+ * // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
69
+ * // groupName: "STRING_VALUE", // required
70
+ * // groupDn: "STRING_VALUE", // required
71
+ * // language: "STRING_VALUE", // required
72
+ * // dialplan: "STRING_VALUE", // required
73
+ * // faxDialplan: "STRING_VALUE", // required
74
+ * // department: "STRING_VALUE",
75
+ * // picture: "STRING_VALUE", // required
76
+ * // sourceId: "STRING_VALUE",
77
+ * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
78
+ * // jid: "STRING_VALUE", // required
79
+ * // };
80
+ *
81
+ * ```
82
+ *
83
+ * @param CreatePbxColleagueCommandInput - {@link CreatePbxColleagueCommandInput}
84
+ * @returns {@link CreatePbxColleagueCommandOutput}
85
+ * @see {@link CreatePbxColleagueCommandInput} for command's `input` shape.
86
+ * @see {@link CreatePbxColleagueCommandOutput} for command's `response` shape.
87
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
88
+ *
89
+ * @throws {@link WmsUnauthorizedException} (client fault)
90
+ *
91
+ * @throws {@link WmsApiServiceException}
92
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
93
+ *
94
+ */
95
+ export declare class CreatePbxColleagueCommand extends CreatePbxColleagueCommand_base {
96
+ }
@@ -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,63 @@ 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 CreatePbxColleagueOutput {
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;
85
120
  }
86
121
  /**
87
122
  * @public
@@ -95,13 +130,6 @@ export declare const ResponseType: {
95
130
  * @public
96
131
  */
97
132
  export type ResponseType = typeof ResponseType[keyof typeof ResponseType];
98
- /**
99
- * @public
100
- */
101
- export interface CreatePbxOAuth2ClientOutput {
102
- type: ResponseType;
103
- result: PbxOAuth2Client;
104
- }
105
133
  /**
106
134
  * @public
107
135
  */
@@ -115,6 +143,40 @@ export declare class WmsUnauthorizedException extends __BaseException {
115
143
  */
116
144
  constructor(opts: __ExceptionOptionType<WmsUnauthorizedException, __BaseException>);
117
145
  }
146
+ /**
147
+ * @public
148
+ */
149
+ export interface CreatePbxOAuth2ClientInput {
150
+ /**
151
+ * A name of OAuth2 client.
152
+ * @public
153
+ */
154
+ name: string;
155
+ /**
156
+ * Array of redirect URLs, allowed for this client.
157
+ * @public
158
+ */
159
+ redirectUri: (string)[];
160
+ }
161
+ /**
162
+ * @public
163
+ */
164
+ export interface PbxOAuth2Client {
165
+ id: string;
166
+ name: string;
167
+ redirectUri: (string)[];
168
+ secret: string;
169
+ created: number;
170
+ origins: (string)[];
171
+ accessTokenTtl: number;
172
+ }
173
+ /**
174
+ * @public
175
+ */
176
+ export interface CreatePbxOAuth2ClientOutput {
177
+ type: ResponseType;
178
+ result: PbxOAuth2Client;
179
+ }
118
180
  /**
119
181
  * @public
120
182
  */
@@ -136,6 +198,43 @@ export declare class WmsValidationException extends __BaseException {
136
198
  */
137
199
  constructor(opts: __ExceptionOptionType<WmsValidationException, __BaseException>);
138
200
  }
201
+ /**
202
+ * @public
203
+ * @enum
204
+ */
205
+ export declare const PbxColleaguesDeleteField: {
206
+ readonly APPLICATIONS: "applications";
207
+ readonly CALLS: "calls";
208
+ readonly CALL_GROUP_MEMBER: "callGroupMember";
209
+ readonly CHAT_HISTORY: "chatHistory";
210
+ readonly DEVICES: "devices";
211
+ readonly MISSED_CALL_MANAGER: "missedCallManager";
212
+ readonly PAGING_GROUP_MEMBER: "pagingGroupMember";
213
+ readonly PERSONAL_DATA: "personalData";
214
+ readonly PHONEBOOKS: "phonebooks";
215
+ readonly USER: "user";
216
+ readonly USER_AVATAR: "userAvatar";
217
+ readonly VOICEMAILS: "voicemails";
218
+ readonly VOICEMAIL_GREETINGS: "voicemailGreetings";
219
+ };
220
+ /**
221
+ * @public
222
+ */
223
+ export type PbxColleaguesDeleteField = typeof PbxColleaguesDeleteField[keyof typeof PbxColleaguesDeleteField];
224
+ /**
225
+ * @public
226
+ */
227
+ export interface DeletePbxColleagueInput {
228
+ colleagueId: number;
229
+ data?: (PbxColleaguesDeleteField)[];
230
+ }
231
+ /**
232
+ * @public
233
+ */
234
+ export interface DeletePbxColleagueOutput {
235
+ type?: string;
236
+ result?: string;
237
+ }
139
238
  /**
140
239
  * @public
141
240
  */
@@ -329,21 +428,6 @@ export interface GetPbxColleaguesInput {
329
428
  dir?: GetPbxColleaguesDir;
330
429
  searchStrategy?: PbxColleaguesSearchStrategy;
331
430
  }
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
431
  /**
348
432
  * @public
349
433
  */
@@ -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.4",
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": {