@wildix/wim-cache-client 1.0.1 → 1.0.2
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/WimCache.js +2 -0
- package/dist-cjs/WimCacheClient.js +14 -8
- package/dist-cjs/commands/DeleteEntitiesFromGeneralCacheCommand.js +12 -32
- package/dist-cjs/commands/GetEntitiesByIdsCommand.js +12 -32
- package/dist-cjs/commands/PutEntitiesToGeneralCacheCommand.js +12 -32
- package/dist-cjs/commands/SearchEntitiesByListParamsCommand.js +12 -32
- package/dist-cjs/commands/SearchEntitiesByParamsCommand.js +12 -32
- package/dist-cjs/commands/SyncCacheCommand.js +12 -32
- package/dist-cjs/commands/UpdateEntitiesWeightCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +16 -3
- package/dist-cjs/protocols/Aws_restJson1.js +118 -233
- package/dist-cjs/runtimeConfig.browser.js +5 -1
- package/dist-cjs/runtimeConfig.js +8 -3
- package/dist-cjs/runtimeConfig.shared.js +13 -11
- package/dist-cjs/runtimeExtensions.js +2 -10
- package/dist-es/WimCache.js +2 -0
- package/dist-es/WimCacheClient.js +15 -9
- package/dist-es/commands/DeleteEntitiesFromGeneralCacheCommand.js +12 -32
- package/dist-es/commands/GetEntitiesByIdsCommand.js +12 -32
- package/dist-es/commands/PutEntitiesToGeneralCacheCommand.js +12 -32
- package/dist-es/commands/SearchEntitiesByListParamsCommand.js +12 -32
- package/dist-es/commands/SearchEntitiesByParamsCommand.js +12 -32
- package/dist-es/commands/SyncCacheCommand.js +12 -32
- package/dist-es/commands/UpdateEntitiesWeightCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +14 -2
- package/dist-es/protocols/Aws_restJson1.js +109 -226
- package/dist-es/runtimeConfig.browser.js +4 -1
- package/dist-es/runtimeConfig.js +7 -3
- package/dist-es/runtimeConfig.shared.js +13 -11
- package/dist-es/runtimeExtensions.js +2 -10
- package/dist-types/WimCache.d.ts +10 -0
- package/dist-types/WimCacheClient.d.ts +19 -11
- package/dist-types/commands/DeleteEntitiesFromGeneralCacheCommand.d.ts +24 -21
- package/dist-types/commands/GetEntitiesByIdsCommand.d.ts +25 -21
- package/dist-types/commands/PutEntitiesToGeneralCacheCommand.d.ts +24 -21
- package/dist-types/commands/SearchEntitiesByListParamsCommand.d.ts +25 -21
- package/dist-types/commands/SearchEntitiesByParamsCommand.d.ts +25 -21
- package/dist-types/commands/SyncCacheCommand.d.ts +24 -21
- package/dist-types/commands/UpdateEntitiesWeightCommand.d.ts +79 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +2 -0
- package/dist-types/models/WimCacheServiceException.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +104 -71
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +7 -5
- package/dist-types/runtimeConfig.d.ts +7 -5
- package/dist-types/runtimeConfig.native.d.ts +7 -5
- package/package.json +42 -36
package/dist-cjs/WimCache.js
CHANGED
|
@@ -8,6 +8,7 @@ const PutEntitiesToGeneralCacheCommand_1 = require("./commands/PutEntitiesToGene
|
|
|
8
8
|
const SearchEntitiesByListParamsCommand_1 = require("./commands/SearchEntitiesByListParamsCommand");
|
|
9
9
|
const SearchEntitiesByParamsCommand_1 = require("./commands/SearchEntitiesByParamsCommand");
|
|
10
10
|
const SyncCacheCommand_1 = require("./commands/SyncCacheCommand");
|
|
11
|
+
const UpdateEntitiesWeightCommand_1 = require("./commands/UpdateEntitiesWeightCommand");
|
|
11
12
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
12
13
|
const commands = {
|
|
13
14
|
DeleteEntitiesFromGeneralCacheCommand: DeleteEntitiesFromGeneralCacheCommand_1.DeleteEntitiesFromGeneralCacheCommand,
|
|
@@ -16,6 +17,7 @@ const commands = {
|
|
|
16
17
|
SearchEntitiesByListParamsCommand: SearchEntitiesByListParamsCommand_1.SearchEntitiesByListParamsCommand,
|
|
17
18
|
SearchEntitiesByParamsCommand: SearchEntitiesByParamsCommand_1.SearchEntitiesByParamsCommand,
|
|
18
19
|
SyncCacheCommand: SyncCacheCommand_1.SyncCacheCommand,
|
|
20
|
+
UpdateEntitiesWeightCommand: UpdateEntitiesWeightCommand_1.UpdateEntitiesWeightCommand,
|
|
19
21
|
};
|
|
20
22
|
class WimCache extends WimCacheClient_1.WimCacheClient {
|
|
21
23
|
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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;
|
|
@@ -7,3 +7,4 @@ tslib_1.__exportStar(require("./PutEntitiesToGeneralCacheCommand"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./SearchEntitiesByListParamsCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./SearchEntitiesByParamsCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./SyncCacheCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./UpdateEntitiesWeightCommand"), exports);
|
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationException = void 0;
|
|
3
|
+
exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const WimCacheServiceException_1 = require("./WimCacheServiceException");
|
|
5
5
|
class ValidationException extends WimCacheServiceException_1.WimCacheServiceException {
|
|
6
|
+
name = "ValidationException";
|
|
7
|
+
$fault = "client";
|
|
6
8
|
constructor(opts) {
|
|
7
9
|
super({
|
|
8
10
|
name: "ValidationException",
|
|
9
11
|
$fault: "client",
|
|
10
12
|
...opts
|
|
11
13
|
});
|
|
12
|
-
this.name = "ValidationException";
|
|
13
|
-
this.$fault = "client";
|
|
14
14
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.ValidationException = ValidationException;
|
|
18
|
+
class ForbiddenException extends WimCacheServiceException_1.WimCacheServiceException {
|
|
19
|
+
name = "ForbiddenException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ForbiddenException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ForbiddenException = ForbiddenException;
|