@aws-sdk/client-invoicing 3.987.0 → 3.989.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 { defaultInvoicingHttpAuthSchemeProvider } 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-12-01",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_0Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.invoicing",
30
+ errorTypeRegistries,
29
31
  version: "2024-12-01",
30
32
  serviceTarget: "Invoicing",
31
33
  },
@@ -214,19 +214,63 @@ const _rAS = "retryAfterSeconds";
214
214
  const _rI = "resourceId";
215
215
  const _rN = "resourceName";
216
216
  const _rT = "resourceType";
217
- const _s = "server";
218
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.invoicing";
217
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.invoicing";
218
+ const _se = "server";
219
219
  const n0 = "com.amazonaws.invoicing";
220
220
  import { TypeRegistry } from "@smithy/core/schema";
221
221
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
222
222
  import { InvoicingServiceException } from "../models/InvoicingServiceException";
223
- var SensitiveBasicStringWithoutSpace = [0, n0, _SBSWS, 8, 0];
223
+ const _s_registry = TypeRegistry.for(_s);
224
+ export var InvoicingServiceException$ = [-3, _s, "InvoicingServiceException", 0, [], []];
225
+ _s_registry.registerError(InvoicingServiceException$, InvoicingServiceException);
226
+ const n0_registry = TypeRegistry.for(n0);
224
227
  export var AccessDeniedException$ = [-3, n0, _ADE,
225
228
  { [_aQE]: [`InvoicingAccessDenied`, 403], [_e]: _c, [_hE]: 403 },
226
229
  [_m, _rN],
227
230
  [0, 0]
228
231
  ];
229
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
232
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
233
+ export var ConflictException$ = [-3, n0, _CE,
234
+ { [_aQE]: [`InvoicingConflict`, 409], [_e]: _c, [_hE]: 409 },
235
+ [_m, _rI, _rT],
236
+ [0, 0, 0]
237
+ ];
238
+ n0_registry.registerError(ConflictException$, ConflictException);
239
+ export var InternalServerException$ = [-3, n0, _ISE,
240
+ { [_aQE]: [`InvoicingInternalServer`, 500], [_e]: _se, [_hE]: 500 },
241
+ [_rAS, _m],
242
+ [[1, { [_hH]: _RA }], 0]
243
+ ];
244
+ n0_registry.registerError(InternalServerException$, InternalServerException);
245
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
246
+ { [_aQE]: [`InvoicingResourceNotFound`, 404], [_e]: _c, [_hE]: 404 },
247
+ [_m, _rN],
248
+ [0, 0]
249
+ ];
250
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
251
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
252
+ { [_aQE]: [`InvoicingServiceQuotaExceeded`, 402], [_e]: _c, [_hE]: 402 },
253
+ [_m],
254
+ [0], 1
255
+ ];
256
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
257
+ export var ThrottlingException$ = [-3, n0, _TE,
258
+ { [_aQE]: [`InvoicingThrottling`, 429], [_e]: _c, [_hE]: 429 },
259
+ [_m],
260
+ [0]
261
+ ];
262
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
263
+ export var ValidationException$ = [-3, n0, _VE,
264
+ { [_aQE]: [`InvoicingValidation`, 400], [_e]: _c, [_hE]: 400 },
265
+ [_m, _rN, _r, _fL],
266
+ [0, 0, 0, () => ValidationExceptionFieldList]
267
+ ];
268
+ n0_registry.registerError(ValidationException$, ValidationException);
269
+ export const errorTypeRegistries = [
270
+ _s_registry,
271
+ n0_registry,
272
+ ];
273
+ var SensitiveBasicStringWithoutSpace = [0, n0, _SBSWS, 8, 0];
230
274
  export var AmountBreakdown$ = [3, n0, _AB,
231
275
  0,
232
276
  [_STA, _D, _T, _F],
@@ -247,12 +291,6 @@ export var BillingPeriod$ = [3, n0, _BP,
247
291
  [_M, _Y],
248
292
  [1, 1], 2
249
293
  ];
250
- export var ConflictException$ = [-3, n0, _CE,
251
- { [_aQE]: [`InvoicingConflict`, 409], [_e]: _c, [_hE]: 409 },
252
- [_m, _rI, _rT],
253
- [0, 0, 0]
254
- ];
255
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
256
294
  export var Contact$ = [3, n0, _C,
257
295
  8,
258
296
  [_N, _E],
@@ -373,12 +411,6 @@ export var GetProcurementPortalPreferenceResponse$ = [3, n0, _GPPPRe,
373
411
  [_PPP],
374
412
  [[() => ProcurementPortalPreference$, 0]], 1
375
413
  ];
376
- export var InternalServerException$ = [-3, n0, _ISE,
377
- { [_aQE]: [`InvoicingInternalServer`, 500], [_e]: _s, [_hE]: 500 },
378
- [_rAS, _m],
379
- [[1, { [_hH]: _RA }], 0]
380
- ];
381
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
382
414
  export var InvoiceCurrencyAmount$ = [3, n0, _ICA,
383
415
  0,
384
416
  [_TA, _TABT, _CC, _AB, _CED],
@@ -494,23 +526,11 @@ export var ReceiverAddress$ = [3, n0, _RAe,
494
526
  [_AL, _ALd, _ALdd, _DOC, _Ci, _SORt, _CCo, _CN, _PC],
495
527
  [0, 0, 0, 0, 0, 0, 0, 0, 0]
496
528
  ];
497
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
498
- { [_aQE]: [`InvoicingResourceNotFound`, 404], [_e]: _c, [_hE]: 404 },
499
- [_m, _rN],
500
- [0, 0]
501
- ];
502
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
503
529
  export var ResourceTag$ = [3, n0, _RTes,
504
530
  0,
505
531
  [_K, _V],
506
532
  [0, 0], 2
507
533
  ];
508
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
509
- { [_aQE]: [`InvoicingServiceQuotaExceeded`, 402], [_e]: _c, [_hE]: 402 },
510
- [_m],
511
- [0], 1
512
- ];
513
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
514
534
  export var SupplementalDocument$ = [3, n0, _SDup,
515
535
  0,
516
536
  [_DU, _DUED],
@@ -546,12 +566,6 @@ export var TestEnvPreferenceInput$ = [3, n0, _TEPI,
546
566
  [_BD, _BI, _SD, _SI, _PPSS, _PPIE],
547
567
  [0, 0, 0, 0, 0, 0], 4
548
568
  ];
549
- export var ThrottlingException$ = [-3, n0, _TE,
550
- { [_aQE]: [`InvoicingThrottling`, 429], [_e]: _c, [_hE]: 429 },
551
- [_m],
552
- [0]
553
- ];
554
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
555
569
  export var UntagResourceRequest$ = [3, n0, _URR,
556
570
  0,
557
571
  [_RAes, _RTK],
@@ -582,19 +596,11 @@ export var UpdateProcurementPortalPreferenceStatusResponse$ = [3, n0, _UPPPSRp,
582
596
  [_PPPA],
583
597
  [0], 1
584
598
  ];
585
- export var ValidationException$ = [-3, n0, _VE,
586
- { [_aQE]: [`InvoicingValidation`, 400], [_e]: _c, [_hE]: 400 },
587
- [_m, _rN, _r, _fL],
588
- [0, 0, 0, () => ValidationExceptionFieldList]
589
- ];
590
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
591
599
  export var ValidationExceptionField$ = [3, n0, _VEF,
592
600
  0,
593
601
  [_n, _m],
594
602
  [0, 0], 2
595
603
  ];
596
- export var InvoicingServiceException$ = [-3, _sm, "InvoicingServiceException", 0, [], []];
597
- TypeRegistry.for(_sm).registerError(InvoicingServiceException$, InvoicingServiceException);
598
604
  var AccountIdList = 64 | 0;
599
605
  var Contacts = [1, n0, _Co,
600
606
  0, [() => Contact$,
@@ -1,10 +1,23 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var InvoicingServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
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[];
3
17
  export declare var AmountBreakdown$: StaticStructureSchema;
4
18
  export declare var BatchGetInvoiceProfileRequest$: StaticStructureSchema;
5
19
  export declare var BatchGetInvoiceProfileResponse$: StaticStructureSchema;
6
20
  export declare var BillingPeriod$: StaticStructureSchema;
7
- export declare var ConflictException$: StaticErrorSchema;
8
21
  export declare var Contact$: StaticStructureSchema;
9
22
  export declare var CreateInvoiceUnitRequest$: StaticStructureSchema;
10
23
  export declare var CreateInvoiceUnitResponse$: StaticStructureSchema;
@@ -29,7 +42,6 @@ export declare var GetInvoiceUnitRequest$: StaticStructureSchema;
29
42
  export declare var GetInvoiceUnitResponse$: StaticStructureSchema;
30
43
  export declare var GetProcurementPortalPreferenceRequest$: StaticStructureSchema;
31
44
  export declare var GetProcurementPortalPreferenceResponse$: StaticStructureSchema;
32
- export declare var InternalServerException$: StaticErrorSchema;
33
45
  export declare var InvoiceCurrencyAmount$: StaticStructureSchema;
34
46
  export declare var InvoicePDF$: StaticStructureSchema;
35
47
  export declare var InvoiceProfile$: StaticStructureSchema;
@@ -53,9 +65,7 @@ export declare var PurchaseOrderDataSource$: StaticStructureSchema;
53
65
  export declare var PutProcurementPortalPreferenceRequest$: StaticStructureSchema;
54
66
  export declare var PutProcurementPortalPreferenceResponse$: StaticStructureSchema;
55
67
  export declare var ReceiverAddress$: StaticStructureSchema;
56
- export declare var ResourceNotFoundException$: StaticErrorSchema;
57
68
  export declare var ResourceTag$: StaticStructureSchema;
58
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
59
69
  export declare var SupplementalDocument$: StaticStructureSchema;
60
70
  export declare var TagResourceRequest$: StaticStructureSchema;
61
71
  export declare var TagResourceResponse$: StaticStructureSchema;
@@ -63,16 +73,13 @@ export declare var TaxesBreakdown$: StaticStructureSchema;
63
73
  export declare var TaxesBreakdownAmount$: StaticStructureSchema;
64
74
  export declare var TestEnvPreference$: StaticStructureSchema;
65
75
  export declare var TestEnvPreferenceInput$: StaticStructureSchema;
66
- export declare var ThrottlingException$: StaticErrorSchema;
67
76
  export declare var UntagResourceRequest$: StaticStructureSchema;
68
77
  export declare var UntagResourceResponse$: StaticStructureSchema;
69
78
  export declare var UpdateInvoiceUnitRequest$: StaticStructureSchema;
70
79
  export declare var UpdateInvoiceUnitResponse$: StaticStructureSchema;
71
80
  export declare var UpdateProcurementPortalPreferenceStatusRequest$: StaticStructureSchema;
72
81
  export declare var UpdateProcurementPortalPreferenceStatusResponse$: StaticStructureSchema;
73
- export declare var ValidationException$: StaticErrorSchema;
74
82
  export declare var ValidationExceptionField$: StaticStructureSchema;
75
- export declare var InvoicingServiceException$: StaticErrorSchema;
76
83
  export declare var BatchGetInvoiceProfile$: StaticOperationSchema;
77
84
  export declare var CreateInvoiceUnit$: StaticOperationSchema;
78
85
  export declare var CreateProcurementPortalPreference$: StaticOperationSchema;
@@ -1,14 +1,22 @@
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 InvoicingServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
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[];
7
16
  export declare var AmountBreakdown$: StaticStructureSchema;
8
17
  export declare var BatchGetInvoiceProfileRequest$: StaticStructureSchema;
9
18
  export declare var BatchGetInvoiceProfileResponse$: StaticStructureSchema;
10
19
  export declare var BillingPeriod$: StaticStructureSchema;
11
- export declare var ConflictException$: StaticErrorSchema;
12
20
  export declare var Contact$: StaticStructureSchema;
13
21
  export declare var CreateInvoiceUnitRequest$: StaticStructureSchema;
14
22
  export declare var CreateInvoiceUnitResponse$: StaticStructureSchema;
@@ -33,7 +41,6 @@ export declare var GetInvoiceUnitRequest$: StaticStructureSchema;
33
41
  export declare var GetInvoiceUnitResponse$: StaticStructureSchema;
34
42
  export declare var GetProcurementPortalPreferenceRequest$: StaticStructureSchema;
35
43
  export declare var GetProcurementPortalPreferenceResponse$: StaticStructureSchema;
36
- export declare var InternalServerException$: StaticErrorSchema;
37
44
  export declare var InvoiceCurrencyAmount$: StaticStructureSchema;
38
45
  export declare var InvoicePDF$: StaticStructureSchema;
39
46
  export declare var InvoiceProfile$: StaticStructureSchema;
@@ -57,9 +64,7 @@ export declare var PurchaseOrderDataSource$: StaticStructureSchema;
57
64
  export declare var PutProcurementPortalPreferenceRequest$: StaticStructureSchema;
58
65
  export declare var PutProcurementPortalPreferenceResponse$: StaticStructureSchema;
59
66
  export declare var ReceiverAddress$: StaticStructureSchema;
60
- export declare var ResourceNotFoundException$: StaticErrorSchema;
61
67
  export declare var ResourceTag$: StaticStructureSchema;
62
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
63
68
  export declare var SupplementalDocument$: StaticStructureSchema;
64
69
  export declare var TagResourceRequest$: StaticStructureSchema;
65
70
  export declare var TagResourceResponse$: StaticStructureSchema;
@@ -67,16 +72,13 @@ export declare var TaxesBreakdown$: StaticStructureSchema;
67
72
  export declare var TaxesBreakdownAmount$: StaticStructureSchema;
68
73
  export declare var TestEnvPreference$: StaticStructureSchema;
69
74
  export declare var TestEnvPreferenceInput$: StaticStructureSchema;
70
- export declare var ThrottlingException$: StaticErrorSchema;
71
75
  export declare var UntagResourceRequest$: StaticStructureSchema;
72
76
  export declare var UntagResourceResponse$: StaticStructureSchema;
73
77
  export declare var UpdateInvoiceUnitRequest$: StaticStructureSchema;
74
78
  export declare var UpdateInvoiceUnitResponse$: StaticStructureSchema;
75
79
  export declare var UpdateProcurementPortalPreferenceStatusRequest$: StaticStructureSchema;
76
80
  export declare var UpdateProcurementPortalPreferenceStatusResponse$: StaticStructureSchema;
77
- export declare var ValidationException$: StaticErrorSchema;
78
81
  export declare var ValidationExceptionField$: StaticStructureSchema;
79
- export declare var InvoicingServiceException$: StaticErrorSchema;
80
82
  export declare var BatchGetInvoiceProfile$: StaticOperationSchema;
81
83
  export declare var CreateInvoiceUnit$: StaticOperationSchema;
82
84
  export declare var CreateProcurementPortalPreference$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-invoicing",
3
3
  "description": "AWS SDK for JavaScript Invoicing Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.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-invoicing",
@@ -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.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
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.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.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.7",
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",