@aws-sdk/client-personalize-runtime 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +5 -49
- package/dist-es/protocols/Aws_restJson1.js +4 -48
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -272,7 +272,7 @@ var se_GetRecommendationsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
272
272
|
}, "se_GetRecommendationsCommand");
|
|
273
273
|
var de_GetActionRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
274
274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
275
|
-
return
|
|
275
|
+
return de_CommandError(output, context);
|
|
276
276
|
}
|
|
277
277
|
const contents = (0, import_smithy_client.map)({
|
|
278
278
|
$metadata: deserializeMetadata(output)
|
|
@@ -285,31 +285,9 @@ var de_GetActionRecommendationsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
285
285
|
Object.assign(contents, doc);
|
|
286
286
|
return contents;
|
|
287
287
|
}, "de_GetActionRecommendationsCommand");
|
|
288
|
-
var de_GetActionRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
289
|
-
const parsedOutput = {
|
|
290
|
-
...output,
|
|
291
|
-
body: await parseErrorBody(output.body, context)
|
|
292
|
-
};
|
|
293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
294
|
-
switch (errorCode) {
|
|
295
|
-
case "InvalidInputException":
|
|
296
|
-
case "com.amazonaws.personalizeruntime#InvalidInputException":
|
|
297
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
298
|
-
case "ResourceNotFoundException":
|
|
299
|
-
case "com.amazonaws.personalizeruntime#ResourceNotFoundException":
|
|
300
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
301
|
-
default:
|
|
302
|
-
const parsedBody = parsedOutput.body;
|
|
303
|
-
return throwDefaultError({
|
|
304
|
-
output,
|
|
305
|
-
parsedBody,
|
|
306
|
-
errorCode
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
}, "de_GetActionRecommendationsCommandError");
|
|
310
288
|
var de_GetPersonalizedRankingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
311
289
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
312
|
-
return
|
|
290
|
+
return de_CommandError(output, context);
|
|
313
291
|
}
|
|
314
292
|
const contents = (0, import_smithy_client.map)({
|
|
315
293
|
$metadata: deserializeMetadata(output)
|
|
@@ -322,31 +300,9 @@ var de_GetPersonalizedRankingCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
322
300
|
Object.assign(contents, doc);
|
|
323
301
|
return contents;
|
|
324
302
|
}, "de_GetPersonalizedRankingCommand");
|
|
325
|
-
var de_GetPersonalizedRankingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
326
|
-
const parsedOutput = {
|
|
327
|
-
...output,
|
|
328
|
-
body: await parseErrorBody(output.body, context)
|
|
329
|
-
};
|
|
330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
331
|
-
switch (errorCode) {
|
|
332
|
-
case "InvalidInputException":
|
|
333
|
-
case "com.amazonaws.personalizeruntime#InvalidInputException":
|
|
334
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
335
|
-
case "ResourceNotFoundException":
|
|
336
|
-
case "com.amazonaws.personalizeruntime#ResourceNotFoundException":
|
|
337
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
338
|
-
default:
|
|
339
|
-
const parsedBody = parsedOutput.body;
|
|
340
|
-
return throwDefaultError({
|
|
341
|
-
output,
|
|
342
|
-
parsedBody,
|
|
343
|
-
errorCode
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
}, "de_GetPersonalizedRankingCommandError");
|
|
347
303
|
var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
348
304
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
349
|
-
return
|
|
305
|
+
return de_CommandError(output, context);
|
|
350
306
|
}
|
|
351
307
|
const contents = (0, import_smithy_client.map)({
|
|
352
308
|
$metadata: deserializeMetadata(output)
|
|
@@ -359,7 +315,7 @@ var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
359
315
|
Object.assign(contents, doc);
|
|
360
316
|
return contents;
|
|
361
317
|
}, "de_GetRecommendationsCommand");
|
|
362
|
-
var
|
|
318
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
363
319
|
const parsedOutput = {
|
|
364
320
|
...output,
|
|
365
321
|
body: await parseErrorBody(output.body, context)
|
|
@@ -380,7 +336,7 @@ var de_GetRecommendationsCommandError = /* @__PURE__ */ __name(async (output, co
|
|
|
380
336
|
errorCode
|
|
381
337
|
});
|
|
382
338
|
}
|
|
383
|
-
}, "
|
|
339
|
+
}, "de_CommandError");
|
|
384
340
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(PersonalizeRuntimeServiceException);
|
|
385
341
|
var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
386
342
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -62,7 +62,7 @@ export const se_GetRecommendationsCommand = async (input, context) => {
|
|
|
62
62
|
};
|
|
63
63
|
export const de_GetActionRecommendationsCommand = async (output, context) => {
|
|
64
64
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
65
|
-
return
|
|
65
|
+
return de_CommandError(output, context);
|
|
66
66
|
}
|
|
67
67
|
const contents = map({
|
|
68
68
|
$metadata: deserializeMetadata(output),
|
|
@@ -75,31 +75,9 @@ export const de_GetActionRecommendationsCommand = async (output, context) => {
|
|
|
75
75
|
Object.assign(contents, doc);
|
|
76
76
|
return contents;
|
|
77
77
|
};
|
|
78
|
-
const de_GetActionRecommendationsCommandError = async (output, context) => {
|
|
79
|
-
const parsedOutput = {
|
|
80
|
-
...output,
|
|
81
|
-
body: await parseErrorBody(output.body, context),
|
|
82
|
-
};
|
|
83
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
84
|
-
switch (errorCode) {
|
|
85
|
-
case "InvalidInputException":
|
|
86
|
-
case "com.amazonaws.personalizeruntime#InvalidInputException":
|
|
87
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
88
|
-
case "ResourceNotFoundException":
|
|
89
|
-
case "com.amazonaws.personalizeruntime#ResourceNotFoundException":
|
|
90
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
91
|
-
default:
|
|
92
|
-
const parsedBody = parsedOutput.body;
|
|
93
|
-
return throwDefaultError({
|
|
94
|
-
output,
|
|
95
|
-
parsedBody,
|
|
96
|
-
errorCode,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
78
|
export const de_GetPersonalizedRankingCommand = async (output, context) => {
|
|
101
79
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
102
|
-
return
|
|
80
|
+
return de_CommandError(output, context);
|
|
103
81
|
}
|
|
104
82
|
const contents = map({
|
|
105
83
|
$metadata: deserializeMetadata(output),
|
|
@@ -112,31 +90,9 @@ export const de_GetPersonalizedRankingCommand = async (output, context) => {
|
|
|
112
90
|
Object.assign(contents, doc);
|
|
113
91
|
return contents;
|
|
114
92
|
};
|
|
115
|
-
const de_GetPersonalizedRankingCommandError = async (output, context) => {
|
|
116
|
-
const parsedOutput = {
|
|
117
|
-
...output,
|
|
118
|
-
body: await parseErrorBody(output.body, context),
|
|
119
|
-
};
|
|
120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
121
|
-
switch (errorCode) {
|
|
122
|
-
case "InvalidInputException":
|
|
123
|
-
case "com.amazonaws.personalizeruntime#InvalidInputException":
|
|
124
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
125
|
-
case "ResourceNotFoundException":
|
|
126
|
-
case "com.amazonaws.personalizeruntime#ResourceNotFoundException":
|
|
127
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
128
|
-
default:
|
|
129
|
-
const parsedBody = parsedOutput.body;
|
|
130
|
-
return throwDefaultError({
|
|
131
|
-
output,
|
|
132
|
-
parsedBody,
|
|
133
|
-
errorCode,
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
93
|
export const de_GetRecommendationsCommand = async (output, context) => {
|
|
138
94
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
139
|
-
return
|
|
95
|
+
return de_CommandError(output, context);
|
|
140
96
|
}
|
|
141
97
|
const contents = map({
|
|
142
98
|
$metadata: deserializeMetadata(output),
|
|
@@ -149,7 +105,7 @@ export const de_GetRecommendationsCommand = async (output, context) => {
|
|
|
149
105
|
Object.assign(contents, doc);
|
|
150
106
|
return contents;
|
|
151
107
|
};
|
|
152
|
-
const
|
|
108
|
+
const de_CommandError = async (output, context) => {
|
|
153
109
|
const parsedOutput = {
|
|
154
110
|
...output,
|
|
155
111
|
body: await parseErrorBody(output.body, context),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-personalize-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Personalize Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.509.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-personalize-runtime",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.509.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|