@aws-sdk/client-invoicing 3.703.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.
Files changed (127) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +293 -0
  3. package/dist-cjs/Invoicing.js +29 -0
  4. package/dist-cjs/InvoicingClient.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/BatchGetInvoiceProfileCommand.js +27 -0
  8. package/dist-cjs/commands/CreateInvoiceUnitCommand.js +26 -0
  9. package/dist-cjs/commands/DeleteInvoiceUnitCommand.js +26 -0
  10. package/dist-cjs/commands/GetInvoiceUnitCommand.js +26 -0
  11. package/dist-cjs/commands/ListInvoiceUnitsCommand.js +26 -0
  12. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  13. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  14. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  15. package/dist-cjs/commands/UpdateInvoiceUnitCommand.js +26 -0
  16. package/dist-cjs/commands/index.js +12 -0
  17. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  18. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  19. package/dist-cjs/endpoint/ruleset.js +7 -0
  20. package/dist-cjs/extensionConfiguration.js +2 -0
  21. package/dist-cjs/index.js +11 -0
  22. package/dist-cjs/models/InvoicingServiceException.js +12 -0
  23. package/dist-cjs/models/index.js +4 -0
  24. package/dist-cjs/models/models_0.js +121 -0
  25. package/dist-cjs/pagination/Interfaces.js +2 -0
  26. package/dist-cjs/pagination/ListInvoiceUnitsPaginator.js +7 -0
  27. package/dist-cjs/pagination/index.js +5 -0
  28. package/dist-cjs/protocols/Aws_json1_0.js +367 -0
  29. package/dist-cjs/runtimeConfig.browser.js +39 -0
  30. package/dist-cjs/runtimeConfig.js +50 -0
  31. package/dist-cjs/runtimeConfig.native.js +15 -0
  32. package/dist-cjs/runtimeConfig.shared.js +34 -0
  33. package/dist-cjs/runtimeExtensions.js +25 -0
  34. package/dist-es/Invoicing.js +25 -0
  35. package/dist-es/InvoicingClient.js +46 -0
  36. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  37. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  38. package/dist-es/commands/BatchGetInvoiceProfileCommand.js +23 -0
  39. package/dist-es/commands/CreateInvoiceUnitCommand.js +22 -0
  40. package/dist-es/commands/DeleteInvoiceUnitCommand.js +22 -0
  41. package/dist-es/commands/GetInvoiceUnitCommand.js +22 -0
  42. package/dist-es/commands/ListInvoiceUnitsCommand.js +22 -0
  43. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  44. package/dist-es/commands/TagResourceCommand.js +22 -0
  45. package/dist-es/commands/UntagResourceCommand.js +22 -0
  46. package/dist-es/commands/UpdateInvoiceUnitCommand.js +22 -0
  47. package/dist-es/commands/index.js +9 -0
  48. package/dist-es/endpoint/EndpointParameters.js +12 -0
  49. package/dist-es/endpoint/endpointResolver.js +14 -0
  50. package/dist-es/endpoint/ruleset.js +4 -0
  51. package/dist-es/extensionConfiguration.js +1 -0
  52. package/dist-es/index.js +6 -0
  53. package/dist-es/models/InvoicingServiceException.js +8 -0
  54. package/dist-es/models/index.js +1 -0
  55. package/dist-es/models/models_0.js +109 -0
  56. package/dist-es/pagination/Interfaces.js +1 -0
  57. package/dist-es/pagination/ListInvoiceUnitsPaginator.js +4 -0
  58. package/dist-es/pagination/index.js +2 -0
  59. package/dist-es/protocols/Aws_json1_0.js +346 -0
  60. package/dist-es/runtimeConfig.browser.js +34 -0
  61. package/dist-es/runtimeConfig.js +45 -0
  62. package/dist-es/runtimeConfig.native.js +11 -0
  63. package/dist-es/runtimeConfig.shared.js +30 -0
  64. package/dist-es/runtimeExtensions.js +21 -0
  65. package/dist-types/Invoicing.d.ts +90 -0
  66. package/dist-types/InvoicingClient.d.ts +194 -0
  67. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  68. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  69. package/dist-types/commands/BatchGetInvoiceProfileCommand.d.ts +111 -0
  70. package/dist-types/commands/CreateInvoiceUnitCommand.d.ts +100 -0
  71. package/dist-types/commands/DeleteInvoiceUnitCommand.d.ts +91 -0
  72. package/dist-types/commands/GetInvoiceUnitCommand.d.ts +101 -0
  73. package/dist-types/commands/ListInvoiceUnitsCommand.d.ts +114 -0
  74. package/dist-types/commands/ListTagsForResourceCommand.d.ts +96 -0
  75. package/dist-types/commands/TagResourceCommand.d.ts +99 -0
  76. package/dist-types/commands/UntagResourceCommand.d.ts +93 -0
  77. package/dist-types/commands/UpdateInvoiceUnitCommand.d.ts +97 -0
  78. package/dist-types/commands/index.d.ts +9 -0
  79. package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
  80. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  81. package/dist-types/endpoint/ruleset.d.ts +2 -0
  82. package/dist-types/extensionConfiguration.d.ts +9 -0
  83. package/dist-types/index.d.ts +30 -0
  84. package/dist-types/models/InvoicingServiceException.d.ts +14 -0
  85. package/dist-types/models/index.d.ts +1 -0
  86. package/dist-types/models/models_0.d.ts +742 -0
  87. package/dist-types/pagination/Interfaces.d.ts +8 -0
  88. package/dist-types/pagination/ListInvoiceUnitsPaginator.d.ts +7 -0
  89. package/dist-types/pagination/index.d.ts +2 -0
  90. package/dist-types/protocols/Aws_json1_0.d.ts +83 -0
  91. package/dist-types/runtimeConfig.browser.d.ts +48 -0
  92. package/dist-types/runtimeConfig.d.ts +48 -0
  93. package/dist-types/runtimeConfig.native.d.ts +47 -0
  94. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  95. package/dist-types/runtimeExtensions.d.ts +17 -0
  96. package/dist-types/ts3.4/Invoicing.d.ts +159 -0
  97. package/dist-types/ts3.4/InvoicingClient.d.ts +172 -0
  98. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  99. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  100. package/dist-types/ts3.4/commands/BatchGetInvoiceProfileCommand.d.ts +51 -0
  101. package/dist-types/ts3.4/commands/CreateInvoiceUnitCommand.d.ts +51 -0
  102. package/dist-types/ts3.4/commands/DeleteInvoiceUnitCommand.d.ts +51 -0
  103. package/dist-types/ts3.4/commands/GetInvoiceUnitCommand.d.ts +50 -0
  104. package/dist-types/ts3.4/commands/ListInvoiceUnitsCommand.d.ts +50 -0
  105. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  106. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  107. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  108. package/dist-types/ts3.4/commands/UpdateInvoiceUnitCommand.d.ts +51 -0
  109. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  110. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  111. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  112. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  113. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  114. package/dist-types/ts3.4/index.d.ts +9 -0
  115. package/dist-types/ts3.4/models/InvoicingServiceException.d.ts +9 -0
  116. package/dist-types/ts3.4/models/index.d.ts +1 -0
  117. package/dist-types/ts3.4/models/models_0.d.ts +192 -0
  118. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  119. package/dist-types/ts3.4/pagination/ListInvoiceUnitsPaginator.d.ts +11 -0
  120. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  121. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +113 -0
  122. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  123. package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
  124. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  125. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  126. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  127. package/package.json +101 -0
@@ -0,0 +1,41 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
+ export const defaultInvoicingHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: (await normalizeProvider(config.region)()) ||
7
+ (() => {
8
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
+ })(),
10
+ };
11
+ };
12
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
13
+ return {
14
+ schemeId: "aws.auth#sigv4",
15
+ signingProperties: {
16
+ name: "invoicing",
17
+ region: authParameters.region,
18
+ },
19
+ propertiesExtractor: (config, context) => ({
20
+ signingProperties: {
21
+ config,
22
+ context,
23
+ },
24
+ }),
25
+ };
26
+ }
27
+ export const defaultInvoicingHttpAuthSchemeProvider = (authParameters) => {
28
+ const options = [];
29
+ switch (authParameters.operation) {
30
+ default: {
31
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
32
+ }
33
+ }
34
+ return options;
35
+ };
36
+ export const resolveHttpAuthSchemeConfig = (config) => {
37
+ const config_0 = resolveAwsSdkSigV4Config(config);
38
+ return {
39
+ ...config_0,
40
+ };
41
+ };
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { BatchGetInvoiceProfileResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_BatchGetInvoiceProfileCommand, se_BatchGetInvoiceProfileCommand } from "../protocols/Aws_json1_0";
7
+ export { $Command };
8
+ export class BatchGetInvoiceProfileCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("Invoicing", "BatchGetInvoiceProfile", {})
18
+ .n("InvoicingClient", "BatchGetInvoiceProfileCommand")
19
+ .f(void 0, BatchGetInvoiceProfileResponseFilterSensitiveLog)
20
+ .ser(se_BatchGetInvoiceProfileCommand)
21
+ .de(de_BatchGetInvoiceProfileCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateInvoiceUnitCommand, se_CreateInvoiceUnitCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class CreateInvoiceUnitCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Invoicing", "CreateInvoiceUnit", {})
17
+ .n("InvoicingClient", "CreateInvoiceUnitCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateInvoiceUnitCommand)
20
+ .de(de_CreateInvoiceUnitCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteInvoiceUnitCommand, se_DeleteInvoiceUnitCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class DeleteInvoiceUnitCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Invoicing", "DeleteInvoiceUnit", {})
17
+ .n("InvoicingClient", "DeleteInvoiceUnitCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteInvoiceUnitCommand)
20
+ .de(de_DeleteInvoiceUnitCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetInvoiceUnitCommand, se_GetInvoiceUnitCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class GetInvoiceUnitCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Invoicing", "GetInvoiceUnit", {})
17
+ .n("InvoicingClient", "GetInvoiceUnitCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetInvoiceUnitCommand)
20
+ .de(de_GetInvoiceUnitCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListInvoiceUnitsCommand, se_ListInvoiceUnitsCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class ListInvoiceUnitsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Invoicing", "ListInvoiceUnits", {})
17
+ .n("InvoicingClient", "ListInvoiceUnitsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListInvoiceUnitsCommand)
20
+ .de(de_ListInvoiceUnitsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Invoicing", "ListTagsForResource", {})
17
+ .n("InvoicingClient", "ListTagsForResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListTagsForResourceCommand)
20
+ .de(de_ListTagsForResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Invoicing", "TagResource", {})
17
+ .n("InvoicingClient", "TagResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_TagResourceCommand)
20
+ .de(de_TagResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Invoicing", "UntagResource", {})
17
+ .n("InvoicingClient", "UntagResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UntagResourceCommand)
20
+ .de(de_UntagResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateInvoiceUnitCommand, se_UpdateInvoiceUnitCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class UpdateInvoiceUnitCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Invoicing", "UpdateInvoiceUnit", {})
17
+ .n("InvoicingClient", "UpdateInvoiceUnitCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateInvoiceUnitCommand)
20
+ .de(de_UpdateInvoiceUnitCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,9 @@
1
+ export * from "./BatchGetInvoiceProfileCommand";
2
+ export * from "./CreateInvoiceUnitCommand";
3
+ export * from "./DeleteInvoiceUnitCommand";
4
+ export * from "./GetInvoiceUnitCommand";
5
+ export * from "./ListInvoiceUnitsCommand";
6
+ export * from "./ListTagsForResourceCommand";
7
+ export * from "./TagResourceCommand";
8
+ export * from "./UntagResourceCommand";
9
+ export * from "./UpdateInvoiceUnitCommand";
@@ -0,0 +1,12 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
5
+ defaultSigningName: "invoicing",
6
+ };
7
+ };
8
+ export const commonParams = {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ };
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
+ import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1,4 @@
1
+ const l = "ref";
2
+ const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "String" }, h = { [l]: "Endpoint" }, i = { "authSchemes": [{ "name": "sigv4", "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "Boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: {}, headers: {} }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://invoicing-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: {} }, type: e }, { endpoint: { url: "https://invoicing.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: {} }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from "./InvoicingClient";
2
+ export * from "./Invoicing";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models";
6
+ export { InvoicingServiceException } from "./models/InvoicingServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class InvoicingServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, InvoicingServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,109 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { InvoicingServiceException as __BaseException } from "./InvoicingServiceException";
3
+ export class AccessDeniedException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "AccessDeniedException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "AccessDeniedException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ this.resourceName = opts.resourceName;
14
+ }
15
+ }
16
+ export class InternalServerException extends __BaseException {
17
+ constructor(opts) {
18
+ super({
19
+ name: "InternalServerException",
20
+ $fault: "server",
21
+ ...opts,
22
+ });
23
+ this.name = "InternalServerException";
24
+ this.$fault = "server";
25
+ Object.setPrototypeOf(this, InternalServerException.prototype);
26
+ this.retryAfterSeconds = opts.retryAfterSeconds;
27
+ }
28
+ }
29
+ export class ResourceNotFoundException extends __BaseException {
30
+ constructor(opts) {
31
+ super({
32
+ name: "ResourceNotFoundException",
33
+ $fault: "client",
34
+ ...opts,
35
+ });
36
+ this.name = "ResourceNotFoundException";
37
+ this.$fault = "client";
38
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
39
+ this.resourceName = opts.resourceName;
40
+ }
41
+ }
42
+ export class ThrottlingException extends __BaseException {
43
+ constructor(opts) {
44
+ super({
45
+ name: "ThrottlingException",
46
+ $fault: "client",
47
+ ...opts,
48
+ });
49
+ this.name = "ThrottlingException";
50
+ this.$fault = "client";
51
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
52
+ }
53
+ }
54
+ export const ValidationExceptionReason = {
55
+ ACCOUNT_MEMBERSHIP_ERROR: "accountMembershipError",
56
+ CANNOT_PARSE: "cannotParse",
57
+ DUPLICATE_INVOICE_UNIT: "duplicateInvoiceUnit",
58
+ EXPIRED_NEXT_TOKEN: "expiredNextToken",
59
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
60
+ INVALID_INPUT: "invalidInput",
61
+ INVALID_NEXT_TOKEN: "invalidNextToken",
62
+ MAX_ACCOUNTS_EXCEEDED: "maxAccountsExceeded",
63
+ MAX_INVOICE_UNITS_EXCEEDED: "maxInvoiceUnitsExceeded",
64
+ MUTUAL_EXCLUSION_ERROR: "mutualExclusionError",
65
+ NON_MEMBERS_PRESENT: "nonMemberPresent",
66
+ OTHER: "other",
67
+ TAX_SETTINGS_ERROR: "taxSettingsError",
68
+ UNKNOWN_OPERATION: "unknownOperation",
69
+ };
70
+ export class ValidationException extends __BaseException {
71
+ constructor(opts) {
72
+ super({
73
+ name: "ValidationException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ this.name = "ValidationException";
78
+ this.$fault = "client";
79
+ Object.setPrototypeOf(this, ValidationException.prototype);
80
+ this.resourceName = opts.resourceName;
81
+ this.reason = opts.reason;
82
+ this.fieldList = opts.fieldList;
83
+ }
84
+ }
85
+ export class ServiceQuotaExceededException extends __BaseException {
86
+ constructor(opts) {
87
+ super({
88
+ name: "ServiceQuotaExceededException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ this.name = "ServiceQuotaExceededException";
93
+ this.$fault = "client";
94
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
95
+ }
96
+ }
97
+ export const ReceiverAddressFilterSensitiveLog = (obj) => ({
98
+ ...obj,
99
+ });
100
+ export const InvoiceProfileFilterSensitiveLog = (obj) => ({
101
+ ...obj,
102
+ ...(obj.ReceiverAddress && { ReceiverAddress: SENSITIVE_STRING }),
103
+ ...(obj.ReceiverEmail && { ReceiverEmail: SENSITIVE_STRING }),
104
+ ...(obj.TaxRegistrationNumber && { TaxRegistrationNumber: SENSITIVE_STRING }),
105
+ });
106
+ export const BatchGetInvoiceProfileResponseFilterSensitiveLog = (obj) => ({
107
+ ...obj,
108
+ ...(obj.Profiles && { Profiles: obj.Profiles.map((item) => InvoiceProfileFilterSensitiveLog(item)) }),
109
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListInvoiceUnitsCommand, } from "../commands/ListInvoiceUnitsCommand";
3
+ import { InvoicingClient } from "../InvoicingClient";
4
+ export const paginateListInvoiceUnits = createPaginator(InvoicingClient, ListInvoiceUnitsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListInvoiceUnitsPaginator";