@wildix/wms-api-client 1.1.23 → 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 -16
- package/dist-cjs/commands/index.js +0 -8
- package/dist-cjs/models/models_0.js +1 -35
- package/dist-cjs/protocols/Aws_restJson1.js +1 -318
- package/dist-es/WmsApi.js +0 -16
- package/dist-es/commands/index.js +0 -8
- package/dist-es/models/models_0.js +0 -32
- package/dist-es/protocols/Aws_restJson1.js +1 -301
- package/dist-types/WmsApi.d.ts +0 -58
- package/dist-types/WmsApiClient.d.ts +2 -10
- 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 -8
- package/dist-types/models/models_0.d.ts +8 -246
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -72
- package/package.json +1 -1
- package/dist-cjs/commands/CallControlAnswerCommand.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/CallControlTransferCommand.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/CallControlHangupCommand.js +0 -17
- package/dist-es/commands/CallControlHoldCommand.js +0 -17
- package/dist-es/commands/CallControlMakeCallCommand.js +0 -17
- package/dist-es/commands/CallControlTransferCommand.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 -83
- package/dist-types/commands/CallControlHangupCommand.d.ts +0 -83
- package/dist-types/commands/CallControlHoldCommand.d.ts +0 -82
- package/dist-types/commands/CallControlMakeCallCommand.d.ts +0 -81
- package/dist-types/commands/CallControlTransferCommand.d.ts +0 -83
- package/dist-types/commands/CallControlUnholdCommand.d.ts +0 -82
- package/dist-types/commands/ListUserActiveCallsCommand.d.ts +0 -85
- package/dist-types/commands/ListUserDevicesCommand.d.ts +0 -85
package/dist-cjs/WmsApi.js
CHANGED
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WmsApi = void 0;
|
|
4
4
|
const WmsApiClient_1 = require("./WmsApiClient");
|
|
5
|
-
const CallControlAnswerCommand_1 = require("./commands/CallControlAnswerCommand");
|
|
6
|
-
const CallControlHangupCommand_1 = require("./commands/CallControlHangupCommand");
|
|
7
|
-
const CallControlHoldCommand_1 = require("./commands/CallControlHoldCommand");
|
|
8
|
-
const CallControlMakeCallCommand_1 = require("./commands/CallControlMakeCallCommand");
|
|
9
|
-
const CallControlTransferCommand_1 = require("./commands/CallControlTransferCommand");
|
|
10
|
-
const CallControlUnholdCommand_1 = require("./commands/CallControlUnholdCommand");
|
|
11
5
|
const CreatePbxAclGroupCommand_1 = require("./commands/CreatePbxAclGroupCommand");
|
|
12
6
|
const CreatePbxColleagueCommand_1 = require("./commands/CreatePbxColleagueCommand");
|
|
13
7
|
const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
|
|
@@ -21,8 +15,6 @@ const GetPbxColleaguesCommand_1 = require("./commands/GetPbxColleaguesCommand");
|
|
|
21
15
|
const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsCommand");
|
|
22
16
|
const GetPbxesCommand_1 = require("./commands/GetPbxesCommand");
|
|
23
17
|
const GetPersonalInfoCommand_1 = require("./commands/GetPersonalInfoCommand");
|
|
24
|
-
const ListUserActiveCallsCommand_1 = require("./commands/ListUserActiveCallsCommand");
|
|
25
|
-
const ListUserDevicesCommand_1 = require("./commands/ListUserDevicesCommand");
|
|
26
18
|
const NotificationsCommand_1 = require("./commands/NotificationsCommand");
|
|
27
19
|
const OriginateCallCommand_1 = require("./commands/OriginateCallCommand");
|
|
28
20
|
const OriginateCommand_1 = require("./commands/OriginateCommand");
|
|
@@ -30,12 +22,6 @@ const ReloadBroadcastsCommand_1 = require("./commands/ReloadBroadcastsCommand");
|
|
|
30
22
|
const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
|
|
31
23
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
32
24
|
const commands = {
|
|
33
|
-
CallControlAnswerCommand: CallControlAnswerCommand_1.CallControlAnswerCommand,
|
|
34
|
-
CallControlHangupCommand: CallControlHangupCommand_1.CallControlHangupCommand,
|
|
35
|
-
CallControlHoldCommand: CallControlHoldCommand_1.CallControlHoldCommand,
|
|
36
|
-
CallControlMakeCallCommand: CallControlMakeCallCommand_1.CallControlMakeCallCommand,
|
|
37
|
-
CallControlTransferCommand: CallControlTransferCommand_1.CallControlTransferCommand,
|
|
38
|
-
CallControlUnholdCommand: CallControlUnholdCommand_1.CallControlUnholdCommand,
|
|
39
25
|
CreatePbxAclGroupCommand: CreatePbxAclGroupCommand_1.CreatePbxAclGroupCommand,
|
|
40
26
|
CreatePbxColleagueCommand: CreatePbxColleagueCommand_1.CreatePbxColleagueCommand,
|
|
41
27
|
CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
|
|
@@ -49,8 +35,6 @@ const commands = {
|
|
|
49
35
|
GetPbxesCommand: GetPbxesCommand_1.GetPbxesCommand,
|
|
50
36
|
GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
|
|
51
37
|
GetPersonalInfoCommand: GetPersonalInfoCommand_1.GetPersonalInfoCommand,
|
|
52
|
-
ListUserActiveCallsCommand: ListUserActiveCallsCommand_1.ListUserActiveCallsCommand,
|
|
53
|
-
ListUserDevicesCommand: ListUserDevicesCommand_1.ListUserDevicesCommand,
|
|
54
38
|
NotificationsCommand: NotificationsCommand_1.NotificationsCommand,
|
|
55
39
|
OriginateCommand: OriginateCommand_1.OriginateCommand,
|
|
56
40
|
OriginateCallCommand: OriginateCallCommand_1.OriginateCallCommand,
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./CallControlAnswerCommand"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./CallControlHangupCommand"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./CallControlHoldCommand"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./CallControlMakeCallCommand"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./CallControlTransferCommand"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./CallControlUnholdCommand"), exports);
|
|
10
4
|
tslib_1.__exportStar(require("./CreatePbxAclGroupCommand"), exports);
|
|
11
5
|
tslib_1.__exportStar(require("./CreatePbxColleagueCommand"), exports);
|
|
12
6
|
tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
|
|
@@ -20,8 +14,6 @@ tslib_1.__exportStar(require("./GetPbxColleaguesCommand"), exports);
|
|
|
20
14
|
tslib_1.__exportStar(require("./GetPbxesCommand"), exports);
|
|
21
15
|
tslib_1.__exportStar(require("./GetPbxOAuth2ClientsCommand"), exports);
|
|
22
16
|
tslib_1.__exportStar(require("./GetPersonalInfoCommand"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./ListUserActiveCallsCommand"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./ListUserDevicesCommand"), exports);
|
|
25
17
|
tslib_1.__exportStar(require("./NotificationsCommand"), exports);
|
|
26
18
|
tslib_1.__exportStar(require("./OriginateCommand"), exports);
|
|
27
19
|
tslib_1.__exportStar(require("./OriginateCallCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResponseResult = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.PbxColleagueRole = exports.WmsUnauthorizedException = exports.
|
|
3
|
+
exports.ResponseResult = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.PbxColleagueRole = exports.WmsUnauthorizedException = exports.ResponseType = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
|
|
4
4
|
const WmsApiServiceException_1 = require("./WmsApiServiceException");
|
|
5
5
|
exports.PbxLicenseType = {
|
|
6
6
|
BASIC: "basic",
|
|
@@ -21,40 +21,6 @@ exports.ResponseType = {
|
|
|
21
21
|
ERROR: "error",
|
|
22
22
|
RESULT: "result",
|
|
23
23
|
};
|
|
24
|
-
class ChannelNotFoundException extends WmsApiServiceException_1.WmsApiServiceException {
|
|
25
|
-
name = "ChannelNotFoundException";
|
|
26
|
-
$fault = "client";
|
|
27
|
-
type;
|
|
28
|
-
reason;
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "ChannelNotFoundException",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
36
|
-
this.type = opts.type;
|
|
37
|
-
this.reason = opts.reason;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.ChannelNotFoundException = ChannelNotFoundException;
|
|
41
|
-
class WmsForbiddenException extends WmsApiServiceException_1.WmsApiServiceException {
|
|
42
|
-
name = "WmsForbiddenException";
|
|
43
|
-
$fault = "client";
|
|
44
|
-
type;
|
|
45
|
-
reason;
|
|
46
|
-
constructor(opts) {
|
|
47
|
-
super({
|
|
48
|
-
name: "WmsForbiddenException",
|
|
49
|
-
$fault: "client",
|
|
50
|
-
...opts
|
|
51
|
-
});
|
|
52
|
-
Object.setPrototypeOf(this, WmsForbiddenException.prototype);
|
|
53
|
-
this.type = opts.type;
|
|
54
|
-
this.reason = opts.reason;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
exports.WmsForbiddenException = WmsForbiddenException;
|
|
58
24
|
class WmsUnauthorizedException extends WmsApiServiceException_1.WmsApiServiceException {
|
|
59
25
|
name = "WmsUnauthorizedException";
|
|
60
26
|
$fault = "client";
|
|
@@ -1,136 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdatePbxOAuth2ClientCommand = exports.de_ReloadBroadcastsCommand = void 0;
|
|
3
|
+
exports.de_UpdatePbxOAuth2ClientCommand = exports.de_ReloadBroadcastsCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = exports.de_NotificationsCommand = exports.de_GetPersonalInfoCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_GetColleagueByIdCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_DeletePbxColleagueCommand = exports.de_DeletePbxAclGroupCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.de_CreatePbxColleagueCommand = exports.de_CreatePbxAclGroupCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_ReloadBroadcastsCommand = exports.se_OriginateCallCommand = exports.se_OriginateCommand = exports.se_NotificationsCommand = exports.se_GetPersonalInfoCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxesCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_GetColleagueByIdCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_DeletePbxColleagueCommand = exports.se_DeletePbxAclGroupCommand = exports.se_CreatePbxOAuth2ClientCommand = exports.se_CreatePbxColleagueCommand = exports.se_CreatePbxAclGroupCommand = void 0;
|
|
5
4
|
const WmsApiServiceException_1 = require("../models/WmsApiServiceException");
|
|
6
5
|
const models_0_1 = require("../models/models_0");
|
|
7
6
|
const core_1 = require("@aws-sdk/core");
|
|
8
7
|
const core_2 = require("@smithy/core");
|
|
9
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
10
|
-
const se_CallControlAnswerCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
'content-type': 'application/json',
|
|
14
|
-
};
|
|
15
|
-
b.bp("/api/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
|
-
'device': [],
|
|
22
|
-
'sipCallId': [],
|
|
23
|
-
}));
|
|
24
|
-
b.m("POST")
|
|
25
|
-
.h(headers)
|
|
26
|
-
.q(query)
|
|
27
|
-
.b(body);
|
|
28
|
-
return b.build();
|
|
29
|
-
};
|
|
30
|
-
exports.se_CallControlAnswerCommand = se_CallControlAnswerCommand;
|
|
31
|
-
const se_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
|
-
'reason': [],
|
|
43
|
-
'sipCallId': [],
|
|
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
|
-
'sipCallId': [],
|
|
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
|
-
'destination': [],
|
|
105
|
-
'sipCallId': [],
|
|
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
|
-
'sipCallId': [],
|
|
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;
|
|
134
9
|
const se_CreatePbxAclGroupCommand = async (input, context) => {
|
|
135
10
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
136
11
|
const headers = {
|
|
@@ -368,36 +243,6 @@ const se_GetPersonalInfoCommand = async (input, context) => {
|
|
|
368
243
|
return b.build();
|
|
369
244
|
};
|
|
370
245
|
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;
|
|
401
246
|
const se_NotificationsCommand = async (input, context) => {
|
|
402
247
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
403
248
|
const headers = {
|
|
@@ -498,102 +343,6 @@ const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
498
343
|
return b.build();
|
|
499
344
|
};
|
|
500
345
|
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;
|
|
597
346
|
const de_CreatePbxAclGroupCommand = async (output, context) => {
|
|
598
347
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
599
348
|
return de_CommandError(output, context);
|
|
@@ -802,37 +551,6 @@ const de_GetPersonalInfoCommand = async (output, context) => {
|
|
|
802
551
|
return contents;
|
|
803
552
|
};
|
|
804
553
|
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;
|
|
836
554
|
const de_NotificationsCommand = async (output, context) => {
|
|
837
555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
556
|
return de_CommandError(output, context);
|
|
@@ -920,12 +638,6 @@ const de_CommandError = async (output, context) => {
|
|
|
920
638
|
};
|
|
921
639
|
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
922
640
|
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);
|
|
929
641
|
case "WmsUnauthorizedException":
|
|
930
642
|
case "wildix.wms.api#WmsUnauthorizedException":
|
|
931
643
|
throw await de_WmsUnauthorizedExceptionRes(parsedOutput, context);
|
|
@@ -945,34 +657,6 @@ const de_CommandError = async (output, context) => {
|
|
|
945
657
|
}
|
|
946
658
|
};
|
|
947
659
|
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
|
-
};
|
|
976
660
|
const de_WmsNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
977
661
|
const contents = (0, smithy_client_1.map)({});
|
|
978
662
|
const data = parsedOutput.body;
|
|
@@ -1063,4 +747,3 @@ const _sF = "searchFields";
|
|
|
1063
747
|
const _sS = "searchStrategy";
|
|
1064
748
|
const _so = "sort";
|
|
1065
749
|
const _st = "start";
|
|
1066
|
-
const _u = "user";
|
package/dist-es/WmsApi.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
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";
|
|
8
2
|
import { CreatePbxAclGroupCommand, } from "./commands/CreatePbxAclGroupCommand";
|
|
9
3
|
import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
|
|
10
4
|
import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
@@ -18,8 +12,6 @@ import { GetPbxColleaguesCommand, } from "./commands/GetPbxColleaguesCommand";
|
|
|
18
12
|
import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
19
13
|
import { GetPbxesCommand, } from "./commands/GetPbxesCommand";
|
|
20
14
|
import { GetPersonalInfoCommand, } from "./commands/GetPersonalInfoCommand";
|
|
21
|
-
import { ListUserActiveCallsCommand, } from "./commands/ListUserActiveCallsCommand";
|
|
22
|
-
import { ListUserDevicesCommand, } from "./commands/ListUserDevicesCommand";
|
|
23
15
|
import { NotificationsCommand, } from "./commands/NotificationsCommand";
|
|
24
16
|
import { OriginateCallCommand, } from "./commands/OriginateCallCommand";
|
|
25
17
|
import { OriginateCommand, } from "./commands/OriginateCommand";
|
|
@@ -27,12 +19,6 @@ import { ReloadBroadcastsCommand, } from "./commands/ReloadBroadcastsCommand";
|
|
|
27
19
|
import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
28
20
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
29
21
|
const commands = {
|
|
30
|
-
CallControlAnswerCommand,
|
|
31
|
-
CallControlHangupCommand,
|
|
32
|
-
CallControlHoldCommand,
|
|
33
|
-
CallControlMakeCallCommand,
|
|
34
|
-
CallControlTransferCommand,
|
|
35
|
-
CallControlUnholdCommand,
|
|
36
22
|
CreatePbxAclGroupCommand,
|
|
37
23
|
CreatePbxColleagueCommand,
|
|
38
24
|
CreatePbxOAuth2ClientCommand,
|
|
@@ -46,8 +32,6 @@ const commands = {
|
|
|
46
32
|
GetPbxesCommand,
|
|
47
33
|
GetPbxOAuth2ClientsCommand,
|
|
48
34
|
GetPersonalInfoCommand,
|
|
49
|
-
ListUserActiveCallsCommand,
|
|
50
|
-
ListUserDevicesCommand,
|
|
51
35
|
NotificationsCommand,
|
|
52
36
|
OriginateCommand,
|
|
53
37
|
OriginateCallCommand,
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export * from "./CallControlAnswerCommand";
|
|
2
|
-
export * from "./CallControlHangupCommand";
|
|
3
|
-
export * from "./CallControlHoldCommand";
|
|
4
|
-
export * from "./CallControlMakeCallCommand";
|
|
5
|
-
export * from "./CallControlTransferCommand";
|
|
6
|
-
export * from "./CallControlUnholdCommand";
|
|
7
1
|
export * from "./CreatePbxAclGroupCommand";
|
|
8
2
|
export * from "./CreatePbxColleagueCommand";
|
|
9
3
|
export * from "./CreatePbxOAuth2ClientCommand";
|
|
@@ -17,8 +11,6 @@ export * from "./GetPbxColleaguesCommand";
|
|
|
17
11
|
export * from "./GetPbxesCommand";
|
|
18
12
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
19
13
|
export * from "./GetPersonalInfoCommand";
|
|
20
|
-
export * from "./ListUserActiveCallsCommand";
|
|
21
|
-
export * from "./ListUserDevicesCommand";
|
|
22
14
|
export * from "./NotificationsCommand";
|
|
23
15
|
export * from "./OriginateCommand";
|
|
24
16
|
export * from "./OriginateCallCommand";
|
|
@@ -18,38 +18,6 @@ export const ResponseType = {
|
|
|
18
18
|
ERROR: "error",
|
|
19
19
|
RESULT: "result",
|
|
20
20
|
};
|
|
21
|
-
export class ChannelNotFoundException extends __BaseException {
|
|
22
|
-
name = "ChannelNotFoundException";
|
|
23
|
-
$fault = "client";
|
|
24
|
-
type;
|
|
25
|
-
reason;
|
|
26
|
-
constructor(opts) {
|
|
27
|
-
super({
|
|
28
|
-
name: "ChannelNotFoundException",
|
|
29
|
-
$fault: "client",
|
|
30
|
-
...opts
|
|
31
|
-
});
|
|
32
|
-
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
33
|
-
this.type = opts.type;
|
|
34
|
-
this.reason = opts.reason;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export class WmsForbiddenException extends __BaseException {
|
|
38
|
-
name = "WmsForbiddenException";
|
|
39
|
-
$fault = "client";
|
|
40
|
-
type;
|
|
41
|
-
reason;
|
|
42
|
-
constructor(opts) {
|
|
43
|
-
super({
|
|
44
|
-
name: "WmsForbiddenException",
|
|
45
|
-
$fault: "client",
|
|
46
|
-
...opts
|
|
47
|
-
});
|
|
48
|
-
Object.setPrototypeOf(this, WmsForbiddenException.prototype);
|
|
49
|
-
this.type = opts.type;
|
|
50
|
-
this.reason = opts.reason;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
21
|
export class WmsUnauthorizedException extends __BaseException {
|
|
54
22
|
name = "WmsUnauthorizedException";
|
|
55
23
|
$fault = "client";
|