@wildix/wms-api-client 1.1.24 → 1.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist-cjs/WmsApi.js +0 -18
  2. package/dist-cjs/commands/index.js +0 -9
  3. package/dist-cjs/models/models_0.js +1 -35
  4. package/dist-cjs/protocols/Aws_restJson1.js +1 -348
  5. package/dist-es/WmsApi.js +0 -18
  6. package/dist-es/commands/index.js +0 -9
  7. package/dist-es/models/models_0.js +0 -32
  8. package/dist-es/protocols/Aws_restJson1.js +1 -329
  9. package/dist-types/WmsApi.d.ts +0 -65
  10. package/dist-types/WmsApiClient.d.ts +2 -11
  11. package/dist-types/commands/CreatePbxAclGroupCommand.d.ts +0 -2
  12. package/dist-types/commands/CreatePbxColleagueCommand.d.ts +0 -2
  13. package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +0 -2
  14. package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +0 -2
  15. package/dist-types/commands/DeletePbxColleagueCommand.d.ts +0 -2
  16. package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +0 -2
  17. package/dist-types/commands/GetColleagueByIdCommand.d.ts +0 -2
  18. package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +0 -2
  19. package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +0 -2
  20. package/dist-types/commands/GetPbxColleaguesCommand.d.ts +0 -2
  21. package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +1 -2
  22. package/dist-types/commands/GetPbxesCommand.d.ts +0 -2
  23. package/dist-types/commands/GetPersonalInfoCommand.d.ts +0 -2
  24. package/dist-types/commands/NotificationsCommand.d.ts +0 -2
  25. package/dist-types/commands/OriginateCallCommand.d.ts +0 -2
  26. package/dist-types/commands/OriginateCommand.d.ts +0 -2
  27. package/dist-types/commands/ReloadBroadcastsCommand.d.ts +0 -2
  28. package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +0 -2
  29. package/dist-types/commands/index.d.ts +0 -9
  30. package/dist-types/models/models_0.d.ts +8 -285
  31. package/dist-types/protocols/Aws_restJson1.d.ts +0 -81
  32. package/package.json +1 -1
  33. package/dist-cjs/commands/CallControlAnswerCommand.js +0 -21
  34. package/dist-cjs/commands/CallControlAttendantTransferCommand.js +0 -21
  35. package/dist-cjs/commands/CallControlBlindTransferCommand.js +0 -21
  36. package/dist-cjs/commands/CallControlHangupCommand.js +0 -21
  37. package/dist-cjs/commands/CallControlHoldCommand.js +0 -21
  38. package/dist-cjs/commands/CallControlMakeCallCommand.js +0 -21
  39. package/dist-cjs/commands/CallControlUnholdCommand.js +0 -21
  40. package/dist-cjs/commands/ListUserActiveCallsCommand.js +0 -21
  41. package/dist-cjs/commands/ListUserDevicesCommand.js +0 -21
  42. package/dist-es/commands/CallControlAnswerCommand.js +0 -17
  43. package/dist-es/commands/CallControlAttendantTransferCommand.js +0 -17
  44. package/dist-es/commands/CallControlBlindTransferCommand.js +0 -17
  45. package/dist-es/commands/CallControlHangupCommand.js +0 -17
  46. package/dist-es/commands/CallControlHoldCommand.js +0 -17
  47. package/dist-es/commands/CallControlMakeCallCommand.js +0 -17
  48. package/dist-es/commands/CallControlUnholdCommand.js +0 -17
  49. package/dist-es/commands/ListUserActiveCallsCommand.js +0 -17
  50. package/dist-es/commands/ListUserDevicesCommand.js +0 -17
  51. package/dist-types/commands/CallControlAnswerCommand.d.ts +0 -80
  52. package/dist-types/commands/CallControlAttendantTransferCommand.d.ts +0 -80
  53. package/dist-types/commands/CallControlBlindTransferCommand.d.ts +0 -80
  54. package/dist-types/commands/CallControlHangupCommand.d.ts +0 -80
  55. package/dist-types/commands/CallControlHoldCommand.d.ts +0 -79
  56. package/dist-types/commands/CallControlMakeCallCommand.d.ts +0 -78
  57. package/dist-types/commands/CallControlUnholdCommand.d.ts +0 -79
  58. package/dist-types/commands/ListUserActiveCallsCommand.d.ts +0 -86
  59. package/dist-types/commands/ListUserDevicesCommand.d.ts +0 -85
@@ -2,13 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WmsApi = void 0;
4
4
  const WmsApiClient_1 = require("./WmsApiClient");
5
- const CallControlAnswerCommand_1 = require("./commands/CallControlAnswerCommand");
6
- const CallControlAttendantTransferCommand_1 = require("./commands/CallControlAttendantTransferCommand");
7
- const CallControlBlindTransferCommand_1 = require("./commands/CallControlBlindTransferCommand");
8
- const CallControlHangupCommand_1 = require("./commands/CallControlHangupCommand");
9
- const CallControlHoldCommand_1 = require("./commands/CallControlHoldCommand");
10
- const CallControlMakeCallCommand_1 = require("./commands/CallControlMakeCallCommand");
11
- const CallControlUnholdCommand_1 = require("./commands/CallControlUnholdCommand");
12
5
  const CreatePbxAclGroupCommand_1 = require("./commands/CreatePbxAclGroupCommand");
13
6
  const CreatePbxColleagueCommand_1 = require("./commands/CreatePbxColleagueCommand");
14
7
  const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
@@ -22,8 +15,6 @@ const GetPbxColleaguesCommand_1 = require("./commands/GetPbxColleaguesCommand");
22
15
  const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsCommand");
23
16
  const GetPbxesCommand_1 = require("./commands/GetPbxesCommand");
24
17
  const GetPersonalInfoCommand_1 = require("./commands/GetPersonalInfoCommand");
25
- const ListUserActiveCallsCommand_1 = require("./commands/ListUserActiveCallsCommand");
26
- const ListUserDevicesCommand_1 = require("./commands/ListUserDevicesCommand");
27
18
  const NotificationsCommand_1 = require("./commands/NotificationsCommand");
28
19
  const OriginateCallCommand_1 = require("./commands/OriginateCallCommand");
29
20
  const OriginateCommand_1 = require("./commands/OriginateCommand");
@@ -31,13 +22,6 @@ const ReloadBroadcastsCommand_1 = require("./commands/ReloadBroadcastsCommand");
31
22
  const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
32
23
  const smithy_client_1 = require("@smithy/smithy-client");
33
24
  const commands = {
34
- CallControlAnswerCommand: CallControlAnswerCommand_1.CallControlAnswerCommand,
35
- CallControlAttendantTransferCommand: CallControlAttendantTransferCommand_1.CallControlAttendantTransferCommand,
36
- CallControlBlindTransferCommand: CallControlBlindTransferCommand_1.CallControlBlindTransferCommand,
37
- CallControlHangupCommand: CallControlHangupCommand_1.CallControlHangupCommand,
38
- CallControlHoldCommand: CallControlHoldCommand_1.CallControlHoldCommand,
39
- CallControlMakeCallCommand: CallControlMakeCallCommand_1.CallControlMakeCallCommand,
40
- CallControlUnholdCommand: CallControlUnholdCommand_1.CallControlUnholdCommand,
41
25
  CreatePbxAclGroupCommand: CreatePbxAclGroupCommand_1.CreatePbxAclGroupCommand,
42
26
  CreatePbxColleagueCommand: CreatePbxColleagueCommand_1.CreatePbxColleagueCommand,
43
27
  CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
@@ -51,8 +35,6 @@ const commands = {
51
35
  GetPbxesCommand: GetPbxesCommand_1.GetPbxesCommand,
52
36
  GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
53
37
  GetPersonalInfoCommand: GetPersonalInfoCommand_1.GetPersonalInfoCommand,
54
- ListUserActiveCallsCommand: ListUserActiveCallsCommand_1.ListUserActiveCallsCommand,
55
- ListUserDevicesCommand: ListUserDevicesCommand_1.ListUserDevicesCommand,
56
38
  NotificationsCommand: NotificationsCommand_1.NotificationsCommand,
57
39
  OriginateCommand: OriginateCommand_1.OriginateCommand,
58
40
  OriginateCallCommand: OriginateCallCommand_1.OriginateCallCommand,
@@ -1,13 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./CallControlAnswerCommand"), exports);
5
- tslib_1.__exportStar(require("./CallControlAttendantTransferCommand"), exports);
6
- tslib_1.__exportStar(require("./CallControlBlindTransferCommand"), exports);
7
- tslib_1.__exportStar(require("./CallControlHangupCommand"), exports);
8
- tslib_1.__exportStar(require("./CallControlHoldCommand"), exports);
9
- tslib_1.__exportStar(require("./CallControlMakeCallCommand"), exports);
10
- tslib_1.__exportStar(require("./CallControlUnholdCommand"), exports);
11
4
  tslib_1.__exportStar(require("./CreatePbxAclGroupCommand"), exports);
12
5
  tslib_1.__exportStar(require("./CreatePbxColleagueCommand"), exports);
13
6
  tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
@@ -21,8 +14,6 @@ tslib_1.__exportStar(require("./GetPbxColleaguesCommand"), exports);
21
14
  tslib_1.__exportStar(require("./GetPbxesCommand"), exports);
22
15
  tslib_1.__exportStar(require("./GetPbxOAuth2ClientsCommand"), exports);
23
16
  tslib_1.__exportStar(require("./GetPersonalInfoCommand"), exports);
24
- tslib_1.__exportStar(require("./ListUserActiveCallsCommand"), exports);
25
- tslib_1.__exportStar(require("./ListUserDevicesCommand"), exports);
26
17
  tslib_1.__exportStar(require("./NotificationsCommand"), exports);
27
18
  tslib_1.__exportStar(require("./OriginateCommand"), exports);
28
19
  tslib_1.__exportStar(require("./OriginateCallCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResponseResult = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.PbxColleagueRole = exports.WmsUnauthorizedException = exports.WmsForbiddenException = exports.ChannelNotFoundException = exports.ResponseType = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
3
+ exports.ResponseResult = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.PbxColleagueRole = exports.WmsUnauthorizedException = exports.ResponseType = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
4
4
  const WmsApiServiceException_1 = require("./WmsApiServiceException");
5
5
  exports.PbxLicenseType = {
6
6
  BASIC: "basic",
@@ -21,40 +21,6 @@ exports.ResponseType = {
21
21
  ERROR: "error",
22
22
  RESULT: "result",
23
23
  };
24
- class ChannelNotFoundException extends WmsApiServiceException_1.WmsApiServiceException {
25
- name = "ChannelNotFoundException";
26
- $fault = "client";
27
- type;
28
- reason;
29
- constructor(opts) {
30
- super({
31
- name: "ChannelNotFoundException",
32
- $fault: "client",
33
- ...opts
34
- });
35
- Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
36
- this.type = opts.type;
37
- this.reason = opts.reason;
38
- }
39
- }
40
- exports.ChannelNotFoundException = ChannelNotFoundException;
41
- class WmsForbiddenException extends WmsApiServiceException_1.WmsApiServiceException {
42
- name = "WmsForbiddenException";
43
- $fault = "client";
44
- type;
45
- reason;
46
- constructor(opts) {
47
- super({
48
- name: "WmsForbiddenException",
49
- $fault: "client",
50
- ...opts
51
- });
52
- Object.setPrototypeOf(this, WmsForbiddenException.prototype);
53
- this.type = opts.type;
54
- this.reason = opts.reason;
55
- }
56
- }
57
- exports.WmsForbiddenException = WmsForbiddenException;
58
24
  class WmsUnauthorizedException extends WmsApiServiceException_1.WmsApiServiceException {
59
25
  name = "WmsUnauthorizedException";
60
26
  $fault = "client";
@@ -1,157 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_NotificationsCommand = exports.de_ListUserDevicesCommand = exports.de_ListUserActiveCallsCommand = exports.de_GetPersonalInfoCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_GetColleagueByIdCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_DeletePbxColleagueCommand = exports.de_DeletePbxAclGroupCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.de_CreatePbxColleagueCommand = exports.de_CreatePbxAclGroupCommand = exports.de_CallControlUnholdCommand = exports.de_CallControlMakeCallCommand = exports.de_CallControlHoldCommand = exports.de_CallControlHangupCommand = exports.de_CallControlBlindTransferCommand = exports.de_CallControlAttendantTransferCommand = exports.de_CallControlAnswerCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_ReloadBroadcastsCommand = exports.se_OriginateCallCommand = exports.se_OriginateCommand = exports.se_NotificationsCommand = exports.se_ListUserDevicesCommand = exports.se_ListUserActiveCallsCommand = exports.se_GetPersonalInfoCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxesCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_GetColleagueByIdCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_DeletePbxColleagueCommand = exports.se_DeletePbxAclGroupCommand = exports.se_CreatePbxOAuth2ClientCommand = exports.se_CreatePbxColleagueCommand = exports.se_CreatePbxAclGroupCommand = exports.se_CallControlUnholdCommand = exports.se_CallControlMakeCallCommand = exports.se_CallControlHoldCommand = exports.se_CallControlHangupCommand = exports.se_CallControlBlindTransferCommand = exports.se_CallControlAttendantTransferCommand = exports.se_CallControlAnswerCommand = void 0;
4
- exports.de_UpdatePbxOAuth2ClientCommand = exports.de_ReloadBroadcastsCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = void 0;
3
+ exports.de_UpdatePbxOAuth2ClientCommand = exports.de_ReloadBroadcastsCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = exports.de_NotificationsCommand = exports.de_GetPersonalInfoCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_GetColleagueByIdCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_DeletePbxColleagueCommand = exports.de_DeletePbxAclGroupCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.de_CreatePbxColleagueCommand = exports.de_CreatePbxAclGroupCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_ReloadBroadcastsCommand = exports.se_OriginateCallCommand = exports.se_OriginateCommand = exports.se_NotificationsCommand = exports.se_GetPersonalInfoCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxesCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_GetColleagueByIdCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_DeletePbxColleagueCommand = exports.se_DeletePbxAclGroupCommand = exports.se_CreatePbxOAuth2ClientCommand = exports.se_CreatePbxColleagueCommand = exports.se_CreatePbxAclGroupCommand = void 0;
5
4
  const WmsApiServiceException_1 = require("../models/WmsApiServiceException");
6
5
  const models_0_1 = require("../models/models_0");
7
6
  const core_1 = require("@aws-sdk/core");
8
7
  const core_2 = require("@smithy/core");
9
8
  const smithy_client_1 = require("@smithy/smithy-client");
10
- const se_CallControlAnswerCommand = async (input, context) => {
11
- const b = (0, core_2.requestBuilder)(input, context);
12
- const headers = {
13
- 'content-type': 'application/json',
14
- };
15
- b.bp("/api/v2/call-control/answer");
16
- const query = (0, smithy_client_1.map)({
17
- [_u]: [, input[_u]],
18
- });
19
- let body;
20
- body = JSON.stringify((0, smithy_client_1.take)(input, {
21
- 'device': [],
22
- 'sipCallId': [],
23
- }));
24
- b.m("POST")
25
- .h(headers)
26
- .q(query)
27
- .b(body);
28
- return b.build();
29
- };
30
- exports.se_CallControlAnswerCommand = se_CallControlAnswerCommand;
31
- const se_CallControlAttendantTransferCommand = async (input, context) => {
32
- const b = (0, core_2.requestBuilder)(input, context);
33
- const headers = {
34
- 'content-type': 'application/json',
35
- };
36
- b.bp("/api/v2/call-control/attendant-transfer");
37
- const query = (0, smithy_client_1.map)({
38
- [_u]: [, input[_u]],
39
- });
40
- let body;
41
- body = JSON.stringify((0, smithy_client_1.take)(input, {
42
- 'destination': [],
43
- 'sipCallId': [],
44
- }));
45
- b.m("POST")
46
- .h(headers)
47
- .q(query)
48
- .b(body);
49
- return b.build();
50
- };
51
- exports.se_CallControlAttendantTransferCommand = se_CallControlAttendantTransferCommand;
52
- const se_CallControlBlindTransferCommand = async (input, context) => {
53
- const b = (0, core_2.requestBuilder)(input, context);
54
- const headers = {
55
- 'content-type': 'application/json',
56
- };
57
- b.bp("/api/v2/call-control/blind-transfer");
58
- const query = (0, smithy_client_1.map)({
59
- [_u]: [, input[_u]],
60
- });
61
- let body;
62
- body = JSON.stringify((0, smithy_client_1.take)(input, {
63
- 'destination': [],
64
- 'sipCallId': [],
65
- }));
66
- b.m("POST")
67
- .h(headers)
68
- .q(query)
69
- .b(body);
70
- return b.build();
71
- };
72
- exports.se_CallControlBlindTransferCommand = se_CallControlBlindTransferCommand;
73
- const se_CallControlHangupCommand = async (input, context) => {
74
- const b = (0, core_2.requestBuilder)(input, context);
75
- const headers = {
76
- 'content-type': 'application/json',
77
- };
78
- b.bp("/api/v2/call-control/hangup");
79
- const query = (0, smithy_client_1.map)({
80
- [_u]: [, input[_u]],
81
- });
82
- let body;
83
- body = JSON.stringify((0, smithy_client_1.take)(input, {
84
- 'reason': [],
85
- 'sipCallId': [],
86
- }));
87
- b.m("POST")
88
- .h(headers)
89
- .q(query)
90
- .b(body);
91
- return b.build();
92
- };
93
- exports.se_CallControlHangupCommand = se_CallControlHangupCommand;
94
- const se_CallControlHoldCommand = async (input, context) => {
95
- const b = (0, core_2.requestBuilder)(input, context);
96
- const headers = {
97
- 'content-type': 'application/json',
98
- };
99
- b.bp("/api/v2/call-control/hold");
100
- const query = (0, smithy_client_1.map)({
101
- [_u]: [, input[_u]],
102
- });
103
- let body;
104
- body = JSON.stringify((0, smithy_client_1.take)(input, {
105
- 'sipCallId': [],
106
- }));
107
- b.m("POST")
108
- .h(headers)
109
- .q(query)
110
- .b(body);
111
- return b.build();
112
- };
113
- exports.se_CallControlHoldCommand = se_CallControlHoldCommand;
114
- const se_CallControlMakeCallCommand = async (input, context) => {
115
- const b = (0, core_2.requestBuilder)(input, context);
116
- const headers = {
117
- 'content-type': 'application/json',
118
- };
119
- b.bp("/api/v2/call-control/make-call");
120
- const query = (0, smithy_client_1.map)({
121
- [_u]: [, input[_u]],
122
- });
123
- let body;
124
- body = JSON.stringify((0, smithy_client_1.take)(input, {
125
- 'destination': [],
126
- 'device': [],
127
- }));
128
- b.m("POST")
129
- .h(headers)
130
- .q(query)
131
- .b(body);
132
- return b.build();
133
- };
134
- exports.se_CallControlMakeCallCommand = se_CallControlMakeCallCommand;
135
- const se_CallControlUnholdCommand = async (input, context) => {
136
- const b = (0, core_2.requestBuilder)(input, context);
137
- const headers = {
138
- 'content-type': 'application/json',
139
- };
140
- b.bp("/api/v2/call-control/unhold");
141
- const query = (0, smithy_client_1.map)({
142
- [_u]: [, input[_u]],
143
- });
144
- let body;
145
- body = JSON.stringify((0, smithy_client_1.take)(input, {
146
- 'sipCallId': [],
147
- }));
148
- b.m("POST")
149
- .h(headers)
150
- .q(query)
151
- .b(body);
152
- return b.build();
153
- };
154
- exports.se_CallControlUnholdCommand = se_CallControlUnholdCommand;
155
9
  const se_CreatePbxAclGroupCommand = async (input, context) => {
156
10
  const b = (0, core_2.requestBuilder)(input, context);
157
11
  const headers = {
@@ -389,36 +243,6 @@ const se_GetPersonalInfoCommand = async (input, context) => {
389
243
  return b.build();
390
244
  };
391
245
  exports.se_GetPersonalInfoCommand = se_GetPersonalInfoCommand;
392
- const se_ListUserActiveCallsCommand = async (input, context) => {
393
- const b = (0, core_2.requestBuilder)(input, context);
394
- const headers = {};
395
- b.bp("/api/v2/call-control/list-calls");
396
- const query = (0, smithy_client_1.map)({
397
- [_u]: [, input[_u]],
398
- });
399
- let body;
400
- b.m("GET")
401
- .h(headers)
402
- .q(query)
403
- .b(body);
404
- return b.build();
405
- };
406
- exports.se_ListUserActiveCallsCommand = se_ListUserActiveCallsCommand;
407
- const se_ListUserDevicesCommand = async (input, context) => {
408
- const b = (0, core_2.requestBuilder)(input, context);
409
- const headers = {};
410
- b.bp("/api/v2/call-control/list-devices");
411
- const query = (0, smithy_client_1.map)({
412
- [_u]: [, input[_u]],
413
- });
414
- let body;
415
- b.m("GET")
416
- .h(headers)
417
- .q(query)
418
- .b(body);
419
- return b.build();
420
- };
421
- exports.se_ListUserDevicesCommand = se_ListUserDevicesCommand;
422
246
  const se_NotificationsCommand = async (input, context) => {
423
247
  const b = (0, core_2.requestBuilder)(input, context);
424
248
  const headers = {
@@ -519,111 +343,6 @@ const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
519
343
  return b.build();
520
344
  };
521
345
  exports.se_UpdatePbxOAuth2ClientCommand = se_UpdatePbxOAuth2ClientCommand;
522
- const de_CallControlAnswerCommand = async (output, context) => {
523
- if (output.statusCode !== 200 && output.statusCode >= 300) {
524
- return de_CommandError(output, context);
525
- }
526
- const contents = (0, smithy_client_1.map)({
527
- $metadata: deserializeMetadata(output),
528
- });
529
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
530
- const doc = (0, smithy_client_1.take)(data, {
531
- 'message': smithy_client_1.expectString,
532
- });
533
- Object.assign(contents, doc);
534
- return contents;
535
- };
536
- exports.de_CallControlAnswerCommand = de_CallControlAnswerCommand;
537
- const de_CallControlAttendantTransferCommand = async (output, context) => {
538
- if (output.statusCode !== 200 && output.statusCode >= 300) {
539
- return de_CommandError(output, context);
540
- }
541
- const contents = (0, smithy_client_1.map)({
542
- $metadata: deserializeMetadata(output),
543
- });
544
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
545
- const doc = (0, smithy_client_1.take)(data, {
546
- 'message': smithy_client_1.expectString,
547
- });
548
- Object.assign(contents, doc);
549
- return contents;
550
- };
551
- exports.de_CallControlAttendantTransferCommand = de_CallControlAttendantTransferCommand;
552
- const de_CallControlBlindTransferCommand = async (output, context) => {
553
- if (output.statusCode !== 200 && output.statusCode >= 300) {
554
- return de_CommandError(output, context);
555
- }
556
- const contents = (0, smithy_client_1.map)({
557
- $metadata: deserializeMetadata(output),
558
- });
559
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
560
- const doc = (0, smithy_client_1.take)(data, {
561
- 'message': smithy_client_1.expectString,
562
- });
563
- Object.assign(contents, doc);
564
- return contents;
565
- };
566
- exports.de_CallControlBlindTransferCommand = de_CallControlBlindTransferCommand;
567
- const de_CallControlHangupCommand = async (output, context) => {
568
- if (output.statusCode !== 200 && output.statusCode >= 300) {
569
- return de_CommandError(output, context);
570
- }
571
- const contents = (0, smithy_client_1.map)({
572
- $metadata: deserializeMetadata(output),
573
- });
574
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
575
- const doc = (0, smithy_client_1.take)(data, {
576
- 'message': smithy_client_1.expectString,
577
- });
578
- Object.assign(contents, doc);
579
- return contents;
580
- };
581
- exports.de_CallControlHangupCommand = de_CallControlHangupCommand;
582
- const de_CallControlHoldCommand = async (output, context) => {
583
- if (output.statusCode !== 200 && output.statusCode >= 300) {
584
- return de_CommandError(output, context);
585
- }
586
- const contents = (0, smithy_client_1.map)({
587
- $metadata: deserializeMetadata(output),
588
- });
589
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
590
- const doc = (0, smithy_client_1.take)(data, {
591
- 'message': smithy_client_1.expectString,
592
- });
593
- Object.assign(contents, doc);
594
- return contents;
595
- };
596
- exports.de_CallControlHoldCommand = de_CallControlHoldCommand;
597
- const de_CallControlMakeCallCommand = async (output, context) => {
598
- if (output.statusCode !== 200 && output.statusCode >= 300) {
599
- return de_CommandError(output, context);
600
- }
601
- const contents = (0, smithy_client_1.map)({
602
- $metadata: deserializeMetadata(output),
603
- });
604
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
605
- const doc = (0, smithy_client_1.take)(data, {
606
- 'message': smithy_client_1.expectString,
607
- });
608
- Object.assign(contents, doc);
609
- return contents;
610
- };
611
- exports.de_CallControlMakeCallCommand = de_CallControlMakeCallCommand;
612
- const de_CallControlUnholdCommand = async (output, context) => {
613
- if (output.statusCode !== 200 && output.statusCode >= 300) {
614
- return de_CommandError(output, context);
615
- }
616
- const contents = (0, smithy_client_1.map)({
617
- $metadata: deserializeMetadata(output),
618
- });
619
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
620
- const doc = (0, smithy_client_1.take)(data, {
621
- 'message': smithy_client_1.expectString,
622
- });
623
- Object.assign(contents, doc);
624
- return contents;
625
- };
626
- exports.de_CallControlUnholdCommand = de_CallControlUnholdCommand;
627
346
  const de_CreatePbxAclGroupCommand = async (output, context) => {
628
347
  if (output.statusCode !== 200 && output.statusCode >= 300) {
629
348
  return de_CommandError(output, context);
@@ -832,37 +551,6 @@ const de_GetPersonalInfoCommand = async (output, context) => {
832
551
  return contents;
833
552
  };
834
553
  exports.de_GetPersonalInfoCommand = de_GetPersonalInfoCommand;
835
- const de_ListUserActiveCallsCommand = async (output, context) => {
836
- if (output.statusCode !== 200 && output.statusCode >= 300) {
837
- return de_CommandError(output, context);
838
- }
839
- const contents = (0, smithy_client_1.map)({
840
- $metadata: deserializeMetadata(output),
841
- });
842
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
843
- const doc = (0, smithy_client_1.take)(data, {
844
- 'calls': smithy_client_1._json,
845
- });
846
- Object.assign(contents, doc);
847
- return contents;
848
- };
849
- exports.de_ListUserActiveCallsCommand = de_ListUserActiveCallsCommand;
850
- const de_ListUserDevicesCommand = async (output, context) => {
851
- if (output.statusCode !== 200 && output.statusCode >= 300) {
852
- return de_CommandError(output, context);
853
- }
854
- const contents = (0, smithy_client_1.map)({
855
- $metadata: deserializeMetadata(output),
856
- });
857
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
858
- const doc = (0, smithy_client_1.take)(data, {
859
- 'activeDevice': smithy_client_1._json,
860
- 'devices': smithy_client_1._json,
861
- });
862
- Object.assign(contents, doc);
863
- return contents;
864
- };
865
- exports.de_ListUserDevicesCommand = de_ListUserDevicesCommand;
866
554
  const de_NotificationsCommand = async (output, context) => {
867
555
  if (output.statusCode !== 200 && output.statusCode >= 300) {
868
556
  return de_CommandError(output, context);
@@ -950,12 +638,6 @@ const de_CommandError = async (output, context) => {
950
638
  };
951
639
  const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
952
640
  switch (errorCode) {
953
- case "ChannelNotFoundException":
954
- case "wildix.wms.api#ChannelNotFoundException":
955
- throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
956
- case "WmsForbiddenException":
957
- case "wildix.wms.api#WmsForbiddenException":
958
- throw await de_WmsForbiddenExceptionRes(parsedOutput, context);
959
641
  case "WmsUnauthorizedException":
960
642
  case "wildix.wms.api#WmsUnauthorizedException":
961
643
  throw await de_WmsUnauthorizedExceptionRes(parsedOutput, context);
@@ -975,34 +657,6 @@ const de_CommandError = async (output, context) => {
975
657
  }
976
658
  };
977
659
  const throwDefaultError = (0, smithy_client_1.withBaseException)(WmsApiServiceException_1.WmsApiServiceException);
978
- const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
979
- const contents = (0, smithy_client_1.map)({});
980
- const data = parsedOutput.body;
981
- const doc = (0, smithy_client_1.take)(data, {
982
- 'reason': smithy_client_1.expectString,
983
- 'type': smithy_client_1.expectString,
984
- });
985
- Object.assign(contents, doc);
986
- const exception = new models_0_1.ChannelNotFoundException({
987
- $metadata: deserializeMetadata(parsedOutput),
988
- ...contents
989
- });
990
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
991
- };
992
- const de_WmsForbiddenExceptionRes = async (parsedOutput, context) => {
993
- const contents = (0, smithy_client_1.map)({});
994
- const data = parsedOutput.body;
995
- const doc = (0, smithy_client_1.take)(data, {
996
- 'reason': smithy_client_1.expectString,
997
- 'type': smithy_client_1.expectString,
998
- });
999
- Object.assign(contents, doc);
1000
- const exception = new models_0_1.WmsForbiddenException({
1001
- $metadata: deserializeMetadata(parsedOutput),
1002
- ...contents
1003
- });
1004
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1005
- };
1006
660
  const de_WmsNotFoundExceptionRes = async (parsedOutput, context) => {
1007
661
  const contents = (0, smithy_client_1.map)({});
1008
662
  const data = parsedOutput.body;
@@ -1093,4 +747,3 @@ const _sF = "searchFields";
1093
747
  const _sS = "searchStrategy";
1094
748
  const _so = "sort";
1095
749
  const _st = "start";
1096
- const _u = "user";
package/dist-es/WmsApi.js CHANGED
@@ -1,11 +1,4 @@
1
1
  import { WmsApiClient, } from "./WmsApiClient";
2
- import { CallControlAnswerCommand, } from "./commands/CallControlAnswerCommand";
3
- import { CallControlAttendantTransferCommand, } from "./commands/CallControlAttendantTransferCommand";
4
- import { CallControlBlindTransferCommand, } from "./commands/CallControlBlindTransferCommand";
5
- import { CallControlHangupCommand, } from "./commands/CallControlHangupCommand";
6
- import { CallControlHoldCommand, } from "./commands/CallControlHoldCommand";
7
- import { CallControlMakeCallCommand, } from "./commands/CallControlMakeCallCommand";
8
- import { CallControlUnholdCommand, } from "./commands/CallControlUnholdCommand";
9
2
  import { CreatePbxAclGroupCommand, } from "./commands/CreatePbxAclGroupCommand";
10
3
  import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
11
4
  import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
@@ -19,8 +12,6 @@ import { GetPbxColleaguesCommand, } from "./commands/GetPbxColleaguesCommand";
19
12
  import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsCommand";
20
13
  import { GetPbxesCommand, } from "./commands/GetPbxesCommand";
21
14
  import { GetPersonalInfoCommand, } from "./commands/GetPersonalInfoCommand";
22
- import { ListUserActiveCallsCommand, } from "./commands/ListUserActiveCallsCommand";
23
- import { ListUserDevicesCommand, } from "./commands/ListUserDevicesCommand";
24
15
  import { NotificationsCommand, } from "./commands/NotificationsCommand";
25
16
  import { OriginateCallCommand, } from "./commands/OriginateCallCommand";
26
17
  import { OriginateCommand, } from "./commands/OriginateCommand";
@@ -28,13 +19,6 @@ import { ReloadBroadcastsCommand, } from "./commands/ReloadBroadcastsCommand";
28
19
  import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
29
20
  import { createAggregatedClient } from "@smithy/smithy-client";
30
21
  const commands = {
31
- CallControlAnswerCommand,
32
- CallControlAttendantTransferCommand,
33
- CallControlBlindTransferCommand,
34
- CallControlHangupCommand,
35
- CallControlHoldCommand,
36
- CallControlMakeCallCommand,
37
- CallControlUnholdCommand,
38
22
  CreatePbxAclGroupCommand,
39
23
  CreatePbxColleagueCommand,
40
24
  CreatePbxOAuth2ClientCommand,
@@ -48,8 +32,6 @@ const commands = {
48
32
  GetPbxesCommand,
49
33
  GetPbxOAuth2ClientsCommand,
50
34
  GetPersonalInfoCommand,
51
- ListUserActiveCallsCommand,
52
- ListUserDevicesCommand,
53
35
  NotificationsCommand,
54
36
  OriginateCommand,
55
37
  OriginateCallCommand,
@@ -1,10 +1,3 @@
1
- export * from "./CallControlAnswerCommand";
2
- export * from "./CallControlAttendantTransferCommand";
3
- export * from "./CallControlBlindTransferCommand";
4
- export * from "./CallControlHangupCommand";
5
- export * from "./CallControlHoldCommand";
6
- export * from "./CallControlMakeCallCommand";
7
- export * from "./CallControlUnholdCommand";
8
1
  export * from "./CreatePbxAclGroupCommand";
9
2
  export * from "./CreatePbxColleagueCommand";
10
3
  export * from "./CreatePbxOAuth2ClientCommand";
@@ -18,8 +11,6 @@ export * from "./GetPbxColleaguesCommand";
18
11
  export * from "./GetPbxesCommand";
19
12
  export * from "./GetPbxOAuth2ClientsCommand";
20
13
  export * from "./GetPersonalInfoCommand";
21
- export * from "./ListUserActiveCallsCommand";
22
- export * from "./ListUserDevicesCommand";
23
14
  export * from "./NotificationsCommand";
24
15
  export * from "./OriginateCommand";
25
16
  export * from "./OriginateCallCommand";
@@ -18,38 +18,6 @@ export const ResponseType = {
18
18
  ERROR: "error",
19
19
  RESULT: "result",
20
20
  };
21
- export class ChannelNotFoundException extends __BaseException {
22
- name = "ChannelNotFoundException";
23
- $fault = "client";
24
- type;
25
- reason;
26
- constructor(opts) {
27
- super({
28
- name: "ChannelNotFoundException",
29
- $fault: "client",
30
- ...opts
31
- });
32
- Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
33
- this.type = opts.type;
34
- this.reason = opts.reason;
35
- }
36
- }
37
- export class WmsForbiddenException extends __BaseException {
38
- name = "WmsForbiddenException";
39
- $fault = "client";
40
- type;
41
- reason;
42
- constructor(opts) {
43
- super({
44
- name: "WmsForbiddenException",
45
- $fault: "client",
46
- ...opts
47
- });
48
- Object.setPrototypeOf(this, WmsForbiddenException.prototype);
49
- this.type = opts.type;
50
- this.reason = opts.reason;
51
- }
52
- }
53
21
  export class WmsUnauthorizedException extends __BaseException {
54
22
  name = "WmsUnauthorizedException";
55
23
  $fault = "client";