@aws-sdk/client-supplychain 3.504.0 → 3.507.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 +4 -41
- package/dist-es/protocols/Aws_restJson1.js +3 -40
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -313,7 +313,7 @@ var se_GetBillOfMaterialsImportJobCommand = /* @__PURE__ */ __name(async (input,
|
|
|
313
313
|
}, "se_GetBillOfMaterialsImportJobCommand");
|
|
314
314
|
var de_CreateBillOfMaterialsImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
315
315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
316
|
-
return
|
|
316
|
+
return de_CommandError(output, context);
|
|
317
317
|
}
|
|
318
318
|
const contents = (0, import_smithy_client.map)({
|
|
319
319
|
$metadata: deserializeMetadata(output)
|
|
@@ -325,46 +325,9 @@ var de_CreateBillOfMaterialsImportJobCommand = /* @__PURE__ */ __name(async (out
|
|
|
325
325
|
Object.assign(contents, doc);
|
|
326
326
|
return contents;
|
|
327
327
|
}, "de_CreateBillOfMaterialsImportJobCommand");
|
|
328
|
-
var de_CreateBillOfMaterialsImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
329
|
-
const parsedOutput = {
|
|
330
|
-
...output,
|
|
331
|
-
body: await parseErrorBody(output.body, context)
|
|
332
|
-
};
|
|
333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
334
|
-
switch (errorCode) {
|
|
335
|
-
case "AccessDeniedException":
|
|
336
|
-
case "com.amazonaws.supplychain#AccessDeniedException":
|
|
337
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
338
|
-
case "ConflictException":
|
|
339
|
-
case "com.amazonaws.supplychain#ConflictException":
|
|
340
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
341
|
-
case "InternalServerException":
|
|
342
|
-
case "com.amazonaws.supplychain#InternalServerException":
|
|
343
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
344
|
-
case "ResourceNotFoundException":
|
|
345
|
-
case "com.amazonaws.supplychain#ResourceNotFoundException":
|
|
346
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
347
|
-
case "ServiceQuotaExceededException":
|
|
348
|
-
case "com.amazonaws.supplychain#ServiceQuotaExceededException":
|
|
349
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
350
|
-
case "ThrottlingException":
|
|
351
|
-
case "com.amazonaws.supplychain#ThrottlingException":
|
|
352
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
353
|
-
case "ValidationException":
|
|
354
|
-
case "com.amazonaws.supplychain#ValidationException":
|
|
355
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
356
|
-
default:
|
|
357
|
-
const parsedBody = parsedOutput.body;
|
|
358
|
-
return throwDefaultError({
|
|
359
|
-
output,
|
|
360
|
-
parsedBody,
|
|
361
|
-
errorCode
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
}, "de_CreateBillOfMaterialsImportJobCommandError");
|
|
365
328
|
var de_GetBillOfMaterialsImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
366
329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
367
|
-
return
|
|
330
|
+
return de_CommandError(output, context);
|
|
368
331
|
}
|
|
369
332
|
const contents = (0, import_smithy_client.map)({
|
|
370
333
|
$metadata: deserializeMetadata(output)
|
|
@@ -376,7 +339,7 @@ var de_GetBillOfMaterialsImportJobCommand = /* @__PURE__ */ __name(async (output
|
|
|
376
339
|
Object.assign(contents, doc);
|
|
377
340
|
return contents;
|
|
378
341
|
}, "de_GetBillOfMaterialsImportJobCommand");
|
|
379
|
-
var
|
|
342
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
380
343
|
const parsedOutput = {
|
|
381
344
|
...output,
|
|
382
345
|
body: await parseErrorBody(output.body, context)
|
|
@@ -412,7 +375,7 @@ var de_GetBillOfMaterialsImportJobCommandError = /* @__PURE__ */ __name(async (o
|
|
|
412
375
|
errorCode
|
|
413
376
|
});
|
|
414
377
|
}
|
|
415
|
-
}, "
|
|
378
|
+
}, "de_CommandError");
|
|
416
379
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SupplyChainServiceException);
|
|
417
380
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
418
381
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -30,7 +30,7 @@ export const se_GetBillOfMaterialsImportJobCommand = async (input, context) => {
|
|
|
30
30
|
};
|
|
31
31
|
export const de_CreateBillOfMaterialsImportJobCommand = async (output, context) => {
|
|
32
32
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
33
|
-
return
|
|
33
|
+
return de_CommandError(output, context);
|
|
34
34
|
}
|
|
35
35
|
const contents = map({
|
|
36
36
|
$metadata: deserializeMetadata(output),
|
|
@@ -42,46 +42,9 @@ export const de_CreateBillOfMaterialsImportJobCommand = async (output, context)
|
|
|
42
42
|
Object.assign(contents, doc);
|
|
43
43
|
return contents;
|
|
44
44
|
};
|
|
45
|
-
const de_CreateBillOfMaterialsImportJobCommandError = async (output, context) => {
|
|
46
|
-
const parsedOutput = {
|
|
47
|
-
...output,
|
|
48
|
-
body: await parseErrorBody(output.body, context),
|
|
49
|
-
};
|
|
50
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
51
|
-
switch (errorCode) {
|
|
52
|
-
case "AccessDeniedException":
|
|
53
|
-
case "com.amazonaws.supplychain#AccessDeniedException":
|
|
54
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
55
|
-
case "ConflictException":
|
|
56
|
-
case "com.amazonaws.supplychain#ConflictException":
|
|
57
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
58
|
-
case "InternalServerException":
|
|
59
|
-
case "com.amazonaws.supplychain#InternalServerException":
|
|
60
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
61
|
-
case "ResourceNotFoundException":
|
|
62
|
-
case "com.amazonaws.supplychain#ResourceNotFoundException":
|
|
63
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
64
|
-
case "ServiceQuotaExceededException":
|
|
65
|
-
case "com.amazonaws.supplychain#ServiceQuotaExceededException":
|
|
66
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
67
|
-
case "ThrottlingException":
|
|
68
|
-
case "com.amazonaws.supplychain#ThrottlingException":
|
|
69
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
70
|
-
case "ValidationException":
|
|
71
|
-
case "com.amazonaws.supplychain#ValidationException":
|
|
72
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
73
|
-
default:
|
|
74
|
-
const parsedBody = parsedOutput.body;
|
|
75
|
-
return throwDefaultError({
|
|
76
|
-
output,
|
|
77
|
-
parsedBody,
|
|
78
|
-
errorCode,
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
45
|
export const de_GetBillOfMaterialsImportJobCommand = async (output, context) => {
|
|
83
46
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
84
|
-
return
|
|
47
|
+
return de_CommandError(output, context);
|
|
85
48
|
}
|
|
86
49
|
const contents = map({
|
|
87
50
|
$metadata: deserializeMetadata(output),
|
|
@@ -93,7 +56,7 @@ export const de_GetBillOfMaterialsImportJobCommand = async (output, context) =>
|
|
|
93
56
|
Object.assign(contents, doc);
|
|
94
57
|
return contents;
|
|
95
58
|
};
|
|
96
|
-
const
|
|
59
|
+
const de_CommandError = async (output, context) => {
|
|
97
60
|
const parsedOutput = {
|
|
98
61
|
...output,
|
|
99
62
|
body: await parseErrorBody(output.body, context),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-supplychain",
|
|
3
3
|
"description": "AWS SDK for JavaScript Supplychain Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.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-supplychain",
|
|
@@ -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.507.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",
|