@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,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_TestParsingCommand, se_TestParsingCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class TestParsingCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, TestParsingCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "B2biClient";
|
|
26
|
+
const commandName = "TestParsingCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "B2BI",
|
|
35
|
+
operation: "TestParsing",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_TestParsingCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_TestParsingCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UntagResourceCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "B2biClient";
|
|
26
|
+
const commandName = "UntagResourceCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "B2BI",
|
|
35
|
+
operation: "UntagResource",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UntagResourceCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UntagResourceCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateCapabilityCommand, se_UpdateCapabilityCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateCapabilityCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateCapabilityCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "B2biClient";
|
|
26
|
+
const commandName = "UpdateCapabilityCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "B2BI",
|
|
35
|
+
operation: "UpdateCapability",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateCapabilityCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateCapabilityCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { UpdatePartnershipResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_UpdatePartnershipCommand, se_UpdatePartnershipCommand } from "../protocols/Aws_json1_0";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class UpdatePartnershipCommand extends $Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePartnershipCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "B2biClient";
|
|
27
|
+
const commandName = "UpdatePartnershipCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: UpdatePartnershipResponseFilterSensitiveLog,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "B2BI",
|
|
36
|
+
operation: "UpdatePartnership",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const { requestHandler } = configuration;
|
|
40
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
+
}
|
|
42
|
+
serialize(input, context) {
|
|
43
|
+
return se_UpdatePartnershipCommand(input, context);
|
|
44
|
+
}
|
|
45
|
+
deserialize(output, context) {
|
|
46
|
+
return de_UpdatePartnershipCommand(output, context);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { UpdateProfileRequestFilterSensitiveLog, UpdateProfileResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_UpdateProfileCommand, se_UpdateProfileCommand } from "../protocols/Aws_json1_0";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class UpdateProfileCommand extends $Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateProfileCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "B2biClient";
|
|
27
|
+
const commandName = "UpdateProfileCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: UpdateProfileRequestFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: UpdateProfileResponseFilterSensitiveLog,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "B2BI",
|
|
36
|
+
operation: "UpdateProfile",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const { requestHandler } = configuration;
|
|
40
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
+
}
|
|
42
|
+
serialize(input, context) {
|
|
43
|
+
return se_UpdateProfileCommand(input, context);
|
|
44
|
+
}
|
|
45
|
+
deserialize(output, context) {
|
|
46
|
+
return de_UpdateProfileCommand(output, context);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateTransformerCommand, se_UpdateTransformerCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateTransformerCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateTransformerCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "B2biClient";
|
|
26
|
+
const commandName = "UpdateTransformerCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "B2BI",
|
|
35
|
+
operation: "UpdateTransformer",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateTransformerCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateTransformerCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from "./CreateCapabilityCommand";
|
|
2
|
+
export * from "./CreatePartnershipCommand";
|
|
3
|
+
export * from "./CreateProfileCommand";
|
|
4
|
+
export * from "./CreateTransformerCommand";
|
|
5
|
+
export * from "./DeleteCapabilityCommand";
|
|
6
|
+
export * from "./DeletePartnershipCommand";
|
|
7
|
+
export * from "./DeleteProfileCommand";
|
|
8
|
+
export * from "./DeleteTransformerCommand";
|
|
9
|
+
export * from "./GetCapabilityCommand";
|
|
10
|
+
export * from "./GetPartnershipCommand";
|
|
11
|
+
export * from "./GetProfileCommand";
|
|
12
|
+
export * from "./GetTransformerCommand";
|
|
13
|
+
export * from "./GetTransformerJobCommand";
|
|
14
|
+
export * from "./ListCapabilitiesCommand";
|
|
15
|
+
export * from "./ListPartnershipsCommand";
|
|
16
|
+
export * from "./ListProfilesCommand";
|
|
17
|
+
export * from "./ListTagsForResourceCommand";
|
|
18
|
+
export * from "./ListTransformersCommand";
|
|
19
|
+
export * from "./StartTransformerJobCommand";
|
|
20
|
+
export * from "./TagResourceCommand";
|
|
21
|
+
export * from "./TestMappingCommand";
|
|
22
|
+
export * from "./TestParsingCommand";
|
|
23
|
+
export * from "./UntagResourceCommand";
|
|
24
|
+
export * from "./UpdateCapabilityCommand";
|
|
25
|
+
export * from "./UpdatePartnershipCommand";
|
|
26
|
+
export * from "./UpdateProfileCommand";
|
|
27
|
+
export * from "./UpdateTransformerCommand";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://b2bi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://b2bi-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://b2bi.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://b2bi.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class B2biServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, B2biServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
import { B2biServiceException as __BaseException } from "./B2biServiceException";
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "AccessDeniedException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "AccessDeniedException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class ConflictException extends __BaseException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "ConflictException",
|
|
19
|
+
$fault: "client",
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
22
|
+
this.name = "ConflictException";
|
|
23
|
+
this.$fault = "client";
|
|
24
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export const X12TransactionSet = {
|
|
28
|
+
X12_110: "X12_110",
|
|
29
|
+
X12_180: "X12_180",
|
|
30
|
+
X12_204: "X12_204",
|
|
31
|
+
X12_210: "X12_210",
|
|
32
|
+
X12_214: "X12_214",
|
|
33
|
+
X12_215: "X12_215",
|
|
34
|
+
X12_310: "X12_310",
|
|
35
|
+
X12_315: "X12_315",
|
|
36
|
+
X12_322: "X12_322",
|
|
37
|
+
X12_404: "X12_404",
|
|
38
|
+
X12_410: "X12_410",
|
|
39
|
+
X12_820: "X12_820",
|
|
40
|
+
X12_824: "X12_824",
|
|
41
|
+
X12_830: "X12_830",
|
|
42
|
+
X12_846: "X12_846",
|
|
43
|
+
X12_850: "X12_850",
|
|
44
|
+
X12_852: "X12_852",
|
|
45
|
+
X12_855: "X12_855",
|
|
46
|
+
X12_856: "X12_856",
|
|
47
|
+
X12_860: "X12_860",
|
|
48
|
+
X12_861: "X12_861",
|
|
49
|
+
X12_864: "X12_864",
|
|
50
|
+
X12_940: "X12_940",
|
|
51
|
+
X12_990: "X12_990",
|
|
52
|
+
X12_997: "X12_997",
|
|
53
|
+
};
|
|
54
|
+
export const X12Version = {
|
|
55
|
+
VERSION_4010: "VERSION_4010",
|
|
56
|
+
VERSION_4030: "VERSION_4030",
|
|
57
|
+
VERSION_5010: "VERSION_5010",
|
|
58
|
+
};
|
|
59
|
+
export var EdiType;
|
|
60
|
+
(function (EdiType) {
|
|
61
|
+
EdiType.visit = (value, visitor) => {
|
|
62
|
+
if (value.x12Details !== undefined)
|
|
63
|
+
return visitor.x12Details(value.x12Details);
|
|
64
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
65
|
+
};
|
|
66
|
+
})(EdiType || (EdiType = {}));
|
|
67
|
+
export var CapabilityConfiguration;
|
|
68
|
+
(function (CapabilityConfiguration) {
|
|
69
|
+
CapabilityConfiguration.visit = (value, visitor) => {
|
|
70
|
+
if (value.edi !== undefined)
|
|
71
|
+
return visitor.edi(value.edi);
|
|
72
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
73
|
+
};
|
|
74
|
+
})(CapabilityConfiguration || (CapabilityConfiguration = {}));
|
|
75
|
+
export const CapabilityType = {
|
|
76
|
+
EDI: "edi",
|
|
77
|
+
};
|
|
78
|
+
export class InternalServerException extends __BaseException {
|
|
79
|
+
constructor(opts) {
|
|
80
|
+
super({
|
|
81
|
+
name: "InternalServerException",
|
|
82
|
+
$fault: "server",
|
|
83
|
+
...opts,
|
|
84
|
+
});
|
|
85
|
+
this.name = "InternalServerException";
|
|
86
|
+
this.$fault = "server";
|
|
87
|
+
this.$retryable = {};
|
|
88
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
89
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
93
|
+
constructor(opts) {
|
|
94
|
+
super({
|
|
95
|
+
name: "ResourceNotFoundException",
|
|
96
|
+
$fault: "client",
|
|
97
|
+
...opts,
|
|
98
|
+
});
|
|
99
|
+
this.name = "ResourceNotFoundException";
|
|
100
|
+
this.$fault = "client";
|
|
101
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super({
|
|
107
|
+
name: "ServiceQuotaExceededException",
|
|
108
|
+
$fault: "client",
|
|
109
|
+
...opts,
|
|
110
|
+
});
|
|
111
|
+
this.name = "ServiceQuotaExceededException";
|
|
112
|
+
this.$fault = "client";
|
|
113
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
114
|
+
this.resourceId = opts.resourceId;
|
|
115
|
+
this.resourceType = opts.resourceType;
|
|
116
|
+
this.serviceCode = opts.serviceCode;
|
|
117
|
+
this.quotaCode = opts.quotaCode;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export class ThrottlingException extends __BaseException {
|
|
121
|
+
constructor(opts) {
|
|
122
|
+
super({
|
|
123
|
+
name: "ThrottlingException",
|
|
124
|
+
$fault: "client",
|
|
125
|
+
...opts,
|
|
126
|
+
});
|
|
127
|
+
this.name = "ThrottlingException";
|
|
128
|
+
this.$fault = "client";
|
|
129
|
+
this.$retryable = {};
|
|
130
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
131
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export class ValidationException extends __BaseException {
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "ValidationException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
this.name = "ValidationException";
|
|
142
|
+
this.$fault = "client";
|
|
143
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
144
|
+
this.Message = opts.Message;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
export const TransformerJobStatus = {
|
|
148
|
+
FAILED: "failed",
|
|
149
|
+
RUNNING: "running",
|
|
150
|
+
SUCCEEDED: "succeeded",
|
|
151
|
+
};
|
|
152
|
+
export const Logging = {
|
|
153
|
+
DISABLED: "DISABLED",
|
|
154
|
+
ENABLED: "ENABLED",
|
|
155
|
+
};
|
|
156
|
+
export const FileFormat = {
|
|
157
|
+
JSON: "JSON",
|
|
158
|
+
XML: "XML",
|
|
159
|
+
};
|
|
160
|
+
export const TransformerStatus = {
|
|
161
|
+
ACTIVE: "active",
|
|
162
|
+
INACTIVE: "inactive",
|
|
163
|
+
};
|
|
164
|
+
export const CreatePartnershipRequestFilterSensitiveLog = (obj) => ({
|
|
165
|
+
...obj,
|
|
166
|
+
...(obj.email && { email: SENSITIVE_STRING }),
|
|
167
|
+
...(obj.phone && { phone: SENSITIVE_STRING }),
|
|
168
|
+
});
|
|
169
|
+
export const CreatePartnershipResponseFilterSensitiveLog = (obj) => ({
|
|
170
|
+
...obj,
|
|
171
|
+
...(obj.email && { email: SENSITIVE_STRING }),
|
|
172
|
+
...(obj.phone && { phone: SENSITIVE_STRING }),
|
|
173
|
+
});
|
|
174
|
+
export const GetPartnershipResponseFilterSensitiveLog = (obj) => ({
|
|
175
|
+
...obj,
|
|
176
|
+
...(obj.email && { email: SENSITIVE_STRING }),
|
|
177
|
+
...(obj.phone && { phone: SENSITIVE_STRING }),
|
|
178
|
+
});
|
|
179
|
+
export const UpdatePartnershipResponseFilterSensitiveLog = (obj) => ({
|
|
180
|
+
...obj,
|
|
181
|
+
...(obj.email && { email: SENSITIVE_STRING }),
|
|
182
|
+
...(obj.phone && { phone: SENSITIVE_STRING }),
|
|
183
|
+
});
|
|
184
|
+
export const CreateProfileRequestFilterSensitiveLog = (obj) => ({
|
|
185
|
+
...obj,
|
|
186
|
+
...(obj.email && { email: SENSITIVE_STRING }),
|
|
187
|
+
...(obj.phone && { phone: SENSITIVE_STRING }),
|
|
188
|
+
});
|
|
189
|
+
export const CreateProfileResponseFilterSensitiveLog = (obj) => ({
|
|
190
|
+
...obj,
|
|
191
|
+
...(obj.phone && { phone: SENSITIVE_STRING }),
|
|
192
|
+
...(obj.email && { email: SENSITIVE_STRING }),
|
|
193
|
+
});
|
|
194
|
+
export const GetProfileResponseFilterSensitiveLog = (obj) => ({
|
|
195
|
+
...obj,
|
|
196
|
+
...(obj.email && { email: SENSITIVE_STRING }),
|
|
197
|
+
...(obj.phone && { phone: SENSITIVE_STRING }),
|
|
198
|
+
});
|
|
199
|
+
export const UpdateProfileRequestFilterSensitiveLog = (obj) => ({
|
|
200
|
+
...obj,
|
|
201
|
+
...(obj.email && { email: SENSITIVE_STRING }),
|
|
202
|
+
...(obj.phone && { phone: SENSITIVE_STRING }),
|
|
203
|
+
});
|
|
204
|
+
export const UpdateProfileResponseFilterSensitiveLog = (obj) => ({
|
|
205
|
+
...obj,
|
|
206
|
+
...(obj.email && { email: SENSITIVE_STRING }),
|
|
207
|
+
...(obj.phone && { phone: SENSITIVE_STRING }),
|
|
208
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { B2biClient } from "../B2biClient";
|
|
2
|
+
import { ListCapabilitiesCommand, } from "../commands/ListCapabilitiesCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListCapabilitiesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListCapabilities(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof B2biClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected B2bi | B2biClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { B2biClient } from "../B2biClient";
|
|
2
|
+
import { ListPartnershipsCommand, } from "../commands/ListPartnershipsCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListPartnershipsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListPartnerships(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof B2biClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected B2bi | B2biClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { B2biClient } from "../B2biClient";
|
|
2
|
+
import { ListProfilesCommand, } from "../commands/ListProfilesCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListProfilesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListProfiles(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof B2biClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected B2bi | B2biClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|