@aws-sdk/client-invoicing 3.1075.0 → 3.1076.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 CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultInvoicingHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { BatchGetInvoiceProfile$, CreateInvoiceUnit$, CreateProcurementPortalPreference$, DeleteInvoiceUnit$, DeleteProcurementPortalPreference$, GetInvoicePDF$, GetInvoiceUnit$, GetProcurementPortalPreference$, ListInvoiceSummaries$, ListInvoiceUnits$, ListProcurementPortalPreferences$, ListTagsForResource$, PutProcurementPortalPreference$, TagResource$, UntagResource$, UpdateInvoiceUnit$, UpdateProcurementPortalPreferenceStatus$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { InvoicingServiceException } = require("./models/InvoicingServiceException");
18
- exports.InvoicingServiceException = InvoicingServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultInvoicingHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "invoicing",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultInvoicingHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -29,6 +65,925 @@ const commonParams = {
29
65
  Region: { type: "builtInParams", name: "region" },
30
66
  };
31
67
 
68
+ var version = "3.1075.0";
69
+ var packageInfo = {
70
+ version: version};
71
+
72
+ const a = "isSet", b = { "ref": "Endpoint" }, c = { "authSchemes": [{ "name": "sigv4", "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, d = [{ "ref": "Region" }];
73
+ const _data = {
74
+ conditions: [
75
+ [a, [b]],
76
+ [a, d],
77
+ ["aws.partition", d, "PartitionResult"],
78
+ ["booleanEquals", [{ ref: "UseFIPS" }, true]]
79
+ ],
80
+ results: [
81
+ [-1],
82
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
83
+ [b, {}],
84
+ ["https://invoicing-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", c],
85
+ ["https://invoicing.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", c],
86
+ [-1, "Invalid Configuration: Missing Region"]
87
+ ]
88
+ };
89
+ const root = 2;
90
+ const r = 100_000_000;
91
+ const nodes = new Int32Array([
92
+ -1, 1, -1,
93
+ 0, 6, 3,
94
+ 1, 4, r + 5,
95
+ 2, 5, r + 5,
96
+ 3, r + 3, r + 4,
97
+ 3, r + 1, r + 2,
98
+ ]);
99
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
100
+
101
+ const cache = new EndpointCache({
102
+ size: 50,
103
+ params: ["Endpoint", "Region", "UseFIPS"],
104
+ });
105
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
106
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
107
+ endpointParams: endpointParams,
108
+ logger: context.logger,
109
+ }));
110
+ };
111
+ customEndpointFunctions.aws = awsEndpointFunctions;
112
+
113
+ class InvoicingServiceException extends ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, InvoicingServiceException.prototype);
117
+ }
118
+ }
119
+
120
+ class AccessDeniedException extends InvoicingServiceException {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ resourceName;
124
+ constructor(opts) {
125
+ super({
126
+ name: "AccessDeniedException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
+ this.resourceName = opts.resourceName;
132
+ }
133
+ }
134
+ class InternalServerException extends InvoicingServiceException {
135
+ name = "InternalServerException";
136
+ $fault = "server";
137
+ retryAfterSeconds;
138
+ constructor(opts) {
139
+ super({
140
+ name: "InternalServerException",
141
+ $fault: "server",
142
+ ...opts,
143
+ });
144
+ Object.setPrototypeOf(this, InternalServerException.prototype);
145
+ this.retryAfterSeconds = opts.retryAfterSeconds;
146
+ }
147
+ }
148
+ class ResourceNotFoundException extends InvoicingServiceException {
149
+ name = "ResourceNotFoundException";
150
+ $fault = "client";
151
+ resourceName;
152
+ constructor(opts) {
153
+ super({
154
+ name: "ResourceNotFoundException",
155
+ $fault: "client",
156
+ ...opts,
157
+ });
158
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
159
+ this.resourceName = opts.resourceName;
160
+ }
161
+ }
162
+ class ThrottlingException extends InvoicingServiceException {
163
+ name = "ThrottlingException";
164
+ $fault = "client";
165
+ constructor(opts) {
166
+ super({
167
+ name: "ThrottlingException",
168
+ $fault: "client",
169
+ ...opts,
170
+ });
171
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
172
+ }
173
+ }
174
+ class ValidationException extends InvoicingServiceException {
175
+ name = "ValidationException";
176
+ $fault = "client";
177
+ resourceName;
178
+ reason;
179
+ fieldList;
180
+ constructor(opts) {
181
+ super({
182
+ name: "ValidationException",
183
+ $fault: "client",
184
+ ...opts,
185
+ });
186
+ Object.setPrototypeOf(this, ValidationException.prototype);
187
+ this.resourceName = opts.resourceName;
188
+ this.reason = opts.reason;
189
+ this.fieldList = opts.fieldList;
190
+ }
191
+ }
192
+ class ConflictException extends InvoicingServiceException {
193
+ name = "ConflictException";
194
+ $fault = "client";
195
+ resourceId;
196
+ resourceType;
197
+ constructor(opts) {
198
+ super({
199
+ name: "ConflictException",
200
+ $fault: "client",
201
+ ...opts,
202
+ });
203
+ Object.setPrototypeOf(this, ConflictException.prototype);
204
+ this.resourceId = opts.resourceId;
205
+ this.resourceType = opts.resourceType;
206
+ }
207
+ }
208
+ class ServiceQuotaExceededException extends InvoicingServiceException {
209
+ name = "ServiceQuotaExceededException";
210
+ $fault = "client";
211
+ constructor(opts) {
212
+ super({
213
+ name: "ServiceQuotaExceededException",
214
+ $fault: "client",
215
+ ...opts,
216
+ });
217
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
218
+ }
219
+ }
220
+
221
+ const _A = "Amount";
222
+ const _AAI = "AwsAccountId";
223
+ const _AB = "AmountBreakdown";
224
+ const _ADE = "AccessDeniedException";
225
+ const _AI = "AccountIds";
226
+ const _AIc = "AccountId";
227
+ const _AL = "AddressLine1";
228
+ const _ALd = "AddressLine2";
229
+ const _ALdd = "AddressLine3";
230
+ const _AO = "AsOf";
231
+ const _Ac = "Accounts";
232
+ const _B = "Breakdown";
233
+ const _BCA = "BaseCurrencyAmount";
234
+ const _BD = "BuyerDomain";
235
+ const _BE = "BillingEntity";
236
+ const _BGIP = "BatchGetInvoiceProfile";
237
+ const _BGIPR = "BatchGetInvoiceProfileRequest";
238
+ const _BGIPRa = "BatchGetInvoiceProfileResponse";
239
+ const _BI = "BuyerIdentifier";
240
+ const _BP = "BillingPeriod";
241
+ const _BSA = "BillSourceAccounts";
242
+ const _BSATC = "BillSourceAccountsTotalCount";
243
+ const _BT = "BillType";
244
+ const _C = "Contact";
245
+ const _CC = "CurrencyCode";
246
+ const _CCo = "CountryCode";
247
+ const _CD = "CreateDate";
248
+ const _CE = "ConflictException";
249
+ const _CED = "CurrencyExchangeDetails";
250
+ const _CII = "CommercialInvoiceId";
251
+ const _CIU = "CreateInvoiceUnit";
252
+ const _CIUR = "CreateInvoiceUnitRequest";
253
+ const _CIURr = "CreateInvoiceUnitResponse";
254
+ const _CN = "CompanyName";
255
+ const _CPPP = "CreateProcurementPortalPreference";
256
+ const _CPPPR = "CreateProcurementPortalPreferenceRequest";
257
+ const _CPPPRr = "CreateProcurementPortalPreferenceResponse";
258
+ const _CT = "ClientToken";
259
+ const _CTM = "ConnectionTestingMethod";
260
+ const _Ci = "City";
261
+ const _Co = "Contacts";
262
+ const _D = "Discounts";
263
+ const _DB = "DiscountsBreakdown";
264
+ const _DBA = "DiscountsBreakdownAmount";
265
+ const _DBAL = "DiscountsBreakdownAmountList";
266
+ const _DD = "DueDate";
267
+ const _DI = "DateInterval";
268
+ const _DIU = "DeleteInvoiceUnit";
269
+ const _DIUR = "DeleteInvoiceUnitRequest";
270
+ const _DIURe = "DeleteInvoiceUnitResponse";
271
+ const _DIo = "DocumentId";
272
+ const _DOC = "DistrictOrCounty";
273
+ const _DPPP = "DeleteProcurementPortalPreference";
274
+ const _DPPPR = "DeleteProcurementPortalPreferenceRequest";
275
+ const _DPPPRe = "DeleteProcurementPortalPreferenceResponse";
276
+ const _DT = "DocumentType";
277
+ const _DU = "DocumentUrl";
278
+ const _DUED = "DocumentUrlExpirationDate";
279
+ const _De = "Description";
280
+ const _E = "Email";
281
+ const _ED = "EndDate";
282
+ const _EDAD = "EinvoiceDeliveryActivationDate";
283
+ const _EDAT = "EinvoiceDeliveryAttachmentTypes";
284
+ const _EDDT = "EinvoiceDeliveryDocumentTypes";
285
+ const _EDDTi = "EinvoiceDeliveryDocumentType";
286
+ const _EDE = "EinvoiceDeliveryEnabled";
287
+ const _EDP = "EinvoiceDeliveryPreference";
288
+ const _EDPS = "EinvoiceDeliveryPreferenceStatus";
289
+ const _EDPSR = "EinvoiceDeliveryPreferenceStatusReason";
290
+ const _EDS = "EinvoiceDeliveryStatus";
291
+ const _En = "Entity";
292
+ const _F = "Fees";
293
+ const _FB = "FeesBreakdown";
294
+ const _FBA = "FeesBreakdownAmount";
295
+ const _FBAL = "FeesBreakdownAmountList";
296
+ const _Fi = "Filters";
297
+ const _Fil = "Filter";
298
+ const _GIPDF = "GetInvoicePDF";
299
+ const _GIPDFR = "GetInvoicePDFRequest";
300
+ const _GIPDFRe = "GetInvoicePDFResponse";
301
+ const _GIU = "GetInvoiceUnit";
302
+ const _GIUR = "GetInvoiceUnitRequest";
303
+ const _GIURe = "GetInvoiceUnitResponse";
304
+ const _GPPP = "GetProcurementPortalPreference";
305
+ const _GPPPR = "GetProcurementPortalPreferenceRequest";
306
+ const _GPPPRe = "GetProcurementPortalPreferenceResponse";
307
+ const _I = "Issuer";
308
+ const _ICA = "InvoiceCurrencyAmount";
309
+ const _ID = "IssuedDate";
310
+ const _IE = "InvoicingEntity";
311
+ const _IF = "InvoiceFrequency";
312
+ const _II = "InvoiceId";
313
+ const _IP = "InvoiceProfile";
314
+ const _IPDF = "InvoicePDF";
315
+ const _IR = "InvoiceReceiver";
316
+ const _IRn = "InvoiceReceivers";
317
+ const _IS = "InvoiceSummary";
318
+ const _ISE = "InternalServerException";
319
+ const _ISF = "InvoiceSummariesFilter";
320
+ const _ISS = "InvoiceSummariesSelector";
321
+ const _ISn = "InvoiceSummaries";
322
+ const _IT = "InvoiceType";
323
+ const _IU = "InvoiceUnit";
324
+ const _IUA = "InvoiceUnitArn";
325
+ const _IUAn = "InvoiceUnitArns";
326
+ const _IUR = "InvoiceUnitRule";
327
+ const _IUn = "InvoiceUnits";
328
+ const _K = "Key";
329
+ const _LA = "LinkedAccounts";
330
+ const _LIS = "ListInvoiceSummaries";
331
+ const _LISR = "ListInvoiceSummariesRequest";
332
+ const _LISRi = "ListInvoiceSummariesResponse";
333
+ const _LIU = "ListInvoiceUnits";
334
+ const _LIUR = "ListInvoiceUnitsRequest";
335
+ const _LIURi = "ListInvoiceUnitsResponse";
336
+ const _LM = "LastModified";
337
+ const _LPPP = "ListProcurementPortalPreferences";
338
+ const _LPPPR = "ListProcurementPortalPreferencesRequest";
339
+ const _LPPPRi = "ListProcurementPortalPreferencesResponse";
340
+ const _LTFR = "ListTagsForResource";
341
+ const _LTFRR = "ListTagsForResourceRequest";
342
+ const _LTFRRi = "ListTagsForResourceResponse";
343
+ const _LUD = "LastUpdateDate";
344
+ const _M = "Month";
345
+ const _MR = "MaxResults";
346
+ const _N = "Name";
347
+ const _NT = "NextToken";
348
+ const _Na = "Names";
349
+ const _OII = "OriginalInvoiceId";
350
+ const _P = "Profiles";
351
+ const _PC = "PostalCode";
352
+ const _PCA = "PaymentCurrencyAmount";
353
+ const _PL = "ProfileList";
354
+ const _PODS = "PurchaseOrderDataSources";
355
+ const _PODST = "PurchaseOrderDataSourceType";
356
+ const _PODSu = "PurchaseOrderDataSource";
357
+ const _PON = "PurchaseOrderNumber";
358
+ const _PORE = "PurchaseOrderRetrievalEnabled";
359
+ const _POREu = "PurchaseOrderRetrievalEndpoint";
360
+ const _PORPS = "PurchaseOrderRetrievalPreferenceStatus";
361
+ const _PORPSR = "PurchaseOrderRetrievalPreferenceStatusReason";
362
+ const _PPIE = "ProcurementPortalInstanceEndpoint";
363
+ const _PPN = "ProcurementPortalName";
364
+ const _PPP = "ProcurementPortalPreference";
365
+ const _PPPA = "ProcurementPortalPreferenceArn";
366
+ const _PPPP = "PutProcurementPortalPreference";
367
+ const _PPPPR = "PutProcurementPortalPreferenceRequest";
368
+ const _PPPPRu = "PutProcurementPortalPreferenceResponse";
369
+ const _PPPS = "ProcurementPortalPreferenceSelector";
370
+ const _PPPSr = "ProcurementPortalPreferenceSummary";
371
+ const _PPPSro = "ProcurementPortalPreferenceSummaries";
372
+ const _PPPr = "ProcurementPortalPreferences";
373
+ const _PPSS = "ProcurementPortalSharedSecret";
374
+ const _Pr = "Protocol";
375
+ const _R = "Rule";
376
+ const _RA = "Retry-After";
377
+ const _RAe = "ReceiverAddress";
378
+ const _RAes = "ResourceArn";
379
+ const _RE = "ReceiverEmail";
380
+ const _RN = "ReceiverName";
381
+ const _RNFE = "ResourceNotFoundException";
382
+ const _RR = "ReceiverRole";
383
+ const _RT = "ResourceTags";
384
+ const _RTK = "ResourceTagKeys";
385
+ const _RTL = "ResourceTagList";
386
+ const _RTe = "ResourceType";
387
+ const _RTes = "ResourceTag";
388
+ const _Ra = "Rate";
389
+ const _S = "Selector";
390
+ const _SBSWS = "SensitiveBasicStringWithoutSpace";
391
+ const _SCC = "SourceCurrencyCode";
392
+ const _SD = "SupplierDomain";
393
+ const _SDt = "StartDate";
394
+ const _SDu = "SupplementalDocuments";
395
+ const _SDup = "SupplementalDocument";
396
+ const _SI = "SupplierIdentifier";
397
+ const _SOR = "SellerOfRecords";
398
+ const _SORt = "StateOrRegion";
399
+ const _SQEE = "ServiceQuotaExceededException";
400
+ const _STA = "SubTotalAmount";
401
+ const _T = "Taxes";
402
+ const _TA = "TotalAmount";
403
+ const _TABT = "TotalAmountBeforeTax";
404
+ const _TAS = "TaxAuthorityStatus";
405
+ const _TB = "TaxesBreakdown";
406
+ const _TBA = "TaxesBreakdownAmount";
407
+ const _TBAL = "TaxesBreakdownAmountList";
408
+ const _TCA = "TaxCurrencyAmount";
409
+ const _TCC = "TargetCurrencyCode";
410
+ const _TE = "ThrottlingException";
411
+ const _TEP = "TestEnvPreference";
412
+ const _TEPI = "TestEnvPreferenceInput";
413
+ const _TI = "TimeInterval";
414
+ const _TID = "TaxInheritanceDisabled";
415
+ const _TR = "TagResource";
416
+ const _TRN = "TaxRegistrationNumber";
417
+ const _TRR = "TagResourceRequest";
418
+ const _TRRa = "TagResourceResponse";
419
+ const _UIU = "UpdateInvoiceUnit";
420
+ const _UIUR = "UpdateInvoiceUnitRequest";
421
+ const _UIURp = "UpdateInvoiceUnitResponse";
422
+ const _UPPPS = "UpdateProcurementPortalPreferenceStatus";
423
+ const _UPPPSR = "UpdateProcurementPortalPreferenceStatusRequest";
424
+ const _UPPPSRp = "UpdateProcurementPortalPreferenceStatusResponse";
425
+ const _UR = "UntagResource";
426
+ const _URR = "UntagResourceRequest";
427
+ const _URRn = "UntagResourceResponse";
428
+ const _V = "Value";
429
+ const _VE = "ValidationException";
430
+ const _VEF = "ValidationExceptionField";
431
+ const _VEFL = "ValidationExceptionFieldList";
432
+ const _Ve = "Version";
433
+ const _Y = "Year";
434
+ const _aQE = "awsQueryError";
435
+ const _c = "client";
436
+ const _e = "error";
437
+ const _fL = "fieldList";
438
+ const _hE = "httpError";
439
+ const _hH = "httpHeader";
440
+ const _m = "message";
441
+ const _n = "name";
442
+ const _r = "reason";
443
+ const _rAS = "retryAfterSeconds";
444
+ const _rI = "resourceId";
445
+ const _rN = "resourceName";
446
+ const _rT = "resourceType";
447
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.invoicing";
448
+ const _se = "server";
449
+ const n0 = "com.amazonaws.invoicing";
450
+ const _s_registry = TypeRegistry.for(_s);
451
+ var InvoicingServiceException$ = [-3, _s, "InvoicingServiceException", 0, [], []];
452
+ _s_registry.registerError(InvoicingServiceException$, InvoicingServiceException);
453
+ const n0_registry = TypeRegistry.for(n0);
454
+ var AccessDeniedException$ = [-3, n0, _ADE,
455
+ { [_aQE]: [`InvoicingAccessDenied`, 403], [_e]: _c, [_hE]: 403 },
456
+ [_m, _rN],
457
+ [0, 0]
458
+ ];
459
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
460
+ var ConflictException$ = [-3, n0, _CE,
461
+ { [_aQE]: [`InvoicingConflict`, 409], [_e]: _c, [_hE]: 409 },
462
+ [_m, _rI, _rT],
463
+ [0, 0, 0]
464
+ ];
465
+ n0_registry.registerError(ConflictException$, ConflictException);
466
+ var InternalServerException$ = [-3, n0, _ISE,
467
+ { [_aQE]: [`InvoicingInternalServer`, 500], [_e]: _se, [_hE]: 500 },
468
+ [_rAS, _m],
469
+ [[1, { [_hH]: _RA }], 0]
470
+ ];
471
+ n0_registry.registerError(InternalServerException$, InternalServerException);
472
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
473
+ { [_aQE]: [`InvoicingResourceNotFound`, 404], [_e]: _c, [_hE]: 404 },
474
+ [_m, _rN],
475
+ [0, 0]
476
+ ];
477
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
478
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
479
+ { [_aQE]: [`InvoicingServiceQuotaExceeded`, 402], [_e]: _c, [_hE]: 402 },
480
+ [_m],
481
+ [0], 1
482
+ ];
483
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
484
+ var ThrottlingException$ = [-3, n0, _TE,
485
+ { [_aQE]: [`InvoicingThrottling`, 429], [_e]: _c, [_hE]: 429 },
486
+ [_m],
487
+ [0]
488
+ ];
489
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
490
+ var ValidationException$ = [-3, n0, _VE,
491
+ { [_aQE]: [`InvoicingValidation`, 400], [_e]: _c, [_hE]: 400 },
492
+ [_m, _rN, _r, _fL],
493
+ [0, 0, 0, () => ValidationExceptionFieldList]
494
+ ];
495
+ n0_registry.registerError(ValidationException$, ValidationException);
496
+ const errorTypeRegistries = [
497
+ _s_registry,
498
+ n0_registry,
499
+ ];
500
+ var SensitiveBasicStringWithoutSpace = [0, n0, _SBSWS, 8, 0];
501
+ var AmountBreakdown$ = [3, n0, _AB,
502
+ 0,
503
+ [_STA, _D, _T, _F],
504
+ [0, () => DiscountsBreakdown$, () => TaxesBreakdown$, () => FeesBreakdown$]
505
+ ];
506
+ var BatchGetInvoiceProfileRequest$ = [3, n0, _BGIPR,
507
+ 0,
508
+ [_AI],
509
+ [64 | 0], 1
510
+ ];
511
+ var BatchGetInvoiceProfileResponse$ = [3, n0, _BGIPRa,
512
+ 0,
513
+ [_P],
514
+ [[() => ProfileList, 0]]
515
+ ];
516
+ var BillingPeriod$ = [3, n0, _BP,
517
+ 0,
518
+ [_M, _Y],
519
+ [1, 1], 2
520
+ ];
521
+ var Contact$ = [3, n0, _C,
522
+ 8,
523
+ [_N, _E],
524
+ [0, 0]
525
+ ];
526
+ var CreateInvoiceUnitRequest$ = [3, n0, _CIUR,
527
+ 0,
528
+ [_N, _IR, _R, _De, _TID, _RT, _CT],
529
+ [0, 0, () => InvoiceUnitRule$, 0, 2, () => ResourceTagList, [0, 4]], 3
530
+ ];
531
+ var CreateInvoiceUnitResponse$ = [3, n0, _CIURr,
532
+ 0,
533
+ [_IUA],
534
+ [0]
535
+ ];
536
+ var CreateProcurementPortalPreferenceRequest$ = [3, n0, _CPPPR,
537
+ 0,
538
+ [_PPN, _BD, _BI, _SD, _SI, _EDE, _PORE, _Co, _S, _PPSS, _PPIE, _TEP, _EDP, _RT, _CT],
539
+ [0, 0, 0, 0, 0, 2, 2, [() => Contacts, 0], () => ProcurementPortalPreferenceSelector$, [() => SensitiveBasicStringWithoutSpace, 0], 0, () => TestEnvPreferenceInput$, () => EinvoiceDeliveryPreference$, () => ResourceTagList, [0, 4]], 8
540
+ ];
541
+ var CreateProcurementPortalPreferenceResponse$ = [3, n0, _CPPPRr,
542
+ 0,
543
+ [_PPPA],
544
+ [0], 1
545
+ ];
546
+ var CurrencyExchangeDetails$ = [3, n0, _CED,
547
+ 0,
548
+ [_SCC, _TCC, _Ra],
549
+ [0, 0, 0]
550
+ ];
551
+ var DateInterval$ = [3, n0, _DI,
552
+ 0,
553
+ [_SDt, _ED],
554
+ [4, 4], 2
555
+ ];
556
+ var DeleteInvoiceUnitRequest$ = [3, n0, _DIUR,
557
+ 0,
558
+ [_IUA, _CT],
559
+ [0, [0, 4]], 1
560
+ ];
561
+ var DeleteInvoiceUnitResponse$ = [3, n0, _DIURe,
562
+ 0,
563
+ [_IUA],
564
+ [0]
565
+ ];
566
+ var DeleteProcurementPortalPreferenceRequest$ = [3, n0, _DPPPR,
567
+ 0,
568
+ [_PPPA, _CT],
569
+ [0, [0, 4]], 1
570
+ ];
571
+ var DeleteProcurementPortalPreferenceResponse$ = [3, n0, _DPPPRe,
572
+ 0,
573
+ [_PPPA],
574
+ [0], 1
575
+ ];
576
+ var DiscountsBreakdown$ = [3, n0, _DB,
577
+ 0,
578
+ [_B, _TA],
579
+ [() => DiscountsBreakdownAmountList, 0]
580
+ ];
581
+ var DiscountsBreakdownAmount$ = [3, n0, _DBA,
582
+ 0,
583
+ [_De, _A, _Ra],
584
+ [0, 0, 0]
585
+ ];
586
+ var EinvoiceDeliveryPreference$ = [3, n0, _EDP,
587
+ 0,
588
+ [_EDDT, _Pr, _PODS, _CTM, _EDAD, _EDAT],
589
+ [64 | 0, 0, () => PurchaseOrderDataSources, 0, 4, 64 | 0], 5
590
+ ];
591
+ var Entity$ = [3, n0, _En,
592
+ 0,
593
+ [_IE, _BE],
594
+ [0, 0]
595
+ ];
596
+ var FeesBreakdown$ = [3, n0, _FB,
597
+ 0,
598
+ [_B, _TA],
599
+ [() => FeesBreakdownAmountList, 0]
600
+ ];
601
+ var FeesBreakdownAmount$ = [3, n0, _FBA,
602
+ 0,
603
+ [_De, _A, _Ra],
604
+ [0, 0, 0]
605
+ ];
606
+ var Filters$ = [3, n0, _Fi,
607
+ 0,
608
+ [_Na, _IRn, _Ac, _BSA],
609
+ [64 | 0, 64 | 0, 64 | 0, 64 | 0]
610
+ ];
611
+ var GetInvoicePDFRequest$ = [3, n0, _GIPDFR,
612
+ 0,
613
+ [_II],
614
+ [0], 1
615
+ ];
616
+ var GetInvoicePDFResponse$ = [3, n0, _GIPDFRe,
617
+ 0,
618
+ [_IPDF],
619
+ [() => InvoicePDF$]
620
+ ];
621
+ var GetInvoiceUnitRequest$ = [3, n0, _GIUR,
622
+ 0,
623
+ [_IUA, _AO],
624
+ [0, 4], 1
625
+ ];
626
+ var GetInvoiceUnitResponse$ = [3, n0, _GIURe,
627
+ 0,
628
+ [_IUA, _IR, _N, _De, _TID, _R, _LM],
629
+ [0, 0, 0, 0, 2, () => InvoiceUnitRule$, 4]
630
+ ];
631
+ var GetProcurementPortalPreferenceRequest$ = [3, n0, _GPPPR,
632
+ 0,
633
+ [_PPPA],
634
+ [0], 1
635
+ ];
636
+ var GetProcurementPortalPreferenceResponse$ = [3, n0, _GPPPRe,
637
+ 0,
638
+ [_PPP],
639
+ [[() => ProcurementPortalPreference$, 0]], 1
640
+ ];
641
+ var InvoiceCurrencyAmount$ = [3, n0, _ICA,
642
+ 0,
643
+ [_TA, _TABT, _CC, _AB, _CED],
644
+ [0, 0, 0, () => AmountBreakdown$, () => CurrencyExchangeDetails$]
645
+ ];
646
+ var InvoicePDF$ = [3, n0, _IPDF,
647
+ 0,
648
+ [_II, _DU, _DUED, _SDu],
649
+ [0, 0, 4, () => SupplementalDocuments]
650
+ ];
651
+ var InvoiceProfile$ = [3, n0, _IP,
652
+ 0,
653
+ [_AIc, _RN, _RAe, _RE, _I, _TRN],
654
+ [0, 0, [() => ReceiverAddress$, 0], [() => SensitiveBasicStringWithoutSpace, 0], 0, [() => SensitiveBasicStringWithoutSpace, 0]]
655
+ ];
656
+ var InvoiceSummariesFilter$ = [3, n0, _ISF,
657
+ 0,
658
+ [_TI, _BP, _IE, _RR],
659
+ [() => DateInterval$, () => BillingPeriod$, 0, 0]
660
+ ];
661
+ var InvoiceSummariesSelector$ = [3, n0, _ISS,
662
+ 0,
663
+ [_RTe, _V],
664
+ [0, 0], 2
665
+ ];
666
+ var InvoiceSummary$ = [3, n0, _IS,
667
+ 0,
668
+ [_AIc, _II, _ID, _DD, _BSA, _BSATC, _RR, _En, _BP, _IF, _BT, _IT, _CII, _OII, _PON, _EDS, _TAS, _BCA, _TCA, _PCA],
669
+ [0, 0, 4, 4, 64 | 0, 1, 0, () => Entity$, () => BillingPeriod$, 0, 0, 0, 0, 0, 0, 0, 0, () => InvoiceCurrencyAmount$, () => InvoiceCurrencyAmount$, () => InvoiceCurrencyAmount$]
670
+ ];
671
+ var InvoiceUnit$ = [3, n0, _IU,
672
+ 0,
673
+ [_IUA, _IR, _N, _De, _TID, _R, _LM],
674
+ [0, 0, 0, 0, 2, () => InvoiceUnitRule$, 4]
675
+ ];
676
+ var InvoiceUnitRule$ = [3, n0, _IUR,
677
+ 0,
678
+ [_LA, _BSA],
679
+ [64 | 0, 64 | 0]
680
+ ];
681
+ var ListInvoiceSummariesRequest$ = [3, n0, _LISR,
682
+ 0,
683
+ [_S, _Fil, _NT, _MR],
684
+ [() => InvoiceSummariesSelector$, () => InvoiceSummariesFilter$, 0, 1], 1
685
+ ];
686
+ var ListInvoiceSummariesResponse$ = [3, n0, _LISRi,
687
+ 0,
688
+ [_ISn, _NT],
689
+ [() => InvoiceSummaries, 0], 1
690
+ ];
691
+ var ListInvoiceUnitsRequest$ = [3, n0, _LIUR,
692
+ 0,
693
+ [_Fi, _NT, _MR, _AO],
694
+ [() => Filters$, 0, 1, 4]
695
+ ];
696
+ var ListInvoiceUnitsResponse$ = [3, n0, _LIURi,
697
+ 0,
698
+ [_IUn, _NT],
699
+ [() => InvoiceUnits, 0]
700
+ ];
701
+ var ListProcurementPortalPreferencesRequest$ = [3, n0, _LPPPR,
702
+ 0,
703
+ [_NT, _MR],
704
+ [0, 1]
705
+ ];
706
+ var ListProcurementPortalPreferencesResponse$ = [3, n0, _LPPPRi,
707
+ 0,
708
+ [_PPPr, _NT],
709
+ [() => ProcurementPortalPreferenceSummaries, 0]
710
+ ];
711
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
712
+ 0,
713
+ [_RAes],
714
+ [0], 1
715
+ ];
716
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
717
+ 0,
718
+ [_RT],
719
+ [() => ResourceTagList]
720
+ ];
721
+ var ProcurementPortalPreference$ = [3, n0, _PPP,
722
+ 0,
723
+ [_AAI, _PPPA, _PPN, _BD, _BI, _SD, _SI, _EDE, _PORE, _Ve, _CD, _LUD, _S, _PPSS, _PPIE, _POREu, _TEP, _EDP, _Co, _EDPS, _EDPSR, _PORPS, _PORPSR],
724
+ [0, 0, 0, 0, 0, 0, 0, 2, 2, 1, 4, 4, () => ProcurementPortalPreferenceSelector$, 0, 0, 0, () => TestEnvPreference$, () => EinvoiceDeliveryPreference$, [() => Contacts, 0], 0, 0, 0, 0], 12
725
+ ];
726
+ var ProcurementPortalPreferenceSelector$ = [3, n0, _PPPS,
727
+ 0,
728
+ [_IUAn, _SOR],
729
+ [64 | 0, 64 | 0]
730
+ ];
731
+ var ProcurementPortalPreferenceSummary$ = [3, n0, _PPPSr,
732
+ 0,
733
+ [_AAI, _PPPA, _PPN, _BD, _BI, _SD, _SI, _EDE, _PORE, _Ve, _CD, _LUD, _S, _EDPS, _EDPSR, _PORPS, _PORPSR],
734
+ [0, 0, 0, 0, 0, 0, 0, 2, 2, 1, 4, 4, () => ProcurementPortalPreferenceSelector$, 0, 0, 0, 0], 12
735
+ ];
736
+ var PurchaseOrderDataSource$ = [3, n0, _PODSu,
737
+ 0,
738
+ [_EDDTi, _PODST],
739
+ [0, 0]
740
+ ];
741
+ var PutProcurementPortalPreferenceRequest$ = [3, n0, _PPPPR,
742
+ 0,
743
+ [_PPPA, _EDE, _PORE, _Co, _S, _PPSS, _PPIE, _TEP, _EDP, _CT],
744
+ [0, 2, 2, [() => Contacts, 0], () => ProcurementPortalPreferenceSelector$, [() => SensitiveBasicStringWithoutSpace, 0], 0, () => TestEnvPreferenceInput$, () => EinvoiceDeliveryPreference$, [0, 4]], 4
745
+ ];
746
+ var PutProcurementPortalPreferenceResponse$ = [3, n0, _PPPPRu,
747
+ 0,
748
+ [_PPPA],
749
+ [0], 1
750
+ ];
751
+ var ReceiverAddress$ = [3, n0, _RAe,
752
+ 8,
753
+ [_AL, _ALd, _ALdd, _DOC, _Ci, _SORt, _CCo, _CN, _PC],
754
+ [0, 0, 0, 0, 0, 0, 0, 0, 0]
755
+ ];
756
+ var ResourceTag$ = [3, n0, _RTes,
757
+ 0,
758
+ [_K, _V],
759
+ [0, 0], 2
760
+ ];
761
+ var SupplementalDocument$ = [3, n0, _SDup,
762
+ 0,
763
+ [_DT, _DIo, _DU, _DUED],
764
+ [0, 0, 0, 4]
765
+ ];
766
+ var TagResourceRequest$ = [3, n0, _TRR,
767
+ 0,
768
+ [_RAes, _RT],
769
+ [0, () => ResourceTagList], 2
770
+ ];
771
+ var TagResourceResponse$ = [3, n0, _TRRa,
772
+ 0,
773
+ [],
774
+ []
775
+ ];
776
+ var TaxesBreakdown$ = [3, n0, _TB,
777
+ 0,
778
+ [_B, _TA],
779
+ [() => TaxesBreakdownAmountList, 0]
780
+ ];
781
+ var TaxesBreakdownAmount$ = [3, n0, _TBA,
782
+ 0,
783
+ [_De, _A, _Ra],
784
+ [0, 0, 0]
785
+ ];
786
+ var TestEnvPreference$ = [3, n0, _TEP,
787
+ 0,
788
+ [_BD, _BI, _SD, _SI, _PPSS, _PPIE, _POREu],
789
+ [0, 0, 0, 0, 0, 0, 0], 4
790
+ ];
791
+ var TestEnvPreferenceInput$ = [3, n0, _TEPI,
792
+ 0,
793
+ [_BD, _BI, _SD, _SI, _PPSS, _PPIE],
794
+ [0, 0, 0, 0, 0, 0], 4
795
+ ];
796
+ var UntagResourceRequest$ = [3, n0, _URR,
797
+ 0,
798
+ [_RAes, _RTK],
799
+ [0, 64 | 0], 2
800
+ ];
801
+ var UntagResourceResponse$ = [3, n0, _URRn,
802
+ 0,
803
+ [],
804
+ []
805
+ ];
806
+ var UpdateInvoiceUnitRequest$ = [3, n0, _UIUR,
807
+ 0,
808
+ [_IUA, _De, _TID, _R, _CT],
809
+ [0, 0, 2, () => InvoiceUnitRule$, [0, 4]], 1
810
+ ];
811
+ var UpdateInvoiceUnitResponse$ = [3, n0, _UIURp,
812
+ 0,
813
+ [_IUA],
814
+ [0]
815
+ ];
816
+ var UpdateProcurementPortalPreferenceStatusRequest$ = [3, n0, _UPPPSR,
817
+ 0,
818
+ [_PPPA, _EDPS, _EDPSR, _PORPS, _PORPSR, _CT],
819
+ [0, 0, 0, 0, 0, [0, 4]], 1
820
+ ];
821
+ var UpdateProcurementPortalPreferenceStatusResponse$ = [3, n0, _UPPPSRp,
822
+ 0,
823
+ [_PPPA],
824
+ [0], 1
825
+ ];
826
+ var ValidationExceptionField$ = [3, n0, _VEF,
827
+ 0,
828
+ [_n, _m],
829
+ [0, 0], 2
830
+ ];
831
+ var Contacts = [1, n0, _Co,
832
+ 0, [() => Contact$,
833
+ 0]
834
+ ];
835
+ var DiscountsBreakdownAmountList = [1, n0, _DBAL,
836
+ 0, () => DiscountsBreakdownAmount$
837
+ ];
838
+ var FeesBreakdownAmountList = [1, n0, _FBAL,
839
+ 0, () => FeesBreakdownAmount$
840
+ ];
841
+ var InvoiceSummaries = [1, n0, _ISn,
842
+ 0, () => InvoiceSummary$
843
+ ];
844
+ var InvoiceUnits = [1, n0, _IUn,
845
+ 0, () => InvoiceUnit$
846
+ ];
847
+ var ProcurementPortalPreferenceSummaries = [1, n0, _PPPSro,
848
+ 0, () => ProcurementPortalPreferenceSummary$
849
+ ];
850
+ var ProfileList = [1, n0, _PL,
851
+ 0, [() => InvoiceProfile$,
852
+ 0]
853
+ ];
854
+ var PurchaseOrderDataSources = [1, n0, _PODS,
855
+ 0, () => PurchaseOrderDataSource$
856
+ ];
857
+ var ResourceTagList = [1, n0, _RTL,
858
+ 0, () => ResourceTag$
859
+ ];
860
+ var SupplementalDocuments = [1, n0, _SDu,
861
+ 0, () => SupplementalDocument$
862
+ ];
863
+ var TaxesBreakdownAmountList = [1, n0, _TBAL,
864
+ 0, () => TaxesBreakdownAmount$
865
+ ];
866
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
867
+ 0, () => ValidationExceptionField$
868
+ ];
869
+ var BatchGetInvoiceProfile$ = [9, n0, _BGIP,
870
+ 0, () => BatchGetInvoiceProfileRequest$, () => BatchGetInvoiceProfileResponse$
871
+ ];
872
+ var CreateInvoiceUnit$ = [9, n0, _CIU,
873
+ 2, () => CreateInvoiceUnitRequest$, () => CreateInvoiceUnitResponse$
874
+ ];
875
+ var CreateProcurementPortalPreference$ = [9, n0, _CPPP,
876
+ 2, () => CreateProcurementPortalPreferenceRequest$, () => CreateProcurementPortalPreferenceResponse$
877
+ ];
878
+ var DeleteInvoiceUnit$ = [9, n0, _DIU,
879
+ 2, () => DeleteInvoiceUnitRequest$, () => DeleteInvoiceUnitResponse$
880
+ ];
881
+ var DeleteProcurementPortalPreference$ = [9, n0, _DPPP,
882
+ 2, () => DeleteProcurementPortalPreferenceRequest$, () => DeleteProcurementPortalPreferenceResponse$
883
+ ];
884
+ var GetInvoicePDF$ = [9, n0, _GIPDF,
885
+ 0, () => GetInvoicePDFRequest$, () => GetInvoicePDFResponse$
886
+ ];
887
+ var GetInvoiceUnit$ = [9, n0, _GIU,
888
+ 0, () => GetInvoiceUnitRequest$, () => GetInvoiceUnitResponse$
889
+ ];
890
+ var GetProcurementPortalPreference$ = [9, n0, _GPPP,
891
+ 0, () => GetProcurementPortalPreferenceRequest$, () => GetProcurementPortalPreferenceResponse$
892
+ ];
893
+ var ListInvoiceSummaries$ = [9, n0, _LIS,
894
+ 0, () => ListInvoiceSummariesRequest$, () => ListInvoiceSummariesResponse$
895
+ ];
896
+ var ListInvoiceUnits$ = [9, n0, _LIU,
897
+ 0, () => ListInvoiceUnitsRequest$, () => ListInvoiceUnitsResponse$
898
+ ];
899
+ var ListProcurementPortalPreferences$ = [9, n0, _LPPP,
900
+ 0, () => ListProcurementPortalPreferencesRequest$, () => ListProcurementPortalPreferencesResponse$
901
+ ];
902
+ var ListTagsForResource$ = [9, n0, _LTFR,
903
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
904
+ ];
905
+ var PutProcurementPortalPreference$ = [9, n0, _PPPP,
906
+ 2, () => PutProcurementPortalPreferenceRequest$, () => PutProcurementPortalPreferenceResponse$
907
+ ];
908
+ var TagResource$ = [9, n0, _TR,
909
+ 0, () => TagResourceRequest$, () => TagResourceResponse$
910
+ ];
911
+ var UntagResource$ = [9, n0, _UR,
912
+ 0, () => UntagResourceRequest$, () => UntagResourceResponse$
913
+ ];
914
+ var UpdateInvoiceUnit$ = [9, n0, _UIU,
915
+ 2, () => UpdateInvoiceUnitRequest$, () => UpdateInvoiceUnitResponse$
916
+ ];
917
+ var UpdateProcurementPortalPreferenceStatus$ = [9, n0, _UPPPS,
918
+ 2, () => UpdateProcurementPortalPreferenceStatusRequest$, () => UpdateProcurementPortalPreferenceStatusResponse$
919
+ ];
920
+
921
+ const getRuntimeConfig$1 = (config) => {
922
+ return {
923
+ apiVersion: "2024-12-01",
924
+ base64Decoder: config?.base64Decoder ?? fromBase64,
925
+ base64Encoder: config?.base64Encoder ?? toBase64,
926
+ disableHostPrefix: config?.disableHostPrefix ?? false,
927
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
928
+ extensions: config?.extensions ?? [],
929
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultInvoicingHttpAuthSchemeProvider,
930
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
931
+ {
932
+ schemeId: "aws.auth#sigv4",
933
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
934
+ signer: new AwsSdkSigV4Signer(),
935
+ },
936
+ ],
937
+ logger: config?.logger ?? new NoOpLogger(),
938
+ protocol: config?.protocol ?? AwsJson1_0Protocol,
939
+ protocolSettings: config?.protocolSettings ?? {
940
+ defaultNamespace: "com.amazonaws.invoicing",
941
+ errorTypeRegistries,
942
+ version: "2024-12-01",
943
+ serviceTarget: "Invoicing",
944
+ },
945
+ serviceId: config?.serviceId ?? "Invoicing",
946
+ urlParser: config?.urlParser ?? parseUrl,
947
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
948
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
949
+ };
950
+ };
951
+
952
+ const getRuntimeConfig = (config) => {
953
+ emitWarningIfUnsupportedVersion(process.version);
954
+ const defaultsMode = resolveDefaultsModeConfig(config);
955
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
956
+ const clientSharedValues = getRuntimeConfig$1(config);
957
+ emitWarningIfUnsupportedVersion$1(process.version);
958
+ const loaderConfig = {
959
+ profile: config?.profile,
960
+ logger: clientSharedValues.logger,
961
+ };
962
+ return {
963
+ ...clientSharedValues,
964
+ ...config,
965
+ runtime: "node",
966
+ defaultsMode,
967
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
968
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
969
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
970
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
971
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
972
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
973
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
974
+ retryMode: config?.retryMode ??
975
+ loadConfig({
976
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
977
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
978
+ }, config),
979
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
980
+ streamCollector: config?.streamCollector ?? streamCollector,
981
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
982
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
983
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
984
+ };
985
+ };
986
+
32
987
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
33
988
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
34
989
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -445,44 +1400,144 @@ const ListInvoiceSummariesResourceType = {
445
1400
  INVOICE_ID: "INVOICE_ID",
446
1401
  };
447
1402
 
1403
+ exports.AccessDeniedException = AccessDeniedException;
1404
+ exports.AccessDeniedException$ = AccessDeniedException$;
1405
+ exports.AmountBreakdown$ = AmountBreakdown$;
1406
+ exports.BatchGetInvoiceProfile$ = BatchGetInvoiceProfile$;
448
1407
  exports.BatchGetInvoiceProfileCommand = BatchGetInvoiceProfileCommand;
1408
+ exports.BatchGetInvoiceProfileRequest$ = BatchGetInvoiceProfileRequest$;
1409
+ exports.BatchGetInvoiceProfileResponse$ = BatchGetInvoiceProfileResponse$;
449
1410
  exports.BillType = BillType;
450
1411
  exports.BillingEntity = BillingEntity;
1412
+ exports.BillingPeriod$ = BillingPeriod$;
451
1413
  exports.BuyerDomain = BuyerDomain;
1414
+ exports.ConflictException = ConflictException;
1415
+ exports.ConflictException$ = ConflictException$;
452
1416
  exports.ConnectionTestingMethod = ConnectionTestingMethod;
1417
+ exports.Contact$ = Contact$;
1418
+ exports.CreateInvoiceUnit$ = CreateInvoiceUnit$;
453
1419
  exports.CreateInvoiceUnitCommand = CreateInvoiceUnitCommand;
1420
+ exports.CreateInvoiceUnitRequest$ = CreateInvoiceUnitRequest$;
1421
+ exports.CreateInvoiceUnitResponse$ = CreateInvoiceUnitResponse$;
1422
+ exports.CreateProcurementPortalPreference$ = CreateProcurementPortalPreference$;
454
1423
  exports.CreateProcurementPortalPreferenceCommand = CreateProcurementPortalPreferenceCommand;
1424
+ exports.CreateProcurementPortalPreferenceRequest$ = CreateProcurementPortalPreferenceRequest$;
1425
+ exports.CreateProcurementPortalPreferenceResponse$ = CreateProcurementPortalPreferenceResponse$;
1426
+ exports.CurrencyExchangeDetails$ = CurrencyExchangeDetails$;
1427
+ exports.DateInterval$ = DateInterval$;
1428
+ exports.DeleteInvoiceUnit$ = DeleteInvoiceUnit$;
455
1429
  exports.DeleteInvoiceUnitCommand = DeleteInvoiceUnitCommand;
1430
+ exports.DeleteInvoiceUnitRequest$ = DeleteInvoiceUnitRequest$;
1431
+ exports.DeleteInvoiceUnitResponse$ = DeleteInvoiceUnitResponse$;
1432
+ exports.DeleteProcurementPortalPreference$ = DeleteProcurementPortalPreference$;
456
1433
  exports.DeleteProcurementPortalPreferenceCommand = DeleteProcurementPortalPreferenceCommand;
1434
+ exports.DeleteProcurementPortalPreferenceRequest$ = DeleteProcurementPortalPreferenceRequest$;
1435
+ exports.DeleteProcurementPortalPreferenceResponse$ = DeleteProcurementPortalPreferenceResponse$;
1436
+ exports.DiscountsBreakdown$ = DiscountsBreakdown$;
1437
+ exports.DiscountsBreakdownAmount$ = DiscountsBreakdownAmount$;
457
1438
  exports.EinvoiceDeliveryAttachmentType = EinvoiceDeliveryAttachmentType;
458
1439
  exports.EinvoiceDeliveryDocumentType = EinvoiceDeliveryDocumentType;
1440
+ exports.EinvoiceDeliveryPreference$ = EinvoiceDeliveryPreference$;
459
1441
  exports.EinvoiceDeliveryStatus = EinvoiceDeliveryStatus;
1442
+ exports.Entity$ = Entity$;
1443
+ exports.FeesBreakdown$ = FeesBreakdown$;
1444
+ exports.FeesBreakdownAmount$ = FeesBreakdownAmount$;
1445
+ exports.Filters$ = Filters$;
1446
+ exports.GetInvoicePDF$ = GetInvoicePDF$;
460
1447
  exports.GetInvoicePDFCommand = GetInvoicePDFCommand;
1448
+ exports.GetInvoicePDFRequest$ = GetInvoicePDFRequest$;
1449
+ exports.GetInvoicePDFResponse$ = GetInvoicePDFResponse$;
1450
+ exports.GetInvoiceUnit$ = GetInvoiceUnit$;
461
1451
  exports.GetInvoiceUnitCommand = GetInvoiceUnitCommand;
1452
+ exports.GetInvoiceUnitRequest$ = GetInvoiceUnitRequest$;
1453
+ exports.GetInvoiceUnitResponse$ = GetInvoiceUnitResponse$;
1454
+ exports.GetProcurementPortalPreference$ = GetProcurementPortalPreference$;
462
1455
  exports.GetProcurementPortalPreferenceCommand = GetProcurementPortalPreferenceCommand;
1456
+ exports.GetProcurementPortalPreferenceRequest$ = GetProcurementPortalPreferenceRequest$;
1457
+ exports.GetProcurementPortalPreferenceResponse$ = GetProcurementPortalPreferenceResponse$;
1458
+ exports.InternalServerException = InternalServerException;
1459
+ exports.InternalServerException$ = InternalServerException$;
1460
+ exports.InvoiceCurrencyAmount$ = InvoiceCurrencyAmount$;
463
1461
  exports.InvoiceFrequency = InvoiceFrequency;
1462
+ exports.InvoicePDF$ = InvoicePDF$;
1463
+ exports.InvoiceProfile$ = InvoiceProfile$;
1464
+ exports.InvoiceSummariesFilter$ = InvoiceSummariesFilter$;
1465
+ exports.InvoiceSummariesSelector$ = InvoiceSummariesSelector$;
1466
+ exports.InvoiceSummary$ = InvoiceSummary$;
464
1467
  exports.InvoiceType = InvoiceType;
1468
+ exports.InvoiceUnit$ = InvoiceUnit$;
1469
+ exports.InvoiceUnitRule$ = InvoiceUnitRule$;
465
1470
  exports.Invoicing = Invoicing;
466
1471
  exports.InvoicingClient = InvoicingClient;
1472
+ exports.InvoicingServiceException = InvoicingServiceException;
1473
+ exports.InvoicingServiceException$ = InvoicingServiceException$;
1474
+ exports.ListInvoiceSummaries$ = ListInvoiceSummaries$;
467
1475
  exports.ListInvoiceSummariesCommand = ListInvoiceSummariesCommand;
1476
+ exports.ListInvoiceSummariesRequest$ = ListInvoiceSummariesRequest$;
468
1477
  exports.ListInvoiceSummariesResourceType = ListInvoiceSummariesResourceType;
1478
+ exports.ListInvoiceSummariesResponse$ = ListInvoiceSummariesResponse$;
1479
+ exports.ListInvoiceUnits$ = ListInvoiceUnits$;
469
1480
  exports.ListInvoiceUnitsCommand = ListInvoiceUnitsCommand;
1481
+ exports.ListInvoiceUnitsRequest$ = ListInvoiceUnitsRequest$;
1482
+ exports.ListInvoiceUnitsResponse$ = ListInvoiceUnitsResponse$;
1483
+ exports.ListProcurementPortalPreferences$ = ListProcurementPortalPreferences$;
470
1484
  exports.ListProcurementPortalPreferencesCommand = ListProcurementPortalPreferencesCommand;
1485
+ exports.ListProcurementPortalPreferencesRequest$ = ListProcurementPortalPreferencesRequest$;
1486
+ exports.ListProcurementPortalPreferencesResponse$ = ListProcurementPortalPreferencesResponse$;
1487
+ exports.ListTagsForResource$ = ListTagsForResource$;
471
1488
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1489
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1490
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
472
1491
  exports.ProcurementPortalName = ProcurementPortalName;
1492
+ exports.ProcurementPortalPreference$ = ProcurementPortalPreference$;
1493
+ exports.ProcurementPortalPreferenceSelector$ = ProcurementPortalPreferenceSelector$;
473
1494
  exports.ProcurementPortalPreferenceStatus = ProcurementPortalPreferenceStatus;
1495
+ exports.ProcurementPortalPreferenceSummary$ = ProcurementPortalPreferenceSummary$;
474
1496
  exports.Protocol = Protocol;
1497
+ exports.PurchaseOrderDataSource$ = PurchaseOrderDataSource$;
475
1498
  exports.PurchaseOrderDataSourceType = PurchaseOrderDataSourceType;
1499
+ exports.PutProcurementPortalPreference$ = PutProcurementPortalPreference$;
476
1500
  exports.PutProcurementPortalPreferenceCommand = PutProcurementPortalPreferenceCommand;
1501
+ exports.PutProcurementPortalPreferenceRequest$ = PutProcurementPortalPreferenceRequest$;
1502
+ exports.PutProcurementPortalPreferenceResponse$ = PutProcurementPortalPreferenceResponse$;
1503
+ exports.ReceiverAddress$ = ReceiverAddress$;
477
1504
  exports.ReceiverRole = ReceiverRole;
1505
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1506
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1507
+ exports.ResourceTag$ = ResourceTag$;
1508
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1509
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1510
+ exports.SupplementalDocument$ = SupplementalDocument$;
478
1511
  exports.SupplementalDocumentType = SupplementalDocumentType;
479
1512
  exports.SupplierDomain = SupplierDomain;
1513
+ exports.TagResource$ = TagResource$;
480
1514
  exports.TagResourceCommand = TagResourceCommand;
1515
+ exports.TagResourceRequest$ = TagResourceRequest$;
1516
+ exports.TagResourceResponse$ = TagResourceResponse$;
481
1517
  exports.TaxAuthorityStatus = TaxAuthorityStatus;
1518
+ exports.TaxesBreakdown$ = TaxesBreakdown$;
1519
+ exports.TaxesBreakdownAmount$ = TaxesBreakdownAmount$;
1520
+ exports.TestEnvPreference$ = TestEnvPreference$;
1521
+ exports.TestEnvPreferenceInput$ = TestEnvPreferenceInput$;
1522
+ exports.ThrottlingException = ThrottlingException;
1523
+ exports.ThrottlingException$ = ThrottlingException$;
1524
+ exports.UntagResource$ = UntagResource$;
482
1525
  exports.UntagResourceCommand = UntagResourceCommand;
1526
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1527
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1528
+ exports.UpdateInvoiceUnit$ = UpdateInvoiceUnit$;
483
1529
  exports.UpdateInvoiceUnitCommand = UpdateInvoiceUnitCommand;
1530
+ exports.UpdateInvoiceUnitRequest$ = UpdateInvoiceUnitRequest$;
1531
+ exports.UpdateInvoiceUnitResponse$ = UpdateInvoiceUnitResponse$;
1532
+ exports.UpdateProcurementPortalPreferenceStatus$ = UpdateProcurementPortalPreferenceStatus$;
484
1533
  exports.UpdateProcurementPortalPreferenceStatusCommand = UpdateProcurementPortalPreferenceStatusCommand;
1534
+ exports.UpdateProcurementPortalPreferenceStatusRequest$ = UpdateProcurementPortalPreferenceStatusRequest$;
1535
+ exports.UpdateProcurementPortalPreferenceStatusResponse$ = UpdateProcurementPortalPreferenceStatusResponse$;
1536
+ exports.ValidationException = ValidationException;
1537
+ exports.ValidationException$ = ValidationException$;
1538
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
485
1539
  exports.ValidationExceptionReason = ValidationExceptionReason;
1540
+ exports.errorTypeRegistries = errorTypeRegistries;
486
1541
  exports.paginateListInvoiceSummaries = paginateListInvoiceSummaries;
487
1542
  exports.paginateListInvoiceUnits = paginateListInvoiceUnits;
488
1543
  exports.paginateListProcurementPortalPreferences = paginateListProcurementPortalPreferences;