@wildix/wms-api-client 1.1.11 → 1.1.13

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.
Files changed (35) hide show
  1. package/dist-cjs/WmsApi.js +12 -0
  2. package/dist-cjs/commands/CreatePbxAclGroupCommand.js +21 -0
  3. package/dist-cjs/commands/CreatePbxColleagueCommand.js +21 -0
  4. package/dist-cjs/commands/DeletePbxAclGroupCommand.js +21 -0
  5. package/dist-cjs/commands/DeletePbxColleagueCommand.js +21 -0
  6. package/dist-cjs/commands/GetColleagueByIdCommand.js +21 -0
  7. package/dist-cjs/commands/GetPersonalInfoCommand.js +21 -0
  8. package/dist-cjs/commands/index.js +6 -0
  9. package/dist-cjs/models/models_0.js +8 -8
  10. package/dist-cjs/protocols/Aws_restJson1.js +219 -1
  11. package/dist-es/WmsApi.js +12 -0
  12. package/dist-es/commands/CreatePbxAclGroupCommand.js +17 -0
  13. package/dist-es/commands/CreatePbxColleagueCommand.js +17 -0
  14. package/dist-es/commands/DeletePbxAclGroupCommand.js +17 -0
  15. package/dist-es/commands/DeletePbxColleagueCommand.js +17 -0
  16. package/dist-es/commands/GetColleagueByIdCommand.js +17 -0
  17. package/dist-es/commands/GetPersonalInfoCommand.js +17 -0
  18. package/dist-es/commands/index.js +6 -0
  19. package/dist-es/models/models_0.js +7 -7
  20. package/dist-es/protocols/Aws_restJson1.js +206 -0
  21. package/dist-types/WmsApi.d.ts +43 -0
  22. package/dist-types/WmsApiClient.d.ts +8 -2
  23. package/dist-types/commands/CreatePbxAclGroupCommand.d.ts +86 -0
  24. package/dist-types/commands/CreatePbxColleagueCommand.d.ts +100 -0
  25. package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +63 -0
  26. package/dist-types/commands/DeletePbxColleagueCommand.d.ts +63 -0
  27. package/dist-types/commands/GetColleagueByIdCommand.d.ts +85 -0
  28. package/dist-types/commands/GetPersonalInfoCommand.d.ts +124 -0
  29. package/dist-types/commands/index.d.ts +6 -0
  30. package/dist-types/models/models_0.d.ts +196 -59
  31. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  32. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  33. package/dist-types/runtimeConfig.d.ts +1 -0
  34. package/dist-types/runtimeConfig.native.d.ts +1 -0
  35. package/package.json +1 -1
@@ -2,26 +2,38 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WmsApi = void 0;
4
4
  const WmsApiClient_1 = require("./WmsApiClient");
5
+ const CreatePbxAclGroupCommand_1 = require("./commands/CreatePbxAclGroupCommand");
6
+ const CreatePbxColleagueCommand_1 = require("./commands/CreatePbxColleagueCommand");
5
7
  const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
8
+ const DeletePbxAclGroupCommand_1 = require("./commands/DeletePbxAclGroupCommand");
9
+ const DeletePbxColleagueCommand_1 = require("./commands/DeletePbxColleagueCommand");
6
10
  const DeletePbxOAuth2ClientCommand_1 = require("./commands/DeletePbxOAuth2ClientCommand");
11
+ const GetColleagueByIdCommand_1 = require("./commands/GetColleagueByIdCommand");
7
12
  const GetPbxAclGroupsPermissionsCommand_1 = require("./commands/GetPbxAclGroupsPermissionsCommand");
8
13
  const GetPbxCallGroupsCommand_1 = require("./commands/GetPbxCallGroupsCommand");
9
14
  const GetPbxColleaguesCommand_1 = require("./commands/GetPbxColleaguesCommand");
10
15
  const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsCommand");
11
16
  const GetPbxesCommand_1 = require("./commands/GetPbxesCommand");
17
+ const GetPersonalInfoCommand_1 = require("./commands/GetPersonalInfoCommand");
12
18
  const NotificationsCommand_1 = require("./commands/NotificationsCommand");
13
19
  const OriginateCallCommand_1 = require("./commands/OriginateCallCommand");
14
20
  const OriginateCommand_1 = require("./commands/OriginateCommand");
15
21
  const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
16
22
  const smithy_client_1 = require("@smithy/smithy-client");
17
23
  const commands = {
24
+ CreatePbxAclGroupCommand: CreatePbxAclGroupCommand_1.CreatePbxAclGroupCommand,
25
+ CreatePbxColleagueCommand: CreatePbxColleagueCommand_1.CreatePbxColleagueCommand,
18
26
  CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
27
+ DeletePbxAclGroupCommand: DeletePbxAclGroupCommand_1.DeletePbxAclGroupCommand,
28
+ DeletePbxColleagueCommand: DeletePbxColleagueCommand_1.DeletePbxColleagueCommand,
19
29
  DeletePbxOAuth2ClientCommand: DeletePbxOAuth2ClientCommand_1.DeletePbxOAuth2ClientCommand,
30
+ GetColleagueByIdCommand: GetColleagueByIdCommand_1.GetColleagueByIdCommand,
20
31
  GetPbxAclGroupsPermissionsCommand: GetPbxAclGroupsPermissionsCommand_1.GetPbxAclGroupsPermissionsCommand,
21
32
  GetPbxCallGroupsCommand: GetPbxCallGroupsCommand_1.GetPbxCallGroupsCommand,
22
33
  GetPbxColleaguesCommand: GetPbxColleaguesCommand_1.GetPbxColleaguesCommand,
23
34
  GetPbxesCommand: GetPbxesCommand_1.GetPbxesCommand,
24
35
  GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
36
+ GetPersonalInfoCommand: GetPersonalInfoCommand_1.GetPersonalInfoCommand,
25
37
  NotificationsCommand: NotificationsCommand_1.NotificationsCommand,
26
38
  OriginateCommand: OriginateCommand_1.OriginateCommand,
27
39
  OriginateCallCommand: OriginateCallCommand_1.OriginateCallCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePbxAclGroupCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class CreatePbxAclGroupCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WmsApi", "CreatePbxAclGroup", {})
15
+ .n("WmsApiClient", "CreatePbxAclGroupCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreatePbxAclGroupCommand)
18
+ .de(Aws_restJson1_1.de_CreatePbxAclGroupCommand)
19
+ .build() {
20
+ }
21
+ exports.CreatePbxAclGroupCommand = CreatePbxAclGroupCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePbxColleagueCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class CreatePbxColleagueCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WmsApi", "CreatePbxColleague", {})
15
+ .n("WmsApiClient", "CreatePbxColleagueCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreatePbxColleagueCommand)
18
+ .de(Aws_restJson1_1.de_CreatePbxColleagueCommand)
19
+ .build() {
20
+ }
21
+ exports.CreatePbxColleagueCommand = CreatePbxColleagueCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePbxAclGroupCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class DeletePbxAclGroupCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WmsApi", "DeletePbxAclGroup", {})
15
+ .n("WmsApiClient", "DeletePbxAclGroupCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeletePbxAclGroupCommand)
18
+ .de(Aws_restJson1_1.de_DeletePbxAclGroupCommand)
19
+ .build() {
20
+ }
21
+ exports.DeletePbxAclGroupCommand = DeletePbxAclGroupCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePbxColleagueCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class DeletePbxColleagueCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WmsApi", "DeletePbxColleague", {})
15
+ .n("WmsApiClient", "DeletePbxColleagueCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeletePbxColleagueCommand)
18
+ .de(Aws_restJson1_1.de_DeletePbxColleagueCommand)
19
+ .build() {
20
+ }
21
+ exports.DeletePbxColleagueCommand = DeletePbxColleagueCommand;
@@ -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;
@@ -1,13 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreatePbxAclGroupCommand"), exports);
5
+ tslib_1.__exportStar(require("./CreatePbxColleagueCommand"), exports);
4
6
  tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
7
+ tslib_1.__exportStar(require("./DeletePbxAclGroupCommand"), exports);
8
+ tslib_1.__exportStar(require("./DeletePbxColleagueCommand"), exports);
5
9
  tslib_1.__exportStar(require("./DeletePbxOAuth2ClientCommand"), exports);
10
+ tslib_1.__exportStar(require("./GetColleagueByIdCommand"), exports);
6
11
  tslib_1.__exportStar(require("./GetPbxAclGroupsPermissionsCommand"), exports);
7
12
  tslib_1.__exportStar(require("./GetPbxCallGroupsCommand"), exports);
8
13
  tslib_1.__exportStar(require("./GetPbxColleaguesCommand"), exports);
9
14
  tslib_1.__exportStar(require("./GetPbxesCommand"), exports);
10
15
  tslib_1.__exportStar(require("./GetPbxOAuth2ClientsCommand"), exports);
16
+ tslib_1.__exportStar(require("./GetPersonalInfoCommand"), exports);
11
17
  tslib_1.__exportStar(require("./NotificationsCommand"), exports);
12
18
  tslib_1.__exportStar(require("./OriginateCommand"), exports);
13
19
  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.PbxColleagueRole = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.WmsUnauthorizedException = exports.ResponseType = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
3
+ exports.ResponseResult = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.PbxColleagueRole = exports.WmsUnauthorizedException = exports.ResponseType = exports.AclGroupPermissionAbility = exports.PbxLicenseType = void 0;
4
4
  const WmsApiServiceException_1 = require("./WmsApiServiceException");
5
5
  exports.PbxLicenseType = {
6
6
  BASIC: "basic",
@@ -34,6 +34,13 @@ 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
+ };
37
44
  class WmsValidationException extends WmsApiServiceException_1.WmsApiServiceException {
38
45
  constructor(opts) {
39
46
  super({
@@ -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,10 +1,60 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdatePbxOAuth2ClientCommand = exports.de_OriginateCallCommand = exports.de_OriginateCommand = exports.de_NotificationsCommand = exports.de_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_DeletePbxColleagueCommand = exports.de_DeletePbxAclGroupCommand = exports.de_CreatePbxOAuth2ClientCommand = exports.de_CreatePbxColleagueCommand = exports.de_CreatePbxAclGroupCommand = exports.se_UpdatePbxOAuth2ClientCommand = exports.se_OriginateCallCommand = exports.se_OriginateCommand = exports.se_NotificationsCommand = exports.se_GetPersonalInfoCommand = exports.se_GetPbxOAuth2ClientsCommand = exports.se_GetPbxesCommand = exports.se_GetPbxColleaguesCommand = exports.se_GetPbxCallGroupsCommand = exports.se_GetPbxAclGroupsPermissionsCommand = exports.se_GetColleagueByIdCommand = exports.se_DeletePbxOAuth2ClientCommand = exports.se_DeletePbxColleagueCommand = exports.se_DeletePbxAclGroupCommand = exports.se_CreatePbxOAuth2ClientCommand = exports.se_CreatePbxColleagueCommand = exports.se_CreatePbxAclGroupCommand = void 0;
4
4
  const WmsApiServiceException_1 = require("../models/WmsApiServiceException");
5
5
  const models_0_1 = require("../models/models_0");
6
6
  const core_1 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
+ const se_CreatePbxAclGroupCommand = async (input, context) => {
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
+ const headers = {
11
+ 'content-type': 'application/json',
12
+ };
13
+ b.bp("/api/v1/pbx/aclgroups");
14
+ let body;
15
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
16
+ 'inherits': [],
17
+ 'name': [],
18
+ 'rules': _ => (0, smithy_client_1._json)(_),
19
+ 'wcgrp': [],
20
+ }));
21
+ b.m("POST")
22
+ .h(headers)
23
+ .b(body);
24
+ return b.build();
25
+ };
26
+ exports.se_CreatePbxAclGroupCommand = se_CreatePbxAclGroupCommand;
27
+ const se_CreatePbxColleagueCommand = async (input, context) => {
28
+ const b = (0, core_1.requestBuilder)(input, context);
29
+ const headers = {
30
+ 'content-type': 'application/json',
31
+ };
32
+ b.bp("/api/v1/PBX/Colleagues");
33
+ let body;
34
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
35
+ 'department': [],
36
+ 'dialplan': [],
37
+ 'email': [],
38
+ 'extension': [],
39
+ 'faxDialplan': [],
40
+ 'faxNumber': [],
41
+ 'groupDn': [],
42
+ 'language': [],
43
+ 'licenseType': [],
44
+ 'login': [],
45
+ 'mobilePhone': [],
46
+ 'name': [],
47
+ 'officePhone': [],
48
+ 'password': [],
49
+ 'role': [],
50
+ 'sipPassword': [],
51
+ }));
52
+ b.m("POST")
53
+ .h(headers)
54
+ .b(body);
55
+ return b.build();
56
+ };
57
+ exports.se_CreatePbxColleagueCommand = se_CreatePbxColleagueCommand;
8
58
  const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
9
59
  const b = (0, core_1.requestBuilder)(input, context);
10
60
  const headers = {
@@ -22,6 +72,30 @@ const se_CreatePbxOAuth2ClientCommand = async (input, context) => {
22
72
  return b.build();
23
73
  };
24
74
  exports.se_CreatePbxOAuth2ClientCommand = se_CreatePbxOAuth2ClientCommand;
75
+ const se_DeletePbxAclGroupCommand = async (input, context) => {
76
+ const b = (0, core_1.requestBuilder)(input, context);
77
+ const headers = {};
78
+ b.bp("/api/v1/pbx/aclgroups/{id}");
79
+ b.p('id', () => input.id.toString(), '{id}', false);
80
+ let body;
81
+ b.m("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;
25
99
  const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
26
100
  const b = (0, core_1.requestBuilder)(input, context);
27
101
  const headers = {};
@@ -34,6 +108,18 @@ const se_DeletePbxOAuth2ClientCommand = async (input, context) => {
34
108
  return b.build();
35
109
  };
36
110
  exports.se_DeletePbxOAuth2ClientCommand = se_DeletePbxOAuth2ClientCommand;
111
+ const se_GetColleagueByIdCommand = async (input, context) => {
112
+ const b = (0, core_1.requestBuilder)(input, context);
113
+ const headers = {};
114
+ b.bp("/api/v1/Colleagues/{id}");
115
+ b.p('id', () => input.id.toString(), '{id}', false);
116
+ let body;
117
+ b.m("GET")
118
+ .h(headers)
119
+ .b(body);
120
+ return b.build();
121
+ };
122
+ exports.se_GetColleagueByIdCommand = se_GetColleagueByIdCommand;
37
123
  const se_GetPbxAclGroupsPermissionsCommand = async (input, context) => {
38
124
  const b = (0, core_1.requestBuilder)(input, context);
39
125
  const headers = {};
@@ -128,6 +214,42 @@ const se_GetPbxOAuth2ClientsCommand = async (input, context) => {
128
214
  return b.build();
129
215
  };
130
216
  exports.se_GetPbxOAuth2ClientsCommand = se_GetPbxOAuth2ClientsCommand;
217
+ const se_GetPersonalInfoCommand = async (input, context) => {
218
+ const b = (0, core_1.requestBuilder)(input, context);
219
+ const headers = {};
220
+ b.bp("/api/v1/personal/info");
221
+ const query = (0, smithy_client_1.map)({
222
+ [_f]: [() => input.extension !== void 0, () => ((input[_e] || []).map(_entry => _entry))],
223
+ [_fi]: [() => input.id !== void 0, () => ((input[_i] || []).map(_entry => _entry))],
224
+ [_fP]: [() => input.officePhone !== void 0, () => ((input[_oP] || []).map(_entry => _entry))],
225
+ [_fPi]: [() => input.mobilePhone !== void 0, () => ((input[_mP] || []).map(_entry => _entry))],
226
+ [_fil]: [() => input.name !== void 0, () => ((input[_n] || []).map(_entry => _entry))],
227
+ [_filt]: [() => input.email !== void 0, () => ((input[_em] || []).map(_entry => _entry))],
228
+ [_filte]: [() => input.role !== void 0, () => ((input[_r] || []).map(_entry => _entry))],
229
+ [_filter]: [() => input.dialplan !== void 0, () => ((input[_d] || []).map(_entry => _entry))],
230
+ [_fDi]: [() => input.faxDialplan !== void 0, () => ((input[_fD] || []).map(_entry => _entry))],
231
+ [_filterd]: [() => input.department !== void 0, () => ((input[_de] || []).map(_entry => _entry))],
232
+ [_filterl]: [() => input.login !== void 0, () => ((input[_l] || []).map(_entry => _entry))],
233
+ [_fDil]: [() => input.groupDn !== void 0, () => ((input[_gD] || []).map(_entry => _entry))],
234
+ [_fDilt]: [() => input.pbxDn !== void 0, () => ((input[_pD] || []).map(_entry => _entry))],
235
+ [_fT]: [() => input.licenseType !== void 0, () => ((input[_lT] || []).map(_entry => _entry))],
236
+ [_fie]: [() => input.fields !== void 0, () => ((input[_fie] || []).map(_entry => _entry))],
237
+ [_sF]: [() => input.searchFields !== void 0, () => ((input[_sF] || []).map(_entry => _entry))],
238
+ [_s]: [, input[_s]],
239
+ [_so]: [() => input.sort !== void 0, () => ((input[_so] || []).map(_entry => _entry))],
240
+ [_st]: [() => input.start !== void 0, () => (input[_st].toString())],
241
+ [_c]: [() => input.count !== void 0, () => (input[_c].toString())],
242
+ [_di]: [, input[_di]],
243
+ [_sS]: [, input[_sS]],
244
+ });
245
+ let body;
246
+ b.m("GET")
247
+ .h(headers)
248
+ .q(query)
249
+ .b(body);
250
+ return b.build();
251
+ };
252
+ exports.se_GetPersonalInfoCommand = se_GetPersonalInfoCommand;
131
253
  const se_NotificationsCommand = async (input, context) => {
132
254
  const b = (0, core_1.requestBuilder)(input, context);
133
255
  const headers = {
@@ -217,6 +339,38 @@ const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
217
339
  return b.build();
218
340
  };
219
341
  exports.se_UpdatePbxOAuth2ClientCommand = se_UpdatePbxOAuth2ClientCommand;
342
+ const de_CreatePbxAclGroupCommand = async (output, context) => {
343
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
344
+ return de_CommandError(output, context);
345
+ }
346
+ const contents = (0, smithy_client_1.map)({
347
+ $metadata: deserializeMetadata(output),
348
+ });
349
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
350
+ const doc = (0, smithy_client_1.take)(data, {
351
+ 'result': smithy_client_1._json,
352
+ 'type': smithy_client_1.expectString,
353
+ });
354
+ Object.assign(contents, doc);
355
+ return contents;
356
+ };
357
+ exports.de_CreatePbxAclGroupCommand = de_CreatePbxAclGroupCommand;
358
+ const de_CreatePbxColleagueCommand = async (output, context) => {
359
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
360
+ return de_CommandError(output, context);
361
+ }
362
+ const contents = (0, smithy_client_1.map)({
363
+ $metadata: deserializeMetadata(output),
364
+ });
365
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
366
+ const doc = (0, smithy_client_1.take)(data, {
367
+ 'result': smithy_client_1._json,
368
+ 'type': smithy_client_1.expectString,
369
+ });
370
+ Object.assign(contents, doc);
371
+ return contents;
372
+ };
373
+ exports.de_CreatePbxColleagueCommand = de_CreatePbxColleagueCommand;
220
374
  const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
221
375
  if (output.statusCode !== 200 && output.statusCode >= 300) {
222
376
  return de_CommandError(output, context);
@@ -233,6 +387,38 @@ const de_CreatePbxOAuth2ClientCommand = async (output, context) => {
233
387
  return contents;
234
388
  };
235
389
  exports.de_CreatePbxOAuth2ClientCommand = de_CreatePbxOAuth2ClientCommand;
390
+ const de_DeletePbxAclGroupCommand = async (output, context) => {
391
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
392
+ return de_CommandError(output, context);
393
+ }
394
+ const contents = (0, smithy_client_1.map)({
395
+ $metadata: deserializeMetadata(output),
396
+ });
397
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
398
+ const doc = (0, smithy_client_1.take)(data, {
399
+ 'result': smithy_client_1.expectString,
400
+ 'type': smithy_client_1.expectString,
401
+ });
402
+ Object.assign(contents, doc);
403
+ return contents;
404
+ };
405
+ exports.de_DeletePbxAclGroupCommand = de_DeletePbxAclGroupCommand;
406
+ const de_DeletePbxColleagueCommand = async (output, context) => {
407
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
408
+ return de_CommandError(output, context);
409
+ }
410
+ const contents = (0, smithy_client_1.map)({
411
+ $metadata: deserializeMetadata(output),
412
+ });
413
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
414
+ const doc = (0, smithy_client_1.take)(data, {
415
+ 'result': smithy_client_1.expectString,
416
+ 'type': smithy_client_1.expectString,
417
+ });
418
+ Object.assign(contents, doc);
419
+ return contents;
420
+ };
421
+ exports.de_DeletePbxColleagueCommand = de_DeletePbxColleagueCommand;
236
422
  const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
237
423
  if (output.statusCode !== 200 && output.statusCode >= 300) {
238
424
  return de_CommandError(output, context);
@@ -249,6 +435,22 @@ const de_DeletePbxOAuth2ClientCommand = async (output, context) => {
249
435
  return contents;
250
436
  };
251
437
  exports.de_DeletePbxOAuth2ClientCommand = de_DeletePbxOAuth2ClientCommand;
438
+ const de_GetColleagueByIdCommand = async (output, context) => {
439
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
440
+ return de_CommandError(output, context);
441
+ }
442
+ const contents = (0, smithy_client_1.map)({
443
+ $metadata: deserializeMetadata(output),
444
+ });
445
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
446
+ const doc = (0, smithy_client_1.take)(data, {
447
+ 'result': smithy_client_1._json,
448
+ 'type': smithy_client_1.expectString,
449
+ });
450
+ Object.assign(contents, doc);
451
+ return contents;
452
+ };
453
+ exports.de_GetColleagueByIdCommand = de_GetColleagueByIdCommand;
252
454
  const de_GetPbxAclGroupsPermissionsCommand = async (output, context) => {
253
455
  if (output.statusCode !== 200 && output.statusCode >= 300) {
254
456
  return de_CommandError(output, context);
@@ -329,6 +531,22 @@ const de_GetPbxOAuth2ClientsCommand = async (output, context) => {
329
531
  return contents;
330
532
  };
331
533
  exports.de_GetPbxOAuth2ClientsCommand = de_GetPbxOAuth2ClientsCommand;
534
+ const de_GetPersonalInfoCommand = async (output, context) => {
535
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
536
+ return de_CommandError(output, context);
537
+ }
538
+ const contents = (0, smithy_client_1.map)({
539
+ $metadata: deserializeMetadata(output),
540
+ });
541
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
542
+ const doc = (0, smithy_client_1.take)(data, {
543
+ 'result': smithy_client_1._json,
544
+ 'type': smithy_client_1.expectString,
545
+ });
546
+ Object.assign(contents, doc);
547
+ return contents;
548
+ };
549
+ exports.de_GetPersonalInfoCommand = de_GetPersonalInfoCommand;
332
550
  const de_NotificationsCommand = async (output, context) => {
333
551
  if (output.statusCode !== 200 && output.statusCode >= 300) {
334
552
  return de_CommandError(output, context);
package/dist-es/WmsApi.js CHANGED
@@ -1,24 +1,36 @@
1
1
  import { WmsApiClient, } from "./WmsApiClient";
2
+ import { CreatePbxAclGroupCommand, } from "./commands/CreatePbxAclGroupCommand";
3
+ import { CreatePbxColleagueCommand, } from "./commands/CreatePbxColleagueCommand";
2
4
  import { CreatePbxOAuth2ClientCommand, } from "./commands/CreatePbxOAuth2ClientCommand";
5
+ import { DeletePbxAclGroupCommand, } from "./commands/DeletePbxAclGroupCommand";
6
+ import { DeletePbxColleagueCommand, } from "./commands/DeletePbxColleagueCommand";
3
7
  import { DeletePbxOAuth2ClientCommand, } from "./commands/DeletePbxOAuth2ClientCommand";
8
+ import { GetColleagueByIdCommand, } from "./commands/GetColleagueByIdCommand";
4
9
  import { GetPbxAclGroupsPermissionsCommand, } from "./commands/GetPbxAclGroupsPermissionsCommand";
5
10
  import { GetPbxCallGroupsCommand, } from "./commands/GetPbxCallGroupsCommand";
6
11
  import { GetPbxColleaguesCommand, } from "./commands/GetPbxColleaguesCommand";
7
12
  import { GetPbxOAuth2ClientsCommand, } from "./commands/GetPbxOAuth2ClientsCommand";
8
13
  import { GetPbxesCommand, } from "./commands/GetPbxesCommand";
14
+ import { GetPersonalInfoCommand, } from "./commands/GetPersonalInfoCommand";
9
15
  import { NotificationsCommand, } from "./commands/NotificationsCommand";
10
16
  import { OriginateCallCommand, } from "./commands/OriginateCallCommand";
11
17
  import { OriginateCommand, } from "./commands/OriginateCommand";
12
18
  import { UpdatePbxOAuth2ClientCommand, } from "./commands/UpdatePbxOAuth2ClientCommand";
13
19
  import { createAggregatedClient } from "@smithy/smithy-client";
14
20
  const commands = {
21
+ CreatePbxAclGroupCommand,
22
+ CreatePbxColleagueCommand,
15
23
  CreatePbxOAuth2ClientCommand,
24
+ DeletePbxAclGroupCommand,
25
+ DeletePbxColleagueCommand,
16
26
  DeletePbxOAuth2ClientCommand,
27
+ GetColleagueByIdCommand,
17
28
  GetPbxAclGroupsPermissionsCommand,
18
29
  GetPbxCallGroupsCommand,
19
30
  GetPbxColleaguesCommand,
20
31
  GetPbxesCommand,
21
32
  GetPbxOAuth2ClientsCommand,
33
+ GetPersonalInfoCommand,
22
34
  NotificationsCommand,
23
35
  OriginateCommand,
24
36
  OriginateCallCommand,
@@ -0,0 +1,17 @@
1
+ import { de_CreatePbxAclGroupCommand, se_CreatePbxAclGroupCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class CreatePbxAclGroupCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "CreatePbxAclGroup", {})
12
+ .n("WmsApiClient", "CreatePbxAclGroupCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreatePbxAclGroupCommand)
15
+ .de(de_CreatePbxAclGroupCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_CreatePbxColleagueCommand, se_CreatePbxColleagueCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class CreatePbxColleagueCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "CreatePbxColleague", {})
12
+ .n("WmsApiClient", "CreatePbxColleagueCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreatePbxColleagueCommand)
15
+ .de(de_CreatePbxColleagueCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_DeletePbxAclGroupCommand, se_DeletePbxAclGroupCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class DeletePbxAclGroupCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "DeletePbxAclGroup", {})
12
+ .n("WmsApiClient", "DeletePbxAclGroupCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeletePbxAclGroupCommand)
15
+ .de(de_DeletePbxAclGroupCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_DeletePbxColleagueCommand, se_DeletePbxColleagueCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class DeletePbxColleagueCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WmsApi", "DeletePbxColleague", {})
12
+ .n("WmsApiClient", "DeletePbxColleagueCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeletePbxColleagueCommand)
15
+ .de(de_DeletePbxColleagueCommand)
16
+ .build() {
17
+ }
@@ -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
+ }