@aws-sdk/client-personalize-events 3.956.0 → 3.958.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/README.md CHANGED
@@ -11,10 +11,8 @@ it for model training either alone or combined with historical data. For more in
11
11
  <a href="https://docs.aws.amazon.com/personalize/latest/dg/recording-item-interaction-events.html">Recording item interaction events</a>.</p>
12
12
 
13
13
  ## Installing
14
-
15
14
  To install this package, simply type add or install @aws-sdk/client-personalize-events
16
15
  using your favorite package manager:
17
-
18
16
  - `npm install @aws-sdk/client-personalize-events`
19
17
  - `yarn add @aws-sdk/client-personalize-events`
20
18
  - `pnpm add @aws-sdk/client-personalize-events`
@@ -50,9 +48,7 @@ To send a request, you:
50
48
  // a client can be shared by different commands.
51
49
  const client = new PersonalizeEventsClient({ region: "REGION" });
52
50
 
53
- const params = {
54
- /** input parameters */
55
- };
51
+ const params = { /** input parameters */ };
56
52
  const command = new PutActionsCommand(params);
57
53
  ```
58
54
 
@@ -211,7 +207,6 @@ PutActionInteractions
211
207
  </summary>
212
208
 
213
209
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize-events/command/PutActionInteractionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize-events/Interface/PutActionInteractionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize-events/Interface/PutActionInteractionsCommandOutput/)
214
-
215
210
  </details>
216
211
  <details>
217
212
  <summary>
@@ -219,7 +214,6 @@ PutActions
219
214
  </summary>
220
215
 
221
216
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize-events/command/PutActionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize-events/Interface/PutActionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize-events/Interface/PutActionsCommandOutput/)
222
-
223
217
  </details>
224
218
  <details>
225
219
  <summary>
@@ -227,7 +221,6 @@ PutEvents
227
221
  </summary>
228
222
 
229
223
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize-events/command/PutEventsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize-events/Interface/PutEventsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize-events/Interface/PutEventsCommandOutput/)
230
-
231
224
  </details>
232
225
  <details>
233
226
  <summary>
@@ -235,7 +228,6 @@ PutItems
235
228
  </summary>
236
229
 
237
230
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize-events/command/PutItemsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize-events/Interface/PutItemsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize-events/Interface/PutItemsCommandOutput/)
238
-
239
231
  </details>
240
232
  <details>
241
233
  <summary>
@@ -243,5 +235,4 @@ PutUsers
243
235
  </summary>
244
236
 
245
237
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize-events/command/PutUsersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize-events/Interface/PutUsersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize-events/Interface/PutUsersCommandOutput/)
246
-
247
238
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultPersonalizeEventsHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultPersonalizeEventsHttpAuthSchemeParametersProvider = defaultPersonalizeEventsHttpAuthSchemeParametersProvider;
package/dist-cjs/index.js CHANGED
@@ -227,127 +227,124 @@ var SynthesizedJsonEventPropertiesJSON = [0, n0, _SJEPJSON, { [_mT]: _a, [_s]: 1
227
227
  var SynthesizedJsonItemProperties = [0, n0, _SJIP, { [_mT]: _a, [_s]: 1 }, 0];
228
228
  var SynthesizedJsonUserProperties = [0, n0, _SJUP, { [_mT]: _a, [_s]: 1 }, 0];
229
229
  var UserId = [0, n0, _UI, 8, 0];
230
- var Action$ = [3, n0, _A, 0, [_aI, _p], [0, [() => SynthesizedJsonActionProperties, 0]]];
231
- var ActionInteraction$ = [
232
- 3,
233
- n0,
234
- _AIc,
230
+ var Action$ = [3, n0, _A,
231
+ 0,
232
+ [_aI, _p],
233
+ [0, [() => SynthesizedJsonActionProperties, 0]]
234
+ ];
235
+ var ActionInteraction$ = [3, n0, _AIc,
235
236
  0,
236
237
  [_aI, _uI, _sI, _t, _eT, _eI, _rI, _i, _p],
237
- [
238
- [() => ActionId, 0],
239
- [() => UserId, 0],
240
- 0,
241
- 4,
242
- 0,
243
- 0,
244
- 0,
245
- [() => ActionImpression, 0],
246
- [() => SynthesizedJsonActionInteractionProperties, 0],
247
- ],
238
+ [[() => ActionId, 0], [() => UserId, 0], 0, 4, 0, 0, 0, [() => ActionImpression, 0], [() => SynthesizedJsonActionInteractionProperties, 0]]
248
239
  ];
249
- var Event$ = [
250
- 3,
251
- n0,
252
- _E,
240
+ var Event$ = [3, n0, _E,
253
241
  8,
254
242
  [_eI, _eT, _eV, _iI, _p, _sA, _rI, _i, _mA],
255
- [
256
- 0,
257
- 0,
258
- 1,
259
- [() => ItemId, 0],
260
- [() => SynthesizedJsonEventPropertiesJSON, 0],
261
- 4,
262
- 0,
263
- [() => Impression, 0],
264
- () => MetricAttribution$,
265
- ],
243
+ [0, 0, 1, [() => ItemId, 0], [() => SynthesizedJsonEventPropertiesJSON, 0], 4, 0, [() => Impression, 0], () => MetricAttribution$]
244
+ ];
245
+ var InvalidInputException$ = [-3, n0, _IIE,
246
+ { [_e]: _c, [_hE]: 400 },
247
+ [_m],
248
+ [0]
266
249
  ];
267
- var InvalidInputException$ = [-3, n0, _IIE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
268
250
  schema.TypeRegistry.for(n0).registerError(InvalidInputException$, InvalidInputException);
269
- var Item$ = [3, n0, _I, 0, [_iI, _p], [0, [() => SynthesizedJsonItemProperties, 0]]];
270
- var MetricAttribution$ = [3, n0, _MA, 0, [_eAS], [0]];
271
- var PutActionInteractionsRequest$ = [
272
- 3,
273
- n0,
274
- _PAIR,
251
+ var Item$ = [3, n0, _I,
252
+ 0,
253
+ [_iI, _p],
254
+ [0, [() => SynthesizedJsonItemProperties, 0]]
255
+ ];
256
+ var MetricAttribution$ = [3, n0, _MA,
257
+ 0,
258
+ [_eAS],
259
+ [0]
260
+ ];
261
+ var PutActionInteractionsRequest$ = [3, n0, _PAIR,
275
262
  0,
276
263
  [_tI, _aIc],
277
- [0, [() => ActionInteractionsList, 0]],
264
+ [0, [() => ActionInteractionsList, 0]]
265
+ ];
266
+ var PutActionsRequest$ = [3, n0, _PAR,
267
+ 0,
268
+ [_dA, _ac],
269
+ [0, [() => ActionList, 0]]
278
270
  ];
279
- var PutActionsRequest$ = [3, n0, _PAR, 0, [_dA, _ac], [0, [() => ActionList, 0]]];
280
- var PutEventsRequest$ = [
281
- 3,
282
- n0,
283
- _PER,
271
+ var PutEventsRequest$ = [3, n0, _PER,
284
272
  0,
285
273
  [_tI, _uI, _sI, _eL],
286
- [0, [() => UserId, 0], 0, [() => EventList, 0]],
274
+ [0, [() => UserId, 0], 0, [() => EventList, 0]]
275
+ ];
276
+ var PutItemsRequest$ = [3, n0, _PIR,
277
+ 0,
278
+ [_dA, _it],
279
+ [0, [() => ItemList, 0]]
280
+ ];
281
+ var PutUsersRequest$ = [3, n0, _PUR,
282
+ 0,
283
+ [_dA, _u],
284
+ [0, [() => UserList, 0]]
285
+ ];
286
+ var ResourceInUseException$ = [-3, n0, _RIUE,
287
+ { [_e]: _c, [_hE]: 409 },
288
+ [_m],
289
+ [0]
287
290
  ];
288
- var PutItemsRequest$ = [3, n0, _PIR, 0, [_dA, _it], [0, [() => ItemList, 0]]];
289
- var PutUsersRequest$ = [3, n0, _PUR, 0, [_dA, _u], [0, [() => UserList, 0]]];
290
- var ResourceInUseException$ = [-3, n0, _RIUE, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
291
291
  schema.TypeRegistry.for(n0).registerError(ResourceInUseException$, ResourceInUseException);
292
- var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
292
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
293
+ { [_e]: _c, [_hE]: 404 },
294
+ [_m],
295
+ [0]
296
+ ];
293
297
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
294
- var User$ = [3, n0, _U, 0, [_uI, _p], [0, [() => SynthesizedJsonUserProperties, 0]]];
295
- var __Unit = "unit";
296
- var PersonalizeEventsServiceException$ = [
297
- -3,
298
- _sm,
299
- "PersonalizeEventsServiceException",
298
+ var User$ = [3, n0, _U,
300
299
  0,
301
- [],
302
- [],
300
+ [_uI, _p],
301
+ [0, [() => SynthesizedJsonUserProperties, 0]]
303
302
  ];
303
+ var __Unit = "unit";
304
+ var PersonalizeEventsServiceException$ = [-3, _sm, "PersonalizeEventsServiceException", 0, [], []];
304
305
  schema.TypeRegistry.for(_sm).registerError(PersonalizeEventsServiceException$, PersonalizeEventsServiceException);
305
- var ActionImpression = [1, n0, _AIct, 0, [() => ActionId, 0]];
306
- var ActionInteractionsList = [1, n0, _AIL, 0, [() => ActionInteraction$, 0]];
307
- var ActionList = [1, n0, _AL, 0, [() => Action$, 0]];
308
- var EventList = [1, n0, _EL, 0, [() => Event$, 0]];
309
- var Impression = [1, n0, _Im, 0, [() => ItemId, 0]];
310
- var ItemList = [1, n0, _IL, 0, [() => Item$, 0]];
311
- var UserList = [1, n0, _UL, 0, [() => User$, 0]];
312
- var PutActionInteractions$ = [
313
- 9,
314
- n0,
315
- _PAI,
316
- { [_h]: ["POST", "/action-interactions", 200] },
317
- () => PutActionInteractionsRequest$,
318
- () => __Unit,
306
+ var ActionImpression = [1, n0, _AIct,
307
+ 0, [() => ActionId,
308
+ 0]
309
+ ];
310
+ var ActionInteractionsList = [1, n0, _AIL,
311
+ 0, [() => ActionInteraction$,
312
+ 0]
313
+ ];
314
+ var ActionList = [1, n0, _AL,
315
+ 0, [() => Action$,
316
+ 0]
317
+ ];
318
+ var EventList = [1, n0, _EL,
319
+ 0, [() => Event$,
320
+ 0]
321
+ ];
322
+ var Impression = [1, n0, _Im,
323
+ 0, [() => ItemId,
324
+ 0]
325
+ ];
326
+ var ItemList = [1, n0, _IL,
327
+ 0, [() => Item$,
328
+ 0]
329
+ ];
330
+ var UserList = [1, n0, _UL,
331
+ 0, [() => User$,
332
+ 0]
333
+ ];
334
+ var PutActionInteractions$ = [9, n0, _PAI,
335
+ { [_h]: ["POST", "/action-interactions", 200] }, () => PutActionInteractionsRequest$, () => __Unit
319
336
  ];
320
- var PutActions$ = [
321
- 9,
322
- n0,
323
- _PA,
324
- { [_h]: ["POST", "/actions", 200] },
325
- () => PutActionsRequest$,
326
- () => __Unit,
337
+ var PutActions$ = [9, n0, _PA,
338
+ { [_h]: ["POST", "/actions", 200] }, () => PutActionsRequest$, () => __Unit
327
339
  ];
328
- var PutEvents$ = [
329
- 9,
330
- n0,
331
- _PE,
332
- { [_h]: ["POST", "/events", 200] },
333
- () => PutEventsRequest$,
334
- () => __Unit,
340
+ var PutEvents$ = [9, n0, _PE,
341
+ { [_h]: ["POST", "/events", 200] }, () => PutEventsRequest$, () => __Unit
335
342
  ];
336
- var PutItems$ = [
337
- 9,
338
- n0,
339
- _PI,
340
- { [_h]: ["POST", "/items", 200] },
341
- () => PutItemsRequest$,
342
- () => __Unit,
343
+ var PutItems$ = [9, n0, _PI,
344
+ { [_h]: ["POST", "/items", 200] }, () => PutItemsRequest$, () => __Unit
343
345
  ];
344
- var PutUsers$ = [
345
- 9,
346
- n0,
347
- _PU,
348
- { [_h]: ["POST", "/users", 200] },
349
- () => PutUsersRequest$,
350
- () => __Unit,
346
+ var PutUsers$ = [9, n0, _PU,
347
+ { [_h]: ["POST", "/users", 200] }, () => PutUsersRequest$, () => __Unit
351
348
  ];
352
349
 
353
350
  class PutActionInteractionsCommand extends smithyClient.Command
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
24
24
  defaultsMode,
25
25
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
26
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
- (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
28
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
29
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
34
34
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
35
35
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
36
36
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
37
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
38
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
39
38
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
40
- region: config?.region ??
41
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
39
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
41
  retryMode: config?.retryMode ??
44
42
  (0, node_config_provider_1.loadConfig)({
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultPersonalizeEventsHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
6
- region: (await normalizeProvider(config.region)()) ||
7
- (() => {
8
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
- })(),
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
10
9
  };
11
10
  };
12
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
20
20
  defaultsMode,
21
21
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
24
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
25
  region: config?.region ?? invalidProvider("Region is missing"),
27
26
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
4
+ import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
30
30
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
31
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
32
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
35
34
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
- region: config?.region ??
37
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
35
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
36
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
37
  retryMode: config?.retryMode ??
40
38
  loadNodeConfig({
@@ -74,125 +74,122 @@ var SynthesizedJsonEventPropertiesJSON = [0, n0, _SJEPJSON, { [_mT]: _a, [_s]: 1
74
74
  var SynthesizedJsonItemProperties = [0, n0, _SJIP, { [_mT]: _a, [_s]: 1 }, 0];
75
75
  var SynthesizedJsonUserProperties = [0, n0, _SJUP, { [_mT]: _a, [_s]: 1 }, 0];
76
76
  var UserId = [0, n0, _UI, 8, 0];
77
- export var Action$ = [3, n0, _A, 0, [_aI, _p], [0, [() => SynthesizedJsonActionProperties, 0]]];
78
- export var ActionInteraction$ = [
79
- 3,
80
- n0,
81
- _AIc,
77
+ export var Action$ = [3, n0, _A,
78
+ 0,
79
+ [_aI, _p],
80
+ [0, [() => SynthesizedJsonActionProperties, 0]]
81
+ ];
82
+ export var ActionInteraction$ = [3, n0, _AIc,
82
83
  0,
83
84
  [_aI, _uI, _sI, _t, _eT, _eI, _rI, _i, _p],
84
- [
85
- [() => ActionId, 0],
86
- [() => UserId, 0],
87
- 0,
88
- 4,
89
- 0,
90
- 0,
91
- 0,
92
- [() => ActionImpression, 0],
93
- [() => SynthesizedJsonActionInteractionProperties, 0],
94
- ],
95
- ];
96
- export var Event$ = [
97
- 3,
98
- n0,
99
- _E,
85
+ [[() => ActionId, 0], [() => UserId, 0], 0, 4, 0, 0, 0, [() => ActionImpression, 0], [() => SynthesizedJsonActionInteractionProperties, 0]]
86
+ ];
87
+ export var Event$ = [3, n0, _E,
100
88
  8,
101
89
  [_eI, _eT, _eV, _iI, _p, _sA, _rI, _i, _mA],
102
- [
103
- 0,
104
- 0,
105
- 1,
106
- [() => ItemId, 0],
107
- [() => SynthesizedJsonEventPropertiesJSON, 0],
108
- 4,
109
- 0,
110
- [() => Impression, 0],
111
- () => MetricAttribution$,
112
- ],
113
- ];
114
- export var InvalidInputException$ = [-3, n0, _IIE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
90
+ [0, 0, 1, [() => ItemId, 0], [() => SynthesizedJsonEventPropertiesJSON, 0], 4, 0, [() => Impression, 0], () => MetricAttribution$]
91
+ ];
92
+ export var InvalidInputException$ = [-3, n0, _IIE,
93
+ { [_e]: _c, [_hE]: 400 },
94
+ [_m],
95
+ [0]
96
+ ];
115
97
  TypeRegistry.for(n0).registerError(InvalidInputException$, InvalidInputException);
116
- export var Item$ = [3, n0, _I, 0, [_iI, _p], [0, [() => SynthesizedJsonItemProperties, 0]]];
117
- export var MetricAttribution$ = [3, n0, _MA, 0, [_eAS], [0]];
118
- export var PutActionInteractionsRequest$ = [
119
- 3,
120
- n0,
121
- _PAIR,
98
+ export var Item$ = [3, n0, _I,
99
+ 0,
100
+ [_iI, _p],
101
+ [0, [() => SynthesizedJsonItemProperties, 0]]
102
+ ];
103
+ export var MetricAttribution$ = [3, n0, _MA,
104
+ 0,
105
+ [_eAS],
106
+ [0]
107
+ ];
108
+ export var PutActionInteractionsRequest$ = [3, n0, _PAIR,
122
109
  0,
123
110
  [_tI, _aIc],
124
- [0, [() => ActionInteractionsList, 0]],
111
+ [0, [() => ActionInteractionsList, 0]]
112
+ ];
113
+ export var PutActionsRequest$ = [3, n0, _PAR,
114
+ 0,
115
+ [_dA, _ac],
116
+ [0, [() => ActionList, 0]]
125
117
  ];
126
- export var PutActionsRequest$ = [3, n0, _PAR, 0, [_dA, _ac], [0, [() => ActionList, 0]]];
127
- export var PutEventsRequest$ = [
128
- 3,
129
- n0,
130
- _PER,
118
+ export var PutEventsRequest$ = [3, n0, _PER,
131
119
  0,
132
120
  [_tI, _uI, _sI, _eL],
133
- [0, [() => UserId, 0], 0, [() => EventList, 0]],
121
+ [0, [() => UserId, 0], 0, [() => EventList, 0]]
122
+ ];
123
+ export var PutItemsRequest$ = [3, n0, _PIR,
124
+ 0,
125
+ [_dA, _it],
126
+ [0, [() => ItemList, 0]]
127
+ ];
128
+ export var PutUsersRequest$ = [3, n0, _PUR,
129
+ 0,
130
+ [_dA, _u],
131
+ [0, [() => UserList, 0]]
132
+ ];
133
+ export var ResourceInUseException$ = [-3, n0, _RIUE,
134
+ { [_e]: _c, [_hE]: 409 },
135
+ [_m],
136
+ [0]
134
137
  ];
135
- export var PutItemsRequest$ = [3, n0, _PIR, 0, [_dA, _it], [0, [() => ItemList, 0]]];
136
- export var PutUsersRequest$ = [3, n0, _PUR, 0, [_dA, _u], [0, [() => UserList, 0]]];
137
- export var ResourceInUseException$ = [-3, n0, _RIUE, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
138
138
  TypeRegistry.for(n0).registerError(ResourceInUseException$, ResourceInUseException);
139
- export var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
139
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
140
+ { [_e]: _c, [_hE]: 404 },
141
+ [_m],
142
+ [0]
143
+ ];
140
144
  TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
141
- export var User$ = [3, n0, _U, 0, [_uI, _p], [0, [() => SynthesizedJsonUserProperties, 0]]];
142
- var __Unit = "unit";
143
- export var PersonalizeEventsServiceException$ = [
144
- -3,
145
- _sm,
146
- "PersonalizeEventsServiceException",
145
+ export var User$ = [3, n0, _U,
147
146
  0,
148
- [],
149
- [],
147
+ [_uI, _p],
148
+ [0, [() => SynthesizedJsonUserProperties, 0]]
150
149
  ];
150
+ var __Unit = "unit";
151
+ export var PersonalizeEventsServiceException$ = [-3, _sm, "PersonalizeEventsServiceException", 0, [], []];
151
152
  TypeRegistry.for(_sm).registerError(PersonalizeEventsServiceException$, PersonalizeEventsServiceException);
152
- var ActionImpression = [1, n0, _AIct, 0, [() => ActionId, 0]];
153
- var ActionInteractionsList = [1, n0, _AIL, 0, [() => ActionInteraction$, 0]];
154
- var ActionList = [1, n0, _AL, 0, [() => Action$, 0]];
155
- var EventList = [1, n0, _EL, 0, [() => Event$, 0]];
156
- var Impression = [1, n0, _Im, 0, [() => ItemId, 0]];
157
- var ItemList = [1, n0, _IL, 0, [() => Item$, 0]];
158
- var UserList = [1, n0, _UL, 0, [() => User$, 0]];
159
- export var PutActionInteractions$ = [
160
- 9,
161
- n0,
162
- _PAI,
163
- { [_h]: ["POST", "/action-interactions", 200] },
164
- () => PutActionInteractionsRequest$,
165
- () => __Unit,
166
- ];
167
- export var PutActions$ = [
168
- 9,
169
- n0,
170
- _PA,
171
- { [_h]: ["POST", "/actions", 200] },
172
- () => PutActionsRequest$,
173
- () => __Unit,
174
- ];
175
- export var PutEvents$ = [
176
- 9,
177
- n0,
178
- _PE,
179
- { [_h]: ["POST", "/events", 200] },
180
- () => PutEventsRequest$,
181
- () => __Unit,
182
- ];
183
- export var PutItems$ = [
184
- 9,
185
- n0,
186
- _PI,
187
- { [_h]: ["POST", "/items", 200] },
188
- () => PutItemsRequest$,
189
- () => __Unit,
190
- ];
191
- export var PutUsers$ = [
192
- 9,
193
- n0,
194
- _PU,
195
- { [_h]: ["POST", "/users", 200] },
196
- () => PutUsersRequest$,
197
- () => __Unit,
153
+ var ActionImpression = [1, n0, _AIct,
154
+ 0, [() => ActionId,
155
+ 0]
156
+ ];
157
+ var ActionInteractionsList = [1, n0, _AIL,
158
+ 0, [() => ActionInteraction$,
159
+ 0]
160
+ ];
161
+ var ActionList = [1, n0, _AL,
162
+ 0, [() => Action$,
163
+ 0]
164
+ ];
165
+ var EventList = [1, n0, _EL,
166
+ 0, [() => Event$,
167
+ 0]
168
+ ];
169
+ var Impression = [1, n0, _Im,
170
+ 0, [() => ItemId,
171
+ 0]
172
+ ];
173
+ var ItemList = [1, n0, _IL,
174
+ 0, [() => Item$,
175
+ 0]
176
+ ];
177
+ var UserList = [1, n0, _UL,
178
+ 0, [() => User$,
179
+ 0]
180
+ ];
181
+ export var PutActionInteractions$ = [9, n0, _PAI,
182
+ { [_h]: ["POST", "/action-interactions", 200] }, () => PutActionInteractionsRequest$, () => __Unit
183
+ ];
184
+ export var PutActions$ = [9, n0, _PA,
185
+ { [_h]: ["POST", "/actions", 200] }, () => PutActionsRequest$, () => __Unit
186
+ ];
187
+ export var PutEvents$ = [9, n0, _PE,
188
+ { [_h]: ["POST", "/events", 200] }, () => PutEventsRequest$, () => __Unit
189
+ ];
190
+ export var PutItems$ = [9, n0, _PI,
191
+ { [_h]: ["POST", "/items", 200] }, () => PutItemsRequest$, () => __Unit
192
+ ];
193
+ export var PutUsers$ = [9, n0, _PU,
194
+ { [_h]: ["POST", "/users", 200] }, () => PutUsersRequest$, () => __Unit
198
195
  ];
package/package.json CHANGED
@@ -1,12 +1,12 @@
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.956.0",
4
+ "version": "3.958.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-personalize-events",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
- "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
9
+ "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.956.0",
25
- "@aws-sdk/credential-provider-node": "3.956.0",
26
- "@aws-sdk/middleware-host-header": "3.956.0",
27
- "@aws-sdk/middleware-logger": "3.956.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.956.0",
29
- "@aws-sdk/middleware-user-agent": "3.956.0",
30
- "@aws-sdk/region-config-resolver": "3.956.0",
31
- "@aws-sdk/types": "3.956.0",
32
- "@aws-sdk/util-endpoints": "3.956.0",
33
- "@aws-sdk/util-user-agent-browser": "3.956.0",
34
- "@aws-sdk/util-user-agent-node": "3.956.0",
24
+ "@aws-sdk/core": "3.957.0",
25
+ "@aws-sdk/credential-provider-node": "3.958.0",
26
+ "@aws-sdk/middleware-host-header": "3.957.0",
27
+ "@aws-sdk/middleware-logger": "3.957.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.957.0",
29
+ "@aws-sdk/middleware-user-agent": "3.957.0",
30
+ "@aws-sdk/region-config-resolver": "3.957.0",
31
+ "@aws-sdk/types": "3.957.0",
32
+ "@aws-sdk/util-endpoints": "3.957.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.957.0",
34
+ "@aws-sdk/util-user-agent-node": "3.957.0",
35
35
  "@smithy/config-resolver": "^4.4.5",
36
36
  "@smithy/core": "^3.20.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.8",