@aws-sdk/client-personalize-events 3.928.0 → 3.930.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/dist-cjs/index.js +304 -379
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/PersonalizeEventsClient.js +2 -0
- package/dist-es/commands/PutActionInteractionsCommand.js +3 -10
- package/dist-es/commands/PutActionsCommand.js +3 -10
- package/dist-es/commands/PutEventsCommand.js +3 -10
- package/dist-es/commands/PutItemsCommand.js +3 -10
- package/dist-es/commands/PutUsersCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -49
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +283 -0
- package/dist-types/PersonalizeEventsClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -40
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +37 -0
- package/dist-types/ts3.4/PersonalizeEventsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -22
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +43 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -278
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -47
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -65
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class PersonalizeEventsClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,14 +110,14 @@ class PersonalizeEventsClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class PersonalizeEventsServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let PersonalizeEventsServiceException$1 = class PersonalizeEventsServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, PersonalizeEventsServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
|
-
class InvalidInputException extends PersonalizeEventsServiceException {
|
|
120
|
+
let InvalidInputException$1 = class InvalidInputException extends PersonalizeEventsServiceException$1 {
|
|
121
121
|
name = "InvalidInputException";
|
|
122
122
|
$fault = "client";
|
|
123
123
|
constructor(opts) {
|
|
@@ -128,8 +128,8 @@ class InvalidInputException extends PersonalizeEventsServiceException {
|
|
|
128
128
|
});
|
|
129
129
|
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
130
130
|
}
|
|
131
|
-
}
|
|
132
|
-
class ResourceInUseException extends PersonalizeEventsServiceException {
|
|
131
|
+
};
|
|
132
|
+
let ResourceInUseException$1 = class ResourceInUseException extends PersonalizeEventsServiceException$1 {
|
|
133
133
|
name = "ResourceInUseException";
|
|
134
134
|
$fault = "client";
|
|
135
135
|
constructor(opts) {
|
|
@@ -140,8 +140,8 @@ class ResourceInUseException extends PersonalizeEventsServiceException {
|
|
|
140
140
|
});
|
|
141
141
|
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
142
142
|
}
|
|
143
|
-
}
|
|
144
|
-
class ResourceNotFoundException extends PersonalizeEventsServiceException {
|
|
143
|
+
};
|
|
144
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends PersonalizeEventsServiceException$1 {
|
|
145
145
|
name = "ResourceNotFoundException";
|
|
146
146
|
$fault = "client";
|
|
147
147
|
constructor(opts) {
|
|
@@ -152,343 +152,298 @@ class ResourceNotFoundException extends PersonalizeEventsServiceException {
|
|
|
152
152
|
});
|
|
153
153
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
154
154
|
}
|
|
155
|
-
}
|
|
156
|
-
const ActionFilterSensitiveLog = (obj) => ({
|
|
157
|
-
...obj,
|
|
158
|
-
...(obj.properties && { properties: smithyClient.SENSITIVE_STRING }),
|
|
159
|
-
});
|
|
160
|
-
const ActionInteractionFilterSensitiveLog = (obj) => ({
|
|
161
|
-
...obj,
|
|
162
|
-
...(obj.actionId && { actionId: smithyClient.SENSITIVE_STRING }),
|
|
163
|
-
...(obj.userId && { userId: smithyClient.SENSITIVE_STRING }),
|
|
164
|
-
...(obj.impression && { impression: smithyClient.SENSITIVE_STRING }),
|
|
165
|
-
...(obj.properties && { properties: smithyClient.SENSITIVE_STRING }),
|
|
166
|
-
});
|
|
167
|
-
const PutActionInteractionsRequestFilterSensitiveLog = (obj) => ({
|
|
168
|
-
...obj,
|
|
169
|
-
...(obj.actionInteractions && {
|
|
170
|
-
actionInteractions: obj.actionInteractions.map((item) => ActionInteractionFilterSensitiveLog(item)),
|
|
171
|
-
}),
|
|
172
|
-
});
|
|
173
|
-
const PutActionsRequestFilterSensitiveLog = (obj) => ({
|
|
174
|
-
...obj,
|
|
175
|
-
...(obj.actions && { actions: obj.actions.map((item) => ActionFilterSensitiveLog(item)) }),
|
|
176
|
-
});
|
|
177
|
-
const EventFilterSensitiveLog = (obj) => ({
|
|
178
|
-
...obj,
|
|
179
|
-
...(obj.itemId && { itemId: smithyClient.SENSITIVE_STRING }),
|
|
180
|
-
...(obj.properties && { properties: smithyClient.SENSITIVE_STRING }),
|
|
181
|
-
...(obj.impression && { impression: smithyClient.SENSITIVE_STRING }),
|
|
182
|
-
});
|
|
183
|
-
const PutEventsRequestFilterSensitiveLog = (obj) => ({
|
|
184
|
-
...obj,
|
|
185
|
-
...(obj.userId && { userId: smithyClient.SENSITIVE_STRING }),
|
|
186
|
-
...(obj.eventList && { eventList: smithyClient.SENSITIVE_STRING }),
|
|
187
|
-
});
|
|
188
|
-
const ItemFilterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
...(obj.properties && { properties: smithyClient.SENSITIVE_STRING }),
|
|
191
|
-
});
|
|
192
|
-
const PutItemsRequestFilterSensitiveLog = (obj) => ({
|
|
193
|
-
...obj,
|
|
194
|
-
...(obj.items && { items: obj.items.map((item) => ItemFilterSensitiveLog(item)) }),
|
|
195
|
-
});
|
|
196
|
-
const UserFilterSensitiveLog = (obj) => ({
|
|
197
|
-
...obj,
|
|
198
|
-
...(obj.properties && { properties: smithyClient.SENSITIVE_STRING }),
|
|
199
|
-
});
|
|
200
|
-
const PutUsersRequestFilterSensitiveLog = (obj) => ({
|
|
201
|
-
...obj,
|
|
202
|
-
...(obj.users && { users: obj.users.map((item) => UserFilterSensitiveLog(item)) }),
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
const se_PutActionInteractionsCommand = async (input, context) => {
|
|
206
|
-
const b = core.requestBuilder(input, context);
|
|
207
|
-
const headers = {
|
|
208
|
-
"content-type": "application/json",
|
|
209
|
-
};
|
|
210
|
-
b.bp("/action-interactions");
|
|
211
|
-
let body;
|
|
212
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
213
|
-
actionInteractions: (_) => se_ActionInteractionsList(_),
|
|
214
|
-
trackingId: [],
|
|
215
|
-
}));
|
|
216
|
-
b.m("POST").h(headers).b(body);
|
|
217
|
-
return b.build();
|
|
218
|
-
};
|
|
219
|
-
const se_PutActionsCommand = async (input, context) => {
|
|
220
|
-
const b = core.requestBuilder(input, context);
|
|
221
|
-
const headers = {
|
|
222
|
-
"content-type": "application/json",
|
|
223
|
-
};
|
|
224
|
-
b.bp("/actions");
|
|
225
|
-
let body;
|
|
226
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
227
|
-
actions: (_) => se_ActionList(_),
|
|
228
|
-
datasetArn: [],
|
|
229
|
-
}));
|
|
230
|
-
b.m("POST").h(headers).b(body);
|
|
231
|
-
return b.build();
|
|
232
|
-
};
|
|
233
|
-
const se_PutEventsCommand = async (input, context) => {
|
|
234
|
-
const b = core.requestBuilder(input, context);
|
|
235
|
-
const headers = {
|
|
236
|
-
"content-type": "application/json",
|
|
237
|
-
};
|
|
238
|
-
b.bp("/events");
|
|
239
|
-
let body;
|
|
240
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
241
|
-
eventList: (_) => se_EventList(_),
|
|
242
|
-
sessionId: [],
|
|
243
|
-
trackingId: [],
|
|
244
|
-
userId: [],
|
|
245
|
-
}));
|
|
246
|
-
b.m("POST").h(headers).b(body);
|
|
247
|
-
return b.build();
|
|
248
|
-
};
|
|
249
|
-
const se_PutItemsCommand = async (input, context) => {
|
|
250
|
-
const b = core.requestBuilder(input, context);
|
|
251
|
-
const headers = {
|
|
252
|
-
"content-type": "application/json",
|
|
253
|
-
};
|
|
254
|
-
b.bp("/items");
|
|
255
|
-
let body;
|
|
256
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
257
|
-
datasetArn: [],
|
|
258
|
-
items: (_) => se_ItemList(_),
|
|
259
|
-
}));
|
|
260
|
-
b.m("POST").h(headers).b(body);
|
|
261
|
-
return b.build();
|
|
262
|
-
};
|
|
263
|
-
const se_PutUsersCommand = async (input, context) => {
|
|
264
|
-
const b = core.requestBuilder(input, context);
|
|
265
|
-
const headers = {
|
|
266
|
-
"content-type": "application/json",
|
|
267
|
-
};
|
|
268
|
-
b.bp("/users");
|
|
269
|
-
let body;
|
|
270
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
271
|
-
datasetArn: [],
|
|
272
|
-
users: (_) => se_UserList(_),
|
|
273
|
-
}));
|
|
274
|
-
b.m("POST").h(headers).b(body);
|
|
275
|
-
return b.build();
|
|
276
|
-
};
|
|
277
|
-
const de_PutActionInteractionsCommand = async (output, context) => {
|
|
278
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
279
|
-
return de_CommandError(output, context);
|
|
280
|
-
}
|
|
281
|
-
const contents = smithyClient.map({
|
|
282
|
-
$metadata: deserializeMetadata(output),
|
|
283
|
-
});
|
|
284
|
-
await smithyClient.collectBody(output.body, context);
|
|
285
|
-
return contents;
|
|
286
|
-
};
|
|
287
|
-
const de_PutActionsCommand = async (output, context) => {
|
|
288
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
289
|
-
return de_CommandError(output, context);
|
|
290
|
-
}
|
|
291
|
-
const contents = smithyClient.map({
|
|
292
|
-
$metadata: deserializeMetadata(output),
|
|
293
|
-
});
|
|
294
|
-
await smithyClient.collectBody(output.body, context);
|
|
295
|
-
return contents;
|
|
296
|
-
};
|
|
297
|
-
const de_PutEventsCommand = async (output, context) => {
|
|
298
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
299
|
-
return de_CommandError(output, context);
|
|
300
|
-
}
|
|
301
|
-
const contents = smithyClient.map({
|
|
302
|
-
$metadata: deserializeMetadata(output),
|
|
303
|
-
});
|
|
304
|
-
await smithyClient.collectBody(output.body, context);
|
|
305
|
-
return contents;
|
|
306
|
-
};
|
|
307
|
-
const de_PutItemsCommand = async (output, context) => {
|
|
308
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
309
|
-
return de_CommandError(output, context);
|
|
310
|
-
}
|
|
311
|
-
const contents = smithyClient.map({
|
|
312
|
-
$metadata: deserializeMetadata(output),
|
|
313
|
-
});
|
|
314
|
-
await smithyClient.collectBody(output.body, context);
|
|
315
|
-
return contents;
|
|
316
|
-
};
|
|
317
|
-
const de_PutUsersCommand = async (output, context) => {
|
|
318
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
319
|
-
return de_CommandError(output, context);
|
|
320
|
-
}
|
|
321
|
-
const contents = smithyClient.map({
|
|
322
|
-
$metadata: deserializeMetadata(output),
|
|
323
|
-
});
|
|
324
|
-
await smithyClient.collectBody(output.body, context);
|
|
325
|
-
return contents;
|
|
326
|
-
};
|
|
327
|
-
const de_CommandError = async (output, context) => {
|
|
328
|
-
const parsedOutput = {
|
|
329
|
-
...output,
|
|
330
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
331
|
-
};
|
|
332
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
333
|
-
switch (errorCode) {
|
|
334
|
-
case "InvalidInputException":
|
|
335
|
-
case "com.amazonaws.personalizeevents#InvalidInputException":
|
|
336
|
-
throw await de_InvalidInputExceptionRes(parsedOutput);
|
|
337
|
-
case "ResourceInUseException":
|
|
338
|
-
case "com.amazonaws.personalizeevents#ResourceInUseException":
|
|
339
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput);
|
|
340
|
-
case "ResourceNotFoundException":
|
|
341
|
-
case "com.amazonaws.personalizeevents#ResourceNotFoundException":
|
|
342
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
343
|
-
default:
|
|
344
|
-
const parsedBody = parsedOutput.body;
|
|
345
|
-
return throwDefaultError({
|
|
346
|
-
output,
|
|
347
|
-
parsedBody,
|
|
348
|
-
errorCode,
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
const throwDefaultError = smithyClient.withBaseException(PersonalizeEventsServiceException);
|
|
353
|
-
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
354
|
-
const contents = smithyClient.map({});
|
|
355
|
-
const data = parsedOutput.body;
|
|
356
|
-
const doc = smithyClient.take(data, {
|
|
357
|
-
message: smithyClient.expectString,
|
|
358
|
-
});
|
|
359
|
-
Object.assign(contents, doc);
|
|
360
|
-
const exception = new InvalidInputException({
|
|
361
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
362
|
-
...contents,
|
|
363
|
-
});
|
|
364
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
365
|
-
};
|
|
366
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
367
|
-
const contents = smithyClient.map({});
|
|
368
|
-
const data = parsedOutput.body;
|
|
369
|
-
const doc = smithyClient.take(data, {
|
|
370
|
-
message: smithyClient.expectString,
|
|
371
|
-
});
|
|
372
|
-
Object.assign(contents, doc);
|
|
373
|
-
const exception = new ResourceInUseException({
|
|
374
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
375
|
-
...contents,
|
|
376
|
-
});
|
|
377
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
378
|
-
};
|
|
379
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
380
|
-
const contents = smithyClient.map({});
|
|
381
|
-
const data = parsedOutput.body;
|
|
382
|
-
const doc = smithyClient.take(data, {
|
|
383
|
-
message: smithyClient.expectString,
|
|
384
|
-
});
|
|
385
|
-
Object.assign(contents, doc);
|
|
386
|
-
const exception = new ResourceNotFoundException({
|
|
387
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
388
|
-
...contents,
|
|
389
|
-
});
|
|
390
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
391
|
-
};
|
|
392
|
-
const se_Action = (input, context) => {
|
|
393
|
-
return smithyClient.take(input, {
|
|
394
|
-
actionId: [],
|
|
395
|
-
properties: smithyClient.LazyJsonString.from,
|
|
396
|
-
});
|
|
397
|
-
};
|
|
398
|
-
const se_ActionInteraction = (input, context) => {
|
|
399
|
-
return smithyClient.take(input, {
|
|
400
|
-
actionId: [],
|
|
401
|
-
eventId: [],
|
|
402
|
-
eventType: [],
|
|
403
|
-
impression: smithyClient._json,
|
|
404
|
-
properties: smithyClient.LazyJsonString.from,
|
|
405
|
-
recommendationId: [],
|
|
406
|
-
sessionId: [],
|
|
407
|
-
timestamp: (_) => _.getTime() / 1_000,
|
|
408
|
-
userId: [],
|
|
409
|
-
});
|
|
410
|
-
};
|
|
411
|
-
const se_ActionInteractionsList = (input, context) => {
|
|
412
|
-
return input
|
|
413
|
-
.filter((e) => e != null)
|
|
414
|
-
.map((entry) => {
|
|
415
|
-
return se_ActionInteraction(entry);
|
|
416
|
-
});
|
|
417
|
-
};
|
|
418
|
-
const se_ActionList = (input, context) => {
|
|
419
|
-
return input
|
|
420
|
-
.filter((e) => e != null)
|
|
421
|
-
.map((entry) => {
|
|
422
|
-
return se_Action(entry);
|
|
423
|
-
});
|
|
424
155
|
};
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
const
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
const
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
const
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
156
|
+
|
|
157
|
+
const _A = "Action";
|
|
158
|
+
const _AI = "ActionId";
|
|
159
|
+
const _AIL = "ActionInteractionsList";
|
|
160
|
+
const _AIc = "ActionInteraction";
|
|
161
|
+
const _AIct = "ActionImpression";
|
|
162
|
+
const _AL = "ActionList";
|
|
163
|
+
const _E = "Event";
|
|
164
|
+
const _EL = "EventList";
|
|
165
|
+
const _I = "Item";
|
|
166
|
+
const _II = "ItemId";
|
|
167
|
+
const _IIE = "InvalidInputException";
|
|
168
|
+
const _IL = "ItemList";
|
|
169
|
+
const _Im = "Impression";
|
|
170
|
+
const _MA = "MetricAttribution";
|
|
171
|
+
const _PA = "PutActions";
|
|
172
|
+
const _PAI = "PutActionInteractions";
|
|
173
|
+
const _PAIR = "PutActionInteractionsRequest";
|
|
174
|
+
const _PAR = "PutActionsRequest";
|
|
175
|
+
const _PE = "PutEvents";
|
|
176
|
+
const _PER = "PutEventsRequest";
|
|
177
|
+
const _PI = "PutItems";
|
|
178
|
+
const _PIR = "PutItemsRequest";
|
|
179
|
+
const _PU = "PutUsers";
|
|
180
|
+
const _PUR = "PutUsersRequest";
|
|
181
|
+
const _RIUE = "ResourceInUseException";
|
|
182
|
+
const _RNFE = "ResourceNotFoundException";
|
|
183
|
+
const _SJAIP = "SynthesizedJsonActionInteractionProperties";
|
|
184
|
+
const _SJAP = "SynthesizedJsonActionProperties";
|
|
185
|
+
const _SJEPJSON = "SynthesizedJsonEventPropertiesJSON";
|
|
186
|
+
const _SJIP = "SynthesizedJsonItemProperties";
|
|
187
|
+
const _SJUP = "SynthesizedJsonUserProperties";
|
|
188
|
+
const _U = "User";
|
|
189
|
+
const _UI = "UserId";
|
|
190
|
+
const _UL = "UserList";
|
|
191
|
+
const _a = "application/json";
|
|
192
|
+
const _aI = "actionId";
|
|
193
|
+
const _aIc = "actionInteractions";
|
|
194
|
+
const _ac = "actions";
|
|
195
|
+
const _c = "client";
|
|
196
|
+
const _dA = "datasetArn";
|
|
197
|
+
const _e = "error";
|
|
198
|
+
const _eAS = "eventAttributionSource";
|
|
199
|
+
const _eI = "eventId";
|
|
200
|
+
const _eL = "eventList";
|
|
201
|
+
const _eT = "eventType";
|
|
202
|
+
const _eV = "eventValue";
|
|
203
|
+
const _h = "http";
|
|
204
|
+
const _hE = "httpError";
|
|
205
|
+
const _i = "impression";
|
|
206
|
+
const _iI = "itemId";
|
|
207
|
+
const _it = "items";
|
|
208
|
+
const _m = "message";
|
|
209
|
+
const _mA = "metricAttribution";
|
|
210
|
+
const _mT = "mediaType";
|
|
211
|
+
const _p = "properties";
|
|
212
|
+
const _rI = "recommendationId";
|
|
213
|
+
const _s = "sensitive";
|
|
214
|
+
const _sA = "sentAt";
|
|
215
|
+
const _sI = "sessionId";
|
|
216
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.personalizeevents";
|
|
217
|
+
const _t = "timestamp";
|
|
218
|
+
const _tI = "trackingId";
|
|
219
|
+
const _u = "users";
|
|
220
|
+
const _uI = "userId";
|
|
221
|
+
const n0 = "com.amazonaws.personalizeevents";
|
|
222
|
+
var ActionId = [0, n0, _AI, 8, 0];
|
|
223
|
+
var ItemId = [0, n0, _II, 8, 0];
|
|
224
|
+
var SynthesizedJsonActionInteractionProperties = [
|
|
225
|
+
0,
|
|
226
|
+
n0,
|
|
227
|
+
_SJAIP,
|
|
228
|
+
{
|
|
229
|
+
[_mT]: _a,
|
|
230
|
+
[_s]: 1,
|
|
231
|
+
},
|
|
232
|
+
0,
|
|
233
|
+
];
|
|
234
|
+
var SynthesizedJsonActionProperties = [
|
|
235
|
+
0,
|
|
236
|
+
n0,
|
|
237
|
+
_SJAP,
|
|
238
|
+
{
|
|
239
|
+
[_mT]: _a,
|
|
240
|
+
[_s]: 1,
|
|
241
|
+
},
|
|
242
|
+
0,
|
|
243
|
+
];
|
|
244
|
+
var SynthesizedJsonEventPropertiesJSON = [
|
|
245
|
+
0,
|
|
246
|
+
n0,
|
|
247
|
+
_SJEPJSON,
|
|
248
|
+
{
|
|
249
|
+
[_mT]: _a,
|
|
250
|
+
[_s]: 1,
|
|
251
|
+
},
|
|
252
|
+
0,
|
|
253
|
+
];
|
|
254
|
+
var SynthesizedJsonItemProperties = [
|
|
255
|
+
0,
|
|
256
|
+
n0,
|
|
257
|
+
_SJIP,
|
|
258
|
+
{
|
|
259
|
+
[_mT]: _a,
|
|
260
|
+
[_s]: 1,
|
|
261
|
+
},
|
|
262
|
+
0,
|
|
263
|
+
];
|
|
264
|
+
var SynthesizedJsonUserProperties = [
|
|
265
|
+
0,
|
|
266
|
+
n0,
|
|
267
|
+
_SJUP,
|
|
268
|
+
{
|
|
269
|
+
[_mT]: _a,
|
|
270
|
+
[_s]: 1,
|
|
271
|
+
},
|
|
272
|
+
0,
|
|
273
|
+
];
|
|
274
|
+
var UserId = [0, n0, _UI, 8, 0];
|
|
275
|
+
var Action = [3, n0, _A, 0, [_aI, _p], [0, [() => SynthesizedJsonActionProperties, 0]]];
|
|
276
|
+
var ActionInteraction = [
|
|
277
|
+
3,
|
|
278
|
+
n0,
|
|
279
|
+
_AIc,
|
|
280
|
+
0,
|
|
281
|
+
[_aI, _uI, _sI, _t, _eT, _eI, _rI, _i, _p],
|
|
282
|
+
[
|
|
283
|
+
[() => ActionId, 0],
|
|
284
|
+
[() => UserId, 0],
|
|
285
|
+
0,
|
|
286
|
+
4,
|
|
287
|
+
0,
|
|
288
|
+
0,
|
|
289
|
+
0,
|
|
290
|
+
[() => ActionImpression, 0],
|
|
291
|
+
[() => SynthesizedJsonActionInteractionProperties, 0],
|
|
292
|
+
],
|
|
293
|
+
];
|
|
294
|
+
var Event = [
|
|
295
|
+
3,
|
|
296
|
+
n0,
|
|
297
|
+
_E,
|
|
298
|
+
8,
|
|
299
|
+
[_eI, _eT, _eV, _iI, _p, _sA, _rI, _i, _mA],
|
|
300
|
+
[
|
|
301
|
+
0,
|
|
302
|
+
0,
|
|
303
|
+
1,
|
|
304
|
+
[() => ItemId, 0],
|
|
305
|
+
[() => SynthesizedJsonEventPropertiesJSON, 0],
|
|
306
|
+
4,
|
|
307
|
+
0,
|
|
308
|
+
[() => Impression, 0],
|
|
309
|
+
() => MetricAttribution,
|
|
310
|
+
],
|
|
311
|
+
];
|
|
312
|
+
var InvalidInputException = [
|
|
313
|
+
-3,
|
|
314
|
+
n0,
|
|
315
|
+
_IIE,
|
|
316
|
+
{
|
|
317
|
+
[_e]: _c,
|
|
318
|
+
[_hE]: 400,
|
|
319
|
+
},
|
|
320
|
+
[_m],
|
|
321
|
+
[0],
|
|
322
|
+
];
|
|
323
|
+
schema.TypeRegistry.for(n0).registerError(InvalidInputException, InvalidInputException$1);
|
|
324
|
+
var Item = [3, n0, _I, 0, [_iI, _p], [0, [() => SynthesizedJsonItemProperties, 0]]];
|
|
325
|
+
var MetricAttribution = [3, n0, _MA, 0, [_eAS], [0]];
|
|
326
|
+
var PutActionInteractionsRequest = [
|
|
327
|
+
3,
|
|
328
|
+
n0,
|
|
329
|
+
_PAIR,
|
|
330
|
+
0,
|
|
331
|
+
[_tI, _aIc],
|
|
332
|
+
[0, [() => ActionInteractionsList, 0]],
|
|
333
|
+
];
|
|
334
|
+
var PutActionsRequest = [3, n0, _PAR, 0, [_dA, _ac], [0, [() => ActionList, 0]]];
|
|
335
|
+
var PutEventsRequest = [
|
|
336
|
+
3,
|
|
337
|
+
n0,
|
|
338
|
+
_PER,
|
|
339
|
+
0,
|
|
340
|
+
[_tI, _uI, _sI, _eL],
|
|
341
|
+
[0, [() => UserId, 0], 0, [() => EventList, 0]],
|
|
342
|
+
];
|
|
343
|
+
var PutItemsRequest = [3, n0, _PIR, 0, [_dA, _it], [0, [() => ItemList, 0]]];
|
|
344
|
+
var PutUsersRequest = [3, n0, _PUR, 0, [_dA, _u], [0, [() => UserList, 0]]];
|
|
345
|
+
var ResourceInUseException = [
|
|
346
|
+
-3,
|
|
347
|
+
n0,
|
|
348
|
+
_RIUE,
|
|
349
|
+
{
|
|
350
|
+
[_e]: _c,
|
|
351
|
+
[_hE]: 409,
|
|
352
|
+
},
|
|
353
|
+
[_m],
|
|
354
|
+
[0],
|
|
355
|
+
];
|
|
356
|
+
schema.TypeRegistry.for(n0).registerError(ResourceInUseException, ResourceInUseException$1);
|
|
357
|
+
var ResourceNotFoundException = [
|
|
358
|
+
-3,
|
|
359
|
+
n0,
|
|
360
|
+
_RNFE,
|
|
361
|
+
{
|
|
362
|
+
[_e]: _c,
|
|
363
|
+
[_hE]: 404,
|
|
364
|
+
},
|
|
365
|
+
[_m],
|
|
366
|
+
[0],
|
|
367
|
+
];
|
|
368
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
369
|
+
var User = [3, n0, _U, 0, [_uI, _p], [0, [() => SynthesizedJsonUserProperties, 0]]];
|
|
370
|
+
var __Unit = "unit";
|
|
371
|
+
var PersonalizeEventsServiceException = [
|
|
372
|
+
-3,
|
|
373
|
+
_sm,
|
|
374
|
+
"PersonalizeEventsServiceException",
|
|
375
|
+
0,
|
|
376
|
+
[],
|
|
377
|
+
[],
|
|
378
|
+
];
|
|
379
|
+
schema.TypeRegistry.for(_sm).registerError(PersonalizeEventsServiceException, PersonalizeEventsServiceException$1);
|
|
380
|
+
var ActionImpression = [1, n0, _AIct, 0, [() => ActionId, 0]];
|
|
381
|
+
var ActionInteractionsList = [1, n0, _AIL, 0, [() => ActionInteraction, 0]];
|
|
382
|
+
var ActionList = [1, n0, _AL, 0, [() => Action, 0]];
|
|
383
|
+
var EventList = [1, n0, _EL, 0, [() => Event, 0]];
|
|
384
|
+
var Impression = [1, n0, _Im, 0, [() => ItemId, 0]];
|
|
385
|
+
var ItemList = [1, n0, _IL, 0, [() => Item, 0]];
|
|
386
|
+
var UserList = [1, n0, _UL, 0, [() => User, 0]];
|
|
387
|
+
var PutActionInteractions = [
|
|
388
|
+
9,
|
|
389
|
+
n0,
|
|
390
|
+
_PAI,
|
|
391
|
+
{
|
|
392
|
+
[_h]: ["POST", "/action-interactions", 200],
|
|
393
|
+
},
|
|
394
|
+
() => PutActionInteractionsRequest,
|
|
395
|
+
() => __Unit,
|
|
396
|
+
];
|
|
397
|
+
var PutActions = [
|
|
398
|
+
9,
|
|
399
|
+
n0,
|
|
400
|
+
_PA,
|
|
401
|
+
{
|
|
402
|
+
[_h]: ["POST", "/actions", 200],
|
|
403
|
+
},
|
|
404
|
+
() => PutActionsRequest,
|
|
405
|
+
() => __Unit,
|
|
406
|
+
];
|
|
407
|
+
var PutEvents = [
|
|
408
|
+
9,
|
|
409
|
+
n0,
|
|
410
|
+
_PE,
|
|
411
|
+
{
|
|
412
|
+
[_h]: ["POST", "/events", 200],
|
|
413
|
+
},
|
|
414
|
+
() => PutEventsRequest,
|
|
415
|
+
() => __Unit,
|
|
416
|
+
];
|
|
417
|
+
var PutItems = [
|
|
418
|
+
9,
|
|
419
|
+
n0,
|
|
420
|
+
_PI,
|
|
421
|
+
{
|
|
422
|
+
[_h]: ["POST", "/items", 200],
|
|
423
|
+
},
|
|
424
|
+
() => PutItemsRequest,
|
|
425
|
+
() => __Unit,
|
|
426
|
+
];
|
|
427
|
+
var PutUsers = [
|
|
428
|
+
9,
|
|
429
|
+
n0,
|
|
430
|
+
_PU,
|
|
431
|
+
{
|
|
432
|
+
[_h]: ["POST", "/users", 200],
|
|
433
|
+
},
|
|
434
|
+
() => PutUsersRequest,
|
|
435
|
+
() => __Unit,
|
|
436
|
+
];
|
|
477
437
|
|
|
478
438
|
class PutActionInteractionsCommand extends smithyClient.Command
|
|
479
439
|
.classBuilder()
|
|
480
440
|
.ep(commonParams)
|
|
481
441
|
.m(function (Command, cs, config, o) {
|
|
482
|
-
return [
|
|
483
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
484
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
485
|
-
];
|
|
442
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
486
443
|
})
|
|
487
444
|
.s("AmazonPersonalizeEvents", "PutActionInteractions", {})
|
|
488
445
|
.n("PersonalizeEventsClient", "PutActionInteractionsCommand")
|
|
489
|
-
.
|
|
490
|
-
.ser(se_PutActionInteractionsCommand)
|
|
491
|
-
.de(de_PutActionInteractionsCommand)
|
|
446
|
+
.sc(PutActionInteractions)
|
|
492
447
|
.build() {
|
|
493
448
|
}
|
|
494
449
|
|
|
@@ -496,16 +451,11 @@ class PutActionsCommand extends smithyClient.Command
|
|
|
496
451
|
.classBuilder()
|
|
497
452
|
.ep(commonParams)
|
|
498
453
|
.m(function (Command, cs, config, o) {
|
|
499
|
-
return [
|
|
500
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
501
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
502
|
-
];
|
|
454
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
503
455
|
})
|
|
504
456
|
.s("AmazonPersonalizeEvents", "PutActions", {})
|
|
505
457
|
.n("PersonalizeEventsClient", "PutActionsCommand")
|
|
506
|
-
.
|
|
507
|
-
.ser(se_PutActionsCommand)
|
|
508
|
-
.de(de_PutActionsCommand)
|
|
458
|
+
.sc(PutActions)
|
|
509
459
|
.build() {
|
|
510
460
|
}
|
|
511
461
|
|
|
@@ -513,16 +463,11 @@ class PutEventsCommand extends smithyClient.Command
|
|
|
513
463
|
.classBuilder()
|
|
514
464
|
.ep(commonParams)
|
|
515
465
|
.m(function (Command, cs, config, o) {
|
|
516
|
-
return [
|
|
517
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
518
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
519
|
-
];
|
|
466
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
520
467
|
})
|
|
521
468
|
.s("AmazonPersonalizeEvents", "PutEvents", {})
|
|
522
469
|
.n("PersonalizeEventsClient", "PutEventsCommand")
|
|
523
|
-
.
|
|
524
|
-
.ser(se_PutEventsCommand)
|
|
525
|
-
.de(de_PutEventsCommand)
|
|
470
|
+
.sc(PutEvents)
|
|
526
471
|
.build() {
|
|
527
472
|
}
|
|
528
473
|
|
|
@@ -530,16 +475,11 @@ class PutItemsCommand extends smithyClient.Command
|
|
|
530
475
|
.classBuilder()
|
|
531
476
|
.ep(commonParams)
|
|
532
477
|
.m(function (Command, cs, config, o) {
|
|
533
|
-
return [
|
|
534
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
535
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
536
|
-
];
|
|
478
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
537
479
|
})
|
|
538
480
|
.s("AmazonPersonalizeEvents", "PutItems", {})
|
|
539
481
|
.n("PersonalizeEventsClient", "PutItemsCommand")
|
|
540
|
-
.
|
|
541
|
-
.ser(se_PutItemsCommand)
|
|
542
|
-
.de(de_PutItemsCommand)
|
|
482
|
+
.sc(PutItems)
|
|
543
483
|
.build() {
|
|
544
484
|
}
|
|
545
485
|
|
|
@@ -547,16 +487,11 @@ class PutUsersCommand extends smithyClient.Command
|
|
|
547
487
|
.classBuilder()
|
|
548
488
|
.ep(commonParams)
|
|
549
489
|
.m(function (Command, cs, config, o) {
|
|
550
|
-
return [
|
|
551
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
552
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
553
|
-
];
|
|
490
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
554
491
|
})
|
|
555
492
|
.s("AmazonPersonalizeEvents", "PutUsers", {})
|
|
556
493
|
.n("PersonalizeEventsClient", "PutUsersCommand")
|
|
557
|
-
.
|
|
558
|
-
.ser(se_PutUsersCommand)
|
|
559
|
-
.de(de_PutUsersCommand)
|
|
494
|
+
.sc(PutUsers)
|
|
560
495
|
.build() {
|
|
561
496
|
}
|
|
562
497
|
|
|
@@ -579,24 +514,14 @@ Object.defineProperty(exports, "__Client", {
|
|
|
579
514
|
enumerable: true,
|
|
580
515
|
get: function () { return smithyClient.Client; }
|
|
581
516
|
});
|
|
582
|
-
exports.
|
|
583
|
-
exports.ActionInteractionFilterSensitiveLog = ActionInteractionFilterSensitiveLog;
|
|
584
|
-
exports.EventFilterSensitiveLog = EventFilterSensitiveLog;
|
|
585
|
-
exports.InvalidInputException = InvalidInputException;
|
|
586
|
-
exports.ItemFilterSensitiveLog = ItemFilterSensitiveLog;
|
|
517
|
+
exports.InvalidInputException = InvalidInputException$1;
|
|
587
518
|
exports.PersonalizeEvents = PersonalizeEvents;
|
|
588
519
|
exports.PersonalizeEventsClient = PersonalizeEventsClient;
|
|
589
|
-
exports.PersonalizeEventsServiceException = PersonalizeEventsServiceException;
|
|
520
|
+
exports.PersonalizeEventsServiceException = PersonalizeEventsServiceException$1;
|
|
590
521
|
exports.PutActionInteractionsCommand = PutActionInteractionsCommand;
|
|
591
|
-
exports.PutActionInteractionsRequestFilterSensitiveLog = PutActionInteractionsRequestFilterSensitiveLog;
|
|
592
522
|
exports.PutActionsCommand = PutActionsCommand;
|
|
593
|
-
exports.PutActionsRequestFilterSensitiveLog = PutActionsRequestFilterSensitiveLog;
|
|
594
523
|
exports.PutEventsCommand = PutEventsCommand;
|
|
595
|
-
exports.PutEventsRequestFilterSensitiveLog = PutEventsRequestFilterSensitiveLog;
|
|
596
524
|
exports.PutItemsCommand = PutItemsCommand;
|
|
597
|
-
exports.PutItemsRequestFilterSensitiveLog = PutItemsRequestFilterSensitiveLog;
|
|
598
525
|
exports.PutUsersCommand = PutUsersCommand;
|
|
599
|
-
exports.
|
|
600
|
-
exports.
|
|
601
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
602
|
-
exports.UserFilterSensitiveLog = UserFilterSensitiveLog;
|
|
526
|
+
exports.ResourceInUseException = ResourceInUseException$1;
|
|
527
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|