/var/runtime/node_modules/@aws-sdk/client-invoicing/dist-cjs
This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.
"use strict";var __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, { AccessDeniedException: () => AccessDeniedException, BatchGetInvoiceProfileCommand: () => BatchGetInvoiceProfileCommand, BatchGetInvoiceProfileResponseFilterSensitiveLog: () => BatchGetInvoiceProfileResponseFilterSensitiveLog, CreateInvoiceUnitCommand: () => CreateInvoiceUnitCommand, DeleteInvoiceUnitCommand: () => DeleteInvoiceUnitCommand, GetInvoiceUnitCommand: () => GetInvoiceUnitCommand, InternalServerException: () => InternalServerException, InvoiceProfileFilterSensitiveLog: () => InvoiceProfileFilterSensitiveLog, InvoiceType: () => InvoiceType, Invoicing: () => Invoicing, InvoicingClient: () => InvoicingClient, InvoicingServiceException: () => InvoicingServiceException, ListInvoiceSummariesCommand: () => ListInvoiceSummariesCommand, ListInvoiceSummariesResourceType: () => ListInvoiceSummariesResourceType, ListInvoiceUnitsCommand: () => ListInvoiceUnitsCommand, ListTagsForResourceCommand: () => ListTagsForResourceCommand, ReceiverAddressFilterSensitiveLog: () => ReceiverAddressFilterSensitiveLog, ResourceNotFoundException: () => ResourceNotFoundException, ServiceQuotaExceededException: () => ServiceQuotaExceededException, TagResourceCommand: () => TagResourceCommand, ThrottlingException: () => ThrottlingException, UntagResourceCommand: () => UntagResourceCommand, UpdateInvoiceUnitCommand: () => UpdateInvoiceUnitCommand, ValidationException: () => ValidationException, ValidationExceptionReason: () => ValidationExceptionReason, __Client: () => import_smithy_client.Client, paginateListInvoiceSummaries: () => paginateListInvoiceSummaries, paginateListInvoiceUnits: () => paginateListInvoiceUnits});module.exports = __toCommonJS(index_exports); // src/InvoicingClient.tsvar import_middleware_host_header = require("@aws-sdk/middleware-host-header");var import_middleware_logger = require("@aws-sdk/middleware-logger");var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");var import_config_resolver = require("@smithy/config-resolver");var import_core = require("@smithy/core");var import_middleware_content_length = require("@smithy/middleware-content-length");var import_middleware_endpoint = require("@smithy/middleware-endpoint");var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "invoicing" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }}; // src/InvoicingClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar import_region_config_resolver = require("@aws-sdk/region-config-resolver");var import_protocol_http = require("@smithy/protocol-http");var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.tsvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } };}, "getHttpAuthExtensionConfiguration");var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() };}, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign( (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig) ); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign( runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration) );}, "resolveRuntimeExtensions"); // src/InvoicingClient.tsvar InvoicingClient = class extends import_smithy_client.Client { static { __name(this, "InvoicingClient"); } /** * The resolved configuration of InvoicingClient class. This is resolved and normalized from the {@link InvoicingClientConfig | constructor configuration interface}. */ config; constructor(...[configuration]) { const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultInvoicingHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }), "identityProviderConfigProvider") }) ); this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. * Otherwise, sockets might stay open for quite a long time before the server terminates them. */ destroy() { super.destroy(); }}; // src/Invoicing.ts // src/commands/BatchGetInvoiceProfileCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/models/models_0.ts // src/models/InvoicingServiceException.ts var InvoicingServiceException = class _InvoicingServiceException extends import_smithy_client.ServiceException { static { __name(this, "InvoicingServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _InvoicingServiceException.prototype); }}; // src/models/models_0.tsvar AccessDeniedException = class _AccessDeniedException extends InvoicingServiceException { static { __name(this, "AccessDeniedException"); } name = "AccessDeniedException"; $fault = "client"; /** * <p>You don't have sufficient access to perform this action. </p> * @public */ resourceName; /** * @internal */ constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedException.prototype); this.resourceName = opts.resourceName; }};var InternalServerException = class _InternalServerException extends InvoicingServiceException { static { __name(this, "InternalServerException"); } name = "InternalServerException"; $fault = "server"; /** * <p>The processing request failed because of an unknown error, exception, or failure.</p> * @public */ retryAfterSeconds; /** * @internal */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); this.retryAfterSeconds = opts.retryAfterSeconds; }};var ResourceNotFoundException = class _ResourceNotFoundException extends InvoicingServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; /** * <p>The resource could not be found.</p> * @public */ resourceName; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.resourceName = opts.resourceName; }};var ThrottlingException = class _ThrottlingException extends InvoicingServiceException { static { __name(this, "ThrottlingException"); } name = "ThrottlingException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ThrottlingException.prototype); }};var ValidationExceptionReason = { ACCOUNT_MEMBERSHIP_ERROR: "accountMembershipError", CANNOT_PARSE: "cannotParse", DUPLICATE_INVOICE_UNIT: "duplicateInvoiceUnit", EXPIRED_NEXT_TOKEN: "expiredNextToken", FIELD_VALIDATION_FAILED: "fieldValidationFailed", INVALID_INPUT: "invalidInput", INVALID_NEXT_TOKEN: "invalidNextToken", MAX_ACCOUNTS_EXCEEDED: "maxAccountsExceeded", MAX_INVOICE_UNITS_EXCEEDED: "maxInvoiceUnitsExceeded", MUTUAL_EXCLUSION_ERROR: "mutualExclusionError", NON_MEMBERS_PRESENT: "nonMemberPresent", OTHER: "other", TAX_SETTINGS_ERROR: "taxSettingsError", UNKNOWN_OPERATION: "unknownOperation"};var ValidationException = class _ValidationException extends InvoicingServiceException { static { __name(this, "ValidationException"); } name = "ValidationException"; $fault = "client"; /** * <p>You don't have sufficient access to perform this action. </p> * @public */ resourceName; /** * <p>You don't have sufficient access to perform this action. </p> * @public */ reason; /** * <p> The input fails to satisfy the constraints specified by an Amazon Web Services service. </p> * @public */ fieldList; /** * @internal */ constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ValidationException.prototype); this.resourceName = opts.resourceName; this.reason = opts.reason; this.fieldList = opts.fieldList; }};var InvoiceType = { CREDIT_MEMO: "CREDIT_MEMO", INVOICE: "INVOICE"};var ListInvoiceSummariesResourceType = { ACCOUNT_ID: "ACCOUNT_ID", INVOICE_ID: "INVOICE_ID"};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends InvoicingServiceException { static { __name(this, "ServiceQuotaExceededException"); } name = "ServiceQuotaExceededException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ServiceQuotaExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype); }};var ReceiverAddressFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj}), "ReceiverAddressFilterSensitiveLog");var InvoiceProfileFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.ReceiverAddress && { ReceiverAddress: import_smithy_client.SENSITIVE_STRING }, ...obj.ReceiverEmail && { ReceiverEmail: import_smithy_client.SENSITIVE_STRING }, ...obj.TaxRegistrationNumber && { TaxRegistrationNumber: import_smithy_client.SENSITIVE_STRING }}), "InvoiceProfileFilterSensitiveLog");var BatchGetInvoiceProfileResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.Profiles && { Profiles: obj.Profiles.map((item) => InvoiceProfileFilterSensitiveLog(item)) }}), "BatchGetInvoiceProfileResponseFilterSensitiveLog"); // src/protocols/Aws_json1_0.tsvar import_core2 = require("@aws-sdk/core"); var se_BatchGetInvoiceProfileCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("BatchGetInvoiceProfile"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_BatchGetInvoiceProfileCommand");var se_CreateInvoiceUnitCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("CreateInvoiceUnit"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_CreateInvoiceUnitCommand");var se_DeleteInvoiceUnitCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DeleteInvoiceUnit"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DeleteInvoiceUnitCommand");var se_GetInvoiceUnitCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("GetInvoiceUnit"); let body; body = JSON.stringify(se_GetInvoiceUnitRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_GetInvoiceUnitCommand");var se_ListInvoiceSummariesCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListInvoiceSummaries"); let body; body = JSON.stringify(se_ListInvoiceSummariesRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListInvoiceSummariesCommand");var se_ListInvoiceUnitsCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListInvoiceUnits"); let body; body = JSON.stringify(se_ListInvoiceUnitsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListInvoiceUnitsCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListTagsForResource"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListTagsForResourceCommand");var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("TagResource"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_TagResourceCommand");var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("UntagResource"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_UntagResourceCommand");var se_UpdateInvoiceUnitCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("UpdateInvoiceUnit"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_UpdateInvoiceUnitCommand");var de_BatchGetInvoiceProfileCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_BatchGetInvoiceProfileCommand");var de_CreateInvoiceUnitCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_CreateInvoiceUnitCommand");var de_DeleteInvoiceUnitCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DeleteInvoiceUnitCommand");var de_GetInvoiceUnitCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = de_GetInvoiceUnitResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_GetInvoiceUnitCommand");var de_ListInvoiceSummariesCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = de_ListInvoiceSummariesResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListInvoiceSummariesCommand");var de_ListInvoiceUnitsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = de_ListInvoiceUnitsResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListInvoiceUnitsCommand");var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListTagsForResourceCommand");var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_TagResourceCommand");var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_UntagResourceCommand");var de_UpdateInvoiceUnitCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_UpdateInvoiceUnitCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core2.parseJsonErrorBody)(output.body, context) }; const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "AccessDeniedException": case "com.amazonaws.invoicing#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.invoicing#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.invoicing#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.invoicing#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); case "ValidationException": case "com.amazonaws.invoicing#ValidationException": throw await de_ValidationExceptionRes(parsedOutput, context); case "ServiceQuotaExceededException": case "com.amazonaws.invoicing#ServiceQuotaExceededException": throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_AccessDeniedExceptionRes");var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new InternalServerException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_InternalServerExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ResourceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ResourceNotFoundExceptionRes");var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ServiceQuotaExceededException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ServiceQuotaExceededExceptionRes");var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ThrottlingException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ThrottlingExceptionRes");var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ValidationException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ValidationExceptionRes");var se_DateInterval = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { EndDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndDate"), StartDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartDate") });}, "se_DateInterval");var se_GetInvoiceUnitRequest = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { AsOf: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "AsOf"), InvoiceUnitArn: [] });}, "se_GetInvoiceUnitRequest");var se_InvoiceSummariesFilter = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { BillingPeriod: import_smithy_client._json, InvoicingEntity: [], TimeInterval: /* @__PURE__ */ __name((_) => se_DateInterval(_, context), "TimeInterval") });}, "se_InvoiceSummariesFilter");var se_ListInvoiceSummariesRequest = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { Filter: /* @__PURE__ */ __name((_) => se_InvoiceSummariesFilter(_, context), "Filter"), MaxResults: [], NextToken: [], Selector: import_smithy_client._json });}, "se_ListInvoiceSummariesRequest");var se_ListInvoiceUnitsRequest = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { AsOf: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "AsOf"), Filters: import_smithy_client._json, MaxResults: [], NextToken: [] });}, "se_ListInvoiceUnitsRequest");var de_GetInvoiceUnitResponse = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { Description: import_smithy_client.expectString, InvoiceReceiver: import_smithy_client.expectString, InvoiceUnitArn: import_smithy_client.expectString, LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModified"), Name: import_smithy_client.expectString, Rule: import_smithy_client._json, TaxInheritanceDisabled: import_smithy_client.expectBoolean });}, "de_GetInvoiceUnitResponse");var de_InvoiceSummaries = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_InvoiceSummary(entry, context); }); return retVal;}, "de_InvoiceSummaries");var de_InvoiceSummary = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { AccountId: import_smithy_client.expectString, BaseCurrencyAmount: import_smithy_client._json, BillingPeriod: import_smithy_client._json, DueDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DueDate"), Entity: import_smithy_client._json, InvoiceId: import_smithy_client.expectString, InvoiceType: import_smithy_client.expectString, IssuedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "IssuedDate"), OriginalInvoiceId: import_smithy_client.expectString, PaymentCurrencyAmount: import_smithy_client._json, PurchaseOrderNumber: import_smithy_client.expectString, TaxCurrencyAmount: import_smithy_client._json });}, "de_InvoiceSummary");var de_InvoiceUnit = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { Description: import_smithy_client.expectString, InvoiceReceiver: import_smithy_client.expectString, InvoiceUnitArn: import_smithy_client.expectString, LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModified"), Name: import_smithy_client.expectString, Rule: import_smithy_client._json, TaxInheritanceDisabled: import_smithy_client.expectBoolean });}, "de_InvoiceUnit");var de_InvoiceUnits = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_InvoiceUnit(entry, context); }); return retVal;}, "de_InvoiceUnits");var de_ListInvoiceSummariesResponse = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { InvoiceSummaries: /* @__PURE__ */ __name((_) => de_InvoiceSummaries(_, context), "InvoiceSummaries"), NextToken: import_smithy_client.expectString });}, "de_ListInvoiceSummariesResponse");var de_ListInvoiceUnitsResponse = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { InvoiceUnits: /* @__PURE__ */ __name((_) => de_InvoiceUnits(_, context), "InvoiceUnits"), NextToken: import_smithy_client.expectString });}, "de_ListInvoiceUnitsResponse");var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"]}), "deserializeMetadata");var throwDefaultError = (0, import_smithy_client.withBaseException)(InvoicingServiceException);var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const contents = { protocol, hostname, port, method: "POST", path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, headers }; if (resolvedHostname !== void 0) { contents.hostname = resolvedHostname; } if (body !== void 0) { contents.body = body; } return new import_protocol_http.HttpRequest(contents);}, "buildHttpRpcRequest");function sharedHeaders(operation) { return { "content-type": "application/x-amz-json-1.0", "x-amz-target": `Invoicing.${operation}` };}__name(sharedHeaders, "sharedHeaders"); // src/commands/BatchGetInvoiceProfileCommand.tsvar BatchGetInvoiceProfileCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("Invoicing", "BatchGetInvoiceProfile", {}).n("InvoicingClient", "BatchGetInvoiceProfileCommand").f(void 0, BatchGetInvoiceProfileResponseFilterSensitiveLog).ser(se_BatchGetInvoiceProfileCommand).de(de_BatchGetInvoiceProfileCommand).build() { static { __name(this, "BatchGetInvoiceProfileCommand"); }}; // src/commands/CreateInvoiceUnitCommand.ts var CreateInvoiceUnitCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("Invoicing", "CreateInvoiceUnit", {}).n("InvoicingClient", "CreateInvoiceUnitCommand").f(void 0, void 0).ser(se_CreateInvoiceUnitCommand).de(de_CreateInvoiceUnitCommand).build() { static { __name(this, "CreateInvoiceUnitCommand"); }}; // src/commands/DeleteInvoiceUnitCommand.ts var DeleteInvoiceUnitCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("Invoicing", "DeleteInvoiceUnit", {}).n("InvoicingClient", "DeleteInvoiceUnitCommand").f(void 0, void 0).ser(se_DeleteInvoiceUnitCommand).de(de_DeleteInvoiceUnitCommand).build() { static { __name(this, "DeleteInvoiceUnitCommand"); }}; // src/commands/GetInvoiceUnitCommand.ts var GetInvoiceUnitCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("Invoicing", "GetInvoiceUnit", {}).n("InvoicingClient", "GetInvoiceUnitCommand").f(void 0, void 0).ser(se_GetInvoiceUnitCommand).de(de_GetInvoiceUnitCommand).build() { static { __name(this, "GetInvoiceUnitCommand"); }}; // src/commands/ListInvoiceSummariesCommand.ts var ListInvoiceSummariesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("Invoicing", "ListInvoiceSummaries", {}).n("InvoicingClient", "ListInvoiceSummariesCommand").f(void 0, void 0).ser(se_ListInvoiceSummariesCommand).de(de_ListInvoiceSummariesCommand).build() { static { __name(this, "ListInvoiceSummariesCommand"); }}; // src/commands/ListInvoiceUnitsCommand.ts var ListInvoiceUnitsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("Invoicing", "ListInvoiceUnits", {}).n("InvoicingClient", "ListInvoiceUnitsCommand").f(void 0, void 0).ser(se_ListInvoiceUnitsCommand).de(de_ListInvoiceUnitsCommand).build() { static { __name(this, "ListInvoiceUnitsCommand"); }}; // src/commands/ListTagsForResourceCommand.ts var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("Invoicing", "ListTagsForResource", {}).n("InvoicingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() { static { __name(this, "ListTagsForResourceCommand"); }}; // src/commands/TagResourceCommand.ts var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("Invoicing", "TagResource", {}).n("InvoicingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() { static { __name(this, "TagResourceCommand"); }}; // src/commands/UntagResourceCommand.ts var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("Invoicing", "UntagResource", {}).n("InvoicingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/commands/UpdateInvoiceUnitCommand.ts var UpdateInvoiceUnitCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("Invoicing", "UpdateInvoiceUnit", {}).n("InvoicingClient", "UpdateInvoiceUnitCommand").f(void 0, void 0).ser(se_UpdateInvoiceUnitCommand).de(de_UpdateInvoiceUnitCommand).build() { static { __name(this, "UpdateInvoiceUnitCommand"); }}; // src/Invoicing.tsvar commands = { BatchGetInvoiceProfileCommand, CreateInvoiceUnitCommand, DeleteInvoiceUnitCommand, GetInvoiceUnitCommand, ListInvoiceSummariesCommand, ListInvoiceUnitsCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateInvoiceUnitCommand};var Invoicing = class extends InvoicingClient { static { __name(this, "Invoicing"); }};(0, import_smithy_client.createAggregatedClient)(commands, Invoicing); // src/pagination/ListInvoiceSummariesPaginator.ts var paginateListInvoiceSummaries = (0, import_core.createPaginator)(InvoicingClient, ListInvoiceSummariesCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListInvoiceUnitsPaginator.ts var paginateListInvoiceUnits = (0, import_core.createPaginator)(InvoicingClient, ListInvoiceUnitsCommand, "NextToken", "NextToken", "MaxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { InvoicingServiceException, __Client, InvoicingClient, Invoicing, $Command, BatchGetInvoiceProfileCommand, CreateInvoiceUnitCommand, DeleteInvoiceUnitCommand, GetInvoiceUnitCommand, ListInvoiceSummariesCommand, ListInvoiceUnitsCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateInvoiceUnitCommand, paginateListInvoiceSummaries, paginateListInvoiceUnits, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationExceptionReason, ValidationException, InvoiceType, ListInvoiceSummariesResourceType, ServiceQuotaExceededException, ReceiverAddressFilterSensitiveLog, InvoiceProfileFilterSensitiveLog, BatchGetInvoiceProfileResponseFilterSensitiveLog});