@wildix/wms-api-client 1.1.14 → 1.1.16
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 +8 -0
- package/dist-cjs/commands/CreatePbxAclGroupCommand.js +21 -0
- package/dist-cjs/commands/CreatePbxColleagueCommand.js +21 -0
- package/dist-cjs/commands/DeletePbxAclGroupCommand.js +21 -0
- package/dist-cjs/commands/DeletePbxColleagueCommand.js +21 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +10 -8
- package/dist-cjs/protocols/Aws_restJson1.js +140 -2
- package/dist-es/WmsApi.js +8 -0
- package/dist-es/commands/CreatePbxAclGroupCommand.js +17 -0
- package/dist-es/commands/CreatePbxColleagueCommand.js +17 -0
- package/dist-es/commands/DeletePbxAclGroupCommand.js +17 -0
- package/dist-es/commands/DeletePbxColleagueCommand.js +17 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +9 -7
- package/dist-es/protocols/Aws_restJson1.js +131 -1
- package/dist-types/WmsApi.d.ts +28 -0
- package/dist-types/WmsApiClient.d.ts +6 -2
- package/dist-types/commands/CreatePbxAclGroupCommand.d.ts +86 -0
- package/dist-types/commands/CreatePbxColleagueCommand.d.ts +100 -0
- package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +63 -0
- package/dist-types/commands/DeletePbxColleagueCommand.d.ts +63 -0
- package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +1 -1
- package/dist-types/commands/NotificationsCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +159 -67
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/package.json +1 -1
package/dist-cjs/WmsApi.js
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WmsApi = void 0;
|
|
4
4
|
const WmsApiClient_1 = require("./WmsApiClient");
|
|
5
|
+
const CreatePbxAclGroupCommand_1 = require("./commands/CreatePbxAclGroupCommand");
|
|
6
|
+
const CreatePbxColleagueCommand_1 = require("./commands/CreatePbxColleagueCommand");
|
|
5
7
|
const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
|
|
8
|
+
const DeletePbxAclGroupCommand_1 = require("./commands/DeletePbxAclGroupCommand");
|
|
9
|
+
const DeletePbxColleagueCommand_1 = require("./commands/DeletePbxColleagueCommand");
|
|
6
10
|
const DeletePbxOAuth2ClientCommand_1 = require("./commands/DeletePbxOAuth2ClientCommand");
|
|
7
11
|
const GetColleagueByIdCommand_1 = require("./commands/GetColleagueByIdCommand");
|
|
8
12
|
const GetPbxAclGroupsPermissionsCommand_1 = require("./commands/GetPbxAclGroupsPermissionsCommand");
|
|
@@ -17,7 +21,11 @@ const OriginateCommand_1 = require("./commands/OriginateCommand");
|
|
|
17
21
|
const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
|
|
18
22
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
19
23
|
const commands = {
|
|
24
|
+
CreatePbxAclGroupCommand: CreatePbxAclGroupCommand_1.CreatePbxAclGroupCommand,
|
|
25
|
+
CreatePbxColleagueCommand: CreatePbxColleagueCommand_1.CreatePbxColleagueCommand,
|
|
20
26
|
CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
|
|
27
|
+
DeletePbxAclGroupCommand: DeletePbxAclGroupCommand_1.DeletePbxAclGroupCommand,
|
|
28
|
+
DeletePbxColleagueCommand: DeletePbxColleagueCommand_1.DeletePbxColleagueCommand,
|
|
21
29
|
DeletePbxOAuth2ClientCommand: DeletePbxOAuth2ClientCommand_1.DeletePbxOAuth2ClientCommand,
|
|
22
30
|
GetColleagueByIdCommand: GetColleagueByIdCommand_1.GetColleagueByIdCommand,
|
|
23
31
|
GetPbxAclGroupsPermissionsCommand: GetPbxAclGroupsPermissionsCommand_1.GetPbxAclGroupsPermissionsCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePbxAclGroupCommand = 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 CreatePbxAclGroupCommand 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", "CreatePbxAclGroup", {})
|
|
15
|
+
.n("WmsApiClient", "CreatePbxAclGroupCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreatePbxAclGroupCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreatePbxAclGroupCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CreatePbxAclGroupCommand = CreatePbxAclGroupCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePbxColleagueCommand = 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 CreatePbxColleagueCommand 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", "CreatePbxColleague", {})
|
|
15
|
+
.n("WmsApiClient", "CreatePbxColleagueCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreatePbxColleagueCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreatePbxColleagueCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CreatePbxColleagueCommand = CreatePbxColleagueCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeletePbxAclGroupCommand = 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 DeletePbxAclGroupCommand 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", "DeletePbxAclGroup", {})
|
|
15
|
+
.n("WmsApiClient", "DeletePbxAclGroupCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_DeletePbxAclGroupCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_DeletePbxAclGroupCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.DeletePbxAclGroupCommand = DeletePbxAclGroupCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeletePbxColleagueCommand = 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 DeletePbxColleagueCommand 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", "DeletePbxColleague", {})
|
|
15
|
+
.n("WmsApiClient", "DeletePbxColleagueCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_DeletePbxColleagueCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_DeletePbxColleagueCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.DeletePbxColleagueCommand = DeletePbxColleagueCommand;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CreatePbxAclGroupCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreatePbxColleagueCommand"), exports);
|
|
4
6
|
tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DeletePbxAclGroupCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DeletePbxColleagueCommand"), exports);
|
|
5
9
|
tslib_1.__exportStar(require("./DeletePbxOAuth2ClientCommand"), exports);
|
|
6
10
|
tslib_1.__exportStar(require("./GetColleagueByIdCommand"), exports);
|
|
7
11
|
tslib_1.__exportStar(require("./GetPbxAclGroupsPermissionsCommand"), 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.
|
|
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",
|
|
@@ -13,6 +13,8 @@ exports.AclGroupPermissionAbility = {
|
|
|
13
13
|
CAN: "can",
|
|
14
14
|
CANNOT: "cannot",
|
|
15
15
|
NO: "no",
|
|
16
|
+
NOUSE: "nouse",
|
|
17
|
+
USE: "use",
|
|
16
18
|
YES: "yes",
|
|
17
19
|
};
|
|
18
20
|
exports.ResponseType = {
|
|
@@ -34,6 +36,13 @@ class WmsUnauthorizedException extends WmsApiServiceException_1.WmsApiServiceExc
|
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
exports.WmsUnauthorizedException = WmsUnauthorizedException;
|
|
39
|
+
exports.PbxColleagueRole = {
|
|
40
|
+
ADMIN: "admin",
|
|
41
|
+
FAX: "fax",
|
|
42
|
+
PARK_ORBIT: "park_orbit",
|
|
43
|
+
ROOM: "room",
|
|
44
|
+
USER: "user",
|
|
45
|
+
};
|
|
37
46
|
class WmsValidationException extends WmsApiServiceException_1.WmsApiServiceException {
|
|
38
47
|
constructor(opts) {
|
|
39
48
|
super({
|
|
@@ -65,13 +74,6 @@ class WmsNotFoundException extends WmsApiServiceException_1.WmsApiServiceExcepti
|
|
|
65
74
|
}
|
|
66
75
|
}
|
|
67
76
|
exports.WmsNotFoundException = WmsNotFoundException;
|
|
68
|
-
exports.PbxColleagueRole = {
|
|
69
|
-
ADMIN: "admin",
|
|
70
|
-
FAX: "fax",
|
|
71
|
-
PARK_ORBIT: "park_orbit",
|
|
72
|
-
ROOM: "room",
|
|
73
|
-
USER: "user",
|
|
74
|
-
};
|
|
75
77
|
exports.GetPbxColleaguesDir = {
|
|
76
78
|
ASC: "asc",
|
|
77
79
|
DESC: "desc",
|
|
@@ -1,10 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdatePbxOAuth2ClientCommand = 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_CreatePbxOAuth2ClientCommand = exports.se_UpdatePbxOAuth2ClientCommand = 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_CreatePbxOAuth2ClientCommand = void 0;
|
|
3
|
+
exports.de_UpdatePbxOAuth2ClientCommand = 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_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;
|
|
4
4
|
const WmsApiServiceException_1 = require("../models/WmsApiServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const core_1 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
+
const se_CreatePbxAclGroupCommand = async (input, context) => {
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
|
+
const headers = {
|
|
11
|
+
'content-type': 'application/json',
|
|
12
|
+
};
|
|
13
|
+
b.bp("/api/v1/pbx/aclgroups");
|
|
14
|
+
let body;
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
'inherits': [],
|
|
17
|
+
'name': [],
|
|
18
|
+
'rules': _ => (0, smithy_client_1._json)(_),
|
|
19
|
+
'wcgrp': [],
|
|
20
|
+
}));
|
|
21
|
+
b.m("POST")
|
|
22
|
+
.h(headers)
|
|
23
|
+
.b(body);
|
|
24
|
+
return b.build();
|
|
25
|
+
};
|
|
26
|
+
exports.se_CreatePbxAclGroupCommand = se_CreatePbxAclGroupCommand;
|
|
27
|
+
const se_CreatePbxColleagueCommand = async (input, context) => {
|
|
28
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
29
|
+
const headers = {
|
|
30
|
+
'content-type': 'application/json',
|
|
31
|
+
};
|
|
32
|
+
b.bp("/api/v1/PBX/Colleagues");
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
35
|
+
'department': [],
|
|
36
|
+
'dialplan': [],
|
|
37
|
+
'email': [],
|
|
38
|
+
'extension': [],
|
|
39
|
+
'faxDialplan': [],
|
|
40
|
+
'faxNumber': [],
|
|
41
|
+
'groupDn': [],
|
|
42
|
+
'language': [],
|
|
43
|
+
'licenseType': [],
|
|
44
|
+
'login': [],
|
|
45
|
+
'mobilePhone': [],
|
|
46
|
+
'name': [],
|
|
47
|
+
'officePhone': [],
|
|
48
|
+
'password': [],
|
|
49
|
+
'role': [],
|
|
50
|
+
'sipPassword': [],
|
|
51
|
+
}));
|
|
52
|
+
b.m("POST")
|
|
53
|
+
.h(headers)
|
|
54
|
+
.b(body);
|
|
55
|
+
return b.build();
|
|
56
|
+
};
|
|
57
|
+
exports.se_CreatePbxColleagueCommand = se_CreatePbxColleagueCommand;
|
|
8
58
|
const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
9
59
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
60
|
const headers = {
|
|
@@ -22,6 +72,30 @@ const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
22
72
|
return b.build();
|
|
23
73
|
};
|
|
24
74
|
exports.se_CreatePbxOAuth2ClientCommand = se_CreatePbxOAuth2ClientCommand;
|
|
75
|
+
const se_DeletePbxAclGroupCommand = async (input, context) => {
|
|
76
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
77
|
+
const headers = {};
|
|
78
|
+
b.bp("/api/v1/pbx/aclgroups/{id}");
|
|
79
|
+
b.p('id', () => input.id.toString(), '{id}', false);
|
|
80
|
+
let body;
|
|
81
|
+
b.m("DELETE")
|
|
82
|
+
.h(headers)
|
|
83
|
+
.b(body);
|
|
84
|
+
return b.build();
|
|
85
|
+
};
|
|
86
|
+
exports.se_DeletePbxAclGroupCommand = se_DeletePbxAclGroupCommand;
|
|
87
|
+
const se_DeletePbxColleagueCommand = async (input, context) => {
|
|
88
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
89
|
+
const headers = {};
|
|
90
|
+
b.bp("/api/v1/PBX/Colleagues/{id}");
|
|
91
|
+
b.p('id', () => input.id.toString(), '{id}', false);
|
|
92
|
+
let body;
|
|
93
|
+
b.m("DELETE")
|
|
94
|
+
.h(headers)
|
|
95
|
+
.b(body);
|
|
96
|
+
return b.build();
|
|
97
|
+
};
|
|
98
|
+
exports.se_DeletePbxColleagueCommand = se_DeletePbxColleagueCommand;
|
|
25
99
|
const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
|
|
26
100
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
27
101
|
const headers = {};
|
|
@@ -184,8 +258,8 @@ const se_NotificationsCommand = async (input, context) => {
|
|
|
184
258
|
b.bp("/api/v1/notifications");
|
|
185
259
|
let body;
|
|
186
260
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
187
|
-
'broadcastId': [],
|
|
188
261
|
'broadcastMessage': [],
|
|
262
|
+
'conferenceId': [],
|
|
189
263
|
'confirmationTimeout': [],
|
|
190
264
|
'customRid': [],
|
|
191
265
|
'event': [],
|
|
@@ -265,6 +339,38 @@ const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
265
339
|
return b.build();
|
|
266
340
|
};
|
|
267
341
|
exports.se_UpdatePbxOAuth2ClientCommand = se_UpdatePbxOAuth2ClientCommand;
|
|
342
|
+
const de_CreatePbxAclGroupCommand = async (output, context) => {
|
|
343
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
344
|
+
return de_CommandError(output, context);
|
|
345
|
+
}
|
|
346
|
+
const contents = (0, smithy_client_1.map)({
|
|
347
|
+
$metadata: deserializeMetadata(output),
|
|
348
|
+
});
|
|
349
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
350
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
351
|
+
'result': smithy_client_1._json,
|
|
352
|
+
'type': smithy_client_1.expectString,
|
|
353
|
+
});
|
|
354
|
+
Object.assign(contents, doc);
|
|
355
|
+
return contents;
|
|
356
|
+
};
|
|
357
|
+
exports.de_CreatePbxAclGroupCommand = de_CreatePbxAclGroupCommand;
|
|
358
|
+
const de_CreatePbxColleagueCommand = async (output, context) => {
|
|
359
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
360
|
+
return de_CommandError(output, context);
|
|
361
|
+
}
|
|
362
|
+
const contents = (0, smithy_client_1.map)({
|
|
363
|
+
$metadata: deserializeMetadata(output),
|
|
364
|
+
});
|
|
365
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
366
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
367
|
+
'result': smithy_client_1._json,
|
|
368
|
+
'type': smithy_client_1.expectString,
|
|
369
|
+
});
|
|
370
|
+
Object.assign(contents, doc);
|
|
371
|
+
return contents;
|
|
372
|
+
};
|
|
373
|
+
exports.de_CreatePbxColleagueCommand = de_CreatePbxColleagueCommand;
|
|
268
374
|
const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
|
|
269
375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
270
376
|
return de_CommandError(output, context);
|
|
@@ -281,6 +387,38 @@ const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
|
|
|
281
387
|
return contents;
|
|
282
388
|
};
|
|
283
389
|
exports.de_CreatePbxOAuth2ClientCommand = de_CreatePbxOAuth2ClientCommand;
|
|
390
|
+
const de_DeletePbxAclGroupCommand = async (output, context) => {
|
|
391
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
392
|
+
return de_CommandError(output, context);
|
|
393
|
+
}
|
|
394
|
+
const contents = (0, smithy_client_1.map)({
|
|
395
|
+
$metadata: deserializeMetadata(output),
|
|
396
|
+
});
|
|
397
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
398
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
399
|
+
'result': smithy_client_1.expectString,
|
|
400
|
+
'type': smithy_client_1.expectString,
|
|
401
|
+
});
|
|
402
|
+
Object.assign(contents, doc);
|
|
403
|
+
return contents;
|
|
404
|
+
};
|
|
405
|
+
exports.de_DeletePbxAclGroupCommand = de_DeletePbxAclGroupCommand;
|
|
406
|
+
const de_DeletePbxColleagueCommand = async (output, context) => {
|
|
407
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
408
|
+
return de_CommandError(output, context);
|
|
409
|
+
}
|
|
410
|
+
const contents = (0, smithy_client_1.map)({
|
|
411
|
+
$metadata: deserializeMetadata(output),
|
|
412
|
+
});
|
|
413
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
414
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
415
|
+
'result': smithy_client_1.expectString,
|
|
416
|
+
'type': smithy_client_1.expectString,
|
|
417
|
+
});
|
|
418
|
+
Object.assign(contents, doc);
|
|
419
|
+
return contents;
|
|
420
|
+
};
|
|
421
|
+
exports.de_DeletePbxColleagueCommand = de_DeletePbxColleagueCommand;
|
|
284
422
|
const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
|
|
285
423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
286
424
|
return de_CommandError(output, context);
|
package/dist-es/WmsApi.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { WmsApiClient, } from "./WmsApiClient";
|
|
2
|
+
import { CreatePbxAclGroupCommand, } from "./commands/CreatePbxAclGroupCommand";
|
|
3
|
+
import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
|
|
2
4
|
import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
5
|
+
import { DeletePbxAclGroupCommand, } from "./commands/DeletePbxAclGroupCommand";
|
|
6
|
+
import { DeletePbxColleagueCommand, } from "./commands/DeletePbxColleagueCommand";
|
|
3
7
|
import { DeletePbxOAuth2ClientCommand, } from "./commands/DeletePbxOAuth2ClientCommand";
|
|
4
8
|
import { GetColleagueByIdCommand, } from "./commands/GetColleagueByIdCommand";
|
|
5
9
|
import { GetPbxAclGroupsPermissionsCommand, } from "./commands/GetPbxAclGroupsPermissionsCommand";
|
|
@@ -14,7 +18,11 @@ import { OriginateCommand, } from "./commands/OriginateCommand";
|
|
|
14
18
|
import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
15
19
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
16
20
|
const commands = {
|
|
21
|
+
CreatePbxAclGroupCommand,
|
|
22
|
+
CreatePbxColleagueCommand,
|
|
17
23
|
CreatePbxOAuth2ClientCommand,
|
|
24
|
+
DeletePbxAclGroupCommand,
|
|
25
|
+
DeletePbxColleagueCommand,
|
|
18
26
|
DeletePbxOAuth2ClientCommand,
|
|
19
27
|
GetColleagueByIdCommand,
|
|
20
28
|
GetPbxAclGroupsPermissionsCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreatePbxAclGroupCommand, se_CreatePbxAclGroupCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class CreatePbxAclGroupCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CreatePbxAclGroup", {})
|
|
12
|
+
.n("WmsApiClient", "CreatePbxAclGroupCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreatePbxAclGroupCommand)
|
|
15
|
+
.de(de_CreatePbxAclGroupCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreatePbxColleagueCommand, se_CreatePbxColleagueCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class CreatePbxColleagueCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "CreatePbxColleague", {})
|
|
12
|
+
.n("WmsApiClient", "CreatePbxColleagueCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreatePbxColleagueCommand)
|
|
15
|
+
.de(de_CreatePbxColleagueCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DeletePbxAclGroupCommand, se_DeletePbxAclGroupCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class DeletePbxAclGroupCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "DeletePbxAclGroup", {})
|
|
12
|
+
.n("WmsApiClient", "DeletePbxAclGroupCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeletePbxAclGroupCommand)
|
|
15
|
+
.de(de_DeletePbxAclGroupCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DeletePbxColleagueCommand, se_DeletePbxColleagueCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class DeletePbxColleagueCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "DeletePbxColleague", {})
|
|
12
|
+
.n("WmsApiClient", "DeletePbxColleagueCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeletePbxColleagueCommand)
|
|
15
|
+
.de(de_DeletePbxColleagueCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
export * from "./CreatePbxAclGroupCommand";
|
|
2
|
+
export * from "./CreatePbxColleagueCommand";
|
|
1
3
|
export * from "./CreatePbxOAuth2ClientCommand";
|
|
4
|
+
export * from "./DeletePbxAclGroupCommand";
|
|
5
|
+
export * from "./DeletePbxColleagueCommand";
|
|
2
6
|
export * from "./DeletePbxOAuth2ClientCommand";
|
|
3
7
|
export * from "./GetColleagueByIdCommand";
|
|
4
8
|
export * from "./GetPbxAclGroupsPermissionsCommand";
|
|
@@ -10,6 +10,8 @@ export const AclGroupPermissionAbility = {
|
|
|
10
10
|
CAN: "can",
|
|
11
11
|
CANNOT: "cannot",
|
|
12
12
|
NO: "no",
|
|
13
|
+
NOUSE: "nouse",
|
|
14
|
+
USE: "use",
|
|
13
15
|
YES: "yes",
|
|
14
16
|
};
|
|
15
17
|
export const ResponseType = {
|
|
@@ -30,6 +32,13 @@ export class WmsUnauthorizedException extends __BaseException {
|
|
|
30
32
|
this.reason = opts.reason;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
35
|
+
export const PbxColleagueRole = {
|
|
36
|
+
ADMIN: "admin",
|
|
37
|
+
FAX: "fax",
|
|
38
|
+
PARK_ORBIT: "park_orbit",
|
|
39
|
+
ROOM: "room",
|
|
40
|
+
USER: "user",
|
|
41
|
+
};
|
|
33
42
|
export class WmsValidationException extends __BaseException {
|
|
34
43
|
constructor(opts) {
|
|
35
44
|
super({
|
|
@@ -59,13 +68,6 @@ export class WmsNotFoundException extends __BaseException {
|
|
|
59
68
|
this.reason = opts.reason;
|
|
60
69
|
}
|
|
61
70
|
}
|
|
62
|
-
export const PbxColleagueRole = {
|
|
63
|
-
ADMIN: "admin",
|
|
64
|
-
FAX: "fax",
|
|
65
|
-
PARK_ORBIT: "park_orbit",
|
|
66
|
-
ROOM: "room",
|
|
67
|
-
USER: "user",
|
|
68
|
-
};
|
|
69
71
|
export const GetPbxColleaguesDir = {
|
|
70
72
|
ASC: "asc",
|
|
71
73
|
DESC: "desc",
|
|
@@ -2,6 +2,54 @@ import { WmsApiServiceException as __BaseException } from "../models/WmsApiServi
|
|
|
2
2
|
import { WmsNotFoundException, WmsUnauthorizedException, WmsValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
+
export const se_CreatePbxAclGroupCommand = async (input, context) => {
|
|
6
|
+
const b = rb(input, context);
|
|
7
|
+
const headers = {
|
|
8
|
+
'content-type': 'application/json',
|
|
9
|
+
};
|
|
10
|
+
b.bp("/api/v1/pbx/aclgroups");
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
'inherits': [],
|
|
14
|
+
'name': [],
|
|
15
|
+
'rules': _ => _json(_),
|
|
16
|
+
'wcgrp': [],
|
|
17
|
+
}));
|
|
18
|
+
b.m("POST")
|
|
19
|
+
.h(headers)
|
|
20
|
+
.b(body);
|
|
21
|
+
return b.build();
|
|
22
|
+
};
|
|
23
|
+
export const se_CreatePbxColleagueCommand = async (input, context) => {
|
|
24
|
+
const b = rb(input, context);
|
|
25
|
+
const headers = {
|
|
26
|
+
'content-type': 'application/json',
|
|
27
|
+
};
|
|
28
|
+
b.bp("/api/v1/PBX/Colleagues");
|
|
29
|
+
let body;
|
|
30
|
+
body = JSON.stringify(take(input, {
|
|
31
|
+
'department': [],
|
|
32
|
+
'dialplan': [],
|
|
33
|
+
'email': [],
|
|
34
|
+
'extension': [],
|
|
35
|
+
'faxDialplan': [],
|
|
36
|
+
'faxNumber': [],
|
|
37
|
+
'groupDn': [],
|
|
38
|
+
'language': [],
|
|
39
|
+
'licenseType': [],
|
|
40
|
+
'login': [],
|
|
41
|
+
'mobilePhone': [],
|
|
42
|
+
'name': [],
|
|
43
|
+
'officePhone': [],
|
|
44
|
+
'password': [],
|
|
45
|
+
'role': [],
|
|
46
|
+
'sipPassword': [],
|
|
47
|
+
}));
|
|
48
|
+
b.m("POST")
|
|
49
|
+
.h(headers)
|
|
50
|
+
.b(body);
|
|
51
|
+
return b.build();
|
|
52
|
+
};
|
|
5
53
|
export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
6
54
|
const b = rb(input, context);
|
|
7
55
|
const headers = {
|
|
@@ -18,6 +66,28 @@ export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
18
66
|
.b(body);
|
|
19
67
|
return b.build();
|
|
20
68
|
};
|
|
69
|
+
export const se_DeletePbxAclGroupCommand = async (input, context) => {
|
|
70
|
+
const b = rb(input, context);
|
|
71
|
+
const headers = {};
|
|
72
|
+
b.bp("/api/v1/pbx/aclgroups/{id}");
|
|
73
|
+
b.p('id', () => input.id.toString(), '{id}', false);
|
|
74
|
+
let body;
|
|
75
|
+
b.m("DELETE")
|
|
76
|
+
.h(headers)
|
|
77
|
+
.b(body);
|
|
78
|
+
return b.build();
|
|
79
|
+
};
|
|
80
|
+
export const se_DeletePbxColleagueCommand = async (input, context) => {
|
|
81
|
+
const b = rb(input, context);
|
|
82
|
+
const headers = {};
|
|
83
|
+
b.bp("/api/v1/PBX/Colleagues/{id}");
|
|
84
|
+
b.p('id', () => input.id.toString(), '{id}', false);
|
|
85
|
+
let body;
|
|
86
|
+
b.m("DELETE")
|
|
87
|
+
.h(headers)
|
|
88
|
+
.b(body);
|
|
89
|
+
return b.build();
|
|
90
|
+
};
|
|
21
91
|
export const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
|
|
22
92
|
const b = rb(input, context);
|
|
23
93
|
const headers = {};
|
|
@@ -172,8 +242,8 @@ export const se_NotificationsCommand = async (input, context) => {
|
|
|
172
242
|
b.bp("/api/v1/notifications");
|
|
173
243
|
let body;
|
|
174
244
|
body = JSON.stringify(take(input, {
|
|
175
|
-
'broadcastId': [],
|
|
176
245
|
'broadcastMessage': [],
|
|
246
|
+
'conferenceId': [],
|
|
177
247
|
'confirmationTimeout': [],
|
|
178
248
|
'customRid': [],
|
|
179
249
|
'event': [],
|
|
@@ -249,6 +319,36 @@ export const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
249
319
|
.b(body);
|
|
250
320
|
return b.build();
|
|
251
321
|
};
|
|
322
|
+
export const de_CreatePbxAclGroupCommand = async (output, context) => {
|
|
323
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
324
|
+
return de_CommandError(output, context);
|
|
325
|
+
}
|
|
326
|
+
const contents = map({
|
|
327
|
+
$metadata: deserializeMetadata(output),
|
|
328
|
+
});
|
|
329
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
330
|
+
const doc = take(data, {
|
|
331
|
+
'result': _json,
|
|
332
|
+
'type': __expectString,
|
|
333
|
+
});
|
|
334
|
+
Object.assign(contents, doc);
|
|
335
|
+
return contents;
|
|
336
|
+
};
|
|
337
|
+
export const de_CreatePbxColleagueCommand = async (output, context) => {
|
|
338
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
339
|
+
return de_CommandError(output, context);
|
|
340
|
+
}
|
|
341
|
+
const contents = map({
|
|
342
|
+
$metadata: deserializeMetadata(output),
|
|
343
|
+
});
|
|
344
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
345
|
+
const doc = take(data, {
|
|
346
|
+
'result': _json,
|
|
347
|
+
'type': __expectString,
|
|
348
|
+
});
|
|
349
|
+
Object.assign(contents, doc);
|
|
350
|
+
return contents;
|
|
351
|
+
};
|
|
252
352
|
export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
|
|
253
353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
254
354
|
return de_CommandError(output, context);
|
|
@@ -264,6 +364,36 @@ export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
|
|
|
264
364
|
Object.assign(contents, doc);
|
|
265
365
|
return contents;
|
|
266
366
|
};
|
|
367
|
+
export const de_DeletePbxAclGroupCommand = async (output, context) => {
|
|
368
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
369
|
+
return de_CommandError(output, context);
|
|
370
|
+
}
|
|
371
|
+
const contents = map({
|
|
372
|
+
$metadata: deserializeMetadata(output),
|
|
373
|
+
});
|
|
374
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
375
|
+
const doc = take(data, {
|
|
376
|
+
'result': __expectString,
|
|
377
|
+
'type': __expectString,
|
|
378
|
+
});
|
|
379
|
+
Object.assign(contents, doc);
|
|
380
|
+
return contents;
|
|
381
|
+
};
|
|
382
|
+
export const de_DeletePbxColleagueCommand = async (output, context) => {
|
|
383
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
384
|
+
return de_CommandError(output, context);
|
|
385
|
+
}
|
|
386
|
+
const contents = map({
|
|
387
|
+
$metadata: deserializeMetadata(output),
|
|
388
|
+
});
|
|
389
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
390
|
+
const doc = take(data, {
|
|
391
|
+
'result': __expectString,
|
|
392
|
+
'type': __expectString,
|
|
393
|
+
});
|
|
394
|
+
Object.assign(contents, doc);
|
|
395
|
+
return contents;
|
|
396
|
+
};
|
|
267
397
|
export const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
|
|
268
398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
269
399
|
return de_CommandError(output, context);
|