@aws-sdk/client-b2bi 3.459.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +431 -0
- package/dist-cjs/B2bi.js +65 -0
- package/dist-cjs/B2biClient.js +43 -0
- package/dist-cjs/commands/CreateCapabilityCommand.js +51 -0
- package/dist-cjs/commands/CreatePartnershipCommand.js +52 -0
- package/dist-cjs/commands/CreateProfileCommand.js +52 -0
- package/dist-cjs/commands/CreateTransformerCommand.js +51 -0
- package/dist-cjs/commands/DeleteCapabilityCommand.js +51 -0
- package/dist-cjs/commands/DeletePartnershipCommand.js +51 -0
- package/dist-cjs/commands/DeleteProfileCommand.js +51 -0
- package/dist-cjs/commands/DeleteTransformerCommand.js +51 -0
- package/dist-cjs/commands/GetCapabilityCommand.js +51 -0
- package/dist-cjs/commands/GetPartnershipCommand.js +52 -0
- package/dist-cjs/commands/GetProfileCommand.js +52 -0
- package/dist-cjs/commands/GetTransformerCommand.js +51 -0
- package/dist-cjs/commands/GetTransformerJobCommand.js +51 -0
- package/dist-cjs/commands/ListCapabilitiesCommand.js +51 -0
- package/dist-cjs/commands/ListPartnershipsCommand.js +51 -0
- package/dist-cjs/commands/ListProfilesCommand.js +51 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
- package/dist-cjs/commands/ListTransformersCommand.js +51 -0
- package/dist-cjs/commands/StartTransformerJobCommand.js +51 -0
- package/dist-cjs/commands/TagResourceCommand.js +51 -0
- package/dist-cjs/commands/TestMappingCommand.js +51 -0
- package/dist-cjs/commands/TestParsingCommand.js +51 -0
- package/dist-cjs/commands/UntagResourceCommand.js +51 -0
- package/dist-cjs/commands/UpdateCapabilityCommand.js +51 -0
- package/dist-cjs/commands/UpdatePartnershipCommand.js +52 -0
- package/dist-cjs/commands/UpdateProfileCommand.js +52 -0
- package/dist-cjs/commands/UpdateTransformerCommand.js +51 -0
- package/dist-cjs/commands/index.js +30 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/B2biServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +227 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListCapabilitiesPaginator.js +29 -0
- package/dist-cjs/pagination/ListPartnershipsPaginator.js +29 -0
- package/dist-cjs/pagination/ListProfilesPaginator.js +29 -0
- package/dist-cjs/pagination/ListTransformersPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_0.js +1822 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/B2bi.js +61 -0
- package/dist-es/B2biClient.js +39 -0
- package/dist-es/commands/CreateCapabilityCommand.js +47 -0
- package/dist-es/commands/CreatePartnershipCommand.js +48 -0
- package/dist-es/commands/CreateProfileCommand.js +48 -0
- package/dist-es/commands/CreateTransformerCommand.js +47 -0
- package/dist-es/commands/DeleteCapabilityCommand.js +47 -0
- package/dist-es/commands/DeletePartnershipCommand.js +47 -0
- package/dist-es/commands/DeleteProfileCommand.js +47 -0
- package/dist-es/commands/DeleteTransformerCommand.js +47 -0
- package/dist-es/commands/GetCapabilityCommand.js +47 -0
- package/dist-es/commands/GetPartnershipCommand.js +48 -0
- package/dist-es/commands/GetProfileCommand.js +48 -0
- package/dist-es/commands/GetTransformerCommand.js +47 -0
- package/dist-es/commands/GetTransformerJobCommand.js +47 -0
- package/dist-es/commands/ListCapabilitiesCommand.js +47 -0
- package/dist-es/commands/ListPartnershipsCommand.js +47 -0
- package/dist-es/commands/ListProfilesCommand.js +47 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
- package/dist-es/commands/ListTransformersCommand.js +47 -0
- package/dist-es/commands/StartTransformerJobCommand.js +47 -0
- package/dist-es/commands/TagResourceCommand.js +47 -0
- package/dist-es/commands/TestMappingCommand.js +47 -0
- package/dist-es/commands/TestParsingCommand.js +47 -0
- package/dist-es/commands/UntagResourceCommand.js +47 -0
- package/dist-es/commands/UpdateCapabilityCommand.js +47 -0
- package/dist-es/commands/UpdatePartnershipCommand.js +48 -0
- package/dist-es/commands/UpdateProfileCommand.js +48 -0
- package/dist-es/commands/UpdateTransformerCommand.js +47 -0
- package/dist-es/commands/index.js +27 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/B2biServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +208 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListCapabilitiesPaginator.js +25 -0
- package/dist-es/pagination/ListPartnershipsPaginator.js +25 -0
- package/dist-es/pagination/ListProfilesPaginator.js +25 -0
- package/dist-es/pagination/ListTransformersPaginator.js +25 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_json1_0.js +1764 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/B2bi.d.ts +209 -0
- package/dist-types/B2biClient.d.ts +206 -0
- package/dist-types/commands/CreateCapabilityCommand.d.ts +156 -0
- package/dist-types/commands/CreatePartnershipCommand.d.ts +117 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +113 -0
- package/dist-types/commands/CreateTransformerCommand.d.ts +123 -0
- package/dist-types/commands/DeleteCapabilityCommand.d.ts +89 -0
- package/dist-types/commands/DeletePartnershipCommand.d.ts +89 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +89 -0
- package/dist-types/commands/DeleteTransformerCommand.d.ts +89 -0
- package/dist-types/commands/GetCapabilityCommand.d.ts +118 -0
- package/dist-types/commands/GetPartnershipCommand.d.ts +99 -0
- package/dist-types/commands/GetProfileCommand.d.ts +97 -0
- package/dist-types/commands/GetTransformerCommand.d.ts +102 -0
- package/dist-types/commands/GetTransformerJobCommand.d.ts +96 -0
- package/dist-types/commands/ListCapabilitiesCommand.d.ts +83 -0
- package/dist-types/commands/ListPartnershipsCommand.d.ts +103 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +85 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +84 -0
- package/dist-types/commands/ListTransformersCommand.d.ts +92 -0
- package/dist-types/commands/StartTransformerJobCommand.d.ts +97 -0
- package/dist-types/commands/TagResourceCommand.d.ts +87 -0
- package/dist-types/commands/TestMappingCommand.d.ts +90 -0
- package/dist-types/commands/TestParsingCommand.d.ts +98 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +80 -0
- package/dist-types/commands/UpdateCapabilityCommand.d.ts +151 -0
- package/dist-types/commands/UpdatePartnershipCommand.d.ts +109 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +107 -0
- package/dist-types/commands/UpdateTransformerCommand.d.ts +119 -0
- package/dist-types/commands/index.d.ts +27 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +25 -0
- package/dist-types/models/B2biServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1859 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListCapabilitiesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPartnershipsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProfilesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTransformersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +245 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/B2bi.d.ts +464 -0
- package/dist-types/ts3.4/B2biClient.d.ts +280 -0
- package/dist-types/ts3.4/commands/CreateCapabilityCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreatePartnershipCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateTransformerCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteCapabilityCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/DeletePartnershipCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/DeleteTransformerCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetCapabilityCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetPartnershipCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetTransformerCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetTransformerJobCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListCapabilitiesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListPartnershipsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTransformersCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartTransformerJobCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/TestMappingCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/TestParsingCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/UpdateCapabilityCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdatePartnershipCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateTransformerCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +27 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/B2biServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +537 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListCapabilitiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPartnershipsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTransformersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +329 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +104 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
|
+
export const getRuntimeConfig = (config) => {
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return {
|
|
17
|
+
...clientSharedValues,
|
|
18
|
+
...config,
|
|
19
|
+
runtime: "browser",
|
|
20
|
+
defaultsMode,
|
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
28
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
29
|
+
sha256: config?.sha256 ?? Sha256,
|
|
30
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
31
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
32
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
4
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
6
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
7
|
+
import { Hash } from "@smithy/hash-node";
|
|
8
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
9
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
10
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
11
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
12
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
13
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
14
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
15
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
16
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
18
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
awsCheckVersion(process.version);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "node",
|
|
27
|
+
defaultsMode,
|
|
28
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
29
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
30
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
31
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
32
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
35
|
+
retryMode: config?.retryMode ??
|
|
36
|
+
loadNodeConfig({
|
|
37
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
38
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
39
|
+
}),
|
|
40
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
41
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
42
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
2
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
3
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
|
+
export const getRuntimeConfig = (config) => {
|
|
7
|
+
return {
|
|
8
|
+
apiVersion: "2022-06-23",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
|
+
extensions: config?.extensions ?? [],
|
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "b2bi",
|
|
16
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
const asPartial = (t) => t;
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = {
|
|
7
|
+
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
8
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
9
|
+
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
10
|
+
};
|
|
11
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
12
|
+
return {
|
|
13
|
+
...runtimeConfig,
|
|
14
|
+
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
15
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
16
|
+
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { B2biClient } from "./B2biClient";
|
|
3
|
+
import { CreateCapabilityCommandInput, CreateCapabilityCommandOutput } from "./commands/CreateCapabilityCommand";
|
|
4
|
+
import { CreatePartnershipCommandInput, CreatePartnershipCommandOutput } from "./commands/CreatePartnershipCommand";
|
|
5
|
+
import { CreateProfileCommandInput, CreateProfileCommandOutput } from "./commands/CreateProfileCommand";
|
|
6
|
+
import { CreateTransformerCommandInput, CreateTransformerCommandOutput } from "./commands/CreateTransformerCommand";
|
|
7
|
+
import { DeleteCapabilityCommandInput, DeleteCapabilityCommandOutput } from "./commands/DeleteCapabilityCommand";
|
|
8
|
+
import { DeletePartnershipCommandInput, DeletePartnershipCommandOutput } from "./commands/DeletePartnershipCommand";
|
|
9
|
+
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
10
|
+
import { DeleteTransformerCommandInput, DeleteTransformerCommandOutput } from "./commands/DeleteTransformerCommand";
|
|
11
|
+
import { GetCapabilityCommandInput, GetCapabilityCommandOutput } from "./commands/GetCapabilityCommand";
|
|
12
|
+
import { GetPartnershipCommandInput, GetPartnershipCommandOutput } from "./commands/GetPartnershipCommand";
|
|
13
|
+
import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
|
|
14
|
+
import { GetTransformerCommandInput, GetTransformerCommandOutput } from "./commands/GetTransformerCommand";
|
|
15
|
+
import { GetTransformerJobCommandInput, GetTransformerJobCommandOutput } from "./commands/GetTransformerJobCommand";
|
|
16
|
+
import { ListCapabilitiesCommandInput, ListCapabilitiesCommandOutput } from "./commands/ListCapabilitiesCommand";
|
|
17
|
+
import { ListPartnershipsCommandInput, ListPartnershipsCommandOutput } from "./commands/ListPartnershipsCommand";
|
|
18
|
+
import { ListProfilesCommandInput, ListProfilesCommandOutput } from "./commands/ListProfilesCommand";
|
|
19
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
20
|
+
import { ListTransformersCommandInput, ListTransformersCommandOutput } from "./commands/ListTransformersCommand";
|
|
21
|
+
import { StartTransformerJobCommandInput, StartTransformerJobCommandOutput } from "./commands/StartTransformerJobCommand";
|
|
22
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
23
|
+
import { TestMappingCommandInput, TestMappingCommandOutput } from "./commands/TestMappingCommand";
|
|
24
|
+
import { TestParsingCommandInput, TestParsingCommandOutput } from "./commands/TestParsingCommand";
|
|
25
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
26
|
+
import { UpdateCapabilityCommandInput, UpdateCapabilityCommandOutput } from "./commands/UpdateCapabilityCommand";
|
|
27
|
+
import { UpdatePartnershipCommandInput, UpdatePartnershipCommandOutput } from "./commands/UpdatePartnershipCommand";
|
|
28
|
+
import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./commands/UpdateProfileCommand";
|
|
29
|
+
import { UpdateTransformerCommandInput, UpdateTransformerCommandOutput } from "./commands/UpdateTransformerCommand";
|
|
30
|
+
export interface B2bi {
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link CreateCapabilityCommand}
|
|
33
|
+
*/
|
|
34
|
+
createCapability(args: CreateCapabilityCommandInput, options?: __HttpHandlerOptions): Promise<CreateCapabilityCommandOutput>;
|
|
35
|
+
createCapability(args: CreateCapabilityCommandInput, cb: (err: any, data?: CreateCapabilityCommandOutput) => void): void;
|
|
36
|
+
createCapability(args: CreateCapabilityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCapabilityCommandOutput) => void): void;
|
|
37
|
+
/**
|
|
38
|
+
* @see {@link CreatePartnershipCommand}
|
|
39
|
+
*/
|
|
40
|
+
createPartnership(args: CreatePartnershipCommandInput, options?: __HttpHandlerOptions): Promise<CreatePartnershipCommandOutput>;
|
|
41
|
+
createPartnership(args: CreatePartnershipCommandInput, cb: (err: any, data?: CreatePartnershipCommandOutput) => void): void;
|
|
42
|
+
createPartnership(args: CreatePartnershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePartnershipCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link CreateProfileCommand}
|
|
45
|
+
*/
|
|
46
|
+
createProfile(args: CreateProfileCommandInput, options?: __HttpHandlerOptions): Promise<CreateProfileCommandOutput>;
|
|
47
|
+
createProfile(args: CreateProfileCommandInput, cb: (err: any, data?: CreateProfileCommandOutput) => void): void;
|
|
48
|
+
createProfile(args: CreateProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProfileCommandOutput) => void): void;
|
|
49
|
+
/**
|
|
50
|
+
* @see {@link CreateTransformerCommand}
|
|
51
|
+
*/
|
|
52
|
+
createTransformer(args: CreateTransformerCommandInput, options?: __HttpHandlerOptions): Promise<CreateTransformerCommandOutput>;
|
|
53
|
+
createTransformer(args: CreateTransformerCommandInput, cb: (err: any, data?: CreateTransformerCommandOutput) => void): void;
|
|
54
|
+
createTransformer(args: CreateTransformerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTransformerCommandOutput) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link DeleteCapabilityCommand}
|
|
57
|
+
*/
|
|
58
|
+
deleteCapability(args: DeleteCapabilityCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCapabilityCommandOutput>;
|
|
59
|
+
deleteCapability(args: DeleteCapabilityCommandInput, cb: (err: any, data?: DeleteCapabilityCommandOutput) => void): void;
|
|
60
|
+
deleteCapability(args: DeleteCapabilityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCapabilityCommandOutput) => void): void;
|
|
61
|
+
/**
|
|
62
|
+
* @see {@link DeletePartnershipCommand}
|
|
63
|
+
*/
|
|
64
|
+
deletePartnership(args: DeletePartnershipCommandInput, options?: __HttpHandlerOptions): Promise<DeletePartnershipCommandOutput>;
|
|
65
|
+
deletePartnership(args: DeletePartnershipCommandInput, cb: (err: any, data?: DeletePartnershipCommandOutput) => void): void;
|
|
66
|
+
deletePartnership(args: DeletePartnershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePartnershipCommandOutput) => void): void;
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link DeleteProfileCommand}
|
|
69
|
+
*/
|
|
70
|
+
deleteProfile(args: DeleteProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProfileCommandOutput>;
|
|
71
|
+
deleteProfile(args: DeleteProfileCommandInput, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
|
|
72
|
+
deleteProfile(args: DeleteProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
|
|
73
|
+
/**
|
|
74
|
+
* @see {@link DeleteTransformerCommand}
|
|
75
|
+
*/
|
|
76
|
+
deleteTransformer(args: DeleteTransformerCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTransformerCommandOutput>;
|
|
77
|
+
deleteTransformer(args: DeleteTransformerCommandInput, cb: (err: any, data?: DeleteTransformerCommandOutput) => void): void;
|
|
78
|
+
deleteTransformer(args: DeleteTransformerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTransformerCommandOutput) => void): void;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link GetCapabilityCommand}
|
|
81
|
+
*/
|
|
82
|
+
getCapability(args: GetCapabilityCommandInput, options?: __HttpHandlerOptions): Promise<GetCapabilityCommandOutput>;
|
|
83
|
+
getCapability(args: GetCapabilityCommandInput, cb: (err: any, data?: GetCapabilityCommandOutput) => void): void;
|
|
84
|
+
getCapability(args: GetCapabilityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCapabilityCommandOutput) => void): void;
|
|
85
|
+
/**
|
|
86
|
+
* @see {@link GetPartnershipCommand}
|
|
87
|
+
*/
|
|
88
|
+
getPartnership(args: GetPartnershipCommandInput, options?: __HttpHandlerOptions): Promise<GetPartnershipCommandOutput>;
|
|
89
|
+
getPartnership(args: GetPartnershipCommandInput, cb: (err: any, data?: GetPartnershipCommandOutput) => void): void;
|
|
90
|
+
getPartnership(args: GetPartnershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPartnershipCommandOutput) => void): void;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link GetProfileCommand}
|
|
93
|
+
*/
|
|
94
|
+
getProfile(args: GetProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetProfileCommandOutput>;
|
|
95
|
+
getProfile(args: GetProfileCommandInput, cb: (err: any, data?: GetProfileCommandOutput) => void): void;
|
|
96
|
+
getProfile(args: GetProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProfileCommandOutput) => void): void;
|
|
97
|
+
/**
|
|
98
|
+
* @see {@link GetTransformerCommand}
|
|
99
|
+
*/
|
|
100
|
+
getTransformer(args: GetTransformerCommandInput, options?: __HttpHandlerOptions): Promise<GetTransformerCommandOutput>;
|
|
101
|
+
getTransformer(args: GetTransformerCommandInput, cb: (err: any, data?: GetTransformerCommandOutput) => void): void;
|
|
102
|
+
getTransformer(args: GetTransformerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTransformerCommandOutput) => void): void;
|
|
103
|
+
/**
|
|
104
|
+
* @see {@link GetTransformerJobCommand}
|
|
105
|
+
*/
|
|
106
|
+
getTransformerJob(args: GetTransformerJobCommandInput, options?: __HttpHandlerOptions): Promise<GetTransformerJobCommandOutput>;
|
|
107
|
+
getTransformerJob(args: GetTransformerJobCommandInput, cb: (err: any, data?: GetTransformerJobCommandOutput) => void): void;
|
|
108
|
+
getTransformerJob(args: GetTransformerJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTransformerJobCommandOutput) => void): void;
|
|
109
|
+
/**
|
|
110
|
+
* @see {@link ListCapabilitiesCommand}
|
|
111
|
+
*/
|
|
112
|
+
listCapabilities(args: ListCapabilitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListCapabilitiesCommandOutput>;
|
|
113
|
+
listCapabilities(args: ListCapabilitiesCommandInput, cb: (err: any, data?: ListCapabilitiesCommandOutput) => void): void;
|
|
114
|
+
listCapabilities(args: ListCapabilitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCapabilitiesCommandOutput) => void): void;
|
|
115
|
+
/**
|
|
116
|
+
* @see {@link ListPartnershipsCommand}
|
|
117
|
+
*/
|
|
118
|
+
listPartnerships(args: ListPartnershipsCommandInput, options?: __HttpHandlerOptions): Promise<ListPartnershipsCommandOutput>;
|
|
119
|
+
listPartnerships(args: ListPartnershipsCommandInput, cb: (err: any, data?: ListPartnershipsCommandOutput) => void): void;
|
|
120
|
+
listPartnerships(args: ListPartnershipsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPartnershipsCommandOutput) => void): void;
|
|
121
|
+
/**
|
|
122
|
+
* @see {@link ListProfilesCommand}
|
|
123
|
+
*/
|
|
124
|
+
listProfiles(args: ListProfilesCommandInput, options?: __HttpHandlerOptions): Promise<ListProfilesCommandOutput>;
|
|
125
|
+
listProfiles(args: ListProfilesCommandInput, cb: (err: any, data?: ListProfilesCommandOutput) => void): void;
|
|
126
|
+
listProfiles(args: ListProfilesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProfilesCommandOutput) => void): void;
|
|
127
|
+
/**
|
|
128
|
+
* @see {@link ListTagsForResourceCommand}
|
|
129
|
+
*/
|
|
130
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
131
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
132
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
133
|
+
/**
|
|
134
|
+
* @see {@link ListTransformersCommand}
|
|
135
|
+
*/
|
|
136
|
+
listTransformers(args: ListTransformersCommandInput, options?: __HttpHandlerOptions): Promise<ListTransformersCommandOutput>;
|
|
137
|
+
listTransformers(args: ListTransformersCommandInput, cb: (err: any, data?: ListTransformersCommandOutput) => void): void;
|
|
138
|
+
listTransformers(args: ListTransformersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTransformersCommandOutput) => void): void;
|
|
139
|
+
/**
|
|
140
|
+
* @see {@link StartTransformerJobCommand}
|
|
141
|
+
*/
|
|
142
|
+
startTransformerJob(args: StartTransformerJobCommandInput, options?: __HttpHandlerOptions): Promise<StartTransformerJobCommandOutput>;
|
|
143
|
+
startTransformerJob(args: StartTransformerJobCommandInput, cb: (err: any, data?: StartTransformerJobCommandOutput) => void): void;
|
|
144
|
+
startTransformerJob(args: StartTransformerJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartTransformerJobCommandOutput) => void): void;
|
|
145
|
+
/**
|
|
146
|
+
* @see {@link TagResourceCommand}
|
|
147
|
+
*/
|
|
148
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
149
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
150
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
151
|
+
/**
|
|
152
|
+
* @see {@link TestMappingCommand}
|
|
153
|
+
*/
|
|
154
|
+
testMapping(args: TestMappingCommandInput, options?: __HttpHandlerOptions): Promise<TestMappingCommandOutput>;
|
|
155
|
+
testMapping(args: TestMappingCommandInput, cb: (err: any, data?: TestMappingCommandOutput) => void): void;
|
|
156
|
+
testMapping(args: TestMappingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TestMappingCommandOutput) => void): void;
|
|
157
|
+
/**
|
|
158
|
+
* @see {@link TestParsingCommand}
|
|
159
|
+
*/
|
|
160
|
+
testParsing(args: TestParsingCommandInput, options?: __HttpHandlerOptions): Promise<TestParsingCommandOutput>;
|
|
161
|
+
testParsing(args: TestParsingCommandInput, cb: (err: any, data?: TestParsingCommandOutput) => void): void;
|
|
162
|
+
testParsing(args: TestParsingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TestParsingCommandOutput) => void): void;
|
|
163
|
+
/**
|
|
164
|
+
* @see {@link UntagResourceCommand}
|
|
165
|
+
*/
|
|
166
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
167
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
168
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
169
|
+
/**
|
|
170
|
+
* @see {@link UpdateCapabilityCommand}
|
|
171
|
+
*/
|
|
172
|
+
updateCapability(args: UpdateCapabilityCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCapabilityCommandOutput>;
|
|
173
|
+
updateCapability(args: UpdateCapabilityCommandInput, cb: (err: any, data?: UpdateCapabilityCommandOutput) => void): void;
|
|
174
|
+
updateCapability(args: UpdateCapabilityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCapabilityCommandOutput) => void): void;
|
|
175
|
+
/**
|
|
176
|
+
* @see {@link UpdatePartnershipCommand}
|
|
177
|
+
*/
|
|
178
|
+
updatePartnership(args: UpdatePartnershipCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePartnershipCommandOutput>;
|
|
179
|
+
updatePartnership(args: UpdatePartnershipCommandInput, cb: (err: any, data?: UpdatePartnershipCommandOutput) => void): void;
|
|
180
|
+
updatePartnership(args: UpdatePartnershipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePartnershipCommandOutput) => void): void;
|
|
181
|
+
/**
|
|
182
|
+
* @see {@link UpdateProfileCommand}
|
|
183
|
+
*/
|
|
184
|
+
updateProfile(args: UpdateProfileCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProfileCommandOutput>;
|
|
185
|
+
updateProfile(args: UpdateProfileCommandInput, cb: (err: any, data?: UpdateProfileCommandOutput) => void): void;
|
|
186
|
+
updateProfile(args: UpdateProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProfileCommandOutput) => void): void;
|
|
187
|
+
/**
|
|
188
|
+
* @see {@link UpdateTransformerCommand}
|
|
189
|
+
*/
|
|
190
|
+
updateTransformer(args: UpdateTransformerCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTransformerCommandOutput>;
|
|
191
|
+
updateTransformer(args: UpdateTransformerCommandInput, cb: (err: any, data?: UpdateTransformerCommandOutput) => void): void;
|
|
192
|
+
updateTransformer(args: UpdateTransformerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTransformerCommandOutput) => void): void;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @public
|
|
196
|
+
* <p>This is the <i>Amazon Web Services B2B Data Interchange API Reference</i>. It provides descriptions, API request parameters, and the XML response for each of the B2BI API actions.</p>
|
|
197
|
+
* <p>B2BI enables automated exchange of EDI (electronic data interchange) based business-critical transactions at cloud
|
|
198
|
+
* scale, with elasticity and pay-as-you-go pricing. Businesses use EDI documents to exchange
|
|
199
|
+
* transactional data with trading partners, such as suppliers and end customers, using
|
|
200
|
+
* standardized formats such as X12.</p>
|
|
201
|
+
* <note>
|
|
202
|
+
* <p>Rather than actually running a command, you can use the
|
|
203
|
+
* <code>--generate-cli-skeleton</code> parameter with any API call to generate and display
|
|
204
|
+
* a parameter template. You can then use the generated template to customize and use as input
|
|
205
|
+
* on a later command. For details, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-skeleton.html#cli-usage-skeleton-generate">Generate and use a parameter skeleton file</a>.</p>
|
|
206
|
+
* </note>
|
|
207
|
+
*/
|
|
208
|
+
export declare class B2bi extends B2biClient implements B2bi {
|
|
209
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
3
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
4
|
+
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
5
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
7
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
8
|
+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
9
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
11
|
+
import { CreateCapabilityCommandInput, CreateCapabilityCommandOutput } from "./commands/CreateCapabilityCommand";
|
|
12
|
+
import { CreatePartnershipCommandInput, CreatePartnershipCommandOutput } from "./commands/CreatePartnershipCommand";
|
|
13
|
+
import { CreateProfileCommandInput, CreateProfileCommandOutput } from "./commands/CreateProfileCommand";
|
|
14
|
+
import { CreateTransformerCommandInput, CreateTransformerCommandOutput } from "./commands/CreateTransformerCommand";
|
|
15
|
+
import { DeleteCapabilityCommandInput, DeleteCapabilityCommandOutput } from "./commands/DeleteCapabilityCommand";
|
|
16
|
+
import { DeletePartnershipCommandInput, DeletePartnershipCommandOutput } from "./commands/DeletePartnershipCommand";
|
|
17
|
+
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
18
|
+
import { DeleteTransformerCommandInput, DeleteTransformerCommandOutput } from "./commands/DeleteTransformerCommand";
|
|
19
|
+
import { GetCapabilityCommandInput, GetCapabilityCommandOutput } from "./commands/GetCapabilityCommand";
|
|
20
|
+
import { GetPartnershipCommandInput, GetPartnershipCommandOutput } from "./commands/GetPartnershipCommand";
|
|
21
|
+
import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
|
|
22
|
+
import { GetTransformerCommandInput, GetTransformerCommandOutput } from "./commands/GetTransformerCommand";
|
|
23
|
+
import { GetTransformerJobCommandInput, GetTransformerJobCommandOutput } from "./commands/GetTransformerJobCommand";
|
|
24
|
+
import { ListCapabilitiesCommandInput, ListCapabilitiesCommandOutput } from "./commands/ListCapabilitiesCommand";
|
|
25
|
+
import { ListPartnershipsCommandInput, ListPartnershipsCommandOutput } from "./commands/ListPartnershipsCommand";
|
|
26
|
+
import { ListProfilesCommandInput, ListProfilesCommandOutput } from "./commands/ListProfilesCommand";
|
|
27
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
28
|
+
import { ListTransformersCommandInput, ListTransformersCommandOutput } from "./commands/ListTransformersCommand";
|
|
29
|
+
import { StartTransformerJobCommandInput, StartTransformerJobCommandOutput } from "./commands/StartTransformerJobCommand";
|
|
30
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
31
|
+
import { TestMappingCommandInput, TestMappingCommandOutput } from "./commands/TestMappingCommand";
|
|
32
|
+
import { TestParsingCommandInput, TestParsingCommandOutput } from "./commands/TestParsingCommand";
|
|
33
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
34
|
+
import { UpdateCapabilityCommandInput, UpdateCapabilityCommandOutput } from "./commands/UpdateCapabilityCommand";
|
|
35
|
+
import { UpdatePartnershipCommandInput, UpdatePartnershipCommandOutput } from "./commands/UpdatePartnershipCommand";
|
|
36
|
+
import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./commands/UpdateProfileCommand";
|
|
37
|
+
import { UpdateTransformerCommandInput, UpdateTransformerCommandOutput } from "./commands/UpdateTransformerCommand";
|
|
38
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
39
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
40
|
+
export { __Client };
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export type ServiceInputTypes = CreateCapabilityCommandInput | CreatePartnershipCommandInput | CreateProfileCommandInput | CreateTransformerCommandInput | DeleteCapabilityCommandInput | DeletePartnershipCommandInput | DeleteProfileCommandInput | DeleteTransformerCommandInput | GetCapabilityCommandInput | GetPartnershipCommandInput | GetProfileCommandInput | GetTransformerCommandInput | GetTransformerJobCommandInput | ListCapabilitiesCommandInput | ListPartnershipsCommandInput | ListProfilesCommandInput | ListTagsForResourceCommandInput | ListTransformersCommandInput | StartTransformerJobCommandInput | TagResourceCommandInput | TestMappingCommandInput | TestParsingCommandInput | UntagResourceCommandInput | UpdateCapabilityCommandInput | UpdatePartnershipCommandInput | UpdateProfileCommandInput | UpdateTransformerCommandInput;
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
export type ServiceOutputTypes = CreateCapabilityCommandOutput | CreatePartnershipCommandOutput | CreateProfileCommandOutput | CreateTransformerCommandOutput | DeleteCapabilityCommandOutput | DeletePartnershipCommandOutput | DeleteProfileCommandOutput | DeleteTransformerCommandOutput | GetCapabilityCommandOutput | GetPartnershipCommandOutput | GetProfileCommandOutput | GetTransformerCommandOutput | GetTransformerJobCommandOutput | ListCapabilitiesCommandOutput | ListPartnershipsCommandOutput | ListProfilesCommandOutput | ListTagsForResourceCommandOutput | ListTransformersCommandOutput | StartTransformerJobCommandOutput | TagResourceCommandOutput | TestMappingCommandOutput | TestParsingCommandOutput | UntagResourceCommandOutput | UpdateCapabilityCommandOutput | UpdatePartnershipCommandOutput | UpdateProfileCommandOutput | UpdateTransformerCommandOutput;
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
53
|
+
/**
|
|
54
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
55
|
+
*/
|
|
56
|
+
requestHandler?: __HttpHandler;
|
|
57
|
+
/**
|
|
58
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
59
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
63
|
+
/**
|
|
64
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
urlParser?: __UrlParser;
|
|
68
|
+
/**
|
|
69
|
+
* A function that can calculate the length of a request body.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
73
|
+
/**
|
|
74
|
+
* A function that converts a stream into an array of bytes.
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
streamCollector?: __StreamCollector;
|
|
78
|
+
/**
|
|
79
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
base64Decoder?: __Decoder;
|
|
83
|
+
/**
|
|
84
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
base64Encoder?: __Encoder;
|
|
88
|
+
/**
|
|
89
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
utf8Decoder?: __Decoder;
|
|
93
|
+
/**
|
|
94
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
utf8Encoder?: __Encoder;
|
|
98
|
+
/**
|
|
99
|
+
* The runtime environment.
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
runtime?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
105
|
+
* trait of an operation.
|
|
106
|
+
*/
|
|
107
|
+
disableHostPrefix?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Unique service identifier.
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
serviceId?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
115
|
+
*/
|
|
116
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
117
|
+
/**
|
|
118
|
+
* Enables FIPS compatible endpoints.
|
|
119
|
+
*/
|
|
120
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
121
|
+
/**
|
|
122
|
+
* The AWS region to which this client will send requests
|
|
123
|
+
*/
|
|
124
|
+
region?: string | __Provider<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Default credentials provider; Not available in browser runtime.
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
130
|
+
/**
|
|
131
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
135
|
+
/**
|
|
136
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
137
|
+
*/
|
|
138
|
+
maxAttempts?: number | __Provider<number>;
|
|
139
|
+
/**
|
|
140
|
+
* Specifies which retry algorithm to use.
|
|
141
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
retryMode?: string | __Provider<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Optional logger for logging debug/info/warn/error.
|
|
147
|
+
*/
|
|
148
|
+
logger?: __Logger;
|
|
149
|
+
/**
|
|
150
|
+
* Optional extensions
|
|
151
|
+
*/
|
|
152
|
+
extensions?: RuntimeExtension[];
|
|
153
|
+
/**
|
|
154
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
155
|
+
*/
|
|
156
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
export type B2biClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
*
|
|
165
|
+
* The configuration interface of B2biClient class constructor that set the region, credentials and other options.
|
|
166
|
+
*/
|
|
167
|
+
export interface B2biClientConfig extends B2biClientConfigType {
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
export type B2biClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
*
|
|
176
|
+
* The resolved configuration interface of B2biClient class. This is resolved and normalized from the {@link B2biClientConfig | constructor configuration interface}.
|
|
177
|
+
*/
|
|
178
|
+
export interface B2biClientResolvedConfig extends B2biClientResolvedConfigType {
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @public
|
|
182
|
+
* <p>This is the <i>Amazon Web Services B2B Data Interchange API Reference</i>. It provides descriptions, API request parameters, and the XML response for each of the B2BI API actions.</p>
|
|
183
|
+
* <p>B2BI enables automated exchange of EDI (electronic data interchange) based business-critical transactions at cloud
|
|
184
|
+
* scale, with elasticity and pay-as-you-go pricing. Businesses use EDI documents to exchange
|
|
185
|
+
* transactional data with trading partners, such as suppliers and end customers, using
|
|
186
|
+
* standardized formats such as X12.</p>
|
|
187
|
+
* <note>
|
|
188
|
+
* <p>Rather than actually running a command, you can use the
|
|
189
|
+
* <code>--generate-cli-skeleton</code> parameter with any API call to generate and display
|
|
190
|
+
* a parameter template. You can then use the generated template to customize and use as input
|
|
191
|
+
* on a later command. For details, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-skeleton.html#cli-usage-skeleton-generate">Generate and use a parameter skeleton file</a>.</p>
|
|
192
|
+
* </note>
|
|
193
|
+
*/
|
|
194
|
+
export declare class B2biClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, B2biClientResolvedConfig> {
|
|
195
|
+
/**
|
|
196
|
+
* The resolved configuration of B2biClient class. This is resolved and normalized from the {@link B2biClientConfig | constructor configuration interface}.
|
|
197
|
+
*/
|
|
198
|
+
readonly config: B2biClientResolvedConfig;
|
|
199
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<B2biClientConfig>);
|
|
200
|
+
/**
|
|
201
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
202
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
203
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
204
|
+
*/
|
|
205
|
+
destroy(): void;
|
|
206
|
+
}
|