@wildix/wim-cache-client 1.0.2 → 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 +6 -0
- package/dist-cjs/commands/DeleteIntegrationDataCommand.js +21 -0
- package/dist-cjs/commands/GetIntegrationDataCommand.js +21 -0
- package/dist-cjs/commands/PutIntegrationDataCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +11 -11
- package/dist-cjs/protocols/Aws_restJson1.js +116 -1
- package/dist-es/WimCache.js +6 -0
- package/dist-es/commands/DeleteIntegrationDataCommand.js +17 -0
- package/dist-es/commands/GetIntegrationDataCommand.js +17 -0
- package/dist-es/commands/PutIntegrationDataCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +8 -8
- package/dist-es/protocols/Aws_restJson1.js +109 -0
- package/dist-types/WimCache.d.ts +21 -0
- package/dist-types/WimCacheClient.d.ts +5 -2
- package/dist-types/commands/DeleteIntegrationDataCommand.d.ts +76 -0
- package/dist-types/commands/GetEntitiesByIdsCommand.d.ts +2 -0
- package/dist-types/commands/GetIntegrationDataCommand.d.ts +84 -0
- package/dist-types/commands/PutIntegrationDataCommand.d.ts +78 -0
- package/dist-types/commands/SearchEntitiesByListParamsCommand.d.ts +2 -0
- package/dist-types/commands/SearchEntitiesByParamsCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +115 -6
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/dist-types/runtimeConfig.d.ts +6 -1
- package/dist-types/runtimeConfig.native.d.ts +6 -1
- package/package.json +2 -2
package/dist-cjs/WimCache.js
CHANGED
|
@@ -3,8 +3,11 @@ 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");
|
|
@@ -12,8 +15,11 @@ const UpdateEntitiesWeightCommand_1 = require("./commands/UpdateEntitiesWeightCo
|
|
|
12
15
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
13
16
|
const commands = {
|
|
14
17
|
DeleteEntitiesFromGeneralCacheCommand: DeleteEntitiesFromGeneralCacheCommand_1.DeleteEntitiesFromGeneralCacheCommand,
|
|
18
|
+
DeleteIntegrationDataCommand: DeleteIntegrationDataCommand_1.DeleteIntegrationDataCommand,
|
|
15
19
|
GetEntitiesByIdsCommand: GetEntitiesByIdsCommand_1.GetEntitiesByIdsCommand,
|
|
20
|
+
GetIntegrationDataCommand: GetIntegrationDataCommand_1.GetIntegrationDataCommand,
|
|
16
21
|
PutEntitiesToGeneralCacheCommand: PutEntitiesToGeneralCacheCommand_1.PutEntitiesToGeneralCacheCommand,
|
|
22
|
+
PutIntegrationDataCommand: PutIntegrationDataCommand_1.PutIntegrationDataCommand,
|
|
17
23
|
SearchEntitiesByListParamsCommand: SearchEntitiesByListParamsCommand_1.SearchEntitiesByListParamsCommand,
|
|
18
24
|
SearchEntitiesByParamsCommand: SearchEntitiesByParamsCommand_1.SearchEntitiesByParamsCommand,
|
|
19
25
|
SyncCacheCommand: SyncCacheCommand_1.SyncCacheCommand,
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -2,8 +2,11 @@
|
|
|
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);
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const WimCacheServiceException_1 = require("./WimCacheServiceException");
|
|
5
|
-
class
|
|
6
|
-
name = "
|
|
5
|
+
class ForbiddenException extends WimCacheServiceException_1.WimCacheServiceException {
|
|
6
|
+
name = "ForbiddenException";
|
|
7
7
|
$fault = "client";
|
|
8
8
|
constructor(opts) {
|
|
9
9
|
super({
|
|
10
|
-
name: "
|
|
10
|
+
name: "ForbiddenException",
|
|
11
11
|
$fault: "client",
|
|
12
12
|
...opts
|
|
13
13
|
});
|
|
14
|
-
Object.setPrototypeOf(this,
|
|
14
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
exports.
|
|
18
|
-
class
|
|
19
|
-
name = "
|
|
17
|
+
exports.ForbiddenException = ForbiddenException;
|
|
18
|
+
class ValidationException extends WimCacheServiceException_1.WimCacheServiceException {
|
|
19
|
+
name = "ValidationException";
|
|
20
20
|
$fault = "client";
|
|
21
21
|
constructor(opts) {
|
|
22
22
|
super({
|
|
23
|
-
name: "
|
|
23
|
+
name: "ValidationException",
|
|
24
24
|
$fault: "client",
|
|
25
25
|
...opts
|
|
26
26
|
});
|
|
27
|
-
Object.setPrototypeOf(this,
|
|
27
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
exports.
|
|
30
|
+
exports.ValidationException = ValidationException;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateEntitiesWeightCommand = exports.de_SyncCacheCommand = exports.de_SearchEntitiesByParamsCommand = exports.de_SearchEntitiesByListParamsCommand = exports.de_PutEntitiesToGeneralCacheCommand = exports.de_GetEntitiesByIdsCommand = exports.de_DeleteEntitiesFromGeneralCacheCommand = exports.se_UpdateEntitiesWeightCommand = exports.se_SyncCacheCommand = exports.se_SearchEntitiesByParamsCommand = exports.se_SearchEntitiesByListParamsCommand = exports.se_PutEntitiesToGeneralCacheCommand = exports.se_GetEntitiesByIdsCommand = exports.se_DeleteEntitiesFromGeneralCacheCommand = void 0;
|
|
3
|
+
exports.de_UpdateEntitiesWeightCommand = exports.de_SyncCacheCommand = exports.de_SearchEntitiesByParamsCommand = exports.de_SearchEntitiesByListParamsCommand = exports.de_PutIntegrationDataCommand = exports.de_PutEntitiesToGeneralCacheCommand = exports.de_GetIntegrationDataCommand = exports.de_GetEntitiesByIdsCommand = exports.de_DeleteIntegrationDataCommand = exports.de_DeleteEntitiesFromGeneralCacheCommand = exports.se_UpdateEntitiesWeightCommand = exports.se_SyncCacheCommand = exports.se_SearchEntitiesByParamsCommand = exports.se_SearchEntitiesByListParamsCommand = exports.se_PutIntegrationDataCommand = exports.se_PutEntitiesToGeneralCacheCommand = exports.se_GetIntegrationDataCommand = exports.se_GetEntitiesByIdsCommand = exports.se_DeleteIntegrationDataCommand = exports.se_DeleteEntitiesFromGeneralCacheCommand = void 0;
|
|
4
4
|
const WimCacheServiceException_1 = require("../models/WimCacheServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -23,6 +23,23 @@ const se_DeleteEntitiesFromGeneralCacheCommand = async (input, context) => {
|
|
|
23
23
|
return b.build();
|
|
24
24
|
};
|
|
25
25
|
exports.se_DeleteEntitiesFromGeneralCacheCommand = se_DeleteEntitiesFromGeneralCacheCommand;
|
|
26
|
+
const se_DeleteIntegrationDataCommand = async (input, context) => {
|
|
27
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
28
|
+
const headers = {};
|
|
29
|
+
b.bp("/v1/cache/integration-data/{id}");
|
|
30
|
+
b.p('id', () => input.id, '{id}', false);
|
|
31
|
+
const query = (0, smithy_client_1.map)({
|
|
32
|
+
[_cI]: [, input[_cI]],
|
|
33
|
+
[_t]: [, input[_t]],
|
|
34
|
+
});
|
|
35
|
+
let body;
|
|
36
|
+
b.m("DELETE")
|
|
37
|
+
.h(headers)
|
|
38
|
+
.q(query)
|
|
39
|
+
.b(body);
|
|
40
|
+
return b.build();
|
|
41
|
+
};
|
|
42
|
+
exports.se_DeleteIntegrationDataCommand = se_DeleteIntegrationDataCommand;
|
|
26
43
|
const se_GetEntitiesByIdsCommand = async (input, context) => {
|
|
27
44
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
28
45
|
const headers = {
|
|
@@ -40,6 +57,23 @@ const se_GetEntitiesByIdsCommand = async (input, context) => {
|
|
|
40
57
|
return b.build();
|
|
41
58
|
};
|
|
42
59
|
exports.se_GetEntitiesByIdsCommand = se_GetEntitiesByIdsCommand;
|
|
60
|
+
const se_GetIntegrationDataCommand = async (input, context) => {
|
|
61
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
62
|
+
const headers = {};
|
|
63
|
+
b.bp("/v1/cache/integration-data/{id}");
|
|
64
|
+
b.p('id', () => input.id, '{id}', false);
|
|
65
|
+
const query = (0, smithy_client_1.map)({
|
|
66
|
+
[_cI]: [, input[_cI]],
|
|
67
|
+
[_t]: [, input[_t]],
|
|
68
|
+
});
|
|
69
|
+
let body;
|
|
70
|
+
b.m("GET")
|
|
71
|
+
.h(headers)
|
|
72
|
+
.q(query)
|
|
73
|
+
.b(body);
|
|
74
|
+
return b.build();
|
|
75
|
+
};
|
|
76
|
+
exports.se_GetIntegrationDataCommand = se_GetIntegrationDataCommand;
|
|
43
77
|
const se_PutEntitiesToGeneralCacheCommand = async (input, context) => {
|
|
44
78
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
45
79
|
const headers = {
|
|
@@ -56,6 +90,29 @@ const se_PutEntitiesToGeneralCacheCommand = async (input, context) => {
|
|
|
56
90
|
return b.build();
|
|
57
91
|
};
|
|
58
92
|
exports.se_PutEntitiesToGeneralCacheCommand = se_PutEntitiesToGeneralCacheCommand;
|
|
93
|
+
const se_PutIntegrationDataCommand = async (input, context) => {
|
|
94
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
95
|
+
const headers = {
|
|
96
|
+
'content-type': 'application/json',
|
|
97
|
+
};
|
|
98
|
+
b.bp("/v1/cache/integration-data");
|
|
99
|
+
const query = (0, smithy_client_1.map)({
|
|
100
|
+
[_cI]: [, input[_cI]],
|
|
101
|
+
});
|
|
102
|
+
let body;
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
104
|
+
'data': _ => se_Document(_, context),
|
|
105
|
+
'id': [],
|
|
106
|
+
'integrationId': [],
|
|
107
|
+
'type': [],
|
|
108
|
+
}));
|
|
109
|
+
b.m("PUT")
|
|
110
|
+
.h(headers)
|
|
111
|
+
.q(query)
|
|
112
|
+
.b(body);
|
|
113
|
+
return b.build();
|
|
114
|
+
};
|
|
115
|
+
exports.se_PutIntegrationDataCommand = se_PutIntegrationDataCommand;
|
|
59
116
|
const se_SearchEntitiesByListParamsCommand = async (input, context) => {
|
|
60
117
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
61
118
|
const headers = {
|
|
@@ -137,6 +194,17 @@ const de_DeleteEntitiesFromGeneralCacheCommand = async (output, context) => {
|
|
|
137
194
|
return contents;
|
|
138
195
|
};
|
|
139
196
|
exports.de_DeleteEntitiesFromGeneralCacheCommand = de_DeleteEntitiesFromGeneralCacheCommand;
|
|
197
|
+
const de_DeleteIntegrationDataCommand = async (output, context) => {
|
|
198
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
199
|
+
return de_CommandError(output, context);
|
|
200
|
+
}
|
|
201
|
+
const contents = (0, smithy_client_1.map)({
|
|
202
|
+
$metadata: deserializeMetadata(output),
|
|
203
|
+
});
|
|
204
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
205
|
+
return contents;
|
|
206
|
+
};
|
|
207
|
+
exports.de_DeleteIntegrationDataCommand = de_DeleteIntegrationDataCommand;
|
|
140
208
|
const de_GetEntitiesByIdsCommand = async (output, context) => {
|
|
141
209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
142
210
|
return de_CommandError(output, context);
|
|
@@ -152,6 +220,21 @@ const de_GetEntitiesByIdsCommand = async (output, context) => {
|
|
|
152
220
|
return contents;
|
|
153
221
|
};
|
|
154
222
|
exports.de_GetEntitiesByIdsCommand = de_GetEntitiesByIdsCommand;
|
|
223
|
+
const de_GetIntegrationDataCommand = async (output, context) => {
|
|
224
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
225
|
+
return de_CommandError(output, context);
|
|
226
|
+
}
|
|
227
|
+
const contents = (0, smithy_client_1.map)({
|
|
228
|
+
$metadata: deserializeMetadata(output),
|
|
229
|
+
});
|
|
230
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
231
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
232
|
+
'items': _ => de_IntegrationDataList(_, context),
|
|
233
|
+
});
|
|
234
|
+
Object.assign(contents, doc);
|
|
235
|
+
return contents;
|
|
236
|
+
};
|
|
237
|
+
exports.de_GetIntegrationDataCommand = de_GetIntegrationDataCommand;
|
|
155
238
|
const de_PutEntitiesToGeneralCacheCommand = async (output, context) => {
|
|
156
239
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
157
240
|
return de_CommandError(output, context);
|
|
@@ -163,6 +246,17 @@ const de_PutEntitiesToGeneralCacheCommand = async (output, context) => {
|
|
|
163
246
|
return contents;
|
|
164
247
|
};
|
|
165
248
|
exports.de_PutEntitiesToGeneralCacheCommand = de_PutEntitiesToGeneralCacheCommand;
|
|
249
|
+
const de_PutIntegrationDataCommand = async (output, context) => {
|
|
250
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
251
|
+
return de_CommandError(output, context);
|
|
252
|
+
}
|
|
253
|
+
const contents = (0, smithy_client_1.map)({
|
|
254
|
+
$metadata: deserializeMetadata(output),
|
|
255
|
+
});
|
|
256
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
257
|
+
return contents;
|
|
258
|
+
};
|
|
259
|
+
exports.de_PutIntegrationDataCommand = de_PutIntegrationDataCommand;
|
|
166
260
|
const de_SearchEntitiesByListParamsCommand = async (output, context) => {
|
|
167
261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
168
262
|
return de_CommandError(output, context);
|
|
@@ -272,6 +366,25 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
272
366
|
});
|
|
273
367
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
274
368
|
};
|
|
369
|
+
const se_Document = (input, context) => {
|
|
370
|
+
return input;
|
|
371
|
+
};
|
|
372
|
+
const de_Document = (output, context) => {
|
|
373
|
+
return output;
|
|
374
|
+
};
|
|
375
|
+
const de_IntegrationDataItem = (output, context) => {
|
|
376
|
+
return (0, smithy_client_1.take)(output, {
|
|
377
|
+
'data': (_) => de_Document(_, context),
|
|
378
|
+
'integrationId': smithy_client_1.expectString,
|
|
379
|
+
'type': smithy_client_1.expectString,
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
const de_IntegrationDataList = (output, context) => {
|
|
383
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
384
|
+
return de_IntegrationDataItem(entry, context);
|
|
385
|
+
});
|
|
386
|
+
return retVal;
|
|
387
|
+
};
|
|
275
388
|
const deserializeMetadata = (output) => ({
|
|
276
389
|
httpStatusCode: output.statusCode,
|
|
277
390
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -280,9 +393,11 @@ const deserializeMetadata = (output) => ({
|
|
|
280
393
|
});
|
|
281
394
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
282
395
|
const _c = "clean";
|
|
396
|
+
const _cI = "companyId";
|
|
283
397
|
const _e = "email";
|
|
284
398
|
const _f = "from";
|
|
285
399
|
const _oI = "organizationId";
|
|
286
400
|
const _p = "phone";
|
|
287
401
|
const _q = "query";
|
|
288
402
|
const _s = "size";
|
|
403
|
+
const _t = "type";
|
package/dist-es/WimCache.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
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";
|
|
@@ -9,8 +12,11 @@ import { UpdateEntitiesWeightCommand, } from "./commands/UpdateEntitiesWeightCom
|
|
|
9
12
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
10
13
|
const commands = {
|
|
11
14
|
DeleteEntitiesFromGeneralCacheCommand,
|
|
15
|
+
DeleteIntegrationDataCommand,
|
|
12
16
|
GetEntitiesByIdsCommand,
|
|
17
|
+
GetIntegrationDataCommand,
|
|
13
18
|
PutEntitiesToGeneralCacheCommand,
|
|
19
|
+
PutIntegrationDataCommand,
|
|
14
20
|
SearchEntitiesByListParamsCommand,
|
|
15
21
|
SearchEntitiesByParamsCommand,
|
|
16
22
|
SyncCacheCommand,
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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,6 +1,9 @@
|
|
|
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";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { WimCacheServiceException as __BaseException } from "./WimCacheServiceException";
|
|
2
|
-
export class
|
|
3
|
-
name = "
|
|
2
|
+
export class ForbiddenException extends __BaseException {
|
|
3
|
+
name = "ForbiddenException";
|
|
4
4
|
$fault = "client";
|
|
5
5
|
constructor(opts) {
|
|
6
6
|
super({
|
|
7
|
-
name: "
|
|
7
|
+
name: "ForbiddenException",
|
|
8
8
|
$fault: "client",
|
|
9
9
|
...opts
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export class
|
|
15
|
-
name = "
|
|
14
|
+
export class ValidationException extends __BaseException {
|
|
15
|
+
name = "ValidationException";
|
|
16
16
|
$fault = "client";
|
|
17
17
|
constructor(opts) {
|
|
18
18
|
super({
|
|
19
|
-
name: "
|
|
19
|
+
name: "ValidationException",
|
|
20
20
|
$fault: "client",
|
|
21
21
|
...opts
|
|
22
22
|
});
|
|
23
|
-
Object.setPrototypeOf(this,
|
|
23
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -19,6 +19,22 @@ export const se_DeleteEntitiesFromGeneralCacheCommand = async (input, context) =
|
|
|
19
19
|
.b(body);
|
|
20
20
|
return b.build();
|
|
21
21
|
};
|
|
22
|
+
export const se_DeleteIntegrationDataCommand = async (input, context) => {
|
|
23
|
+
const b = rb(input, context);
|
|
24
|
+
const headers = {};
|
|
25
|
+
b.bp("/v1/cache/integration-data/{id}");
|
|
26
|
+
b.p('id', () => input.id, '{id}', false);
|
|
27
|
+
const query = map({
|
|
28
|
+
[_cI]: [, input[_cI]],
|
|
29
|
+
[_t]: [, input[_t]],
|
|
30
|
+
});
|
|
31
|
+
let body;
|
|
32
|
+
b.m("DELETE")
|
|
33
|
+
.h(headers)
|
|
34
|
+
.q(query)
|
|
35
|
+
.b(body);
|
|
36
|
+
return b.build();
|
|
37
|
+
};
|
|
22
38
|
export const se_GetEntitiesByIdsCommand = async (input, context) => {
|
|
23
39
|
const b = rb(input, context);
|
|
24
40
|
const headers = {
|
|
@@ -35,6 +51,22 @@ export const se_GetEntitiesByIdsCommand = async (input, context) => {
|
|
|
35
51
|
.b(body);
|
|
36
52
|
return b.build();
|
|
37
53
|
};
|
|
54
|
+
export const se_GetIntegrationDataCommand = async (input, context) => {
|
|
55
|
+
const b = rb(input, context);
|
|
56
|
+
const headers = {};
|
|
57
|
+
b.bp("/v1/cache/integration-data/{id}");
|
|
58
|
+
b.p('id', () => input.id, '{id}', false);
|
|
59
|
+
const query = map({
|
|
60
|
+
[_cI]: [, input[_cI]],
|
|
61
|
+
[_t]: [, input[_t]],
|
|
62
|
+
});
|
|
63
|
+
let body;
|
|
64
|
+
b.m("GET")
|
|
65
|
+
.h(headers)
|
|
66
|
+
.q(query)
|
|
67
|
+
.b(body);
|
|
68
|
+
return b.build();
|
|
69
|
+
};
|
|
38
70
|
export const se_PutEntitiesToGeneralCacheCommand = async (input, context) => {
|
|
39
71
|
const b = rb(input, context);
|
|
40
72
|
const headers = {
|
|
@@ -50,6 +82,28 @@ export const se_PutEntitiesToGeneralCacheCommand = async (input, context) => {
|
|
|
50
82
|
.b(body);
|
|
51
83
|
return b.build();
|
|
52
84
|
};
|
|
85
|
+
export const se_PutIntegrationDataCommand = async (input, context) => {
|
|
86
|
+
const b = rb(input, context);
|
|
87
|
+
const headers = {
|
|
88
|
+
'content-type': 'application/json',
|
|
89
|
+
};
|
|
90
|
+
b.bp("/v1/cache/integration-data");
|
|
91
|
+
const query = map({
|
|
92
|
+
[_cI]: [, input[_cI]],
|
|
93
|
+
});
|
|
94
|
+
let body;
|
|
95
|
+
body = JSON.stringify(take(input, {
|
|
96
|
+
'data': _ => se_Document(_, context),
|
|
97
|
+
'id': [],
|
|
98
|
+
'integrationId': [],
|
|
99
|
+
'type': [],
|
|
100
|
+
}));
|
|
101
|
+
b.m("PUT")
|
|
102
|
+
.h(headers)
|
|
103
|
+
.q(query)
|
|
104
|
+
.b(body);
|
|
105
|
+
return b.build();
|
|
106
|
+
};
|
|
53
107
|
export const se_SearchEntitiesByListParamsCommand = async (input, context) => {
|
|
54
108
|
const b = rb(input, context);
|
|
55
109
|
const headers = {
|
|
@@ -126,6 +180,16 @@ export const de_DeleteEntitiesFromGeneralCacheCommand = async (output, context)
|
|
|
126
180
|
await collectBody(output.body, context);
|
|
127
181
|
return contents;
|
|
128
182
|
};
|
|
183
|
+
export const de_DeleteIntegrationDataCommand = async (output, context) => {
|
|
184
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
185
|
+
return de_CommandError(output, context);
|
|
186
|
+
}
|
|
187
|
+
const contents = map({
|
|
188
|
+
$metadata: deserializeMetadata(output),
|
|
189
|
+
});
|
|
190
|
+
await collectBody(output.body, context);
|
|
191
|
+
return contents;
|
|
192
|
+
};
|
|
129
193
|
export const de_GetEntitiesByIdsCommand = async (output, context) => {
|
|
130
194
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
131
195
|
return de_CommandError(output, context);
|
|
@@ -140,6 +204,20 @@ export const de_GetEntitiesByIdsCommand = async (output, context) => {
|
|
|
140
204
|
Object.assign(contents, doc);
|
|
141
205
|
return contents;
|
|
142
206
|
};
|
|
207
|
+
export const de_GetIntegrationDataCommand = async (output, context) => {
|
|
208
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
209
|
+
return de_CommandError(output, context);
|
|
210
|
+
}
|
|
211
|
+
const contents = map({
|
|
212
|
+
$metadata: deserializeMetadata(output),
|
|
213
|
+
});
|
|
214
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
215
|
+
const doc = take(data, {
|
|
216
|
+
'items': _ => de_IntegrationDataList(_, context),
|
|
217
|
+
});
|
|
218
|
+
Object.assign(contents, doc);
|
|
219
|
+
return contents;
|
|
220
|
+
};
|
|
143
221
|
export const de_PutEntitiesToGeneralCacheCommand = async (output, context) => {
|
|
144
222
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
145
223
|
return de_CommandError(output, context);
|
|
@@ -150,6 +228,16 @@ export const de_PutEntitiesToGeneralCacheCommand = async (output, context) => {
|
|
|
150
228
|
await collectBody(output.body, context);
|
|
151
229
|
return contents;
|
|
152
230
|
};
|
|
231
|
+
export const de_PutIntegrationDataCommand = async (output, context) => {
|
|
232
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
233
|
+
return de_CommandError(output, context);
|
|
234
|
+
}
|
|
235
|
+
const contents = map({
|
|
236
|
+
$metadata: deserializeMetadata(output),
|
|
237
|
+
});
|
|
238
|
+
await collectBody(output.body, context);
|
|
239
|
+
return contents;
|
|
240
|
+
};
|
|
153
241
|
export const de_SearchEntitiesByListParamsCommand = async (output, context) => {
|
|
154
242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
155
243
|
return de_CommandError(output, context);
|
|
@@ -255,6 +343,25 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
255
343
|
});
|
|
256
344
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
257
345
|
};
|
|
346
|
+
const se_Document = (input, context) => {
|
|
347
|
+
return input;
|
|
348
|
+
};
|
|
349
|
+
const de_Document = (output, context) => {
|
|
350
|
+
return output;
|
|
351
|
+
};
|
|
352
|
+
const de_IntegrationDataItem = (output, context) => {
|
|
353
|
+
return take(output, {
|
|
354
|
+
'data': (_) => de_Document(_, context),
|
|
355
|
+
'integrationId': __expectString,
|
|
356
|
+
'type': __expectString,
|
|
357
|
+
});
|
|
358
|
+
};
|
|
359
|
+
const de_IntegrationDataList = (output, context) => {
|
|
360
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
361
|
+
return de_IntegrationDataItem(entry, context);
|
|
362
|
+
});
|
|
363
|
+
return retVal;
|
|
364
|
+
};
|
|
258
365
|
const deserializeMetadata = (output) => ({
|
|
259
366
|
httpStatusCode: output.statusCode,
|
|
260
367
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -263,9 +370,11 @@ const deserializeMetadata = (output) => ({
|
|
|
263
370
|
});
|
|
264
371
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
265
372
|
const _c = "clean";
|
|
373
|
+
const _cI = "companyId";
|
|
266
374
|
const _e = "email";
|
|
267
375
|
const _f = "from";
|
|
268
376
|
const _oI = "organizationId";
|
|
269
377
|
const _p = "phone";
|
|
270
378
|
const _q = "query";
|
|
271
379
|
const _s = "size";
|
|
380
|
+
const _t = "type";
|
package/dist-types/WimCache.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { WimCacheClient } from "./WimCacheClient";
|
|
2
2
|
import { DeleteEntitiesFromGeneralCacheCommandInput, DeleteEntitiesFromGeneralCacheCommandOutput } from "./commands/DeleteEntitiesFromGeneralCacheCommand";
|
|
3
|
+
import { DeleteIntegrationDataCommandInput, DeleteIntegrationDataCommandOutput } from "./commands/DeleteIntegrationDataCommand";
|
|
3
4
|
import { GetEntitiesByIdsCommandInput, GetEntitiesByIdsCommandOutput } from "./commands/GetEntitiesByIdsCommand";
|
|
5
|
+
import { GetIntegrationDataCommandInput, GetIntegrationDataCommandOutput } from "./commands/GetIntegrationDataCommand";
|
|
4
6
|
import { PutEntitiesToGeneralCacheCommandInput, PutEntitiesToGeneralCacheCommandOutput } from "./commands/PutEntitiesToGeneralCacheCommand";
|
|
7
|
+
import { PutIntegrationDataCommandInput, PutIntegrationDataCommandOutput } from "./commands/PutIntegrationDataCommand";
|
|
5
8
|
import { SearchEntitiesByListParamsCommandInput, SearchEntitiesByListParamsCommandOutput } from "./commands/SearchEntitiesByListParamsCommand";
|
|
6
9
|
import { SearchEntitiesByParamsCommandInput, SearchEntitiesByParamsCommandOutput } from "./commands/SearchEntitiesByParamsCommand";
|
|
7
10
|
import { SyncCacheCommandInput, SyncCacheCommandOutput } from "./commands/SyncCacheCommand";
|
|
@@ -15,12 +18,24 @@ export interface WimCache {
|
|
|
15
18
|
deleteEntitiesFromGeneralCache(args: DeleteEntitiesFromGeneralCacheCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEntitiesFromGeneralCacheCommandOutput>;
|
|
16
19
|
deleteEntitiesFromGeneralCache(args: DeleteEntitiesFromGeneralCacheCommandInput, cb: (err: any, data?: DeleteEntitiesFromGeneralCacheCommandOutput) => void): void;
|
|
17
20
|
deleteEntitiesFromGeneralCache(args: DeleteEntitiesFromGeneralCacheCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEntitiesFromGeneralCacheCommandOutput) => void): void;
|
|
21
|
+
/**
|
|
22
|
+
* @see {@link DeleteIntegrationDataCommand}
|
|
23
|
+
*/
|
|
24
|
+
deleteIntegrationData(args: DeleteIntegrationDataCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIntegrationDataCommandOutput>;
|
|
25
|
+
deleteIntegrationData(args: DeleteIntegrationDataCommandInput, cb: (err: any, data?: DeleteIntegrationDataCommandOutput) => void): void;
|
|
26
|
+
deleteIntegrationData(args: DeleteIntegrationDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIntegrationDataCommandOutput) => void): void;
|
|
18
27
|
/**
|
|
19
28
|
* @see {@link GetEntitiesByIdsCommand}
|
|
20
29
|
*/
|
|
21
30
|
getEntitiesByIds(args: GetEntitiesByIdsCommandInput, options?: __HttpHandlerOptions): Promise<GetEntitiesByIdsCommandOutput>;
|
|
22
31
|
getEntitiesByIds(args: GetEntitiesByIdsCommandInput, cb: (err: any, data?: GetEntitiesByIdsCommandOutput) => void): void;
|
|
23
32
|
getEntitiesByIds(args: GetEntitiesByIdsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEntitiesByIdsCommandOutput) => void): void;
|
|
33
|
+
/**
|
|
34
|
+
* @see {@link GetIntegrationDataCommand}
|
|
35
|
+
*/
|
|
36
|
+
getIntegrationData(args: GetIntegrationDataCommandInput, options?: __HttpHandlerOptions): Promise<GetIntegrationDataCommandOutput>;
|
|
37
|
+
getIntegrationData(args: GetIntegrationDataCommandInput, cb: (err: any, data?: GetIntegrationDataCommandOutput) => void): void;
|
|
38
|
+
getIntegrationData(args: GetIntegrationDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIntegrationDataCommandOutput) => void): void;
|
|
24
39
|
/**
|
|
25
40
|
* @see {@link PutEntitiesToGeneralCacheCommand}
|
|
26
41
|
*/
|
|
@@ -28,6 +43,12 @@ export interface WimCache {
|
|
|
28
43
|
putEntitiesToGeneralCache(args: PutEntitiesToGeneralCacheCommandInput, options?: __HttpHandlerOptions): Promise<PutEntitiesToGeneralCacheCommandOutput>;
|
|
29
44
|
putEntitiesToGeneralCache(args: PutEntitiesToGeneralCacheCommandInput, cb: (err: any, data?: PutEntitiesToGeneralCacheCommandOutput) => void): void;
|
|
30
45
|
putEntitiesToGeneralCache(args: PutEntitiesToGeneralCacheCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutEntitiesToGeneralCacheCommandOutput) => void): void;
|
|
46
|
+
/**
|
|
47
|
+
* @see {@link PutIntegrationDataCommand}
|
|
48
|
+
*/
|
|
49
|
+
putIntegrationData(args: PutIntegrationDataCommandInput, options?: __HttpHandlerOptions): Promise<PutIntegrationDataCommandOutput>;
|
|
50
|
+
putIntegrationData(args: PutIntegrationDataCommandInput, cb: (err: any, data?: PutIntegrationDataCommandOutput) => void): void;
|
|
51
|
+
putIntegrationData(args: PutIntegrationDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutIntegrationDataCommandOutput) => void): void;
|
|
31
52
|
/**
|
|
32
53
|
* @see {@link SearchEntitiesByListParamsCommand}
|
|
33
54
|
*/
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { DeleteEntitiesFromGeneralCacheCommandInput, DeleteEntitiesFromGeneralCacheCommandOutput } from "./commands/DeleteEntitiesFromGeneralCacheCommand";
|
|
2
|
+
import { DeleteIntegrationDataCommandInput, DeleteIntegrationDataCommandOutput } from "./commands/DeleteIntegrationDataCommand";
|
|
2
3
|
import { GetEntitiesByIdsCommandInput, GetEntitiesByIdsCommandOutput } from "./commands/GetEntitiesByIdsCommand";
|
|
4
|
+
import { GetIntegrationDataCommandInput, GetIntegrationDataCommandOutput } from "./commands/GetIntegrationDataCommand";
|
|
3
5
|
import { PutEntitiesToGeneralCacheCommandInput, PutEntitiesToGeneralCacheCommandOutput } from "./commands/PutEntitiesToGeneralCacheCommand";
|
|
6
|
+
import { PutIntegrationDataCommandInput, PutIntegrationDataCommandOutput } from "./commands/PutIntegrationDataCommand";
|
|
4
7
|
import { SearchEntitiesByListParamsCommandInput, SearchEntitiesByListParamsCommandOutput } from "./commands/SearchEntitiesByListParamsCommand";
|
|
5
8
|
import { SearchEntitiesByParamsCommandInput, SearchEntitiesByParamsCommandOutput } from "./commands/SearchEntitiesByParamsCommand";
|
|
6
9
|
import { SyncCacheCommandInput, SyncCacheCommandOutput } from "./commands/SyncCacheCommand";
|
|
@@ -16,11 +19,11 @@ export { __Client };
|
|
|
16
19
|
/**
|
|
17
20
|
* @public
|
|
18
21
|
*/
|
|
19
|
-
export type ServiceInputTypes = DeleteEntitiesFromGeneralCacheCommandInput | GetEntitiesByIdsCommandInput | PutEntitiesToGeneralCacheCommandInput | SearchEntitiesByListParamsCommandInput | SearchEntitiesByParamsCommandInput | SyncCacheCommandInput | UpdateEntitiesWeightCommandInput;
|
|
22
|
+
export type ServiceInputTypes = DeleteEntitiesFromGeneralCacheCommandInput | DeleteIntegrationDataCommandInput | GetEntitiesByIdsCommandInput | GetIntegrationDataCommandInput | PutEntitiesToGeneralCacheCommandInput | PutIntegrationDataCommandInput | SearchEntitiesByListParamsCommandInput | SearchEntitiesByParamsCommandInput | SyncCacheCommandInput | UpdateEntitiesWeightCommandInput;
|
|
20
23
|
/**
|
|
21
24
|
* @public
|
|
22
25
|
*/
|
|
23
|
-
export type ServiceOutputTypes = DeleteEntitiesFromGeneralCacheCommandOutput | GetEntitiesByIdsCommandOutput | PutEntitiesToGeneralCacheCommandOutput | SearchEntitiesByListParamsCommandOutput | SearchEntitiesByParamsCommandOutput | SyncCacheCommandOutput | UpdateEntitiesWeightCommandOutput;
|
|
26
|
+
export type ServiceOutputTypes = DeleteEntitiesFromGeneralCacheCommandOutput | DeleteIntegrationDataCommandOutput | GetEntitiesByIdsCommandOutput | GetIntegrationDataCommandOutput | PutEntitiesToGeneralCacheCommandOutput | PutIntegrationDataCommandOutput | SearchEntitiesByListParamsCommandOutput | SearchEntitiesByParamsCommandOutput | SyncCacheCommandOutput | UpdateEntitiesWeightCommandOutput;
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
*/
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WimCacheClientResolvedConfig } from "../WimCacheClient";
|
|
2
|
+
import { DeleteIntegrationDataInput, DeleteIntegrationDataOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteIntegrationDataCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteIntegrationDataCommandInput extends DeleteIntegrationDataInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteIntegrationDataCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteIntegrationDataCommandOutput extends DeleteIntegrationDataOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteIntegrationDataCommand_base: {
|
|
25
|
+
new (input: DeleteIntegrationDataCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteIntegrationDataCommandInput, DeleteIntegrationDataCommandOutput, WimCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteIntegrationDataCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteIntegrationDataCommandInput, DeleteIntegrationDataCommandOutput, WimCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Deletes integration data by id with optional filters
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WimCacheClient, DeleteIntegrationDataCommand } from "@wildix/wim-cache-client"; // ES Modules import
|
|
35
|
+
* // const { WimCacheClient, DeleteIntegrationDataCommand } = require("@wildix/wim-cache-client"); // CommonJS import
|
|
36
|
+
* const client = new WimCacheClient(config);
|
|
37
|
+
* const input = { // DeleteIntegrationDataInput
|
|
38
|
+
* id: "STRING_VALUE", // required
|
|
39
|
+
* companyId: "STRING_VALUE",
|
|
40
|
+
* type: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeleteIntegrationDataCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeleteIntegrationDataCommandInput - {@link DeleteIntegrationDataCommandInput}
|
|
49
|
+
* @returns {@link DeleteIntegrationDataCommandOutput}
|
|
50
|
+
* @see {@link DeleteIntegrationDataCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeleteIntegrationDataCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link WimCacheClientResolvedConfig | config} for WimCacheClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ValidationException} (client fault)
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link WimCacheServiceException}
|
|
59
|
+
* <p>Base exception class for all service exceptions from WimCache service.</p>
|
|
60
|
+
*
|
|
61
|
+
*
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export declare class DeleteIntegrationDataCommand extends DeleteIntegrationDataCommand_base {
|
|
65
|
+
/** @internal type navigation helper, not in runtime. */
|
|
66
|
+
protected static __types: {
|
|
67
|
+
api: {
|
|
68
|
+
input: DeleteIntegrationDataInput;
|
|
69
|
+
output: {};
|
|
70
|
+
};
|
|
71
|
+
sdk: {
|
|
72
|
+
input: DeleteIntegrationDataCommandInput;
|
|
73
|
+
output: DeleteIntegrationDataCommandOutput;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -64,6 +64,8 @@ declare const GetEntitiesByIdsCommand_base: {
|
|
|
64
64
|
* // IsActive: true || false,
|
|
65
65
|
* // TimeZoneSidKey: "STRING_VALUE",
|
|
66
66
|
* // Extension: "STRING_VALUE",
|
|
67
|
+
* // PersonMobilePhone: "STRING_VALUE",
|
|
68
|
+
* // PersonOtherPhone: "STRING_VALUE",
|
|
67
69
|
* // attributes: { // SalesforceAttrubuteField
|
|
68
70
|
* // url: "STRING_VALUE",
|
|
69
71
|
* // type: "STRING_VALUE",
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WimCacheClientResolvedConfig } from "../WimCacheClient";
|
|
2
|
+
import { GetIntegrationDataInput, GetIntegrationDataOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetIntegrationDataCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetIntegrationDataCommandInput extends GetIntegrationDataInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetIntegrationDataCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetIntegrationDataCommandOutput extends GetIntegrationDataOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetIntegrationDataCommand_base: {
|
|
25
|
+
new (input: GetIntegrationDataCommandInput): import("@smithy/smithy-client").CommandImpl<GetIntegrationDataCommandInput, GetIntegrationDataCommandOutput, WimCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetIntegrationDataCommandInput): import("@smithy/smithy-client").CommandImpl<GetIntegrationDataCommandInput, GetIntegrationDataCommandOutput, WimCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves integration data by id with optional filters
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WimCacheClient, GetIntegrationDataCommand } from "@wildix/wim-cache-client"; // ES Modules import
|
|
35
|
+
* // const { WimCacheClient, GetIntegrationDataCommand } = require("@wildix/wim-cache-client"); // CommonJS import
|
|
36
|
+
* const client = new WimCacheClient(config);
|
|
37
|
+
* const input = { // GetIntegrationDataInput
|
|
38
|
+
* id: "STRING_VALUE", // required
|
|
39
|
+
* companyId: "STRING_VALUE",
|
|
40
|
+
* type: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetIntegrationDataCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetIntegrationDataOutput
|
|
45
|
+
* // items: [ // IntegrationDataList
|
|
46
|
+
* // { // IntegrationDataItem
|
|
47
|
+
* // type: "STRING_VALUE", // required
|
|
48
|
+
* // data: "DOCUMENT_VALUE", // required
|
|
49
|
+
* // integrationId: "STRING_VALUE", // required
|
|
50
|
+
* // },
|
|
51
|
+
* // ],
|
|
52
|
+
* // };
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param GetIntegrationDataCommandInput - {@link GetIntegrationDataCommandInput}
|
|
57
|
+
* @returns {@link GetIntegrationDataCommandOutput}
|
|
58
|
+
* @see {@link GetIntegrationDataCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link GetIntegrationDataCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link WimCacheClientResolvedConfig | config} for WimCacheClient's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ValidationException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link WimCacheServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from WimCache service.</p>
|
|
68
|
+
*
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class GetIntegrationDataCommand extends GetIntegrationDataCommand_base {
|
|
73
|
+
/** @internal type navigation helper, not in runtime. */
|
|
74
|
+
protected static __types: {
|
|
75
|
+
api: {
|
|
76
|
+
input: GetIntegrationDataInput;
|
|
77
|
+
output: GetIntegrationDataOutput;
|
|
78
|
+
};
|
|
79
|
+
sdk: {
|
|
80
|
+
input: GetIntegrationDataCommandInput;
|
|
81
|
+
output: GetIntegrationDataCommandOutput;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WimCacheClientResolvedConfig } from "../WimCacheClient";
|
|
2
|
+
import { PutIntegrationDataInput, PutIntegrationDataOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutIntegrationDataCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutIntegrationDataCommandInput extends PutIntegrationDataInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutIntegrationDataCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutIntegrationDataCommandOutput extends PutIntegrationDataOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PutIntegrationDataCommand_base: {
|
|
25
|
+
new (input: PutIntegrationDataCommandInput): import("@smithy/smithy-client").CommandImpl<PutIntegrationDataCommandInput, PutIntegrationDataCommandOutput, WimCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: PutIntegrationDataCommandInput): import("@smithy/smithy-client").CommandImpl<PutIntegrationDataCommandInput, PutIntegrationDataCommandOutput, WimCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Upsert operation for storing untyped integration data in the cache
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WimCacheClient, PutIntegrationDataCommand } from "@wildix/wim-cache-client"; // ES Modules import
|
|
35
|
+
* // const { WimCacheClient, PutIntegrationDataCommand } = require("@wildix/wim-cache-client"); // CommonJS import
|
|
36
|
+
* const client = new WimCacheClient(config);
|
|
37
|
+
* const input = { // PutIntegrationDataInput
|
|
38
|
+
* integrationId: "STRING_VALUE", // required
|
|
39
|
+
* id: "STRING_VALUE", // required
|
|
40
|
+
* data: "DOCUMENT_VALUE", // required
|
|
41
|
+
* type: "STRING_VALUE", // required
|
|
42
|
+
* companyId: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new PutIntegrationDataCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // {};
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param PutIntegrationDataCommandInput - {@link PutIntegrationDataCommandInput}
|
|
51
|
+
* @returns {@link PutIntegrationDataCommandOutput}
|
|
52
|
+
* @see {@link PutIntegrationDataCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link PutIntegrationDataCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link WimCacheClientResolvedConfig | config} for WimCacheClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ValidationException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link WimCacheServiceException}
|
|
61
|
+
* <p>Base exception class for all service exceptions from WimCache service.</p>
|
|
62
|
+
*
|
|
63
|
+
*
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
export declare class PutIntegrationDataCommand extends PutIntegrationDataCommand_base {
|
|
67
|
+
/** @internal type navigation helper, not in runtime. */
|
|
68
|
+
protected static __types: {
|
|
69
|
+
api: {
|
|
70
|
+
input: PutIntegrationDataInput;
|
|
71
|
+
output: {};
|
|
72
|
+
};
|
|
73
|
+
sdk: {
|
|
74
|
+
input: PutIntegrationDataCommandInput;
|
|
75
|
+
output: PutIntegrationDataCommandOutput;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -71,6 +71,8 @@ declare const SearchEntitiesByListParamsCommand_base: {
|
|
|
71
71
|
* // IsActive: true || false,
|
|
72
72
|
* // TimeZoneSidKey: "STRING_VALUE",
|
|
73
73
|
* // Extension: "STRING_VALUE",
|
|
74
|
+
* // PersonMobilePhone: "STRING_VALUE",
|
|
75
|
+
* // PersonOtherPhone: "STRING_VALUE",
|
|
74
76
|
* // attributes: { // SalesforceAttrubuteField
|
|
75
77
|
* // url: "STRING_VALUE",
|
|
76
78
|
* // type: "STRING_VALUE",
|
|
@@ -70,6 +70,8 @@ declare const SearchEntitiesByParamsCommand_base: {
|
|
|
70
70
|
* // IsActive: true || false,
|
|
71
71
|
* // TimeZoneSidKey: "STRING_VALUE",
|
|
72
72
|
* // Extension: "STRING_VALUE",
|
|
73
|
+
* // PersonMobilePhone: "STRING_VALUE",
|
|
74
|
+
* // PersonOtherPhone: "STRING_VALUE",
|
|
73
75
|
* // attributes: { // SalesforceAttrubuteField
|
|
74
76
|
* // url: "STRING_VALUE",
|
|
75
77
|
* // type: "STRING_VALUE",
|
|
@@ -1,6 +1,9 @@
|
|
|
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";
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { WimCacheServiceException as __BaseException } from "./WimCacheServiceException";
|
|
2
2
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
+
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
3
4
|
/**
|
|
4
5
|
* @public
|
|
5
6
|
*/
|
|
6
|
-
export declare class
|
|
7
|
-
readonly name: "
|
|
7
|
+
export declare class ForbiddenException extends __BaseException {
|
|
8
|
+
readonly name: "ForbiddenException";
|
|
8
9
|
readonly $fault: "client";
|
|
9
10
|
/**
|
|
10
11
|
* @internal
|
|
11
12
|
*/
|
|
12
|
-
constructor(opts: __ExceptionOptionType<
|
|
13
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* @public
|
|
16
17
|
*/
|
|
17
|
-
export declare class
|
|
18
|
-
readonly name: "
|
|
18
|
+
export declare class ValidationException extends __BaseException {
|
|
19
|
+
readonly name: "ValidationException";
|
|
19
20
|
readonly $fault: "client";
|
|
20
21
|
/**
|
|
21
22
|
* @internal
|
|
22
23
|
*/
|
|
23
|
-
constructor(opts: __ExceptionOptionType<
|
|
24
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* @public
|
|
@@ -47,6 +48,31 @@ export interface DeleteEntitiesFromGeneralCacheInput {
|
|
|
47
48
|
*/
|
|
48
49
|
export interface DeleteEntitiesFromGeneralCacheOutput {
|
|
49
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export interface DeleteIntegrationDataInput {
|
|
55
|
+
/**
|
|
56
|
+
* Unique identifier
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
id: string;
|
|
60
|
+
/**
|
|
61
|
+
* Company identifier
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
companyId?: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Integration data type
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
type?: string | undefined;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export interface DeleteIntegrationDataOutput {
|
|
75
|
+
}
|
|
50
76
|
/**
|
|
51
77
|
* @public
|
|
52
78
|
*/
|
|
@@ -74,6 +100,8 @@ export interface EntityData {
|
|
|
74
100
|
IsActive?: boolean | undefined;
|
|
75
101
|
TimeZoneSidKey?: string | undefined;
|
|
76
102
|
Extension?: string | undefined;
|
|
103
|
+
PersonMobilePhone?: string | undefined;
|
|
104
|
+
PersonOtherPhone?: string | undefined;
|
|
77
105
|
attributes?: SalesforceAttrubuteField | undefined;
|
|
78
106
|
CallPhone?: string | undefined;
|
|
79
107
|
Archived?: boolean | undefined;
|
|
@@ -128,6 +156,52 @@ export interface GetEntitiesByIdsInput {
|
|
|
128
156
|
export interface GetEntitiesByIdsOutput {
|
|
129
157
|
items?: (Entity)[] | undefined;
|
|
130
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
export interface GetIntegrationDataInput {
|
|
163
|
+
/**
|
|
164
|
+
* Unique identifier
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
id: string;
|
|
168
|
+
/**
|
|
169
|
+
* Company identifier should be provided only for S2S authorization
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
companyId?: string | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Data type
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
type?: string | undefined;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
export interface IntegrationDataItem {
|
|
183
|
+
/**
|
|
184
|
+
* Integration data type
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
type: string;
|
|
188
|
+
/**
|
|
189
|
+
* Integration data
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
data: __DocumentType;
|
|
193
|
+
/**
|
|
194
|
+
* Integration identifier
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
integrationId: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
export interface GetIntegrationDataOutput {
|
|
203
|
+
items?: (IntegrationDataItem)[] | undefined;
|
|
204
|
+
}
|
|
131
205
|
/**
|
|
132
206
|
* @public
|
|
133
207
|
*/
|
|
@@ -139,6 +213,41 @@ export interface PutEntitiesToGeneralCacheInput {
|
|
|
139
213
|
*/
|
|
140
214
|
export interface PutEntitiesToGeneralCacheOutput {
|
|
141
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
export interface PutIntegrationDataInput {
|
|
220
|
+
/**
|
|
221
|
+
* Integration identifier
|
|
222
|
+
* @public
|
|
223
|
+
*/
|
|
224
|
+
integrationId: string;
|
|
225
|
+
/**
|
|
226
|
+
* Unique identifier that will be used for the data retrieving
|
|
227
|
+
* @public
|
|
228
|
+
*/
|
|
229
|
+
id: string;
|
|
230
|
+
/**
|
|
231
|
+
* Integration data
|
|
232
|
+
* @public
|
|
233
|
+
*/
|
|
234
|
+
data: __DocumentType;
|
|
235
|
+
/**
|
|
236
|
+
* Integration data type
|
|
237
|
+
* @public
|
|
238
|
+
*/
|
|
239
|
+
type: string;
|
|
240
|
+
/**
|
|
241
|
+
* Company identifier should be provided only for S2S authorization
|
|
242
|
+
* @public
|
|
243
|
+
*/
|
|
244
|
+
companyId?: string | undefined;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* @public
|
|
248
|
+
*/
|
|
249
|
+
export interface PutIntegrationDataOutput {
|
|
250
|
+
}
|
|
142
251
|
/**
|
|
143
252
|
* @public
|
|
144
253
|
*/
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { DeleteEntitiesFromGeneralCacheCommandInput, DeleteEntitiesFromGeneralCacheCommandOutput } from "../commands/DeleteEntitiesFromGeneralCacheCommand";
|
|
2
|
+
import { DeleteIntegrationDataCommandInput, DeleteIntegrationDataCommandOutput } from "../commands/DeleteIntegrationDataCommand";
|
|
2
3
|
import { GetEntitiesByIdsCommandInput, GetEntitiesByIdsCommandOutput } from "../commands/GetEntitiesByIdsCommand";
|
|
4
|
+
import { GetIntegrationDataCommandInput, GetIntegrationDataCommandOutput } from "../commands/GetIntegrationDataCommand";
|
|
3
5
|
import { PutEntitiesToGeneralCacheCommandInput, PutEntitiesToGeneralCacheCommandOutput } from "../commands/PutEntitiesToGeneralCacheCommand";
|
|
6
|
+
import { PutIntegrationDataCommandInput, PutIntegrationDataCommandOutput } from "../commands/PutIntegrationDataCommand";
|
|
4
7
|
import { SearchEntitiesByListParamsCommandInput, SearchEntitiesByListParamsCommandOutput } from "../commands/SearchEntitiesByListParamsCommand";
|
|
5
8
|
import { SearchEntitiesByParamsCommandInput, SearchEntitiesByParamsCommandOutput } from "../commands/SearchEntitiesByParamsCommand";
|
|
6
9
|
import { SyncCacheCommandInput, SyncCacheCommandOutput } from "../commands/SyncCacheCommand";
|
|
@@ -11,14 +14,26 @@ import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
|
11
14
|
* serializeAws_restJson1DeleteEntitiesFromGeneralCacheCommand
|
|
12
15
|
*/
|
|
13
16
|
export declare const se_DeleteEntitiesFromGeneralCacheCommand: (input: DeleteEntitiesFromGeneralCacheCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
17
|
+
/**
|
|
18
|
+
* serializeAws_restJson1DeleteIntegrationDataCommand
|
|
19
|
+
*/
|
|
20
|
+
export declare const se_DeleteIntegrationDataCommand: (input: DeleteIntegrationDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
21
|
/**
|
|
15
22
|
* serializeAws_restJson1GetEntitiesByIdsCommand
|
|
16
23
|
*/
|
|
17
24
|
export declare const se_GetEntitiesByIdsCommand: (input: GetEntitiesByIdsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
|
+
/**
|
|
26
|
+
* serializeAws_restJson1GetIntegrationDataCommand
|
|
27
|
+
*/
|
|
28
|
+
export declare const se_GetIntegrationDataCommand: (input: GetIntegrationDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
29
|
/**
|
|
19
30
|
* serializeAws_restJson1PutEntitiesToGeneralCacheCommand
|
|
20
31
|
*/
|
|
21
32
|
export declare const se_PutEntitiesToGeneralCacheCommand: (input: PutEntitiesToGeneralCacheCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* serializeAws_restJson1PutIntegrationDataCommand
|
|
35
|
+
*/
|
|
36
|
+
export declare const se_PutIntegrationDataCommand: (input: PutIntegrationDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
22
37
|
/**
|
|
23
38
|
* serializeAws_restJson1SearchEntitiesByListParamsCommand
|
|
24
39
|
*/
|
|
@@ -39,14 +54,26 @@ export declare const se_UpdateEntitiesWeightCommand: (input: UpdateEntitiesWeigh
|
|
|
39
54
|
* deserializeAws_restJson1DeleteEntitiesFromGeneralCacheCommand
|
|
40
55
|
*/
|
|
41
56
|
export declare const de_DeleteEntitiesFromGeneralCacheCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteEntitiesFromGeneralCacheCommandOutput>;
|
|
57
|
+
/**
|
|
58
|
+
* deserializeAws_restJson1DeleteIntegrationDataCommand
|
|
59
|
+
*/
|
|
60
|
+
export declare const de_DeleteIntegrationDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteIntegrationDataCommandOutput>;
|
|
42
61
|
/**
|
|
43
62
|
* deserializeAws_restJson1GetEntitiesByIdsCommand
|
|
44
63
|
*/
|
|
45
64
|
export declare const de_GetEntitiesByIdsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetEntitiesByIdsCommandOutput>;
|
|
65
|
+
/**
|
|
66
|
+
* deserializeAws_restJson1GetIntegrationDataCommand
|
|
67
|
+
*/
|
|
68
|
+
export declare const de_GetIntegrationDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetIntegrationDataCommandOutput>;
|
|
46
69
|
/**
|
|
47
70
|
* deserializeAws_restJson1PutEntitiesToGeneralCacheCommand
|
|
48
71
|
*/
|
|
49
72
|
export declare const de_PutEntitiesToGeneralCacheCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutEntitiesToGeneralCacheCommandOutput>;
|
|
73
|
+
/**
|
|
74
|
+
* deserializeAws_restJson1PutIntegrationDataCommand
|
|
75
|
+
*/
|
|
76
|
+
export declare const de_PutIntegrationDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutIntegrationDataCommandOutput>;
|
|
50
77
|
/**
|
|
51
78
|
* deserializeAws_restJson1SearchEntitiesByListParamsCommand
|
|
52
79
|
*/
|
|
@@ -15,8 +15,13 @@ export declare const getRuntimeConfig: (config: WimCacheClientConfig) => {
|
|
|
15
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
16
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
17
17
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
|
-
apiVersion: string;
|
|
19
18
|
cacheMiddleware?: boolean | undefined;
|
|
19
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
20
|
+
protocolSettings?: {
|
|
21
|
+
[setting: string]: unknown;
|
|
22
|
+
defaultNamespace?: string | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
apiVersion: string;
|
|
20
25
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
26
|
base64Decoder: import("@smithy/types").Decoder;
|
|
22
27
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -16,8 +16,13 @@ export declare const getRuntimeConfig: (config: WimCacheClientConfig) => {
|
|
|
16
16
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
17
17
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
18
18
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
|
-
apiVersion: string;
|
|
20
19
|
cacheMiddleware?: boolean | undefined;
|
|
20
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
21
|
+
protocolSettings?: {
|
|
22
|
+
[setting: string]: unknown;
|
|
23
|
+
defaultNamespace?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
apiVersion: string;
|
|
21
26
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
27
|
base64Decoder: import("@smithy/types").Decoder;
|
|
23
28
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -8,8 +8,13 @@ export declare const getRuntimeConfig: (config: WimCacheClientConfig) => {
|
|
|
8
8
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
9
9
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
10
10
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
11
|
-
apiVersion: string;
|
|
12
11
|
cacheMiddleware?: boolean | undefined;
|
|
12
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
13
|
+
protocolSettings?: {
|
|
14
|
+
[setting: string]: unknown;
|
|
15
|
+
defaultNamespace?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
apiVersion: string;
|
|
13
18
|
urlParser: import("@smithy/types").UrlParser;
|
|
14
19
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
15
20
|
streamCollector: import("@smithy/types").StreamCollector;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-cache-client",
|
|
3
3
|
"description": "@wildix/wim-cache-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
"react-native": {
|
|
81
81
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|