@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,117 @@
1
+ import { PartnerCentralRevenueMeasurementServiceException as __BaseException, } from "./PartnerCentralRevenueMeasurementServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ Message;
6
+ Reason;
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
14
+ this.Message = opts.Message;
15
+ this.Reason = opts.Reason;
16
+ }
17
+ }
18
+ export class ConflictException extends __BaseException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ Message;
22
+ Reason;
23
+ constructor(opts) {
24
+ super({
25
+ name: "ConflictException",
26
+ $fault: "client",
27
+ ...opts,
28
+ });
29
+ Object.setPrototypeOf(this, ConflictException.prototype);
30
+ this.Message = opts.Message;
31
+ this.Reason = opts.Reason;
32
+ }
33
+ }
34
+ export class InternalServerException extends __BaseException {
35
+ name = "InternalServerException";
36
+ $fault = "server";
37
+ $retryable = {};
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "InternalServerException",
42
+ $fault: "server",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, InternalServerException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ export class ResourceNotFoundException extends __BaseException {
50
+ name = "ResourceNotFoundException";
51
+ $fault = "client";
52
+ Message;
53
+ Reason;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ResourceNotFoundException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
61
+ this.Message = opts.Message;
62
+ this.Reason = opts.Reason;
63
+ }
64
+ }
65
+ export class ServiceQuotaExceededException extends __BaseException {
66
+ name = "ServiceQuotaExceededException";
67
+ $fault = "client";
68
+ Message;
69
+ Reason;
70
+ constructor(opts) {
71
+ super({
72
+ name: "ServiceQuotaExceededException",
73
+ $fault: "client",
74
+ ...opts,
75
+ });
76
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
77
+ this.Message = opts.Message;
78
+ this.Reason = opts.Reason;
79
+ }
80
+ }
81
+ export class ThrottlingException extends __BaseException {
82
+ name = "ThrottlingException";
83
+ $fault = "client";
84
+ $retryable = {};
85
+ Message;
86
+ ServiceCode;
87
+ QuotaCode;
88
+ constructor(opts) {
89
+ super({
90
+ name: "ThrottlingException",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
95
+ this.Message = opts.Message;
96
+ this.ServiceCode = opts.ServiceCode;
97
+ this.QuotaCode = opts.QuotaCode;
98
+ }
99
+ }
100
+ export class ValidationException extends __BaseException {
101
+ name = "ValidationException";
102
+ $fault = "client";
103
+ Message;
104
+ Reason;
105
+ FieldList;
106
+ constructor(opts) {
107
+ super({
108
+ name: "ValidationException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ Object.setPrototypeOf(this, ValidationException.prototype);
113
+ this.Message = opts.Message;
114
+ this.Reason = opts.Reason;
115
+ this.FieldList = opts.FieldList;
116
+ }
117
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListMarketplaceRevenueShareAllocationsCommand, } from "../commands/ListMarketplaceRevenueShareAllocationsCommand";
3
+ import { PartnerCentralRevenueMeasurementClient } from "../PartnerCentralRevenueMeasurementClient";
4
+ export const paginateListMarketplaceRevenueShareAllocations = createPaginator(PartnerCentralRevenueMeasurementClient, ListMarketplaceRevenueShareAllocationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListMarketplaceRevenueSharesCommand, } from "../commands/ListMarketplaceRevenueSharesCommand";
3
+ import { PartnerCentralRevenueMeasurementClient } from "../PartnerCentralRevenueMeasurementClient";
4
+ export const paginateListMarketplaceRevenueShares = createPaginator(PartnerCentralRevenueMeasurementClient, ListMarketplaceRevenueSharesCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListRevenueAttributionAllocationsCommand, } from "../commands/ListRevenueAttributionAllocationsCommand";
3
+ import { PartnerCentralRevenueMeasurementClient } from "../PartnerCentralRevenueMeasurementClient";
4
+ export const paginateListRevenueAttributionAllocations = createPaginator(PartnerCentralRevenueMeasurementClient, ListRevenueAttributionAllocationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListRevenueAttributionsCommand, } from "../commands/ListRevenueAttributionsCommand";
3
+ import { PartnerCentralRevenueMeasurementClient } from "../PartnerCentralRevenueMeasurementClient";
4
+ export const paginateListRevenueAttributions = createPaginator(PartnerCentralRevenueMeasurementClient, ListRevenueAttributionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,5 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListMarketplaceRevenueShareAllocationsPaginator";
3
+ export * from "./ListMarketplaceRevenueSharesPaginator";
4
+ export * from "./ListRevenueAttributionAllocationsPaginator";
5
+ export * from "./ListRevenueAttributionsPaginator";
@@ -0,0 +1,29 @@
1
+ import packageInfo from "../package.json";
2
+ import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
3
+ import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
5
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
6
+ import { calculateBodyLength } from "@smithy/core/serde";
7
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
8
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
9
+ export const getRuntimeConfig = (config) => {
10
+ const defaultsMode = resolveDefaultsModeConfig(config);
11
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
12
+ const clientSharedValues = getSharedRuntimeConfig(config);
13
+ return {
14
+ ...clientSharedValues,
15
+ ...config,
16
+ runtime: "browser",
17
+ defaultsMode,
18
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
19
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
20
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
21
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
22
+ region: config?.region ?? invalidProvider("Region is missing"),
23
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
24
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
25
+ streamCollector: config?.streamCollector ?? streamCollector,
26
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
27
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
28
+ };
29
+ };
@@ -0,0 +1,44 @@
1
+ import packageInfo from "../package.json";
2
+ import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
3
+ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
4
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
+ import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
+ export const getRuntimeConfig = (config) => {
12
+ emitWarningIfUnsupportedVersion(process.version);
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ awsCheckVersion(process.version);
17
+ const loaderConfig = {
18
+ profile: config?.profile,
19
+ logger: clientSharedValues.logger,
20
+ };
21
+ return {
22
+ ...clientSharedValues,
23
+ ...config,
24
+ runtime: "node",
25
+ defaultsMode,
26
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
33
+ retryMode: config?.retryMode ??
34
+ loadNodeConfig({
35
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
+ }, config),
38
+ sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
39
+ streamCollector: config?.streamCollector ?? streamCollector,
40
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
43
+ };
44
+ };
@@ -0,0 +1,9 @@
1
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
2
+ export const getRuntimeConfig = (config) => {
3
+ const browserDefaults = getBrowserRuntimeConfig(config);
4
+ return {
5
+ ...browserDefaults,
6
+ ...config,
7
+ runtime: "react-native",
8
+ };
9
+ };
@@ -0,0 +1,47 @@
1
+ import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
+ import { AwsSmithyRpcV2CborProtocol } from "@aws-sdk/core/protocols";
3
+ import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
4
+ import { Sha256 } from "@smithy/core/checksum";
5
+ import { NoOpLogger } from "@smithy/core/client";
6
+ import { parseUrl } from "@smithy/core/protocols";
7
+ import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
8
+ import { defaultPartnerCentralRevenueMeasurementHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
9
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
10
+ import { errorTypeRegistries } from "./schemas/schemas_0";
11
+ export const getRuntimeConfig = (config) => {
12
+ return {
13
+ apiVersion: "2022-07-26",
14
+ base64Decoder: config?.base64Decoder ?? fromBase64,
15
+ base64Encoder: config?.base64Encoder ?? toBase64,
16
+ disableHostPrefix: config?.disableHostPrefix ?? false,
17
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
18
+ extensions: config?.extensions ?? [],
19
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPartnerCentralRevenueMeasurementHttpAuthSchemeProvider,
20
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
21
+ {
22
+ schemeId: "aws.auth#sigv4",
23
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
24
+ signer: new AwsSdkSigV4Signer(),
25
+ },
26
+ {
27
+ schemeId: "aws.auth#sigv4a",
28
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
29
+ signer: new AwsSdkSigV4ASigner(),
30
+ },
31
+ ],
32
+ logger: config?.logger ?? new NoOpLogger(),
33
+ protocol: config?.protocol ?? AwsSmithyRpcV2CborProtocol,
34
+ protocolSettings: config?.protocolSettings ?? {
35
+ defaultNamespace: "com.amazonaws.partnercentralrevenuemeasurement",
36
+ errorTypeRegistries,
37
+ version: "2022-07-26",
38
+ serviceTarget: "PartnerCentralRevenueMeasurement",
39
+ },
40
+ serviceId: config?.serviceId ?? "PartnerCentral Revenue Measurement",
41
+ sha256: config?.sha256 ?? Sha256,
42
+ signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
43
+ urlParser: config?.urlParser ?? parseUrl,
44
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
45
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
46
+ };
47
+ };
@@ -0,0 +1,9 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration } from "@aws-sdk/core/client";
2
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
3
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
7
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
9
+ };