@wildix/wms-api-client 1.1.31 → 1.1.33
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/ListPbxDepartmentsCommand.js +21 -0
- package/dist-cjs/commands/ListPbxGroupsCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +75 -3
- package/dist-es/WmsApi.js +4 -0
- package/dist-es/commands/ListPbxDepartmentsCommand.js +17 -0
- package/dist-es/commands/ListPbxGroupsCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +69 -1
- package/dist-types/WmsApi.d.ts +16 -0
- package/dist-types/WmsApiClient.d.ts +4 -2
- package/dist-types/commands/ListPbxDepartmentsCommand.d.ts +95 -0
- package/dist-types/commands/ListPbxGroupsCommand.d.ts +82 -0
- package/dist-types/commands/NotificationsCommand.d.ts +0 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +60 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/package.json +1 -1
package/dist-cjs/WmsApi.js
CHANGED
|
@@ -24,6 +24,8 @@ const GetPbxColleaguesCommand_1 = require("./commands/GetPbxColleaguesCommand");
|
|
|
24
24
|
const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsCommand");
|
|
25
25
|
const GetPbxesCommand_1 = require("./commands/GetPbxesCommand");
|
|
26
26
|
const GetPersonalInfoCommand_1 = require("./commands/GetPersonalInfoCommand");
|
|
27
|
+
const ListPbxDepartmentsCommand_1 = require("./commands/ListPbxDepartmentsCommand");
|
|
28
|
+
const ListPbxGroupsCommand_1 = require("./commands/ListPbxGroupsCommand");
|
|
27
29
|
const ListUserActiveCallsCommand_1 = require("./commands/ListUserActiveCallsCommand");
|
|
28
30
|
const ListUserDevicesCommand_1 = require("./commands/ListUserDevicesCommand");
|
|
29
31
|
const NotificationsCommand_1 = require("./commands/NotificationsCommand");
|
|
@@ -55,6 +57,8 @@ const commands = {
|
|
|
55
57
|
GetPbxesCommand: GetPbxesCommand_1.GetPbxesCommand,
|
|
56
58
|
GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
|
|
57
59
|
GetPersonalInfoCommand: GetPersonalInfoCommand_1.GetPersonalInfoCommand,
|
|
60
|
+
ListPbxDepartmentsCommand: ListPbxDepartmentsCommand_1.ListPbxDepartmentsCommand,
|
|
61
|
+
ListPbxGroupsCommand: ListPbxGroupsCommand_1.ListPbxGroupsCommand,
|
|
58
62
|
ListUserActiveCallsCommand: ListUserActiveCallsCommand_1.ListUserActiveCallsCommand,
|
|
59
63
|
ListUserDevicesCommand: ListUserDevicesCommand_1.ListUserDevicesCommand,
|
|
60
64
|
NotificationsCommand: NotificationsCommand_1.NotificationsCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListPbxDepartmentsCommand = 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 ListPbxDepartmentsCommand 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", "ListPbxDepartments", {})
|
|
15
|
+
.n("WmsApiClient", "ListPbxDepartmentsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListPbxDepartmentsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListPbxDepartmentsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListPbxDepartmentsCommand = ListPbxDepartmentsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListPbxGroupsCommand = 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 ListPbxGroupsCommand 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", "ListPbxGroups", {})
|
|
15
|
+
.n("WmsApiClient", "ListPbxGroupsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListPbxGroupsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListPbxGroupsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListPbxGroupsCommand = ListPbxGroupsCommand;
|
|
@@ -23,6 +23,8 @@ tslib_1.__exportStar(require("./GetPbxColleaguesCommand"), exports);
|
|
|
23
23
|
tslib_1.__exportStar(require("./GetPbxesCommand"), exports);
|
|
24
24
|
tslib_1.__exportStar(require("./GetPbxOAuth2ClientsCommand"), exports);
|
|
25
25
|
tslib_1.__exportStar(require("./GetPersonalInfoCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./ListPbxDepartmentsCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ListPbxGroupsCommand"), exports);
|
|
26
28
|
tslib_1.__exportStar(require("./ListUserActiveCallsCommand"), exports);
|
|
27
29
|
tslib_1.__exportStar(require("./ListUserDevicesCommand"), exports);
|
|
28
30
|
tslib_1.__exportStar(require("./NotificationsCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdatePbxOAuth2ClientCommand = exports.de_ReloadBroadcastsCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = exports.de_NotificationsCommand = exports.de_ListUserDevicesCommand = exports.de_ListUserActiveCallsCommand = exports.de_GetPersonalInfoCommand = void 0;
|
|
3
|
+
exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_GetColleagueByIdCommand = exports.de_GetCallQueuesSettingsCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.de_DeletePbxColleagueCommand = exports.de_DeletePbxAclGroupCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.de_CreatePbxColleagueCommand = exports.de_CreatePbxAclGroupCommand = exports.de_CallControlUpdateContactInfoCommand = exports.de_CallControlUnholdCommand = exports.de_CallControlMakeCallCommand = exports.de_CallControlHoldCommand = exports.de_CallControlHangupCommand = exports.de_CallControlBlindTransferCommand = exports.de_CallControlAttendantTransferCommand = exports.de_CallControlAnswerCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_ReloadBroadcastsCommand = exports.se_OriginateCallCommand = exports.se_OriginateCommand = exports.se_NotificationsCommand = exports.se_ListUserDevicesCommand = exports.se_ListUserActiveCallsCommand = exports.se_ListPbxGroupsCommand = exports.se_ListPbxDepartmentsCommand = exports.se_GetPersonalInfoCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxesCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_GetColleagueByIdCommand = exports.se_GetCallQueuesSettingsCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_DeletePbxColleagueCommand = exports.se_DeletePbxAclGroupCommand = exports.se_CreatePbxOAuth2ClientCommand = exports.se_CreatePbxColleagueCommand = exports.se_CreatePbxAclGroupCommand = exports.se_CallControlUpdateContactInfoCommand = exports.se_CallControlUnholdCommand = exports.se_CallControlMakeCallCommand = exports.se_CallControlHoldCommand = exports.se_CallControlHangupCommand = exports.se_CallControlBlindTransferCommand = exports.se_CallControlAttendantTransferCommand = exports.se_CallControlAnswerCommand = void 0;
|
|
4
|
+
exports.de_UpdatePbxOAuth2ClientCommand = exports.de_ReloadBroadcastsCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = exports.de_NotificationsCommand = exports.de_ListUserDevicesCommand = exports.de_ListUserActiveCallsCommand = exports.de_ListPbxGroupsCommand = exports.de_ListPbxDepartmentsCommand = exports.de_GetPersonalInfoCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = void 0;
|
|
5
5
|
const WmsApiServiceException_1 = require("../models/WmsApiServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -423,6 +423,28 @@ const se_GetPersonalInfoCommand = async (input, context) => {
|
|
|
423
423
|
return b.build();
|
|
424
424
|
};
|
|
425
425
|
exports.se_GetPersonalInfoCommand = se_GetPersonalInfoCommand;
|
|
426
|
+
const se_ListPbxDepartmentsCommand = async (input, context) => {
|
|
427
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
428
|
+
const headers = {};
|
|
429
|
+
b.bp("/api/v1/Departments");
|
|
430
|
+
let body;
|
|
431
|
+
b.m("GET")
|
|
432
|
+
.h(headers)
|
|
433
|
+
.b(body);
|
|
434
|
+
return b.build();
|
|
435
|
+
};
|
|
436
|
+
exports.se_ListPbxDepartmentsCommand = se_ListPbxDepartmentsCommand;
|
|
437
|
+
const se_ListPbxGroupsCommand = async (input, context) => {
|
|
438
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
439
|
+
const headers = {};
|
|
440
|
+
b.bp("/api/v1/Groups");
|
|
441
|
+
let body;
|
|
442
|
+
b.m("GET")
|
|
443
|
+
.h(headers)
|
|
444
|
+
.b(body);
|
|
445
|
+
return b.build();
|
|
446
|
+
};
|
|
447
|
+
exports.se_ListPbxGroupsCommand = se_ListPbxGroupsCommand;
|
|
426
448
|
const se_ListUserActiveCallsCommand = async (input, context) => {
|
|
427
449
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
428
450
|
const headers = {};
|
|
@@ -472,7 +494,6 @@ const se_NotificationsCommand = async (input, context) => {
|
|
|
472
494
|
'playFrequency': [],
|
|
473
495
|
'priority': [],
|
|
474
496
|
'queueTimeout': [],
|
|
475
|
-
'skipTranscribe': [],
|
|
476
497
|
}));
|
|
477
498
|
b.m("POST")
|
|
478
499
|
.h(headers)
|
|
@@ -898,6 +919,38 @@ const de_GetPersonalInfoCommand = async (output, context) => {
|
|
|
898
919
|
return contents;
|
|
899
920
|
};
|
|
900
921
|
exports.de_GetPersonalInfoCommand = de_GetPersonalInfoCommand;
|
|
922
|
+
const de_ListPbxDepartmentsCommand = async (output, context) => {
|
|
923
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
924
|
+
return de_CommandError(output, context);
|
|
925
|
+
}
|
|
926
|
+
const contents = (0, smithy_client_1.map)({
|
|
927
|
+
$metadata: deserializeMetadata(output),
|
|
928
|
+
});
|
|
929
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
930
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
931
|
+
'result': _ => de_ListPbxDepartmentsResult(_, context),
|
|
932
|
+
'type': smithy_client_1.expectString,
|
|
933
|
+
});
|
|
934
|
+
Object.assign(contents, doc);
|
|
935
|
+
return contents;
|
|
936
|
+
};
|
|
937
|
+
exports.de_ListPbxDepartmentsCommand = de_ListPbxDepartmentsCommand;
|
|
938
|
+
const de_ListPbxGroupsCommand = async (output, context) => {
|
|
939
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
940
|
+
return de_CommandError(output, context);
|
|
941
|
+
}
|
|
942
|
+
const contents = (0, smithy_client_1.map)({
|
|
943
|
+
$metadata: deserializeMetadata(output),
|
|
944
|
+
});
|
|
945
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
946
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
947
|
+
'result': smithy_client_1._json,
|
|
948
|
+
'type': smithy_client_1.expectString,
|
|
949
|
+
});
|
|
950
|
+
Object.assign(contents, doc);
|
|
951
|
+
return contents;
|
|
952
|
+
};
|
|
953
|
+
exports.de_ListPbxGroupsCommand = de_ListPbxGroupsCommand;
|
|
901
954
|
const de_ListUserActiveCallsCommand = async (output, context) => {
|
|
902
955
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
956
|
return de_CommandError(output, context);
|
|
@@ -1112,6 +1165,25 @@ const de_WmsValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1112
1165
|
});
|
|
1113
1166
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1114
1167
|
};
|
|
1168
|
+
const de_ListPbxDepartmentsResult = (output, context) => {
|
|
1169
|
+
return (0, smithy_client_1.take)(output, {
|
|
1170
|
+
'records': (_) => de_PbxDepartmentsList(_, context),
|
|
1171
|
+
});
|
|
1172
|
+
};
|
|
1173
|
+
const de_PbxDepartment = (output, context) => {
|
|
1174
|
+
return (0, smithy_client_1.take)(output, {
|
|
1175
|
+
'id': smithy_client_1.expectString,
|
|
1176
|
+
'items': (_) => de_PbxDepartmentsList(_, context),
|
|
1177
|
+
'name': smithy_client_1.expectString,
|
|
1178
|
+
'users': smithy_client_1._json,
|
|
1179
|
+
});
|
|
1180
|
+
};
|
|
1181
|
+
const de_PbxDepartmentsList = (output, context) => {
|
|
1182
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1183
|
+
return de_PbxDepartment(entry, context);
|
|
1184
|
+
});
|
|
1185
|
+
return retVal;
|
|
1186
|
+
};
|
|
1115
1187
|
const deserializeMetadata = (output) => ({
|
|
1116
1188
|
httpStatusCode: output.statusCode,
|
|
1117
1189
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/WmsApi.js
CHANGED
|
@@ -21,6 +21,8 @@ import { GetPbxColleaguesCommand, } from "./commands/GetPbxColleaguesCommand";
|
|
|
21
21
|
import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
22
22
|
import { GetPbxesCommand, } from "./commands/GetPbxesCommand";
|
|
23
23
|
import { GetPersonalInfoCommand, } from "./commands/GetPersonalInfoCommand";
|
|
24
|
+
import { ListPbxDepartmentsCommand, } from "./commands/ListPbxDepartmentsCommand";
|
|
25
|
+
import { ListPbxGroupsCommand, } from "./commands/ListPbxGroupsCommand";
|
|
24
26
|
import { ListUserActiveCallsCommand, } from "./commands/ListUserActiveCallsCommand";
|
|
25
27
|
import { ListUserDevicesCommand, } from "./commands/ListUserDevicesCommand";
|
|
26
28
|
import { NotificationsCommand, } from "./commands/NotificationsCommand";
|
|
@@ -52,6 +54,8 @@ const commands = {
|
|
|
52
54
|
GetPbxesCommand,
|
|
53
55
|
GetPbxOAuth2ClientsCommand,
|
|
54
56
|
GetPersonalInfoCommand,
|
|
57
|
+
ListPbxDepartmentsCommand,
|
|
58
|
+
ListPbxGroupsCommand,
|
|
55
59
|
ListUserActiveCallsCommand,
|
|
56
60
|
ListUserDevicesCommand,
|
|
57
61
|
NotificationsCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListPbxDepartmentsCommand, se_ListPbxDepartmentsCommand, } 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 ListPbxDepartmentsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "ListPbxDepartments", {})
|
|
12
|
+
.n("WmsApiClient", "ListPbxDepartmentsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListPbxDepartmentsCommand)
|
|
15
|
+
.de(de_ListPbxDepartmentsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListPbxGroupsCommand, se_ListPbxGroupsCommand, } 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 ListPbxGroupsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WmsApi", "ListPbxGroups", {})
|
|
12
|
+
.n("WmsApiClient", "ListPbxGroupsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListPbxGroupsCommand)
|
|
15
|
+
.de(de_ListPbxGroupsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -20,6 +20,8 @@ export * from "./GetPbxColleaguesCommand";
|
|
|
20
20
|
export * from "./GetPbxesCommand";
|
|
21
21
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
22
22
|
export * from "./GetPersonalInfoCommand";
|
|
23
|
+
export * from "./ListPbxDepartmentsCommand";
|
|
24
|
+
export * from "./ListPbxGroupsCommand";
|
|
23
25
|
export * from "./ListUserActiveCallsCommand";
|
|
24
26
|
export * from "./ListUserDevicesCommand";
|
|
25
27
|
export * from "./NotificationsCommand";
|
|
@@ -397,6 +397,26 @@ export const se_GetPersonalInfoCommand = async (input, context) => {
|
|
|
397
397
|
.b(body);
|
|
398
398
|
return b.build();
|
|
399
399
|
};
|
|
400
|
+
export const se_ListPbxDepartmentsCommand = async (input, context) => {
|
|
401
|
+
const b = rb(input, context);
|
|
402
|
+
const headers = {};
|
|
403
|
+
b.bp("/api/v1/Departments");
|
|
404
|
+
let body;
|
|
405
|
+
b.m("GET")
|
|
406
|
+
.h(headers)
|
|
407
|
+
.b(body);
|
|
408
|
+
return b.build();
|
|
409
|
+
};
|
|
410
|
+
export const se_ListPbxGroupsCommand = async (input, context) => {
|
|
411
|
+
const b = rb(input, context);
|
|
412
|
+
const headers = {};
|
|
413
|
+
b.bp("/api/v1/Groups");
|
|
414
|
+
let body;
|
|
415
|
+
b.m("GET")
|
|
416
|
+
.h(headers)
|
|
417
|
+
.b(body);
|
|
418
|
+
return b.build();
|
|
419
|
+
};
|
|
400
420
|
export const se_ListUserActiveCallsCommand = async (input, context) => {
|
|
401
421
|
const b = rb(input, context);
|
|
402
422
|
const headers = {};
|
|
@@ -444,7 +464,6 @@ export const se_NotificationsCommand = async (input, context) => {
|
|
|
444
464
|
'playFrequency': [],
|
|
445
465
|
'priority': [],
|
|
446
466
|
'queueTimeout': [],
|
|
447
|
-
'skipTranscribe': [],
|
|
448
467
|
}));
|
|
449
468
|
b.m("POST")
|
|
450
469
|
.h(headers)
|
|
@@ -843,6 +862,36 @@ export const de_GetPersonalInfoCommand = async (output, context) => {
|
|
|
843
862
|
Object.assign(contents, doc);
|
|
844
863
|
return contents;
|
|
845
864
|
};
|
|
865
|
+
export const de_ListPbxDepartmentsCommand = async (output, context) => {
|
|
866
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
867
|
+
return de_CommandError(output, context);
|
|
868
|
+
}
|
|
869
|
+
const contents = map({
|
|
870
|
+
$metadata: deserializeMetadata(output),
|
|
871
|
+
});
|
|
872
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
873
|
+
const doc = take(data, {
|
|
874
|
+
'result': _ => de_ListPbxDepartmentsResult(_, context),
|
|
875
|
+
'type': __expectString,
|
|
876
|
+
});
|
|
877
|
+
Object.assign(contents, doc);
|
|
878
|
+
return contents;
|
|
879
|
+
};
|
|
880
|
+
export const de_ListPbxGroupsCommand = async (output, context) => {
|
|
881
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
882
|
+
return de_CommandError(output, context);
|
|
883
|
+
}
|
|
884
|
+
const contents = map({
|
|
885
|
+
$metadata: deserializeMetadata(output),
|
|
886
|
+
});
|
|
887
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
888
|
+
const doc = take(data, {
|
|
889
|
+
'result': _json,
|
|
890
|
+
'type': __expectString,
|
|
891
|
+
});
|
|
892
|
+
Object.assign(contents, doc);
|
|
893
|
+
return contents;
|
|
894
|
+
};
|
|
846
895
|
export const de_ListUserActiveCallsCommand = async (output, context) => {
|
|
847
896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
848
897
|
return de_CommandError(output, context);
|
|
@@ -1050,6 +1099,25 @@ const de_WmsValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1050
1099
|
});
|
|
1051
1100
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1052
1101
|
};
|
|
1102
|
+
const de_ListPbxDepartmentsResult = (output, context) => {
|
|
1103
|
+
return take(output, {
|
|
1104
|
+
'records': (_) => de_PbxDepartmentsList(_, context),
|
|
1105
|
+
});
|
|
1106
|
+
};
|
|
1107
|
+
const de_PbxDepartment = (output, context) => {
|
|
1108
|
+
return take(output, {
|
|
1109
|
+
'id': __expectString,
|
|
1110
|
+
'items': (_) => de_PbxDepartmentsList(_, context),
|
|
1111
|
+
'name': __expectString,
|
|
1112
|
+
'users': _json,
|
|
1113
|
+
});
|
|
1114
|
+
};
|
|
1115
|
+
const de_PbxDepartmentsList = (output, context) => {
|
|
1116
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1117
|
+
return de_PbxDepartment(entry, context);
|
|
1118
|
+
});
|
|
1119
|
+
return retVal;
|
|
1120
|
+
};
|
|
1053
1121
|
const deserializeMetadata = (output) => ({
|
|
1054
1122
|
httpStatusCode: output.statusCode,
|
|
1055
1123
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-types/WmsApi.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./c
|
|
|
21
21
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
22
22
|
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
|
|
23
23
|
import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "./commands/GetPersonalInfoCommand";
|
|
24
|
+
import { ListPbxDepartmentsCommandInput, ListPbxDepartmentsCommandOutput } from "./commands/ListPbxDepartmentsCommand";
|
|
25
|
+
import { ListPbxGroupsCommandInput, ListPbxGroupsCommandOutput } from "./commands/ListPbxGroupsCommand";
|
|
24
26
|
import { ListUserActiveCallsCommandInput, ListUserActiveCallsCommandOutput } from "./commands/ListUserActiveCallsCommand";
|
|
25
27
|
import { ListUserDevicesCommandInput, ListUserDevicesCommandOutput } from "./commands/ListUserDevicesCommand";
|
|
26
28
|
import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
|
|
@@ -168,6 +170,20 @@ export interface WmsApi {
|
|
|
168
170
|
getPersonalInfo(args: GetPersonalInfoCommandInput, options?: __HttpHandlerOptions): Promise<GetPersonalInfoCommandOutput>;
|
|
169
171
|
getPersonalInfo(args: GetPersonalInfoCommandInput, cb: (err: any, data?: GetPersonalInfoCommandOutput) => void): void;
|
|
170
172
|
getPersonalInfo(args: GetPersonalInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPersonalInfoCommandOutput) => void): void;
|
|
173
|
+
/**
|
|
174
|
+
* @see {@link ListPbxDepartmentsCommand}
|
|
175
|
+
*/
|
|
176
|
+
listPbxDepartments(): Promise<ListPbxDepartmentsCommandOutput>;
|
|
177
|
+
listPbxDepartments(args: ListPbxDepartmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListPbxDepartmentsCommandOutput>;
|
|
178
|
+
listPbxDepartments(args: ListPbxDepartmentsCommandInput, cb: (err: any, data?: ListPbxDepartmentsCommandOutput) => void): void;
|
|
179
|
+
listPbxDepartments(args: ListPbxDepartmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPbxDepartmentsCommandOutput) => void): void;
|
|
180
|
+
/**
|
|
181
|
+
* @see {@link ListPbxGroupsCommand}
|
|
182
|
+
*/
|
|
183
|
+
listPbxGroups(): Promise<ListPbxGroupsCommandOutput>;
|
|
184
|
+
listPbxGroups(args: ListPbxGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListPbxGroupsCommandOutput>;
|
|
185
|
+
listPbxGroups(args: ListPbxGroupsCommandInput, cb: (err: any, data?: ListPbxGroupsCommandOutput) => void): void;
|
|
186
|
+
listPbxGroups(args: ListPbxGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPbxGroupsCommandOutput) => void): void;
|
|
171
187
|
/**
|
|
172
188
|
* @see {@link ListUserActiveCallsCommand}
|
|
173
189
|
*/
|
|
@@ -20,6 +20,8 @@ import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./c
|
|
|
20
20
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
|
|
21
21
|
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
|
|
22
22
|
import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "./commands/GetPersonalInfoCommand";
|
|
23
|
+
import { ListPbxDepartmentsCommandInput, ListPbxDepartmentsCommandOutput } from "./commands/ListPbxDepartmentsCommand";
|
|
24
|
+
import { ListPbxGroupsCommandInput, ListPbxGroupsCommandOutput } from "./commands/ListPbxGroupsCommand";
|
|
23
25
|
import { ListUserActiveCallsCommandInput, ListUserActiveCallsCommandOutput } from "./commands/ListUserActiveCallsCommand";
|
|
24
26
|
import { ListUserDevicesCommandInput, ListUserDevicesCommandOutput } from "./commands/ListUserDevicesCommand";
|
|
25
27
|
import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
|
|
@@ -38,11 +40,11 @@ export { __Client };
|
|
|
38
40
|
/**
|
|
39
41
|
* @public
|
|
40
42
|
*/
|
|
41
|
-
export type ServiceInputTypes = CallControlAnswerCommandInput | CallControlAttendantTransferCommandInput | CallControlBlindTransferCommandInput | CallControlHangupCommandInput | CallControlHoldCommandInput | CallControlMakeCallCommandInput | CallControlUnholdCommandInput | CallControlUpdateContactInfoCommandInput | CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetCallQueuesSettingsCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | ListUserActiveCallsCommandInput | ListUserDevicesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | ReloadBroadcastsCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
43
|
+
export type ServiceInputTypes = CallControlAnswerCommandInput | CallControlAttendantTransferCommandInput | CallControlBlindTransferCommandInput | CallControlHangupCommandInput | CallControlHoldCommandInput | CallControlMakeCallCommandInput | CallControlUnholdCommandInput | CallControlUpdateContactInfoCommandInput | CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetCallQueuesSettingsCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | ListPbxDepartmentsCommandInput | ListPbxGroupsCommandInput | ListUserActiveCallsCommandInput | ListUserDevicesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | ReloadBroadcastsCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
42
44
|
/**
|
|
43
45
|
* @public
|
|
44
46
|
*/
|
|
45
|
-
export type ServiceOutputTypes = CallControlAnswerCommandOutput | CallControlAttendantTransferCommandOutput | CallControlBlindTransferCommandOutput | CallControlHangupCommandOutput | CallControlHoldCommandOutput | CallControlMakeCallCommandOutput | CallControlUnholdCommandOutput | CallControlUpdateContactInfoCommandOutput | CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetCallQueuesSettingsCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | ListUserActiveCallsCommandOutput | ListUserDevicesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | ReloadBroadcastsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
47
|
+
export type ServiceOutputTypes = CallControlAnswerCommandOutput | CallControlAttendantTransferCommandOutput | CallControlBlindTransferCommandOutput | CallControlHangupCommandOutput | CallControlHoldCommandOutput | CallControlMakeCallCommandOutput | CallControlUnholdCommandOutput | CallControlUpdateContactInfoCommandOutput | CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetCallQueuesSettingsCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | ListPbxDepartmentsCommandOutput | ListPbxGroupsCommandOutput | ListUserActiveCallsCommandOutput | ListUserDevicesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | ReloadBroadcastsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
46
48
|
/**
|
|
47
49
|
* @public
|
|
48
50
|
*/
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
|
|
2
|
+
import { ListPbxDepartmentsInput, ListPbxDepartmentsOutput } 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 ListPbxDepartmentsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListPbxDepartmentsCommandInput extends ListPbxDepartmentsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListPbxDepartmentsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListPbxDepartmentsCommandOutput extends ListPbxDepartmentsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListPbxDepartmentsCommand_base: {
|
|
25
|
+
new (input: ListPbxDepartmentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPbxDepartmentsCommandInput, ListPbxDepartmentsCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListPbxDepartmentsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListPbxDepartmentsCommandInput, ListPbxDepartmentsCommandOutput, 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, ListPbxDepartmentsCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
36
|
+
* // const { WmsApiClient, ListPbxDepartmentsCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
37
|
+
* const client = new WmsApiClient(config);
|
|
38
|
+
* const input = {};
|
|
39
|
+
* const command = new ListPbxDepartmentsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // ListPbxDepartmentsOutput
|
|
42
|
+
* // type: "result" || "error", // required
|
|
43
|
+
* // result: { // ListPbxDepartmentsResult
|
|
44
|
+
* // records: [ // PbxDepartmentsList // required
|
|
45
|
+
* // { // PbxDepartment
|
|
46
|
+
* // id: "STRING_VALUE", // required
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // users: [ // PbxDepartmentUsers
|
|
49
|
+
* // "STRING_VALUE",
|
|
50
|
+
* // ],
|
|
51
|
+
* // items: [
|
|
52
|
+
* // {
|
|
53
|
+
* // id: "STRING_VALUE", // required
|
|
54
|
+
* // name: "STRING_VALUE", // required
|
|
55
|
+
* // users: [
|
|
56
|
+
* // "STRING_VALUE",
|
|
57
|
+
* // ],
|
|
58
|
+
* // items: "<PbxDepartmentsList>",
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // },
|
|
64
|
+
* // };
|
|
65
|
+
*
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @param ListPbxDepartmentsCommandInput - {@link ListPbxDepartmentsCommandInput}
|
|
69
|
+
* @returns {@link ListPbxDepartmentsCommandOutput}
|
|
70
|
+
* @see {@link ListPbxDepartmentsCommandInput} for command's `input` shape.
|
|
71
|
+
* @see {@link ListPbxDepartmentsCommandOutput} for command's `response` shape.
|
|
72
|
+
* @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link WmsForbiddenException} (client fault)
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link WmsApiServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
export declare class ListPbxDepartmentsCommand extends ListPbxDepartmentsCommand_base {
|
|
84
|
+
/** @internal type navigation helper, not in runtime. */
|
|
85
|
+
protected static __types: {
|
|
86
|
+
api: {
|
|
87
|
+
input: {};
|
|
88
|
+
output: ListPbxDepartmentsOutput;
|
|
89
|
+
};
|
|
90
|
+
sdk: {
|
|
91
|
+
input: ListPbxDepartmentsCommandInput;
|
|
92
|
+
output: ListPbxDepartmentsCommandOutput;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
|
|
2
|
+
import { ListPbxGroupsInput, ListPbxGroupsOutput } 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 ListPbxGroupsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListPbxGroupsCommandInput extends ListPbxGroupsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListPbxGroupsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListPbxGroupsCommandOutput extends ListPbxGroupsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListPbxGroupsCommand_base: {
|
|
25
|
+
new (input: ListPbxGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPbxGroupsCommandInput, ListPbxGroupsCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListPbxGroupsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListPbxGroupsCommandInput, ListPbxGroupsCommandOutput, 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, ListPbxGroupsCommand } from "@wildix/wms-api-client"; // ES Modules import
|
|
36
|
+
* // const { WmsApiClient, ListPbxGroupsCommand } = require("@wildix/wms-api-client"); // CommonJS import
|
|
37
|
+
* const client = new WmsApiClient(config);
|
|
38
|
+
* const input = {};
|
|
39
|
+
* const command = new ListPbxGroupsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // ListPbxGroupsOutput
|
|
42
|
+
* // type: "result" || "error", // required
|
|
43
|
+
* // result: [ // PbxGroupsList // required
|
|
44
|
+
* // { // PbxGroup
|
|
45
|
+
* // dn: "STRING_VALUE", // required
|
|
46
|
+
* // id: "STRING_VALUE", // required
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // wcgrp: "STRING_VALUE",
|
|
49
|
+
* // },
|
|
50
|
+
* // ],
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param ListPbxGroupsCommandInput - {@link ListPbxGroupsCommandInput}
|
|
56
|
+
* @returns {@link ListPbxGroupsCommandOutput}
|
|
57
|
+
* @see {@link ListPbxGroupsCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link ListPbxGroupsCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link WmsForbiddenException} (client fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link WmsApiServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
export declare class ListPbxGroupsCommand extends ListPbxGroupsCommand_base {
|
|
71
|
+
/** @internal type navigation helper, not in runtime. */
|
|
72
|
+
protected static __types: {
|
|
73
|
+
api: {
|
|
74
|
+
input: {};
|
|
75
|
+
output: ListPbxGroupsOutput;
|
|
76
|
+
};
|
|
77
|
+
sdk: {
|
|
78
|
+
input: ListPbxGroupsCommandInput;
|
|
79
|
+
output: ListPbxGroupsCommandOutput;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -46,7 +46,6 @@ declare const NotificationsCommand_base: {
|
|
|
46
46
|
* origin: "STRING_VALUE",
|
|
47
47
|
* priority: Number("int"),
|
|
48
48
|
* customRid: "STRING_VALUE",
|
|
49
|
-
* skipTranscribe: true || false,
|
|
50
49
|
* };
|
|
51
50
|
* const command = new NotificationsCommand(input);
|
|
52
51
|
* const response = await client.send(command);
|
|
@@ -20,6 +20,8 @@ export * from "./GetPbxColleaguesCommand";
|
|
|
20
20
|
export * from "./GetPbxesCommand";
|
|
21
21
|
export * from "./GetPbxOAuth2ClientsCommand";
|
|
22
22
|
export * from "./GetPersonalInfoCommand";
|
|
23
|
+
export * from "./ListPbxDepartmentsCommand";
|
|
24
|
+
export * from "./ListPbxGroupsCommand";
|
|
23
25
|
export * from "./ListUserActiveCallsCommand";
|
|
24
26
|
export * from "./ListUserDevicesCommand";
|
|
25
27
|
export * from "./NotificationsCommand";
|
|
@@ -896,6 +896,44 @@ export interface GetPersonalInfoOutput {
|
|
|
896
896
|
type: ResponseType;
|
|
897
897
|
result: PbxColleague;
|
|
898
898
|
}
|
|
899
|
+
/**
|
|
900
|
+
* @public
|
|
901
|
+
*/
|
|
902
|
+
export interface ListPbxDepartmentsInput {
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* @public
|
|
906
|
+
*/
|
|
907
|
+
export interface ListPbxGroupsInput {
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* @public
|
|
911
|
+
*/
|
|
912
|
+
export interface PbxGroup {
|
|
913
|
+
/**
|
|
914
|
+
* Example: gid=14082460,o=com0,dc=wildix
|
|
915
|
+
* @public
|
|
916
|
+
*/
|
|
917
|
+
dn: string;
|
|
918
|
+
/**
|
|
919
|
+
* Example: 14082460
|
|
920
|
+
* @public
|
|
921
|
+
*/
|
|
922
|
+
id: string;
|
|
923
|
+
/**
|
|
924
|
+
* Example: Admin
|
|
925
|
+
* @public
|
|
926
|
+
*/
|
|
927
|
+
name: string;
|
|
928
|
+
wcgrp?: string | undefined;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* @public
|
|
932
|
+
*/
|
|
933
|
+
export interface ListPbxGroupsOutput {
|
|
934
|
+
type: ResponseType;
|
|
935
|
+
result: (PbxGroup)[];
|
|
936
|
+
}
|
|
899
937
|
/**
|
|
900
938
|
* @public
|
|
901
939
|
*/
|
|
@@ -988,7 +1026,6 @@ export interface NotificationsInput {
|
|
|
988
1026
|
* @public
|
|
989
1027
|
*/
|
|
990
1028
|
customRid?: string | undefined;
|
|
991
|
-
skipTranscribe?: boolean | undefined;
|
|
992
1029
|
}
|
|
993
1030
|
/**
|
|
994
1031
|
* @public
|
|
@@ -1104,3 +1141,25 @@ export interface UpdatePbxOAuth2ClientOutput {
|
|
|
1104
1141
|
type: ResponseType;
|
|
1105
1142
|
result: PbxOAuth2Client;
|
|
1106
1143
|
}
|
|
1144
|
+
/**
|
|
1145
|
+
* @public
|
|
1146
|
+
*/
|
|
1147
|
+
export interface PbxDepartment {
|
|
1148
|
+
id: string;
|
|
1149
|
+
name: string;
|
|
1150
|
+
users?: (string)[] | undefined;
|
|
1151
|
+
items?: (PbxDepartment)[] | undefined;
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* @public
|
|
1155
|
+
*/
|
|
1156
|
+
export interface ListPbxDepartmentsResult {
|
|
1157
|
+
records: (PbxDepartment)[];
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* @public
|
|
1161
|
+
*/
|
|
1162
|
+
export interface ListPbxDepartmentsOutput {
|
|
1163
|
+
type: ResponseType;
|
|
1164
|
+
result: ListPbxDepartmentsResult;
|
|
1165
|
+
}
|
|
@@ -20,6 +20,8 @@ import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "../
|
|
|
20
20
|
import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "../commands/GetPbxOAuth2ClientsCommand";
|
|
21
21
|
import { GetPbxesCommandInput, GetPbxesCommandOutput } from "../commands/GetPbxesCommand";
|
|
22
22
|
import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "../commands/GetPersonalInfoCommand";
|
|
23
|
+
import { ListPbxDepartmentsCommandInput, ListPbxDepartmentsCommandOutput } from "../commands/ListPbxDepartmentsCommand";
|
|
24
|
+
import { ListPbxGroupsCommandInput, ListPbxGroupsCommandOutput } from "../commands/ListPbxGroupsCommand";
|
|
23
25
|
import { ListUserActiveCallsCommandInput, ListUserActiveCallsCommandOutput } from "../commands/ListUserActiveCallsCommand";
|
|
24
26
|
import { ListUserDevicesCommandInput, ListUserDevicesCommandOutput } from "../commands/ListUserDevicesCommand";
|
|
25
27
|
import { NotificationsCommandInput, NotificationsCommandOutput } from "../commands/NotificationsCommand";
|
|
@@ -117,6 +119,14 @@ export declare const se_GetPbxOAuth2ClientsCommand: (input: GetPbxOAuth2ClientsC
|
|
|
117
119
|
* serializeAws_restJson1GetPersonalInfoCommand
|
|
118
120
|
*/
|
|
119
121
|
export declare const se_GetPersonalInfoCommand: (input: GetPersonalInfoCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
122
|
+
/**
|
|
123
|
+
* serializeAws_restJson1ListPbxDepartmentsCommand
|
|
124
|
+
*/
|
|
125
|
+
export declare const se_ListPbxDepartmentsCommand: (input: ListPbxDepartmentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
126
|
+
/**
|
|
127
|
+
* serializeAws_restJson1ListPbxGroupsCommand
|
|
128
|
+
*/
|
|
129
|
+
export declare const se_ListPbxGroupsCommand: (input: ListPbxGroupsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
120
130
|
/**
|
|
121
131
|
* serializeAws_restJson1ListUserActiveCallsCommand
|
|
122
132
|
*/
|
|
@@ -233,6 +243,14 @@ export declare const de_GetPbxOAuth2ClientsCommand: (output: __HttpResponse, con
|
|
|
233
243
|
* deserializeAws_restJson1GetPersonalInfoCommand
|
|
234
244
|
*/
|
|
235
245
|
export declare const de_GetPersonalInfoCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPersonalInfoCommandOutput>;
|
|
246
|
+
/**
|
|
247
|
+
* deserializeAws_restJson1ListPbxDepartmentsCommand
|
|
248
|
+
*/
|
|
249
|
+
export declare const de_ListPbxDepartmentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPbxDepartmentsCommandOutput>;
|
|
250
|
+
/**
|
|
251
|
+
* deserializeAws_restJson1ListPbxGroupsCommand
|
|
252
|
+
*/
|
|
253
|
+
export declare const de_ListPbxGroupsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPbxGroupsCommandOutput>;
|
|
236
254
|
/**
|
|
237
255
|
* deserializeAws_restJson1ListUserActiveCallsCommand
|
|
238
256
|
*/
|
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.33",
|
|
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",
|