@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.
- package/dist-cjs/WmsApi.js +0 -18
- package/dist-cjs/commands/index.js +0 -9
- package/dist-cjs/models/models_0.js +1 -35
- package/dist-cjs/protocols/Aws_restJson1.js +1 -348
- package/dist-es/WmsApi.js +0 -18
- package/dist-es/commands/index.js +0 -9
- package/dist-es/models/models_0.js +0 -32
- package/dist-es/protocols/Aws_restJson1.js +1 -329
- package/dist-types/WmsApi.d.ts +0 -65
- package/dist-types/WmsApiClient.d.ts +2 -11
- package/dist-types/commands/CreatePbxAclGroupCommand.d.ts +0 -2
- package/dist-types/commands/CreatePbxColleagueCommand.d.ts +0 -2
- package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +0 -2
- package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +0 -2
- package/dist-types/commands/DeletePbxColleagueCommand.d.ts +0 -2
- package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +0 -2
- package/dist-types/commands/GetColleagueByIdCommand.d.ts +0 -2
- package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +0 -2
- package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +0 -2
- package/dist-types/commands/GetPbxColleaguesCommand.d.ts +0 -2
- package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +1 -2
- package/dist-types/commands/GetPbxesCommand.d.ts +0 -2
- package/dist-types/commands/GetPersonalInfoCommand.d.ts +0 -2
- package/dist-types/commands/NotificationsCommand.d.ts +0 -2
- package/dist-types/commands/OriginateCallCommand.d.ts +0 -2
- package/dist-types/commands/OriginateCommand.d.ts +0 -2
- package/dist-types/commands/ReloadBroadcastsCommand.d.ts +0 -2
- package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +0 -2
- package/dist-types/commands/index.d.ts +0 -9
- package/dist-types/models/models_0.d.ts +8 -285
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -81
- package/package.json +1 -1
- package/dist-cjs/commands/CallControlAnswerCommand.js +0 -21
- package/dist-cjs/commands/CallControlAttendantTransferCommand.js +0 -21
- package/dist-cjs/commands/CallControlBlindTransferCommand.js +0 -21
- package/dist-cjs/commands/CallControlHangupCommand.js +0 -21
- package/dist-cjs/commands/CallControlHoldCommand.js +0 -21
- package/dist-cjs/commands/CallControlMakeCallCommand.js +0 -21
- package/dist-cjs/commands/CallControlUnholdCommand.js +0 -21
- package/dist-cjs/commands/ListUserActiveCallsCommand.js +0 -21
- package/dist-cjs/commands/ListUserDevicesCommand.js +0 -21
- package/dist-es/commands/CallControlAnswerCommand.js +0 -17
- package/dist-es/commands/CallControlAttendantTransferCommand.js +0 -17
- package/dist-es/commands/CallControlBlindTransferCommand.js +0 -17
- package/dist-es/commands/CallControlHangupCommand.js +0 -17
- package/dist-es/commands/CallControlHoldCommand.js +0 -17
- package/dist-es/commands/CallControlMakeCallCommand.js +0 -17
- package/dist-es/commands/CallControlUnholdCommand.js +0 -17
- package/dist-es/commands/ListUserActiveCallsCommand.js +0 -17
- package/dist-es/commands/ListUserDevicesCommand.js +0 -17
- package/dist-types/commands/CallControlAnswerCommand.d.ts +0 -80
- package/dist-types/commands/CallControlAttendantTransferCommand.d.ts +0 -80
- package/dist-types/commands/CallControlBlindTransferCommand.d.ts +0 -80
- package/dist-types/commands/CallControlHangupCommand.d.ts +0 -80
- package/dist-types/commands/CallControlHoldCommand.d.ts +0 -79
- package/dist-types/commands/CallControlMakeCallCommand.d.ts +0 -78
- package/dist-types/commands/CallControlUnholdCommand.d.ts +0 -79
- package/dist-types/commands/ListUserActiveCallsCommand.d.ts +0 -86
- package/dist-types/commands/ListUserDevicesCommand.d.ts +0 -85
|
@@ -1,146 +1,8 @@
|
|
|
1
1
|
import { WmsApiServiceException as __BaseException } from "../models/WmsApiServiceException";
|
|
2
|
-
import {
|
|
2
|
+
import { WmsNotFoundException, WmsUnauthorizedException, WmsValidationException, } from "../models/models_0";
|
|
3
3
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
5
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
|
-
export const se_CallControlAnswerCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
'content-type': 'application/json',
|
|
10
|
-
};
|
|
11
|
-
b.bp("/api/v2/call-control/answer");
|
|
12
|
-
const query = map({
|
|
13
|
-
[_u]: [, input[_u]],
|
|
14
|
-
});
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(take(input, {
|
|
17
|
-
'device': [],
|
|
18
|
-
'sipCallId': [],
|
|
19
|
-
}));
|
|
20
|
-
b.m("POST")
|
|
21
|
-
.h(headers)
|
|
22
|
-
.q(query)
|
|
23
|
-
.b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
export const se_CallControlAttendantTransferCommand = async (input, context) => {
|
|
27
|
-
const b = rb(input, context);
|
|
28
|
-
const headers = {
|
|
29
|
-
'content-type': 'application/json',
|
|
30
|
-
};
|
|
31
|
-
b.bp("/api/v2/call-control/attendant-transfer");
|
|
32
|
-
const query = map({
|
|
33
|
-
[_u]: [, input[_u]],
|
|
34
|
-
});
|
|
35
|
-
let body;
|
|
36
|
-
body = JSON.stringify(take(input, {
|
|
37
|
-
'destination': [],
|
|
38
|
-
'sipCallId': [],
|
|
39
|
-
}));
|
|
40
|
-
b.m("POST")
|
|
41
|
-
.h(headers)
|
|
42
|
-
.q(query)
|
|
43
|
-
.b(body);
|
|
44
|
-
return b.build();
|
|
45
|
-
};
|
|
46
|
-
export const se_CallControlBlindTransferCommand = async (input, context) => {
|
|
47
|
-
const b = rb(input, context);
|
|
48
|
-
const headers = {
|
|
49
|
-
'content-type': 'application/json',
|
|
50
|
-
};
|
|
51
|
-
b.bp("/api/v2/call-control/blind-transfer");
|
|
52
|
-
const query = map({
|
|
53
|
-
[_u]: [, input[_u]],
|
|
54
|
-
});
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify(take(input, {
|
|
57
|
-
'destination': [],
|
|
58
|
-
'sipCallId': [],
|
|
59
|
-
}));
|
|
60
|
-
b.m("POST")
|
|
61
|
-
.h(headers)
|
|
62
|
-
.q(query)
|
|
63
|
-
.b(body);
|
|
64
|
-
return b.build();
|
|
65
|
-
};
|
|
66
|
-
export const se_CallControlHangupCommand = async (input, context) => {
|
|
67
|
-
const b = rb(input, context);
|
|
68
|
-
const headers = {
|
|
69
|
-
'content-type': 'application/json',
|
|
70
|
-
};
|
|
71
|
-
b.bp("/api/v2/call-control/hangup");
|
|
72
|
-
const query = map({
|
|
73
|
-
[_u]: [, input[_u]],
|
|
74
|
-
});
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(take(input, {
|
|
77
|
-
'reason': [],
|
|
78
|
-
'sipCallId': [],
|
|
79
|
-
}));
|
|
80
|
-
b.m("POST")
|
|
81
|
-
.h(headers)
|
|
82
|
-
.q(query)
|
|
83
|
-
.b(body);
|
|
84
|
-
return b.build();
|
|
85
|
-
};
|
|
86
|
-
export const se_CallControlHoldCommand = async (input, context) => {
|
|
87
|
-
const b = rb(input, context);
|
|
88
|
-
const headers = {
|
|
89
|
-
'content-type': 'application/json',
|
|
90
|
-
};
|
|
91
|
-
b.bp("/api/v2/call-control/hold");
|
|
92
|
-
const query = map({
|
|
93
|
-
[_u]: [, input[_u]],
|
|
94
|
-
});
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify(take(input, {
|
|
97
|
-
'sipCallId': [],
|
|
98
|
-
}));
|
|
99
|
-
b.m("POST")
|
|
100
|
-
.h(headers)
|
|
101
|
-
.q(query)
|
|
102
|
-
.b(body);
|
|
103
|
-
return b.build();
|
|
104
|
-
};
|
|
105
|
-
export const se_CallControlMakeCallCommand = async (input, context) => {
|
|
106
|
-
const b = rb(input, context);
|
|
107
|
-
const headers = {
|
|
108
|
-
'content-type': 'application/json',
|
|
109
|
-
};
|
|
110
|
-
b.bp("/api/v2/call-control/make-call");
|
|
111
|
-
const query = map({
|
|
112
|
-
[_u]: [, input[_u]],
|
|
113
|
-
});
|
|
114
|
-
let body;
|
|
115
|
-
body = JSON.stringify(take(input, {
|
|
116
|
-
'destination': [],
|
|
117
|
-
'device': [],
|
|
118
|
-
}));
|
|
119
|
-
b.m("POST")
|
|
120
|
-
.h(headers)
|
|
121
|
-
.q(query)
|
|
122
|
-
.b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
export const se_CallControlUnholdCommand = async (input, context) => {
|
|
126
|
-
const b = rb(input, context);
|
|
127
|
-
const headers = {
|
|
128
|
-
'content-type': 'application/json',
|
|
129
|
-
};
|
|
130
|
-
b.bp("/api/v2/call-control/unhold");
|
|
131
|
-
const query = map({
|
|
132
|
-
[_u]: [, input[_u]],
|
|
133
|
-
});
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(take(input, {
|
|
136
|
-
'sipCallId': [],
|
|
137
|
-
}));
|
|
138
|
-
b.m("POST")
|
|
139
|
-
.h(headers)
|
|
140
|
-
.q(query)
|
|
141
|
-
.b(body);
|
|
142
|
-
return b.build();
|
|
143
|
-
};
|
|
144
6
|
export const se_CreatePbxAclGroupCommand = async (input, context) => {
|
|
145
7
|
const b = rb(input, context);
|
|
146
8
|
const headers = {
|
|
@@ -365,34 +227,6 @@ export const se_GetPersonalInfoCommand = async (input, context) => {
|
|
|
365
227
|
.b(body);
|
|
366
228
|
return b.build();
|
|
367
229
|
};
|
|
368
|
-
export const se_ListUserActiveCallsCommand = async (input, context) => {
|
|
369
|
-
const b = rb(input, context);
|
|
370
|
-
const headers = {};
|
|
371
|
-
b.bp("/api/v2/call-control/list-calls");
|
|
372
|
-
const query = map({
|
|
373
|
-
[_u]: [, input[_u]],
|
|
374
|
-
});
|
|
375
|
-
let body;
|
|
376
|
-
b.m("GET")
|
|
377
|
-
.h(headers)
|
|
378
|
-
.q(query)
|
|
379
|
-
.b(body);
|
|
380
|
-
return b.build();
|
|
381
|
-
};
|
|
382
|
-
export const se_ListUserDevicesCommand = async (input, context) => {
|
|
383
|
-
const b = rb(input, context);
|
|
384
|
-
const headers = {};
|
|
385
|
-
b.bp("/api/v2/call-control/list-devices");
|
|
386
|
-
const query = map({
|
|
387
|
-
[_u]: [, input[_u]],
|
|
388
|
-
});
|
|
389
|
-
let body;
|
|
390
|
-
b.m("GET")
|
|
391
|
-
.h(headers)
|
|
392
|
-
.q(query)
|
|
393
|
-
.b(body);
|
|
394
|
-
return b.build();
|
|
395
|
-
};
|
|
396
230
|
export const se_NotificationsCommand = async (input, context) => {
|
|
397
231
|
const b = rb(input, context);
|
|
398
232
|
const headers = {
|
|
@@ -488,104 +322,6 @@ export const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
488
322
|
.b(body);
|
|
489
323
|
return b.build();
|
|
490
324
|
};
|
|
491
|
-
export const de_CallControlAnswerCommand = async (output, context) => {
|
|
492
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
493
|
-
return de_CommandError(output, context);
|
|
494
|
-
}
|
|
495
|
-
const contents = map({
|
|
496
|
-
$metadata: deserializeMetadata(output),
|
|
497
|
-
});
|
|
498
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
499
|
-
const doc = take(data, {
|
|
500
|
-
'message': __expectString,
|
|
501
|
-
});
|
|
502
|
-
Object.assign(contents, doc);
|
|
503
|
-
return contents;
|
|
504
|
-
};
|
|
505
|
-
export const de_CallControlAttendantTransferCommand = async (output, context) => {
|
|
506
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
507
|
-
return de_CommandError(output, context);
|
|
508
|
-
}
|
|
509
|
-
const contents = map({
|
|
510
|
-
$metadata: deserializeMetadata(output),
|
|
511
|
-
});
|
|
512
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
513
|
-
const doc = take(data, {
|
|
514
|
-
'message': __expectString,
|
|
515
|
-
});
|
|
516
|
-
Object.assign(contents, doc);
|
|
517
|
-
return contents;
|
|
518
|
-
};
|
|
519
|
-
export const de_CallControlBlindTransferCommand = async (output, context) => {
|
|
520
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
521
|
-
return de_CommandError(output, context);
|
|
522
|
-
}
|
|
523
|
-
const contents = map({
|
|
524
|
-
$metadata: deserializeMetadata(output),
|
|
525
|
-
});
|
|
526
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
527
|
-
const doc = take(data, {
|
|
528
|
-
'message': __expectString,
|
|
529
|
-
});
|
|
530
|
-
Object.assign(contents, doc);
|
|
531
|
-
return contents;
|
|
532
|
-
};
|
|
533
|
-
export const de_CallControlHangupCommand = async (output, context) => {
|
|
534
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
|
-
return de_CommandError(output, context);
|
|
536
|
-
}
|
|
537
|
-
const contents = map({
|
|
538
|
-
$metadata: deserializeMetadata(output),
|
|
539
|
-
});
|
|
540
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
541
|
-
const doc = take(data, {
|
|
542
|
-
'message': __expectString,
|
|
543
|
-
});
|
|
544
|
-
Object.assign(contents, doc);
|
|
545
|
-
return contents;
|
|
546
|
-
};
|
|
547
|
-
export const de_CallControlHoldCommand = async (output, context) => {
|
|
548
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
549
|
-
return de_CommandError(output, context);
|
|
550
|
-
}
|
|
551
|
-
const contents = map({
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
});
|
|
554
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
555
|
-
const doc = take(data, {
|
|
556
|
-
'message': __expectString,
|
|
557
|
-
});
|
|
558
|
-
Object.assign(contents, doc);
|
|
559
|
-
return contents;
|
|
560
|
-
};
|
|
561
|
-
export const de_CallControlMakeCallCommand = async (output, context) => {
|
|
562
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
563
|
-
return de_CommandError(output, context);
|
|
564
|
-
}
|
|
565
|
-
const contents = map({
|
|
566
|
-
$metadata: deserializeMetadata(output),
|
|
567
|
-
});
|
|
568
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
569
|
-
const doc = take(data, {
|
|
570
|
-
'message': __expectString,
|
|
571
|
-
});
|
|
572
|
-
Object.assign(contents, doc);
|
|
573
|
-
return contents;
|
|
574
|
-
};
|
|
575
|
-
export const de_CallControlUnholdCommand = async (output, context) => {
|
|
576
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
577
|
-
return de_CommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const contents = map({
|
|
580
|
-
$metadata: deserializeMetadata(output),
|
|
581
|
-
});
|
|
582
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
583
|
-
const doc = take(data, {
|
|
584
|
-
'message': __expectString,
|
|
585
|
-
});
|
|
586
|
-
Object.assign(contents, doc);
|
|
587
|
-
return contents;
|
|
588
|
-
};
|
|
589
325
|
export const de_CreatePbxAclGroupCommand = async (output, context) => {
|
|
590
326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
591
327
|
return de_CommandError(output, context);
|
|
@@ -781,35 +517,6 @@ export const de_GetPersonalInfoCommand = async (output, context) => {
|
|
|
781
517
|
Object.assign(contents, doc);
|
|
782
518
|
return contents;
|
|
783
519
|
};
|
|
784
|
-
export const de_ListUserActiveCallsCommand = async (output, context) => {
|
|
785
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
786
|
-
return de_CommandError(output, context);
|
|
787
|
-
}
|
|
788
|
-
const contents = map({
|
|
789
|
-
$metadata: deserializeMetadata(output),
|
|
790
|
-
});
|
|
791
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
792
|
-
const doc = take(data, {
|
|
793
|
-
'calls': _json,
|
|
794
|
-
});
|
|
795
|
-
Object.assign(contents, doc);
|
|
796
|
-
return contents;
|
|
797
|
-
};
|
|
798
|
-
export const de_ListUserDevicesCommand = async (output, context) => {
|
|
799
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
800
|
-
return de_CommandError(output, context);
|
|
801
|
-
}
|
|
802
|
-
const contents = map({
|
|
803
|
-
$metadata: deserializeMetadata(output),
|
|
804
|
-
});
|
|
805
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
806
|
-
const doc = take(data, {
|
|
807
|
-
'activeDevice': _json,
|
|
808
|
-
'devices': _json,
|
|
809
|
-
});
|
|
810
|
-
Object.assign(contents, doc);
|
|
811
|
-
return contents;
|
|
812
|
-
};
|
|
813
520
|
export const de_NotificationsCommand = async (output, context) => {
|
|
814
521
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
815
522
|
return de_CommandError(output, context);
|
|
@@ -892,12 +599,6 @@ const de_CommandError = async (output, context) => {
|
|
|
892
599
|
};
|
|
893
600
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
601
|
switch (errorCode) {
|
|
895
|
-
case "ChannelNotFoundException":
|
|
896
|
-
case "wildix.wms.api#ChannelNotFoundException":
|
|
897
|
-
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
898
|
-
case "WmsForbiddenException":
|
|
899
|
-
case "wildix.wms.api#WmsForbiddenException":
|
|
900
|
-
throw await de_WmsForbiddenExceptionRes(parsedOutput, context);
|
|
901
602
|
case "WmsUnauthorizedException":
|
|
902
603
|
case "wildix.wms.api#WmsUnauthorizedException":
|
|
903
604
|
throw await de_WmsUnauthorizedExceptionRes(parsedOutput, context);
|
|
@@ -917,34 +618,6 @@ const de_CommandError = async (output, context) => {
|
|
|
917
618
|
}
|
|
918
619
|
};
|
|
919
620
|
const throwDefaultError = withBaseException(__BaseException);
|
|
920
|
-
const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
921
|
-
const contents = map({});
|
|
922
|
-
const data = parsedOutput.body;
|
|
923
|
-
const doc = take(data, {
|
|
924
|
-
'reason': __expectString,
|
|
925
|
-
'type': __expectString,
|
|
926
|
-
});
|
|
927
|
-
Object.assign(contents, doc);
|
|
928
|
-
const exception = new ChannelNotFoundException({
|
|
929
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
930
|
-
...contents
|
|
931
|
-
});
|
|
932
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
933
|
-
};
|
|
934
|
-
const de_WmsForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
935
|
-
const contents = map({});
|
|
936
|
-
const data = parsedOutput.body;
|
|
937
|
-
const doc = take(data, {
|
|
938
|
-
'reason': __expectString,
|
|
939
|
-
'type': __expectString,
|
|
940
|
-
});
|
|
941
|
-
Object.assign(contents, doc);
|
|
942
|
-
const exception = new WmsForbiddenException({
|
|
943
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
944
|
-
...contents
|
|
945
|
-
});
|
|
946
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
947
|
-
};
|
|
948
621
|
const de_WmsNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
949
622
|
const contents = map({});
|
|
950
623
|
const data = parsedOutput.body;
|
|
@@ -1035,4 +708,3 @@ const _sF = "searchFields";
|
|
|
1035
708
|
const _sS = "searchStrategy";
|
|
1036
709
|
const _so = "sort";
|
|
1037
710
|
const _st = "start";
|
|
1038
|
-
const _u = "user";
|
package/dist-types/WmsApi.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { WmsApiClient } from "./WmsApiClient";
|
|
2
|
-
import { CallControlAnswerCommandInput, CallControlAnswerCommandOutput } from "./commands/CallControlAnswerCommand";
|
|
3
|
-
import { CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput } from "./commands/CallControlAttendantTransferCommand";
|
|
4
|
-
import { CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput } from "./commands/CallControlBlindTransferCommand";
|
|
5
|
-
import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from "./commands/CallControlHangupCommand";
|
|
6
|
-
import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "./commands/CallControlHoldCommand";
|
|
7
|
-
import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "./commands/CallControlMakeCallCommand";
|
|
8
|
-
import { CallControlUnholdCommandInput, CallControlUnholdCommandOutput } from "./commands/CallControlUnholdCommand";
|
|
9
2
|
import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
|
|
10
3
|
import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
|
|
11
4
|
import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
@@ -19,8 +12,6 @@ import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./c
|
|
|
19
12
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
20
13
|
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
|
|
21
14
|
import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "./commands/GetPersonalInfoCommand";
|
|
22
|
-
import { ListUserActiveCallsCommandInput, ListUserActiveCallsCommandOutput } from "./commands/ListUserActiveCallsCommand";
|
|
23
|
-
import { ListUserDevicesCommandInput, ListUserDevicesCommandOutput } from "./commands/ListUserDevicesCommand";
|
|
24
15
|
import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
|
|
25
16
|
import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
|
|
26
17
|
import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
|
|
@@ -28,48 +19,6 @@ import { ReloadBroadcastsCommandInput, ReloadBroadcastsCommandOutput } from "./c
|
|
|
28
19
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
29
20
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
30
21
|
export interface WmsApi {
|
|
31
|
-
/**
|
|
32
|
-
* @see {@link CallControlAnswerCommand}
|
|
33
|
-
*/
|
|
34
|
-
callControlAnswer(args: CallControlAnswerCommandInput, options?: __HttpHandlerOptions): Promise<CallControlAnswerCommandOutput>;
|
|
35
|
-
callControlAnswer(args: CallControlAnswerCommandInput, cb: (err: any, data?: CallControlAnswerCommandOutput) => void): void;
|
|
36
|
-
callControlAnswer(args: CallControlAnswerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlAnswerCommandOutput) => void): void;
|
|
37
|
-
/**
|
|
38
|
-
* @see {@link CallControlAttendantTransferCommand}
|
|
39
|
-
*/
|
|
40
|
-
callControlAttendantTransfer(args: CallControlAttendantTransferCommandInput, options?: __HttpHandlerOptions): Promise<CallControlAttendantTransferCommandOutput>;
|
|
41
|
-
callControlAttendantTransfer(args: CallControlAttendantTransferCommandInput, cb: (err: any, data?: CallControlAttendantTransferCommandOutput) => void): void;
|
|
42
|
-
callControlAttendantTransfer(args: CallControlAttendantTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlAttendantTransferCommandOutput) => void): void;
|
|
43
|
-
/**
|
|
44
|
-
* @see {@link CallControlBlindTransferCommand}
|
|
45
|
-
*/
|
|
46
|
-
callControlBlindTransfer(args: CallControlBlindTransferCommandInput, options?: __HttpHandlerOptions): Promise<CallControlBlindTransferCommandOutput>;
|
|
47
|
-
callControlBlindTransfer(args: CallControlBlindTransferCommandInput, cb: (err: any, data?: CallControlBlindTransferCommandOutput) => void): void;
|
|
48
|
-
callControlBlindTransfer(args: CallControlBlindTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlBlindTransferCommandOutput) => void): void;
|
|
49
|
-
/**
|
|
50
|
-
* @see {@link CallControlHangupCommand}
|
|
51
|
-
*/
|
|
52
|
-
callControlHangup(args: CallControlHangupCommandInput, options?: __HttpHandlerOptions): Promise<CallControlHangupCommandOutput>;
|
|
53
|
-
callControlHangup(args: CallControlHangupCommandInput, cb: (err: any, data?: CallControlHangupCommandOutput) => void): void;
|
|
54
|
-
callControlHangup(args: CallControlHangupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlHangupCommandOutput) => void): void;
|
|
55
|
-
/**
|
|
56
|
-
* @see {@link CallControlHoldCommand}
|
|
57
|
-
*/
|
|
58
|
-
callControlHold(args: CallControlHoldCommandInput, options?: __HttpHandlerOptions): Promise<CallControlHoldCommandOutput>;
|
|
59
|
-
callControlHold(args: CallControlHoldCommandInput, cb: (err: any, data?: CallControlHoldCommandOutput) => void): void;
|
|
60
|
-
callControlHold(args: CallControlHoldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlHoldCommandOutput) => void): void;
|
|
61
|
-
/**
|
|
62
|
-
* @see {@link CallControlMakeCallCommand}
|
|
63
|
-
*/
|
|
64
|
-
callControlMakeCall(args: CallControlMakeCallCommandInput, options?: __HttpHandlerOptions): Promise<CallControlMakeCallCommandOutput>;
|
|
65
|
-
callControlMakeCall(args: CallControlMakeCallCommandInput, cb: (err: any, data?: CallControlMakeCallCommandOutput) => void): void;
|
|
66
|
-
callControlMakeCall(args: CallControlMakeCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlMakeCallCommandOutput) => void): void;
|
|
67
|
-
/**
|
|
68
|
-
* @see {@link CallControlUnholdCommand}
|
|
69
|
-
*/
|
|
70
|
-
callControlUnhold(args: CallControlUnholdCommandInput, options?: __HttpHandlerOptions): Promise<CallControlUnholdCommandOutput>;
|
|
71
|
-
callControlUnhold(args: CallControlUnholdCommandInput, cb: (err: any, data?: CallControlUnholdCommandOutput) => void): void;
|
|
72
|
-
callControlUnhold(args: CallControlUnholdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlUnholdCommandOutput) => void): void;
|
|
73
22
|
/**
|
|
74
23
|
* @see {@link CreatePbxAclGroupCommand}
|
|
75
24
|
*/
|
|
@@ -154,20 +103,6 @@ export interface WmsApi {
|
|
|
154
103
|
getPersonalInfo(args: GetPersonalInfoCommandInput, options?: __HttpHandlerOptions): Promise<GetPersonalInfoCommandOutput>;
|
|
155
104
|
getPersonalInfo(args: GetPersonalInfoCommandInput, cb: (err: any, data?: GetPersonalInfoCommandOutput) => void): void;
|
|
156
105
|
getPersonalInfo(args: GetPersonalInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPersonalInfoCommandOutput) => void): void;
|
|
157
|
-
/**
|
|
158
|
-
* @see {@link ListUserActiveCallsCommand}
|
|
159
|
-
*/
|
|
160
|
-
listUserActiveCalls(): Promise<ListUserActiveCallsCommandOutput>;
|
|
161
|
-
listUserActiveCalls(args: ListUserActiveCallsCommandInput, options?: __HttpHandlerOptions): Promise<ListUserActiveCallsCommandOutput>;
|
|
162
|
-
listUserActiveCalls(args: ListUserActiveCallsCommandInput, cb: (err: any, data?: ListUserActiveCallsCommandOutput) => void): void;
|
|
163
|
-
listUserActiveCalls(args: ListUserActiveCallsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListUserActiveCallsCommandOutput) => void): void;
|
|
164
|
-
/**
|
|
165
|
-
* @see {@link ListUserDevicesCommand}
|
|
166
|
-
*/
|
|
167
|
-
listUserDevices(): Promise<ListUserDevicesCommandOutput>;
|
|
168
|
-
listUserDevices(args: ListUserDevicesCommandInput, options?: __HttpHandlerOptions): Promise<ListUserDevicesCommandOutput>;
|
|
169
|
-
listUserDevices(args: ListUserDevicesCommandInput, cb: (err: any, data?: ListUserDevicesCommandOutput) => void): void;
|
|
170
|
-
listUserDevices(args: ListUserDevicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListUserDevicesCommandOutput) => void): void;
|
|
171
106
|
/**
|
|
172
107
|
* @see {@link NotificationsCommand}
|
|
173
108
|
*/
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { CallControlAnswerCommandInput, CallControlAnswerCommandOutput } from "./commands/CallControlAnswerCommand";
|
|
2
|
-
import { CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput } from "./commands/CallControlAttendantTransferCommand";
|
|
3
|
-
import { CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput } from "./commands/CallControlBlindTransferCommand";
|
|
4
|
-
import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from "./commands/CallControlHangupCommand";
|
|
5
|
-
import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "./commands/CallControlHoldCommand";
|
|
6
|
-
import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "./commands/CallControlMakeCallCommand";
|
|
7
|
-
import { CallControlUnholdCommandInput, CallControlUnholdCommandOutput } from "./commands/CallControlUnholdCommand";
|
|
8
1
|
import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
|
|
9
2
|
import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
|
|
10
3
|
import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
@@ -18,8 +11,6 @@ import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./c
|
|
|
18
11
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
19
12
|
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
|
|
20
13
|
import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "./commands/GetPersonalInfoCommand";
|
|
21
|
-
import { ListUserActiveCallsCommandInput, ListUserActiveCallsCommandOutput } from "./commands/ListUserActiveCallsCommand";
|
|
22
|
-
import { ListUserDevicesCommandInput, ListUserDevicesCommandOutput } from "./commands/ListUserDevicesCommand";
|
|
23
14
|
import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
|
|
24
15
|
import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
|
|
25
16
|
import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
|
|
@@ -36,11 +27,11 @@ export { __Client };
|
|
|
36
27
|
/**
|
|
37
28
|
* @public
|
|
38
29
|
*/
|
|
39
|
-
export type ServiceInputTypes =
|
|
30
|
+
export type ServiceInputTypes = CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | ReloadBroadcastsCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
40
31
|
/**
|
|
41
32
|
* @public
|
|
42
33
|
*/
|
|
43
|
-
export type ServiceOutputTypes =
|
|
34
|
+
export type ServiceOutputTypes = CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | ReloadBroadcastsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
44
35
|
/**
|
|
45
36
|
* @public
|
|
46
37
|
*/
|
|
@@ -78,8 +78,6 @@ declare const CreatePbxAclGroupCommand_base: {
|
|
|
78
78
|
*
|
|
79
79
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
80
80
|
*
|
|
81
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
82
|
-
*
|
|
83
81
|
* @throws {@link WmsApiServiceException}
|
|
84
82
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
85
83
|
*
|
|
@@ -92,8 +92,6 @@ declare const CreatePbxColleagueCommand_base: {
|
|
|
92
92
|
*
|
|
93
93
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
94
94
|
*
|
|
95
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
96
|
-
*
|
|
97
95
|
* @throws {@link WmsApiServiceException}
|
|
98
96
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
99
97
|
*
|
|
@@ -72,8 +72,6 @@ declare const CreatePbxOAuth2ClientCommand_base: {
|
|
|
72
72
|
*
|
|
73
73
|
* @throws {@link WmsValidationException} (client fault)
|
|
74
74
|
*
|
|
75
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
76
|
-
*
|
|
77
75
|
* @throws {@link WmsApiServiceException}
|
|
78
76
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
79
77
|
*
|
|
@@ -55,8 +55,6 @@ declare const DeletePbxAclGroupCommand_base: {
|
|
|
55
55
|
*
|
|
56
56
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
57
57
|
*
|
|
58
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
59
|
-
*
|
|
60
58
|
* @throws {@link WmsApiServiceException}
|
|
61
59
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
62
60
|
*
|
|
@@ -55,8 +55,6 @@ declare const DeletePbxColleagueCommand_base: {
|
|
|
55
55
|
*
|
|
56
56
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
57
57
|
*
|
|
58
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
59
|
-
*
|
|
60
58
|
* @throws {@link WmsApiServiceException}
|
|
61
59
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
62
60
|
*
|
|
@@ -56,8 +56,6 @@ declare const DeletePbxOAuth2ClientCommand_base: {
|
|
|
56
56
|
*
|
|
57
57
|
* @throws {@link WmsNotFoundException} (client fault)
|
|
58
58
|
*
|
|
59
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
60
|
-
*
|
|
61
59
|
* @throws {@link WmsApiServiceException}
|
|
62
60
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
63
61
|
*
|
|
@@ -77,8 +77,6 @@ declare const GetColleagueByIdCommand_base: {
|
|
|
77
77
|
*
|
|
78
78
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
79
79
|
*
|
|
80
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
81
|
-
*
|
|
82
80
|
* @throws {@link WmsApiServiceException}
|
|
83
81
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
84
82
|
*
|
|
@@ -81,8 +81,6 @@ declare const GetPbxAclGroupsPermissionsCommand_base: {
|
|
|
81
81
|
*
|
|
82
82
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
83
83
|
*
|
|
84
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
85
|
-
*
|
|
86
84
|
* @throws {@link WmsApiServiceException}
|
|
87
85
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
88
86
|
*
|
|
@@ -92,8 +92,6 @@ declare const GetPbxCallGroupsCommand_base: {
|
|
|
92
92
|
*
|
|
93
93
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
94
94
|
*
|
|
95
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
96
|
-
*
|
|
97
95
|
* @throws {@link WmsApiServiceException}
|
|
98
96
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
99
97
|
*
|
|
@@ -121,8 +121,6 @@ declare const GetPbxColleaguesCommand_base: {
|
|
|
121
121
|
*
|
|
122
122
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
123
123
|
*
|
|
124
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
125
|
-
*
|
|
126
124
|
* @throws {@link WmsApiServiceException}
|
|
127
125
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
128
126
|
*
|
|
@@ -49,6 +49,7 @@ declare const GetPbxOAuth2ClientsCommand_base: {
|
|
|
49
49
|
* // ],
|
|
50
50
|
* // secret: "STRING_VALUE", // required
|
|
51
51
|
* // created: Number("int"), // required
|
|
52
|
+
* // expireTime: Number("int"), // required
|
|
52
53
|
* // },
|
|
53
54
|
* // ],
|
|
54
55
|
* // },
|
|
@@ -64,8 +65,6 @@ declare const GetPbxOAuth2ClientsCommand_base: {
|
|
|
64
65
|
*
|
|
65
66
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
66
67
|
*
|
|
67
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
68
|
-
*
|
|
69
68
|
* @throws {@link WmsApiServiceException}
|
|
70
69
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
71
70
|
*
|
|
@@ -66,8 +66,6 @@ declare const GetPbxesCommand_base: {
|
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
68
68
|
*
|
|
69
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
70
|
-
*
|
|
71
69
|
* @throws {@link WmsApiServiceException}
|
|
72
70
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
73
71
|
*
|
|
@@ -116,8 +116,6 @@ declare const GetPersonalInfoCommand_base: {
|
|
|
116
116
|
*
|
|
117
117
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
118
118
|
*
|
|
119
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
120
|
-
*
|
|
121
119
|
* @throws {@link WmsApiServiceException}
|
|
122
120
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
123
121
|
*
|
|
@@ -66,8 +66,6 @@ declare const NotificationsCommand_base: {
|
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
68
68
|
*
|
|
69
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
70
|
-
*
|
|
71
69
|
* @throws {@link WmsApiServiceException}
|
|
72
70
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
73
71
|
*
|
|
@@ -56,8 +56,6 @@ declare const OriginateCallCommand_base: {
|
|
|
56
56
|
*
|
|
57
57
|
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
58
58
|
*
|
|
59
|
-
* @throws {@link WmsForbiddenException} (client fault)
|
|
60
|
-
*
|
|
61
59
|
* @throws {@link WmsApiServiceException}
|
|
62
60
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
63
61
|
*
|