@aws-sdk/client-personalize-events 3.33.0 → 3.36.1
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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/PersonalizeEvents.js +1 -7
- package/{dist/cjs → dist-cjs}/PersonalizeEventsClient.js +8 -19
- package/{dist/cjs → dist-cjs}/commands/PutEventsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/PutItemsCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/PutUsersCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -28
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +3 -9
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/PersonalizeEvents.js +2 -8
- package/{dist/es → dist-es}/PersonalizeEventsClient.js +2 -13
- package/{dist/es → dist-es}/commands/PutEventsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/PutItemsCommand.js +4 -32
- package/{dist/es → dist-es}/commands/PutUsersCommand.js +4 -31
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -28
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +56 -62
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/PersonalizeEvents.d.ts +2 -2
- package/{dist/types → dist-types}/PersonalizeEventsClient.d.ts +4 -4
- package/{dist/types → dist-types}/commands/PutEventsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutItemsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutUsersCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/PersonalizeEvents.d.ts +6 -20
- package/dist-types/ts3.4/PersonalizeEventsClient.d.ts +70 -0
- package/dist-types/ts3.4/commands/PutEventsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutItemsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutUsersCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +111 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/PersonalizeEvents.ts +0 -94
- package/PersonalizeEventsClient.ts +0 -240
- package/commands/PutEventsCommand.ts +0 -99
- package/commands/PutItemsCommand.ts +0 -100
- package/commands/PutUsersCommand.ts +0 -99
- package/dist/cjs/PersonalizeEvents.js.map +0 -1
- package/dist/cjs/PersonalizeEventsClient.js.map +0 -1
- package/dist/cjs/commands/PutEventsCommand.js.map +0 -1
- package/dist/cjs/commands/PutItemsCommand.js.map +0 -1
- package/dist/cjs/commands/PutUsersCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/PersonalizeEvents.js.map +0 -1
- package/dist/es/PersonalizeEventsClient.js.map +0 -1
- package/dist/es/commands/PutEventsCommand.js.map +0 -1
- package/dist/es/commands/PutItemsCommand.js.map +0 -1
- package/dist/es/commands/PutUsersCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -7
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/PersonalizeEventsClient.d.ts +0 -137
- package/dist/types/ts3.4/commands/PutEventsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/PutItemsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/PutUsersCommand.d.ts +0 -36
- package/dist/types/ts3.4/models/models_0.d.ts +0 -216
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -266
- package/protocols/Aws_restJson1.ts +0 -484
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -1,42 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { PutItemsRequest } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_restJson1PutItemsCommand, serializeAws_restJson1PutItemsCommand, } from "../protocols/Aws_restJson1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* </p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { PersonalizeEventsClient, PutItemsCommand } from "@aws-sdk/client-personalize-events"; // ES Modules import
|
|
14
|
-
* // const { PersonalizeEventsClient, PutItemsCommand } = require("@aws-sdk/client-personalize-events"); // CommonJS import
|
|
15
|
-
* const client = new PersonalizeEventsClient(config);
|
|
16
|
-
* const command = new PutItemsCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link PutItemsCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link PutItemsCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link PersonalizeEventsClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
var PutItemsCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { PutItemsRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1PutItemsCommand, serializeAws_restJson1PutItemsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var PutItemsCommand = (function (_super) {
|
|
26
7
|
__extends(PutItemsCommand, _super);
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
8
|
function PutItemsCommand(input) {
|
|
30
|
-
var _this =
|
|
31
|
-
// Start section: command_constructor
|
|
32
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
33
10
|
_this.input = input;
|
|
34
11
|
return _this;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
PutItemsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -64,4 +37,3 @@ var PutItemsCommand = /** @class */ (function (_super) {
|
|
|
64
37
|
return PutItemsCommand;
|
|
65
38
|
}($Command));
|
|
66
39
|
export { PutItemsCommand };
|
|
67
|
-
//# sourceMappingURL=PutItemsCommand.js.map
|
|
@@ -1,41 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { PutUsersRequest } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_restJson1PutUsersCommand, serializeAws_restJson1PutUsersCommand, } from "../protocols/Aws_restJson1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* @example
|
|
10
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
11
|
-
* ```javascript
|
|
12
|
-
* import { PersonalizeEventsClient, PutUsersCommand } from "@aws-sdk/client-personalize-events"; // ES Modules import
|
|
13
|
-
* // const { PersonalizeEventsClient, PutUsersCommand } = require("@aws-sdk/client-personalize-events"); // CommonJS import
|
|
14
|
-
* const client = new PersonalizeEventsClient(config);
|
|
15
|
-
* const command = new PutUsersCommand(input);
|
|
16
|
-
* const response = await client.send(command);
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @see {@link PutUsersCommandInput} for command's `input` shape.
|
|
20
|
-
* @see {@link PutUsersCommandOutput} for command's `response` shape.
|
|
21
|
-
* @see {@link PersonalizeEventsClientResolvedConfig | config} for command's `input` shape.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
var PutUsersCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { PutUsersRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1PutUsersCommand, serializeAws_restJson1PutUsersCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var PutUsersCommand = (function (_super) {
|
|
25
7
|
__extends(PutUsersCommand, _super);
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
8
|
function PutUsersCommand(input) {
|
|
29
|
-
var _this =
|
|
30
|
-
// Start section: command_constructor
|
|
31
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
32
10
|
_this.input = input;
|
|
33
11
|
return _this;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
PutUsersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -63,4 +37,3 @@ var PutUsersCommand = /** @class */ (function (_super) {
|
|
|
63
37
|
return PutUsersCommand;
|
|
64
38
|
}($Command));
|
|
65
39
|
export { PutUsersCommand };
|
|
66
|
-
//# sourceMappingURL=PutUsersCommand.js.map
|
|
@@ -47,7 +47,6 @@ var partitionHash = {
|
|
|
47
47
|
};
|
|
48
48
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
|
-
return [2
|
|
50
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "personalize", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
51
51
|
});
|
|
52
52
|
}); };
|
|
53
|
-
//# sourceMappingURL=endpoints.js.map
|
|
File without changes
|
|
File without changes
|
|
@@ -1,65 +1,37 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
export var InvalidInputException;
|
|
3
3
|
(function (InvalidInputException) {
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
4
|
InvalidInputException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
8
5
|
})(InvalidInputException || (InvalidInputException = {}));
|
|
9
6
|
export var Event;
|
|
10
7
|
(function (Event) {
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
8
|
Event.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
15
9
|
})(Event || (Event = {}));
|
|
16
10
|
export var PutEventsRequest;
|
|
17
11
|
(function (PutEventsRequest) {
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
12
|
PutEventsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
13
|
})(PutEventsRequest || (PutEventsRequest = {}));
|
|
23
14
|
export var Item;
|
|
24
15
|
(function (Item) {
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
16
|
Item.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
17
|
})(Item || (Item = {}));
|
|
30
18
|
export var PutItemsRequest;
|
|
31
19
|
(function (PutItemsRequest) {
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
20
|
PutItemsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
36
21
|
})(PutItemsRequest || (PutItemsRequest = {}));
|
|
37
22
|
export var ResourceInUseException;
|
|
38
23
|
(function (ResourceInUseException) {
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
24
|
ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
43
25
|
})(ResourceInUseException || (ResourceInUseException = {}));
|
|
44
26
|
export var ResourceNotFoundException;
|
|
45
27
|
(function (ResourceNotFoundException) {
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
28
|
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
50
29
|
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
51
30
|
export var User;
|
|
52
31
|
(function (User) {
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
32
|
User.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
33
|
})(User || (User = {}));
|
|
58
34
|
export var PutUsersRequest;
|
|
59
35
|
(function (PutUsersRequest) {
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
36
|
PutUsersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
37
|
})(PutUsersRequest || (PutUsersRequest = {}));
|
|
65
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import {
|
|
3
|
+
import { expectString as __expectString, LazyJsonString as __LazyJsonString, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_restJson1PutEventsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1PutEventsCommand = function (input, context) {
|
|
|
14
14
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/events";
|
|
15
15
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.eventList !== undefined &&
|
|
16
16
|
input.eventList !== null && { eventList: serializeAws_restJson1EventList(input.eventList, context) })), (input.sessionId !== undefined && input.sessionId !== null && { sessionId: input.sessionId })), (input.trackingId !== undefined && input.trackingId !== null && { trackingId: input.trackingId })), (input.userId !== undefined && input.userId !== null && { userId: input.userId })));
|
|
17
|
-
return [2
|
|
17
|
+
return [2, new __HttpRequest({
|
|
18
18
|
protocol: protocol,
|
|
19
19
|
hostname: hostname,
|
|
20
20
|
port: port,
|
|
@@ -30,7 +30,7 @@ export var serializeAws_restJson1PutItemsCommand = function (input, context) { r
|
|
|
30
30
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
31
31
|
return __generator(this, function (_c) {
|
|
32
32
|
switch (_c.label) {
|
|
33
|
-
case 0: return [4
|
|
33
|
+
case 0: return [4, context.endpoint()];
|
|
34
34
|
case 1:
|
|
35
35
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
36
36
|
headers = {
|
|
@@ -39,7 +39,7 @@ export var serializeAws_restJson1PutItemsCommand = function (input, context) { r
|
|
|
39
39
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/items";
|
|
40
40
|
body = JSON.stringify(__assign(__assign({}, (input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn })), (input.items !== undefined &&
|
|
41
41
|
input.items !== null && { items: serializeAws_restJson1ItemList(input.items, context) })));
|
|
42
|
-
return [2
|
|
42
|
+
return [2, new __HttpRequest({
|
|
43
43
|
protocol: protocol,
|
|
44
44
|
hostname: hostname,
|
|
45
45
|
port: port,
|
|
@@ -55,7 +55,7 @@ export var serializeAws_restJson1PutUsersCommand = function (input, context) { r
|
|
|
55
55
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
56
56
|
return __generator(this, function (_c) {
|
|
57
57
|
switch (_c.label) {
|
|
58
|
-
case 0: return [4
|
|
58
|
+
case 0: return [4, context.endpoint()];
|
|
59
59
|
case 1:
|
|
60
60
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
61
61
|
headers = {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_restJson1PutUsersCommand = function (input, context) { r
|
|
|
64
64
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/users";
|
|
65
65
|
body = JSON.stringify(__assign(__assign({}, (input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn })), (input.users !== undefined &&
|
|
66
66
|
input.users !== null && { users: serializeAws_restJson1UserList(input.users, context) })));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, new __HttpRequest({
|
|
68
68
|
protocol: protocol,
|
|
69
69
|
hostname: hostname,
|
|
70
70
|
port: port,
|
|
@@ -82,15 +82,15 @@ export var deserializeAws_restJson1PutEventsCommand = function (output, context)
|
|
|
82
82
|
switch (_a.label) {
|
|
83
83
|
case 0:
|
|
84
84
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
85
|
-
return [2
|
|
85
|
+
return [2, deserializeAws_restJson1PutEventsCommandError(output, context)];
|
|
86
86
|
}
|
|
87
87
|
contents = {
|
|
88
88
|
$metadata: deserializeMetadata(output),
|
|
89
89
|
};
|
|
90
|
-
return [4
|
|
90
|
+
return [4, collectBody(output.body, context)];
|
|
91
91
|
case 1:
|
|
92
92
|
_a.sent();
|
|
93
|
-
return [2
|
|
93
|
+
return [2, Promise.resolve(contents)];
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
}); };
|
|
@@ -102,23 +102,23 @@ var deserializeAws_restJson1PutEventsCommandError = function (output, context) {
|
|
|
102
102
|
case 0:
|
|
103
103
|
_a = [__assign({}, output)];
|
|
104
104
|
_d = {};
|
|
105
|
-
return [4
|
|
105
|
+
return [4, parseBody(output.body, context)];
|
|
106
106
|
case 1:
|
|
107
107
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
108
108
|
errorCode = "UnknownError";
|
|
109
109
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
110
110
|
_b = errorCode;
|
|
111
111
|
switch (_b) {
|
|
112
|
-
case "InvalidInputException": return [3
|
|
113
|
-
case "com.amazonaws.personalizeevents#InvalidInputException": return [3
|
|
112
|
+
case "InvalidInputException": return [3, 2];
|
|
113
|
+
case "com.amazonaws.personalizeevents#InvalidInputException": return [3, 2];
|
|
114
114
|
}
|
|
115
|
-
return [3
|
|
115
|
+
return [3, 4];
|
|
116
116
|
case 2:
|
|
117
117
|
_c = [{}];
|
|
118
|
-
return [4
|
|
118
|
+
return [4, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
119
119
|
case 3:
|
|
120
120
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
121
|
-
return [3
|
|
121
|
+
return [3, 5];
|
|
122
122
|
case 4:
|
|
123
123
|
parsedBody = parsedOutput.body;
|
|
124
124
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -128,7 +128,7 @@ var deserializeAws_restJson1PutEventsCommandError = function (output, context) {
|
|
|
128
128
|
message = response.message || response.Message || errorCode;
|
|
129
129
|
response.message = message;
|
|
130
130
|
delete response.Message;
|
|
131
|
-
return [2
|
|
131
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
134
|
}); };
|
|
@@ -138,15 +138,15 @@ export var deserializeAws_restJson1PutItemsCommand = function (output, context)
|
|
|
138
138
|
switch (_a.label) {
|
|
139
139
|
case 0:
|
|
140
140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
141
|
-
return [2
|
|
141
|
+
return [2, deserializeAws_restJson1PutItemsCommandError(output, context)];
|
|
142
142
|
}
|
|
143
143
|
contents = {
|
|
144
144
|
$metadata: deserializeMetadata(output),
|
|
145
145
|
};
|
|
146
|
-
return [4
|
|
146
|
+
return [4, collectBody(output.body, context)];
|
|
147
147
|
case 1:
|
|
148
148
|
_a.sent();
|
|
149
|
-
return [2
|
|
149
|
+
return [2, Promise.resolve(contents)];
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
152
|
}); };
|
|
@@ -158,39 +158,39 @@ var deserializeAws_restJson1PutItemsCommandError = function (output, context) {
|
|
|
158
158
|
case 0:
|
|
159
159
|
_a = [__assign({}, output)];
|
|
160
160
|
_f = {};
|
|
161
|
-
return [4
|
|
161
|
+
return [4, parseBody(output.body, context)];
|
|
162
162
|
case 1:
|
|
163
163
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
164
164
|
errorCode = "UnknownError";
|
|
165
165
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
166
166
|
_b = errorCode;
|
|
167
167
|
switch (_b) {
|
|
168
|
-
case "InvalidInputException": return [3
|
|
169
|
-
case "com.amazonaws.personalizeevents#InvalidInputException": return [3
|
|
170
|
-
case "ResourceInUseException": return [3
|
|
171
|
-
case "com.amazonaws.personalizeevents#ResourceInUseException": return [3
|
|
172
|
-
case "ResourceNotFoundException": return [3
|
|
173
|
-
case "com.amazonaws.personalizeevents#ResourceNotFoundException": return [3
|
|
168
|
+
case "InvalidInputException": return [3, 2];
|
|
169
|
+
case "com.amazonaws.personalizeevents#InvalidInputException": return [3, 2];
|
|
170
|
+
case "ResourceInUseException": return [3, 4];
|
|
171
|
+
case "com.amazonaws.personalizeevents#ResourceInUseException": return [3, 4];
|
|
172
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
173
|
+
case "com.amazonaws.personalizeevents#ResourceNotFoundException": return [3, 6];
|
|
174
174
|
}
|
|
175
|
-
return [3
|
|
175
|
+
return [3, 8];
|
|
176
176
|
case 2:
|
|
177
177
|
_c = [{}];
|
|
178
|
-
return [4
|
|
178
|
+
return [4, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
179
179
|
case 3:
|
|
180
180
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
181
|
-
return [3
|
|
181
|
+
return [3, 9];
|
|
182
182
|
case 4:
|
|
183
183
|
_d = [{}];
|
|
184
|
-
return [4
|
|
184
|
+
return [4, deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
185
185
|
case 5:
|
|
186
186
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
187
|
-
return [3
|
|
187
|
+
return [3, 9];
|
|
188
188
|
case 6:
|
|
189
189
|
_e = [{}];
|
|
190
|
-
return [4
|
|
190
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
191
191
|
case 7:
|
|
192
192
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
193
|
-
return [3
|
|
193
|
+
return [3, 9];
|
|
194
194
|
case 8:
|
|
195
195
|
parsedBody = parsedOutput.body;
|
|
196
196
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -200,7 +200,7 @@ var deserializeAws_restJson1PutItemsCommandError = function (output, context) {
|
|
|
200
200
|
message = response.message || response.Message || errorCode;
|
|
201
201
|
response.message = message;
|
|
202
202
|
delete response.Message;
|
|
203
|
-
return [2
|
|
203
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
204
204
|
}
|
|
205
205
|
});
|
|
206
206
|
}); };
|
|
@@ -210,15 +210,15 @@ export var deserializeAws_restJson1PutUsersCommand = function (output, context)
|
|
|
210
210
|
switch (_a.label) {
|
|
211
211
|
case 0:
|
|
212
212
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
213
|
-
return [2
|
|
213
|
+
return [2, deserializeAws_restJson1PutUsersCommandError(output, context)];
|
|
214
214
|
}
|
|
215
215
|
contents = {
|
|
216
216
|
$metadata: deserializeMetadata(output),
|
|
217
217
|
};
|
|
218
|
-
return [4
|
|
218
|
+
return [4, collectBody(output.body, context)];
|
|
219
219
|
case 1:
|
|
220
220
|
_a.sent();
|
|
221
|
-
return [2
|
|
221
|
+
return [2, Promise.resolve(contents)];
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
}); };
|
|
@@ -230,39 +230,39 @@ var deserializeAws_restJson1PutUsersCommandError = function (output, context) {
|
|
|
230
230
|
case 0:
|
|
231
231
|
_a = [__assign({}, output)];
|
|
232
232
|
_f = {};
|
|
233
|
-
return [4
|
|
233
|
+
return [4, parseBody(output.body, context)];
|
|
234
234
|
case 1:
|
|
235
235
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
236
236
|
errorCode = "UnknownError";
|
|
237
237
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
238
238
|
_b = errorCode;
|
|
239
239
|
switch (_b) {
|
|
240
|
-
case "InvalidInputException": return [3
|
|
241
|
-
case "com.amazonaws.personalizeevents#InvalidInputException": return [3
|
|
242
|
-
case "ResourceInUseException": return [3
|
|
243
|
-
case "com.amazonaws.personalizeevents#ResourceInUseException": return [3
|
|
244
|
-
case "ResourceNotFoundException": return [3
|
|
245
|
-
case "com.amazonaws.personalizeevents#ResourceNotFoundException": return [3
|
|
240
|
+
case "InvalidInputException": return [3, 2];
|
|
241
|
+
case "com.amazonaws.personalizeevents#InvalidInputException": return [3, 2];
|
|
242
|
+
case "ResourceInUseException": return [3, 4];
|
|
243
|
+
case "com.amazonaws.personalizeevents#ResourceInUseException": return [3, 4];
|
|
244
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
245
|
+
case "com.amazonaws.personalizeevents#ResourceNotFoundException": return [3, 6];
|
|
246
246
|
}
|
|
247
|
-
return [3
|
|
247
|
+
return [3, 8];
|
|
248
248
|
case 2:
|
|
249
249
|
_c = [{}];
|
|
250
|
-
return [4
|
|
250
|
+
return [4, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
251
251
|
case 3:
|
|
252
252
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
253
|
-
return [3
|
|
253
|
+
return [3, 9];
|
|
254
254
|
case 4:
|
|
255
255
|
_d = [{}];
|
|
256
|
-
return [4
|
|
256
|
+
return [4, deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
257
257
|
case 5:
|
|
258
258
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
259
|
-
return [3
|
|
259
|
+
return [3, 9];
|
|
260
260
|
case 6:
|
|
261
261
|
_e = [{}];
|
|
262
|
-
return [4
|
|
262
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
263
263
|
case 7:
|
|
264
264
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
265
|
-
return [3
|
|
265
|
+
return [3, 9];
|
|
266
266
|
case 8:
|
|
267
267
|
parsedBody = parsedOutput.body;
|
|
268
268
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -272,7 +272,7 @@ var deserializeAws_restJson1PutUsersCommandError = function (output, context) {
|
|
|
272
272
|
message = response.message || response.Message || errorCode;
|
|
273
273
|
response.message = message;
|
|
274
274
|
delete response.Message;
|
|
275
|
-
return [2
|
|
275
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
}); };
|
|
@@ -289,7 +289,7 @@ var deserializeAws_restJson1InvalidInputExceptionResponse = function (parsedOutp
|
|
|
289
289
|
if (data.message !== undefined && data.message !== null) {
|
|
290
290
|
contents.message = __expectString(data.message);
|
|
291
291
|
}
|
|
292
|
-
return [2
|
|
292
|
+
return [2, contents];
|
|
293
293
|
});
|
|
294
294
|
}); };
|
|
295
295
|
var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -305,7 +305,7 @@ var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOut
|
|
|
305
305
|
if (data.message !== undefined && data.message !== null) {
|
|
306
306
|
contents.message = __expectString(data.message);
|
|
307
307
|
}
|
|
308
|
-
return [2
|
|
308
|
+
return [2, contents];
|
|
309
309
|
});
|
|
310
310
|
}); };
|
|
311
311
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -321,7 +321,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
321
321
|
if (data.message !== undefined && data.message !== null) {
|
|
322
322
|
contents.message = __expectString(data.message);
|
|
323
323
|
}
|
|
324
|
-
return [2
|
|
324
|
+
return [2, contents];
|
|
325
325
|
});
|
|
326
326
|
}); };
|
|
327
327
|
var serializeAws_restJson1Event = function (input, context) {
|
|
@@ -388,7 +388,6 @@ var deserializeMetadata = function (output) {
|
|
|
388
388
|
cfId: output.headers["x-amz-cf-id"],
|
|
389
389
|
});
|
|
390
390
|
};
|
|
391
|
-
// Collect low-level response body stream to Uint8Array.
|
|
392
391
|
var collectBody = function (streamBody, context) {
|
|
393
392
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
394
393
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -396,7 +395,6 @@ var collectBody = function (streamBody, context) {
|
|
|
396
395
|
}
|
|
397
396
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
398
397
|
};
|
|
399
|
-
// Encode Uint8Array data into string with utf-8.
|
|
400
398
|
var collectBodyString = function (streamBody, context) {
|
|
401
399
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
402
400
|
};
|
|
@@ -415,9 +413,6 @@ var parseBody = function (streamBody, context) {
|
|
|
415
413
|
return {};
|
|
416
414
|
});
|
|
417
415
|
};
|
|
418
|
-
/**
|
|
419
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
420
|
-
*/
|
|
421
416
|
var loadRestJsonErrorCode = function (output, data) {
|
|
422
417
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
423
418
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -442,4 +437,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
442
437
|
}
|
|
443
438
|
return "";
|
|
444
439
|
};
|
|
445
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
import packageInfo from "
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
@@ -9,12 +9,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
9
9
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
10
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
12
|
export var getRuntimeConfig = function (config) {
|
|
16
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
14
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
15
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
19
16
|
};
|
|
20
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
import packageInfo from "
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
@@ -13,13 +13,9 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
16
|
export var getRuntimeConfig = function (config) {
|
|
20
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
22
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
23
20
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
24
21
|
};
|
|
25
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
3
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
4
|
export var getRuntimeConfig = function (config) {
|
|
8
5
|
var _a;
|
|
9
6
|
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
10
7
|
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
11
8
|
};
|
|
12
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { defaultRegionInfoProvider } from "./endpoints";
|
|
2
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
2
|
+
import { defaultRegionInfoProvider } from "./endpoints";
|
|
6
3
|
export var getRuntimeConfig = function (config) {
|
|
7
4
|
var _a, _b, _c, _d, _e;
|
|
8
5
|
return ({
|
|
@@ -14,4 +11,3 @@ export var getRuntimeConfig = function (config) {
|
|
|
14
11
|
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
15
12
|
});
|
|
16
13
|
};
|
|
17
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { PutEventsCommandInput, PutEventsCommandOutput } from "./commands/PutEventsCommand";
|
|
3
3
|
import { PutItemsCommandInput, PutItemsCommandOutput } from "./commands/PutItemsCommand";
|
|
4
4
|
import { PutUsersCommandInput, PutUsersCommandOutput } from "./commands/PutUsersCommand";
|
|
5
|
-
import {
|
|
5
|
+
import { PersonalizeEventsClient } from "./PersonalizeEventsClient";
|
|
6
6
|
/**
|
|
7
7
|
* <p>Amazon Personalize can consume real-time user event data, such as <i>stream</i> or <i>click</i> data, and use
|
|
8
8
|
* it for model training either alone or combined with historical data. For more information see
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { PutEventsCommandInput, PutEventsCommandOutput } from "./commands/PutEventsCommand";
|
|
2
|
-
import { PutItemsCommandInput, PutItemsCommandOutput } from "./commands/PutItemsCommand";
|
|
3
|
-
import { PutUsersCommandInput, PutUsersCommandOutput } from "./commands/PutUsersCommand";
|
|
4
1
|
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
5
2
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
6
3
|
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
@@ -8,7 +5,10 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
8
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
9
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
10
7
|
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
11
|
-
import {
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { PutEventsCommandInput, PutEventsCommandOutput } from "./commands/PutEventsCommand";
|
|
10
|
+
import { PutItemsCommandInput, PutItemsCommandOutput } from "./commands/PutItemsCommand";
|
|
11
|
+
import { PutUsersCommandInput, PutUsersCommandOutput } from "./commands/PutUsersCommand";
|
|
12
12
|
export declare type ServiceInputTypes = PutEventsCommandInput | PutItemsCommandInput | PutUsersCommandInput;
|
|
13
13
|
export declare type ServiceOutputTypes = PutEventsCommandOutput | PutItemsCommandOutput | PutUsersCommandOutput;
|
|
14
14
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|