@wildix/wms-api-client 1.1.13 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/WmsApi.js +0 -8
- package/dist-cjs/commands/index.js +0 -4
- package/dist-cjs/models/models_0.js +8 -8
- package/dist-cjs/protocols/Aws_restJson1.js +2 -140
- package/dist-es/WmsApi.js +0 -8
- package/dist-es/commands/index.js +0 -4
- package/dist-es/models/models_0.js +7 -7
- package/dist-es/protocols/Aws_restJson1.js +1 -131
- package/dist-types/WmsApi.d.ts +0 -28
- package/dist-types/WmsApiClient.d.ts +2 -6
- package/dist-types/commands/NotificationsCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +0 -4
- package/dist-types/models/models_0.d.ts +61 -151
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -36
- package/dist-types/runtimeConfig.browser.d.ts +0 -1
- package/dist-types/runtimeConfig.d.ts +0 -1
- package/dist-types/runtimeConfig.native.d.ts +0 -1
- package/package.json +1 -1
- package/dist-cjs/commands/CreatePbxAclGroupCommand.js +0 -21
- package/dist-cjs/commands/CreatePbxColleagueCommand.js +0 -21
- package/dist-cjs/commands/DeletePbxAclGroupCommand.js +0 -21
- package/dist-cjs/commands/DeletePbxColleagueCommand.js +0 -21
- package/dist-es/commands/CreatePbxAclGroupCommand.js +0 -17
- package/dist-es/commands/CreatePbxColleagueCommand.js +0 -17
- package/dist-es/commands/DeletePbxAclGroupCommand.js +0 -17
- package/dist-es/commands/DeletePbxColleagueCommand.js +0 -17
- package/dist-types/commands/CreatePbxAclGroupCommand.d.ts +0 -86
- package/dist-types/commands/CreatePbxColleagueCommand.d.ts +0 -100
- package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +0 -63
- package/dist-types/commands/DeletePbxColleagueCommand.d.ts +0 -63
package/dist-cjs/WmsApi.js
CHANGED
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WmsApi = void 0;
|
|
4
4
|
const WmsApiClient_1 = require("./WmsApiClient");
|
|
5
|
-
const CreatePbxAclGroupCommand_1 = require("./commands/CreatePbxAclGroupCommand");
|
|
6
|
-
const CreatePbxColleagueCommand_1 = require("./commands/CreatePbxColleagueCommand");
|
|
7
5
|
const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
|
|
8
|
-
const DeletePbxAclGroupCommand_1 = require("./commands/DeletePbxAclGroupCommand");
|
|
9
|
-
const DeletePbxColleagueCommand_1 = require("./commands/DeletePbxColleagueCommand");
|
|
10
6
|
const DeletePbxOAuth2ClientCommand_1 = require("./commands/DeletePbxOAuth2ClientCommand");
|
|
11
7
|
const GetColleagueByIdCommand_1 = require("./commands/GetColleagueByIdCommand");
|
|
12
8
|
const GetPbxAclGroupsPermissionsCommand_1 = require("./commands/GetPbxAclGroupsPermissionsCommand");
|
|
@@ -21,11 +17,7 @@ const OriginateCommand_1 = require("./commands/OriginateCommand");
|
|
|
21
17
|
const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
|
|
22
18
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
23
19
|
const commands = {
|
|
24
|
-
CreatePbxAclGroupCommand: CreatePbxAclGroupCommand_1.CreatePbxAclGroupCommand,
|
|
25
|
-
CreatePbxColleagueCommand: CreatePbxColleagueCommand_1.CreatePbxColleagueCommand,
|
|
26
20
|
CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
|
|
27
|
-
DeletePbxAclGroupCommand: DeletePbxAclGroupCommand_1.DeletePbxAclGroupCommand,
|
|
28
|
-
DeletePbxColleagueCommand: DeletePbxColleagueCommand_1.DeletePbxColleagueCommand,
|
|
29
21
|
DeletePbxOAuth2ClientCommand: DeletePbxOAuth2ClientCommand_1.DeletePbxOAuth2ClientCommand,
|
|
30
22
|
GetColleagueByIdCommand: GetColleagueByIdCommand_1.GetColleagueByIdCommand,
|
|
31
23
|
GetPbxAclGroupsPermissionsCommand: GetPbxAclGroupsPermissionsCommand_1.GetPbxAclGroupsPermissionsCommand,
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./CreatePbxAclGroupCommand"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./CreatePbxColleagueCommand"), exports);
|
|
6
4
|
tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./DeletePbxAclGroupCommand"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./DeletePbxColleagueCommand"), exports);
|
|
9
5
|
tslib_1.__exportStar(require("./DeletePbxOAuth2ClientCommand"), exports);
|
|
10
6
|
tslib_1.__exportStar(require("./GetColleagueByIdCommand"), exports);
|
|
11
7
|
tslib_1.__exportStar(require("./GetPbxAclGroupsPermissionsCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResponseResult = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.
|
|
3
|
+
exports.ResponseResult = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.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",
|
|
@@ -34,13 +34,6 @@ class WmsUnauthorizedException extends WmsApiServiceException_1.WmsApiServiceExc
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.WmsUnauthorizedException = WmsUnauthorizedException;
|
|
37
|
-
exports.PbxColleagueRole = {
|
|
38
|
-
ADMIN: "admin",
|
|
39
|
-
FAX: "fax",
|
|
40
|
-
PARK_ORBIT: "park_orbit",
|
|
41
|
-
ROOM: "room",
|
|
42
|
-
USER: "user",
|
|
43
|
-
};
|
|
44
37
|
class WmsValidationException extends WmsApiServiceException_1.WmsApiServiceException {
|
|
45
38
|
constructor(opts) {
|
|
46
39
|
super({
|
|
@@ -72,6 +65,13 @@ class WmsNotFoundException extends WmsApiServiceException_1.WmsApiServiceExcepti
|
|
|
72
65
|
}
|
|
73
66
|
}
|
|
74
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
|
+
};
|
|
75
75
|
exports.GetPbxColleaguesDir = {
|
|
76
76
|
ASC: "asc",
|
|
77
77
|
DESC: "desc",
|
|
@@ -1,60 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdatePbxOAuth2ClientCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = exports.de_NotificationsCommand = exports.de_GetPersonalInfoCommand = exports.de_GetPbxOAuth2ClientsCommand = exports.de_GetPbxesCommand = exports.de_GetPbxColleaguesCommand = exports.de_GetPbxCallGroupsCommand = exports.de_GetPbxAclGroupsPermissionsCommand = exports.de_GetColleagueByIdCommand = exports.de_DeletePbxOAuth2ClientCommand = exports.
|
|
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");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const se_CreatePbxAclGroupCommand = async (input, context) => {
|
|
9
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
|
-
const headers = {
|
|
11
|
-
'content-type': 'application/json',
|
|
12
|
-
};
|
|
13
|
-
b.bp("/api/v1/pbx/aclgroups");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
-
'inherits': [],
|
|
17
|
-
'name': [],
|
|
18
|
-
'rules': _ => (0, smithy_client_1._json)(_),
|
|
19
|
-
'wcgrp': [],
|
|
20
|
-
}));
|
|
21
|
-
b.m("POST")
|
|
22
|
-
.h(headers)
|
|
23
|
-
.b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
exports.se_CreatePbxAclGroupCommand = se_CreatePbxAclGroupCommand;
|
|
27
|
-
const se_CreatePbxColleagueCommand = async (input, context) => {
|
|
28
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
29
|
-
const headers = {
|
|
30
|
-
'content-type': 'application/json',
|
|
31
|
-
};
|
|
32
|
-
b.bp("/api/v1/PBX/Colleagues");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
35
|
-
'department': [],
|
|
36
|
-
'dialplan': [],
|
|
37
|
-
'email': [],
|
|
38
|
-
'extension': [],
|
|
39
|
-
'faxDialplan': [],
|
|
40
|
-
'faxNumber': [],
|
|
41
|
-
'groupDn': [],
|
|
42
|
-
'language': [],
|
|
43
|
-
'licenseType': [],
|
|
44
|
-
'login': [],
|
|
45
|
-
'mobilePhone': [],
|
|
46
|
-
'name': [],
|
|
47
|
-
'officePhone': [],
|
|
48
|
-
'password': [],
|
|
49
|
-
'role': [],
|
|
50
|
-
'sipPassword': [],
|
|
51
|
-
}));
|
|
52
|
-
b.m("POST")
|
|
53
|
-
.h(headers)
|
|
54
|
-
.b(body);
|
|
55
|
-
return b.build();
|
|
56
|
-
};
|
|
57
|
-
exports.se_CreatePbxColleagueCommand = se_CreatePbxColleagueCommand;
|
|
58
8
|
const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
59
9
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
60
10
|
const headers = {
|
|
@@ -72,30 +22,6 @@ const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
72
22
|
return b.build();
|
|
73
23
|
};
|
|
74
24
|
exports.se_CreatePbxOAuth2ClientCommand = se_CreatePbxOAuth2ClientCommand;
|
|
75
|
-
const se_DeletePbxAclGroupCommand = async (input, context) => {
|
|
76
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
77
|
-
const headers = {};
|
|
78
|
-
b.bp("/api/v1/pbx/aclgroups/{id}");
|
|
79
|
-
b.p('id', () => input.id.toString(), '{id}', false);
|
|
80
|
-
let body;
|
|
81
|
-
b.m("POST")
|
|
82
|
-
.h(headers)
|
|
83
|
-
.b(body);
|
|
84
|
-
return b.build();
|
|
85
|
-
};
|
|
86
|
-
exports.se_DeletePbxAclGroupCommand = se_DeletePbxAclGroupCommand;
|
|
87
|
-
const se_DeletePbxColleagueCommand = async (input, context) => {
|
|
88
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
89
|
-
const headers = {};
|
|
90
|
-
b.bp("/api/v1/PBX/Colleagues/{id}");
|
|
91
|
-
b.p('id', () => input.id.toString(), '{id}', false);
|
|
92
|
-
let body;
|
|
93
|
-
b.m("DELETE")
|
|
94
|
-
.h(headers)
|
|
95
|
-
.b(body);
|
|
96
|
-
return b.build();
|
|
97
|
-
};
|
|
98
|
-
exports.se_DeletePbxColleagueCommand = se_DeletePbxColleagueCommand;
|
|
99
25
|
const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
|
|
100
26
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
101
27
|
const headers = {};
|
|
@@ -258,8 +184,8 @@ const se_NotificationsCommand = async (input, context) => {
|
|
|
258
184
|
b.bp("/api/v1/notifications");
|
|
259
185
|
let body;
|
|
260
186
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
187
|
+
'broadcastId': [],
|
|
261
188
|
'broadcastMessage': [],
|
|
262
|
-
'conferenceId': [],
|
|
263
189
|
'confirmationTimeout': [],
|
|
264
190
|
'customRid': [],
|
|
265
191
|
'event': [],
|
|
@@ -339,38 +265,6 @@ const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
339
265
|
return b.build();
|
|
340
266
|
};
|
|
341
267
|
exports.se_UpdatePbxOAuth2ClientCommand = se_UpdatePbxOAuth2ClientCommand;
|
|
342
|
-
const de_CreatePbxAclGroupCommand = async (output, context) => {
|
|
343
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
344
|
-
return de_CommandError(output, context);
|
|
345
|
-
}
|
|
346
|
-
const contents = (0, smithy_client_1.map)({
|
|
347
|
-
$metadata: deserializeMetadata(output),
|
|
348
|
-
});
|
|
349
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
350
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
351
|
-
'result': smithy_client_1._json,
|
|
352
|
-
'type': smithy_client_1.expectString,
|
|
353
|
-
});
|
|
354
|
-
Object.assign(contents, doc);
|
|
355
|
-
return contents;
|
|
356
|
-
};
|
|
357
|
-
exports.de_CreatePbxAclGroupCommand = de_CreatePbxAclGroupCommand;
|
|
358
|
-
const de_CreatePbxColleagueCommand = async (output, context) => {
|
|
359
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
360
|
-
return de_CommandError(output, context);
|
|
361
|
-
}
|
|
362
|
-
const contents = (0, smithy_client_1.map)({
|
|
363
|
-
$metadata: deserializeMetadata(output),
|
|
364
|
-
});
|
|
365
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
366
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
367
|
-
'result': smithy_client_1._json,
|
|
368
|
-
'type': smithy_client_1.expectString,
|
|
369
|
-
});
|
|
370
|
-
Object.assign(contents, doc);
|
|
371
|
-
return contents;
|
|
372
|
-
};
|
|
373
|
-
exports.de_CreatePbxColleagueCommand = de_CreatePbxColleagueCommand;
|
|
374
268
|
const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
|
|
375
269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
376
270
|
return de_CommandError(output, context);
|
|
@@ -387,38 +281,6 @@ const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
|
|
|
387
281
|
return contents;
|
|
388
282
|
};
|
|
389
283
|
exports.de_CreatePbxOAuth2ClientCommand = de_CreatePbxOAuth2ClientCommand;
|
|
390
|
-
const de_DeletePbxAclGroupCommand = async (output, context) => {
|
|
391
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
392
|
-
return de_CommandError(output, context);
|
|
393
|
-
}
|
|
394
|
-
const contents = (0, smithy_client_1.map)({
|
|
395
|
-
$metadata: deserializeMetadata(output),
|
|
396
|
-
});
|
|
397
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
398
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
399
|
-
'result': smithy_client_1.expectString,
|
|
400
|
-
'type': smithy_client_1.expectString,
|
|
401
|
-
});
|
|
402
|
-
Object.assign(contents, doc);
|
|
403
|
-
return contents;
|
|
404
|
-
};
|
|
405
|
-
exports.de_DeletePbxAclGroupCommand = de_DeletePbxAclGroupCommand;
|
|
406
|
-
const de_DeletePbxColleagueCommand = async (output, context) => {
|
|
407
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
408
|
-
return de_CommandError(output, context);
|
|
409
|
-
}
|
|
410
|
-
const contents = (0, smithy_client_1.map)({
|
|
411
|
-
$metadata: deserializeMetadata(output),
|
|
412
|
-
});
|
|
413
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
414
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
415
|
-
'result': smithy_client_1.expectString,
|
|
416
|
-
'type': smithy_client_1.expectString,
|
|
417
|
-
});
|
|
418
|
-
Object.assign(contents, doc);
|
|
419
|
-
return contents;
|
|
420
|
-
};
|
|
421
|
-
exports.de_DeletePbxColleagueCommand = de_DeletePbxColleagueCommand;
|
|
422
284
|
const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
|
|
423
285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
424
286
|
return de_CommandError(output, context);
|
package/dist-es/WmsApi.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { WmsApiClient, } from "./WmsApiClient";
|
|
2
|
-
import { CreatePbxAclGroupCommand, } from "./commands/CreatePbxAclGroupCommand";
|
|
3
|
-
import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
|
|
4
2
|
import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
5
|
-
import { DeletePbxAclGroupCommand, } from "./commands/DeletePbxAclGroupCommand";
|
|
6
|
-
import { DeletePbxColleagueCommand, } from "./commands/DeletePbxColleagueCommand";
|
|
7
3
|
import { DeletePbxOAuth2ClientCommand, } from "./commands/DeletePbxOAuth2ClientCommand";
|
|
8
4
|
import { GetColleagueByIdCommand, } from "./commands/GetColleagueByIdCommand";
|
|
9
5
|
import { GetPbxAclGroupsPermissionsCommand, } from "./commands/GetPbxAclGroupsPermissionsCommand";
|
|
@@ -18,11 +14,7 @@ import { OriginateCommand, } from "./commands/OriginateCommand";
|
|
|
18
14
|
import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
19
15
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
20
16
|
const commands = {
|
|
21
|
-
CreatePbxAclGroupCommand,
|
|
22
|
-
CreatePbxColleagueCommand,
|
|
23
17
|
CreatePbxOAuth2ClientCommand,
|
|
24
|
-
DeletePbxAclGroupCommand,
|
|
25
|
-
DeletePbxColleagueCommand,
|
|
26
18
|
DeletePbxOAuth2ClientCommand,
|
|
27
19
|
GetColleagueByIdCommand,
|
|
28
20
|
GetPbxAclGroupsPermissionsCommand,
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
export * from "./CreatePbxAclGroupCommand";
|
|
2
|
-
export * from "./CreatePbxColleagueCommand";
|
|
3
1
|
export * from "./CreatePbxOAuth2ClientCommand";
|
|
4
|
-
export * from "./DeletePbxAclGroupCommand";
|
|
5
|
-
export * from "./DeletePbxColleagueCommand";
|
|
6
2
|
export * from "./DeletePbxOAuth2ClientCommand";
|
|
7
3
|
export * from "./GetColleagueByIdCommand";
|
|
8
4
|
export * from "./GetPbxAclGroupsPermissionsCommand";
|
|
@@ -30,13 +30,6 @@ export class WmsUnauthorizedException extends __BaseException {
|
|
|
30
30
|
this.reason = opts.reason;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
export const PbxColleagueRole = {
|
|
34
|
-
ADMIN: "admin",
|
|
35
|
-
FAX: "fax",
|
|
36
|
-
PARK_ORBIT: "park_orbit",
|
|
37
|
-
ROOM: "room",
|
|
38
|
-
USER: "user",
|
|
39
|
-
};
|
|
40
33
|
export class WmsValidationException extends __BaseException {
|
|
41
34
|
constructor(opts) {
|
|
42
35
|
super({
|
|
@@ -66,6 +59,13 @@ export class WmsNotFoundException extends __BaseException {
|
|
|
66
59
|
this.reason = opts.reason;
|
|
67
60
|
}
|
|
68
61
|
}
|
|
62
|
+
export const PbxColleagueRole = {
|
|
63
|
+
ADMIN: "admin",
|
|
64
|
+
FAX: "fax",
|
|
65
|
+
PARK_ORBIT: "park_orbit",
|
|
66
|
+
ROOM: "room",
|
|
67
|
+
USER: "user",
|
|
68
|
+
};
|
|
69
69
|
export const GetPbxColleaguesDir = {
|
|
70
70
|
ASC: "asc",
|
|
71
71
|
DESC: "desc",
|
|
@@ -2,54 +2,6 @@ import { WmsApiServiceException as __BaseException } from "../models/WmsApiServi
|
|
|
2
2
|
import { WmsNotFoundException, WmsUnauthorizedException, WmsValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
-
export const se_CreatePbxAclGroupCommand = async (input, context) => {
|
|
6
|
-
const b = rb(input, context);
|
|
7
|
-
const headers = {
|
|
8
|
-
'content-type': 'application/json',
|
|
9
|
-
};
|
|
10
|
-
b.bp("/api/v1/pbx/aclgroups");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify(take(input, {
|
|
13
|
-
'inherits': [],
|
|
14
|
-
'name': [],
|
|
15
|
-
'rules': _ => _json(_),
|
|
16
|
-
'wcgrp': [],
|
|
17
|
-
}));
|
|
18
|
-
b.m("POST")
|
|
19
|
-
.h(headers)
|
|
20
|
-
.b(body);
|
|
21
|
-
return b.build();
|
|
22
|
-
};
|
|
23
|
-
export const se_CreatePbxColleagueCommand = async (input, context) => {
|
|
24
|
-
const b = rb(input, context);
|
|
25
|
-
const headers = {
|
|
26
|
-
'content-type': 'application/json',
|
|
27
|
-
};
|
|
28
|
-
b.bp("/api/v1/PBX/Colleagues");
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify(take(input, {
|
|
31
|
-
'department': [],
|
|
32
|
-
'dialplan': [],
|
|
33
|
-
'email': [],
|
|
34
|
-
'extension': [],
|
|
35
|
-
'faxDialplan': [],
|
|
36
|
-
'faxNumber': [],
|
|
37
|
-
'groupDn': [],
|
|
38
|
-
'language': [],
|
|
39
|
-
'licenseType': [],
|
|
40
|
-
'login': [],
|
|
41
|
-
'mobilePhone': [],
|
|
42
|
-
'name': [],
|
|
43
|
-
'officePhone': [],
|
|
44
|
-
'password': [],
|
|
45
|
-
'role': [],
|
|
46
|
-
'sipPassword': [],
|
|
47
|
-
}));
|
|
48
|
-
b.m("POST")
|
|
49
|
-
.h(headers)
|
|
50
|
-
.b(body);
|
|
51
|
-
return b.build();
|
|
52
|
-
};
|
|
53
5
|
export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
54
6
|
const b = rb(input, context);
|
|
55
7
|
const headers = {
|
|
@@ -66,28 +18,6 @@ export const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
66
18
|
.b(body);
|
|
67
19
|
return b.build();
|
|
68
20
|
};
|
|
69
|
-
export const se_DeletePbxAclGroupCommand = async (input, context) => {
|
|
70
|
-
const b = rb(input, context);
|
|
71
|
-
const headers = {};
|
|
72
|
-
b.bp("/api/v1/pbx/aclgroups/{id}");
|
|
73
|
-
b.p('id', () => input.id.toString(), '{id}', false);
|
|
74
|
-
let body;
|
|
75
|
-
b.m("POST")
|
|
76
|
-
.h(headers)
|
|
77
|
-
.b(body);
|
|
78
|
-
return b.build();
|
|
79
|
-
};
|
|
80
|
-
export const se_DeletePbxColleagueCommand = async (input, context) => {
|
|
81
|
-
const b = rb(input, context);
|
|
82
|
-
const headers = {};
|
|
83
|
-
b.bp("/api/v1/PBX/Colleagues/{id}");
|
|
84
|
-
b.p('id', () => input.id.toString(), '{id}', false);
|
|
85
|
-
let body;
|
|
86
|
-
b.m("DELETE")
|
|
87
|
-
.h(headers)
|
|
88
|
-
.b(body);
|
|
89
|
-
return b.build();
|
|
90
|
-
};
|
|
91
21
|
export const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
|
|
92
22
|
const b = rb(input, context);
|
|
93
23
|
const headers = {};
|
|
@@ -242,8 +172,8 @@ export const se_NotificationsCommand = async (input, context) => {
|
|
|
242
172
|
b.bp("/api/v1/notifications");
|
|
243
173
|
let body;
|
|
244
174
|
body = JSON.stringify(take(input, {
|
|
175
|
+
'broadcastId': [],
|
|
245
176
|
'broadcastMessage': [],
|
|
246
|
-
'conferenceId': [],
|
|
247
177
|
'confirmationTimeout': [],
|
|
248
178
|
'customRid': [],
|
|
249
179
|
'event': [],
|
|
@@ -319,36 +249,6 @@ export const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
|
|
|
319
249
|
.b(body);
|
|
320
250
|
return b.build();
|
|
321
251
|
};
|
|
322
|
-
export const de_CreatePbxAclGroupCommand = async (output, context) => {
|
|
323
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
324
|
-
return de_CommandError(output, context);
|
|
325
|
-
}
|
|
326
|
-
const contents = map({
|
|
327
|
-
$metadata: deserializeMetadata(output),
|
|
328
|
-
});
|
|
329
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
330
|
-
const doc = take(data, {
|
|
331
|
-
'result': _json,
|
|
332
|
-
'type': __expectString,
|
|
333
|
-
});
|
|
334
|
-
Object.assign(contents, doc);
|
|
335
|
-
return contents;
|
|
336
|
-
};
|
|
337
|
-
export const de_CreatePbxColleagueCommand = async (output, context) => {
|
|
338
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
339
|
-
return de_CommandError(output, context);
|
|
340
|
-
}
|
|
341
|
-
const contents = map({
|
|
342
|
-
$metadata: deserializeMetadata(output),
|
|
343
|
-
});
|
|
344
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
345
|
-
const doc = take(data, {
|
|
346
|
-
'result': _json,
|
|
347
|
-
'type': __expectString,
|
|
348
|
-
});
|
|
349
|
-
Object.assign(contents, doc);
|
|
350
|
-
return contents;
|
|
351
|
-
};
|
|
352
252
|
export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
|
|
353
253
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
354
254
|
return de_CommandError(output, context);
|
|
@@ -364,36 +264,6 @@ export const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
|
|
|
364
264
|
Object.assign(contents, doc);
|
|
365
265
|
return contents;
|
|
366
266
|
};
|
|
367
|
-
export const de_DeletePbxAclGroupCommand = async (output, context) => {
|
|
368
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
369
|
-
return de_CommandError(output, context);
|
|
370
|
-
}
|
|
371
|
-
const contents = map({
|
|
372
|
-
$metadata: deserializeMetadata(output),
|
|
373
|
-
});
|
|
374
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
375
|
-
const doc = take(data, {
|
|
376
|
-
'result': __expectString,
|
|
377
|
-
'type': __expectString,
|
|
378
|
-
});
|
|
379
|
-
Object.assign(contents, doc);
|
|
380
|
-
return contents;
|
|
381
|
-
};
|
|
382
|
-
export const de_DeletePbxColleagueCommand = async (output, context) => {
|
|
383
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
384
|
-
return de_CommandError(output, context);
|
|
385
|
-
}
|
|
386
|
-
const contents = map({
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
});
|
|
389
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
390
|
-
const doc = take(data, {
|
|
391
|
-
'result': __expectString,
|
|
392
|
-
'type': __expectString,
|
|
393
|
-
});
|
|
394
|
-
Object.assign(contents, doc);
|
|
395
|
-
return contents;
|
|
396
|
-
};
|
|
397
267
|
export const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
|
|
398
268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
399
269
|
return de_CommandError(output, context);
|
package/dist-types/WmsApi.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { WmsApiClient } from "./WmsApiClient";
|
|
2
|
-
import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
|
|
3
|
-
import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
|
|
4
2
|
import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
5
|
-
import { DeletePbxAclGroupCommandInput, DeletePbxAclGroupCommandOutput } from "./commands/DeletePbxAclGroupCommand";
|
|
6
|
-
import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "./commands/DeletePbxColleagueCommand";
|
|
7
3
|
import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
|
|
8
4
|
import { GetColleagueByIdCommandInput, GetColleagueByIdCommandOutput } from "./commands/GetColleagueByIdCommand";
|
|
9
5
|
import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
|
|
@@ -18,36 +14,12 @@ import { OriginateCommandInput, OriginateCommandOutput } from "./commands/Origin
|
|
|
18
14
|
import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
|
|
19
15
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
20
16
|
export interface WmsApi {
|
|
21
|
-
/**
|
|
22
|
-
* @see {@link CreatePbxAclGroupCommand}
|
|
23
|
-
*/
|
|
24
|
-
createPbxAclGroup(args: CreatePbxAclGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxAclGroupCommandOutput>;
|
|
25
|
-
createPbxAclGroup(args: CreatePbxAclGroupCommandInput, cb: (err: any, data?: CreatePbxAclGroupCommandOutput) => void): void;
|
|
26
|
-
createPbxAclGroup(args: CreatePbxAclGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePbxAclGroupCommandOutput) => void): void;
|
|
27
|
-
/**
|
|
28
|
-
* @see {@link CreatePbxColleagueCommand}
|
|
29
|
-
*/
|
|
30
|
-
createPbxColleague(args: CreatePbxColleagueCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxColleagueCommandOutput>;
|
|
31
|
-
createPbxColleague(args: CreatePbxColleagueCommandInput, cb: (err: any, data?: CreatePbxColleagueCommandOutput) => void): void;
|
|
32
|
-
createPbxColleague(args: CreatePbxColleagueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePbxColleagueCommandOutput) => void): void;
|
|
33
17
|
/**
|
|
34
18
|
* @see {@link CreatePbxOAuth2ClientCommand}
|
|
35
19
|
*/
|
|
36
20
|
createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, options?: __HttpHandlerOptions): Promise<CreatePbxOAuth2ClientCommandOutput>;
|
|
37
21
|
createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, cb: (err: any, data?: CreatePbxOAuth2ClientCommandOutput) => void): void;
|
|
38
22
|
createPbxOAuth2Client(args: CreatePbxOAuth2ClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePbxOAuth2ClientCommandOutput) => void): void;
|
|
39
|
-
/**
|
|
40
|
-
* @see {@link DeletePbxAclGroupCommand}
|
|
41
|
-
*/
|
|
42
|
-
deletePbxAclGroup(args: DeletePbxAclGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeletePbxAclGroupCommandOutput>;
|
|
43
|
-
deletePbxAclGroup(args: DeletePbxAclGroupCommandInput, cb: (err: any, data?: DeletePbxAclGroupCommandOutput) => void): void;
|
|
44
|
-
deletePbxAclGroup(args: DeletePbxAclGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePbxAclGroupCommandOutput) => void): void;
|
|
45
|
-
/**
|
|
46
|
-
* @see {@link DeletePbxColleagueCommand}
|
|
47
|
-
*/
|
|
48
|
-
deletePbxColleague(args: DeletePbxColleagueCommandInput, options?: __HttpHandlerOptions): Promise<DeletePbxColleagueCommandOutput>;
|
|
49
|
-
deletePbxColleague(args: DeletePbxColleagueCommandInput, cb: (err: any, data?: DeletePbxColleagueCommandOutput) => void): void;
|
|
50
|
-
deletePbxColleague(args: DeletePbxColleagueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePbxColleagueCommandOutput) => void): void;
|
|
51
23
|
/**
|
|
52
24
|
* @see {@link DeletePbxOAuth2ClientCommand}
|
|
53
25
|
*/
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
|
|
2
|
-
import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
|
|
3
1
|
import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
|
|
4
|
-
import { DeletePbxAclGroupCommandInput, DeletePbxAclGroupCommandOutput } from "./commands/DeletePbxAclGroupCommand";
|
|
5
|
-
import { DeletePbxColleagueCommandInput, DeletePbxColleagueCommandOutput } from "./commands/DeletePbxColleagueCommand";
|
|
6
2
|
import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "./commands/DeletePbxOAuth2ClientCommand";
|
|
7
3
|
import { GetColleagueByIdCommandInput, GetColleagueByIdCommandOutput } from "./commands/GetColleagueByIdCommand";
|
|
8
4
|
import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "./commands/GetPbxAclGroupsPermissionsCommand";
|
|
@@ -26,11 +22,11 @@ export { __Client };
|
|
|
26
22
|
/**
|
|
27
23
|
* @public
|
|
28
24
|
*/
|
|
29
|
-
export type ServiceInputTypes =
|
|
25
|
+
export type ServiceInputTypes = CreatePbxOAuth2ClientCommandInput | DeletePbxOAuth2ClientCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | UpdatePbxOAuth2ClientCommandInput;
|
|
30
26
|
/**
|
|
31
27
|
* @public
|
|
32
28
|
*/
|
|
33
|
-
export type ServiceOutputTypes =
|
|
29
|
+
export type ServiceOutputTypes = CreatePbxOAuth2ClientCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
|
|
34
30
|
/**
|
|
35
31
|
* @public
|
|
36
32
|
*/
|
|
@@ -39,7 +39,7 @@ declare const NotificationsCommand_base: {
|
|
|
39
39
|
* notificationType: "STRING_VALUE", // required
|
|
40
40
|
* event: "STRING_VALUE", // required
|
|
41
41
|
* broadcastMessage: "STRING_VALUE", // required
|
|
42
|
-
*
|
|
42
|
+
* broadcastId: "STRING_VALUE", // required
|
|
43
43
|
* playFrequency: Number("int"),
|
|
44
44
|
* confirmationTimeout: Number("int"),
|
|
45
45
|
* queueTimeout: Number("int"),
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
export * from "./CreatePbxAclGroupCommand";
|
|
2
|
-
export * from "./CreatePbxColleagueCommand";
|
|
3
1
|
export * from "./CreatePbxOAuth2ClientCommand";
|
|
4
|
-
export * from "./DeletePbxAclGroupCommand";
|
|
5
|
-
export * from "./DeletePbxColleagueCommand";
|
|
6
2
|
export * from "./DeletePbxOAuth2ClientCommand";
|
|
7
3
|
export * from "./GetColleagueByIdCommand";
|
|
8
4
|
export * from "./GetPbxAclGroupsPermissionsCommand";
|