@wildix/wms-api-client 1.1.10 → 1.1.12
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 +4 -0
- package/dist-cjs/commands/GetColleagueByIdCommand.js +21 -0
- package/dist-cjs/commands/GetPersonalInfoCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +8 -8
- package/dist-cjs/protocols/Aws_restJson1.js +81 -1
- package/dist-es/WmsApi.js +4 -0
- package/dist-es/commands/GetColleagueByIdCommand.js +17 -0
- package/dist-es/commands/GetPersonalInfoCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +7 -7
- package/dist-es/protocols/Aws_restJson1.js +76 -0
- package/dist-types/WmsApi.d.ts +15 -0
- package/dist-types/WmsApiClient.d.ts +4 -2
- package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +2 -2
- package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +2 -2
- package/dist-types/commands/GetColleagueByIdCommand.d.ts +85 -0
- package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +2 -2
- package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +2 -2
- package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -2
- package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +2 -2
- package/dist-types/commands/GetPbxesCommand.d.ts +2 -2
- package/dist-types/commands/GetPersonalInfoCommand.d.ts +124 -0
- package/dist-types/commands/NotificationsCommand.d.ts +3 -3
- package/dist-types/commands/OriginateCallCommand.d.ts +2 -2
- package/dist-types/commands/OriginateCommand.d.ts +2 -2
- package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +89 -42
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/package.json +1 -1
package/dist-cjs/WmsApi.js
CHANGED
|
@@ -4,11 +4,13 @@ exports.WmsApi = void 0;
|
|
|
4
4
|
const WmsApiClient_1 = require("./WmsApiClient");
|
|
5
5
|
const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
|
|
6
6
|
const DeletePbxOAuth2ClientCommand_1 = require("./commands/DeletePbxOAuth2ClientCommand");
|
|
7
|
+
const GetColleagueByIdCommand_1 = require("./commands/GetColleagueByIdCommand");
|
|
7
8
|
const GetPbxAclGroupsPermissionsCommand_1 = require("./commands/GetPbxAclGroupsPermissionsCommand");
|
|
8
9
|
const GetPbxCallGroupsCommand_1 = require("./commands/GetPbxCallGroupsCommand");
|
|
9
10
|
const GetPbxColleaguesCommand_1 = require("./commands/GetPbxColleaguesCommand");
|
|
10
11
|
const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsCommand");
|
|
11
12
|
const GetPbxesCommand_1 = require("./commands/GetPbxesCommand");
|
|
13
|
+
const GetPersonalInfoCommand_1 = require("./commands/GetPersonalInfoCommand");
|
|
12
14
|
const NotificationsCommand_1 = require("./commands/NotificationsCommand");
|
|
13
15
|
const OriginateCallCommand_1 = require("./commands/OriginateCallCommand");
|
|
14
16
|
const OriginateCommand_1 = require("./commands/OriginateCommand");
|
|
@@ -17,11 +19,13 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
17
19
|
const commands = {
|
|
18
20
|
CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
|
|
19
21
|
DeletePbxOAuth2ClientCommand: DeletePbxOAuth2ClientCommand_1.DeletePbxOAuth2ClientCommand,
|
|
22
|
+
GetColleagueByIdCommand: GetColleagueByIdCommand_1.GetColleagueByIdCommand,
|
|
20
23
|
GetPbxAclGroupsPermissionsCommand: GetPbxAclGroupsPermissionsCommand_1.GetPbxAclGroupsPermissionsCommand,
|
|
21
24
|
GetPbxCallGroupsCommand: GetPbxCallGroupsCommand_1.GetPbxCallGroupsCommand,
|
|
22
25
|
GetPbxColleaguesCommand: GetPbxColleaguesCommand_1.GetPbxColleaguesCommand,
|
|
23
26
|
GetPbxesCommand: GetPbxesCommand_1.GetPbxesCommand,
|
|
24
27
|
GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
|
|
28
|
+
GetPersonalInfoCommand: GetPersonalInfoCommand_1.GetPersonalInfoCommand,
|
|
25
29
|
NotificationsCommand: NotificationsCommand_1.NotificationsCommand,
|
|
26
30
|
OriginateCommand: OriginateCommand_1.OriginateCommand,
|
|
27
31
|
OriginateCallCommand: OriginateCallCommand_1.OriginateCallCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetColleagueByIdCommand = 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 GetColleagueByIdCommand 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", "GetColleagueById", {})
|
|
15
|
+
.n("WmsApiClient", "GetColleagueByIdCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetColleagueByIdCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetColleagueByIdCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetColleagueByIdCommand = GetColleagueByIdCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPersonalInfoCommand = 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 GetPersonalInfoCommand 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", "GetPersonalInfo", {})
|
|
15
|
+
.n("WmsApiClient", "GetPersonalInfoCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetPersonalInfoCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetPersonalInfoCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetPersonalInfoCommand = GetPersonalInfoCommand;
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./DeletePbxOAuth2ClientCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./GetColleagueByIdCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./GetPbxAclGroupsPermissionsCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./GetPbxCallGroupsCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./GetPbxColleaguesCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./GetPbxesCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./GetPbxOAuth2ClientsCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./GetPersonalInfoCommand"), exports);
|
|
11
13
|
tslib_1.__exportStar(require("./NotificationsCommand"), exports);
|
|
12
14
|
tslib_1.__exportStar(require("./OriginateCommand"), exports);
|
|
13
15
|
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.
|
|
3
|
+
exports.ResponseResult = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.WmsNotFoundException = exports.WmsValidationException = 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",
|
|
@@ -65,6 +65,13 @@ class WmsNotFoundException extends WmsApiServiceException_1.WmsApiServiceExcepti
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
exports.WmsNotFoundException = WmsNotFoundException;
|
|
68
|
+
exports.PbxColleagueRole = {
|
|
69
|
+
ADMIN: "admin",
|
|
70
|
+
FAX: "fax",
|
|
71
|
+
PARK_ORBIT: "park_orbit",
|
|
72
|
+
ROOM: "room",
|
|
73
|
+
USER: "user",
|
|
74
|
+
};
|
|
68
75
|
exports.GetPbxColleaguesDir = {
|
|
69
76
|
ASC: "asc",
|
|
70
77
|
DESC: "desc",
|
|
@@ -92,13 +99,6 @@ exports.PbxColleaguesSearchStrategy = {
|
|
|
92
99
|
CONTAIN: "contain",
|
|
93
100
|
STARTS_WITH: "startsWith",
|
|
94
101
|
};
|
|
95
|
-
exports.PbxColleagueRole = {
|
|
96
|
-
ADMIN: "admin",
|
|
97
|
-
FAX: "fax",
|
|
98
|
-
PARK_ORBIT: "park_orbit",
|
|
99
|
-
ROOM: "room",
|
|
100
|
-
USER: "user",
|
|
101
|
-
};
|
|
102
102
|
exports.ResponseResult = {
|
|
103
103
|
SUCCESS: "Success",
|
|
104
104
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
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_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_OriginateCallCommand = exports.se_OriginateCommand = exports.se_NotificationsCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxesCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = 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_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;
|
|
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");
|
|
@@ -34,6 +34,18 @@ const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
34
34
|
return b.build();
|
|
35
35
|
};
|
|
36
36
|
exports.se_DeletePbxOAuth2ClientCommand = se_DeletePbxOAuth2ClientCommand;
|
|
37
|
+
const se_GetColleagueByIdCommand = async (input, context) => {
|
|
38
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
39
|
+
const headers = {};
|
|
40
|
+
b.bp("/api/v1/Colleagues/{id}");
|
|
41
|
+
b.p('id', () => input.id.toString(), '{id}', false);
|
|
42
|
+
let body;
|
|
43
|
+
b.m("GET")
|
|
44
|
+
.h(headers)
|
|
45
|
+
.b(body);
|
|
46
|
+
return b.build();
|
|
47
|
+
};
|
|
48
|
+
exports.se_GetColleagueByIdCommand = se_GetColleagueByIdCommand;
|
|
37
49
|
const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
|
|
38
50
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
39
51
|
const headers = {};
|
|
@@ -128,6 +140,42 @@ const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
|
|
|
128
140
|
return b.build();
|
|
129
141
|
};
|
|
130
142
|
exports.se_GetPbxOAuth2ClientsCommand = se_GetPbxOAuth2ClientsCommand;
|
|
143
|
+
const se_GetPersonalInfoCommand = async (input, context) => {
|
|
144
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
145
|
+
const headers = {};
|
|
146
|
+
b.bp("/api/v1/personal/info");
|
|
147
|
+
const query = (0, smithy_client_1.map)({
|
|
148
|
+
[_f]: [() => input.extension !== void 0, () => ((input[_e] || []).map(_entry => _entry))],
|
|
149
|
+
[_fi]: [() => input.id !== void 0, () => ((input[_i] || []).map(_entry => _entry))],
|
|
150
|
+
[_fP]: [() => input.officePhone !== void 0, () => ((input[_oP] || []).map(_entry => _entry))],
|
|
151
|
+
[_fPi]: [() => input.mobilePhone !== void 0, () => ((input[_mP] || []).map(_entry => _entry))],
|
|
152
|
+
[_fil]: [() => input.name !== void 0, () => ((input[_n] || []).map(_entry => _entry))],
|
|
153
|
+
[_filt]: [() => input.email !== void 0, () => ((input[_em] || []).map(_entry => _entry))],
|
|
154
|
+
[_filte]: [() => input.role !== void 0, () => ((input[_r] || []).map(_entry => _entry))],
|
|
155
|
+
[_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
|
|
156
|
+
[_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []).map(_entry => _entry))],
|
|
157
|
+
[_filterd]: [() => input.department !== void 0, () => ((input[_de] || []).map(_entry => _entry))],
|
|
158
|
+
[_filterl]: [() => input.login !== void 0, () => ((input[_l] || []).map(_entry => _entry))],
|
|
159
|
+
[_fDil]: [() => input.groupDn !== void 0, () => ((input[_gD] || []).map(_entry => _entry))],
|
|
160
|
+
[_fDilt]: [() => input.pbxDn !== void 0, () => ((input[_pD] || []).map(_entry => _entry))],
|
|
161
|
+
[_fT]: [() => input.licenseType !== void 0, () => ((input[_lT] || []).map(_entry => _entry))],
|
|
162
|
+
[_fie]: [() => input.fields !== void 0, () => ((input[_fie] || []).map(_entry => _entry))],
|
|
163
|
+
[_sF]: [() => input.searchFields !== void 0, () => ((input[_sF] || []).map(_entry => _entry))],
|
|
164
|
+
[_s]: [, input[_s]],
|
|
165
|
+
[_so]: [() => input.sort !== void 0, () => ((input[_so] || []).map(_entry => _entry))],
|
|
166
|
+
[_st]: [() => input.start !== void 0, () => (input[_st].toString())],
|
|
167
|
+
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
168
|
+
[_di]: [, input[_di]],
|
|
169
|
+
[_sS]: [, input[_sS]],
|
|
170
|
+
});
|
|
171
|
+
let body;
|
|
172
|
+
b.m("GET")
|
|
173
|
+
.h(headers)
|
|
174
|
+
.q(query)
|
|
175
|
+
.b(body);
|
|
176
|
+
return b.build();
|
|
177
|
+
};
|
|
178
|
+
exports.se_GetPersonalInfoCommand = se_GetPersonalInfoCommand;
|
|
131
179
|
const se_NotificationsCommand = async (input, context) => {
|
|
132
180
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
133
181
|
const headers = {
|
|
@@ -249,6 +297,22 @@ const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
|
|
|
249
297
|
return contents;
|
|
250
298
|
};
|
|
251
299
|
exports.de_DeletePbxOAuth2ClientCommand = de_DeletePbxOAuth2ClientCommand;
|
|
300
|
+
const de_GetColleagueByIdCommand = async (output, context) => {
|
|
301
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
302
|
+
return de_CommandError(output, context);
|
|
303
|
+
}
|
|
304
|
+
const contents = (0, smithy_client_1.map)({
|
|
305
|
+
$metadata: deserializeMetadata(output),
|
|
306
|
+
});
|
|
307
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
308
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
309
|
+
'result': smithy_client_1._json,
|
|
310
|
+
'type': smithy_client_1.expectString,
|
|
311
|
+
});
|
|
312
|
+
Object.assign(contents, doc);
|
|
313
|
+
return contents;
|
|
314
|
+
};
|
|
315
|
+
exports.de_GetColleagueByIdCommand = de_GetColleagueByIdCommand;
|
|
252
316
|
const de_GetPbxAclGroupsPermissionsCommand = async (output, context) => {
|
|
253
317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
254
318
|
return de_CommandError(output, context);
|
|
@@ -329,6 +393,22 @@ const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
|
|
|
329
393
|
return contents;
|
|
330
394
|
};
|
|
331
395
|
exports.de_GetPbxOAuth2ClientsCommand = de_GetPbxOAuth2ClientsCommand;
|
|
396
|
+
const de_GetPersonalInfoCommand = async (output, context) => {
|
|
397
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
398
|
+
return de_CommandError(output, context);
|
|
399
|
+
}
|
|
400
|
+
const contents = (0, smithy_client_1.map)({
|
|
401
|
+
$metadata: deserializeMetadata(output),
|
|
402
|
+
});
|
|
403
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
404
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
405
|
+
'result': smithy_client_1._json,
|
|
406
|
+
'type': smithy_client_1.expectString,
|
|
407
|
+
});
|
|
408
|
+
Object.assign(contents, doc);
|
|
409
|
+
return contents;
|
|
410
|
+
};
|
|
411
|
+
exports.de_GetPersonalInfoCommand = de_GetPersonalInfoCommand;
|
|
332
412
|
const de_NotificationsCommand = async (output, context) => {
|
|
333
413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
334
414
|
return de_CommandError(output, context);
|
package/dist-es/WmsApi.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { WmsApiClient, } from "./WmsApiClient";
|
|
2
2
|
import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
3
3
|
import { DeletePbxOAuth2ClientCommand, } from "./commands/DeletePbxOAuth2ClientCommand";
|
|
4
|
+
import { GetColleagueByIdCommand, } from "./commands/GetColleagueByIdCommand";
|
|
4
5
|
import { GetPbxAclGroupsPermissionsCommand, } from "./commands/GetPbxAclGroupsPermissionsCommand";
|
|
5
6
|
import { GetPbxCallGroupsCommand, } from "./commands/GetPbxCallGroupsCommand";
|
|
6
7
|
import { GetPbxColleaguesCommand, } from "./commands/GetPbxColleaguesCommand";
|
|
7
8
|
import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
8
9
|
import { GetPbxesCommand, } from "./commands/GetPbxesCommand";
|
|
10
|
+
import { GetPersonalInfoCommand, } from "./commands/GetPersonalInfoCommand";
|
|
9
11
|
import { NotificationsCommand, } from "./commands/NotificationsCommand";
|
|
10
12
|
import { OriginateCallCommand, } from "./commands/OriginateCallCommand";
|
|
11
13
|
import { OriginateCommand, } from "./commands/OriginateCommand";
|
|
@@ -14,11 +16,13 @@ import { createAggregatedClient } from "@smithy/smithy-client";
|
|
|
14
16
|
const commands = {
|
|
15
17
|
CreatePbxOAuth2ClientCommand,
|
|
16
18
|
DeletePbxOAuth2ClientCommand,
|
|
19
|
+
GetColleagueByIdCommand,
|
|
17
20
|
GetPbxAclGroupsPermissionsCommand,
|
|
18
21
|
GetPbxCallGroupsCommand,
|
|
19
22
|
GetPbxColleaguesCommand,
|
|
20
23
|
GetPbxesCommand,
|
|
21
24
|
GetPbxOAuth2ClientsCommand,
|
|
25
|
+
GetPersonalInfoCommand,
|
|
22
26
|
NotificationsCommand,
|
|
23
27
|
OriginateCommand,
|
|
24
28
|
OriginateCallCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetColleagueByIdCommand, se_GetColleagueByIdCommand, } 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 GetColleagueByIdCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "GetColleagueById", {})
|
|
12
|
+
.n("WmsApiClient", "GetColleagueByIdCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetColleagueByIdCommand)
|
|
15
|
+
.de(de_GetColleagueByIdCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetPersonalInfoCommand, se_GetPersonalInfoCommand, } 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 GetPersonalInfoCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "GetPersonalInfo", {})
|
|
12
|
+
.n("WmsApiClient", "GetPersonalInfoCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetPersonalInfoCommand)
|
|
15
|
+
.de(de_GetPersonalInfoCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from "./CreatePbxOAuth2ClientCommand";
|
|
2
2
|
export * from "./DeletePbxOAuth2ClientCommand";
|
|
3
|
+
export * from "./GetColleagueByIdCommand";
|
|
3
4
|
export * from "./GetPbxAclGroupsPermissionsCommand";
|
|
4
5
|
export * from "./GetPbxCallGroupsCommand";
|
|
5
6
|
export * from "./GetPbxColleaguesCommand";
|
|
6
7
|
export * from "./GetPbxesCommand";
|
|
7
8
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
9
|
+
export * from "./GetPersonalInfoCommand";
|
|
8
10
|
export * from "./NotificationsCommand";
|
|
9
11
|
export * from "./OriginateCommand";
|
|
10
12
|
export * from "./OriginateCallCommand";
|
|
@@ -59,6 +59,13 @@ export class WmsNotFoundException extends __BaseException {
|
|
|
59
59
|
this.reason = opts.reason;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
+
export const PbxColleagueRole = {
|
|
63
|
+
ADMIN: "admin",
|
|
64
|
+
FAX: "fax",
|
|
65
|
+
PARK_ORBIT: "park_orbit",
|
|
66
|
+
ROOM: "room",
|
|
67
|
+
USER: "user",
|
|
68
|
+
};
|
|
62
69
|
export const GetPbxColleaguesDir = {
|
|
63
70
|
ASC: "asc",
|
|
64
71
|
DESC: "desc",
|
|
@@ -86,13 +93,6 @@ export const PbxColleaguesSearchStrategy = {
|
|
|
86
93
|
CONTAIN: "contain",
|
|
87
94
|
STARTS_WITH: "startsWith",
|
|
88
95
|
};
|
|
89
|
-
export const PbxColleagueRole = {
|
|
90
|
-
ADMIN: "admin",
|
|
91
|
-
FAX: "fax",
|
|
92
|
-
PARK_ORBIT: "park_orbit",
|
|
93
|
-
ROOM: "room",
|
|
94
|
-
USER: "user",
|
|
95
|
-
};
|
|
96
96
|
export const ResponseResult = {
|
|
97
97
|
SUCCESS: "Success",
|
|
98
98
|
};
|
|
@@ -29,6 +29,17 @@ export const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
29
29
|
.b(body);
|
|
30
30
|
return b.build();
|
|
31
31
|
};
|
|
32
|
+
export const se_GetColleagueByIdCommand = async (input, context) => {
|
|
33
|
+
const b = rb(input, context);
|
|
34
|
+
const headers = {};
|
|
35
|
+
b.bp("/api/v1/Colleagues/{id}");
|
|
36
|
+
b.p('id', () => input.id.toString(), '{id}', false);
|
|
37
|
+
let body;
|
|
38
|
+
b.m("GET")
|
|
39
|
+
.h(headers)
|
|
40
|
+
.b(body);
|
|
41
|
+
return b.build();
|
|
42
|
+
};
|
|
32
43
|
export const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
|
|
33
44
|
const b = rb(input, context);
|
|
34
45
|
const headers = {};
|
|
@@ -118,6 +129,41 @@ export const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
|
|
|
118
129
|
.b(body);
|
|
119
130
|
return b.build();
|
|
120
131
|
};
|
|
132
|
+
export const se_GetPersonalInfoCommand = async (input, context) => {
|
|
133
|
+
const b = rb(input, context);
|
|
134
|
+
const headers = {};
|
|
135
|
+
b.bp("/api/v1/personal/info");
|
|
136
|
+
const query = map({
|
|
137
|
+
[_f]: [() => input.extension !== void 0, () => ((input[_e] || []).map(_entry => _entry))],
|
|
138
|
+
[_fi]: [() => input.id !== void 0, () => ((input[_i] || []).map(_entry => _entry))],
|
|
139
|
+
[_fP]: [() => input.officePhone !== void 0, () => ((input[_oP] || []).map(_entry => _entry))],
|
|
140
|
+
[_fPi]: [() => input.mobilePhone !== void 0, () => ((input[_mP] || []).map(_entry => _entry))],
|
|
141
|
+
[_fil]: [() => input.name !== void 0, () => ((input[_n] || []).map(_entry => _entry))],
|
|
142
|
+
[_filt]: [() => input.email !== void 0, () => ((input[_em] || []).map(_entry => _entry))],
|
|
143
|
+
[_filte]: [() => input.role !== void 0, () => ((input[_r] || []).map(_entry => _entry))],
|
|
144
|
+
[_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
|
|
145
|
+
[_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []).map(_entry => _entry))],
|
|
146
|
+
[_filterd]: [() => input.department !== void 0, () => ((input[_de] || []).map(_entry => _entry))],
|
|
147
|
+
[_filterl]: [() => input.login !== void 0, () => ((input[_l] || []).map(_entry => _entry))],
|
|
148
|
+
[_fDil]: [() => input.groupDn !== void 0, () => ((input[_gD] || []).map(_entry => _entry))],
|
|
149
|
+
[_fDilt]: [() => input.pbxDn !== void 0, () => ((input[_pD] || []).map(_entry => _entry))],
|
|
150
|
+
[_fT]: [() => input.licenseType !== void 0, () => ((input[_lT] || []).map(_entry => _entry))],
|
|
151
|
+
[_fie]: [() => input.fields !== void 0, () => ((input[_fie] || []).map(_entry => _entry))],
|
|
152
|
+
[_sF]: [() => input.searchFields !== void 0, () => ((input[_sF] || []).map(_entry => _entry))],
|
|
153
|
+
[_s]: [, input[_s]],
|
|
154
|
+
[_so]: [() => input.sort !== void 0, () => ((input[_so] || []).map(_entry => _entry))],
|
|
155
|
+
[_st]: [() => input.start !== void 0, () => (input[_st].toString())],
|
|
156
|
+
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
157
|
+
[_di]: [, input[_di]],
|
|
158
|
+
[_sS]: [, input[_sS]],
|
|
159
|
+
});
|
|
160
|
+
let body;
|
|
161
|
+
b.m("GET")
|
|
162
|
+
.h(headers)
|
|
163
|
+
.q(query)
|
|
164
|
+
.b(body);
|
|
165
|
+
return b.build();
|
|
166
|
+
};
|
|
121
167
|
export const se_NotificationsCommand = async (input, context) => {
|
|
122
168
|
const b = rb(input, context);
|
|
123
169
|
const headers = {
|
|
@@ -233,6 +279,21 @@ export const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
|
|
|
233
279
|
Object.assign(contents, doc);
|
|
234
280
|
return contents;
|
|
235
281
|
};
|
|
282
|
+
export const de_GetColleagueByIdCommand = async (output, context) => {
|
|
283
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
284
|
+
return de_CommandError(output, context);
|
|
285
|
+
}
|
|
286
|
+
const contents = map({
|
|
287
|
+
$metadata: deserializeMetadata(output),
|
|
288
|
+
});
|
|
289
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
290
|
+
const doc = take(data, {
|
|
291
|
+
'result': _json,
|
|
292
|
+
'type': __expectString,
|
|
293
|
+
});
|
|
294
|
+
Object.assign(contents, doc);
|
|
295
|
+
return contents;
|
|
296
|
+
};
|
|
236
297
|
export const de_GetPbxAclGroupsPermissionsCommand = async (output, context) => {
|
|
237
298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
238
299
|
return de_CommandError(output, context);
|
|
@@ -308,6 +369,21 @@ export const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
|
|
|
308
369
|
Object.assign(contents, doc);
|
|
309
370
|
return contents;
|
|
310
371
|
};
|
|
372
|
+
export const de_GetPersonalInfoCommand = async (output, context) => {
|
|
373
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
374
|
+
return de_CommandError(output, context);
|
|
375
|
+
}
|
|
376
|
+
const contents = map({
|
|
377
|
+
$metadata: deserializeMetadata(output),
|
|
378
|
+
});
|
|
379
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
380
|
+
const doc = take(data, {
|
|
381
|
+
'result': _json,
|
|
382
|
+
'type': __expectString,
|
|
383
|
+
});
|
|
384
|
+
Object.assign(contents, doc);
|
|
385
|
+
return contents;
|
|
386
|
+
};
|
|
311
387
|
export const de_NotificationsCommand = async (output, context) => {
|
|
312
388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
313
389
|
return de_CommandError(output, context);
|
package/dist-types/WmsApi.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { WmsApiClient } from "./WmsApiClient";
|
|
2
2
|
import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
3
3
|
import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
|
|
4
|
+
import { GetColleagueByIdCommandInput, GetColleagueByIdCommandOutput } from "./commands/GetColleagueByIdCommand";
|
|
4
5
|
import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
|
|
5
6
|
import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
|
|
6
7
|
import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
|
|
7
8
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
8
9
|
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
|
|
10
|
+
import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "./commands/GetPersonalInfoCommand";
|
|
9
11
|
import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
|
|
10
12
|
import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
|
|
11
13
|
import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
|
|
@@ -24,6 +26,12 @@ export interface WmsApi {
|
|
|
24
26
|
deletePbxOAuth2Client(args: DeletePbxOAuth2ClientCommandInput, options?: __HttpHandlerOptions): Promise<DeletePbxOAuth2ClientCommandOutput>;
|
|
25
27
|
deletePbxOAuth2Client(args: DeletePbxOAuth2ClientCommandInput, cb: (err: any, data?: DeletePbxOAuth2ClientCommandOutput) => void): void;
|
|
26
28
|
deletePbxOAuth2Client(args: DeletePbxOAuth2ClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePbxOAuth2ClientCommandOutput) => void): void;
|
|
29
|
+
/**
|
|
30
|
+
* @see {@link GetColleagueByIdCommand}
|
|
31
|
+
*/
|
|
32
|
+
getColleagueById(args: GetColleagueByIdCommandInput, options?: __HttpHandlerOptions): Promise<GetColleagueByIdCommandOutput>;
|
|
33
|
+
getColleagueById(args: GetColleagueByIdCommandInput, cb: (err: any, data?: GetColleagueByIdCommandOutput) => void): void;
|
|
34
|
+
getColleagueById(args: GetColleagueByIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetColleagueByIdCommandOutput) => void): void;
|
|
27
35
|
/**
|
|
28
36
|
* @see {@link GetPbxAclGroupsPermissionsCommand}
|
|
29
37
|
*/
|
|
@@ -59,6 +67,13 @@ export interface WmsApi {
|
|
|
59
67
|
getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, options?: __HttpHandlerOptions): Promise<GetPbxOAuth2ClientsCommandOutput>;
|
|
60
68
|
getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, cb: (err: any, data?: GetPbxOAuth2ClientsCommandOutput) => void): void;
|
|
61
69
|
getPbxOAuth2Clients(args: GetPbxOAuth2ClientsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPbxOAuth2ClientsCommandOutput) => void): void;
|
|
70
|
+
/**
|
|
71
|
+
* @see {@link GetPersonalInfoCommand}
|
|
72
|
+
*/
|
|
73
|
+
getPersonalInfo(): Promise<GetPersonalInfoCommandOutput>;
|
|
74
|
+
getPersonalInfo(args: GetPersonalInfoCommandInput, options?: __HttpHandlerOptions): Promise<GetPersonalInfoCommandOutput>;
|
|
75
|
+
getPersonalInfo(args: GetPersonalInfoCommandInput, cb: (err: any, data?: GetPersonalInfoCommandOutput) => void): void;
|
|
76
|
+
getPersonalInfo(args: GetPersonalInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPersonalInfoCommandOutput) => void): void;
|
|
62
77
|
/**
|
|
63
78
|
* @see {@link NotificationsCommand}
|
|
64
79
|
*/
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
2
2
|
import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
|
|
3
|
+
import { GetColleagueByIdCommandInput, GetColleagueByIdCommandOutput } from "./commands/GetColleagueByIdCommand";
|
|
3
4
|
import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
|
|
4
5
|
import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "./commands/GetPbxCallGroupsCommand";
|
|
5
6
|
import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./commands/GetPbxColleaguesCommand";
|
|
6
7
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
7
8
|
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
|
|
9
|
+
import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "./commands/GetPersonalInfoCommand";
|
|
8
10
|
import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
|
|
9
11
|
import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
|
|
10
12
|
import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
|
|
@@ -20,11 +22,11 @@ export { __Client };
|
|
|
20
22
|
/**
|
|
21
23
|
* @public
|
|
22
24
|
*/
|
|
23
|
-
export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
25
|
+
export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
24
26
|
/**
|
|
25
27
|
* @public
|
|
26
28
|
*/
|
|
27
|
-
export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
29
|
+
export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
28
30
|
/**
|
|
29
31
|
* @public
|
|
30
32
|
*/
|
|
@@ -31,8 +31,8 @@ declare const CreatePbxOAuth2ClientCommand_base: {
|
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import { WmsApiClient, CreatePbxOAuth2ClientCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
35
|
-
* // const { WmsApiClient, CreatePbxOAuth2ClientCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
34
|
+
* import { WmsApiClient, CreatePbxOAuth2ClientCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
35
|
+
* // const { WmsApiClient, CreatePbxOAuth2ClientCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
36
36
|
* const client = new WmsApiClient(config);
|
|
37
37
|
* const input = { // CreatePbxOAuth2ClientInput
|
|
38
38
|
* name: "STRING_VALUE", // required
|
|
@@ -31,8 +31,8 @@ declare const DeletePbxOAuth2ClientCommand_base: {
|
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import { WmsApiClient, DeletePbxOAuth2ClientCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
35
|
-
* // const { WmsApiClient, DeletePbxOAuth2ClientCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
34
|
+
* import { WmsApiClient, DeletePbxOAuth2ClientCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
35
|
+
* // const { WmsApiClient, DeletePbxOAuth2ClientCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
36
36
|
* const client = new WmsApiClient(config);
|
|
37
37
|
* const input = { // DeletePbxOAuth2ClientInput
|
|
38
38
|
* id: "STRING_VALUE", // required
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
|
|
2
|
+
import { GetColleagueByIdInput, GetColleagueByIdOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetColleagueByIdCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetColleagueByIdCommandInput extends GetColleagueByIdInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetColleagueByIdCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetColleagueByIdCommandOutput extends GetColleagueByIdOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetColleagueByIdCommand_base: {
|
|
25
|
+
new (input: GetColleagueByIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetColleagueByIdCommandInput, GetColleagueByIdCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetColleagueByIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetColleagueByIdCommandInput, GetColleagueByIdCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { WmsApiClient, GetColleagueByIdCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
36
|
+
* // const { WmsApiClient, GetColleagueByIdCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
37
|
+
* const client = new WmsApiClient(config);
|
|
38
|
+
* const input = { // GetColleagueByIdInput
|
|
39
|
+
* id: Number("int"), // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetColleagueByIdCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetColleagueByIdOutput
|
|
44
|
+
* // type: "result" || "error", // required
|
|
45
|
+
* // result: { // PbxColleague
|
|
46
|
+
* // id: "STRING_VALUE", // required
|
|
47
|
+
* // name: "STRING_VALUE",
|
|
48
|
+
* // login: "STRING_VALUE",
|
|
49
|
+
* // extension: "STRING_VALUE", // required
|
|
50
|
+
* // officePhone: "STRING_VALUE",
|
|
51
|
+
* // mobilePhone: "STRING_VALUE",
|
|
52
|
+
* // faxNumber: "STRING_VALUE",
|
|
53
|
+
* // email: "STRING_VALUE",
|
|
54
|
+
* // pbxDn: "STRING_VALUE", // required
|
|
55
|
+
* // pbx: "STRING_VALUE", // required
|
|
56
|
+
* // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
|
|
57
|
+
* // groupName: "STRING_VALUE", // required
|
|
58
|
+
* // groupDn: "STRING_VALUE", // required
|
|
59
|
+
* // language: "STRING_VALUE", // required
|
|
60
|
+
* // dialplan: "STRING_VALUE", // required
|
|
61
|
+
* // faxDialplan: "STRING_VALUE", // required
|
|
62
|
+
* // department: "STRING_VALUE",
|
|
63
|
+
* // picture: "STRING_VALUE", // required
|
|
64
|
+
* // sourceId: "STRING_VALUE",
|
|
65
|
+
* // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
|
|
66
|
+
* // jid: "STRING_VALUE", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param GetColleagueByIdCommandInput - {@link GetColleagueByIdCommandInput}
|
|
73
|
+
* @returns {@link GetColleagueByIdCommandOutput}
|
|
74
|
+
* @see {@link GetColleagueByIdCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link GetColleagueByIdCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link WmsApiServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
export declare class GetColleagueByIdCommand extends GetColleagueByIdCommand_base {
|
|
85
|
+
}
|
|
@@ -32,8 +32,8 @@ declare const GetPbxAclGroupsPermissionsCommand_base: {
|
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
35
|
-
* import { WmsApiClient, GetPbxAclGroupsPermissionsCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
36
|
-
* // const { WmsApiClient, GetPbxAclGroupsPermissionsCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
35
|
+
* import { WmsApiClient, GetPbxAclGroupsPermissionsCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
36
|
+
* // const { WmsApiClient, GetPbxAclGroupsPermissionsCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
37
37
|
* const client = new WmsApiClient(config);
|
|
38
38
|
* const input = { // GetPbxAclGroupsPermissionsInput
|
|
39
39
|
* groups: [ // FilterList
|
|
@@ -31,8 +31,8 @@ declare const GetPbxCallGroupsCommand_base: {
|
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import { WmsApiClient, GetPbxCallGroupsCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
35
|
-
* // const { WmsApiClient, GetPbxCallGroupsCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
34
|
+
* import { WmsApiClient, GetPbxCallGroupsCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
35
|
+
* // const { WmsApiClient, GetPbxCallGroupsCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
36
36
|
* const client = new WmsApiClient(config);
|
|
37
37
|
* const input = {};
|
|
38
38
|
* const command = new GetPbxCallGroupsCommand(input);
|
|
@@ -32,8 +32,8 @@ declare const GetPbxColleaguesCommand_base: {
|
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
35
|
-
* import { WmsApiClient, GetPbxColleaguesCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
36
|
-
* // const { WmsApiClient, GetPbxColleaguesCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
35
|
+
* import { WmsApiClient, GetPbxColleaguesCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
36
|
+
* // const { WmsApiClient, GetPbxColleaguesCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
37
37
|
* const client = new WmsApiClient(config);
|
|
38
38
|
* const input = { // GetPbxColleaguesInput
|
|
39
39
|
* extension: [ // ColleaguesFilterList
|
|
@@ -31,8 +31,8 @@ declare const GetPbxOAuth2ClientsCommand_base: {
|
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import { WmsApiClient, GetPbxOAuth2ClientsCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
35
|
-
* // const { WmsApiClient, GetPbxOAuth2ClientsCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
34
|
+
* import { WmsApiClient, GetPbxOAuth2ClientsCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
35
|
+
* // const { WmsApiClient, GetPbxOAuth2ClientsCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
36
36
|
* const client = new WmsApiClient(config);
|
|
37
37
|
* const input = {};
|
|
38
38
|
* const command = new GetPbxOAuth2ClientsCommand(input);
|
|
@@ -31,8 +31,8 @@ declare const GetPbxesCommand_base: {
|
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import { WmsApiClient, GetPbxesCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
35
|
-
* // const { WmsApiClient, GetPbxesCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
34
|
+
* import { WmsApiClient, GetPbxesCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
35
|
+
* // const { WmsApiClient, GetPbxesCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
36
36
|
* const client = new WmsApiClient(config);
|
|
37
37
|
* const input = {};
|
|
38
38
|
* const command = new GetPbxesCommand(input);
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
|
|
2
|
+
import { GetPersonalInfoInput, GetPersonalInfoOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPersonalInfoCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPersonalInfoCommandInput extends GetPersonalInfoInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPersonalInfoCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPersonalInfoCommandOutput extends GetPersonalInfoOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPersonalInfoCommand_base: {
|
|
25
|
+
new (input: GetPersonalInfoCommandInput): import("@smithy/smithy-client").CommandImpl<GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetPersonalInfoCommandInput]): import("@smithy/smithy-client").CommandImpl<GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { WmsApiClient, GetPersonalInfoCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
36
|
+
* // const { WmsApiClient, GetPersonalInfoCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
37
|
+
* const client = new WmsApiClient(config);
|
|
38
|
+
* const input = { // GetPersonalInfoInput
|
|
39
|
+
* extension: [ // ColleaguesFilterList
|
|
40
|
+
* "STRING_VALUE",
|
|
41
|
+
* ],
|
|
42
|
+
* id: [
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* officePhone: [
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* mobilePhone: [
|
|
49
|
+
* "STRING_VALUE",
|
|
50
|
+
* ],
|
|
51
|
+
* name: [
|
|
52
|
+
* "STRING_VALUE",
|
|
53
|
+
* ],
|
|
54
|
+
* email: "<ColleaguesFilterList>",
|
|
55
|
+
* role: "<ColleaguesFilterList>",
|
|
56
|
+
* dialplan: "<ColleaguesFilterList>",
|
|
57
|
+
* faxDialplan: "<ColleaguesFilterList>",
|
|
58
|
+
* department: "<ColleaguesFilterList>",
|
|
59
|
+
* login: "<ColleaguesFilterList>",
|
|
60
|
+
* groupDn: "<ColleaguesFilterList>",
|
|
61
|
+
* pbxDn: "<ColleaguesFilterList>",
|
|
62
|
+
* licenseType: [ // ColleaguesFilterLicenseTypeList
|
|
63
|
+
* "basic" || "essential" || "business" || "premium" || "wizyconf",
|
|
64
|
+
* ],
|
|
65
|
+
* fields: [ // PbxColleaguesQueryFieldList
|
|
66
|
+
* "extension" || "officePhone" || "mobilePhone" || "name" || "email" || "role" || "groupDn" || "language" || "dialplan" || "faxDialplan" || "department" || "login" || "id" || "pbxDn" || "picture" || "sourceId" || "licenseType",
|
|
67
|
+
* ],
|
|
68
|
+
* searchFields: [
|
|
69
|
+
* "extension" || "officePhone" || "mobilePhone" || "name" || "email" || "role" || "groupDn" || "language" || "dialplan" || "faxDialplan" || "department" || "login" || "id" || "pbxDn" || "picture" || "sourceId" || "licenseType",
|
|
70
|
+
* ],
|
|
71
|
+
* search: "STRING_VALUE",
|
|
72
|
+
* sort: [
|
|
73
|
+
* "extension" || "officePhone" || "mobilePhone" || "name" || "email" || "role" || "groupDn" || "language" || "dialplan" || "faxDialplan" || "department" || "login" || "id" || "pbxDn" || "picture" || "sourceId" || "licenseType",
|
|
74
|
+
* ],
|
|
75
|
+
* start: Number("int"),
|
|
76
|
+
* count: Number("int"),
|
|
77
|
+
* dir: "asc" || "desc",
|
|
78
|
+
* searchStrategy: "contain" || "startsWith",
|
|
79
|
+
* };
|
|
80
|
+
* const command = new GetPersonalInfoCommand(input);
|
|
81
|
+
* const response = await client.send(command);
|
|
82
|
+
* // { // GetPersonalInfoOutput
|
|
83
|
+
* // type: "result" || "error", // required
|
|
84
|
+
* // result: { // PbxColleague
|
|
85
|
+
* // id: "STRING_VALUE", // required
|
|
86
|
+
* // name: "STRING_VALUE",
|
|
87
|
+
* // login: "STRING_VALUE",
|
|
88
|
+
* // extension: "STRING_VALUE", // required
|
|
89
|
+
* // officePhone: "STRING_VALUE",
|
|
90
|
+
* // mobilePhone: "STRING_VALUE",
|
|
91
|
+
* // faxNumber: "STRING_VALUE",
|
|
92
|
+
* // email: "STRING_VALUE",
|
|
93
|
+
* // pbxDn: "STRING_VALUE", // required
|
|
94
|
+
* // pbx: "STRING_VALUE", // required
|
|
95
|
+
* // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
|
|
96
|
+
* // groupName: "STRING_VALUE", // required
|
|
97
|
+
* // groupDn: "STRING_VALUE", // required
|
|
98
|
+
* // language: "STRING_VALUE", // required
|
|
99
|
+
* // dialplan: "STRING_VALUE", // required
|
|
100
|
+
* // faxDialplan: "STRING_VALUE", // required
|
|
101
|
+
* // department: "STRING_VALUE",
|
|
102
|
+
* // picture: "STRING_VALUE", // required
|
|
103
|
+
* // sourceId: "STRING_VALUE",
|
|
104
|
+
* // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
|
|
105
|
+
* // jid: "STRING_VALUE", // required
|
|
106
|
+
* // },
|
|
107
|
+
* // };
|
|
108
|
+
*
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* @param GetPersonalInfoCommandInput - {@link GetPersonalInfoCommandInput}
|
|
112
|
+
* @returns {@link GetPersonalInfoCommandOutput}
|
|
113
|
+
* @see {@link GetPersonalInfoCommandInput} for command's `input` shape.
|
|
114
|
+
* @see {@link GetPersonalInfoCommandOutput} for command's `response` shape.
|
|
115
|
+
* @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link WmsApiServiceException}
|
|
120
|
+
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
121
|
+
*
|
|
122
|
+
*/
|
|
123
|
+
export declare class GetPersonalInfoCommand extends GetPersonalInfoCommand_base {
|
|
124
|
+
}
|
|
@@ -31,8 +31,8 @@ declare const NotificationsCommand_base: {
|
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import { WmsApiClient, NotificationsCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
35
|
-
* // const { WmsApiClient, NotificationsCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
34
|
+
* import { WmsApiClient, NotificationsCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
35
|
+
* // const { WmsApiClient, NotificationsCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
36
36
|
* const client = new WmsApiClient(config);
|
|
37
37
|
* const input = { // NotificationsInput
|
|
38
38
|
* from: "STRING_VALUE", // required
|
|
@@ -52,7 +52,7 @@ declare const NotificationsCommand_base: {
|
|
|
52
52
|
* // { // NotificationsOutput
|
|
53
53
|
* // type: "result" || "error", // required
|
|
54
54
|
* // result: { // NotificationsOutputResult
|
|
55
|
-
* //
|
|
55
|
+
* // requestId: "STRING_VALUE", // required
|
|
56
56
|
* // },
|
|
57
57
|
* // };
|
|
58
58
|
*
|
|
@@ -31,8 +31,8 @@ declare const OriginateCallCommand_base: {
|
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import { WmsApiClient, OriginateCallCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
35
|
-
* // const { WmsApiClient, OriginateCallCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
34
|
+
* import { WmsApiClient, OriginateCallCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
35
|
+
* // const { WmsApiClient, OriginateCallCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
36
36
|
* const client = new WmsApiClient(config);
|
|
37
37
|
* const input = { // OriginateCallInput
|
|
38
38
|
* number: "STRING_VALUE", // required
|
|
@@ -31,8 +31,8 @@ declare const OriginateCommand_base: {
|
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import { WmsApiClient, OriginateCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
35
|
-
* // const { WmsApiClient, OriginateCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
34
|
+
* import { WmsApiClient, OriginateCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
35
|
+
* // const { WmsApiClient, OriginateCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
36
36
|
* const client = new WmsApiClient(config);
|
|
37
37
|
* const input = { // OriginateInput
|
|
38
38
|
* channel: "STRING_VALUE", // required
|
|
@@ -31,8 +31,8 @@ declare const UpdatePbxOAuth2ClientCommand_base: {
|
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
34
|
-
* import { WmsApiClient, UpdatePbxOAuth2ClientCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
35
|
-
* // const { WmsApiClient, UpdatePbxOAuth2ClientCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
34
|
+
* import { WmsApiClient, UpdatePbxOAuth2ClientCommand } from "@wildix-internal/wms-api-client"; // ES Modules import
|
|
35
|
+
* // const { WmsApiClient, UpdatePbxOAuth2ClientCommand } = require("@wildix-internal/wms-api-client"); // CommonJS import
|
|
36
36
|
* const client = new WmsApiClient(config);
|
|
37
37
|
* const input = { // UpdatePbxOAuth2ClientInput
|
|
38
38
|
* id: "STRING_VALUE", // required
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from "./CreatePbxOAuth2ClientCommand";
|
|
2
2
|
export * from "./DeletePbxOAuth2ClientCommand";
|
|
3
|
+
export * from "./GetColleagueByIdCommand";
|
|
3
4
|
export * from "./GetPbxAclGroupsPermissionsCommand";
|
|
4
5
|
export * from "./GetPbxCallGroupsCommand";
|
|
5
6
|
export * from "./GetPbxColleaguesCommand";
|
|
6
7
|
export * from "./GetPbxesCommand";
|
|
7
8
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
9
|
+
export * from "./GetPersonalInfoCommand";
|
|
8
10
|
export * from "./NotificationsCommand";
|
|
9
11
|
export * from "./OriginateCommand";
|
|
10
12
|
export * from "./OriginateCallCommand";
|
|
@@ -166,6 +166,60 @@ export declare class WmsNotFoundException extends __BaseException {
|
|
|
166
166
|
*/
|
|
167
167
|
constructor(opts: __ExceptionOptionType<WmsNotFoundException, __BaseException>);
|
|
168
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
export interface GetColleagueByIdInput {
|
|
173
|
+
id: number;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
* @enum
|
|
178
|
+
*/
|
|
179
|
+
export declare const PbxColleagueRole: {
|
|
180
|
+
readonly ADMIN: "admin";
|
|
181
|
+
readonly FAX: "fax";
|
|
182
|
+
readonly PARK_ORBIT: "park_orbit";
|
|
183
|
+
readonly ROOM: "room";
|
|
184
|
+
readonly USER: "user";
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
|
|
190
|
+
/**
|
|
191
|
+
* @public
|
|
192
|
+
*/
|
|
193
|
+
export interface PbxColleague {
|
|
194
|
+
id: string;
|
|
195
|
+
name?: string;
|
|
196
|
+
login?: string;
|
|
197
|
+
extension: string;
|
|
198
|
+
officePhone?: string;
|
|
199
|
+
mobilePhone?: string;
|
|
200
|
+
faxNumber?: string;
|
|
201
|
+
email?: string;
|
|
202
|
+
pbxDn: string;
|
|
203
|
+
pbx: string;
|
|
204
|
+
role: PbxColleagueRole;
|
|
205
|
+
groupName: string;
|
|
206
|
+
groupDn: string;
|
|
207
|
+
language: string;
|
|
208
|
+
dialplan: string;
|
|
209
|
+
faxDialplan: string;
|
|
210
|
+
department?: string;
|
|
211
|
+
picture: string;
|
|
212
|
+
sourceId?: string;
|
|
213
|
+
licenseType: PbxLicenseType;
|
|
214
|
+
jid: string;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
export interface GetColleagueByIdOutput {
|
|
220
|
+
type: ResponseType;
|
|
221
|
+
result: PbxColleague;
|
|
222
|
+
}
|
|
169
223
|
/**
|
|
170
224
|
* @public
|
|
171
225
|
*/
|
|
@@ -329,47 +383,6 @@ export interface GetPbxColleaguesInput {
|
|
|
329
383
|
dir?: GetPbxColleaguesDir;
|
|
330
384
|
searchStrategy?: PbxColleaguesSearchStrategy;
|
|
331
385
|
}
|
|
332
|
-
/**
|
|
333
|
-
* @public
|
|
334
|
-
* @enum
|
|
335
|
-
*/
|
|
336
|
-
export declare const PbxColleagueRole: {
|
|
337
|
-
readonly ADMIN: "admin";
|
|
338
|
-
readonly FAX: "fax";
|
|
339
|
-
readonly PARK_ORBIT: "park_orbit";
|
|
340
|
-
readonly ROOM: "room";
|
|
341
|
-
readonly USER: "user";
|
|
342
|
-
};
|
|
343
|
-
/**
|
|
344
|
-
* @public
|
|
345
|
-
*/
|
|
346
|
-
export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
|
|
347
|
-
/**
|
|
348
|
-
* @public
|
|
349
|
-
*/
|
|
350
|
-
export interface PbxColleague {
|
|
351
|
-
id: string;
|
|
352
|
-
name?: string;
|
|
353
|
-
login?: string;
|
|
354
|
-
extension: string;
|
|
355
|
-
officePhone?: string;
|
|
356
|
-
mobilePhone?: string;
|
|
357
|
-
faxNumber?: string;
|
|
358
|
-
email?: string;
|
|
359
|
-
pbxDn: string;
|
|
360
|
-
pbx: string;
|
|
361
|
-
role: PbxColleagueRole;
|
|
362
|
-
groupName: string;
|
|
363
|
-
groupDn: string;
|
|
364
|
-
language: string;
|
|
365
|
-
dialplan: string;
|
|
366
|
-
faxDialplan: string;
|
|
367
|
-
department?: string;
|
|
368
|
-
picture: string;
|
|
369
|
-
sourceId?: string;
|
|
370
|
-
licenseType: PbxLicenseType;
|
|
371
|
-
jid: string;
|
|
372
|
-
}
|
|
373
386
|
/**
|
|
374
387
|
* @public
|
|
375
388
|
*/
|
|
@@ -434,6 +447,40 @@ export interface GetPbxOAuth2ClientsOutput {
|
|
|
434
447
|
type: ResponseType;
|
|
435
448
|
result: GetPbxOAuth2ClientsResult;
|
|
436
449
|
}
|
|
450
|
+
/**
|
|
451
|
+
* @public
|
|
452
|
+
*/
|
|
453
|
+
export interface GetPersonalInfoInput {
|
|
454
|
+
extension?: (string)[];
|
|
455
|
+
id?: (string)[];
|
|
456
|
+
officePhone?: (string)[];
|
|
457
|
+
mobilePhone?: (string)[];
|
|
458
|
+
name?: (string)[];
|
|
459
|
+
email?: (string)[];
|
|
460
|
+
role?: (string)[];
|
|
461
|
+
dialplan?: (string)[];
|
|
462
|
+
faxDialplan?: (string)[];
|
|
463
|
+
department?: (string)[];
|
|
464
|
+
login?: (string)[];
|
|
465
|
+
groupDn?: (string)[];
|
|
466
|
+
pbxDn?: (string)[];
|
|
467
|
+
licenseType?: (PbxLicenseType)[];
|
|
468
|
+
fields?: (PbxColleaguesQueryField)[];
|
|
469
|
+
searchFields?: (PbxColleaguesQueryField)[];
|
|
470
|
+
search?: string;
|
|
471
|
+
sort?: (PbxColleaguesQueryField)[];
|
|
472
|
+
start?: number;
|
|
473
|
+
count?: number;
|
|
474
|
+
dir?: GetPbxColleaguesDir;
|
|
475
|
+
searchStrategy?: PbxColleaguesSearchStrategy;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* @public
|
|
479
|
+
*/
|
|
480
|
+
export interface GetPersonalInfoOutput {
|
|
481
|
+
type: ResponseType;
|
|
482
|
+
result: PbxColleague;
|
|
483
|
+
}
|
|
437
484
|
/**
|
|
438
485
|
* @public
|
|
439
486
|
*/
|
|
@@ -498,7 +545,7 @@ export interface NotificationsInput {
|
|
|
498
545
|
* @public
|
|
499
546
|
*/
|
|
500
547
|
export interface NotificationsOutputResult {
|
|
501
|
-
|
|
548
|
+
requestId: string;
|
|
502
549
|
}
|
|
503
550
|
/**
|
|
504
551
|
* @public
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "../commands/CreatePbxOAuth2ClientCommand";
|
|
2
2
|
import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "../commands/DeletePbxOAuth2ClientCommand";
|
|
3
|
+
import { GetColleagueByIdCommandInput, GetColleagueByIdCommandOutput } from "../commands/GetColleagueByIdCommand";
|
|
3
4
|
import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "../commands/GetPbxAclGroupsPermissionsCommand";
|
|
4
5
|
import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "../commands/GetPbxCallGroupsCommand";
|
|
5
6
|
import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "../commands/GetPbxColleaguesCommand";
|
|
6
7
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "../commands/GetPbxOAuth2ClientsCommand";
|
|
7
8
|
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "../commands/GetPbxesCommand";
|
|
9
|
+
import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "../commands/GetPersonalInfoCommand";
|
|
8
10
|
import { NotificationsCommandInput, NotificationsCommandOutput } from "../commands/NotificationsCommand";
|
|
9
11
|
import { OriginateCallCommandInput, OriginateCallCommandOutput } from "../commands/OriginateCallCommand";
|
|
10
12
|
import { OriginateCommandInput, OriginateCommandOutput } from "../commands/OriginateCommand";
|
|
@@ -19,6 +21,10 @@ export declare const se_CreatePbxOAuth2ClientCommand: (input: CreatePbxOAuth2Cli
|
|
|
19
21
|
* serializeAws_restJson1DeletePbxOAuth2ClientCommand
|
|
20
22
|
*/
|
|
21
23
|
export declare const se_DeletePbxOAuth2ClientCommand: (input: DeletePbxOAuth2ClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
|
+
/**
|
|
25
|
+
* serializeAws_restJson1GetColleagueByIdCommand
|
|
26
|
+
*/
|
|
27
|
+
export declare const se_GetColleagueByIdCommand: (input: GetColleagueByIdCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
22
28
|
/**
|
|
23
29
|
* serializeAws_restJson1GetPbxAclGroupsPermissionsCommand
|
|
24
30
|
*/
|
|
@@ -39,6 +45,10 @@ export declare const se_GetPbxesCommand: (input: GetPbxesCommandInput, context:
|
|
|
39
45
|
* serializeAws_restJson1GetPbxOAuth2ClientsCommand
|
|
40
46
|
*/
|
|
41
47
|
export declare const se_GetPbxOAuth2ClientsCommand: (input: GetPbxOAuth2ClientsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
48
|
+
/**
|
|
49
|
+
* serializeAws_restJson1GetPersonalInfoCommand
|
|
50
|
+
*/
|
|
51
|
+
export declare const se_GetPersonalInfoCommand: (input: GetPersonalInfoCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
42
52
|
/**
|
|
43
53
|
* serializeAws_restJson1NotificationsCommand
|
|
44
54
|
*/
|
|
@@ -63,6 +73,10 @@ export declare const de_CreatePbxOAuth2ClientCommand: (output: __HttpResponse, c
|
|
|
63
73
|
* deserializeAws_restJson1DeletePbxOAuth2ClientCommand
|
|
64
74
|
*/
|
|
65
75
|
export declare const de_DeletePbxOAuth2ClientCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePbxOAuth2ClientCommandOutput>;
|
|
76
|
+
/**
|
|
77
|
+
* deserializeAws_restJson1GetColleagueByIdCommand
|
|
78
|
+
*/
|
|
79
|
+
export declare const de_GetColleagueByIdCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetColleagueByIdCommandOutput>;
|
|
66
80
|
/**
|
|
67
81
|
* deserializeAws_restJson1GetPbxAclGroupsPermissionsCommand
|
|
68
82
|
*/
|
|
@@ -83,6 +97,10 @@ export declare const de_GetPbxesCommand: (output: __HttpResponse, context: __Ser
|
|
|
83
97
|
* deserializeAws_restJson1GetPbxOAuth2ClientsCommand
|
|
84
98
|
*/
|
|
85
99
|
export declare const de_GetPbxOAuth2ClientsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxOAuth2ClientsCommandOutput>;
|
|
100
|
+
/**
|
|
101
|
+
* deserializeAws_restJson1GetPersonalInfoCommand
|
|
102
|
+
*/
|
|
103
|
+
export declare const de_GetPersonalInfoCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPersonalInfoCommandOutput>;
|
|
86
104
|
/**
|
|
87
105
|
* deserializeAws_restJson1NotificationsCommand
|
|
88
106
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wms-api-client",
|
|
3
3
|
"description": "@wildix/wms-api-client client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.12",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|