@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.
- package/dist-cjs/WimCache.js +8 -0
- package/dist-cjs/WimCacheClient.js +14 -8
- package/dist-cjs/commands/DeleteEntitiesFromGeneralCacheCommand.js +12 -32
- package/dist-cjs/commands/DeleteIntegrationDataCommand.js +21 -0
- package/dist-cjs/commands/GetEntitiesByIdsCommand.js +12 -32
- package/dist-cjs/commands/GetIntegrationDataCommand.js +21 -0
- package/dist-cjs/commands/PutEntitiesToGeneralCacheCommand.js +12 -32
- package/dist-cjs/commands/PutIntegrationDataCommand.js +21 -0
- 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 +4 -0
- package/dist-cjs/models/models_0.js +16 -3
- package/dist-cjs/protocols/Aws_restJson1.js +227 -227
- 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 +8 -0
- package/dist-es/WimCacheClient.js +15 -9
- package/dist-es/commands/DeleteEntitiesFromGeneralCacheCommand.js +12 -32
- package/dist-es/commands/DeleteIntegrationDataCommand.js +17 -0
- package/dist-es/commands/GetEntitiesByIdsCommand.js +12 -32
- package/dist-es/commands/GetIntegrationDataCommand.js +17 -0
- package/dist-es/commands/PutEntitiesToGeneralCacheCommand.js +12 -32
- package/dist-es/commands/PutIntegrationDataCommand.js +17 -0
- 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 +4 -0
- package/dist-es/models/models_0.js +14 -2
- package/dist-es/protocols/Aws_restJson1.js +209 -217
- 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 +31 -0
- package/dist-types/WimCacheClient.d.ts +22 -11
- package/dist-types/commands/DeleteEntitiesFromGeneralCacheCommand.d.ts +24 -21
- package/dist-types/commands/DeleteIntegrationDataCommand.d.ts +76 -0
- package/dist-types/commands/GetEntitiesByIdsCommand.d.ts +27 -21
- package/dist-types/commands/GetIntegrationDataCommand.d.ts +84 -0
- package/dist-types/commands/PutEntitiesToGeneralCacheCommand.d.ts +24 -21
- package/dist-types/commands/PutIntegrationDataCommand.d.ts +78 -0
- package/dist-types/commands/SearchEntitiesByListParamsCommand.d.ts +27 -21
- package/dist-types/commands/SearchEntitiesByParamsCommand.d.ts +27 -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 +4 -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 +213 -71
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/runtimeConfig.browser.d.ts +12 -5
- package/dist-types/runtimeConfig.d.ts +12 -5
- package/dist-types/runtimeConfig.native.d.ts +12 -5
- package/package.json +41 -35
|
@@ -5,15 +5,17 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
5
5
|
const url_parser_1 = require("@smithy/url-parser");
|
|
6
6
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
7
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
|
-
const getRuntimeConfig = (config) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
const getRuntimeConfig = (config) => {
|
|
9
|
+
return {
|
|
10
|
+
apiVersion: "v2",
|
|
11
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
12
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
13
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
14
|
+
extensions: config?.extensions ?? [],
|
|
15
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
16
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
19
21
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,17 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.resolveRuntimeExtensions = void 0;
|
|
4
4
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const asPartial = (t) => t;
|
|
7
6
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
8
|
-
const extensionConfiguration =
|
|
9
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
10
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
};
|
|
7
|
+
const extensionConfiguration = Object.assign((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig));
|
|
12
8
|
extensions.forEach(extension => extension.configure(extensionConfiguration));
|
|
13
|
-
return
|
|
14
|
-
...runtimeConfig,
|
|
15
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
16
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
17
|
-
};
|
|
9
|
+
return Object.assign(runtimeConfig, (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration));
|
|
18
10
|
};
|
|
19
11
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
package/dist-es/WimCache.js
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import { WimCacheClient, } from "./WimCacheClient";
|
|
2
2
|
import { DeleteEntitiesFromGeneralCacheCommand, } from "./commands/DeleteEntitiesFromGeneralCacheCommand";
|
|
3
|
+
import { DeleteIntegrationDataCommand, } from "./commands/DeleteIntegrationDataCommand";
|
|
3
4
|
import { GetEntitiesByIdsCommand, } from "./commands/GetEntitiesByIdsCommand";
|
|
5
|
+
import { GetIntegrationDataCommand, } from "./commands/GetIntegrationDataCommand";
|
|
4
6
|
import { PutEntitiesToGeneralCacheCommand, } from "./commands/PutEntitiesToGeneralCacheCommand";
|
|
7
|
+
import { PutIntegrationDataCommand, } from "./commands/PutIntegrationDataCommand";
|
|
5
8
|
import { SearchEntitiesByListParamsCommand, } from "./commands/SearchEntitiesByListParamsCommand";
|
|
6
9
|
import { SearchEntitiesByParamsCommand, } from "./commands/SearchEntitiesByParamsCommand";
|
|
7
10
|
import { SyncCacheCommand, } from "./commands/SyncCacheCommand";
|
|
11
|
+
import { UpdateEntitiesWeightCommand, } from "./commands/UpdateEntitiesWeightCommand";
|
|
8
12
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
9
13
|
const commands = {
|
|
10
14
|
DeleteEntitiesFromGeneralCacheCommand,
|
|
15
|
+
DeleteIntegrationDataCommand,
|
|
11
16
|
GetEntitiesByIdsCommand,
|
|
17
|
+
GetIntegrationDataCommand,
|
|
12
18
|
PutEntitiesToGeneralCacheCommand,
|
|
19
|
+
PutIntegrationDataCommand,
|
|
13
20
|
SearchEntitiesByListParamsCommand,
|
|
14
21
|
SearchEntitiesByParamsCommand,
|
|
15
22
|
SyncCacheCommand,
|
|
23
|
+
UpdateEntitiesWeightCommand,
|
|
16
24
|
};
|
|
17
25
|
export class WimCache extends WimCacheClient {
|
|
18
26
|
}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
2
2
|
import { resolveRuntimeExtensions, } from "./runtimeExtensions";
|
|
3
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
4
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
5
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
3
6
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
4
|
-
import { authorizationMiddleware } from
|
|
7
|
+
import { authorizationMiddleware } from '@wildix/smithy-utils';
|
|
5
8
|
export { __Client };
|
|
6
9
|
export class WimCacheClient extends __Client {
|
|
10
|
+
config;
|
|
7
11
|
constructor(...[configuration]) {
|
|
8
12
|
let _config_0 = __getRuntimeConfig(configuration || {});
|
|
9
|
-
|
|
13
|
+
super(_config_0);
|
|
14
|
+
this.initConfig = _config_0;
|
|
15
|
+
let _config_1 = resolveUserAgentConfig(_config_0);
|
|
16
|
+
let _config_2 = resolveRetryConfig(_config_1);
|
|
17
|
+
let _config_3 = resolveRuntimeExtensions(_config_2, configuration?.extensions || []);
|
|
18
|
+
const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `wim-${configuration.env}.wildix.com` : 'wim.wildix.com';
|
|
10
19
|
const endpoint = () => {
|
|
11
|
-
let env = configuration.env && configuration.env !== 'prod' ? '-' + configuration.env : '';
|
|
12
|
-
const hostname = `wim${env}.wildix.com`;
|
|
13
20
|
return {
|
|
14
21
|
hostname,
|
|
15
22
|
protocol: "https",
|
|
@@ -17,13 +24,12 @@ export class WimCacheClient extends __Client {
|
|
|
17
24
|
path: ''
|
|
18
25
|
};
|
|
19
26
|
};
|
|
20
|
-
const config = {
|
|
21
|
-
..._config_1,
|
|
22
|
-
endpoint,
|
|
23
|
-
};
|
|
24
|
-
super(config);
|
|
27
|
+
const config = { ..._config_3, endpoint };
|
|
25
28
|
this.config = config;
|
|
26
29
|
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
30
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
27
33
|
}
|
|
28
34
|
destroy() {
|
|
29
35
|
super.destroy();
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_DeleteEntitiesFromGeneralCacheCommand, se_DeleteEntitiesFromGeneralCacheCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class DeleteEntitiesFromGeneralCacheCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WimCache",
|
|
25
|
-
operation: "DeleteEntitiesFromGeneralCache",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_DeleteEntitiesFromGeneralCacheCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_DeleteEntitiesFromGeneralCacheCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class DeleteEntitiesFromGeneralCacheCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WimCache", "DeleteEntitiesFromGeneralCache", {})
|
|
12
|
+
.n("WimCacheClient", "DeleteEntitiesFromGeneralCacheCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeleteEntitiesFromGeneralCacheCommand)
|
|
15
|
+
.de(de_DeleteEntitiesFromGeneralCacheCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DeleteIntegrationDataCommand, se_DeleteIntegrationDataCommand, } 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 DeleteIntegrationDataCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WimCache", "DeleteIntegrationData", {})
|
|
12
|
+
.n("WimCacheClient", "DeleteIntegrationDataCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeleteIntegrationDataCommand)
|
|
15
|
+
.de(de_DeleteIntegrationDataCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_GetEntitiesByIdsCommand, se_GetEntitiesByIdsCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class GetEntitiesByIdsCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WimCache",
|
|
25
|
-
operation: "GetEntitiesByIds",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_GetEntitiesByIdsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_GetEntitiesByIdsCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class GetEntitiesByIdsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WimCache", "GetEntitiesByIds", {})
|
|
12
|
+
.n("WimCacheClient", "GetEntitiesByIdsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetEntitiesByIdsCommand)
|
|
15
|
+
.de(de_GetEntitiesByIdsCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetIntegrationDataCommand, se_GetIntegrationDataCommand, } 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 GetIntegrationDataCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WimCache", "GetIntegrationData", {})
|
|
12
|
+
.n("WimCacheClient", "GetIntegrationDataCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetIntegrationDataCommand)
|
|
15
|
+
.de(de_GetIntegrationDataCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_PutEntitiesToGeneralCacheCommand, se_PutEntitiesToGeneralCacheCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class PutEntitiesToGeneralCacheCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WimCache",
|
|
25
|
-
operation: "PutEntitiesToGeneralCache",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_PutEntitiesToGeneralCacheCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_PutEntitiesToGeneralCacheCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class PutEntitiesToGeneralCacheCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WimCache", "PutEntitiesToGeneralCache", {})
|
|
12
|
+
.n("WimCacheClient", "PutEntitiesToGeneralCacheCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_PutEntitiesToGeneralCacheCommand)
|
|
15
|
+
.de(de_PutEntitiesToGeneralCacheCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_PutIntegrationDataCommand, se_PutIntegrationDataCommand, } 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 PutIntegrationDataCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WimCache", "PutIntegrationData", {})
|
|
12
|
+
.n("WimCacheClient", "PutIntegrationDataCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_PutIntegrationDataCommand)
|
|
15
|
+
.de(de_PutIntegrationDataCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_SearchEntitiesByListParamsCommand, se_SearchEntitiesByListParamsCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class SearchEntitiesByListParamsCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WimCache",
|
|
25
|
-
operation: "SearchEntitiesByListParams",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_SearchEntitiesByListParamsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_SearchEntitiesByListParamsCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class SearchEntitiesByListParamsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WimCache", "SearchEntitiesByListParams", {})
|
|
12
|
+
.n("WimCacheClient", "SearchEntitiesByListParamsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SearchEntitiesByListParamsCommand)
|
|
15
|
+
.de(de_SearchEntitiesByListParamsCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_SearchEntitiesByParamsCommand, se_SearchEntitiesByParamsCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class SearchEntitiesByParamsCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WimCache",
|
|
25
|
-
operation: "SearchEntitiesByParams",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_SearchEntitiesByParamsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_SearchEntitiesByParamsCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class SearchEntitiesByParamsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WimCache", "SearchEntitiesByParams", {})
|
|
12
|
+
.n("WimCacheClient", "SearchEntitiesByParamsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SearchEntitiesByParamsCommand)
|
|
15
|
+
.de(de_SearchEntitiesByParamsCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import { de_SyncCacheCommand, se_SyncCacheCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
4
|
export { $Command };
|
|
6
|
-
export class SyncCacheCommand extends $Command
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
logger,
|
|
19
|
-
clientName,
|
|
20
|
-
commandName,
|
|
21
|
-
inputFilterSensitiveLog: (_) => _,
|
|
22
|
-
outputFilterSensitiveLog: (_) => _,
|
|
23
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
-
service: "WimCache",
|
|
25
|
-
operation: "SyncCache",
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
const { requestHandler } = configuration;
|
|
29
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
-
}
|
|
31
|
-
serialize(input, context) {
|
|
32
|
-
return se_SyncCacheCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
deserialize(output, context) {
|
|
35
|
-
return de_SyncCacheCommand(output, context);
|
|
36
|
-
}
|
|
5
|
+
export class SyncCacheCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WimCache", "SyncCache", {})
|
|
12
|
+
.n("WimCacheClient", "SyncCacheCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SyncCacheCommand)
|
|
15
|
+
.de(de_SyncCacheCommand)
|
|
16
|
+
.build() {
|
|
37
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_UpdateEntitiesWeightCommand, se_UpdateEntitiesWeightCommand, } 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 UpdateEntitiesWeightCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WimCache", "UpdateEntitiesWeight", {})
|
|
12
|
+
.n("WimCacheClient", "UpdateEntitiesWeightCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_UpdateEntitiesWeightCommand)
|
|
15
|
+
.de(de_UpdateEntitiesWeightCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from "./DeleteEntitiesFromGeneralCacheCommand";
|
|
2
|
+
export * from "./DeleteIntegrationDataCommand";
|
|
2
3
|
export * from "./GetEntitiesByIdsCommand";
|
|
4
|
+
export * from "./GetIntegrationDataCommand";
|
|
3
5
|
export * from "./PutEntitiesToGeneralCacheCommand";
|
|
6
|
+
export * from "./PutIntegrationDataCommand";
|
|
4
7
|
export * from "./SearchEntitiesByListParamsCommand";
|
|
5
8
|
export * from "./SearchEntitiesByParamsCommand";
|
|
6
9
|
export * from "./SyncCacheCommand";
|
|
10
|
+
export * from "./UpdateEntitiesWeightCommand";
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import { WimCacheServiceException as __BaseException } from "./WimCacheServiceException";
|
|
2
|
+
export class ForbiddenException extends __BaseException {
|
|
3
|
+
name = "ForbiddenException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "ForbiddenException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
2
14
|
export class ValidationException extends __BaseException {
|
|
15
|
+
name = "ValidationException";
|
|
16
|
+
$fault = "client";
|
|
3
17
|
constructor(opts) {
|
|
4
18
|
super({
|
|
5
19
|
name: "ValidationException",
|
|
6
20
|
$fault: "client",
|
|
7
21
|
...opts
|
|
8
22
|
});
|
|
9
|
-
this.name = "ValidationException";
|
|
10
|
-
this.$fault = "client";
|
|
11
23
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
12
24
|
}
|
|
13
25
|
}
|