@aws-sdk/client-personalize-events 3.476.0 → 3.478.0
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.
|
@@ -1,60 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_PutUsersCommand = exports.de_PutItemsCommand = exports.de_PutEventsCommand = exports.de_PutActionsCommand = exports.de_PutActionInteractionsCommand = exports.se_PutUsersCommand = exports.se_PutItemsCommand = exports.se_PutEventsCommand = exports.se_PutActionsCommand = exports.se_PutActionInteractionsCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const PersonalizeEventsServiceException_1 = require("../models/PersonalizeEventsServiceException");
|
|
8
8
|
const se_PutActionInteractionsCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
b.bp("/action-interactions");
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
16
|
actionInteractions: (_) => se_ActionInteractionsList(_, context),
|
|
17
17
|
trackingId: [],
|
|
18
18
|
}));
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
hostname,
|
|
22
|
-
port,
|
|
23
|
-
method: "POST",
|
|
24
|
-
headers,
|
|
25
|
-
path: resolvedPath,
|
|
26
|
-
body,
|
|
27
|
-
});
|
|
19
|
+
b.m("POST").h(headers).b(body);
|
|
20
|
+
return b.build();
|
|
28
21
|
};
|
|
29
22
|
exports.se_PutActionInteractionsCommand = se_PutActionInteractionsCommand;
|
|
30
23
|
const se_PutActionsCommand = async (input, context) => {
|
|
31
|
-
const
|
|
24
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
32
25
|
const headers = {
|
|
33
26
|
"content-type": "application/json",
|
|
34
27
|
};
|
|
35
|
-
|
|
28
|
+
b.bp("/actions");
|
|
36
29
|
let body;
|
|
37
30
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
31
|
actions: (_) => se_ActionList(_, context),
|
|
39
32
|
datasetArn: [],
|
|
40
33
|
}));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
hostname,
|
|
44
|
-
port,
|
|
45
|
-
method: "POST",
|
|
46
|
-
headers,
|
|
47
|
-
path: resolvedPath,
|
|
48
|
-
body,
|
|
49
|
-
});
|
|
34
|
+
b.m("POST").h(headers).b(body);
|
|
35
|
+
return b.build();
|
|
50
36
|
};
|
|
51
37
|
exports.se_PutActionsCommand = se_PutActionsCommand;
|
|
52
38
|
const se_PutEventsCommand = async (input, context) => {
|
|
53
|
-
const
|
|
39
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
54
40
|
const headers = {
|
|
55
41
|
"content-type": "application/json",
|
|
56
42
|
};
|
|
57
|
-
|
|
43
|
+
b.bp("/events");
|
|
58
44
|
let body;
|
|
59
45
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
60
46
|
eventList: (_) => se_EventList(_, context),
|
|
@@ -62,59 +48,38 @@ const se_PutEventsCommand = async (input, context) => {
|
|
|
62
48
|
trackingId: [],
|
|
63
49
|
userId: [],
|
|
64
50
|
}));
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
hostname,
|
|
68
|
-
port,
|
|
69
|
-
method: "POST",
|
|
70
|
-
headers,
|
|
71
|
-
path: resolvedPath,
|
|
72
|
-
body,
|
|
73
|
-
});
|
|
51
|
+
b.m("POST").h(headers).b(body);
|
|
52
|
+
return b.build();
|
|
74
53
|
};
|
|
75
54
|
exports.se_PutEventsCommand = se_PutEventsCommand;
|
|
76
55
|
const se_PutItemsCommand = async (input, context) => {
|
|
77
|
-
const
|
|
56
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
78
57
|
const headers = {
|
|
79
58
|
"content-type": "application/json",
|
|
80
59
|
};
|
|
81
|
-
|
|
60
|
+
b.bp("/items");
|
|
82
61
|
let body;
|
|
83
62
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
84
63
|
datasetArn: [],
|
|
85
64
|
items: (_) => se_ItemList(_, context),
|
|
86
65
|
}));
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
hostname,
|
|
90
|
-
port,
|
|
91
|
-
method: "POST",
|
|
92
|
-
headers,
|
|
93
|
-
path: resolvedPath,
|
|
94
|
-
body,
|
|
95
|
-
});
|
|
66
|
+
b.m("POST").h(headers).b(body);
|
|
67
|
+
return b.build();
|
|
96
68
|
};
|
|
97
69
|
exports.se_PutItemsCommand = se_PutItemsCommand;
|
|
98
70
|
const se_PutUsersCommand = async (input, context) => {
|
|
99
|
-
const
|
|
71
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
100
72
|
const headers = {
|
|
101
73
|
"content-type": "application/json",
|
|
102
74
|
};
|
|
103
|
-
|
|
75
|
+
b.bp("/users");
|
|
104
76
|
let body;
|
|
105
77
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
106
78
|
datasetArn: [],
|
|
107
79
|
users: (_) => se_UserList(_, context),
|
|
108
80
|
}));
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
hostname,
|
|
112
|
-
port,
|
|
113
|
-
method: "POST",
|
|
114
|
-
headers,
|
|
115
|
-
path: resolvedPath,
|
|
116
|
-
body,
|
|
117
|
-
});
|
|
81
|
+
b.m("POST").h(headers).b(body);
|
|
82
|
+
return b.build();
|
|
118
83
|
};
|
|
119
84
|
exports.se_PutUsersCommand = se_PutUsersCommand;
|
|
120
85
|
const de_PutActionInteractionsCommand = async (output, context) => {
|
|
@@ -1,55 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { InvalidInputException, ResourceInUseException, ResourceNotFoundException, } from "../models/models_0";
|
|
4
4
|
import { PersonalizeEventsServiceException as __BaseException } from "../models/PersonalizeEventsServiceException";
|
|
5
5
|
export const se_PutActionInteractionsCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/action-interactions");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
actionInteractions: (_) => se_ActionInteractionsList(_, context),
|
|
14
14
|
trackingId: [],
|
|
15
15
|
}));
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
hostname,
|
|
19
|
-
port,
|
|
20
|
-
method: "POST",
|
|
21
|
-
headers,
|
|
22
|
-
path: resolvedPath,
|
|
23
|
-
body,
|
|
24
|
-
});
|
|
16
|
+
b.m("POST").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
25
18
|
};
|
|
26
19
|
export const se_PutActionsCommand = async (input, context) => {
|
|
27
|
-
const
|
|
20
|
+
const b = rb(input, context);
|
|
28
21
|
const headers = {
|
|
29
22
|
"content-type": "application/json",
|
|
30
23
|
};
|
|
31
|
-
|
|
24
|
+
b.bp("/actions");
|
|
32
25
|
let body;
|
|
33
26
|
body = JSON.stringify(take(input, {
|
|
34
27
|
actions: (_) => se_ActionList(_, context),
|
|
35
28
|
datasetArn: [],
|
|
36
29
|
}));
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
hostname,
|
|
40
|
-
port,
|
|
41
|
-
method: "POST",
|
|
42
|
-
headers,
|
|
43
|
-
path: resolvedPath,
|
|
44
|
-
body,
|
|
45
|
-
});
|
|
30
|
+
b.m("POST").h(headers).b(body);
|
|
31
|
+
return b.build();
|
|
46
32
|
};
|
|
47
33
|
export const se_PutEventsCommand = async (input, context) => {
|
|
48
|
-
const
|
|
34
|
+
const b = rb(input, context);
|
|
49
35
|
const headers = {
|
|
50
36
|
"content-type": "application/json",
|
|
51
37
|
};
|
|
52
|
-
|
|
38
|
+
b.bp("/events");
|
|
53
39
|
let body;
|
|
54
40
|
body = JSON.stringify(take(input, {
|
|
55
41
|
eventList: (_) => se_EventList(_, context),
|
|
@@ -57,57 +43,36 @@ export const se_PutEventsCommand = async (input, context) => {
|
|
|
57
43
|
trackingId: [],
|
|
58
44
|
userId: [],
|
|
59
45
|
}));
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
hostname,
|
|
63
|
-
port,
|
|
64
|
-
method: "POST",
|
|
65
|
-
headers,
|
|
66
|
-
path: resolvedPath,
|
|
67
|
-
body,
|
|
68
|
-
});
|
|
46
|
+
b.m("POST").h(headers).b(body);
|
|
47
|
+
return b.build();
|
|
69
48
|
};
|
|
70
49
|
export const se_PutItemsCommand = async (input, context) => {
|
|
71
|
-
const
|
|
50
|
+
const b = rb(input, context);
|
|
72
51
|
const headers = {
|
|
73
52
|
"content-type": "application/json",
|
|
74
53
|
};
|
|
75
|
-
|
|
54
|
+
b.bp("/items");
|
|
76
55
|
let body;
|
|
77
56
|
body = JSON.stringify(take(input, {
|
|
78
57
|
datasetArn: [],
|
|
79
58
|
items: (_) => se_ItemList(_, context),
|
|
80
59
|
}));
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
hostname,
|
|
84
|
-
port,
|
|
85
|
-
method: "POST",
|
|
86
|
-
headers,
|
|
87
|
-
path: resolvedPath,
|
|
88
|
-
body,
|
|
89
|
-
});
|
|
60
|
+
b.m("POST").h(headers).b(body);
|
|
61
|
+
return b.build();
|
|
90
62
|
};
|
|
91
63
|
export const se_PutUsersCommand = async (input, context) => {
|
|
92
|
-
const
|
|
64
|
+
const b = rb(input, context);
|
|
93
65
|
const headers = {
|
|
94
66
|
"content-type": "application/json",
|
|
95
67
|
};
|
|
96
|
-
|
|
68
|
+
b.bp("/users");
|
|
97
69
|
let body;
|
|
98
70
|
body = JSON.stringify(take(input, {
|
|
99
71
|
datasetArn: [],
|
|
100
72
|
users: (_) => se_UserList(_, context),
|
|
101
73
|
}));
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
hostname,
|
|
105
|
-
port,
|
|
106
|
-
method: "POST",
|
|
107
|
-
headers,
|
|
108
|
-
path: resolvedPath,
|
|
109
|
-
body,
|
|
110
|
-
});
|
|
74
|
+
b.m("POST").h(headers).b(body);
|
|
75
|
+
return b.build();
|
|
111
76
|
};
|
|
112
77
|
export const de_PutActionInteractionsCommand = async (output, context) => {
|
|
113
78
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-personalize-events",
|
|
3
3
|
"description": "AWS SDK for JavaScript Personalize Events Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.0",
|
|
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",
|
|
@@ -20,20 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|