@wildix/wms-api-client 1.1.22 → 1.1.24

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 (27) hide show
  1. package/dist-cjs/WmsApi.js +4 -2
  2. package/dist-cjs/commands/CallControlAttendantTransferCommand.js +21 -0
  3. package/dist-cjs/commands/{CallControlTransferCommand.js → CallControlBlindTransferCommand.js} +7 -7
  4. package/dist-cjs/commands/index.js +2 -1
  5. package/dist-cjs/protocols/Aws_restJson1.js +77 -47
  6. package/dist-es/WmsApi.js +4 -2
  7. package/dist-es/commands/CallControlAttendantTransferCommand.js +17 -0
  8. package/dist-es/commands/CallControlBlindTransferCommand.js +17 -0
  9. package/dist-es/commands/index.js +2 -1
  10. package/dist-es/protocols/Aws_restJson1.js +65 -37
  11. package/dist-types/WmsApi.d.ts +14 -7
  12. package/dist-types/WmsApiClient.d.ts +4 -3
  13. package/dist-types/commands/CallControlAnswerCommand.d.ts +2 -5
  14. package/dist-types/commands/CallControlAttendantTransferCommand.d.ts +80 -0
  15. package/dist-types/commands/CallControlBlindTransferCommand.d.ts +80 -0
  16. package/dist-types/commands/CallControlHangupCommand.d.ts +2 -5
  17. package/dist-types/commands/CallControlHoldCommand.d.ts +2 -5
  18. package/dist-types/commands/CallControlMakeCallCommand.d.ts +1 -4
  19. package/dist-types/commands/CallControlUnholdCommand.d.ts +2 -5
  20. package/dist-types/commands/ListUserActiveCallsCommand.d.ts +2 -1
  21. package/dist-types/commands/ListUserDevicesCommand.d.ts +4 -4
  22. package/dist-types/commands/index.d.ts +2 -1
  23. package/dist-types/models/models_0.d.ts +80 -41
  24. package/dist-types/protocols/Aws_restJson1.d.ts +18 -9
  25. package/package.json +1 -1
  26. package/dist-es/commands/CallControlTransferCommand.js +0 -17
  27. package/dist-types/commands/CallControlTransferCommand.d.ts +0 -83
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WmsApi = void 0;
4
4
  const WmsApiClient_1 = require("./WmsApiClient");
5
5
  const CallControlAnswerCommand_1 = require("./commands/CallControlAnswerCommand");
6
+ const CallControlAttendantTransferCommand_1 = require("./commands/CallControlAttendantTransferCommand");
7
+ const CallControlBlindTransferCommand_1 = require("./commands/CallControlBlindTransferCommand");
6
8
  const CallControlHangupCommand_1 = require("./commands/CallControlHangupCommand");
7
9
  const CallControlHoldCommand_1 = require("./commands/CallControlHoldCommand");
8
10
  const CallControlMakeCallCommand_1 = require("./commands/CallControlMakeCallCommand");
9
- const CallControlTransferCommand_1 = require("./commands/CallControlTransferCommand");
10
11
  const CallControlUnholdCommand_1 = require("./commands/CallControlUnholdCommand");
11
12
  const CreatePbxAclGroupCommand_1 = require("./commands/CreatePbxAclGroupCommand");
12
13
  const CreatePbxColleagueCommand_1 = require("./commands/CreatePbxColleagueCommand");
@@ -31,10 +32,11 @@ const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2Client
31
32
  const smithy_client_1 = require("@smithy/smithy-client");
32
33
  const commands = {
33
34
  CallControlAnswerCommand: CallControlAnswerCommand_1.CallControlAnswerCommand,
35
+ CallControlAttendantTransferCommand: CallControlAttendantTransferCommand_1.CallControlAttendantTransferCommand,
36
+ CallControlBlindTransferCommand: CallControlBlindTransferCommand_1.CallControlBlindTransferCommand,
34
37
  CallControlHangupCommand: CallControlHangupCommand_1.CallControlHangupCommand,
35
38
  CallControlHoldCommand: CallControlHoldCommand_1.CallControlHoldCommand,
36
39
  CallControlMakeCallCommand: CallControlMakeCallCommand_1.CallControlMakeCallCommand,
37
- CallControlTransferCommand: CallControlTransferCommand_1.CallControlTransferCommand,
38
40
  CallControlUnholdCommand: CallControlUnholdCommand_1.CallControlUnholdCommand,
39
41
  CreatePbxAclGroupCommand: CreatePbxAclGroupCommand_1.CreatePbxAclGroupCommand,
40
42
  CreatePbxColleagueCommand: CreatePbxColleagueCommand_1.CreatePbxColleagueCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CallControlAttendantTransferCommand = 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 CallControlAttendantTransferCommand 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", "CallControlAttendantTransfer", {})
15
+ .n("WmsApiClient", "CallControlAttendantTransferCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CallControlAttendantTransferCommand)
18
+ .de(Aws_restJson1_1.de_CallControlAttendantTransferCommand)
19
+ .build() {
20
+ }
21
+ exports.CallControlAttendantTransferCommand = CallControlAttendantTransferCommand;
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CallControlTransferCommand = exports.$Command = void 0;
3
+ exports.CallControlBlindTransferCommand = exports.$Command = void 0;
4
4
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class CallControlTransferCommand extends smithy_client_1.Command.classBuilder()
8
+ class CallControlBlindTransferCommand extends smithy_client_1.Command.classBuilder()
9
9
  .m(function (Command, cs, config, o) {
10
10
  return [
11
11
  (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
12
  ];
13
13
  })
14
- .s("WmsApi", "CallControlTransfer", {})
15
- .n("WmsApiClient", "CallControlTransferCommand")
14
+ .s("WmsApi", "CallControlBlindTransfer", {})
15
+ .n("WmsApiClient", "CallControlBlindTransferCommand")
16
16
  .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_CallControlTransferCommand)
18
- .de(Aws_restJson1_1.de_CallControlTransferCommand)
17
+ .ser(Aws_restJson1_1.se_CallControlBlindTransferCommand)
18
+ .de(Aws_restJson1_1.de_CallControlBlindTransferCommand)
19
19
  .build() {
20
20
  }
21
- exports.CallControlTransferCommand = CallControlTransferCommand;
21
+ exports.CallControlBlindTransferCommand = CallControlBlindTransferCommand;
@@ -2,10 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./CallControlAnswerCommand"), exports);
5
+ tslib_1.__exportStar(require("./CallControlAttendantTransferCommand"), exports);
6
+ tslib_1.__exportStar(require("./CallControlBlindTransferCommand"), exports);
5
7
  tslib_1.__exportStar(require("./CallControlHangupCommand"), exports);
6
8
  tslib_1.__exportStar(require("./CallControlHoldCommand"), exports);
7
9
  tslib_1.__exportStar(require("./CallControlMakeCallCommand"), exports);
8
- tslib_1.__exportStar(require("./CallControlTransferCommand"), exports);
9
10
  tslib_1.__exportStar(require("./CallControlUnholdCommand"), exports);
10
11
  tslib_1.__exportStar(require("./CreatePbxAclGroupCommand"), exports);
11
12
  tslib_1.__exportStar(require("./CreatePbxColleagueCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_OriginateCallCommand = exports.de_OriginateCommand = 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_CallControlTransferCommand = exports.de_CallControlMakeCallCommand = exports.de_CallControlHoldCommand = exports.de_CallControlHangupCommand = 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_CallControlTransferCommand = exports.se_CallControlMakeCallCommand = exports.se_CallControlHoldCommand = exports.se_CallControlHangupCommand = exports.se_CallControlAnswerCommand = void 0;
4
- exports.de_UpdatePbxOAuth2ClientCommand = exports.de_ReloadBroadcastsCommand = void 0;
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;
5
5
  const WmsApiServiceException_1 = require("../models/WmsApiServiceException");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const core_1 = require("@aws-sdk/core");
@@ -12,14 +12,14 @@ const se_CallControlAnswerCommand = async (input, context) => {
12
12
  const headers = {
13
13
  'content-type': 'application/json',
14
14
  };
15
- b.bp("/api/v1/call-control/answer");
15
+ b.bp("/api/v2/call-control/answer");
16
16
  const query = (0, smithy_client_1.map)({
17
17
  [_u]: [, input[_u]],
18
18
  });
19
19
  let body;
20
20
  body = JSON.stringify((0, smithy_client_1.take)(input, {
21
- 'channel': [],
22
21
  'device': [],
22
+ 'sipCallId': [],
23
23
  }));
24
24
  b.m("POST")
25
25
  .h(headers)
@@ -28,19 +28,19 @@ const se_CallControlAnswerCommand = async (input, context) => {
28
28
  return b.build();
29
29
  };
30
30
  exports.se_CallControlAnswerCommand = se_CallControlAnswerCommand;
31
- const se_CallControlHangupCommand = async (input, context) => {
31
+ const se_CallControlAttendantTransferCommand = async (input, context) => {
32
32
  const b = (0, core_2.requestBuilder)(input, context);
33
33
  const headers = {
34
34
  'content-type': 'application/json',
35
35
  };
36
- b.bp("/api/v1/call-control/hangup");
36
+ b.bp("/api/v2/call-control/attendant-transfer");
37
37
  const query = (0, smithy_client_1.map)({
38
38
  [_u]: [, input[_u]],
39
39
  });
40
40
  let body;
41
41
  body = JSON.stringify((0, smithy_client_1.take)(input, {
42
- 'channel': [],
43
- 'reason': [],
42
+ 'destination': [],
43
+ 'sipCallId': [],
44
44
  }));
45
45
  b.m("POST")
46
46
  .h(headers)
@@ -48,19 +48,20 @@ const se_CallControlHangupCommand = async (input, context) => {
48
48
  .b(body);
49
49
  return b.build();
50
50
  };
51
- exports.se_CallControlHangupCommand = se_CallControlHangupCommand;
52
- const se_CallControlHoldCommand = async (input, context) => {
51
+ exports.se_CallControlAttendantTransferCommand = se_CallControlAttendantTransferCommand;
52
+ const se_CallControlBlindTransferCommand = async (input, context) => {
53
53
  const b = (0, core_2.requestBuilder)(input, context);
54
54
  const headers = {
55
55
  'content-type': 'application/json',
56
56
  };
57
- b.bp("/api/v1/call-control/hold");
57
+ b.bp("/api/v2/call-control/blind-transfer");
58
58
  const query = (0, smithy_client_1.map)({
59
59
  [_u]: [, input[_u]],
60
60
  });
61
61
  let body;
62
62
  body = JSON.stringify((0, smithy_client_1.take)(input, {
63
- 'channel': [],
63
+ 'destination': [],
64
+ 'sipCallId': [],
64
65
  }));
65
66
  b.m("POST")
66
67
  .h(headers)
@@ -68,20 +69,20 @@ const se_CallControlHoldCommand = async (input, context) => {
68
69
  .b(body);
69
70
  return b.build();
70
71
  };
71
- exports.se_CallControlHoldCommand = se_CallControlHoldCommand;
72
- const se_CallControlMakeCallCommand = async (input, context) => {
72
+ exports.se_CallControlBlindTransferCommand = se_CallControlBlindTransferCommand;
73
+ const se_CallControlHangupCommand = async (input, context) => {
73
74
  const b = (0, core_2.requestBuilder)(input, context);
74
75
  const headers = {
75
76
  'content-type': 'application/json',
76
77
  };
77
- b.bp("/api/v1/call-control/make-call");
78
+ b.bp("/api/v2/call-control/hangup");
78
79
  const query = (0, smithy_client_1.map)({
79
80
  [_u]: [, input[_u]],
80
81
  });
81
82
  let body;
82
83
  body = JSON.stringify((0, smithy_client_1.take)(input, {
83
- 'destination': [],
84
- 'device': [],
84
+ 'reason': [],
85
+ 'sipCallId': [],
85
86
  }));
86
87
  b.m("POST")
87
88
  .h(headers)
@@ -89,20 +90,40 @@ const se_CallControlMakeCallCommand = async (input, context) => {
89
90
  .b(body);
90
91
  return b.build();
91
92
  };
92
- exports.se_CallControlMakeCallCommand = se_CallControlMakeCallCommand;
93
- const se_CallControlTransferCommand = async (input, context) => {
93
+ exports.se_CallControlHangupCommand = se_CallControlHangupCommand;
94
+ const se_CallControlHoldCommand = async (input, context) => {
94
95
  const b = (0, core_2.requestBuilder)(input, context);
95
96
  const headers = {
96
97
  'content-type': 'application/json',
97
98
  };
98
- b.bp("/api/v1/call-control/transfer");
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");
99
120
  const query = (0, smithy_client_1.map)({
100
121
  [_u]: [, input[_u]],
101
122
  });
102
123
  let body;
103
124
  body = JSON.stringify((0, smithy_client_1.take)(input, {
104
- 'channel': [],
105
125
  'destination': [],
126
+ 'device': [],
106
127
  }));
107
128
  b.m("POST")
108
129
  .h(headers)
@@ -110,19 +131,19 @@ const se_CallControlTransferCommand = async (input, context) => {
110
131
  .b(body);
111
132
  return b.build();
112
133
  };
113
- exports.se_CallControlTransferCommand = se_CallControlTransferCommand;
134
+ exports.se_CallControlMakeCallCommand = se_CallControlMakeCallCommand;
114
135
  const se_CallControlUnholdCommand = async (input, context) => {
115
136
  const b = (0, core_2.requestBuilder)(input, context);
116
137
  const headers = {
117
138
  'content-type': 'application/json',
118
139
  };
119
- b.bp("/api/v1/call-control/unhold");
140
+ b.bp("/api/v2/call-control/unhold");
120
141
  const query = (0, smithy_client_1.map)({
121
142
  [_u]: [, input[_u]],
122
143
  });
123
144
  let body;
124
145
  body = JSON.stringify((0, smithy_client_1.take)(input, {
125
- 'channel': [],
146
+ 'sipCallId': [],
126
147
  }));
127
148
  b.m("POST")
128
149
  .h(headers)
@@ -371,7 +392,7 @@ exports.se_GetPersonalInfoCommand = se_GetPersonalInfoCommand;
371
392
  const se_ListUserActiveCallsCommand = async (input, context) => {
372
393
  const b = (0, core_2.requestBuilder)(input, context);
373
394
  const headers = {};
374
- b.bp("/api/v1/call-control/list-calls");
395
+ b.bp("/api/v2/call-control/list-calls");
375
396
  const query = (0, smithy_client_1.map)({
376
397
  [_u]: [, input[_u]],
377
398
  });
@@ -386,7 +407,7 @@ exports.se_ListUserActiveCallsCommand = se_ListUserActiveCallsCommand;
386
407
  const se_ListUserDevicesCommand = async (input, context) => {
387
408
  const b = (0, core_2.requestBuilder)(input, context);
388
409
  const headers = {};
389
- b.bp("/api/v1/call-control/list-devices");
410
+ b.bp("/api/v2/call-control/list-devices");
390
411
  const query = (0, smithy_client_1.map)({
391
412
  [_u]: [, input[_u]],
392
413
  });
@@ -507,14 +528,13 @@ const de_CallControlAnswerCommand = async (output, context) => {
507
528
  });
508
529
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
509
530
  const doc = (0, smithy_client_1.take)(data, {
510
- 'result': smithy_client_1._json,
511
- 'type': smithy_client_1.expectString,
531
+ 'message': smithy_client_1.expectString,
512
532
  });
513
533
  Object.assign(contents, doc);
514
534
  return contents;
515
535
  };
516
536
  exports.de_CallControlAnswerCommand = de_CallControlAnswerCommand;
517
- const de_CallControlHangupCommand = async (output, context) => {
537
+ const de_CallControlAttendantTransferCommand = async (output, context) => {
518
538
  if (output.statusCode !== 200 && output.statusCode >= 300) {
519
539
  return de_CommandError(output, context);
520
540
  }
@@ -523,14 +543,13 @@ const de_CallControlHangupCommand = async (output, context) => {
523
543
  });
524
544
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
525
545
  const doc = (0, smithy_client_1.take)(data, {
526
- 'result': smithy_client_1._json,
527
- 'type': smithy_client_1.expectString,
546
+ 'message': smithy_client_1.expectString,
528
547
  });
529
548
  Object.assign(contents, doc);
530
549
  return contents;
531
550
  };
532
- exports.de_CallControlHangupCommand = de_CallControlHangupCommand;
533
- const de_CallControlHoldCommand = async (output, context) => {
551
+ exports.de_CallControlAttendantTransferCommand = de_CallControlAttendantTransferCommand;
552
+ const de_CallControlBlindTransferCommand = async (output, context) => {
534
553
  if (output.statusCode !== 200 && output.statusCode >= 300) {
535
554
  return de_CommandError(output, context);
536
555
  }
@@ -539,14 +558,13 @@ const de_CallControlHoldCommand = async (output, context) => {
539
558
  });
540
559
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
541
560
  const doc = (0, smithy_client_1.take)(data, {
542
- 'result': smithy_client_1._json,
543
- 'type': smithy_client_1.expectString,
561
+ 'message': smithy_client_1.expectString,
544
562
  });
545
563
  Object.assign(contents, doc);
546
564
  return contents;
547
565
  };
548
- exports.de_CallControlHoldCommand = de_CallControlHoldCommand;
549
- const de_CallControlMakeCallCommand = async (output, context) => {
566
+ exports.de_CallControlBlindTransferCommand = de_CallControlBlindTransferCommand;
567
+ const de_CallControlHangupCommand = async (output, context) => {
550
568
  if (output.statusCode !== 200 && output.statusCode >= 300) {
551
569
  return de_CommandError(output, context);
552
570
  }
@@ -555,14 +573,13 @@ const de_CallControlMakeCallCommand = async (output, context) => {
555
573
  });
556
574
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
557
575
  const doc = (0, smithy_client_1.take)(data, {
558
- 'result': smithy_client_1._json,
559
- 'type': smithy_client_1.expectString,
576
+ 'message': smithy_client_1.expectString,
560
577
  });
561
578
  Object.assign(contents, doc);
562
579
  return contents;
563
580
  };
564
- exports.de_CallControlMakeCallCommand = de_CallControlMakeCallCommand;
565
- const de_CallControlTransferCommand = async (output, context) => {
581
+ exports.de_CallControlHangupCommand = de_CallControlHangupCommand;
582
+ const de_CallControlHoldCommand = async (output, context) => {
566
583
  if (output.statusCode !== 200 && output.statusCode >= 300) {
567
584
  return de_CommandError(output, context);
568
585
  }
@@ -571,13 +588,27 @@ const de_CallControlTransferCommand = async (output, context) => {
571
588
  });
572
589
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
573
590
  const doc = (0, smithy_client_1.take)(data, {
574
- 'result': smithy_client_1._json,
575
- 'type': smithy_client_1.expectString,
591
+ 'message': smithy_client_1.expectString,
576
592
  });
577
593
  Object.assign(contents, doc);
578
594
  return contents;
579
595
  };
580
- exports.de_CallControlTransferCommand = de_CallControlTransferCommand;
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;
581
612
  const de_CallControlUnholdCommand = async (output, context) => {
582
613
  if (output.statusCode !== 200 && output.statusCode >= 300) {
583
614
  return de_CommandError(output, context);
@@ -587,8 +618,7 @@ const de_CallControlUnholdCommand = async (output, context) => {
587
618
  });
588
619
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
589
620
  const doc = (0, smithy_client_1.take)(data, {
590
- 'result': smithy_client_1._json,
591
- 'type': smithy_client_1.expectString,
621
+ 'message': smithy_client_1.expectString,
592
622
  });
593
623
  Object.assign(contents, doc);
594
624
  return contents;
@@ -826,7 +856,7 @@ const de_ListUserDevicesCommand = async (output, context) => {
826
856
  });
827
857
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
828
858
  const doc = (0, smithy_client_1.take)(data, {
829
- 'active_device': smithy_client_1._json,
859
+ 'activeDevice': smithy_client_1._json,
830
860
  'devices': smithy_client_1._json,
831
861
  });
832
862
  Object.assign(contents, doc);
package/dist-es/WmsApi.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { WmsApiClient, } from "./WmsApiClient";
2
2
  import { CallControlAnswerCommand, } from "./commands/CallControlAnswerCommand";
3
+ import { CallControlAttendantTransferCommand, } from "./commands/CallControlAttendantTransferCommand";
4
+ import { CallControlBlindTransferCommand, } from "./commands/CallControlBlindTransferCommand";
3
5
  import { CallControlHangupCommand, } from "./commands/CallControlHangupCommand";
4
6
  import { CallControlHoldCommand, } from "./commands/CallControlHoldCommand";
5
7
  import { CallControlMakeCallCommand, } from "./commands/CallControlMakeCallCommand";
6
- import { CallControlTransferCommand, } from "./commands/CallControlTransferCommand";
7
8
  import { CallControlUnholdCommand, } from "./commands/CallControlUnholdCommand";
8
9
  import { CreatePbxAclGroupCommand, } from "./commands/CreatePbxAclGroupCommand";
9
10
  import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
@@ -28,10 +29,11 @@ import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientC
28
29
  import { createAggregatedClient } from "@smithy/smithy-client";
29
30
  const commands = {
30
31
  CallControlAnswerCommand,
32
+ CallControlAttendantTransferCommand,
33
+ CallControlBlindTransferCommand,
31
34
  CallControlHangupCommand,
32
35
  CallControlHoldCommand,
33
36
  CallControlMakeCallCommand,
34
- CallControlTransferCommand,
35
37
  CallControlUnholdCommand,
36
38
  CreatePbxAclGroupCommand,
37
39
  CreatePbxColleagueCommand,
@@ -0,0 +1,17 @@
1
+ import { de_CallControlAttendantTransferCommand, se_CallControlAttendantTransferCommand, } 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 CallControlAttendantTransferCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "CallControlAttendantTransfer", {})
12
+ .n("WmsApiClient", "CallControlAttendantTransferCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CallControlAttendantTransferCommand)
15
+ .de(de_CallControlAttendantTransferCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_CallControlBlindTransferCommand, se_CallControlBlindTransferCommand, } 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 CallControlBlindTransferCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "CallControlBlindTransfer", {})
12
+ .n("WmsApiClient", "CallControlBlindTransferCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CallControlBlindTransferCommand)
15
+ .de(de_CallControlBlindTransferCommand)
16
+ .build() {
17
+ }
@@ -1,8 +1,9 @@
1
1
  export * from "./CallControlAnswerCommand";
2
+ export * from "./CallControlAttendantTransferCommand";
3
+ export * from "./CallControlBlindTransferCommand";
2
4
  export * from "./CallControlHangupCommand";
3
5
  export * from "./CallControlHoldCommand";
4
6
  export * from "./CallControlMakeCallCommand";
5
- export * from "./CallControlTransferCommand";
6
7
  export * from "./CallControlUnholdCommand";
7
8
  export * from "./CreatePbxAclGroupCommand";
8
9
  export * from "./CreatePbxColleagueCommand";