@aws-sdk/client-supplychain 3.986.0 → 3.988.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultSupplyChainHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2024-01-01",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.supplychain",
30
+ errorTypeRegistries,
29
31
  version: "2024-01-01",
30
32
  serviceTarget: "GalaxyPublicAPIGateway",
31
33
  },
@@ -208,7 +208,7 @@ const _pK = "primaryKeys";
208
208
  const _pS = "partitionSpec";
209
209
  const _q = "query";
210
210
  const _rA = "resourceArn";
211
- const _s = "status";
211
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.supplychain";
212
212
  const _sI = "sourceInfo";
213
213
  const _sN = "sourceName";
214
214
  const _sO = "sortOrder";
@@ -219,9 +219,9 @@ const _sTo = "sourceType";
219
219
  const _sTq = "sqlTransformation";
220
220
  const _sc = "schema";
221
221
  const _se = "server";
222
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.supplychain";
223
222
  const _so = "sources";
224
- const _st = "state";
223
+ const _st = "status";
224
+ const _sta = "state";
225
225
  const _su = "s3uri";
226
226
  const _t = "transformation";
227
227
  const _tK = "tagKeys";
@@ -237,25 +237,63 @@ const n0 = "com.amazonaws.supplychain";
237
237
  import { TypeRegistry } from "@smithy/core/schema";
238
238
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
239
239
  import { SupplyChainServiceException } from "../models/SupplyChainServiceException";
240
- var DataIntegrationEventData = [0, n0, _DIED, 8, 0];
241
- var DataIntegrationFlowSQLQuery = [0, n0, _DIFSQLQ, 8, 0];
240
+ const _s_registry = TypeRegistry.for(_s);
241
+ export var SupplyChainServiceException$ = [-3, _s, "SupplyChainServiceException", 0, [], []];
242
+ _s_registry.registerError(SupplyChainServiceException$, SupplyChainServiceException);
243
+ const n0_registry = TypeRegistry.for(n0);
242
244
  export var AccessDeniedException$ = [-3, n0, _ADE,
243
245
  { [_e]: _c, [_hE]: 403 },
244
246
  [_m],
245
247
  [0]
246
248
  ];
247
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
248
- export var BillOfMaterialsImportJob$ = [3, n0, _BOMIJ,
249
- 0,
250
- [_iI, _jI, _s, _su, _m],
251
- [0, 0, 0, 0, 0], 4
252
- ];
249
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
253
250
  export var ConflictException$ = [-3, n0, _CE,
254
251
  { [_e]: _c, [_hE]: 409 },
255
252
  [_m],
256
253
  [0]
257
254
  ];
258
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
255
+ n0_registry.registerError(ConflictException$, ConflictException);
256
+ export var InternalServerException$ = [-3, n0, _ISE,
257
+ { [_e]: _se, [_hE]: 500 },
258
+ [_m],
259
+ [0]
260
+ ];
261
+ n0_registry.registerError(InternalServerException$, InternalServerException);
262
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
263
+ { [_e]: _c, [_hE]: 404 },
264
+ [_m],
265
+ [0]
266
+ ];
267
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
268
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
269
+ { [_e]: _c, [_hE]: 402 },
270
+ [_m],
271
+ [0]
272
+ ];
273
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
274
+ export var ThrottlingException$ = [-3, n0, _TE,
275
+ { [_e]: _c, [_hE]: 429 },
276
+ [_m],
277
+ [0]
278
+ ];
279
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
280
+ export var ValidationException$ = [-3, n0, _VE,
281
+ { [_e]: _c, [_hE]: 400 },
282
+ [_m],
283
+ [0]
284
+ ];
285
+ n0_registry.registerError(ValidationException$, ValidationException);
286
+ export const errorTypeRegistries = [
287
+ _s_registry,
288
+ n0_registry,
289
+ ];
290
+ var DataIntegrationEventData = [0, n0, _DIED, 8, 0];
291
+ var DataIntegrationFlowSQLQuery = [0, n0, _DIFSQLQ, 8, 0];
292
+ export var BillOfMaterialsImportJob$ = [3, n0, _BOMIJ,
293
+ 0,
294
+ [_iI, _jI, _st, _su, _m],
295
+ [0, 0, 0, 0, 0], 4
296
+ ];
259
297
  export var CreateBillOfMaterialsImportJobRequest$ = [3, n0, _CBOMIJR,
260
298
  0,
261
299
  [_iI, _su, _cT],
@@ -313,7 +351,7 @@ export var DataIntegrationEvent$ = [3, n0, _DIE,
313
351
  ];
314
352
  export var DataIntegrationEventDatasetLoadExecutionDetails$ = [3, n0, _DIEDLED,
315
353
  0,
316
- [_s, _m],
354
+ [_st, _m],
317
355
  [0, 0], 1
318
356
  ];
319
357
  export var DataIntegrationEventDatasetTargetConfiguration$ = [3, n0, _DIEDTC,
@@ -358,7 +396,7 @@ export var DataIntegrationFlowDedupeStrategy$ = [3, n0, _DIFDSa,
358
396
  ];
359
397
  export var DataIntegrationFlowExecution$ = [3, n0, _DIFE,
360
398
  0,
361
- [_iI, _fN, _eIx, _s, _sI, _m, _sT, _eTn, _oM],
399
+ [_iI, _fN, _eIx, _st, _sI, _m, _sT, _eTn, _oM],
362
400
  [0, 0, 0, 0, () => DataIntegrationFlowExecutionSourceInfo$, 0, 4, 4, () => DataIntegrationFlowExecutionOutputMetadata$], 3
363
401
  ];
364
402
  export var DataIntegrationFlowExecutionOutputMetadata$ = [3, n0, _DIFEOM,
@@ -573,15 +611,9 @@ export var GetInstanceResponse$ = [3, n0, _GIRe,
573
611
  ];
574
612
  export var Instance$ = [3, n0, _I,
575
613
  0,
576
- [_iI, _aAI, _st, _eM, _wADD, _cTr, _lMT, _iN, _iD, _kKA, _vN],
614
+ [_iI, _aAI, _sta, _eM, _wADD, _cTr, _lMT, _iN, _iD, _kKA, _vN],
577
615
  [0, 0, 0, 0, 0, 4, 4, 0, 0, 0, 1], 3
578
616
  ];
579
- export var InternalServerException$ = [-3, n0, _ISE,
580
- { [_e]: _se, [_hE]: 500 },
581
- [_m],
582
- [0]
583
- ];
584
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
585
617
  export var ListDataIntegrationEventsRequest$ = [3, n0, _LDIER,
586
618
  0,
587
619
  [_iI, _eT, _nT, _mR],
@@ -652,12 +684,6 @@ export var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
652
684
  [_tag],
653
685
  [128 | 0], 1
654
686
  ];
655
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
656
- { [_e]: _c, [_hE]: 404 },
657
- [_m],
658
- [0]
659
- ];
660
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
661
687
  export var SendDataIntegrationEventRequest$ = [3, n0, _SDIER,
662
688
  0,
663
689
  [_iI, _eT, _data, _eGI, _eTv, _cT, _dT],
@@ -668,12 +694,6 @@ export var SendDataIntegrationEventResponse$ = [3, n0, _SDIERe,
668
694
  [_eI],
669
695
  [0], 1
670
696
  ];
671
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
672
- { [_e]: _c, [_hE]: 402 },
673
- [_m],
674
- [0]
675
- ];
676
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
677
697
  export var TagResourceRequest$ = [3, n0, _TRR,
678
698
  0,
679
699
  [_rA, _tag],
@@ -684,12 +704,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
684
704
  [],
685
705
  []
686
706
  ];
687
- export var ThrottlingException$ = [-3, n0, _TE,
688
- { [_e]: _c, [_hE]: 429 },
689
- [_m],
690
- [0]
691
- ];
692
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
693
707
  export var UntagResourceRequest$ = [3, n0, _URR,
694
708
  0,
695
709
  [_rA, _tK],
@@ -740,14 +754,6 @@ export var UpdateInstanceResponse$ = [3, n0, _UIRp,
740
754
  [_i],
741
755
  [() => Instance$], 1
742
756
  ];
743
- export var ValidationException$ = [-3, n0, _VE,
744
- { [_e]: _c, [_hE]: 400 },
745
- [_m],
746
- [0]
747
- ];
748
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
749
- export var SupplyChainServiceException$ = [-3, _sm, "SupplyChainServiceException", 0, [], []];
750
- TypeRegistry.for(_sm).registerError(SupplyChainServiceException$, SupplyChainServiceException);
751
757
  var DataIntegrationEventList = [1, n0, _DIEL,
752
758
  0, () => DataIntegrationEvent$
753
759
  ];
@@ -1,7 +1,20 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var SupplyChainServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
3
- export declare var BillOfMaterialsImportJob$: StaticStructureSchema;
4
5
  export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
9
+ export declare var ThrottlingException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
17
+ export declare var BillOfMaterialsImportJob$: StaticStructureSchema;
5
18
  export declare var CreateBillOfMaterialsImportJobRequest$: StaticStructureSchema;
6
19
  export declare var CreateBillOfMaterialsImportJobResponse$: StaticStructureSchema;
7
20
  export declare var CreateDataIntegrationFlowRequest$: StaticStructureSchema;
@@ -66,7 +79,6 @@ export declare var GetDataLakeNamespaceResponse$: StaticStructureSchema;
66
79
  export declare var GetInstanceRequest$: StaticStructureSchema;
67
80
  export declare var GetInstanceResponse$: StaticStructureSchema;
68
81
  export declare var Instance$: StaticStructureSchema;
69
- export declare var InternalServerException$: StaticErrorSchema;
70
82
  export declare var ListDataIntegrationEventsRequest$: StaticStructureSchema;
71
83
  export declare var ListDataIntegrationEventsResponse$: StaticStructureSchema;
72
84
  export declare var ListDataIntegrationFlowExecutionsRequest$: StaticStructureSchema;
@@ -81,13 +93,10 @@ export declare var ListInstancesRequest$: StaticStructureSchema;
81
93
  export declare var ListInstancesResponse$: StaticStructureSchema;
82
94
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
83
95
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
84
- export declare var ResourceNotFoundException$: StaticErrorSchema;
85
96
  export declare var SendDataIntegrationEventRequest$: StaticStructureSchema;
86
97
  export declare var SendDataIntegrationEventResponse$: StaticStructureSchema;
87
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
88
98
  export declare var TagResourceRequest$: StaticStructureSchema;
89
99
  export declare var TagResourceResponse$: StaticStructureSchema;
90
- export declare var ThrottlingException$: StaticErrorSchema;
91
100
  export declare var UntagResourceRequest$: StaticStructureSchema;
92
101
  export declare var UntagResourceResponse$: StaticStructureSchema;
93
102
  export declare var UpdateDataIntegrationFlowRequest$: StaticStructureSchema;
@@ -98,8 +107,6 @@ export declare var UpdateDataLakeNamespaceRequest$: StaticStructureSchema;
98
107
  export declare var UpdateDataLakeNamespaceResponse$: StaticStructureSchema;
99
108
  export declare var UpdateInstanceRequest$: StaticStructureSchema;
100
109
  export declare var UpdateInstanceResponse$: StaticStructureSchema;
101
- export declare var ValidationException$: StaticErrorSchema;
102
- export declare var SupplyChainServiceException$: StaticErrorSchema;
103
110
  export declare var CreateBillOfMaterialsImportJob$: StaticOperationSchema;
104
111
  export declare var CreateDataIntegrationFlow$: StaticOperationSchema;
105
112
  export declare var CreateDataLakeDataset$: StaticOperationSchema;
@@ -1,11 +1,19 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var SupplyChainServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
7
- export declare var BillOfMaterialsImportJob$: StaticStructureSchema;
8
9
  export declare var ConflictException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
13
+ export declare var ThrottlingException$: StaticErrorSchema;
14
+ export declare var ValidationException$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
16
+ export declare var BillOfMaterialsImportJob$: StaticStructureSchema;
9
17
  export declare var CreateBillOfMaterialsImportJobRequest$: StaticStructureSchema;
10
18
  export declare var CreateBillOfMaterialsImportJobResponse$: StaticStructureSchema;
11
19
  export declare var CreateDataIntegrationFlowRequest$: StaticStructureSchema;
@@ -70,7 +78,6 @@ export declare var GetDataLakeNamespaceResponse$: StaticStructureSchema;
70
78
  export declare var GetInstanceRequest$: StaticStructureSchema;
71
79
  export declare var GetInstanceResponse$: StaticStructureSchema;
72
80
  export declare var Instance$: StaticStructureSchema;
73
- export declare var InternalServerException$: StaticErrorSchema;
74
81
  export declare var ListDataIntegrationEventsRequest$: StaticStructureSchema;
75
82
  export declare var ListDataIntegrationEventsResponse$: StaticStructureSchema;
76
83
  export declare var ListDataIntegrationFlowExecutionsRequest$: StaticStructureSchema;
@@ -85,13 +92,10 @@ export declare var ListInstancesRequest$: StaticStructureSchema;
85
92
  export declare var ListInstancesResponse$: StaticStructureSchema;
86
93
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
87
94
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
88
- export declare var ResourceNotFoundException$: StaticErrorSchema;
89
95
  export declare var SendDataIntegrationEventRequest$: StaticStructureSchema;
90
96
  export declare var SendDataIntegrationEventResponse$: StaticStructureSchema;
91
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
92
97
  export declare var TagResourceRequest$: StaticStructureSchema;
93
98
  export declare var TagResourceResponse$: StaticStructureSchema;
94
- export declare var ThrottlingException$: StaticErrorSchema;
95
99
  export declare var UntagResourceRequest$: StaticStructureSchema;
96
100
  export declare var UntagResourceResponse$: StaticStructureSchema;
97
101
  export declare var UpdateDataIntegrationFlowRequest$: StaticStructureSchema;
@@ -102,8 +106,6 @@ export declare var UpdateDataLakeNamespaceRequest$: StaticStructureSchema;
102
106
  export declare var UpdateDataLakeNamespaceResponse$: StaticStructureSchema;
103
107
  export declare var UpdateInstanceRequest$: StaticStructureSchema;
104
108
  export declare var UpdateInstanceResponse$: StaticStructureSchema;
105
- export declare var ValidationException$: StaticErrorSchema;
106
- export declare var SupplyChainServiceException$: StaticErrorSchema;
107
109
  export declare var CreateBillOfMaterialsImportJob$: StaticOperationSchema;
108
110
  export declare var CreateDataIntegrationFlow$: StaticOperationSchema;
109
111
  export declare var CreateDataLakeDataset$: StaticOperationSchema;
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.986.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-supplychain",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.986.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",