@wildix/wim-cache-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 (59) hide show
  1. package/dist-cjs/WimCache.js +8 -0
  2. package/dist-cjs/WimCacheClient.js +14 -8
  3. package/dist-cjs/commands/DeleteEntitiesFromGeneralCacheCommand.js +12 -32
  4. package/dist-cjs/commands/DeleteIntegrationDataCommand.js +21 -0
  5. package/dist-cjs/commands/GetEntitiesByIdsCommand.js +12 -32
  6. package/dist-cjs/commands/GetIntegrationDataCommand.js +21 -0
  7. package/dist-cjs/commands/PutEntitiesToGeneralCacheCommand.js +12 -32
  8. package/dist-cjs/commands/PutIntegrationDataCommand.js +21 -0
  9. package/dist-cjs/commands/SearchEntitiesByListParamsCommand.js +12 -32
  10. package/dist-cjs/commands/SearchEntitiesByParamsCommand.js +12 -32
  11. package/dist-cjs/commands/SyncCacheCommand.js +12 -32
  12. package/dist-cjs/commands/UpdateEntitiesWeightCommand.js +21 -0
  13. package/dist-cjs/commands/index.js +4 -0
  14. package/dist-cjs/models/models_0.js +16 -3
  15. package/dist-cjs/protocols/Aws_restJson1.js +227 -227
  16. package/dist-cjs/runtimeConfig.browser.js +5 -1
  17. package/dist-cjs/runtimeConfig.js +8 -3
  18. package/dist-cjs/runtimeConfig.shared.js +13 -11
  19. package/dist-cjs/runtimeExtensions.js +2 -10
  20. package/dist-es/WimCache.js +8 -0
  21. package/dist-es/WimCacheClient.js +15 -9
  22. package/dist-es/commands/DeleteEntitiesFromGeneralCacheCommand.js +12 -32
  23. package/dist-es/commands/DeleteIntegrationDataCommand.js +17 -0
  24. package/dist-es/commands/GetEntitiesByIdsCommand.js +12 -32
  25. package/dist-es/commands/GetIntegrationDataCommand.js +17 -0
  26. package/dist-es/commands/PutEntitiesToGeneralCacheCommand.js +12 -32
  27. package/dist-es/commands/PutIntegrationDataCommand.js +17 -0
  28. package/dist-es/commands/SearchEntitiesByListParamsCommand.js +12 -32
  29. package/dist-es/commands/SearchEntitiesByParamsCommand.js +12 -32
  30. package/dist-es/commands/SyncCacheCommand.js +12 -32
  31. package/dist-es/commands/UpdateEntitiesWeightCommand.js +17 -0
  32. package/dist-es/commands/index.js +4 -0
  33. package/dist-es/models/models_0.js +14 -2
  34. package/dist-es/protocols/Aws_restJson1.js +209 -217
  35. package/dist-es/runtimeConfig.browser.js +4 -1
  36. package/dist-es/runtimeConfig.js +7 -3
  37. package/dist-es/runtimeConfig.shared.js +13 -11
  38. package/dist-es/runtimeExtensions.js +2 -10
  39. package/dist-types/WimCache.d.ts +31 -0
  40. package/dist-types/WimCacheClient.d.ts +22 -11
  41. package/dist-types/commands/DeleteEntitiesFromGeneralCacheCommand.d.ts +24 -21
  42. package/dist-types/commands/DeleteIntegrationDataCommand.d.ts +76 -0
  43. package/dist-types/commands/GetEntitiesByIdsCommand.d.ts +27 -21
  44. package/dist-types/commands/GetIntegrationDataCommand.d.ts +84 -0
  45. package/dist-types/commands/PutEntitiesToGeneralCacheCommand.d.ts +24 -21
  46. package/dist-types/commands/PutIntegrationDataCommand.d.ts +78 -0
  47. package/dist-types/commands/SearchEntitiesByListParamsCommand.d.ts +27 -21
  48. package/dist-types/commands/SearchEntitiesByParamsCommand.d.ts +27 -21
  49. package/dist-types/commands/SyncCacheCommand.d.ts +24 -21
  50. package/dist-types/commands/UpdateEntitiesWeightCommand.d.ts +79 -0
  51. package/dist-types/commands/index.d.ts +4 -0
  52. package/dist-types/index.d.ts +2 -0
  53. package/dist-types/models/WimCacheServiceException.d.ts +2 -1
  54. package/dist-types/models/models_0.d.ts +213 -71
  55. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  56. package/dist-types/runtimeConfig.browser.d.ts +12 -5
  57. package/dist-types/runtimeConfig.d.ts +12 -5
  58. package/dist-types/runtimeConfig.native.d.ts +12 -5
  59. package/package.json +41 -35
@@ -3,19 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WimCache = void 0;
4
4
  const WimCacheClient_1 = require("./WimCacheClient");
5
5
  const DeleteEntitiesFromGeneralCacheCommand_1 = require("./commands/DeleteEntitiesFromGeneralCacheCommand");
6
+ const DeleteIntegrationDataCommand_1 = require("./commands/DeleteIntegrationDataCommand");
6
7
  const GetEntitiesByIdsCommand_1 = require("./commands/GetEntitiesByIdsCommand");
8
+ const GetIntegrationDataCommand_1 = require("./commands/GetIntegrationDataCommand");
7
9
  const PutEntitiesToGeneralCacheCommand_1 = require("./commands/PutEntitiesToGeneralCacheCommand");
10
+ const PutIntegrationDataCommand_1 = require("./commands/PutIntegrationDataCommand");
8
11
  const SearchEntitiesByListParamsCommand_1 = require("./commands/SearchEntitiesByListParamsCommand");
9
12
  const SearchEntitiesByParamsCommand_1 = require("./commands/SearchEntitiesByParamsCommand");
10
13
  const SyncCacheCommand_1 = require("./commands/SyncCacheCommand");
14
+ const UpdateEntitiesWeightCommand_1 = require("./commands/UpdateEntitiesWeightCommand");
11
15
  const smithy_client_1 = require("@smithy/smithy-client");
12
16
  const commands = {
13
17
  DeleteEntitiesFromGeneralCacheCommand: DeleteEntitiesFromGeneralCacheCommand_1.DeleteEntitiesFromGeneralCacheCommand,
18
+ DeleteIntegrationDataCommand: DeleteIntegrationDataCommand_1.DeleteIntegrationDataCommand,
14
19
  GetEntitiesByIdsCommand: GetEntitiesByIdsCommand_1.GetEntitiesByIdsCommand,
20
+ GetIntegrationDataCommand: GetIntegrationDataCommand_1.GetIntegrationDataCommand,
15
21
  PutEntitiesToGeneralCacheCommand: PutEntitiesToGeneralCacheCommand_1.PutEntitiesToGeneralCacheCommand,
22
+ PutIntegrationDataCommand: PutIntegrationDataCommand_1.PutIntegrationDataCommand,
16
23
  SearchEntitiesByListParamsCommand: SearchEntitiesByListParamsCommand_1.SearchEntitiesByListParamsCommand,
17
24
  SearchEntitiesByParamsCommand: SearchEntitiesByParamsCommand_1.SearchEntitiesByParamsCommand,
18
25
  SyncCacheCommand: SyncCacheCommand_1.SyncCacheCommand,
26
+ UpdateEntitiesWeightCommand: UpdateEntitiesWeightCommand_1.UpdateEntitiesWeightCommand,
19
27
  };
20
28
  class WimCache extends WimCacheClient_1.WimCacheClient {
21
29
  }
@@ -3,16 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WimCacheClient = exports.__Client = void 0;
4
4
  const runtimeConfig_1 = require("./runtimeConfig");
5
5
  const runtimeExtensions_1 = require("./runtimeExtensions");
6
+ const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
7
+ const middleware_content_length_1 = require("@smithy/middleware-content-length");
8
+ const middleware_retry_1 = require("@smithy/middleware-retry");
6
9
  const smithy_client_1 = require("@smithy/smithy-client");
7
10
  Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
8
11
  const smithy_utils_1 = require("@wildix/smithy-utils");
9
12
  class WimCacheClient extends smithy_client_1.Client {
13
+ config;
10
14
  constructor(...[configuration]) {
11
15
  let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
12
- let _config_1 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_0, configuration?.extensions || []);
16
+ super(_config_0);
17
+ this.initConfig = _config_0;
18
+ let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
19
+ let _config_2 = (0, middleware_retry_1.resolveRetryConfig)(_config_1);
20
+ let _config_3 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_2, configuration?.extensions || []);
21
+ const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `wim-${configuration.env}.wildix.com` : 'wim.wildix.com';
13
22
  const endpoint = () => {
14
- let env = configuration.env && configuration.env !== 'prod' ? '-' + configuration.env : '';
15
- const hostname = `wim${env}.wildix.com`;
16
23
  return {
17
24
  hostname,
18
25
  protocol: "https",
@@ -20,13 +27,12 @@ class WimCacheClient extends smithy_client_1.Client {
20
27
  path: ''
21
28
  };
22
29
  };
23
- const config = {
24
- ..._config_1,
25
- endpoint,
26
- };
27
- super(config);
30
+ const config = { ..._config_3, endpoint };
28
31
  this.config = config;
29
32
  this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
33
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
34
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
35
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
30
36
  }
31
37
  destroy() {
32
38
  super.destroy();
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class DeleteEntitiesFromGeneralCacheCommand 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 = "WimCacheClient";
19
- const commandName = "DeleteEntitiesFromGeneralCacheCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "WimCache",
28
- operation: "DeleteEntitiesFromGeneralCache",
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_DeleteEntitiesFromGeneralCacheCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_DeleteEntitiesFromGeneralCacheCommand)(output, context);
39
- }
8
+ class DeleteEntitiesFromGeneralCacheCommand 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("WimCache", "DeleteEntitiesFromGeneralCache", {})
15
+ .n("WimCacheClient", "DeleteEntitiesFromGeneralCacheCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeleteEntitiesFromGeneralCacheCommand)
18
+ .de(Aws_restJson1_1.de_DeleteEntitiesFromGeneralCacheCommand)
19
+ .build() {
40
20
  }
41
21
  exports.DeleteEntitiesFromGeneralCacheCommand = DeleteEntitiesFromGeneralCacheCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteIntegrationDataCommand = 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 DeleteIntegrationDataCommand 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("WimCache", "DeleteIntegrationData", {})
15
+ .n("WimCacheClient", "DeleteIntegrationDataCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeleteIntegrationDataCommand)
18
+ .de(Aws_restJson1_1.de_DeleteIntegrationDataCommand)
19
+ .build() {
20
+ }
21
+ exports.DeleteIntegrationDataCommand = DeleteIntegrationDataCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class GetEntitiesByIdsCommand 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 = "WimCacheClient";
19
- const commandName = "GetEntitiesByIdsCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "WimCache",
28
- operation: "GetEntitiesByIds",
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_GetEntitiesByIdsCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_GetEntitiesByIdsCommand)(output, context);
39
- }
8
+ class GetEntitiesByIdsCommand 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("WimCache", "GetEntitiesByIds", {})
15
+ .n("WimCacheClient", "GetEntitiesByIdsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetEntitiesByIdsCommand)
18
+ .de(Aws_restJson1_1.de_GetEntitiesByIdsCommand)
19
+ .build() {
40
20
  }
41
21
  exports.GetEntitiesByIdsCommand = GetEntitiesByIdsCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetIntegrationDataCommand = 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 GetIntegrationDataCommand 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("WimCache", "GetIntegrationData", {})
15
+ .n("WimCacheClient", "GetIntegrationDataCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetIntegrationDataCommand)
18
+ .de(Aws_restJson1_1.de_GetIntegrationDataCommand)
19
+ .build() {
20
+ }
21
+ exports.GetIntegrationDataCommand = GetIntegrationDataCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class PutEntitiesToGeneralCacheCommand 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 = "WimCacheClient";
19
- const commandName = "PutEntitiesToGeneralCacheCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "WimCache",
28
- operation: "PutEntitiesToGeneralCache",
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_PutEntitiesToGeneralCacheCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_PutEntitiesToGeneralCacheCommand)(output, context);
39
- }
8
+ class PutEntitiesToGeneralCacheCommand 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("WimCache", "PutEntitiesToGeneralCache", {})
15
+ .n("WimCacheClient", "PutEntitiesToGeneralCacheCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_PutEntitiesToGeneralCacheCommand)
18
+ .de(Aws_restJson1_1.de_PutEntitiesToGeneralCacheCommand)
19
+ .build() {
40
20
  }
41
21
  exports.PutEntitiesToGeneralCacheCommand = PutEntitiesToGeneralCacheCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutIntegrationDataCommand = 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 PutIntegrationDataCommand 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("WimCache", "PutIntegrationData", {})
15
+ .n("WimCacheClient", "PutIntegrationDataCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_PutIntegrationDataCommand)
18
+ .de(Aws_restJson1_1.de_PutIntegrationDataCommand)
19
+ .build() {
20
+ }
21
+ exports.PutIntegrationDataCommand = PutIntegrationDataCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class SearchEntitiesByListParamsCommand 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 = "WimCacheClient";
19
- const commandName = "SearchEntitiesByListParamsCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "WimCache",
28
- operation: "SearchEntitiesByListParams",
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_SearchEntitiesByListParamsCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_SearchEntitiesByListParamsCommand)(output, context);
39
- }
8
+ class SearchEntitiesByListParamsCommand 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("WimCache", "SearchEntitiesByListParams", {})
15
+ .n("WimCacheClient", "SearchEntitiesByListParamsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_SearchEntitiesByListParamsCommand)
18
+ .de(Aws_restJson1_1.de_SearchEntitiesByListParamsCommand)
19
+ .build() {
40
20
  }
41
21
  exports.SearchEntitiesByListParamsCommand = SearchEntitiesByListParamsCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class SearchEntitiesByParamsCommand 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 = "WimCacheClient";
19
- const commandName = "SearchEntitiesByParamsCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "WimCache",
28
- operation: "SearchEntitiesByParams",
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_SearchEntitiesByParamsCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_SearchEntitiesByParamsCommand)(output, context);
39
- }
8
+ class SearchEntitiesByParamsCommand 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("WimCache", "SearchEntitiesByParams", {})
15
+ .n("WimCacheClient", "SearchEntitiesByParamsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_SearchEntitiesByParamsCommand)
18
+ .de(Aws_restJson1_1.de_SearchEntitiesByParamsCommand)
19
+ .build() {
40
20
  }
41
21
  exports.SearchEntitiesByParamsCommand = SearchEntitiesByParamsCommand;
@@ -5,37 +5,17 @@ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
9
- class SyncCacheCommand 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 = "WimCacheClient";
19
- const commandName = "SyncCacheCommand";
20
- const handlerExecutionContext = {
21
- logger,
22
- clientName,
23
- commandName,
24
- inputFilterSensitiveLog: (_) => _,
25
- outputFilterSensitiveLog: (_) => _,
26
- [types_1.SMITHY_CONTEXT_KEY]: {
27
- service: "WimCache",
28
- operation: "SyncCache",
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_SyncCacheCommand)(input, context);
36
- }
37
- deserialize(output, context) {
38
- return (0, Aws_restJson1_1.de_SyncCacheCommand)(output, context);
39
- }
8
+ class SyncCacheCommand 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("WimCache", "SyncCache", {})
15
+ .n("WimCacheClient", "SyncCacheCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_SyncCacheCommand)
18
+ .de(Aws_restJson1_1.de_SyncCacheCommand)
19
+ .build() {
40
20
  }
41
21
  exports.SyncCacheCommand = SyncCacheCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateEntitiesWeightCommand = 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 UpdateEntitiesWeightCommand 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("WimCache", "UpdateEntitiesWeight", {})
15
+ .n("WimCacheClient", "UpdateEntitiesWeightCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_UpdateEntitiesWeightCommand)
18
+ .de(Aws_restJson1_1.de_UpdateEntitiesWeightCommand)
19
+ .build() {
20
+ }
21
+ exports.UpdateEntitiesWeightCommand = UpdateEntitiesWeightCommand;
@@ -2,8 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./DeleteEntitiesFromGeneralCacheCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeleteIntegrationDataCommand"), exports);
5
6
  tslib_1.__exportStar(require("./GetEntitiesByIdsCommand"), exports);
7
+ tslib_1.__exportStar(require("./GetIntegrationDataCommand"), exports);
6
8
  tslib_1.__exportStar(require("./PutEntitiesToGeneralCacheCommand"), exports);
9
+ tslib_1.__exportStar(require("./PutIntegrationDataCommand"), exports);
7
10
  tslib_1.__exportStar(require("./SearchEntitiesByListParamsCommand"), exports);
8
11
  tslib_1.__exportStar(require("./SearchEntitiesByParamsCommand"), exports);
9
12
  tslib_1.__exportStar(require("./SyncCacheCommand"), exports);
13
+ tslib_1.__exportStar(require("./UpdateEntitiesWeightCommand"), exports);
@@ -1,16 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValidationException = void 0;
3
+ exports.ValidationException = exports.ForbiddenException = void 0;
4
4
  const WimCacheServiceException_1 = require("./WimCacheServiceException");
5
+ class ForbiddenException extends WimCacheServiceException_1.WimCacheServiceException {
6
+ name = "ForbiddenException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "ForbiddenException",
11
+ $fault: "client",
12
+ ...opts
13
+ });
14
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
15
+ }
16
+ }
17
+ exports.ForbiddenException = ForbiddenException;
5
18
  class ValidationException extends WimCacheServiceException_1.WimCacheServiceException {
19
+ name = "ValidationException";
20
+ $fault = "client";
6
21
  constructor(opts) {
7
22
  super({
8
23
  name: "ValidationException",
9
24
  $fault: "client",
10
25
  ...opts
11
26
  });
12
- this.name = "ValidationException";
13
- this.$fault = "client";
14
27
  Object.setPrototypeOf(this, ValidationException.prototype);
15
28
  }
16
29
  }