@wildix/wms-api-client 1.0.1 → 1.0.4

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 (31) hide show
  1. package/dist-cjs/WmsApi.js +10 -0
  2. package/dist-cjs/commands/CreatePbxOAuth2ClientCommand.js +41 -0
  3. package/dist-cjs/commands/DeletePbxOAuth2ClientCommand.js +41 -0
  4. package/dist-cjs/commands/GetPbxCallGroupsCommand.js +41 -0
  5. package/dist-cjs/commands/GetPbxOAuth2ClientsCommand.js +41 -0
  6. package/dist-cjs/commands/UpdatePbxOAuth2ClientCommand.js +41 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/models/models_0.js +48 -1
  9. package/dist-cjs/protocols/Aws_restJson1.js +354 -11
  10. package/dist-es/WmsApi.js +10 -0
  11. package/dist-es/commands/CreatePbxOAuth2ClientCommand.js +37 -0
  12. package/dist-es/commands/DeletePbxOAuth2ClientCommand.js +37 -0
  13. package/dist-es/commands/GetPbxCallGroupsCommand.js +37 -0
  14. package/dist-es/commands/GetPbxOAuth2ClientsCommand.js +37 -0
  15. package/dist-es/commands/UpdatePbxOAuth2ClientCommand.js +37 -0
  16. package/dist-es/commands/index.js +5 -0
  17. package/dist-es/models/models_0.js +44 -0
  18. package/dist-es/protocols/Aws_restJson1.js +344 -11
  19. package/dist-types/WmsApi.d.ts +35 -0
  20. package/dist-types/WmsApiClient.d.ts +7 -2
  21. package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +91 -0
  22. package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +76 -0
  23. package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +2 -0
  24. package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +112 -0
  25. package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -0
  26. package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +84 -0
  27. package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +94 -0
  28. package/dist-types/commands/index.d.ts +5 -0
  29. package/dist-types/models/models_0.d.ts +213 -0
  30. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  31. package/package.json +3 -3
@@ -2,12 +2,22 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WmsApi = void 0;
4
4
  const WmsApiClient_1 = require("./WmsApiClient");
5
+ const CreatePbxOAuth2ClientCommand_1 = require("./commands/CreatePbxOAuth2ClientCommand");
6
+ const DeletePbxOAuth2ClientCommand_1 = require("./commands/DeletePbxOAuth2ClientCommand");
5
7
  const GetPbxAclGroupsPermissionsCommand_1 = require("./commands/GetPbxAclGroupsPermissionsCommand");
8
+ const GetPbxCallGroupsCommand_1 = require("./commands/GetPbxCallGroupsCommand");
6
9
  const GetPbxColleaguesCommand_1 = require("./commands/GetPbxColleaguesCommand");
10
+ const GetPbxOAuth2ClientsCommand_1 = require("./commands/GetPbxOAuth2ClientsCommand");
11
+ const UpdatePbxOAuth2ClientCommand_1 = require("./commands/UpdatePbxOAuth2ClientCommand");
7
12
  const smithy_client_1 = require("@smithy/smithy-client");
8
13
  const commands = {
14
+ CreatePbxOAuth2ClientCommand: CreatePbxOAuth2ClientCommand_1.CreatePbxOAuth2ClientCommand,
15
+ DeletePbxOAuth2ClientCommand: DeletePbxOAuth2ClientCommand_1.DeletePbxOAuth2ClientCommand,
9
16
  GetPbxAclGroupsPermissionsCommand: GetPbxAclGroupsPermissionsCommand_1.GetPbxAclGroupsPermissionsCommand,
17
+ GetPbxCallGroupsCommand: GetPbxCallGroupsCommand_1.GetPbxCallGroupsCommand,
10
18
  GetPbxColleaguesCommand: GetPbxColleaguesCommand_1.GetPbxColleaguesCommand,
19
+ GetPbxOAuth2ClientsCommand: GetPbxOAuth2ClientsCommand_1.GetPbxOAuth2ClientsCommand,
20
+ UpdatePbxOAuth2ClientCommand: UpdatePbxOAuth2ClientCommand_1.UpdatePbxOAuth2ClientCommand,
11
21
  };
12
22
  class WmsApi extends WmsApiClient_1.WmsApiClient {
13
23
  }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePbxOAuth2ClientCommand = 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
+ const types_1 = require("@smithy/types");
9
+ class CreatePbxOAuth2ClientCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ resolveMiddleware(clientStack, configuration, options) {
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "WmsApiClient";
19
+ const commandName = "CreatePbxOAuth2ClientCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
24
+ inputFilterSensitiveLog: (_) => _,
25
+ outputFilterSensitiveLog: (_) => _,
26
+ [types_1.SMITHY_CONTEXT_KEY]: {
27
+ service: "WmsApi",
28
+ operation: "CreatePbxOAuth2Client",
29
+ },
30
+ };
31
+ const { requestHandler } = configuration;
32
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
+ }
34
+ serialize(input, context) {
35
+ return (0, Aws_restJson1_1.se_CreatePbxOAuth2ClientCommand)(input, context);
36
+ }
37
+ deserialize(output, context) {
38
+ return (0, Aws_restJson1_1.de_CreatePbxOAuth2ClientCommand)(output, context);
39
+ }
40
+ }
41
+ exports.CreatePbxOAuth2ClientCommand = CreatePbxOAuth2ClientCommand;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePbxOAuth2ClientCommand = 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
+ const types_1 = require("@smithy/types");
9
+ class DeletePbxOAuth2ClientCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ resolveMiddleware(clientStack, configuration, options) {
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "WmsApiClient";
19
+ const commandName = "DeletePbxOAuth2ClientCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
24
+ inputFilterSensitiveLog: (_) => _,
25
+ outputFilterSensitiveLog: (_) => _,
26
+ [types_1.SMITHY_CONTEXT_KEY]: {
27
+ service: "WmsApi",
28
+ operation: "DeletePbxOAuth2Client",
29
+ },
30
+ };
31
+ const { requestHandler } = configuration;
32
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
+ }
34
+ serialize(input, context) {
35
+ return (0, Aws_restJson1_1.se_DeletePbxOAuth2ClientCommand)(input, context);
36
+ }
37
+ deserialize(output, context) {
38
+ return (0, Aws_restJson1_1.de_DeletePbxOAuth2ClientCommand)(output, context);
39
+ }
40
+ }
41
+ exports.DeletePbxOAuth2ClientCommand = DeletePbxOAuth2ClientCommand;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPbxCallGroupsCommand = 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
+ const types_1 = require("@smithy/types");
9
+ class GetPbxCallGroupsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ resolveMiddleware(clientStack, configuration, options) {
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "WmsApiClient";
19
+ const commandName = "GetPbxCallGroupsCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
24
+ inputFilterSensitiveLog: (_) => _,
25
+ outputFilterSensitiveLog: (_) => _,
26
+ [types_1.SMITHY_CONTEXT_KEY]: {
27
+ service: "WmsApi",
28
+ operation: "GetPbxCallGroups",
29
+ },
30
+ };
31
+ const { requestHandler } = configuration;
32
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
+ }
34
+ serialize(input, context) {
35
+ return (0, Aws_restJson1_1.se_GetPbxCallGroupsCommand)(input, context);
36
+ }
37
+ deserialize(output, context) {
38
+ return (0, Aws_restJson1_1.de_GetPbxCallGroupsCommand)(output, context);
39
+ }
40
+ }
41
+ exports.GetPbxCallGroupsCommand = GetPbxCallGroupsCommand;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPbxOAuth2ClientsCommand = 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
+ const types_1 = require("@smithy/types");
9
+ class GetPbxOAuth2ClientsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ resolveMiddleware(clientStack, configuration, options) {
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "WmsApiClient";
19
+ const commandName = "GetPbxOAuth2ClientsCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
24
+ inputFilterSensitiveLog: (_) => _,
25
+ outputFilterSensitiveLog: (_) => _,
26
+ [types_1.SMITHY_CONTEXT_KEY]: {
27
+ service: "WmsApi",
28
+ operation: "GetPbxOAuth2Clients",
29
+ },
30
+ };
31
+ const { requestHandler } = configuration;
32
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
+ }
34
+ serialize(input, context) {
35
+ return (0, Aws_restJson1_1.se_GetPbxOAuth2ClientsCommand)(input, context);
36
+ }
37
+ deserialize(output, context) {
38
+ return (0, Aws_restJson1_1.de_GetPbxOAuth2ClientsCommand)(output, context);
39
+ }
40
+ }
41
+ exports.GetPbxOAuth2ClientsCommand = GetPbxOAuth2ClientsCommand;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePbxOAuth2ClientCommand = 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
+ const types_1 = require("@smithy/types");
9
+ class UpdatePbxOAuth2ClientCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ resolveMiddleware(clientStack, configuration, options) {
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "WmsApiClient";
19
+ const commandName = "UpdatePbxOAuth2ClientCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
24
+ inputFilterSensitiveLog: (_) => _,
25
+ outputFilterSensitiveLog: (_) => _,
26
+ [types_1.SMITHY_CONTEXT_KEY]: {
27
+ service: "WmsApi",
28
+ operation: "UpdatePbxOAuth2Client",
29
+ },
30
+ };
31
+ const { requestHandler } = configuration;
32
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
+ }
34
+ serialize(input, context) {
35
+ return (0, Aws_restJson1_1.se_UpdatePbxOAuth2ClientCommand)(input, context);
36
+ }
37
+ deserialize(output, context) {
38
+ return (0, Aws_restJson1_1.de_UpdatePbxOAuth2ClientCommand)(output, context);
39
+ }
40
+ }
41
+ exports.UpdatePbxOAuth2ClientCommand = UpdatePbxOAuth2ClientCommand;
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreatePbxOAuth2ClientCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeletePbxOAuth2ClientCommand"), exports);
4
6
  tslib_1.__exportStar(require("./GetPbxAclGroupsPermissionsCommand"), exports);
7
+ tslib_1.__exportStar(require("./GetPbxCallGroupsCommand"), exports);
5
8
  tslib_1.__exportStar(require("./GetPbxColleaguesCommand"), exports);
9
+ tslib_1.__exportStar(require("./GetPbxOAuth2ClientsCommand"), exports);
10
+ tslib_1.__exportStar(require("./UpdatePbxOAuth2ClientCommand"), exports);
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PbxColleagueRole = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.ResponseType = exports.PbxLicenseType = exports.AclGroupPermissionAbility = void 0;
3
+ exports.PbxColleagueRole = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.WmsNotFoundException = exports.WmsValidationException = exports.WmsUnauthorizedException = exports.ResponseType = exports.PbxLicenseType = exports.AclGroupPermissionAbility = void 0;
4
+ const WmsApiServiceException_1 = require("./WmsApiServiceException");
4
5
  exports.AclGroupPermissionAbility = {
5
6
  CAN: "can",
6
7
  CANNOT: "cannot",
@@ -18,6 +19,52 @@ exports.ResponseType = {
18
19
  ERROR: "error",
19
20
  RESULT: "result",
20
21
  };
22
+ class WmsUnauthorizedException extends WmsApiServiceException_1.WmsApiServiceException {
23
+ constructor(opts) {
24
+ super({
25
+ name: "WmsUnauthorizedException",
26
+ $fault: "client",
27
+ ...opts
28
+ });
29
+ this.name = "WmsUnauthorizedException";
30
+ this.$fault = "client";
31
+ Object.setPrototypeOf(this, WmsUnauthorizedException.prototype);
32
+ this.type = opts.type;
33
+ this.reason = opts.reason;
34
+ }
35
+ }
36
+ exports.WmsUnauthorizedException = WmsUnauthorizedException;
37
+ class WmsValidationException extends WmsApiServiceException_1.WmsApiServiceException {
38
+ constructor(opts) {
39
+ super({
40
+ name: "WmsValidationException",
41
+ $fault: "client",
42
+ ...opts
43
+ });
44
+ this.name = "WmsValidationException";
45
+ this.$fault = "client";
46
+ Object.setPrototypeOf(this, WmsValidationException.prototype);
47
+ this.type = opts.type;
48
+ this.reason = opts.reason;
49
+ this.errors = opts.errors;
50
+ }
51
+ }
52
+ exports.WmsValidationException = WmsValidationException;
53
+ class WmsNotFoundException extends WmsApiServiceException_1.WmsApiServiceException {
54
+ constructor(opts) {
55
+ super({
56
+ name: "WmsNotFoundException",
57
+ $fault: "client",
58
+ ...opts
59
+ });
60
+ this.name = "WmsNotFoundException";
61
+ this.$fault = "client";
62
+ Object.setPrototypeOf(this, WmsNotFoundException.prototype);
63
+ this.type = opts.type;
64
+ this.reason = opts.reason;
65
+ }
66
+ }
67
+ exports.WmsNotFoundException = WmsNotFoundException;
21
68
  exports.GetPbxColleaguesDir = {
22
69
  ASC: "asc",
23
70
  DESC: "desc",