@aws-sdk/client-personalize-events 3.118.1 → 3.128.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-personalize-events
9
+
10
+
11
+
12
+
13
+
14
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-personalize-events
17
+
18
+
19
+
20
+
21
+
22
+ # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-personalize-events
@@ -13,11 +13,10 @@ const serializeAws_restJson1PutEventsCommand = async (input, context) => {
13
13
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/events";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.eventList !== undefined &&
17
- input.eventList !== null && { eventList: serializeAws_restJson1EventList(input.eventList, context) }),
18
- ...(input.sessionId !== undefined && input.sessionId !== null && { sessionId: input.sessionId }),
19
- ...(input.trackingId !== undefined && input.trackingId !== null && { trackingId: input.trackingId }),
20
- ...(input.userId !== undefined && input.userId !== null && { userId: input.userId }),
16
+ ...(input.eventList != null && { eventList: serializeAws_restJson1EventList(input.eventList, context) }),
17
+ ...(input.sessionId != null && { sessionId: input.sessionId }),
18
+ ...(input.trackingId != null && { trackingId: input.trackingId }),
19
+ ...(input.userId != null && { userId: input.userId }),
21
20
  });
22
21
  return new protocol_http_1.HttpRequest({
23
22
  protocol,
@@ -38,9 +37,8 @@ const serializeAws_restJson1PutItemsCommand = async (input, context) => {
38
37
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/items";
39
38
  let body;
40
39
  body = JSON.stringify({
41
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
42
- ...(input.items !== undefined &&
43
- input.items !== null && { items: serializeAws_restJson1ItemList(input.items, context) }),
40
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
41
+ ...(input.items != null && { items: serializeAws_restJson1ItemList(input.items, context) }),
44
42
  });
45
43
  return new protocol_http_1.HttpRequest({
46
44
  protocol,
@@ -61,9 +59,8 @@ const serializeAws_restJson1PutUsersCommand = async (input, context) => {
61
59
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users";
62
60
  let body;
63
61
  body = JSON.stringify({
64
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
65
- ...(input.users !== undefined &&
66
- input.users !== null && { users: serializeAws_restJson1UserList(input.users, context) }),
62
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
63
+ ...(input.users != null && { users: serializeAws_restJson1UserList(input.users, context) }),
67
64
  });
68
65
  return new protocol_http_1.HttpRequest({
69
66
  protocol,
@@ -93,18 +90,19 @@ const deserializeAws_restJson1PutEventsCommandError = async (output, context) =>
93
90
  body: await parseBody(output.body, context),
94
91
  };
95
92
  let response;
96
- let errorCode = "UnknownError";
97
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
93
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
98
94
  switch (errorCode) {
99
95
  case "InvalidInputException":
100
96
  case "com.amazonaws.personalizeevents#InvalidInputException":
101
97
  throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
102
98
  default:
103
99
  const parsedBody = parsedOutput.body;
100
+ const $metadata = deserializeMetadata(output);
101
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
104
102
  response = new PersonalizeEventsServiceException_1.PersonalizeEventsServiceException({
105
- name: parsedBody.code || parsedBody.Code || errorCode,
103
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
106
104
  $fault: "client",
107
- $metadata: deserializeMetadata(output),
105
+ $metadata,
108
106
  });
109
107
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
110
108
  }
@@ -126,8 +124,7 @@ const deserializeAws_restJson1PutItemsCommandError = async (output, context) =>
126
124
  body: await parseBody(output.body, context),
127
125
  };
128
126
  let response;
129
- let errorCode = "UnknownError";
130
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
127
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
131
128
  switch (errorCode) {
132
129
  case "InvalidInputException":
133
130
  case "com.amazonaws.personalizeevents#InvalidInputException":
@@ -140,10 +137,12 @@ const deserializeAws_restJson1PutItemsCommandError = async (output, context) =>
140
137
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
141
138
  default:
142
139
  const parsedBody = parsedOutput.body;
140
+ const $metadata = deserializeMetadata(output);
141
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
143
142
  response = new PersonalizeEventsServiceException_1.PersonalizeEventsServiceException({
144
- name: parsedBody.code || parsedBody.Code || errorCode,
143
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
145
144
  $fault: "client",
146
- $metadata: deserializeMetadata(output),
145
+ $metadata,
147
146
  });
148
147
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
149
148
  }
@@ -165,8 +164,7 @@ const deserializeAws_restJson1PutUsersCommandError = async (output, context) =>
165
164
  body: await parseBody(output.body, context),
166
165
  };
167
166
  let response;
168
- let errorCode = "UnknownError";
169
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
167
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
170
168
  switch (errorCode) {
171
169
  case "InvalidInputException":
172
170
  case "com.amazonaws.personalizeevents#InvalidInputException":
@@ -179,10 +177,12 @@ const deserializeAws_restJson1PutUsersCommandError = async (output, context) =>
179
177
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
180
178
  default:
181
179
  const parsedBody = parsedOutput.body;
180
+ const $metadata = deserializeMetadata(output);
181
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
182
182
  response = new PersonalizeEventsServiceException_1.PersonalizeEventsServiceException({
183
- name: parsedBody.code || parsedBody.Code || errorCode,
183
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
184
184
  $fault: "client",
185
- $metadata: deserializeMetadata(output),
185
+ $metadata,
186
186
  });
187
187
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
188
188
  }
@@ -225,18 +225,14 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
225
225
  };
226
226
  const serializeAws_restJson1Event = (input, context) => {
227
227
  return {
228
- ...(input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId }),
229
- ...(input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType }),
230
- ...(input.eventValue !== undefined &&
231
- input.eventValue !== null && { eventValue: (0, smithy_client_1.serializeFloat)(input.eventValue) }),
232
- ...(input.impression !== undefined &&
233
- input.impression !== null && { impression: serializeAws_restJson1Impression(input.impression, context) }),
234
- ...(input.itemId !== undefined && input.itemId !== null && { itemId: input.itemId }),
235
- ...(input.properties !== undefined &&
236
- input.properties !== null && { properties: smithy_client_1.LazyJsonString.fromObject(input.properties) }),
237
- ...(input.recommendationId !== undefined &&
238
- input.recommendationId !== null && { recommendationId: input.recommendationId }),
239
- ...(input.sentAt !== undefined && input.sentAt !== null && { sentAt: Math.round(input.sentAt.getTime() / 1000) }),
228
+ ...(input.eventId != null && { eventId: input.eventId }),
229
+ ...(input.eventType != null && { eventType: input.eventType }),
230
+ ...(input.eventValue != null && { eventValue: (0, smithy_client_1.serializeFloat)(input.eventValue) }),
231
+ ...(input.impression != null && { impression: serializeAws_restJson1Impression(input.impression, context) }),
232
+ ...(input.itemId != null && { itemId: input.itemId }),
233
+ ...(input.properties != null && { properties: smithy_client_1.LazyJsonString.fromObject(input.properties) }),
234
+ ...(input.recommendationId != null && { recommendationId: input.recommendationId }),
235
+ ...(input.sentAt != null && { sentAt: Math.round(input.sentAt.getTime() / 1000) }),
240
236
  };
241
237
  };
242
238
  const serializeAws_restJson1EventList = (input, context) => {
@@ -261,9 +257,8 @@ const serializeAws_restJson1Impression = (input, context) => {
261
257
  };
262
258
  const serializeAws_restJson1Item = (input, context) => {
263
259
  return {
264
- ...(input.itemId !== undefined && input.itemId !== null && { itemId: input.itemId }),
265
- ...(input.properties !== undefined &&
266
- input.properties !== null && { properties: smithy_client_1.LazyJsonString.fromObject(input.properties) }),
260
+ ...(input.itemId != null && { itemId: input.itemId }),
261
+ ...(input.properties != null && { properties: smithy_client_1.LazyJsonString.fromObject(input.properties) }),
267
262
  };
268
263
  };
269
264
  const serializeAws_restJson1ItemList = (input, context) => {
@@ -278,9 +273,8 @@ const serializeAws_restJson1ItemList = (input, context) => {
278
273
  };
279
274
  const serializeAws_restJson1User = (input, context) => {
280
275
  return {
281
- ...(input.properties !== undefined &&
282
- input.properties !== null && { properties: smithy_client_1.LazyJsonString.fromObject(input.properties) }),
283
- ...(input.userId !== undefined && input.userId !== null && { userId: input.userId }),
276
+ ...(input.properties != null && { properties: smithy_client_1.LazyJsonString.fromObject(input.properties) }),
277
+ ...(input.userId != null && { userId: input.userId }),
284
278
  };
285
279
  };
286
280
  const serializeAws_restJson1UserList = (input, context) => {
@@ -342,5 +336,4 @@ const loadRestJsonErrorCode = (output, data) => {
342
336
  if (data["__type"] !== undefined) {
343
337
  return sanitizeErrorCode(data["__type"]);
344
338
  }
345
- return "";
346
339
  };
@@ -14,8 +14,7 @@ export var serializeAws_restJson1PutEventsCommand = function (input, context) {
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/events";
17
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.eventList !== undefined &&
18
- 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
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.eventList != null && { eventList: serializeAws_restJson1EventList(input.eventList, context) })), (input.sessionId != null && { sessionId: input.sessionId })), (input.trackingId != null && { trackingId: input.trackingId })), (input.userId != null && { userId: input.userId })));
19
18
  return [2, new __HttpRequest({
20
19
  protocol: protocol,
21
20
  hostname: hostname,
@@ -39,8 +38,7 @@ export var serializeAws_restJson1PutItemsCommand = function (input, context) { r
39
38
  "content-type": "application/json",
40
39
  };
41
40
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/items";
42
- body = JSON.stringify(__assign(__assign({}, (input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn })), (input.items !== undefined &&
43
- input.items !== null && { items: serializeAws_restJson1ItemList(input.items, context) })));
41
+ body = JSON.stringify(__assign(__assign({}, (input.datasetArn != null && { datasetArn: input.datasetArn })), (input.items != null && { items: serializeAws_restJson1ItemList(input.items, context) })));
44
42
  return [2, new __HttpRequest({
45
43
  protocol: protocol,
46
44
  hostname: hostname,
@@ -64,8 +62,7 @@ export var serializeAws_restJson1PutUsersCommand = function (input, context) { r
64
62
  "content-type": "application/json",
65
63
  };
66
64
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/users";
67
- body = JSON.stringify(__assign(__assign({}, (input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn })), (input.users !== undefined &&
68
- input.users !== null && { users: serializeAws_restJson1UserList(input.users, context) })));
65
+ body = JSON.stringify(__assign(__assign({}, (input.datasetArn != null && { datasetArn: input.datasetArn })), (input.users != null && { users: serializeAws_restJson1UserList(input.users, context) })));
69
66
  return [2, new __HttpRequest({
70
67
  protocol: protocol,
71
68
  hostname: hostname,
@@ -97,7 +94,7 @@ export var deserializeAws_restJson1PutEventsCommand = function (output, context)
97
94
  });
98
95
  }); };
99
96
  var deserializeAws_restJson1PutEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
100
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
97
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
101
98
  var _c;
102
99
  return __generator(this, function (_d) {
103
100
  switch (_d.label) {
@@ -107,7 +104,6 @@ var deserializeAws_restJson1PutEventsCommandError = function (output, context) {
107
104
  return [4, parseBody(output.body, context)];
108
105
  case 1:
109
106
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
110
- errorCode = "UnknownError";
111
107
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
112
108
  _b = errorCode;
113
109
  switch (_b) {
@@ -119,10 +115,12 @@ var deserializeAws_restJson1PutEventsCommandError = function (output, context) {
119
115
  case 3: throw _d.sent();
120
116
  case 4:
121
117
  parsedBody = parsedOutput.body;
118
+ $metadata = deserializeMetadata(output);
119
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
122
120
  response = new __BaseException({
123
- name: parsedBody.code || parsedBody.Code || errorCode,
121
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
124
122
  $fault: "client",
125
- $metadata: deserializeMetadata(output),
123
+ $metadata: $metadata,
126
124
  });
127
125
  throw __decorateServiceException(response, parsedBody);
128
126
  }
@@ -147,7 +145,7 @@ export var deserializeAws_restJson1PutItemsCommand = function (output, context)
147
145
  });
148
146
  }); };
149
147
  var deserializeAws_restJson1PutItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
150
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
148
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
151
149
  var _c;
152
150
  return __generator(this, function (_d) {
153
151
  switch (_d.label) {
@@ -157,7 +155,6 @@ var deserializeAws_restJson1PutItemsCommandError = function (output, context) {
157
155
  return [4, parseBody(output.body, context)];
158
156
  case 1:
159
157
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
160
- errorCode = "UnknownError";
161
158
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
162
159
  _b = errorCode;
163
160
  switch (_b) {
@@ -177,10 +174,12 @@ var deserializeAws_restJson1PutItemsCommandError = function (output, context) {
177
174
  case 7: throw _d.sent();
178
175
  case 8:
179
176
  parsedBody = parsedOutput.body;
177
+ $metadata = deserializeMetadata(output);
178
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
180
179
  response = new __BaseException({
181
- name: parsedBody.code || parsedBody.Code || errorCode,
180
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
182
181
  $fault: "client",
183
- $metadata: deserializeMetadata(output),
182
+ $metadata: $metadata,
184
183
  });
185
184
  throw __decorateServiceException(response, parsedBody);
186
185
  }
@@ -205,7 +204,7 @@ export var deserializeAws_restJson1PutUsersCommand = function (output, context)
205
204
  });
206
205
  }); };
207
206
  var deserializeAws_restJson1PutUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
208
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
207
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
209
208
  var _c;
210
209
  return __generator(this, function (_d) {
211
210
  switch (_d.label) {
@@ -215,7 +214,6 @@ var deserializeAws_restJson1PutUsersCommandError = function (output, context) {
215
214
  return [4, parseBody(output.body, context)];
216
215
  case 1:
217
216
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
218
- errorCode = "UnknownError";
219
217
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
220
218
  _b = errorCode;
221
219
  switch (_b) {
@@ -235,10 +233,12 @@ var deserializeAws_restJson1PutUsersCommandError = function (output, context) {
235
233
  case 7: throw _d.sent();
236
234
  case 8:
237
235
  parsedBody = parsedOutput.body;
236
+ $metadata = deserializeMetadata(output);
237
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
238
238
  response = new __BaseException({
239
- name: parsedBody.code || parsedBody.Code || errorCode,
239
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
240
240
  $fault: "client",
241
- $metadata: deserializeMetadata(output),
241
+ $metadata: $metadata,
242
242
  });
243
243
  throw __decorateServiceException(response, parsedBody);
244
244
  }
@@ -281,11 +281,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
281
281
  });
282
282
  }); };
283
283
  var serializeAws_restJson1Event = function (input, context) {
284
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId })), (input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType })), (input.eventValue !== undefined &&
285
- input.eventValue !== null && { eventValue: __serializeFloat(input.eventValue) })), (input.impression !== undefined &&
286
- input.impression !== null && { impression: serializeAws_restJson1Impression(input.impression, context) })), (input.itemId !== undefined && input.itemId !== null && { itemId: input.itemId })), (input.properties !== undefined &&
287
- input.properties !== null && { properties: __LazyJsonString.fromObject(input.properties) })), (input.recommendationId !== undefined &&
288
- input.recommendationId !== null && { recommendationId: input.recommendationId })), (input.sentAt !== undefined && input.sentAt !== null && { sentAt: Math.round(input.sentAt.getTime() / 1000) }));
284
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.eventId != null && { eventId: input.eventId })), (input.eventType != null && { eventType: input.eventType })), (input.eventValue != null && { eventValue: __serializeFloat(input.eventValue) })), (input.impression != null && { impression: serializeAws_restJson1Impression(input.impression, context) })), (input.itemId != null && { itemId: input.itemId })), (input.properties != null && { properties: __LazyJsonString.fromObject(input.properties) })), (input.recommendationId != null && { recommendationId: input.recommendationId })), (input.sentAt != null && { sentAt: Math.round(input.sentAt.getTime() / 1000) }));
289
285
  };
290
286
  var serializeAws_restJson1EventList = function (input, context) {
291
287
  return input
@@ -308,8 +304,7 @@ var serializeAws_restJson1Impression = function (input, context) {
308
304
  });
309
305
  };
310
306
  var serializeAws_restJson1Item = function (input, context) {
311
- return __assign(__assign({}, (input.itemId !== undefined && input.itemId !== null && { itemId: input.itemId })), (input.properties !== undefined &&
312
- input.properties !== null && { properties: __LazyJsonString.fromObject(input.properties) }));
307
+ return __assign(__assign({}, (input.itemId != null && { itemId: input.itemId })), (input.properties != null && { properties: __LazyJsonString.fromObject(input.properties) }));
313
308
  };
314
309
  var serializeAws_restJson1ItemList = function (input, context) {
315
310
  return input
@@ -322,8 +317,7 @@ var serializeAws_restJson1ItemList = function (input, context) {
322
317
  });
323
318
  };
324
319
  var serializeAws_restJson1User = function (input, context) {
325
- return __assign(__assign({}, (input.properties !== undefined &&
326
- input.properties !== null && { properties: __LazyJsonString.fromObject(input.properties) })), (input.userId !== undefined && input.userId !== null && { userId: input.userId }));
320
+ return __assign(__assign({}, (input.properties != null && { properties: __LazyJsonString.fromObject(input.properties) })), (input.userId != null && { userId: input.userId }));
327
321
  };
328
322
  var serializeAws_restJson1UserList = function (input, context) {
329
323
  return input
@@ -391,5 +385,4 @@ var loadRestJsonErrorCode = function (output, data) {
391
385
  if (data["__type"] !== undefined) {
392
386
  return sanitizeErrorCode(data["__type"]);
393
387
  }
394
- return "";
395
388
  };
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.118.1",
4
+ "version": "3.128.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",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.118.1",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.118.1",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.128.0",
22
+ "@aws-sdk/config-resolver": "3.128.0",
23
+ "@aws-sdk/credential-provider-node": "3.128.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.128.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.128.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"