@wildix/wms-api-client 1.1.21 → 1.1.23
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 +318 -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 +301 -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 +2 -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 +246 -7
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +1 -1
package/dist-cjs/WmsApi.js
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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");
|
|
5
11
|
const CreatePbxAclGroupCommand_1 = require("./commands/CreatePbxAclGroupCommand");
|
|
6
12
|
const CreatePbxColleagueCommand_1 = require("./commands/CreatePbxColleagueCommand");
|
|
7
13
|
const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
|
|
@@ -15,6 +21,8 @@ const GetPbxColleaguesCommand_1 = require("./commands/GetPbxColleaguesCommand");
|
|
|
15
21
|
const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsCommand");
|
|
16
22
|
const GetPbxesCommand_1 = require("./commands/GetPbxesCommand");
|
|
17
23
|
const GetPersonalInfoCommand_1 = require("./commands/GetPersonalInfoCommand");
|
|
24
|
+
const ListUserActiveCallsCommand_1 = require("./commands/ListUserActiveCallsCommand");
|
|
25
|
+
const ListUserDevicesCommand_1 = require("./commands/ListUserDevicesCommand");
|
|
18
26
|
const NotificationsCommand_1 = require("./commands/NotificationsCommand");
|
|
19
27
|
const OriginateCallCommand_1 = require("./commands/OriginateCallCommand");
|
|
20
28
|
const OriginateCommand_1 = require("./commands/OriginateCommand");
|
|
@@ -22,6 +30,12 @@ const ReloadBroadcastsCommand_1 = require("./commands/ReloadBroadcastsCommand");
|
|
|
22
30
|
const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
|
|
23
31
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
24
32
|
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,
|
|
25
39
|
CreatePbxAclGroupCommand: CreatePbxAclGroupCommand_1.CreatePbxAclGroupCommand,
|
|
26
40
|
CreatePbxColleagueCommand: CreatePbxColleagueCommand_1.CreatePbxColleagueCommand,
|
|
27
41
|
CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
|
|
@@ -35,6 +49,8 @@ const commands = {
|
|
|
35
49
|
GetPbxesCommand: GetPbxesCommand_1.GetPbxesCommand,
|
|
36
50
|
GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
|
|
37
51
|
GetPersonalInfoCommand: GetPersonalInfoCommand_1.GetPersonalInfoCommand,
|
|
52
|
+
ListUserActiveCallsCommand: ListUserActiveCallsCommand_1.ListUserActiveCallsCommand,
|
|
53
|
+
ListUserDevicesCommand: ListUserDevicesCommand_1.ListUserDevicesCommand,
|
|
38
54
|
NotificationsCommand: NotificationsCommand_1.NotificationsCommand,
|
|
39
55
|
OriginateCommand: OriginateCommand_1.OriginateCommand,
|
|
40
56
|
OriginateCallCommand: OriginateCallCommand_1.OriginateCallCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallControlAnswerCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class CallControlAnswerCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WmsApi", "CallControlAnswer", {})
|
|
15
|
+
.n("WmsApiClient", "CallControlAnswerCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CallControlAnswerCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CallControlAnswerCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CallControlAnswerCommand = CallControlAnswerCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallControlHangupCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class CallControlHangupCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WmsApi", "CallControlHangup", {})
|
|
15
|
+
.n("WmsApiClient", "CallControlHangupCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CallControlHangupCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CallControlHangupCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CallControlHangupCommand = CallControlHangupCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallControlHoldCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class CallControlHoldCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WmsApi", "CallControlHold", {})
|
|
15
|
+
.n("WmsApiClient", "CallControlHoldCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CallControlHoldCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CallControlHoldCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CallControlHoldCommand = CallControlHoldCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallControlMakeCallCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class CallControlMakeCallCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WmsApi", "CallControlMakeCall", {})
|
|
15
|
+
.n("WmsApiClient", "CallControlMakeCallCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CallControlMakeCallCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CallControlMakeCallCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CallControlMakeCallCommand = CallControlMakeCallCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallControlTransferCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class CallControlTransferCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WmsApi", "CallControlTransfer", {})
|
|
15
|
+
.n("WmsApiClient", "CallControlTransferCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CallControlTransferCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CallControlTransferCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CallControlTransferCommand = CallControlTransferCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CallControlUnholdCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class CallControlUnholdCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WmsApi", "CallControlUnhold", {})
|
|
15
|
+
.n("WmsApiClient", "CallControlUnholdCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CallControlUnholdCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CallControlUnholdCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CallControlUnholdCommand = CallControlUnholdCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListUserActiveCallsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListUserActiveCallsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WmsApi", "ListUserActiveCalls", {})
|
|
15
|
+
.n("WmsApiClient", "ListUserActiveCallsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListUserActiveCallsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListUserActiveCallsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListUserActiveCallsCommand = ListUserActiveCallsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListUserDevicesCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListUserDevicesCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("WmsApi", "ListUserDevices", {})
|
|
15
|
+
.n("WmsApiClient", "ListUserDevicesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListUserDevicesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListUserDevicesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListUserDevicesCommand = ListUserDevicesCommand;
|
|
@@ -1,6 +1,12 @@
|
|
|
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);
|
|
4
10
|
tslib_1.__exportStar(require("./CreatePbxAclGroupCommand"), exports);
|
|
5
11
|
tslib_1.__exportStar(require("./CreatePbxColleagueCommand"), exports);
|
|
6
12
|
tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
|
|
@@ -14,6 +20,8 @@ tslib_1.__exportStar(require("./GetPbxColleaguesCommand"), exports);
|
|
|
14
20
|
tslib_1.__exportStar(require("./GetPbxesCommand"), exports);
|
|
15
21
|
tslib_1.__exportStar(require("./GetPbxOAuth2ClientsCommand"), exports);
|
|
16
22
|
tslib_1.__exportStar(require("./GetPersonalInfoCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./ListUserActiveCallsCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./ListUserDevicesCommand"), exports);
|
|
17
25
|
tslib_1.__exportStar(require("./NotificationsCommand"), exports);
|
|
18
26
|
tslib_1.__exportStar(require("./OriginateCommand"), exports);
|
|
19
27
|
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.ResponseType = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
|
|
3
|
+
exports.ResponseResult = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.PbxColleagueRole = exports.WmsUnauthorizedException = exports.WmsForbiddenException = exports.ChannelNotFoundException = exports.ResponseType = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
|
|
4
4
|
const WmsApiServiceException_1 = require("./WmsApiServiceException");
|
|
5
5
|
exports.PbxLicenseType = {
|
|
6
6
|
BASIC: "basic",
|
|
@@ -21,6 +21,40 @@ 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;
|
|
24
58
|
class WmsUnauthorizedException extends WmsApiServiceException_1.WmsApiServiceException {
|
|
25
59
|
name = "WmsUnauthorizedException";
|
|
26
60
|
$fault = "client";
|
|
@@ -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
|
+
'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;
|
|
9
134
|
const se_CreatePbxAclGroupCommand = async (input, context) => {
|
|
10
135
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
136
|
const headers = {
|
|
@@ -243,6 +368,36 @@ const se_GetPersonalInfoCommand = async (input, context) => {
|
|
|
243
368
|
return b.build();
|
|
244
369
|
};
|
|
245
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;
|
|
246
401
|
const se_NotificationsCommand = async (input, context) => {
|
|
247
402
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
248
403
|
const headers = {
|
|
@@ -343,6 +498,102 @@ const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
343
498
|
return b.build();
|
|
344
499
|
};
|
|
345
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;
|
|
346
597
|
const de_CreatePbxAclGroupCommand = async (output, context) => {
|
|
347
598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
348
599
|
return de_CommandError(output, context);
|
|
@@ -551,6 +802,37 @@ const de_GetPersonalInfoCommand = async (output, context) => {
|
|
|
551
802
|
return contents;
|
|
552
803
|
};
|
|
553
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;
|
|
554
836
|
const de_NotificationsCommand = async (output, context) => {
|
|
555
837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
556
838
|
return de_CommandError(output, context);
|
|
@@ -638,6 +920,12 @@ const de_CommandError = async (output, context) => {
|
|
|
638
920
|
};
|
|
639
921
|
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
640
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);
|
|
641
929
|
case "WmsUnauthorizedException":
|
|
642
930
|
case "wildix.wms.api#WmsUnauthorizedException":
|
|
643
931
|
throw await de_WmsUnauthorizedExceptionRes(parsedOutput, context);
|
|
@@ -657,6 +945,34 @@ const de_CommandError = async (output, context) => {
|
|
|
657
945
|
}
|
|
658
946
|
};
|
|
659
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
|
+
};
|
|
660
976
|
const de_WmsNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
661
977
|
const contents = (0, smithy_client_1.map)({});
|
|
662
978
|
const data = parsedOutput.body;
|
|
@@ -747,3 +1063,4 @@ const _sF = "searchFields";
|
|
|
747
1063
|
const _sS = "searchStrategy";
|
|
748
1064
|
const _so = "sort";
|
|
749
1065
|
const _st = "start";
|
|
1066
|
+
const _u = "user";
|