@aws-sdk/client-personalize-events 3.33.0 → 3.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/PersonalizeEvents.js +1 -7
  3. package/{dist/cjs → dist-cjs}/PersonalizeEventsClient.js +8 -19
  4. package/{dist/cjs → dist-cjs}/commands/PutEventsCommand.js +2 -28
  5. package/{dist/cjs → dist-cjs}/commands/PutItemsCommand.js +2 -29
  6. package/{dist/cjs → dist-cjs}/commands/PutUsersCommand.js +2 -28
  7. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  8. package/{dist/cjs → dist-cjs}/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -28
  11. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +3 -9
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  16. package/{dist/es → dist-es}/PersonalizeEvents.js +2 -8
  17. package/{dist/es → dist-es}/PersonalizeEventsClient.js +2 -13
  18. package/{dist/es → dist-es}/commands/PutEventsCommand.js +4 -31
  19. package/{dist/es → dist-es}/commands/PutItemsCommand.js +4 -32
  20. package/{dist/es → dist-es}/commands/PutUsersCommand.js +4 -31
  21. package/{dist/es → dist-es}/endpoints.js +1 -2
  22. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  23. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  24. package/{dist/es → dist-es}/models/models_0.js +0 -28
  25. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +56 -62
  26. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  27. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  28. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  29. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  30. package/{dist/types → dist-types}/PersonalizeEvents.d.ts +2 -2
  31. package/{dist/types → dist-types}/PersonalizeEventsClient.d.ts +4 -4
  32. package/{dist/types → dist-types}/commands/PutEventsCommand.d.ts +3 -3
  33. package/{dist/types → dist-types}/commands/PutItemsCommand.d.ts +3 -3
  34. package/{dist/types → dist-types}/commands/PutUsersCommand.d.ts +3 -3
  35. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  36. package/{index.ts → dist-types/index.d.ts} +0 -0
  37. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  38. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  39. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  40. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  41. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  42. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  43. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  44. package/{dist/types → dist-types}/ts3.4/PersonalizeEvents.d.ts +6 -20
  45. package/dist-types/ts3.4/PersonalizeEventsClient.d.ts +70 -0
  46. package/dist-types/ts3.4/commands/PutEventsCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/PutItemsCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/PutUsersCommand.d.ts +17 -0
  49. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  50. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  51. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  52. package/dist-types/ts3.4/models/models_0.d.ts +111 -0
  53. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  54. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  55. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  56. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  57. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  58. package/package.json +52 -49
  59. package/PersonalizeEvents.ts +0 -94
  60. package/PersonalizeEventsClient.ts +0 -240
  61. package/commands/PutEventsCommand.ts +0 -99
  62. package/commands/PutItemsCommand.ts +0 -100
  63. package/commands/PutUsersCommand.ts +0 -99
  64. package/dist/cjs/PersonalizeEvents.js.map +0 -1
  65. package/dist/cjs/PersonalizeEventsClient.js.map +0 -1
  66. package/dist/cjs/commands/PutEventsCommand.js.map +0 -1
  67. package/dist/cjs/commands/PutItemsCommand.js.map +0 -1
  68. package/dist/cjs/commands/PutUsersCommand.js.map +0 -1
  69. package/dist/cjs/endpoints.js.map +0 -1
  70. package/dist/cjs/index.js.map +0 -1
  71. package/dist/cjs/models/index.js.map +0 -1
  72. package/dist/cjs/models/models_0.js.map +0 -1
  73. package/dist/cjs/package.json +0 -91
  74. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  75. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  76. package/dist/cjs/runtimeConfig.js.map +0 -1
  77. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  78. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  79. package/dist/es/PersonalizeEvents.js.map +0 -1
  80. package/dist/es/PersonalizeEventsClient.js.map +0 -1
  81. package/dist/es/commands/PutEventsCommand.js.map +0 -1
  82. package/dist/es/commands/PutItemsCommand.js.map +0 -1
  83. package/dist/es/commands/PutUsersCommand.js.map +0 -1
  84. package/dist/es/endpoints.js.map +0 -1
  85. package/dist/es/index.js +0 -7
  86. package/dist/es/index.js.map +0 -1
  87. package/dist/es/models/index.js +0 -2
  88. package/dist/es/models/index.js.map +0 -1
  89. package/dist/es/models/models_0.js.map +0 -1
  90. package/dist/es/package.json +0 -91
  91. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  92. package/dist/es/runtimeConfig.browser.js.map +0 -1
  93. package/dist/es/runtimeConfig.js.map +0 -1
  94. package/dist/es/runtimeConfig.native.js.map +0 -1
  95. package/dist/es/runtimeConfig.shared.js.map +0 -1
  96. package/dist/types/ts3.4/PersonalizeEventsClient.d.ts +0 -137
  97. package/dist/types/ts3.4/commands/PutEventsCommand.d.ts +0 -36
  98. package/dist/types/ts3.4/commands/PutItemsCommand.d.ts +0 -37
  99. package/dist/types/ts3.4/commands/PutUsersCommand.d.ts +0 -36
  100. package/dist/types/ts3.4/models/models_0.d.ts +0 -216
  101. package/endpoints.ts +0 -57
  102. package/jest.config.js +0 -4
  103. package/models/models_0.ts +0 -266
  104. package/protocols/Aws_restJson1.ts +0 -484
  105. package/runtimeConfig.browser.ts +0 -40
  106. package/runtimeConfig.native.ts +0 -16
  107. package/runtimeConfig.shared.ts +0 -16
  108. package/runtimeConfig.ts +0 -45
  109. package/tsconfig.es.json +0 -12
  110. package/tsconfig.json +0 -32
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
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.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
18
+
19
+
20
+ ### Features
21
+
22
+ * publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
23
+ * **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
24
+ * **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
25
+
26
+
27
+
28
+
29
+
30
+ # [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
31
+
32
+
33
+ ### Features
34
+
35
+ * **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
36
+ * **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
37
+
38
+
39
+
40
+
41
+
42
+ # [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
43
+
44
+
45
+ ### Features
46
+
47
+ * **clients:** remove comments from transpiled JS files ([#2817](https://github.com/aws/aws-sdk-js-v3/issues/2817)) ([d01420b](https://github.com/aws/aws-sdk-js-v3/commit/d01420b247966c8ec84c1dd0a1b42512ede10c90))
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21)
7
54
 
8
55
  **Note:** Version bump only for package @aws-sdk/client-personalize-events
@@ -1,15 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PersonalizeEvents = void 0;
4
- const PersonalizeEventsClient_1 = require("./PersonalizeEventsClient");
5
4
  const PutEventsCommand_1 = require("./commands/PutEventsCommand");
6
5
  const PutItemsCommand_1 = require("./commands/PutItemsCommand");
7
6
  const PutUsersCommand_1 = require("./commands/PutUsersCommand");
8
- /**
9
- * <p>Amazon Personalize can consume real-time user event data, such as <i>stream</i> or <i>click</i> data, and use
10
- * it for model training either alone or combined with historical data. For more information see
11
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html">Recording Events</a>.</p>
12
- */
7
+ const PersonalizeEventsClient_1 = require("./PersonalizeEventsClient");
13
8
  class PersonalizeEvents extends PersonalizeEventsClient_1.PersonalizeEventsClient {
14
9
  putEvents(args, optionsOrCb, cb) {
15
10
  const command = new PutEventsCommand_1.PutEventsCommand(args);
@@ -55,4 +50,3 @@ class PersonalizeEvents extends PersonalizeEventsClient_1.PersonalizeEventsClien
55
50
  }
56
51
  }
57
52
  exports.PersonalizeEvents = PersonalizeEvents;
58
- //# sourceMappingURL=PersonalizeEvents.js.map
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PersonalizeEventsClient = void 0;
4
- const runtimeConfig_1 = require("./runtimeConfig");
5
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
6
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
7
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
@@ -10,20 +9,16 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
10
9
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
11
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
12
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
13
- /**
14
- * <p>Amazon Personalize can consume real-time user event data, such as <i>stream</i> or <i>click</i> data, and use
15
- * it for model training either alone or combined with historical data. For more information see
16
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html">Recording Events</a>.</p>
17
- */
12
+ const runtimeConfig_1 = require("./runtimeConfig");
18
13
  class PersonalizeEventsClient extends smithy_client_1.Client {
19
14
  constructor(configuration) {
20
- let _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
21
- let _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
22
- let _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
23
- let _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
24
- let _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
25
- let _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
26
- let _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
15
+ const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
16
+ const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
17
+ const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
18
+ const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
19
+ const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
20
+ const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
21
+ const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
27
22
  super(_config_6);
28
23
  this.config = _config_6;
29
24
  this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
@@ -33,14 +28,8 @@ class PersonalizeEventsClient extends smithy_client_1.Client {
33
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
34
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
35
30
  }
36
- /**
37
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
38
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
39
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
40
- */
41
31
  destroy() {
42
32
  super.destroy();
43
33
  }
44
34
  }
45
35
  exports.PersonalizeEventsClient = PersonalizeEventsClient;
46
- //# sourceMappingURL=PersonalizeEventsClient.js.map
@@ -1,40 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PutEventsCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <p>Records user interaction event data. For more information see
10
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html">Recording Events</a>.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { PersonalizeEventsClient, PutEventsCommand } from "@aws-sdk/client-personalize-events"; // ES Modules import
15
- * // const { PersonalizeEventsClient, PutEventsCommand } = require("@aws-sdk/client-personalize-events"); // CommonJS import
16
- * const client = new PersonalizeEventsClient(config);
17
- * const command = new PutEventsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link PutEventsCommandInput} for command's `input` shape.
22
- * @see {@link PutEventsCommandOutput} for command's `response` shape.
23
- * @see {@link PersonalizeEventsClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
26
8
  class PutEventsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -59,4 +34,3 @@ class PutEventsCommand extends smithy_client_1.Command {
59
34
  }
60
35
  }
61
36
  exports.PutEventsCommand = PutEventsCommand;
62
- //# sourceMappingURL=PutEventsCommand.js.map
@@ -1,41 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PutItemsCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <p>Adds one or more items to an Items dataset. For more information see
10
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/importing-items.html">Importing Items Incrementally</a>.
11
- * </p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { PersonalizeEventsClient, PutItemsCommand } from "@aws-sdk/client-personalize-events"; // ES Modules import
16
- * // const { PersonalizeEventsClient, PutItemsCommand } = require("@aws-sdk/client-personalize-events"); // CommonJS import
17
- * const client = new PersonalizeEventsClient(config);
18
- * const command = new PutItemsCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link PutItemsCommandInput} for command's `input` shape.
23
- * @see {@link PutItemsCommandOutput} for command's `response` shape.
24
- * @see {@link PersonalizeEventsClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
27
8
  class PutItemsCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -60,4 +34,3 @@ class PutItemsCommand extends smithy_client_1.Command {
60
34
  }
61
35
  }
62
36
  exports.PutItemsCommand = PutItemsCommand;
63
- //# sourceMappingURL=PutItemsCommand.js.map
@@ -1,40 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PutUsersCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <p>Adds one or more users to a Users dataset. For more information see
10
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/importing-users.html">Importing Users Incrementally</a>.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { PersonalizeEventsClient, PutUsersCommand } from "@aws-sdk/client-personalize-events"; // ES Modules import
15
- * // const { PersonalizeEventsClient, PutUsersCommand } = require("@aws-sdk/client-personalize-events"); // CommonJS import
16
- * const client = new PersonalizeEventsClient(config);
17
- * const command = new PutUsersCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link PutUsersCommandInput} for command's `input` shape.
22
- * @see {@link PutUsersCommandOutput} for command's `response` shape.
23
- * @see {@link PersonalizeEventsClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
26
8
  class PutUsersCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -59,4 +34,3 @@ class PutUsersCommand extends smithy_client_1.Command {
59
34
  }
60
35
  }
61
36
  exports.PutUsersCommand = PutUsersCommand;
62
- //# sourceMappingURL=PutUsersCommand.js.map
@@ -54,4 +54,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
54
54
  partitionHash,
55
55
  });
56
56
  exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
57
- //# sourceMappingURL=endpoints.js.map
@@ -7,4 +7,3 @@ tslib_1.__exportStar(require("./commands/PutEventsCommand"), exports);
7
7
  tslib_1.__exportStar(require("./commands/PutItemsCommand"), exports);
8
8
  tslib_1.__exportStar(require("./commands/PutUsersCommand"), exports);
9
9
  tslib_1.__exportStar(require("./models/index"), exports);
10
- //# sourceMappingURL=index.js.map
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./models_0"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -3,83 +3,55 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PutUsersRequest = exports.User = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.PutItemsRequest = exports.Item = exports.PutEventsRequest = exports.Event = exports.InvalidInputException = void 0;
4
4
  var InvalidInputException;
5
5
  (function (InvalidInputException) {
6
- /**
7
- * @internal
8
- */
9
6
  InvalidInputException.filterSensitiveLog = (obj) => ({
10
7
  ...obj,
11
8
  });
12
9
  })(InvalidInputException = exports.InvalidInputException || (exports.InvalidInputException = {}));
13
10
  var Event;
14
11
  (function (Event) {
15
- /**
16
- * @internal
17
- */
18
12
  Event.filterSensitiveLog = (obj) => ({
19
13
  ...obj,
20
14
  });
21
15
  })(Event = exports.Event || (exports.Event = {}));
22
16
  var PutEventsRequest;
23
17
  (function (PutEventsRequest) {
24
- /**
25
- * @internal
26
- */
27
18
  PutEventsRequest.filterSensitiveLog = (obj) => ({
28
19
  ...obj,
29
20
  });
30
21
  })(PutEventsRequest = exports.PutEventsRequest || (exports.PutEventsRequest = {}));
31
22
  var Item;
32
23
  (function (Item) {
33
- /**
34
- * @internal
35
- */
36
24
  Item.filterSensitiveLog = (obj) => ({
37
25
  ...obj,
38
26
  });
39
27
  })(Item = exports.Item || (exports.Item = {}));
40
28
  var PutItemsRequest;
41
29
  (function (PutItemsRequest) {
42
- /**
43
- * @internal
44
- */
45
30
  PutItemsRequest.filterSensitiveLog = (obj) => ({
46
31
  ...obj,
47
32
  });
48
33
  })(PutItemsRequest = exports.PutItemsRequest || (exports.PutItemsRequest = {}));
49
34
  var ResourceInUseException;
50
35
  (function (ResourceInUseException) {
51
- /**
52
- * @internal
53
- */
54
36
  ResourceInUseException.filterSensitiveLog = (obj) => ({
55
37
  ...obj,
56
38
  });
57
39
  })(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {}));
58
40
  var ResourceNotFoundException;
59
41
  (function (ResourceNotFoundException) {
60
- /**
61
- * @internal
62
- */
63
42
  ResourceNotFoundException.filterSensitiveLog = (obj) => ({
64
43
  ...obj,
65
44
  });
66
45
  })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
67
46
  var User;
68
47
  (function (User) {
69
- /**
70
- * @internal
71
- */
72
48
  User.filterSensitiveLog = (obj) => ({
73
49
  ...obj,
74
50
  });
75
51
  })(User = exports.User || (exports.User = {}));
76
52
  var PutUsersRequest;
77
53
  (function (PutUsersRequest) {
78
- /**
79
- * @internal
80
- */
81
54
  PutUsersRequest.filterSensitiveLog = (obj) => ({
82
55
  ...obj,
83
56
  });
84
57
  })(PutUsersRequest = exports.PutUsersRequest || (exports.PutUsersRequest = {}));
85
- //# sourceMappingURL=models_0.js.map
@@ -8,7 +8,7 @@ const serializeAws_restJson1PutEventsCommand = async (input, context) => {
8
8
  const headers = {
9
9
  "content-type": "application/json",
10
10
  };
11
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/events";
11
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/events";
12
12
  let body;
13
13
  body = JSON.stringify({
14
14
  ...(input.eventList !== undefined &&
@@ -33,7 +33,7 @@ const serializeAws_restJson1PutItemsCommand = async (input, context) => {
33
33
  const headers = {
34
34
  "content-type": "application/json",
35
35
  };
36
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/items";
36
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/items";
37
37
  let body;
38
38
  body = JSON.stringify({
39
39
  ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
@@ -56,7 +56,7 @@ const serializeAws_restJson1PutUsersCommand = async (input, context) => {
56
56
  const headers = {
57
57
  "content-type": "application/json",
58
58
  };
59
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users";
59
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users";
60
60
  let body;
61
61
  body = JSON.stringify({
62
62
  ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
@@ -356,14 +356,12 @@ const deserializeMetadata = (output) => {
356
356
  cfId: output.headers["x-amz-cf-id"],
357
357
  });
358
358
  };
359
- // Collect low-level response body stream to Uint8Array.
360
359
  const collectBody = (streamBody = new Uint8Array(), context) => {
361
360
  if (streamBody instanceof Uint8Array) {
362
361
  return Promise.resolve(streamBody);
363
362
  }
364
363
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
365
364
  };
366
- // Encode Uint8Array data into string with utf-8.
367
365
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
368
366
  const isSerializableHeaderValue = (value) => value !== undefined &&
369
367
  value !== null &&
@@ -376,9 +374,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
376
374
  }
377
375
  return {};
378
376
  });
379
- /**
380
- * Load an error code for the aws.rest-json-1.1 protocol.
381
- */
382
377
  const loadRestJsonErrorCode = (output, data) => {
383
378
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
384
379
  const sanitizeErrorCode = (rawValue) => {
@@ -403,4 +398,3 @@ const loadRestJsonErrorCode = (output, data) => {
403
398
  }
404
399
  return "";
405
400
  };
406
- //# sourceMappingURL=Aws_restJson1.js.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -12,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
12
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
- /**
16
- * @internal
17
- */
18
15
  const getRuntimeConfig = (config) => {
19
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -38,4 +35,3 @@ const getRuntimeConfig = (config) => {
38
35
  };
39
36
  };
40
37
  exports.getRuntimeConfig = getRuntimeConfig;
41
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const client_sts_1 = require("@aws-sdk/client-sts");
7
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -16,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
- /**
20
- * @internal
21
- */
22
19
  const getRuntimeConfig = (config) => {
23
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
24
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -43,4 +40,3 @@ const getRuntimeConfig = (config) => {
43
40
  };
44
41
  };
45
42
  exports.getRuntimeConfig = getRuntimeConfig;
46
- //# sourceMappingURL=runtimeConfig.js.map
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
17
14
  };
18
15
  };
19
16
  exports.getRuntimeConfig = getRuntimeConfig;
20
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
- const endpoints_1 = require("./endpoints");
5
4
  const url_parser_1 = require("@aws-sdk/url-parser");
6
- /**
7
- * @internal
8
- */
5
+ const endpoints_1 = require("./endpoints");
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
18
15
  });
19
16
  };
20
17
  exports.getRuntimeConfig = getRuntimeConfig;
21
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -1,14 +1,9 @@
1
1
  import { __extends } from "tslib";
2
- import { PersonalizeEventsClient } from "./PersonalizeEventsClient";
3
2
  import { PutEventsCommand } from "./commands/PutEventsCommand";
4
3
  import { PutItemsCommand } from "./commands/PutItemsCommand";
5
4
  import { PutUsersCommand } from "./commands/PutUsersCommand";
6
- /**
7
- * <p>Amazon Personalize can consume real-time user event data, such as <i>stream</i> or <i>click</i> data, and use
8
- * it for model training either alone or combined with historical data. For more information see
9
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html">Recording Events</a>.</p>
10
- */
11
- var PersonalizeEvents = /** @class */ (function (_super) {
5
+ import { PersonalizeEventsClient } from "./PersonalizeEventsClient";
6
+ var PersonalizeEvents = (function (_super) {
12
7
  __extends(PersonalizeEvents, _super);
13
8
  function PersonalizeEvents() {
14
9
  return _super !== null && _super.apply(this, arguments) || this;
@@ -58,4 +53,3 @@ var PersonalizeEvents = /** @class */ (function (_super) {
58
53
  return PersonalizeEvents;
59
54
  }(PersonalizeEventsClient));
60
55
  export { PersonalizeEvents };
61
- //# sourceMappingURL=PersonalizeEvents.js.map
@@ -1,5 +1,4 @@
1
1
  import { __extends } from "tslib";
2
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
3
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
4
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
5
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,12 +7,8 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
8
7
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
- /**
12
- * <p>Amazon Personalize can consume real-time user event data, such as <i>stream</i> or <i>click</i> data, and use
13
- * it for model training either alone or combined with historical data. For more information see
14
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html">Recording Events</a>.</p>
15
- */
16
- var PersonalizeEventsClient = /** @class */ (function (_super) {
10
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
+ var PersonalizeEventsClient = (function (_super) {
17
12
  __extends(PersonalizeEventsClient, _super);
18
13
  function PersonalizeEventsClient(configuration) {
19
14
  var _this = this;
@@ -34,15 +29,9 @@ var PersonalizeEventsClient = /** @class */ (function (_super) {
34
29
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
35
30
  return _this;
36
31
  }
37
- /**
38
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
39
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
40
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
41
- */
42
32
  PersonalizeEventsClient.prototype.destroy = function () {
43
33
  _super.prototype.destroy.call(this);
44
34
  };
45
35
  return PersonalizeEventsClient;
46
36
  }(__Client));
47
37
  export { PersonalizeEventsClient };
48
- //# sourceMappingURL=PersonalizeEventsClient.js.map
@@ -1,41 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { PutEventsRequest } from "../models/models_0";
3
- import { deserializeAws_restJson1PutEventsCommand, serializeAws_restJson1PutEventsCommand, } from "../protocols/Aws_restJson1";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Records user interaction event data. For more information see
8
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html">Recording Events</a>.</p>
9
- * @example
10
- * Use a bare-bones client and the command you need to make an API call.
11
- * ```javascript
12
- * import { PersonalizeEventsClient, PutEventsCommand } from "@aws-sdk/client-personalize-events"; // ES Modules import
13
- * // const { PersonalizeEventsClient, PutEventsCommand } = require("@aws-sdk/client-personalize-events"); // CommonJS import
14
- * const client = new PersonalizeEventsClient(config);
15
- * const command = new PutEventsCommand(input);
16
- * const response = await client.send(command);
17
- * ```
18
- *
19
- * @see {@link PutEventsCommandInput} for command's `input` shape.
20
- * @see {@link PutEventsCommandOutput} for command's `response` shape.
21
- * @see {@link PersonalizeEventsClientResolvedConfig | config} for command's `input` shape.
22
- *
23
- */
24
- var PutEventsCommand = /** @class */ (function (_super) {
4
+ import { PutEventsRequest } from "../models/models_0";
5
+ import { deserializeAws_restJson1PutEventsCommand, serializeAws_restJson1PutEventsCommand, } from "../protocols/Aws_restJson1";
6
+ var PutEventsCommand = (function (_super) {
25
7
  __extends(PutEventsCommand, _super);
26
- // Start section: command_properties
27
- // End section: command_properties
28
8
  function PutEventsCommand(input) {
29
- var _this =
30
- // Start section: command_constructor
31
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
32
10
  _this.input = input;
33
11
  return _this;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  PutEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
40
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -63,4 +37,3 @@ var PutEventsCommand = /** @class */ (function (_super) {
63
37
  return PutEventsCommand;
64
38
  }($Command));
65
39
  export { PutEventsCommand };
66
- //# sourceMappingURL=PutEventsCommand.js.map