@aws-sdk/client-partnercentral-revenue-measurement 3.1081.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 (139) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +307 -0
  3. package/dist-cjs/index.js +1296 -0
  4. package/dist-es/PartnerCentralRevenueMeasurement.js +53 -0
  5. package/dist-es/PartnerCentralRevenueMeasurementClient.js +48 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +122 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/CreateMarketplaceRevenueShareAllocationCommand.js +4 -0
  10. package/dist-es/commands/CreateMarketplaceRevenueShareCommand.js +4 -0
  11. package/dist-es/commands/CreateRevenueAttributionCommand.js +4 -0
  12. package/dist-es/commands/GetMarketplaceRevenueShareAllocationCommand.js +4 -0
  13. package/dist-es/commands/GetMarketplaceRevenueShareCommand.js +4 -0
  14. package/dist-es/commands/GetRevenueAttributionAllocationCommand.js +4 -0
  15. package/dist-es/commands/GetRevenueAttributionAllocationsTaskCommand.js +4 -0
  16. package/dist-es/commands/GetRevenueAttributionCommand.js +4 -0
  17. package/dist-es/commands/ListMarketplaceRevenueShareAllocationsCommand.js +4 -0
  18. package/dist-es/commands/ListMarketplaceRevenueSharesCommand.js +4 -0
  19. package/dist-es/commands/ListRevenueAttributionAllocationsCommand.js +4 -0
  20. package/dist-es/commands/ListRevenueAttributionsCommand.js +4 -0
  21. package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
  22. package/dist-es/commands/StartRevenueAttributionAllocationsTaskCommand.js +4 -0
  23. package/dist-es/commands/TagResourceCommand.js +4 -0
  24. package/dist-es/commands/UntagResourceCommand.js +4 -0
  25. package/dist-es/commands/UpdateMarketplaceRevenueShareAllocationCommand.js +4 -0
  26. package/dist-es/commands/UpdateRevenueAttributionCommand.js +4 -0
  27. package/dist-es/commands/index.js +18 -0
  28. package/dist-es/endpoint/EndpointParameters.js +11 -0
  29. package/dist-es/endpoint/bdd.js +35 -0
  30. package/dist-es/endpoint/endpointResolver.js +14 -0
  31. package/dist-es/extensionConfiguration.js +1 -0
  32. package/dist-es/index.js +10 -0
  33. package/dist-es/models/PartnerCentralRevenueMeasurementServiceException.js +8 -0
  34. package/dist-es/models/enums.js +81 -0
  35. package/dist-es/models/errors.js +117 -0
  36. package/dist-es/models/models_0.js +1 -0
  37. package/dist-es/pagination/Interfaces.js +1 -0
  38. package/dist-es/pagination/ListMarketplaceRevenueShareAllocationsPaginator.js +4 -0
  39. package/dist-es/pagination/ListMarketplaceRevenueSharesPaginator.js +4 -0
  40. package/dist-es/pagination/ListRevenueAttributionAllocationsPaginator.js +4 -0
  41. package/dist-es/pagination/ListRevenueAttributionsPaginator.js +4 -0
  42. package/dist-es/pagination/index.js +5 -0
  43. package/dist-es/runtimeConfig.browser.js +29 -0
  44. package/dist-es/runtimeConfig.js +44 -0
  45. package/dist-es/runtimeConfig.native.js +9 -0
  46. package/dist-es/runtimeConfig.shared.js +47 -0
  47. package/dist-es/runtimeExtensions.js +9 -0
  48. package/dist-es/schemas/schemas_0.js +528 -0
  49. package/dist-types/PartnerCentralRevenueMeasurement.d.ts +164 -0
  50. package/dist-types/PartnerCentralRevenueMeasurementClient.d.ts +204 -0
  51. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  52. package/dist-types/auth/httpAuthSchemeProvider.d.ts +83 -0
  53. package/dist-types/commandBuilder.d.ts +18 -0
  54. package/dist-types/commands/CreateMarketplaceRevenueShareAllocationCommand.d.ts +127 -0
  55. package/dist-types/commands/CreateMarketplaceRevenueShareCommand.d.ts +124 -0
  56. package/dist-types/commands/CreateRevenueAttributionCommand.d.ts +132 -0
  57. package/dist-types/commands/GetMarketplaceRevenueShareAllocationCommand.d.ts +121 -0
  58. package/dist-types/commands/GetMarketplaceRevenueShareCommand.d.ts +119 -0
  59. package/dist-types/commands/GetRevenueAttributionAllocationCommand.d.ts +131 -0
  60. package/dist-types/commands/GetRevenueAttributionAllocationsTaskCommand.d.ts +129 -0
  61. package/dist-types/commands/GetRevenueAttributionCommand.d.ts +125 -0
  62. package/dist-types/commands/ListMarketplaceRevenueShareAllocationsCommand.d.ts +125 -0
  63. package/dist-types/commands/ListMarketplaceRevenueSharesCommand.d.ts +125 -0
  64. package/dist-types/commands/ListRevenueAttributionAllocationsCommand.d.ts +136 -0
  65. package/dist-types/commands/ListRevenueAttributionsCommand.d.ts +131 -0
  66. package/dist-types/commands/ListTagsForResourceCommand.d.ts +91 -0
  67. package/dist-types/commands/StartRevenueAttributionAllocationsTaskCommand.d.ts +145 -0
  68. package/dist-types/commands/TagResourceCommand.d.ts +93 -0
  69. package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
  70. package/dist-types/commands/UpdateMarketplaceRevenueShareAllocationCommand.d.ts +131 -0
  71. package/dist-types/commands/UpdateRevenueAttributionCommand.d.ts +116 -0
  72. package/dist-types/commands/index.d.ts +18 -0
  73. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  74. package/dist-types/endpoint/bdd.d.ts +2 -0
  75. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  76. package/dist-types/extensionConfiguration.d.ts +9 -0
  77. package/dist-types/index.d.ts +18 -0
  78. package/dist-types/models/PartnerCentralRevenueMeasurementServiceException.d.ts +14 -0
  79. package/dist-types/models/enums.d.ts +225 -0
  80. package/dist-types/models/errors.d.ts +137 -0
  81. package/dist-types/models/models_0.d.ts +1660 -0
  82. package/dist-types/pagination/Interfaces.d.ts +8 -0
  83. package/dist-types/pagination/ListMarketplaceRevenueShareAllocationsPaginator.d.ts +7 -0
  84. package/dist-types/pagination/ListMarketplaceRevenueSharesPaginator.d.ts +7 -0
  85. package/dist-types/pagination/ListRevenueAttributionAllocationsPaginator.d.ts +7 -0
  86. package/dist-types/pagination/ListRevenueAttributionsPaginator.d.ts +7 -0
  87. package/dist-types/pagination/index.d.ts +5 -0
  88. package/dist-types/runtimeConfig.browser.d.ts +56 -0
  89. package/dist-types/runtimeConfig.d.ts +56 -0
  90. package/dist-types/runtimeConfig.native.d.ts +55 -0
  91. package/dist-types/runtimeConfig.shared.d.ts +30 -0
  92. package/dist-types/runtimeExtensions.d.ts +17 -0
  93. package/dist-types/schemas/schemas_0.d.ts +77 -0
  94. package/dist-types/ts3.4/PartnerCentralRevenueMeasurement.d.ts +387 -0
  95. package/dist-types/ts3.4/PartnerCentralRevenueMeasurementClient.d.ts +221 -0
  96. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  97. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +59 -0
  98. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  99. package/dist-types/ts3.4/commands/CreateMarketplaceRevenueShareAllocationCommand.d.ts +44 -0
  100. package/dist-types/ts3.4/commands/CreateMarketplaceRevenueShareCommand.d.ts +44 -0
  101. package/dist-types/ts3.4/commands/CreateRevenueAttributionCommand.d.ts +44 -0
  102. package/dist-types/ts3.4/commands/GetMarketplaceRevenueShareAllocationCommand.d.ts +44 -0
  103. package/dist-types/ts3.4/commands/GetMarketplaceRevenueShareCommand.d.ts +44 -0
  104. package/dist-types/ts3.4/commands/GetRevenueAttributionAllocationCommand.d.ts +44 -0
  105. package/dist-types/ts3.4/commands/GetRevenueAttributionAllocationsTaskCommand.d.ts +44 -0
  106. package/dist-types/ts3.4/commands/GetRevenueAttributionCommand.d.ts +44 -0
  107. package/dist-types/ts3.4/commands/ListMarketplaceRevenueShareAllocationsCommand.d.ts +44 -0
  108. package/dist-types/ts3.4/commands/ListMarketplaceRevenueSharesCommand.d.ts +44 -0
  109. package/dist-types/ts3.4/commands/ListRevenueAttributionAllocationsCommand.d.ts +44 -0
  110. package/dist-types/ts3.4/commands/ListRevenueAttributionsCommand.d.ts +44 -0
  111. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +44 -0
  112. package/dist-types/ts3.4/commands/StartRevenueAttributionAllocationsTaskCommand.d.ts +44 -0
  113. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  114. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  115. package/dist-types/ts3.4/commands/UpdateMarketplaceRevenueShareAllocationCommand.d.ts +44 -0
  116. package/dist-types/ts3.4/commands/UpdateRevenueAttributionCommand.d.ts +44 -0
  117. package/dist-types/ts3.4/commands/index.d.ts +18 -0
  118. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  119. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  120. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  121. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  122. package/dist-types/ts3.4/index.d.ts +13 -0
  123. package/dist-types/ts3.4/models/PartnerCentralRevenueMeasurementServiceException.d.ts +9 -0
  124. package/dist-types/ts3.4/models/enums.d.ts +113 -0
  125. package/dist-types/ts3.4/models/errors.d.ts +74 -0
  126. package/dist-types/ts3.4/models/models_0.d.ts +394 -0
  127. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  128. package/dist-types/ts3.4/pagination/ListMarketplaceRevenueShareAllocationsPaginator.d.ts +11 -0
  129. package/dist-types/ts3.4/pagination/ListMarketplaceRevenueSharesPaginator.d.ts +11 -0
  130. package/dist-types/ts3.4/pagination/ListRevenueAttributionAllocationsPaginator.d.ts +11 -0
  131. package/dist-types/ts3.4/pagination/ListRevenueAttributionsPaginator.d.ts +11 -0
  132. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  133. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +114 -0
  134. package/dist-types/ts3.4/runtimeConfig.d.ts +108 -0
  135. package/dist-types/ts3.4/runtimeConfig.native.d.ts +118 -0
  136. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +40 -0
  137. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  138. package/dist-types/ts3.4/schemas/schemas_0.d.ts +76 -0
  139. package/package.json +70 -0
@@ -0,0 +1,1296 @@
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");
2
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
6
+ exports.__Client = Client;
7
+ 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");
8
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveParams, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
12
+ const { resolveAwsSdkSigV4Config, resolveAwsSdkSigV4AConfig, AwsSdkSigV4Signer, AwsSdkSigV4ASigner, NODE_SIGV4A_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
13
+ const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
14
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
15
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
16
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
17
+ const { AwsSmithyRpcV2CborProtocol } = require("@aws-sdk/core/protocols");
18
+ const { Sha256 } = require("@smithy/core/checksum");
19
+
20
+ const i = "authSchemes", j = "name", k = "signingRegion";
21
+ const a = "isSet", b = "PartitionResult", c = "sigv4", d = { "ref": "Endpoint" }, e = { [j]: "sigv4a", "signingRegionSet": ["*"] }, f = { [i]: [e, { [j]: c, [k]: "us-gov-west-1" }] }, g = { [i]: [e, { [j]: c, [k]: "{PartitionResult#implicitGlobalRegion}" }] }, h = [{ "ref": "Region" }];
22
+ const _data = {
23
+ conditions: [
24
+ [a, [d]],
25
+ [a, h],
26
+ ["aws.partition", h, b],
27
+ ["stringEquals", [{ fn: "getAttr", argv: [{ ref: b }, "name"] }, "aws-us-gov"]],
28
+ ["booleanEquals", [{ ref: "UseFIPS" }, true]]
29
+ ],
30
+ results: [
31
+ [-1],
32
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
33
+ [d, { [i]: [e, { [j]: c }] }],
34
+ ["https://partnercentral-prm.us-gov.{PartitionResult#dualStackDnsSuffix}", f],
35
+ ["https://partnercentral-prm-fips.us-gov.{PartitionResult#dualStackDnsSuffix}", f],
36
+ ["https://partnercentral-prm-fips.global.{PartitionResult#dualStackDnsSuffix}", g],
37
+ ["https://partnercentral-prm.global.{PartitionResult#dualStackDnsSuffix}", g],
38
+ [-1, "Invalid Configuration: Missing Region"]
39
+ ]
40
+ };
41
+ const root = 2;
42
+ const r = 100_000_000;
43
+ const nodes = new Int32Array([
44
+ -1, 1, -1,
45
+ 0, 8, 3,
46
+ 1, 4, r + 7,
47
+ 2, 5, r + 7,
48
+ 3, 7, 6,
49
+ 4, r + 5, r + 6,
50
+ 4, r + 4, r + 3,
51
+ 4, r + 1, r + 2,
52
+ ]);
53
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
54
+
55
+ const cache = new EndpointCache({
56
+ size: 50,
57
+ params: ["Endpoint", "Region", "UseFIPS"],
58
+ });
59
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
60
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
61
+ endpointParams: endpointParams,
62
+ logger: context.logger,
63
+ }));
64
+ };
65
+ customEndpointFunctions.aws = awsEndpointFunctions;
66
+
67
+ const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
68
+ if (!input) {
69
+ throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
70
+ }
71
+ const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
72
+ const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor
73
+ ?.getEndpointParameterInstructions;
74
+ if (!instructionsFn) {
75
+ throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
76
+ }
77
+ const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
78
+ return Object.assign(defaultParameters, endpointParameters);
79
+ };
80
+ const _defaultPartnerCentralRevenueMeasurementHttpAuthSchemeParametersProvider = async (config, context, input) => {
81
+ return {
82
+ operation: getSmithyContext(context).operation,
83
+ region: await normalizeProvider(config.region)() || (() => {
84
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
85
+ })(),
86
+ };
87
+ };
88
+ const defaultPartnerCentralRevenueMeasurementHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultPartnerCentralRevenueMeasurementHttpAuthSchemeParametersProvider);
89
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
90
+ return {
91
+ schemeId: "aws.auth#sigv4",
92
+ signingProperties: {
93
+ name: "partnercentral",
94
+ region: authParameters.region,
95
+ },
96
+ propertiesExtractor: (config, context) => ({
97
+ signingProperties: {
98
+ config,
99
+ context,
100
+ },
101
+ }),
102
+ };
103
+ }
104
+ function createAwsAuthSigv4aHttpAuthOption(authParameters) {
105
+ return {
106
+ schemeId: "aws.auth#sigv4a",
107
+ signingProperties: {
108
+ name: "partnercentral",
109
+ region: authParameters.region,
110
+ },
111
+ propertiesExtractor: (config, context) => ({
112
+ signingProperties: {
113
+ config,
114
+ context,
115
+ },
116
+ }),
117
+ };
118
+ }
119
+ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
120
+ const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
121
+ const endpoint = defaultEndpointResolver(authParameters);
122
+ const authSchemes = endpoint.properties?.authSchemes;
123
+ if (!authSchemes) {
124
+ return defaultHttpAuthSchemeResolver(authParameters);
125
+ }
126
+ const options = [];
127
+ for (const scheme of authSchemes) {
128
+ const { name: resolvedName, properties = {}, ...rest } = scheme;
129
+ const name = resolvedName.toLowerCase();
130
+ if (resolvedName !== name) {
131
+ console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
132
+ }
133
+ let schemeId;
134
+ if (name === "sigv4a") {
135
+ schemeId = "aws.auth#sigv4a";
136
+ const sigv4Present = authSchemes.find((s) => {
137
+ const name = s.name.toLowerCase();
138
+ return name !== "sigv4a" && name.startsWith("sigv4");
139
+ });
140
+ if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
141
+ continue;
142
+ }
143
+ }
144
+ else if (name.startsWith("sigv4")) {
145
+ schemeId = "aws.auth#sigv4";
146
+ }
147
+ else {
148
+ throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
149
+ }
150
+ const createOption = createHttpAuthOptionFunctions[schemeId];
151
+ if (!createOption) {
152
+ throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
153
+ }
154
+ const option = createOption(authParameters);
155
+ option.schemeId = schemeId;
156
+ option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
157
+ options.push(option);
158
+ }
159
+ return options;
160
+ };
161
+ return endpointRuleSetHttpAuthSchemeProvider;
162
+ };
163
+ const _defaultPartnerCentralRevenueMeasurementHttpAuthSchemeProvider = (authParameters) => {
164
+ const options = [];
165
+ switch (authParameters.operation) {
166
+ default: {
167
+ options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
168
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
169
+ }
170
+ }
171
+ return options;
172
+ };
173
+ const defaultPartnerCentralRevenueMeasurementHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultPartnerCentralRevenueMeasurementHttpAuthSchemeProvider, {
174
+ "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
175
+ "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
176
+ });
177
+ const resolveHttpAuthSchemeConfig = (config) => {
178
+ const config_0 = resolveAwsSdkSigV4Config(config);
179
+ const config_1 = resolveAwsSdkSigV4AConfig(config_0);
180
+ return Object.assign(config_1, {
181
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
182
+ });
183
+ };
184
+
185
+ const resolveClientEndpointParameters = (options) => {
186
+ return Object.assign(options, {
187
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
188
+ defaultSigningName: "partnercentral",
189
+ });
190
+ };
191
+ const commonParams = {
192
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
193
+ Endpoint: { type: "builtInParams", name: "endpoint" },
194
+ Region: { type: "builtInParams", name: "region" },
195
+ };
196
+
197
+ var version = "3.0.0";
198
+ var packageInfo = {
199
+ version: version};
200
+
201
+ class PartnerCentralRevenueMeasurementServiceException extends ServiceException {
202
+ constructor(options) {
203
+ super(options);
204
+ Object.setPrototypeOf(this, PartnerCentralRevenueMeasurementServiceException.prototype);
205
+ }
206
+ }
207
+
208
+ class AccessDeniedException extends PartnerCentralRevenueMeasurementServiceException {
209
+ name = "AccessDeniedException";
210
+ $fault = "client";
211
+ Message;
212
+ Reason;
213
+ constructor(opts) {
214
+ super({
215
+ name: "AccessDeniedException",
216
+ $fault: "client",
217
+ ...opts,
218
+ });
219
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
220
+ this.Message = opts.Message;
221
+ this.Reason = opts.Reason;
222
+ }
223
+ }
224
+ class ConflictException extends PartnerCentralRevenueMeasurementServiceException {
225
+ name = "ConflictException";
226
+ $fault = "client";
227
+ Message;
228
+ Reason;
229
+ constructor(opts) {
230
+ super({
231
+ name: "ConflictException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, ConflictException.prototype);
236
+ this.Message = opts.Message;
237
+ this.Reason = opts.Reason;
238
+ }
239
+ }
240
+ class InternalServerException extends PartnerCentralRevenueMeasurementServiceException {
241
+ name = "InternalServerException";
242
+ $fault = "server";
243
+ $retryable = {};
244
+ Message;
245
+ constructor(opts) {
246
+ super({
247
+ name: "InternalServerException",
248
+ $fault: "server",
249
+ ...opts,
250
+ });
251
+ Object.setPrototypeOf(this, InternalServerException.prototype);
252
+ this.Message = opts.Message;
253
+ }
254
+ }
255
+ class ResourceNotFoundException extends PartnerCentralRevenueMeasurementServiceException {
256
+ name = "ResourceNotFoundException";
257
+ $fault = "client";
258
+ Message;
259
+ Reason;
260
+ constructor(opts) {
261
+ super({
262
+ name: "ResourceNotFoundException",
263
+ $fault: "client",
264
+ ...opts,
265
+ });
266
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
267
+ this.Message = opts.Message;
268
+ this.Reason = opts.Reason;
269
+ }
270
+ }
271
+ class ServiceQuotaExceededException extends PartnerCentralRevenueMeasurementServiceException {
272
+ name = "ServiceQuotaExceededException";
273
+ $fault = "client";
274
+ Message;
275
+ Reason;
276
+ constructor(opts) {
277
+ super({
278
+ name: "ServiceQuotaExceededException",
279
+ $fault: "client",
280
+ ...opts,
281
+ });
282
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
283
+ this.Message = opts.Message;
284
+ this.Reason = opts.Reason;
285
+ }
286
+ }
287
+ class ThrottlingException extends PartnerCentralRevenueMeasurementServiceException {
288
+ name = "ThrottlingException";
289
+ $fault = "client";
290
+ $retryable = {};
291
+ Message;
292
+ ServiceCode;
293
+ QuotaCode;
294
+ constructor(opts) {
295
+ super({
296
+ name: "ThrottlingException",
297
+ $fault: "client",
298
+ ...opts,
299
+ });
300
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
301
+ this.Message = opts.Message;
302
+ this.ServiceCode = opts.ServiceCode;
303
+ this.QuotaCode = opts.QuotaCode;
304
+ }
305
+ }
306
+ class ValidationException extends PartnerCentralRevenueMeasurementServiceException {
307
+ name = "ValidationException";
308
+ $fault = "client";
309
+ Message;
310
+ Reason;
311
+ FieldList;
312
+ constructor(opts) {
313
+ super({
314
+ name: "ValidationException",
315
+ $fault: "client",
316
+ ...opts,
317
+ });
318
+ Object.setPrototypeOf(this, ValidationException.prototype);
319
+ this.Message = opts.Message;
320
+ this.Reason = opts.Reason;
321
+ this.FieldList = opts.FieldList;
322
+ }
323
+ }
324
+
325
+ const _A = "Arn";
326
+ const _ADE = "AccessDeniedException";
327
+ const _AEF = "AfterEffectiveFrom";
328
+ const _AEU = "AfterEffectiveUntil";
329
+ const _AS = "AttributionSummary";
330
+ const _Ac = "Action";
331
+ const _BEF = "BeforeEffectiveFrom";
332
+ const _BEU = "BeforeEffectiveUntil";
333
+ const _C = "Catalog";
334
+ const _CA = "CreatedAfter";
335
+ const _CAAI = "CustomerAwsAccountId";
336
+ const _CAAIF = "CustomerAwsAccountIdFilters";
337
+ const _CAAIFL = "CustomerAwsAccountIdFilterList";
338
+ const _CB = "CreatedBefore";
339
+ const _CD = "CreatedDate";
340
+ const _CE = "ConflictException";
341
+ const _CMRS = "CreateMarketplaceRevenueShare";
342
+ const _CMRSA = "CreateMarketplaceRevenueShareAllocation";
343
+ const _CMRSAI = "CreateMarketplaceRevenueShareAllocationInput";
344
+ const _CMRSAO = "CreateMarketplaceRevenueShareAllocationOutput";
345
+ const _CMRSI = "CreateMarketplaceRevenueShareInput";
346
+ const _CMRSO = "CreateMarketplaceRevenueShareOutput";
347
+ const _CRA = "CreateRevenueAttribution";
348
+ const _CRAI = "CreateRevenueAttributionInput";
349
+ const _CRAO = "CreateRevenueAttributionOutput";
350
+ const _CT = "ClientToken";
351
+ const _Co = "Code";
352
+ const _D = "Description";
353
+ const _EA = "EndedAt";
354
+ const _EC = "ErrorCode";
355
+ const _EDL = "ErrorDetailList";
356
+ const _EF = "EffectiveFrom";
357
+ const _EI = "EntityIdentifier";
358
+ const _EIF = "EntityIdentifierFilters";
359
+ const _EIn = "EntityId";
360
+ const _EM = "ErrorMessage";
361
+ const _EN = "EntityName";
362
+ const _ET = "EntityType";
363
+ const _ETF = "EntityTypeFilters";
364
+ const _EU = "EffectiveUntil";
365
+ const _FL = "FieldList";
366
+ const _GMRS = "GetMarketplaceRevenueShare";
367
+ const _GMRSA = "GetMarketplaceRevenueShareAllocation";
368
+ const _GMRSAI = "GetMarketplaceRevenueShareAllocationInput";
369
+ const _GMRSAO = "GetMarketplaceRevenueShareAllocationOutput";
370
+ const _GMRSI = "GetMarketplaceRevenueShareInput";
371
+ const _GMRSO = "GetMarketplaceRevenueShareOutput";
372
+ const _GRA = "GetRevenueAttribution";
373
+ const _GRAA = "GetRevenueAttributionAllocation";
374
+ const _GRAAI = "GetRevenueAttributionAllocationInput";
375
+ const _GRAAO = "GetRevenueAttributionAllocationOutput";
376
+ const _GRAAT = "GetRevenueAttributionAllocationsTask";
377
+ const _GRAATI = "GetRevenueAttributionAllocationsTaskInput";
378
+ const _GRAATO = "GetRevenueAttributionAllocationsTaskOutput";
379
+ const _GRAI = "GetRevenueAttributionInput";
380
+ const _GRAO = "GetRevenueAttributionOutput";
381
+ const _I = "Id";
382
+ const _ISE = "InternalServerException";
383
+ const _Id = "Identifier";
384
+ const _Ide = "Identifiers";
385
+ const _K = "Key";
386
+ const _LMD = "LastModifiedDate";
387
+ const _LMRS = "ListMarketplaceRevenueShares";
388
+ const _LMRSA = "ListMarketplaceRevenueShareAllocations";
389
+ const _LMRSAI = "ListMarketplaceRevenueShareAllocationsInput";
390
+ const _LMRSAO = "ListMarketplaceRevenueShareAllocationsOutput";
391
+ const _LMRSI = "ListMarketplaceRevenueSharesInput";
392
+ const _LMRSO = "ListMarketplaceRevenueSharesOutput";
393
+ const _LMRSR = "LatestMarketplaceRevenueShareRevision";
394
+ const _LR = "LatestRevision";
395
+ const _LRA = "ListRevenueAttributions";
396
+ const _LRAA = "ListRevenueAttributionAllocations";
397
+ const _LRAAI = "ListRevenueAttributionAllocationsInput";
398
+ const _LRAAO = "ListRevenueAttributionAllocationsOutput";
399
+ const _LRAI = "ListRevenueAttributionsInput";
400
+ const _LRAO = "ListRevenueAttributionsOutput";
401
+ const _LTFR = "ListTagsForResource";
402
+ const _LTFRI = "ListTagsForResourceInput";
403
+ const _LTFRO = "ListTagsForResourceOutput";
404
+ const _M = "Message";
405
+ const _MP = "MarketplaceProduct";
406
+ const _MPS = "MarketplaceProductSummary";
407
+ const _MR = "MaxResults";
408
+ const _MRSAI = "MarketplaceRevenueShareAllocationId";
409
+ const _MRSAS = "MarketplaceRevenueShareAllocationSummaries";
410
+ const _MRSASL = "MarketplaceRevenueShareAllocationSummaryList";
411
+ const _MRSASa = "MarketplaceRevenueShareAllocationSummary";
412
+ const _MRSR = "MarketplaceRevenueShareRevision";
413
+ const _MRSS = "MarketplaceRevenueShareSummaries";
414
+ const _MRSSL = "MarketplaceRevenueShareSummaryList";
415
+ const _MRSSa = "MarketplaceRevenueShareSummary";
416
+ const _MRSTL = "MarketplaceRevenueShareTagList";
417
+ const _N = "Name";
418
+ const _NT = "NextToken";
419
+ const _PC = "ProductCode";
420
+ const _PCr = "ProductCodes";
421
+ const _PI = "ProductId";
422
+ const _PIr = "ProductIdentifier";
423
+ const _PIro = "ProductIds";
424
+ const _PN = "ProductName";
425
+ const _QC = "QuotaCode";
426
+ const _R = "Reason";
427
+ const _RAA = "RevenueAttributionArn";
428
+ const _RAAED = "RevenueAttributionAllocationErrorDetail";
429
+ const _RAAEDL = "RevenueAttributionAllocationErrorDetailList";
430
+ const _RAAI = "RevenueAttributionAllocationId";
431
+ const _RAAS = "RevenueAttributionAllocationSummaries";
432
+ const _RAASL = "RevenueAttributionAllocationSummaryList";
433
+ const _RAASe = "RevenueAttributionAllocationSummary";
434
+ const _RAI = "RevenueAttributionIdentifier";
435
+ const _RALR = "RevenueAttributionLatestRevision";
436
+ const _RAR = "RevenueAttributionRevision";
437
+ const _RAS = "RevenueAttributionSummaries";
438
+ const _RNFE = "ResourceNotFoundException";
439
+ const _RSA = "RevenueShareAllocation";
440
+ const _RSACL = "RevenueShareAllocationChangeList";
441
+ const _RSAe = "RevenueShareAllocations";
442
+ const _RSP = "RevenueSharePercent";
443
+ const _Re = "Revision";
444
+ const _S = "Status";
445
+ const _SA = "StartedAt";
446
+ const _SB = "SortBy";
447
+ const _SC = "ServiceCode";
448
+ const _SF = "StatusFilter";
449
+ const _SO = "SortOrder";
450
+ const _SQEE = "ServiceQuotaExceededException";
451
+ const _SRAAT = "StartRevenueAttributionAllocationsTask";
452
+ const _SRAATI = "StartRevenueAttributionAllocationsTaskInput";
453
+ const _SRAATO = "StartRevenueAttributionAllocationsTaskOutput";
454
+ const _T = "Tags";
455
+ const _TAMRSAC = "TotalActiveMarketplaceRevenueShareAllocationCount";
456
+ const _TARAAC = "TotalActiveRevenueAttributionAllocationCount";
457
+ const _TE = "ThrottlingException";
458
+ const _TI = "TaskId";
459
+ const _TL = "TagList";
460
+ const _TM = "TenancyModel";
461
+ const _TMRSAC = "TotalMarketplaceRevenueShareAllocationCount";
462
+ const _TR = "TagResource";
463
+ const _TRAAC = "TotalRevenueAttributionAllocationCount";
464
+ const _TRAAR = "TotalRevenueAttributionAllocationRecords";
465
+ const _TRI = "TagResourceInput";
466
+ const _Ta = "Tag";
467
+ const _UMRSA = "UpdateMarketplaceRevenueShareAllocation";
468
+ const _UMRSAI = "UpdateMarketplaceRevenueShareAllocationInput";
469
+ const _UMRSAO = "UpdateMarketplaceRevenueShareAllocationOutput";
470
+ const _UR = "UntagResource";
471
+ const _URA = "UpdateRevenueAttribution";
472
+ const _URAI = "UpdateRevenueAttributionInput";
473
+ const _URAO = "UpdateRevenueAttributionOutput";
474
+ const _URI = "UntagResourceInput";
475
+ const _V = "Value";
476
+ const _VE = "ValidationException";
477
+ const _VEF = "ValidationExceptionField";
478
+ const _VEFL = "ValidationExceptionFieldList";
479
+ const _c = "client";
480
+ const _e = "error";
481
+ const _h = "http";
482
+ const _hE = "httpError";
483
+ const _rA = "resourceArn";
484
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.partnercentralrevenuemeasurement";
485
+ const _se = "server";
486
+ const _t = "tags";
487
+ const _tK = "tagKeys";
488
+ const n0 = "com.amazonaws.partnercentralrevenuemeasurement";
489
+ const _s_registry = TypeRegistry.for(_s);
490
+ var PartnerCentralRevenueMeasurementServiceException$ = [-3, _s, "PartnerCentralRevenueMeasurementServiceException", 0, [], []];
491
+ _s_registry.registerError(PartnerCentralRevenueMeasurementServiceException$, PartnerCentralRevenueMeasurementServiceException);
492
+ const n0_registry = TypeRegistry.for(n0);
493
+ var AccessDeniedException$ = [-3, n0, _ADE,
494
+ { [_e]: _c, [_hE]: 403 },
495
+ [_M, _R],
496
+ [0, 0], 2
497
+ ];
498
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
499
+ var ConflictException$ = [-3, n0, _CE,
500
+ { [_e]: _c, [_hE]: 409 },
501
+ [_M, _R],
502
+ [0, 0], 2
503
+ ];
504
+ n0_registry.registerError(ConflictException$, ConflictException);
505
+ var InternalServerException$ = [-3, n0, _ISE,
506
+ { [_e]: _se, [_hE]: 500 },
507
+ [_M],
508
+ [0], 1
509
+ ];
510
+ n0_registry.registerError(InternalServerException$, InternalServerException);
511
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
512
+ { [_e]: _c, [_hE]: 404 },
513
+ [_M, _R],
514
+ [0, 0], 2
515
+ ];
516
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
517
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
518
+ { [_e]: _c, [_hE]: 402 },
519
+ [_M, _R],
520
+ [0, 0], 2
521
+ ];
522
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
523
+ var ThrottlingException$ = [-3, n0, _TE,
524
+ { [_e]: _c, [_hE]: 429 },
525
+ [_M, _SC, _QC],
526
+ [0, 0, 0], 1
527
+ ];
528
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
529
+ var ValidationException$ = [-3, n0, _VE,
530
+ { [_e]: _c, [_hE]: 400 },
531
+ [_M, _R, _FL],
532
+ [0, 0, () => ValidationExceptionFieldList], 2
533
+ ];
534
+ n0_registry.registerError(ValidationException$, ValidationException);
535
+ const errorTypeRegistries = [
536
+ _s_registry,
537
+ n0_registry,
538
+ ];
539
+ var CustomerAwsAccountId = [0, n0, _CAAI, 8, 0];
540
+ var AttributionSummary$ = [3, n0, _AS,
541
+ 0,
542
+ [_TM, _A, _I, _C, _N, _MP, _CD, _LMD, _LR, _EF, _EU, _TARAAC, _TRAAC],
543
+ [0, 0, 0, 0, 0, () => MarketplaceProductSummary$, 4, 4, 0, 0, 0, 1, 1], 1
544
+ ];
545
+ var CreateMarketplaceRevenueShareAllocationInput$ = [3, n0, _CMRSAI,
546
+ 0,
547
+ [_C, _PI, _EF, _RSP, _CT, _EU],
548
+ [0, 0, 0, 0, [0, 4], 0], 4
549
+ ];
550
+ var CreateMarketplaceRevenueShareAllocationOutput$ = [3, n0, _CMRSAO,
551
+ 0,
552
+ [_MRSAI, _PI, _A, _EF, _RSP, _S, _PN, _EU, _CD, _LMD, _LMRSR],
553
+ [0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0], 6
554
+ ];
555
+ var CreateMarketplaceRevenueShareInput$ = [3, n0, _CMRSI,
556
+ 0,
557
+ [_C, _PI, _CT, _T],
558
+ [0, 0, [0, 4], () => MarketplaceRevenueShareTagList], 2
559
+ ];
560
+ var CreateMarketplaceRevenueShareOutput$ = [3, n0, _CMRSO,
561
+ 0,
562
+ [_PI, _A, _C, _PC, _PN, _CD, _LMD, _Re],
563
+ [0, 0, 0, 0, 0, 4, 4, 1], 2
564
+ ];
565
+ var CreateRevenueAttributionInput$ = [3, n0, _CRAI,
566
+ 0,
567
+ [_C, _N, _TM, _CT, _D, _PIr, _T],
568
+ [0, 0, 0, [0, 4], 0, 0, () => TagList], 3
569
+ ];
570
+ var CreateRevenueAttributionOutput$ = [3, n0, _CRAO,
571
+ 0,
572
+ [_I, _A, _TM, _N, _D, _MP, _Re],
573
+ [0, 0, 0, 0, 0, () => MarketplaceProductSummary$, 0], 3
574
+ ];
575
+ var GetMarketplaceRevenueShareAllocationInput$ = [3, n0, _GMRSAI,
576
+ 0,
577
+ [_C, _PI, _MRSAI, _MRSR],
578
+ [0, 0, 0, 0], 3
579
+ ];
580
+ var GetMarketplaceRevenueShareAllocationOutput$ = [3, n0, _GMRSAO,
581
+ 0,
582
+ [_MRSAI, _PI, _A, _EF, _RSP, _S, _PN, _EU, _CD, _LMD, _LMRSR],
583
+ [0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0], 6
584
+ ];
585
+ var GetMarketplaceRevenueShareInput$ = [3, n0, _GMRSI,
586
+ 0,
587
+ [_C, _PI, _Re],
588
+ [0, 0, 1], 2
589
+ ];
590
+ var GetMarketplaceRevenueShareOutput$ = [3, n0, _GMRSO,
591
+ 0,
592
+ [_PI, _A, _C, _PC, _PN, _CD, _LMD, _Re, _LR, _TAMRSAC, _TMRSAC],
593
+ [0, 0, 0, 0, 0, 4, 4, 1, 1, 1, 1], 3
594
+ ];
595
+ var GetRevenueAttributionAllocationInput$ = [3, n0, _GRAAI,
596
+ 0,
597
+ [_C, _RAI, _RAAI, _RAR],
598
+ [0, 0, 0, 0], 3
599
+ ];
600
+ var GetRevenueAttributionAllocationOutput$ = [3, n0, _GRAAO,
601
+ 0,
602
+ [_RAAI, _RAI, _ET, _EI, _CAAI, _RSP, _EF, _EU, _S, _CD, _LMD, _RAR, _RALR, _EN],
603
+ [0, 0, 0, 0, [() => CustomerAwsAccountId, 0], 0, 0, 0, 0, 4, 4, 0, 0, 0], 13
604
+ ];
605
+ var GetRevenueAttributionAllocationsTaskInput$ = [3, n0, _GRAATI,
606
+ 0,
607
+ [_C, _RAI],
608
+ [0, 0], 2
609
+ ];
610
+ var GetRevenueAttributionAllocationsTaskOutput$ = [3, n0, _GRAATO,
611
+ 0,
612
+ [_TI, _S, _C, _RAA, _SA, _TRAAR, _EA, _D, _RALR, _EDL],
613
+ [0, 0, 0, 0, 4, 1, 4, 0, 0, [() => RevenueAttributionAllocationErrorDetailList, 0]], 6
614
+ ];
615
+ var GetRevenueAttributionInput$ = [3, n0, _GRAI,
616
+ 0,
617
+ [_C, _Id, _Re],
618
+ [0, 0, 0], 2
619
+ ];
620
+ var GetRevenueAttributionOutput$ = [3, n0, _GRAO,
621
+ 0,
622
+ [_A, _I, _C, _TM, _N, _D, _MP, _CD, _LMD, _Re, _LR, _EF, _EU, _TARAAC, _TRAAC],
623
+ [0, 0, 0, 0, 0, 0, () => MarketplaceProductSummary$, 4, 4, 0, 0, 0, 0, 1, 1], 4
624
+ ];
625
+ var ListMarketplaceRevenueShareAllocationsInput$ = [3, n0, _LMRSAI,
626
+ 0,
627
+ [_C, _PI, _S, _AEF, _BEF, _SB, _SO, _MR, _NT, _MRSR],
628
+ [0, 0, 0, 0, 0, 0, 0, 1, 0, 0], 2
629
+ ];
630
+ var ListMarketplaceRevenueShareAllocationsOutput$ = [3, n0, _LMRSAO,
631
+ 0,
632
+ [_MRSAS, _NT],
633
+ [() => MarketplaceRevenueShareAllocationSummaryList, 0], 1
634
+ ];
635
+ var ListMarketplaceRevenueSharesInput$ = [3, n0, _LMRSI,
636
+ 0,
637
+ [_C, _PIro, _PCr, _MR, _NT, _SB, _SO, _CA, _CB],
638
+ [0, 64 | 0, 64 | 0, 1, 0, 0, 0, 4, 4], 1
639
+ ];
640
+ var ListMarketplaceRevenueSharesOutput$ = [3, n0, _LMRSO,
641
+ 0,
642
+ [_MRSS, _NT],
643
+ [() => MarketplaceRevenueShareSummaryList, 0], 1
644
+ ];
645
+ var ListRevenueAttributionAllocationsInput$ = [3, n0, _LRAAI,
646
+ 0,
647
+ [_C, _RAI, _ETF, _EIF, _CAAIF, _SF, _AEF, _BEF, _AEU, _BEU, _SB, _SO, _RAR, _MR, _NT],
648
+ [0, 0, 64 | 0, 64 | 0, [() => CustomerAwsAccountIdFilterList, 0], 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], 2
649
+ ];
650
+ var ListRevenueAttributionAllocationsOutput$ = [3, n0, _LRAAO,
651
+ 0,
652
+ [_RAAS, _NT],
653
+ [[() => RevenueAttributionAllocationSummaryList, 0], 0], 1
654
+ ];
655
+ var ListRevenueAttributionsInput$ = [3, n0, _LRAI,
656
+ 0,
657
+ [_C, _Ide, _CA, _CB, _SB, _SO, _MR, _NT],
658
+ [0, 64 | 0, 4, 4, 0, 0, 1, 0], 1
659
+ ];
660
+ var ListRevenueAttributionsOutput$ = [3, n0, _LRAO,
661
+ 0,
662
+ [_RAS, _NT],
663
+ [() => RevenueAttributionSummaries, 0]
664
+ ];
665
+ var ListTagsForResourceInput$ = [3, n0, _LTFRI,
666
+ 0,
667
+ [_rA],
668
+ [0], 1
669
+ ];
670
+ var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
671
+ 0,
672
+ [_t],
673
+ [() => TagList]
674
+ ];
675
+ var MarketplaceProductSummary$ = [3, n0, _MPS,
676
+ 0,
677
+ [_PI, _PC, _PN],
678
+ [0, 0, 0]
679
+ ];
680
+ var MarketplaceRevenueShareAllocationSummary$ = [3, n0, _MRSASa,
681
+ 0,
682
+ [_MRSAI, _PI, _A, _EF, _RSP, _S, _PN, _EU, _CD, _LMD],
683
+ [0, 0, 0, 0, 0, 0, 0, 0, 4, 4], 6
684
+ ];
685
+ var MarketplaceRevenueShareSummary$ = [3, n0, _MRSSa,
686
+ 0,
687
+ [_PI, _A, _C, _PC, _PN, _CD, _LMD, _LR, _TAMRSAC, _TMRSAC],
688
+ [0, 0, 0, 0, 0, 4, 4, 1, 1, 1], 2
689
+ ];
690
+ var RevenueAttributionAllocationErrorDetail$ = [3, n0, _RAAED,
691
+ 0,
692
+ [_ET, _EIn, _CAAI, _EF, _EU, _Ac, _EC, _EM, _RAAI],
693
+ [0, 0, [() => CustomerAwsAccountId, 0], 0, 0, 0, 0, 0, 0], 8
694
+ ];
695
+ var RevenueAttributionAllocationSummary$ = [3, n0, _RAASe,
696
+ 0,
697
+ [_RAAI, _RAI, _ET, _EI, _CAAI, _RSP, _EF, _EU, _S, _EN],
698
+ [0, 0, 0, 0, [() => CustomerAwsAccountId, 0], 0, 0, 0, 0, 0], 9
699
+ ];
700
+ var RevenueShareAllocation$ = [3, n0, _RSA,
701
+ 0,
702
+ [_Ac, _ET, _EI, _CAAI, _RSP, _EF, _EU, _RAAI, _S],
703
+ [0, 0, 0, [() => CustomerAwsAccountId, 0], 0, 0, 0, 0, 0], 7
704
+ ];
705
+ var StartRevenueAttributionAllocationsTaskInput$ = [3, n0, _SRAATI,
706
+ 0,
707
+ [_C, _RAI, _RAR, _RSAe, _CT, _D],
708
+ [0, 0, 0, [() => RevenueShareAllocationChangeList, 0], [0, 4], 0], 4
709
+ ];
710
+ var StartRevenueAttributionAllocationsTaskOutput$ = [3, n0, _SRAATO,
711
+ 0,
712
+ [_TI, _S, _C, _RAA, _SA, _TRAAR],
713
+ [0, 0, 0, 0, 4, 1], 6
714
+ ];
715
+ var Tag$ = [3, n0, _Ta,
716
+ 0,
717
+ [_K, _V],
718
+ [0, 0], 2
719
+ ];
720
+ var TagResourceInput$ = [3, n0, _TRI,
721
+ 0,
722
+ [_rA, _t],
723
+ [0, () => TagList], 2
724
+ ];
725
+ var UntagResourceInput$ = [3, n0, _URI,
726
+ 0,
727
+ [_rA, _tK],
728
+ [0, 64 | 0], 2
729
+ ];
730
+ var UpdateMarketplaceRevenueShareAllocationInput$ = [3, n0, _UMRSAI,
731
+ 0,
732
+ [_C, _PI, _MRSAI, _MRSR, _CT, _EF, _EU, _RSP, _S],
733
+ [0, 0, 0, 0, [0, 4], 0, 0, 0, 0], 4
734
+ ];
735
+ var UpdateMarketplaceRevenueShareAllocationOutput$ = [3, n0, _UMRSAO,
736
+ 0,
737
+ [_MRSAI, _PI, _A, _EF, _RSP, _S, _PN, _EU, _CD, _LMD, _LMRSR],
738
+ [0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0], 6
739
+ ];
740
+ var UpdateRevenueAttributionInput$ = [3, n0, _URAI,
741
+ 0,
742
+ [_C, _Id, _Re, _CT, _D],
743
+ [0, 0, 0, [0, 4], 0], 3
744
+ ];
745
+ var UpdateRevenueAttributionOutput$ = [3, n0, _URAO,
746
+ 0,
747
+ [_I, _A, _LMD, _D, _LR],
748
+ [0, 0, 4, 0, 0], 3
749
+ ];
750
+ var ValidationExceptionField$ = [3, n0, _VEF,
751
+ 0,
752
+ [_N, _M, _Co],
753
+ [0, 0, 0], 3
754
+ ];
755
+ var __Unit = "unit";
756
+ var CustomerAwsAccountIdFilterList = [1, n0, _CAAIFL,
757
+ 0, [() => CustomerAwsAccountId,
758
+ 0]
759
+ ];
760
+ var MarketplaceRevenueShareAllocationSummaryList = [1, n0, _MRSASL,
761
+ 0, () => MarketplaceRevenueShareAllocationSummary$
762
+ ];
763
+ var MarketplaceRevenueShareSummaryList = [1, n0, _MRSSL,
764
+ 0, () => MarketplaceRevenueShareSummary$
765
+ ];
766
+ var MarketplaceRevenueShareTagList = [1, n0, _MRSTL,
767
+ 0, () => Tag$
768
+ ];
769
+ var RevenueAttributionAllocationErrorDetailList = [1, n0, _RAAEDL,
770
+ 0, [() => RevenueAttributionAllocationErrorDetail$,
771
+ 0]
772
+ ];
773
+ var RevenueAttributionAllocationSummaryList = [1, n0, _RAASL,
774
+ 0, [() => RevenueAttributionAllocationSummary$,
775
+ 0]
776
+ ];
777
+ var RevenueAttributionSummaries = [1, n0, _RAS,
778
+ 0, () => AttributionSummary$
779
+ ];
780
+ var RevenueShareAllocationChangeList = [1, n0, _RSACL,
781
+ 0, [() => RevenueShareAllocation$,
782
+ 0]
783
+ ];
784
+ var TagList = [1, n0, _TL,
785
+ 0, () => Tag$
786
+ ];
787
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
788
+ 0, () => ValidationExceptionField$
789
+ ];
790
+ var CreateMarketplaceRevenueShare$ = [9, n0, _CMRS,
791
+ { [_h]: ["POST", "/CreateMarketplaceRevenueShare", 200] }, () => CreateMarketplaceRevenueShareInput$, () => CreateMarketplaceRevenueShareOutput$
792
+ ];
793
+ var CreateMarketplaceRevenueShareAllocation$ = [9, n0, _CMRSA,
794
+ { [_h]: ["POST", "/CreateMarketplaceRevenueShareAllocation", 200] }, () => CreateMarketplaceRevenueShareAllocationInput$, () => CreateMarketplaceRevenueShareAllocationOutput$
795
+ ];
796
+ var CreateRevenueAttribution$ = [9, n0, _CRA,
797
+ { [_h]: ["POST", "/CreateRevenueAttribution", 200] }, () => CreateRevenueAttributionInput$, () => CreateRevenueAttributionOutput$
798
+ ];
799
+ var GetMarketplaceRevenueShare$ = [9, n0, _GMRS,
800
+ { [_h]: ["POST", "/GetMarketplaceRevenueShare", 200] }, () => GetMarketplaceRevenueShareInput$, () => GetMarketplaceRevenueShareOutput$
801
+ ];
802
+ var GetMarketplaceRevenueShareAllocation$ = [9, n0, _GMRSA,
803
+ { [_h]: ["POST", "/GetMarketplaceRevenueShareAllocation", 200] }, () => GetMarketplaceRevenueShareAllocationInput$, () => GetMarketplaceRevenueShareAllocationOutput$
804
+ ];
805
+ var GetRevenueAttribution$ = [9, n0, _GRA,
806
+ { [_h]: ["POST", "/GetRevenueAttribution", 200] }, () => GetRevenueAttributionInput$, () => GetRevenueAttributionOutput$
807
+ ];
808
+ var GetRevenueAttributionAllocation$ = [9, n0, _GRAA,
809
+ { [_h]: ["POST", "/GetRevenueAttributionAllocation", 200] }, () => GetRevenueAttributionAllocationInput$, () => GetRevenueAttributionAllocationOutput$
810
+ ];
811
+ var GetRevenueAttributionAllocationsTask$ = [9, n0, _GRAAT,
812
+ { [_h]: ["POST", "/GetRevenueAttributionAllocationsTask", 200] }, () => GetRevenueAttributionAllocationsTaskInput$, () => GetRevenueAttributionAllocationsTaskOutput$
813
+ ];
814
+ var ListMarketplaceRevenueShareAllocations$ = [9, n0, _LMRSA,
815
+ { [_h]: ["POST", "/ListMarketplaceRevenueShareAllocations", 200] }, () => ListMarketplaceRevenueShareAllocationsInput$, () => ListMarketplaceRevenueShareAllocationsOutput$
816
+ ];
817
+ var ListMarketplaceRevenueShares$ = [9, n0, _LMRS,
818
+ { [_h]: ["POST", "/ListMarketplaceRevenueShares", 200] }, () => ListMarketplaceRevenueSharesInput$, () => ListMarketplaceRevenueSharesOutput$
819
+ ];
820
+ var ListRevenueAttributionAllocations$ = [9, n0, _LRAA,
821
+ { [_h]: ["POST", "/ListRevenueAttributionAllocations", 200] }, () => ListRevenueAttributionAllocationsInput$, () => ListRevenueAttributionAllocationsOutput$
822
+ ];
823
+ var ListRevenueAttributions$ = [9, n0, _LRA,
824
+ { [_h]: ["POST", "/ListRevenueAttributions", 200] }, () => ListRevenueAttributionsInput$, () => ListRevenueAttributionsOutput$
825
+ ];
826
+ var ListTagsForResource$ = [9, n0, _LTFR,
827
+ { [_h]: ["POST", "/ListTagsForResource", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
828
+ ];
829
+ var StartRevenueAttributionAllocationsTask$ = [9, n0, _SRAAT,
830
+ { [_h]: ["POST", "/StartRevenueAttributionAllocationsTask", 200] }, () => StartRevenueAttributionAllocationsTaskInput$, () => StartRevenueAttributionAllocationsTaskOutput$
831
+ ];
832
+ var TagResource$ = [9, n0, _TR,
833
+ { [_h]: ["POST", "/TagResource", 200] }, () => TagResourceInput$, () => __Unit
834
+ ];
835
+ var UntagResource$ = [9, n0, _UR,
836
+ { [_h]: ["POST", "/UntagResource", 200] }, () => UntagResourceInput$, () => __Unit
837
+ ];
838
+ var UpdateMarketplaceRevenueShareAllocation$ = [9, n0, _UMRSA,
839
+ { [_h]: ["POST", "/UpdateMarketplaceRevenueShareAllocation", 200] }, () => UpdateMarketplaceRevenueShareAllocationInput$, () => UpdateMarketplaceRevenueShareAllocationOutput$
840
+ ];
841
+ var UpdateRevenueAttribution$ = [9, n0, _URA,
842
+ { [_h]: ["POST", "/UpdateRevenueAttribution", 200] }, () => UpdateRevenueAttributionInput$, () => UpdateRevenueAttributionOutput$
843
+ ];
844
+
845
+ const getRuntimeConfig$1 = (config) => {
846
+ return {
847
+ apiVersion: "2022-07-26",
848
+ base64Decoder: config?.base64Decoder ?? fromBase64,
849
+ base64Encoder: config?.base64Encoder ?? toBase64,
850
+ disableHostPrefix: config?.disableHostPrefix ?? false,
851
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
852
+ extensions: config?.extensions ?? [],
853
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPartnerCentralRevenueMeasurementHttpAuthSchemeProvider,
854
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
855
+ {
856
+ schemeId: "aws.auth#sigv4",
857
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
858
+ signer: new AwsSdkSigV4Signer(),
859
+ },
860
+ {
861
+ schemeId: "aws.auth#sigv4a",
862
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
863
+ signer: new AwsSdkSigV4ASigner(),
864
+ },
865
+ ],
866
+ logger: config?.logger ?? new NoOpLogger(),
867
+ protocol: config?.protocol ?? AwsSmithyRpcV2CborProtocol,
868
+ protocolSettings: config?.protocolSettings ?? {
869
+ defaultNamespace: "com.amazonaws.partnercentralrevenuemeasurement",
870
+ errorTypeRegistries,
871
+ version: "2022-07-26",
872
+ serviceTarget: "PartnerCentralRevenueMeasurement",
873
+ },
874
+ serviceId: config?.serviceId ?? "PartnerCentral Revenue Measurement",
875
+ sha256: config?.sha256 ?? Sha256,
876
+ signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
877
+ urlParser: config?.urlParser ?? parseUrl,
878
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
879
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
880
+ };
881
+ };
882
+
883
+ const getRuntimeConfig = (config) => {
884
+ emitWarningIfUnsupportedVersion(process.version);
885
+ const defaultsMode = resolveDefaultsModeConfig(config);
886
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
887
+ const clientSharedValues = getRuntimeConfig$1(config);
888
+ emitWarningIfUnsupportedVersion$1(process.version);
889
+ const loaderConfig = {
890
+ profile: config?.profile,
891
+ logger: clientSharedValues.logger,
892
+ };
893
+ return {
894
+ ...clientSharedValues,
895
+ ...config,
896
+ runtime: "node",
897
+ defaultsMode,
898
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
899
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
900
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
901
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
902
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
903
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
904
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
905
+ retryMode: config?.retryMode ??
906
+ loadConfig({
907
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
908
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
909
+ }, config),
910
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
911
+ streamCollector: config?.streamCollector ?? streamCollector,
912
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
913
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
914
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
915
+ };
916
+ };
917
+
918
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
919
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
920
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
921
+ let _credentials = runtimeConfig.credentials;
922
+ return {
923
+ setHttpAuthScheme(httpAuthScheme) {
924
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
925
+ if (index === -1) {
926
+ _httpAuthSchemes.push(httpAuthScheme);
927
+ }
928
+ else {
929
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
930
+ }
931
+ },
932
+ httpAuthSchemes() {
933
+ return _httpAuthSchemes;
934
+ },
935
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
936
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
937
+ },
938
+ httpAuthSchemeProvider() {
939
+ return _httpAuthSchemeProvider;
940
+ },
941
+ setCredentials(credentials) {
942
+ _credentials = credentials;
943
+ },
944
+ credentials() {
945
+ return _credentials;
946
+ },
947
+ };
948
+ };
949
+ const resolveHttpAuthRuntimeConfig = (config) => {
950
+ return {
951
+ httpAuthSchemes: config.httpAuthSchemes(),
952
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
953
+ credentials: config.credentials(),
954
+ };
955
+ };
956
+
957
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
958
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
959
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
960
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
961
+ };
962
+
963
+ class PartnerCentralRevenueMeasurementClient extends Client {
964
+ config;
965
+ constructor(...[configuration]) {
966
+ const _config_0 = getRuntimeConfig(configuration || {});
967
+ super(_config_0);
968
+ this.initConfig = _config_0;
969
+ const _config_1 = resolveClientEndpointParameters(_config_0);
970
+ const _config_2 = resolveUserAgentConfig(_config_1);
971
+ const _config_3 = resolveRetryConfig(_config_2);
972
+ const _config_4 = resolveRegionConfig(_config_3);
973
+ const _config_5 = resolveHostHeaderConfig(_config_4);
974
+ const _config_6 = resolveEndpointConfig(_config_5);
975
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
976
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
977
+ this.config = _config_8;
978
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
979
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
980
+ this.middlewareStack.use(getRetryPlugin(this.config));
981
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
982
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
983
+ this.middlewareStack.use(getLoggerPlugin(this.config));
984
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
985
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
986
+ httpAuthSchemeParametersProvider: defaultPartnerCentralRevenueMeasurementHttpAuthSchemeParametersProvider,
987
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
988
+ "aws.auth#sigv4": config.credentials,
989
+ "aws.auth#sigv4a": config.credentials,
990
+ }),
991
+ }));
992
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
993
+ }
994
+ destroy() {
995
+ super.destroy();
996
+ }
997
+ }
998
+
999
+ const command = makeBuilder(commonParams, "PartnerCentralRevenueMeasurement", "PartnerCentralRevenueMeasurementClient", getEndpointPlugin);
1000
+ const _ep0 = {};
1001
+ const _mw0 = (Command, cs, config, o) => [];
1002
+
1003
+ class CreateMarketplaceRevenueShareAllocationCommand extends command(_ep0, _mw0, "CreateMarketplaceRevenueShareAllocation", CreateMarketplaceRevenueShareAllocation$) {
1004
+ }
1005
+
1006
+ class CreateMarketplaceRevenueShareCommand extends command(_ep0, _mw0, "CreateMarketplaceRevenueShare", CreateMarketplaceRevenueShare$) {
1007
+ }
1008
+
1009
+ class CreateRevenueAttributionCommand extends command(_ep0, _mw0, "CreateRevenueAttribution", CreateRevenueAttribution$) {
1010
+ }
1011
+
1012
+ class GetMarketplaceRevenueShareAllocationCommand extends command(_ep0, _mw0, "GetMarketplaceRevenueShareAllocation", GetMarketplaceRevenueShareAllocation$) {
1013
+ }
1014
+
1015
+ class GetMarketplaceRevenueShareCommand extends command(_ep0, _mw0, "GetMarketplaceRevenueShare", GetMarketplaceRevenueShare$) {
1016
+ }
1017
+
1018
+ class GetRevenueAttributionAllocationCommand extends command(_ep0, _mw0, "GetRevenueAttributionAllocation", GetRevenueAttributionAllocation$) {
1019
+ }
1020
+
1021
+ class GetRevenueAttributionAllocationsTaskCommand extends command(_ep0, _mw0, "GetRevenueAttributionAllocationsTask", GetRevenueAttributionAllocationsTask$) {
1022
+ }
1023
+
1024
+ class GetRevenueAttributionCommand extends command(_ep0, _mw0, "GetRevenueAttribution", GetRevenueAttribution$) {
1025
+ }
1026
+
1027
+ class ListMarketplaceRevenueShareAllocationsCommand extends command(_ep0, _mw0, "ListMarketplaceRevenueShareAllocations", ListMarketplaceRevenueShareAllocations$) {
1028
+ }
1029
+
1030
+ class ListMarketplaceRevenueSharesCommand extends command(_ep0, _mw0, "ListMarketplaceRevenueShares", ListMarketplaceRevenueShares$) {
1031
+ }
1032
+
1033
+ class ListRevenueAttributionAllocationsCommand extends command(_ep0, _mw0, "ListRevenueAttributionAllocations", ListRevenueAttributionAllocations$) {
1034
+ }
1035
+
1036
+ class ListRevenueAttributionsCommand extends command(_ep0, _mw0, "ListRevenueAttributions", ListRevenueAttributions$) {
1037
+ }
1038
+
1039
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1040
+ }
1041
+
1042
+ class StartRevenueAttributionAllocationsTaskCommand extends command(_ep0, _mw0, "StartRevenueAttributionAllocationsTask", StartRevenueAttributionAllocationsTask$) {
1043
+ }
1044
+
1045
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1046
+ }
1047
+
1048
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1049
+ }
1050
+
1051
+ class UpdateMarketplaceRevenueShareAllocationCommand extends command(_ep0, _mw0, "UpdateMarketplaceRevenueShareAllocation", UpdateMarketplaceRevenueShareAllocation$) {
1052
+ }
1053
+
1054
+ class UpdateRevenueAttributionCommand extends command(_ep0, _mw0, "UpdateRevenueAttribution", UpdateRevenueAttribution$) {
1055
+ }
1056
+
1057
+ const paginateListMarketplaceRevenueShareAllocations = createPaginator(PartnerCentralRevenueMeasurementClient, ListMarketplaceRevenueShareAllocationsCommand, "NextToken", "NextToken", "MaxResults");
1058
+
1059
+ const paginateListMarketplaceRevenueShares = createPaginator(PartnerCentralRevenueMeasurementClient, ListMarketplaceRevenueSharesCommand, "NextToken", "NextToken", "MaxResults");
1060
+
1061
+ const paginateListRevenueAttributionAllocations = createPaginator(PartnerCentralRevenueMeasurementClient, ListRevenueAttributionAllocationsCommand, "NextToken", "NextToken", "MaxResults");
1062
+
1063
+ const paginateListRevenueAttributions = createPaginator(PartnerCentralRevenueMeasurementClient, ListRevenueAttributionsCommand, "NextToken", "NextToken", "MaxResults");
1064
+
1065
+ const commands = {
1066
+ CreateMarketplaceRevenueShareCommand,
1067
+ CreateMarketplaceRevenueShareAllocationCommand,
1068
+ CreateRevenueAttributionCommand,
1069
+ GetMarketplaceRevenueShareCommand,
1070
+ GetMarketplaceRevenueShareAllocationCommand,
1071
+ GetRevenueAttributionCommand,
1072
+ GetRevenueAttributionAllocationCommand,
1073
+ GetRevenueAttributionAllocationsTaskCommand,
1074
+ ListMarketplaceRevenueShareAllocationsCommand,
1075
+ ListMarketplaceRevenueSharesCommand,
1076
+ ListRevenueAttributionAllocationsCommand,
1077
+ ListRevenueAttributionsCommand,
1078
+ ListTagsForResourceCommand,
1079
+ StartRevenueAttributionAllocationsTaskCommand,
1080
+ TagResourceCommand,
1081
+ UntagResourceCommand,
1082
+ UpdateMarketplaceRevenueShareAllocationCommand,
1083
+ UpdateRevenueAttributionCommand,
1084
+ };
1085
+ const paginators = {
1086
+ paginateListMarketplaceRevenueShareAllocations,
1087
+ paginateListMarketplaceRevenueShares,
1088
+ paginateListRevenueAttributionAllocations,
1089
+ paginateListRevenueAttributions,
1090
+ };
1091
+ class PartnerCentralRevenueMeasurement extends PartnerCentralRevenueMeasurementClient {
1092
+ }
1093
+ createAggregatedClient(commands, PartnerCentralRevenueMeasurement, { paginators });
1094
+
1095
+ const AccessDeniedExceptionReason = {
1096
+ ACCESS_DENIED: "ACCESS_DENIED",
1097
+ };
1098
+ const AllocationStatus = {
1099
+ ACTIVE: "ACTIVE",
1100
+ INACTIVE: "INACTIVE",
1101
+ };
1102
+ const AttributionSortBy = {
1103
+ LAST_MODIFIED_DATE: "LastModifiedDate",
1104
+ };
1105
+ const CatalogName = {
1106
+ AWS: "AWS",
1107
+ SANDBOX: "Sandbox",
1108
+ };
1109
+ const TenancyModel = {
1110
+ MULTI_TENANT: "MULTI_TENANT",
1111
+ SINGLE_TENANT: "SINGLE_TENANT",
1112
+ };
1113
+ const ConflictExceptionReason = {
1114
+ CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION",
1115
+ CONFLICT_CLIENT_TOKEN: "CONFLICT_CLIENT_TOKEN",
1116
+ RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS",
1117
+ REVISION_MISMATCH: "REVISION_MISMATCH",
1118
+ };
1119
+ const ResourceNotFoundExceptionReason = {
1120
+ RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
1121
+ };
1122
+ const ServiceQuotaExceededExceptionReason = {
1123
+ ATTRIBUTION_LIMIT_EXCEEDED: "ATTRIBUTION_LIMIT_EXCEEDED",
1124
+ TAG_LIMIT_EXCEEDED: "TAG_LIMIT_EXCEEDED",
1125
+ };
1126
+ const FieldValidationCode = {
1127
+ ACTION_NOT_PERMITTED: "ACTION_NOT_PERMITTED",
1128
+ DUPLICATE_VALUE: "DUPLICATE_VALUE",
1129
+ INVALID_ENUM_VALUE: "INVALID_ENUM_VALUE",
1130
+ INVALID_NUMBER_FORMAT: "INVALID_NUMBER_FORMAT",
1131
+ INVALID_STRING_FORMAT: "INVALID_STRING_FORMAT",
1132
+ INVALID_STRING_LENGTH: "INVALID_STRING_LENGTH",
1133
+ INVALID_VALUE: "INVALID_VALUE",
1134
+ REQUIRED_FIELD_MISSING: "REQUIRED_FIELD_MISSING",
1135
+ TOO_MANY_VALUES: "TOO_MANY_VALUES",
1136
+ };
1137
+ const ValidationExceptionReason = {
1138
+ BUSINESS_VALIDATION_FAILED: "BUSINESS_VALIDATION_FAILED",
1139
+ REQUEST_VALIDATION_FAILED: "REQUEST_VALIDATION_FAILED",
1140
+ };
1141
+ const MarketplaceRevenueShareAllocationSortField = {
1142
+ EFFECTIVE_FROM: "EffectiveFrom",
1143
+ };
1144
+ const SortOrder = {
1145
+ ASCENDING: "ASCENDING",
1146
+ DESCENDING: "DESCENDING",
1147
+ };
1148
+ const MarketplaceRevenueShareSortBy = {
1149
+ LAST_MODIFIED_DATE: "LastModifiedDate",
1150
+ };
1151
+ const EntityType = {
1152
+ OFFER: "OFFER",
1153
+ OPPORTUNITY: "OPPORTUNITY",
1154
+ };
1155
+ const RevenueAttributionAllocationAction = {
1156
+ CREATE: "CREATE",
1157
+ UPDATE: "UPDATE",
1158
+ };
1159
+ const RevenueAttributionAllocationErrorCode = {
1160
+ ACCESS_DENIED: "ACCESS_DENIED",
1161
+ ALLOCATION_CAP_EXCEEDED: "ALLOCATION_CAP_EXCEEDED",
1162
+ CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION",
1163
+ IMMUTABLE_ALLOCATION: "IMMUTABLE_ALLOCATION",
1164
+ INTERNAL_ERROR: "INTERNAL_ERROR",
1165
+ INVALID_VALUE: "INVALID_VALUE",
1166
+ RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
1167
+ };
1168
+ const RevenueAttributionAllocationTaskStatus = {
1169
+ COMPLETE: "COMPLETE",
1170
+ FAILED: "FAILED",
1171
+ IN_PROGRESS: "IN_PROGRESS",
1172
+ };
1173
+ const RevenueAttributionAllocationSortField = {
1174
+ EFFECTIVE_FROM: "EffectiveFrom",
1175
+ };
1176
+
1177
+ exports.AccessDeniedException = AccessDeniedException;
1178
+ exports.AccessDeniedException$ = AccessDeniedException$;
1179
+ exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
1180
+ exports.AllocationStatus = AllocationStatus;
1181
+ exports.AttributionSortBy = AttributionSortBy;
1182
+ exports.AttributionSummary$ = AttributionSummary$;
1183
+ exports.CatalogName = CatalogName;
1184
+ exports.ConflictException = ConflictException;
1185
+ exports.ConflictException$ = ConflictException$;
1186
+ exports.ConflictExceptionReason = ConflictExceptionReason;
1187
+ exports.CreateMarketplaceRevenueShare$ = CreateMarketplaceRevenueShare$;
1188
+ exports.CreateMarketplaceRevenueShareAllocation$ = CreateMarketplaceRevenueShareAllocation$;
1189
+ exports.CreateMarketplaceRevenueShareAllocationCommand = CreateMarketplaceRevenueShareAllocationCommand;
1190
+ exports.CreateMarketplaceRevenueShareAllocationInput$ = CreateMarketplaceRevenueShareAllocationInput$;
1191
+ exports.CreateMarketplaceRevenueShareAllocationOutput$ = CreateMarketplaceRevenueShareAllocationOutput$;
1192
+ exports.CreateMarketplaceRevenueShareCommand = CreateMarketplaceRevenueShareCommand;
1193
+ exports.CreateMarketplaceRevenueShareInput$ = CreateMarketplaceRevenueShareInput$;
1194
+ exports.CreateMarketplaceRevenueShareOutput$ = CreateMarketplaceRevenueShareOutput$;
1195
+ exports.CreateRevenueAttribution$ = CreateRevenueAttribution$;
1196
+ exports.CreateRevenueAttributionCommand = CreateRevenueAttributionCommand;
1197
+ exports.CreateRevenueAttributionInput$ = CreateRevenueAttributionInput$;
1198
+ exports.CreateRevenueAttributionOutput$ = CreateRevenueAttributionOutput$;
1199
+ exports.EntityType = EntityType;
1200
+ exports.FieldValidationCode = FieldValidationCode;
1201
+ exports.GetMarketplaceRevenueShare$ = GetMarketplaceRevenueShare$;
1202
+ exports.GetMarketplaceRevenueShareAllocation$ = GetMarketplaceRevenueShareAllocation$;
1203
+ exports.GetMarketplaceRevenueShareAllocationCommand = GetMarketplaceRevenueShareAllocationCommand;
1204
+ exports.GetMarketplaceRevenueShareAllocationInput$ = GetMarketplaceRevenueShareAllocationInput$;
1205
+ exports.GetMarketplaceRevenueShareAllocationOutput$ = GetMarketplaceRevenueShareAllocationOutput$;
1206
+ exports.GetMarketplaceRevenueShareCommand = GetMarketplaceRevenueShareCommand;
1207
+ exports.GetMarketplaceRevenueShareInput$ = GetMarketplaceRevenueShareInput$;
1208
+ exports.GetMarketplaceRevenueShareOutput$ = GetMarketplaceRevenueShareOutput$;
1209
+ exports.GetRevenueAttribution$ = GetRevenueAttribution$;
1210
+ exports.GetRevenueAttributionAllocation$ = GetRevenueAttributionAllocation$;
1211
+ exports.GetRevenueAttributionAllocationCommand = GetRevenueAttributionAllocationCommand;
1212
+ exports.GetRevenueAttributionAllocationInput$ = GetRevenueAttributionAllocationInput$;
1213
+ exports.GetRevenueAttributionAllocationOutput$ = GetRevenueAttributionAllocationOutput$;
1214
+ exports.GetRevenueAttributionAllocationsTask$ = GetRevenueAttributionAllocationsTask$;
1215
+ exports.GetRevenueAttributionAllocationsTaskCommand = GetRevenueAttributionAllocationsTaskCommand;
1216
+ exports.GetRevenueAttributionAllocationsTaskInput$ = GetRevenueAttributionAllocationsTaskInput$;
1217
+ exports.GetRevenueAttributionAllocationsTaskOutput$ = GetRevenueAttributionAllocationsTaskOutput$;
1218
+ exports.GetRevenueAttributionCommand = GetRevenueAttributionCommand;
1219
+ exports.GetRevenueAttributionInput$ = GetRevenueAttributionInput$;
1220
+ exports.GetRevenueAttributionOutput$ = GetRevenueAttributionOutput$;
1221
+ exports.InternalServerException = InternalServerException;
1222
+ exports.InternalServerException$ = InternalServerException$;
1223
+ exports.ListMarketplaceRevenueShareAllocations$ = ListMarketplaceRevenueShareAllocations$;
1224
+ exports.ListMarketplaceRevenueShareAllocationsCommand = ListMarketplaceRevenueShareAllocationsCommand;
1225
+ exports.ListMarketplaceRevenueShareAllocationsInput$ = ListMarketplaceRevenueShareAllocationsInput$;
1226
+ exports.ListMarketplaceRevenueShareAllocationsOutput$ = ListMarketplaceRevenueShareAllocationsOutput$;
1227
+ exports.ListMarketplaceRevenueShares$ = ListMarketplaceRevenueShares$;
1228
+ exports.ListMarketplaceRevenueSharesCommand = ListMarketplaceRevenueSharesCommand;
1229
+ exports.ListMarketplaceRevenueSharesInput$ = ListMarketplaceRevenueSharesInput$;
1230
+ exports.ListMarketplaceRevenueSharesOutput$ = ListMarketplaceRevenueSharesOutput$;
1231
+ exports.ListRevenueAttributionAllocations$ = ListRevenueAttributionAllocations$;
1232
+ exports.ListRevenueAttributionAllocationsCommand = ListRevenueAttributionAllocationsCommand;
1233
+ exports.ListRevenueAttributionAllocationsInput$ = ListRevenueAttributionAllocationsInput$;
1234
+ exports.ListRevenueAttributionAllocationsOutput$ = ListRevenueAttributionAllocationsOutput$;
1235
+ exports.ListRevenueAttributions$ = ListRevenueAttributions$;
1236
+ exports.ListRevenueAttributionsCommand = ListRevenueAttributionsCommand;
1237
+ exports.ListRevenueAttributionsInput$ = ListRevenueAttributionsInput$;
1238
+ exports.ListRevenueAttributionsOutput$ = ListRevenueAttributionsOutput$;
1239
+ exports.ListTagsForResource$ = ListTagsForResource$;
1240
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1241
+ exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;
1242
+ exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;
1243
+ exports.MarketplaceProductSummary$ = MarketplaceProductSummary$;
1244
+ exports.MarketplaceRevenueShareAllocationSortField = MarketplaceRevenueShareAllocationSortField;
1245
+ exports.MarketplaceRevenueShareAllocationSummary$ = MarketplaceRevenueShareAllocationSummary$;
1246
+ exports.MarketplaceRevenueShareSortBy = MarketplaceRevenueShareSortBy;
1247
+ exports.MarketplaceRevenueShareSummary$ = MarketplaceRevenueShareSummary$;
1248
+ exports.PartnerCentralRevenueMeasurement = PartnerCentralRevenueMeasurement;
1249
+ exports.PartnerCentralRevenueMeasurementClient = PartnerCentralRevenueMeasurementClient;
1250
+ exports.PartnerCentralRevenueMeasurementServiceException = PartnerCentralRevenueMeasurementServiceException;
1251
+ exports.PartnerCentralRevenueMeasurementServiceException$ = PartnerCentralRevenueMeasurementServiceException$;
1252
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1253
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1254
+ exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;
1255
+ exports.RevenueAttributionAllocationAction = RevenueAttributionAllocationAction;
1256
+ exports.RevenueAttributionAllocationErrorCode = RevenueAttributionAllocationErrorCode;
1257
+ exports.RevenueAttributionAllocationErrorDetail$ = RevenueAttributionAllocationErrorDetail$;
1258
+ exports.RevenueAttributionAllocationSortField = RevenueAttributionAllocationSortField;
1259
+ exports.RevenueAttributionAllocationSummary$ = RevenueAttributionAllocationSummary$;
1260
+ exports.RevenueAttributionAllocationTaskStatus = RevenueAttributionAllocationTaskStatus;
1261
+ exports.RevenueShareAllocation$ = RevenueShareAllocation$;
1262
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1263
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1264
+ exports.ServiceQuotaExceededExceptionReason = ServiceQuotaExceededExceptionReason;
1265
+ exports.SortOrder = SortOrder;
1266
+ exports.StartRevenueAttributionAllocationsTask$ = StartRevenueAttributionAllocationsTask$;
1267
+ exports.StartRevenueAttributionAllocationsTaskCommand = StartRevenueAttributionAllocationsTaskCommand;
1268
+ exports.StartRevenueAttributionAllocationsTaskInput$ = StartRevenueAttributionAllocationsTaskInput$;
1269
+ exports.StartRevenueAttributionAllocationsTaskOutput$ = StartRevenueAttributionAllocationsTaskOutput$;
1270
+ exports.Tag$ = Tag$;
1271
+ exports.TagResource$ = TagResource$;
1272
+ exports.TagResourceCommand = TagResourceCommand;
1273
+ exports.TagResourceInput$ = TagResourceInput$;
1274
+ exports.TenancyModel = TenancyModel;
1275
+ exports.ThrottlingException = ThrottlingException;
1276
+ exports.ThrottlingException$ = ThrottlingException$;
1277
+ exports.UntagResource$ = UntagResource$;
1278
+ exports.UntagResourceCommand = UntagResourceCommand;
1279
+ exports.UntagResourceInput$ = UntagResourceInput$;
1280
+ exports.UpdateMarketplaceRevenueShareAllocation$ = UpdateMarketplaceRevenueShareAllocation$;
1281
+ exports.UpdateMarketplaceRevenueShareAllocationCommand = UpdateMarketplaceRevenueShareAllocationCommand;
1282
+ exports.UpdateMarketplaceRevenueShareAllocationInput$ = UpdateMarketplaceRevenueShareAllocationInput$;
1283
+ exports.UpdateMarketplaceRevenueShareAllocationOutput$ = UpdateMarketplaceRevenueShareAllocationOutput$;
1284
+ exports.UpdateRevenueAttribution$ = UpdateRevenueAttribution$;
1285
+ exports.UpdateRevenueAttributionCommand = UpdateRevenueAttributionCommand;
1286
+ exports.UpdateRevenueAttributionInput$ = UpdateRevenueAttributionInput$;
1287
+ exports.UpdateRevenueAttributionOutput$ = UpdateRevenueAttributionOutput$;
1288
+ exports.ValidationException = ValidationException;
1289
+ exports.ValidationException$ = ValidationException$;
1290
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
1291
+ exports.ValidationExceptionReason = ValidationExceptionReason;
1292
+ exports.errorTypeRegistries = errorTypeRegistries;
1293
+ exports.paginateListMarketplaceRevenueShareAllocations = paginateListMarketplaceRevenueShareAllocations;
1294
+ exports.paginateListMarketplaceRevenueShares = paginateListMarketplaceRevenueShares;
1295
+ exports.paginateListRevenueAttributionAllocations = paginateListRevenueAttributionAllocations;
1296
+ exports.paginateListRevenueAttributions = paginateListRevenueAttributions;