@aws-sdk/client-personalize-events 3.52.0 → 3.54.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/PersonalizeEventsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +41 -1
- package/dist-cjs/protocols/Aws_restJson1.js +39 -93
- package/dist-es/index.js +1 -0
- package/dist-es/models/PersonalizeEventsServiceException.js +12 -0
- package/dist-es/models/models_0.js +38 -1
- package/dist-es/protocols/Aws_restJson1.js +65 -109
- package/dist-types/PersonalizeEventsClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/PersonalizeEventsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +23 -14
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/PersonalizeEventsClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/PersonalizeEventsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +17 -14
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-personalize-events
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-personalize-events
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-personalize-events
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonalizeEventsServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./PersonalizeEvents"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./PersonalizeEventsClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var PersonalizeEventsServiceException_1 = require("./models/PersonalizeEventsServiceException");
|
|
10
|
+
Object.defineProperty(exports, "PersonalizeEventsServiceException", { enumerable: true, get: function () { return PersonalizeEventsServiceException_1.PersonalizeEventsServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonalizeEventsServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class PersonalizeEventsServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, PersonalizeEventsServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.PersonalizeEventsServiceException = PersonalizeEventsServiceException;
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutUsersRequest = exports.User = exports.PutItemsRequest = exports.Item = exports.PutEventsRequest = exports.Event = void 0;
|
|
3
|
+
exports.PutUsersRequest = exports.User = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.PutItemsRequest = exports.Item = exports.PutEventsRequest = exports.Event = exports.InvalidInputException = void 0;
|
|
4
|
+
const PersonalizeEventsServiceException_1 = require("./PersonalizeEventsServiceException");
|
|
5
|
+
class InvalidInputException extends PersonalizeEventsServiceException_1.PersonalizeEventsServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "InvalidInputException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "InvalidInputException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.InvalidInputException = InvalidInputException;
|
|
4
18
|
var Event;
|
|
5
19
|
(function (Event) {
|
|
6
20
|
Event.filterSensitiveLog = (obj) => ({
|
|
@@ -25,6 +39,32 @@ var PutItemsRequest;
|
|
|
25
39
|
...obj,
|
|
26
40
|
});
|
|
27
41
|
})(PutItemsRequest = exports.PutItemsRequest || (exports.PutItemsRequest = {}));
|
|
42
|
+
class ResourceInUseException extends PersonalizeEventsServiceException_1.PersonalizeEventsServiceException {
|
|
43
|
+
constructor(opts) {
|
|
44
|
+
super({
|
|
45
|
+
name: "ResourceInUseException",
|
|
46
|
+
$fault: "client",
|
|
47
|
+
...opts,
|
|
48
|
+
});
|
|
49
|
+
this.name = "ResourceInUseException";
|
|
50
|
+
this.$fault = "client";
|
|
51
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.ResourceInUseException = ResourceInUseException;
|
|
55
|
+
class ResourceNotFoundException extends PersonalizeEventsServiceException_1.PersonalizeEventsServiceException {
|
|
56
|
+
constructor(opts) {
|
|
57
|
+
super({
|
|
58
|
+
name: "ResourceNotFoundException",
|
|
59
|
+
$fault: "client",
|
|
60
|
+
...opts,
|
|
61
|
+
});
|
|
62
|
+
this.name = "ResourceNotFoundException";
|
|
63
|
+
this.$fault = "client";
|
|
64
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
28
68
|
var User;
|
|
29
69
|
(function (User) {
|
|
30
70
|
User.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1PutUsersCommand = exports.deserializeAws_restJson1PutItemsCommand = exports.deserializeAws_restJson1PutEventsCommand = exports.serializeAws_restJson1PutUsersCommand = exports.serializeAws_restJson1PutItemsCommand = exports.serializeAws_restJson1PutEventsCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const PersonalizeEventsServiceException_1 = require("../models/PersonalizeEventsServiceException");
|
|
6
8
|
const serializeAws_restJson1PutEventsCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -96,27 +98,16 @@ const deserializeAws_restJson1PutEventsCommandError = async (output, context) =>
|
|
|
96
98
|
switch (errorCode) {
|
|
97
99
|
case "InvalidInputException":
|
|
98
100
|
case "com.amazonaws.personalizeevents#InvalidInputException":
|
|
99
|
-
|
|
100
|
-
...(await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
101
|
-
name: errorCode,
|
|
102
|
-
$metadata: deserializeMetadata(output),
|
|
103
|
-
};
|
|
104
|
-
break;
|
|
101
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
105
102
|
default:
|
|
106
103
|
const parsedBody = parsedOutput.body;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
...parsedBody,
|
|
110
|
-
name: `${errorCode}`,
|
|
111
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
104
|
+
response = new PersonalizeEventsServiceException_1.PersonalizeEventsServiceException({
|
|
105
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
112
106
|
$fault: "client",
|
|
113
107
|
$metadata: deserializeMetadata(output),
|
|
114
|
-
};
|
|
108
|
+
});
|
|
109
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
115
110
|
}
|
|
116
|
-
const message = response.message || response.Message || errorCode;
|
|
117
|
-
response.message = message;
|
|
118
|
-
delete response.Message;
|
|
119
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
120
111
|
};
|
|
121
112
|
const deserializeAws_restJson1PutItemsCommand = async (output, context) => {
|
|
122
113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -140,43 +131,22 @@ const deserializeAws_restJson1PutItemsCommandError = async (output, context) =>
|
|
|
140
131
|
switch (errorCode) {
|
|
141
132
|
case "InvalidInputException":
|
|
142
133
|
case "com.amazonaws.personalizeevents#InvalidInputException":
|
|
143
|
-
|
|
144
|
-
...(await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
145
|
-
name: errorCode,
|
|
146
|
-
$metadata: deserializeMetadata(output),
|
|
147
|
-
};
|
|
148
|
-
break;
|
|
134
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
149
135
|
case "ResourceInUseException":
|
|
150
136
|
case "com.amazonaws.personalizeevents#ResourceInUseException":
|
|
151
|
-
|
|
152
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
153
|
-
name: errorCode,
|
|
154
|
-
$metadata: deserializeMetadata(output),
|
|
155
|
-
};
|
|
156
|
-
break;
|
|
137
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
157
138
|
case "ResourceNotFoundException":
|
|
158
139
|
case "com.amazonaws.personalizeevents#ResourceNotFoundException":
|
|
159
|
-
|
|
160
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
161
|
-
name: errorCode,
|
|
162
|
-
$metadata: deserializeMetadata(output),
|
|
163
|
-
};
|
|
164
|
-
break;
|
|
140
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
165
141
|
default:
|
|
166
142
|
const parsedBody = parsedOutput.body;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
...parsedBody,
|
|
170
|
-
name: `${errorCode}`,
|
|
171
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
143
|
+
response = new PersonalizeEventsServiceException_1.PersonalizeEventsServiceException({
|
|
144
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
172
145
|
$fault: "client",
|
|
173
146
|
$metadata: deserializeMetadata(output),
|
|
174
|
-
};
|
|
147
|
+
});
|
|
148
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
175
149
|
}
|
|
176
|
-
const message = response.message || response.Message || errorCode;
|
|
177
|
-
response.message = message;
|
|
178
|
-
delete response.Message;
|
|
179
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
180
150
|
};
|
|
181
151
|
const deserializeAws_restJson1PutUsersCommand = async (output, context) => {
|
|
182
152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -200,82 +170,58 @@ const deserializeAws_restJson1PutUsersCommandError = async (output, context) =>
|
|
|
200
170
|
switch (errorCode) {
|
|
201
171
|
case "InvalidInputException":
|
|
202
172
|
case "com.amazonaws.personalizeevents#InvalidInputException":
|
|
203
|
-
|
|
204
|
-
...(await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
205
|
-
name: errorCode,
|
|
206
|
-
$metadata: deserializeMetadata(output),
|
|
207
|
-
};
|
|
208
|
-
break;
|
|
173
|
+
throw await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context);
|
|
209
174
|
case "ResourceInUseException":
|
|
210
175
|
case "com.amazonaws.personalizeevents#ResourceInUseException":
|
|
211
|
-
|
|
212
|
-
...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
213
|
-
name: errorCode,
|
|
214
|
-
$metadata: deserializeMetadata(output),
|
|
215
|
-
};
|
|
216
|
-
break;
|
|
176
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
217
177
|
case "ResourceNotFoundException":
|
|
218
178
|
case "com.amazonaws.personalizeevents#ResourceNotFoundException":
|
|
219
|
-
|
|
220
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
221
|
-
name: errorCode,
|
|
222
|
-
$metadata: deserializeMetadata(output),
|
|
223
|
-
};
|
|
224
|
-
break;
|
|
179
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
225
180
|
default:
|
|
226
181
|
const parsedBody = parsedOutput.body;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
...parsedBody,
|
|
230
|
-
name: `${errorCode}`,
|
|
231
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
182
|
+
response = new PersonalizeEventsServiceException_1.PersonalizeEventsServiceException({
|
|
183
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
232
184
|
$fault: "client",
|
|
233
185
|
$metadata: deserializeMetadata(output),
|
|
234
|
-
};
|
|
186
|
+
});
|
|
187
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
235
188
|
}
|
|
236
|
-
const message = response.message || response.Message || errorCode;
|
|
237
|
-
response.message = message;
|
|
238
|
-
delete response.Message;
|
|
239
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
240
189
|
};
|
|
241
190
|
const deserializeAws_restJson1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
242
|
-
const contents = {
|
|
243
|
-
name: "InvalidInputException",
|
|
244
|
-
$fault: "client",
|
|
245
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
246
|
-
message: undefined,
|
|
247
|
-
};
|
|
191
|
+
const contents = {};
|
|
248
192
|
const data = parsedOutput.body;
|
|
249
193
|
if (data.message !== undefined && data.message !== null) {
|
|
250
194
|
contents.message = smithy_client_1.expectString(data.message);
|
|
251
195
|
}
|
|
252
|
-
|
|
196
|
+
const exception = new models_0_1.InvalidInputException({
|
|
197
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
198
|
+
...contents,
|
|
199
|
+
});
|
|
200
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
253
201
|
};
|
|
254
202
|
const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
255
|
-
const contents = {
|
|
256
|
-
name: "ResourceInUseException",
|
|
257
|
-
$fault: "client",
|
|
258
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
259
|
-
message: undefined,
|
|
260
|
-
};
|
|
203
|
+
const contents = {};
|
|
261
204
|
const data = parsedOutput.body;
|
|
262
205
|
if (data.message !== undefined && data.message !== null) {
|
|
263
206
|
contents.message = smithy_client_1.expectString(data.message);
|
|
264
207
|
}
|
|
265
|
-
|
|
208
|
+
const exception = new models_0_1.ResourceInUseException({
|
|
209
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
210
|
+
...contents,
|
|
211
|
+
});
|
|
212
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
266
213
|
};
|
|
267
214
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
268
|
-
const contents = {
|
|
269
|
-
name: "ResourceNotFoundException",
|
|
270
|
-
$fault: "client",
|
|
271
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
272
|
-
message: undefined,
|
|
273
|
-
};
|
|
215
|
+
const contents = {};
|
|
274
216
|
const data = parsedOutput.body;
|
|
275
217
|
if (data.message !== undefined && data.message !== null) {
|
|
276
218
|
contents.message = smithy_client_1.expectString(data.message);
|
|
277
219
|
}
|
|
278
|
-
|
|
220
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
221
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
222
|
+
...contents,
|
|
223
|
+
});
|
|
224
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
279
225
|
};
|
|
280
226
|
const serializeAws_restJson1Event = (input, context) => {
|
|
281
227
|
return {
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var PersonalizeEventsServiceException = (function (_super) {
|
|
4
|
+
__extends(PersonalizeEventsServiceException, _super);
|
|
5
|
+
function PersonalizeEventsServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, PersonalizeEventsServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return PersonalizeEventsServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { PersonalizeEventsServiceException };
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { PersonalizeEventsServiceException as __BaseException } from "./PersonalizeEventsServiceException";
|
|
3
|
+
var InvalidInputException = (function (_super) {
|
|
4
|
+
__extends(InvalidInputException, _super);
|
|
5
|
+
function InvalidInputException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "InvalidInputException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "InvalidInputException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, InvalidInputException.prototype);
|
|
10
|
+
return _this;
|
|
11
|
+
}
|
|
12
|
+
return InvalidInputException;
|
|
13
|
+
}(__BaseException));
|
|
14
|
+
export { InvalidInputException };
|
|
2
15
|
export var Event;
|
|
3
16
|
(function (Event) {
|
|
4
17
|
Event.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -15,6 +28,30 @@ export var PutItemsRequest;
|
|
|
15
28
|
(function (PutItemsRequest) {
|
|
16
29
|
PutItemsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
30
|
})(PutItemsRequest || (PutItemsRequest = {}));
|
|
31
|
+
var ResourceInUseException = (function (_super) {
|
|
32
|
+
__extends(ResourceInUseException, _super);
|
|
33
|
+
function ResourceInUseException(opts) {
|
|
34
|
+
var _this = _super.call(this, __assign({ name: "ResourceInUseException", $fault: "client" }, opts)) || this;
|
|
35
|
+
_this.name = "ResourceInUseException";
|
|
36
|
+
_this.$fault = "client";
|
|
37
|
+
Object.setPrototypeOf(_this, ResourceInUseException.prototype);
|
|
38
|
+
return _this;
|
|
39
|
+
}
|
|
40
|
+
return ResourceInUseException;
|
|
41
|
+
}(__BaseException));
|
|
42
|
+
export { ResourceInUseException };
|
|
43
|
+
var ResourceNotFoundException = (function (_super) {
|
|
44
|
+
__extends(ResourceNotFoundException, _super);
|
|
45
|
+
function ResourceNotFoundException(opts) {
|
|
46
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
47
|
+
_this.name = "ResourceNotFoundException";
|
|
48
|
+
_this.$fault = "client";
|
|
49
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
50
|
+
return _this;
|
|
51
|
+
}
|
|
52
|
+
return ResourceNotFoundException;
|
|
53
|
+
}(__BaseException));
|
|
54
|
+
export { ResourceNotFoundException };
|
|
18
55
|
export var User;
|
|
19
56
|
(function (User) {
|
|
20
57
|
User.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectString as __expectString, LazyJsonString as __LazyJsonString, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { InvalidInputException, ResourceInUseException, ResourceNotFoundException, } from "../models/models_0";
|
|
5
|
+
import { PersonalizeEventsServiceException as __BaseException } from "../models/PersonalizeEventsServiceException";
|
|
4
6
|
export var serializeAws_restJson1PutEventsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -95,16 +97,16 @@ export var deserializeAws_restJson1PutEventsCommand = function (output, context)
|
|
|
95
97
|
});
|
|
96
98
|
}); };
|
|
97
99
|
var deserializeAws_restJson1PutEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
98
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
99
|
-
var
|
|
100
|
-
return __generator(this, function (
|
|
101
|
-
switch (
|
|
100
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
101
|
+
var _c;
|
|
102
|
+
return __generator(this, function (_d) {
|
|
103
|
+
switch (_d.label) {
|
|
102
104
|
case 0:
|
|
103
105
|
_a = [__assign({}, output)];
|
|
104
|
-
|
|
106
|
+
_c = {};
|
|
105
107
|
return [4, parseBody(output.body, context)];
|
|
106
108
|
case 1:
|
|
107
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
109
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
108
110
|
errorCode = "UnknownError";
|
|
109
111
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
110
112
|
_b = errorCode;
|
|
@@ -113,22 +115,16 @@ var deserializeAws_restJson1PutEventsCommandError = function (output, context) {
|
|
|
113
115
|
case "com.amazonaws.personalizeevents#InvalidInputException": return [3, 2];
|
|
114
116
|
}
|
|
115
117
|
return [3, 4];
|
|
116
|
-
case 2:
|
|
117
|
-
|
|
118
|
-
return [4, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
119
|
-
case 3:
|
|
120
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
121
|
-
return [3, 5];
|
|
118
|
+
case 2: return [4, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
119
|
+
case 3: throw _d.sent();
|
|
122
120
|
case 4:
|
|
123
121
|
parsedBody = parsedOutput.body;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
response
|
|
130
|
-
delete response.Message;
|
|
131
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
122
|
+
response = new __BaseException({
|
|
123
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
124
|
+
$fault: "client",
|
|
125
|
+
$metadata: deserializeMetadata(output),
|
|
126
|
+
});
|
|
127
|
+
throw __decorateServiceException(response, parsedBody);
|
|
132
128
|
}
|
|
133
129
|
});
|
|
134
130
|
}); };
|
|
@@ -151,16 +147,16 @@ export var deserializeAws_restJson1PutItemsCommand = function (output, context)
|
|
|
151
147
|
});
|
|
152
148
|
}); };
|
|
153
149
|
var deserializeAws_restJson1PutItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
154
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
155
|
-
var
|
|
156
|
-
return __generator(this, function (
|
|
157
|
-
switch (
|
|
150
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
151
|
+
var _c;
|
|
152
|
+
return __generator(this, function (_d) {
|
|
153
|
+
switch (_d.label) {
|
|
158
154
|
case 0:
|
|
159
155
|
_a = [__assign({}, output)];
|
|
160
|
-
|
|
156
|
+
_c = {};
|
|
161
157
|
return [4, parseBody(output.body, context)];
|
|
162
158
|
case 1:
|
|
163
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
159
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
164
160
|
errorCode = "UnknownError";
|
|
165
161
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
166
162
|
_b = errorCode;
|
|
@@ -173,34 +169,20 @@ var deserializeAws_restJson1PutItemsCommandError = function (output, context) {
|
|
|
173
169
|
case "com.amazonaws.personalizeevents#ResourceNotFoundException": return [3, 6];
|
|
174
170
|
}
|
|
175
171
|
return [3, 8];
|
|
176
|
-
case 2:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
case
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
case 4:
|
|
183
|
-
_d = [{}];
|
|
184
|
-
return [4, deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
185
|
-
case 5:
|
|
186
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
187
|
-
return [3, 9];
|
|
188
|
-
case 6:
|
|
189
|
-
_e = [{}];
|
|
190
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
191
|
-
case 7:
|
|
192
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
193
|
-
return [3, 9];
|
|
172
|
+
case 2: return [4, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
173
|
+
case 3: throw _d.sent();
|
|
174
|
+
case 4: return [4, deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
175
|
+
case 5: throw _d.sent();
|
|
176
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
177
|
+
case 7: throw _d.sent();
|
|
194
178
|
case 8:
|
|
195
179
|
parsedBody = parsedOutput.body;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
response
|
|
202
|
-
delete response.Message;
|
|
203
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
180
|
+
response = new __BaseException({
|
|
181
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
182
|
+
$fault: "client",
|
|
183
|
+
$metadata: deserializeMetadata(output),
|
|
184
|
+
});
|
|
185
|
+
throw __decorateServiceException(response, parsedBody);
|
|
204
186
|
}
|
|
205
187
|
});
|
|
206
188
|
}); };
|
|
@@ -223,16 +205,16 @@ export var deserializeAws_restJson1PutUsersCommand = function (output, context)
|
|
|
223
205
|
});
|
|
224
206
|
}); };
|
|
225
207
|
var deserializeAws_restJson1PutUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
226
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
227
|
-
var
|
|
228
|
-
return __generator(this, function (
|
|
229
|
-
switch (
|
|
208
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
209
|
+
var _c;
|
|
210
|
+
return __generator(this, function (_d) {
|
|
211
|
+
switch (_d.label) {
|
|
230
212
|
case 0:
|
|
231
213
|
_a = [__assign({}, output)];
|
|
232
|
-
|
|
214
|
+
_c = {};
|
|
233
215
|
return [4, parseBody(output.body, context)];
|
|
234
216
|
case 1:
|
|
235
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
217
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
236
218
|
errorCode = "UnknownError";
|
|
237
219
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
238
220
|
_b = errorCode;
|
|
@@ -245,83 +227,57 @@ var deserializeAws_restJson1PutUsersCommandError = function (output, context) {
|
|
|
245
227
|
case "com.amazonaws.personalizeevents#ResourceNotFoundException": return [3, 6];
|
|
246
228
|
}
|
|
247
229
|
return [3, 8];
|
|
248
|
-
case 2:
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
case
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
case 4:
|
|
255
|
-
_d = [{}];
|
|
256
|
-
return [4, deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
257
|
-
case 5:
|
|
258
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
259
|
-
return [3, 9];
|
|
260
|
-
case 6:
|
|
261
|
-
_e = [{}];
|
|
262
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
263
|
-
case 7:
|
|
264
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
265
|
-
return [3, 9];
|
|
230
|
+
case 2: return [4, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
231
|
+
case 3: throw _d.sent();
|
|
232
|
+
case 4: return [4, deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
233
|
+
case 5: throw _d.sent();
|
|
234
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
235
|
+
case 7: throw _d.sent();
|
|
266
236
|
case 8:
|
|
267
237
|
parsedBody = parsedOutput.body;
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
response
|
|
274
|
-
delete response.Message;
|
|
275
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
238
|
+
response = new __BaseException({
|
|
239
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
240
|
+
$fault: "client",
|
|
241
|
+
$metadata: deserializeMetadata(output),
|
|
242
|
+
});
|
|
243
|
+
throw __decorateServiceException(response, parsedBody);
|
|
276
244
|
}
|
|
277
245
|
});
|
|
278
246
|
}); };
|
|
279
247
|
var deserializeAws_restJson1InvalidInputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
280
|
-
var contents, data;
|
|
248
|
+
var contents, data, exception;
|
|
281
249
|
return __generator(this, function (_a) {
|
|
282
|
-
contents = {
|
|
283
|
-
name: "InvalidInputException",
|
|
284
|
-
$fault: "client",
|
|
285
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
286
|
-
message: undefined,
|
|
287
|
-
};
|
|
250
|
+
contents = {};
|
|
288
251
|
data = parsedOutput.body;
|
|
289
252
|
if (data.message !== undefined && data.message !== null) {
|
|
290
253
|
contents.message = __expectString(data.message);
|
|
291
254
|
}
|
|
292
|
-
|
|
255
|
+
exception = new InvalidInputException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
256
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
293
257
|
});
|
|
294
258
|
}); };
|
|
295
259
|
var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
296
|
-
var contents, data;
|
|
260
|
+
var contents, data, exception;
|
|
297
261
|
return __generator(this, function (_a) {
|
|
298
|
-
contents = {
|
|
299
|
-
name: "ResourceInUseException",
|
|
300
|
-
$fault: "client",
|
|
301
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
302
|
-
message: undefined,
|
|
303
|
-
};
|
|
262
|
+
contents = {};
|
|
304
263
|
data = parsedOutput.body;
|
|
305
264
|
if (data.message !== undefined && data.message !== null) {
|
|
306
265
|
contents.message = __expectString(data.message);
|
|
307
266
|
}
|
|
308
|
-
|
|
267
|
+
exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
268
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
309
269
|
});
|
|
310
270
|
}); };
|
|
311
271
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
312
|
-
var contents, data;
|
|
272
|
+
var contents, data, exception;
|
|
313
273
|
return __generator(this, function (_a) {
|
|
314
|
-
contents = {
|
|
315
|
-
name: "ResourceNotFoundException",
|
|
316
|
-
$fault: "client",
|
|
317
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
318
|
-
message: undefined,
|
|
319
|
-
};
|
|
274
|
+
contents = {};
|
|
320
275
|
data = parsedOutput.body;
|
|
321
276
|
if (data.message !== undefined && data.message !== null) {
|
|
322
277
|
contents.message = __expectString(data.message);
|
|
323
278
|
}
|
|
324
|
-
|
|
279
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
280
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
325
281
|
});
|
|
326
282
|
}); };
|
|
327
283
|
var serializeAws_restJson1Event = function (input, context) {
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { PutEventsCommandInput, PutEventsCommandOutput } from "./commands/PutEventsCommand";
|
|
10
10
|
import { PutItemsCommandInput, PutItemsCommandOutput } from "./commands/PutItemsCommand";
|
|
11
11
|
import { PutUsersCommandInput, PutUsersCommandOutput } from "./commands/PutUsersCommand";
|
|
@@ -31,7 +31,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
31
31
|
* A function that can calculate the length of a request body.
|
|
32
32
|
* @internal
|
|
33
33
|
*/
|
|
34
|
-
bodyLengthChecker?:
|
|
34
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
35
35
|
/**
|
|
36
36
|
* A function that converts a stream into an array of bytes.
|
|
37
37
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from PersonalizeEvents service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PersonalizeEventsServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
2
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { PersonalizeEventsServiceException as __BaseException } from "./PersonalizeEventsServiceException";
|
|
3
3
|
/**
|
|
4
4
|
* <p>Provide a valid value for the field or parameter.</p>
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
7
|
-
name: "InvalidInputException";
|
|
8
|
-
$fault: "client";
|
|
9
|
-
|
|
6
|
+
export declare class InvalidInputException extends __BaseException {
|
|
7
|
+
readonly name: "InvalidInputException";
|
|
8
|
+
readonly $fault: "client";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
15
|
* <p>Represents user interaction event information sent using the
|
|
@@ -140,18 +143,24 @@ export declare namespace PutItemsRequest {
|
|
|
140
143
|
/**
|
|
141
144
|
* <p>The specified resource is in use.</p>
|
|
142
145
|
*/
|
|
143
|
-
export
|
|
144
|
-
name: "ResourceInUseException";
|
|
145
|
-
$fault: "client";
|
|
146
|
-
|
|
146
|
+
export declare class ResourceInUseException extends __BaseException {
|
|
147
|
+
readonly name: "ResourceInUseException";
|
|
148
|
+
readonly $fault: "client";
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
|
|
147
153
|
}
|
|
148
154
|
/**
|
|
149
155
|
* <p>Could not find the specified resource.</p>
|
|
150
156
|
*/
|
|
151
|
-
export
|
|
152
|
-
name: "ResourceNotFoundException";
|
|
153
|
-
$fault: "client";
|
|
154
|
-
|
|
157
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
158
|
+
readonly name: "ResourceNotFoundException";
|
|
159
|
+
readonly $fault: "client";
|
|
160
|
+
/**
|
|
161
|
+
* @internal
|
|
162
|
+
*/
|
|
163
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
155
164
|
}
|
|
156
165
|
/**
|
|
157
166
|
* <p>Represents user metadata added to a Users dataset using the
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: PersonalizeEventsClientConfig) =
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: PersonalizeEventsClientConfig) =
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: PersonalizeEventsClientConfig) =
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { PutEventsCommandInput, PutEventsCommandOutput } from "./commands/PutEventsCommand";
|
|
10
10
|
import { PutItemsCommandInput, PutItemsCommandOutput } from "./commands/PutItemsCommand";
|
|
11
11
|
import { PutUsersCommandInput, PutUsersCommandOutput } from "./commands/PutUsersCommand";
|
|
@@ -19,7 +19,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
19
19
|
|
|
20
20
|
urlParser?: __UrlParser;
|
|
21
21
|
|
|
22
|
-
bodyLengthChecker?:
|
|
22
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
23
23
|
|
|
24
24
|
streamCollector?: __StreamCollector;
|
|
25
25
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class PersonalizeEventsServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
2
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { PersonalizeEventsServiceException as __BaseException } from "./PersonalizeEventsServiceException";
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
name: "InvalidInputException";
|
|
6
|
-
$fault: "client";
|
|
7
|
-
|
|
4
|
+
export declare class InvalidInputException extends __BaseException {
|
|
5
|
+
readonly name: "InvalidInputException";
|
|
6
|
+
readonly $fault: "client";
|
|
7
|
+
|
|
8
|
+
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export interface Event {
|
|
@@ -65,16 +66,18 @@ export declare namespace PutItemsRequest {
|
|
|
65
66
|
const filterSensitiveLog: (obj: PutItemsRequest) => any;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
|
-
export
|
|
69
|
-
name: "ResourceInUseException";
|
|
70
|
-
$fault: "client";
|
|
71
|
-
|
|
69
|
+
export declare class ResourceInUseException extends __BaseException {
|
|
70
|
+
readonly name: "ResourceInUseException";
|
|
71
|
+
readonly $fault: "client";
|
|
72
|
+
|
|
73
|
+
constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
|
|
72
74
|
}
|
|
73
75
|
|
|
74
|
-
export
|
|
75
|
-
name: "ResourceNotFoundException";
|
|
76
|
-
$fault: "client";
|
|
77
|
-
|
|
76
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
77
|
+
readonly name: "ResourceNotFoundException";
|
|
78
|
+
readonly $fault: "client";
|
|
79
|
+
|
|
80
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
export interface User {
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: PersonalizeEventsClientConfig) =
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: PersonalizeEventsClientConfig) =
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: PersonalizeEventsClientConfig) =
|
|
|
6
6
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-personalize-events",
|
|
3
3
|
"description": "AWS SDK for JavaScript Personalize Events Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.54.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,34 +18,34 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.54.1",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.54.1",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.54.1",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.54.1",
|
|
25
|
+
"@aws-sdk/hash-node": "3.54.1",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.54.1",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.54.1",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.54.1",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.54.1",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.54.1",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.54.1",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.54.1",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.54.1",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.54.1",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.54.1",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.54.1",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.54.1",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.54.1",
|
|
39
|
+
"@aws-sdk/types": "3.54.1",
|
|
40
|
+
"@aws-sdk/url-parser": "3.54.1",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.54.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.54.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.54.1",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.54.1",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.54.1",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.54.1",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|