@wildix/wms-api-client 1.1.20 → 1.1.22
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.
- package/dist-cjs/WmsApi.js +16 -0
- package/dist-cjs/commands/CallControlAnswerCommand.js +21 -0
- package/dist-cjs/commands/CallControlHangupCommand.js +21 -0
- package/dist-cjs/commands/CallControlHoldCommand.js +21 -0
- package/dist-cjs/commands/CallControlMakeCallCommand.js +21 -0
- package/dist-cjs/commands/CallControlTransferCommand.js +21 -0
- package/dist-cjs/commands/CallControlUnholdCommand.js +21 -0
- package/dist-cjs/commands/ListUserActiveCallsCommand.js +21 -0
- package/dist-cjs/commands/ListUserDevicesCommand.js +21 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +35 -1
- package/dist-cjs/protocols/Aws_restJson1.js +319 -1
- package/dist-es/WmsApi.js +16 -0
- package/dist-es/commands/CallControlAnswerCommand.js +17 -0
- package/dist-es/commands/CallControlHangupCommand.js +17 -0
- package/dist-es/commands/CallControlHoldCommand.js +17 -0
- package/dist-es/commands/CallControlMakeCallCommand.js +17 -0
- package/dist-es/commands/CallControlTransferCommand.js +17 -0
- package/dist-es/commands/CallControlUnholdCommand.js +17 -0
- package/dist-es/commands/ListUserActiveCallsCommand.js +17 -0
- package/dist-es/commands/ListUserDevicesCommand.js +17 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +32 -0
- package/dist-es/protocols/Aws_restJson1.js +302 -1
- package/dist-types/WmsApi.d.ts +58 -0
- package/dist-types/WmsApiClient.d.ts +10 -2
- package/dist-types/commands/CallControlAnswerCommand.d.ts +83 -0
- package/dist-types/commands/CallControlHangupCommand.d.ts +83 -0
- package/dist-types/commands/CallControlHoldCommand.d.ts +82 -0
- package/dist-types/commands/CallControlMakeCallCommand.d.ts +81 -0
- package/dist-types/commands/CallControlTransferCommand.d.ts +83 -0
- package/dist-types/commands/CallControlUnholdCommand.d.ts +82 -0
- package/dist-types/commands/CreatePbxAclGroupCommand.d.ts +2 -0
- package/dist-types/commands/CreatePbxColleagueCommand.d.ts +2 -0
- package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +3 -0
- package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +2 -0
- package/dist-types/commands/DeletePbxColleagueCommand.d.ts +2 -0
- package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +2 -0
- package/dist-types/commands/GetColleagueByIdCommand.d.ts +2 -0
- package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +2 -0
- package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +2 -0
- package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -0
- package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +2 -0
- package/dist-types/commands/GetPbxesCommand.d.ts +2 -0
- package/dist-types/commands/GetPersonalInfoCommand.d.ts +2 -0
- package/dist-types/commands/ListUserActiveCallsCommand.d.ts +85 -0
- package/dist-types/commands/ListUserDevicesCommand.d.ts +85 -0
- package/dist-types/commands/NotificationsCommand.d.ts +2 -0
- package/dist-types/commands/OriginateCallCommand.d.ts +2 -0
- package/dist-types/commands/OriginateCommand.d.ts +2 -0
- package/dist-types/commands/ReloadBroadcastsCommand.d.ts +2 -0
- package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +251 -7
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +1 -1
|
@@ -1,11 +1,136 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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;
|
|
4
5
|
const WmsApiServiceException_1 = require("../models/WmsApiServiceException");
|
|
5
6
|
const models_0_1 = require("../models/models_0");
|
|
6
7
|
const core_1 = require("@aws-sdk/core");
|
|
7
8
|
const core_2 = require("@smithy/core");
|
|
8
9
|
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/v1/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
|
+
'channel': [],
|
|
22
|
+
'device': [],
|
|
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_CallControlHangupCommand = 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/v1/call-control/hangup");
|
|
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
|
+
'channel': [],
|
|
43
|
+
'reason': [],
|
|
44
|
+
}));
|
|
45
|
+
b.m("POST")
|
|
46
|
+
.h(headers)
|
|
47
|
+
.q(query)
|
|
48
|
+
.b(body);
|
|
49
|
+
return b.build();
|
|
50
|
+
};
|
|
51
|
+
exports.se_CallControlHangupCommand = se_CallControlHangupCommand;
|
|
52
|
+
const se_CallControlHoldCommand = 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/v1/call-control/hold");
|
|
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
|
+
'channel': [],
|
|
64
|
+
}));
|
|
65
|
+
b.m("POST")
|
|
66
|
+
.h(headers)
|
|
67
|
+
.q(query)
|
|
68
|
+
.b(body);
|
|
69
|
+
return b.build();
|
|
70
|
+
};
|
|
71
|
+
exports.se_CallControlHoldCommand = se_CallControlHoldCommand;
|
|
72
|
+
const se_CallControlMakeCallCommand = async (input, context) => {
|
|
73
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
74
|
+
const headers = {
|
|
75
|
+
'content-type': 'application/json',
|
|
76
|
+
};
|
|
77
|
+
b.bp("/api/v1/call-control/make-call");
|
|
78
|
+
const query = (0, smithy_client_1.map)({
|
|
79
|
+
[_u]: [, input[_u]],
|
|
80
|
+
});
|
|
81
|
+
let body;
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
83
|
+
'destination': [],
|
|
84
|
+
'device': [],
|
|
85
|
+
}));
|
|
86
|
+
b.m("POST")
|
|
87
|
+
.h(headers)
|
|
88
|
+
.q(query)
|
|
89
|
+
.b(body);
|
|
90
|
+
return b.build();
|
|
91
|
+
};
|
|
92
|
+
exports.se_CallControlMakeCallCommand = se_CallControlMakeCallCommand;
|
|
93
|
+
const se_CallControlTransferCommand = async (input, context) => {
|
|
94
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
95
|
+
const headers = {
|
|
96
|
+
'content-type': 'application/json',
|
|
97
|
+
};
|
|
98
|
+
b.bp("/api/v1/call-control/transfer");
|
|
99
|
+
const query = (0, smithy_client_1.map)({
|
|
100
|
+
[_u]: [, input[_u]],
|
|
101
|
+
});
|
|
102
|
+
let body;
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
104
|
+
'channel': [],
|
|
105
|
+
'destination': [],
|
|
106
|
+
}));
|
|
107
|
+
b.m("POST")
|
|
108
|
+
.h(headers)
|
|
109
|
+
.q(query)
|
|
110
|
+
.b(body);
|
|
111
|
+
return b.build();
|
|
112
|
+
};
|
|
113
|
+
exports.se_CallControlTransferCommand = se_CallControlTransferCommand;
|
|
114
|
+
const se_CallControlUnholdCommand = 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/v1/call-control/unhold");
|
|
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
|
+
'channel': [],
|
|
126
|
+
}));
|
|
127
|
+
b.m("POST")
|
|
128
|
+
.h(headers)
|
|
129
|
+
.q(query)
|
|
130
|
+
.b(body);
|
|
131
|
+
return b.build();
|
|
132
|
+
};
|
|
133
|
+
exports.se_CallControlUnholdCommand = se_CallControlUnholdCommand;
|
|
9
134
|
const se_CreatePbxAclGroupCommand = async (input, context) => {
|
|
10
135
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
136
|
const headers = {
|
|
@@ -64,6 +189,7 @@ const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
64
189
|
b.bp("/api/v1/pbx/applications/oauth2");
|
|
65
190
|
let body;
|
|
66
191
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
192
|
+
'expireTime': [],
|
|
67
193
|
'name': [],
|
|
68
194
|
'redirectUri': _ => (0, smithy_client_1._json)(_),
|
|
69
195
|
}));
|
|
@@ -242,6 +368,36 @@ const se_GetPersonalInfoCommand = async (input, context) => {
|
|
|
242
368
|
return b.build();
|
|
243
369
|
};
|
|
244
370
|
exports.se_GetPersonalInfoCommand = se_GetPersonalInfoCommand;
|
|
371
|
+
const se_ListUserActiveCallsCommand = async (input, context) => {
|
|
372
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
373
|
+
const headers = {};
|
|
374
|
+
b.bp("/api/v1/call-control/list-calls");
|
|
375
|
+
const query = (0, smithy_client_1.map)({
|
|
376
|
+
[_u]: [, input[_u]],
|
|
377
|
+
});
|
|
378
|
+
let body;
|
|
379
|
+
b.m("GET")
|
|
380
|
+
.h(headers)
|
|
381
|
+
.q(query)
|
|
382
|
+
.b(body);
|
|
383
|
+
return b.build();
|
|
384
|
+
};
|
|
385
|
+
exports.se_ListUserActiveCallsCommand = se_ListUserActiveCallsCommand;
|
|
386
|
+
const se_ListUserDevicesCommand = async (input, context) => {
|
|
387
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
388
|
+
const headers = {};
|
|
389
|
+
b.bp("/api/v1/call-control/list-devices");
|
|
390
|
+
const query = (0, smithy_client_1.map)({
|
|
391
|
+
[_u]: [, input[_u]],
|
|
392
|
+
});
|
|
393
|
+
let body;
|
|
394
|
+
b.m("GET")
|
|
395
|
+
.h(headers)
|
|
396
|
+
.q(query)
|
|
397
|
+
.b(body);
|
|
398
|
+
return b.build();
|
|
399
|
+
};
|
|
400
|
+
exports.se_ListUserDevicesCommand = se_ListUserDevicesCommand;
|
|
245
401
|
const se_NotificationsCommand = async (input, context) => {
|
|
246
402
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
247
403
|
const headers = {
|
|
@@ -342,6 +498,102 @@ const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
342
498
|
return b.build();
|
|
343
499
|
};
|
|
344
500
|
exports.se_UpdatePbxOAuth2ClientCommand = se_UpdatePbxOAuth2ClientCommand;
|
|
501
|
+
const de_CallControlAnswerCommand = async (output, context) => {
|
|
502
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
+
return de_CommandError(output, context);
|
|
504
|
+
}
|
|
505
|
+
const contents = (0, smithy_client_1.map)({
|
|
506
|
+
$metadata: deserializeMetadata(output),
|
|
507
|
+
});
|
|
508
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
509
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
510
|
+
'result': smithy_client_1._json,
|
|
511
|
+
'type': smithy_client_1.expectString,
|
|
512
|
+
});
|
|
513
|
+
Object.assign(contents, doc);
|
|
514
|
+
return contents;
|
|
515
|
+
};
|
|
516
|
+
exports.de_CallControlAnswerCommand = de_CallControlAnswerCommand;
|
|
517
|
+
const de_CallControlHangupCommand = async (output, context) => {
|
|
518
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
519
|
+
return de_CommandError(output, context);
|
|
520
|
+
}
|
|
521
|
+
const contents = (0, smithy_client_1.map)({
|
|
522
|
+
$metadata: deserializeMetadata(output),
|
|
523
|
+
});
|
|
524
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
525
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
526
|
+
'result': smithy_client_1._json,
|
|
527
|
+
'type': smithy_client_1.expectString,
|
|
528
|
+
});
|
|
529
|
+
Object.assign(contents, doc);
|
|
530
|
+
return contents;
|
|
531
|
+
};
|
|
532
|
+
exports.de_CallControlHangupCommand = de_CallControlHangupCommand;
|
|
533
|
+
const de_CallControlHoldCommand = async (output, context) => {
|
|
534
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
|
+
return de_CommandError(output, context);
|
|
536
|
+
}
|
|
537
|
+
const contents = (0, smithy_client_1.map)({
|
|
538
|
+
$metadata: deserializeMetadata(output),
|
|
539
|
+
});
|
|
540
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
541
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
542
|
+
'result': smithy_client_1._json,
|
|
543
|
+
'type': smithy_client_1.expectString,
|
|
544
|
+
});
|
|
545
|
+
Object.assign(contents, doc);
|
|
546
|
+
return contents;
|
|
547
|
+
};
|
|
548
|
+
exports.de_CallControlHoldCommand = de_CallControlHoldCommand;
|
|
549
|
+
const de_CallControlMakeCallCommand = async (output, context) => {
|
|
550
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
551
|
+
return de_CommandError(output, context);
|
|
552
|
+
}
|
|
553
|
+
const contents = (0, smithy_client_1.map)({
|
|
554
|
+
$metadata: deserializeMetadata(output),
|
|
555
|
+
});
|
|
556
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
557
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
558
|
+
'result': smithy_client_1._json,
|
|
559
|
+
'type': smithy_client_1.expectString,
|
|
560
|
+
});
|
|
561
|
+
Object.assign(contents, doc);
|
|
562
|
+
return contents;
|
|
563
|
+
};
|
|
564
|
+
exports.de_CallControlMakeCallCommand = de_CallControlMakeCallCommand;
|
|
565
|
+
const de_CallControlTransferCommand = async (output, context) => {
|
|
566
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
|
+
return de_CommandError(output, context);
|
|
568
|
+
}
|
|
569
|
+
const contents = (0, smithy_client_1.map)({
|
|
570
|
+
$metadata: deserializeMetadata(output),
|
|
571
|
+
});
|
|
572
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
573
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
574
|
+
'result': smithy_client_1._json,
|
|
575
|
+
'type': smithy_client_1.expectString,
|
|
576
|
+
});
|
|
577
|
+
Object.assign(contents, doc);
|
|
578
|
+
return contents;
|
|
579
|
+
};
|
|
580
|
+
exports.de_CallControlTransferCommand = de_CallControlTransferCommand;
|
|
581
|
+
const de_CallControlUnholdCommand = async (output, context) => {
|
|
582
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
583
|
+
return de_CommandError(output, context);
|
|
584
|
+
}
|
|
585
|
+
const contents = (0, smithy_client_1.map)({
|
|
586
|
+
$metadata: deserializeMetadata(output),
|
|
587
|
+
});
|
|
588
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
589
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
590
|
+
'result': smithy_client_1._json,
|
|
591
|
+
'type': smithy_client_1.expectString,
|
|
592
|
+
});
|
|
593
|
+
Object.assign(contents, doc);
|
|
594
|
+
return contents;
|
|
595
|
+
};
|
|
596
|
+
exports.de_CallControlUnholdCommand = de_CallControlUnholdCommand;
|
|
345
597
|
const de_CreatePbxAclGroupCommand = async (output, context) => {
|
|
346
598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
347
599
|
return de_CommandError(output, context);
|
|
@@ -550,6 +802,37 @@ const de_GetPersonalInfoCommand = async (output, context) => {
|
|
|
550
802
|
return contents;
|
|
551
803
|
};
|
|
552
804
|
exports.de_GetPersonalInfoCommand = de_GetPersonalInfoCommand;
|
|
805
|
+
const de_ListUserActiveCallsCommand = async (output, context) => {
|
|
806
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
807
|
+
return de_CommandError(output, context);
|
|
808
|
+
}
|
|
809
|
+
const contents = (0, smithy_client_1.map)({
|
|
810
|
+
$metadata: deserializeMetadata(output),
|
|
811
|
+
});
|
|
812
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
813
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
814
|
+
'calls': smithy_client_1._json,
|
|
815
|
+
});
|
|
816
|
+
Object.assign(contents, doc);
|
|
817
|
+
return contents;
|
|
818
|
+
};
|
|
819
|
+
exports.de_ListUserActiveCallsCommand = de_ListUserActiveCallsCommand;
|
|
820
|
+
const de_ListUserDevicesCommand = async (output, context) => {
|
|
821
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
+
return de_CommandError(output, context);
|
|
823
|
+
}
|
|
824
|
+
const contents = (0, smithy_client_1.map)({
|
|
825
|
+
$metadata: deserializeMetadata(output),
|
|
826
|
+
});
|
|
827
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
828
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
829
|
+
'active_device': smithy_client_1._json,
|
|
830
|
+
'devices': smithy_client_1._json,
|
|
831
|
+
});
|
|
832
|
+
Object.assign(contents, doc);
|
|
833
|
+
return contents;
|
|
834
|
+
};
|
|
835
|
+
exports.de_ListUserDevicesCommand = de_ListUserDevicesCommand;
|
|
553
836
|
const de_NotificationsCommand = async (output, context) => {
|
|
554
837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
555
838
|
return de_CommandError(output, context);
|
|
@@ -637,6 +920,12 @@ const de_CommandError = async (output, context) => {
|
|
|
637
920
|
};
|
|
638
921
|
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
639
922
|
switch (errorCode) {
|
|
923
|
+
case "ChannelNotFoundException":
|
|
924
|
+
case "wildix.wms.api#ChannelNotFoundException":
|
|
925
|
+
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
926
|
+
case "WmsForbiddenException":
|
|
927
|
+
case "wildix.wms.api#WmsForbiddenException":
|
|
928
|
+
throw await de_WmsForbiddenExceptionRes(parsedOutput, context);
|
|
640
929
|
case "WmsUnauthorizedException":
|
|
641
930
|
case "wildix.wms.api#WmsUnauthorizedException":
|
|
642
931
|
throw await de_WmsUnauthorizedExceptionRes(parsedOutput, context);
|
|
@@ -656,6 +945,34 @@ const de_CommandError = async (output, context) => {
|
|
|
656
945
|
}
|
|
657
946
|
};
|
|
658
947
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(WmsApiServiceException_1.WmsApiServiceException);
|
|
948
|
+
const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
949
|
+
const contents = (0, smithy_client_1.map)({});
|
|
950
|
+
const data = parsedOutput.body;
|
|
951
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
952
|
+
'reason': smithy_client_1.expectString,
|
|
953
|
+
'type': smithy_client_1.expectString,
|
|
954
|
+
});
|
|
955
|
+
Object.assign(contents, doc);
|
|
956
|
+
const exception = new models_0_1.ChannelNotFoundException({
|
|
957
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
958
|
+
...contents
|
|
959
|
+
});
|
|
960
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
961
|
+
};
|
|
962
|
+
const de_WmsForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
963
|
+
const contents = (0, smithy_client_1.map)({});
|
|
964
|
+
const data = parsedOutput.body;
|
|
965
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
966
|
+
'reason': smithy_client_1.expectString,
|
|
967
|
+
'type': smithy_client_1.expectString,
|
|
968
|
+
});
|
|
969
|
+
Object.assign(contents, doc);
|
|
970
|
+
const exception = new models_0_1.WmsForbiddenException({
|
|
971
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
972
|
+
...contents
|
|
973
|
+
});
|
|
974
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
975
|
+
};
|
|
659
976
|
const de_WmsNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
660
977
|
const contents = (0, smithy_client_1.map)({});
|
|
661
978
|
const data = parsedOutput.body;
|
|
@@ -746,3 +1063,4 @@ const _sF = "searchFields";
|
|
|
746
1063
|
const _sS = "searchStrategy";
|
|
747
1064
|
const _so = "sort";
|
|
748
1065
|
const _st = "start";
|
|
1066
|
+
const _u = "user";
|
package/dist-es/WmsApi.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { WmsApiClient, } from "./WmsApiClient";
|
|
2
|
+
import { CallControlAnswerCommand, } from "./commands/CallControlAnswerCommand";
|
|
3
|
+
import { CallControlHangupCommand, } from "./commands/CallControlHangupCommand";
|
|
4
|
+
import { CallControlHoldCommand, } from "./commands/CallControlHoldCommand";
|
|
5
|
+
import { CallControlMakeCallCommand, } from "./commands/CallControlMakeCallCommand";
|
|
6
|
+
import { CallControlTransferCommand, } from "./commands/CallControlTransferCommand";
|
|
7
|
+
import { CallControlUnholdCommand, } from "./commands/CallControlUnholdCommand";
|
|
2
8
|
import { CreatePbxAclGroupCommand, } from "./commands/CreatePbxAclGroupCommand";
|
|
3
9
|
import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
|
|
4
10
|
import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
@@ -12,6 +18,8 @@ import { GetPbxColleaguesCommand, } from "./commands/GetPbxColleaguesCommand";
|
|
|
12
18
|
import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
13
19
|
import { GetPbxesCommand, } from "./commands/GetPbxesCommand";
|
|
14
20
|
import { GetPersonalInfoCommand, } from "./commands/GetPersonalInfoCommand";
|
|
21
|
+
import { ListUserActiveCallsCommand, } from "./commands/ListUserActiveCallsCommand";
|
|
22
|
+
import { ListUserDevicesCommand, } from "./commands/ListUserDevicesCommand";
|
|
15
23
|
import { NotificationsCommand, } from "./commands/NotificationsCommand";
|
|
16
24
|
import { OriginateCallCommand, } from "./commands/OriginateCallCommand";
|
|
17
25
|
import { OriginateCommand, } from "./commands/OriginateCommand";
|
|
@@ -19,6 +27,12 @@ import { ReloadBroadcastsCommand, } from "./commands/ReloadBroadcastsCommand";
|
|
|
19
27
|
import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
20
28
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
21
29
|
const commands = {
|
|
30
|
+
CallControlAnswerCommand,
|
|
31
|
+
CallControlHangupCommand,
|
|
32
|
+
CallControlHoldCommand,
|
|
33
|
+
CallControlMakeCallCommand,
|
|
34
|
+
CallControlTransferCommand,
|
|
35
|
+
CallControlUnholdCommand,
|
|
22
36
|
CreatePbxAclGroupCommand,
|
|
23
37
|
CreatePbxColleagueCommand,
|
|
24
38
|
CreatePbxOAuth2ClientCommand,
|
|
@@ -32,6 +46,8 @@ const commands = {
|
|
|
32
46
|
GetPbxesCommand,
|
|
33
47
|
GetPbxOAuth2ClientsCommand,
|
|
34
48
|
GetPersonalInfoCommand,
|
|
49
|
+
ListUserActiveCallsCommand,
|
|
50
|
+
ListUserDevicesCommand,
|
|
35
51
|
NotificationsCommand,
|
|
36
52
|
OriginateCommand,
|
|
37
53
|
OriginateCallCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CallControlAnswerCommand, se_CallControlAnswerCommand, } 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 CallControlAnswerCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CallControlAnswer", {})
|
|
12
|
+
.n("WmsApiClient", "CallControlAnswerCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CallControlAnswerCommand)
|
|
15
|
+
.de(de_CallControlAnswerCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CallControlHangupCommand, se_CallControlHangupCommand, } 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 CallControlHangupCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CallControlHangup", {})
|
|
12
|
+
.n("WmsApiClient", "CallControlHangupCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CallControlHangupCommand)
|
|
15
|
+
.de(de_CallControlHangupCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CallControlHoldCommand, se_CallControlHoldCommand, } 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 CallControlHoldCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CallControlHold", {})
|
|
12
|
+
.n("WmsApiClient", "CallControlHoldCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CallControlHoldCommand)
|
|
15
|
+
.de(de_CallControlHoldCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CallControlMakeCallCommand, se_CallControlMakeCallCommand, } 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 CallControlMakeCallCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CallControlMakeCall", {})
|
|
12
|
+
.n("WmsApiClient", "CallControlMakeCallCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CallControlMakeCallCommand)
|
|
15
|
+
.de(de_CallControlMakeCallCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CallControlTransferCommand, se_CallControlTransferCommand, } 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 CallControlTransferCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CallControlTransfer", {})
|
|
12
|
+
.n("WmsApiClient", "CallControlTransferCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CallControlTransferCommand)
|
|
15
|
+
.de(de_CallControlTransferCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CallControlUnholdCommand, se_CallControlUnholdCommand, } 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 CallControlUnholdCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CallControlUnhold", {})
|
|
12
|
+
.n("WmsApiClient", "CallControlUnholdCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CallControlUnholdCommand)
|
|
15
|
+
.de(de_CallControlUnholdCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListUserActiveCallsCommand, se_ListUserActiveCallsCommand, } 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 ListUserActiveCallsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "ListUserActiveCalls", {})
|
|
12
|
+
.n("WmsApiClient", "ListUserActiveCallsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListUserActiveCallsCommand)
|
|
15
|
+
.de(de_ListUserActiveCallsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListUserDevicesCommand, se_ListUserDevicesCommand, } 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 ListUserDevicesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "ListUserDevices", {})
|
|
12
|
+
.n("WmsApiClient", "ListUserDevicesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListUserDevicesCommand)
|
|
15
|
+
.de(de_ListUserDevicesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export * from "./CallControlAnswerCommand";
|
|
2
|
+
export * from "./CallControlHangupCommand";
|
|
3
|
+
export * from "./CallControlHoldCommand";
|
|
4
|
+
export * from "./CallControlMakeCallCommand";
|
|
5
|
+
export * from "./CallControlTransferCommand";
|
|
6
|
+
export * from "./CallControlUnholdCommand";
|
|
1
7
|
export * from "./CreatePbxAclGroupCommand";
|
|
2
8
|
export * from "./CreatePbxColleagueCommand";
|
|
3
9
|
export * from "./CreatePbxOAuth2ClientCommand";
|
|
@@ -11,6 +17,8 @@ export * from "./GetPbxColleaguesCommand";
|
|
|
11
17
|
export * from "./GetPbxesCommand";
|
|
12
18
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
13
19
|
export * from "./GetPersonalInfoCommand";
|
|
20
|
+
export * from "./ListUserActiveCallsCommand";
|
|
21
|
+
export * from "./ListUserDevicesCommand";
|
|
14
22
|
export * from "./NotificationsCommand";
|
|
15
23
|
export * from "./OriginateCommand";
|
|
16
24
|
export * from "./OriginateCallCommand";
|
|
@@ -18,6 +18,38 @@ 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
|
+
}
|
|
21
53
|
export class WmsUnauthorizedException extends __BaseException {
|
|
22
54
|
name = "WmsUnauthorizedException";
|
|
23
55
|
$fault = "client";
|