@aws-sdk/client-b2bi 3.490.0 → 3.496.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/dist-cjs/B2bi.js +1 -65
- package/dist-cjs/B2biClient.js +1 -43
- package/dist-cjs/commands/CreateCapabilityCommand.js +1 -28
- package/dist-cjs/commands/CreatePartnershipCommand.js +1 -29
- package/dist-cjs/commands/CreateProfileCommand.js +1 -29
- package/dist-cjs/commands/CreateTransformerCommand.js +1 -28
- package/dist-cjs/commands/DeleteCapabilityCommand.js +1 -28
- package/dist-cjs/commands/DeletePartnershipCommand.js +1 -28
- package/dist-cjs/commands/DeleteProfileCommand.js +1 -28
- package/dist-cjs/commands/DeleteTransformerCommand.js +1 -28
- package/dist-cjs/commands/GetCapabilityCommand.js +1 -28
- package/dist-cjs/commands/GetPartnershipCommand.js +1 -29
- package/dist-cjs/commands/GetProfileCommand.js +1 -29
- package/dist-cjs/commands/GetTransformerCommand.js +1 -28
- package/dist-cjs/commands/GetTransformerJobCommand.js +1 -28
- package/dist-cjs/commands/ListCapabilitiesCommand.js +1 -28
- package/dist-cjs/commands/ListPartnershipsCommand.js +1 -28
- package/dist-cjs/commands/ListProfilesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTransformersCommand.js +1 -28
- package/dist-cjs/commands/StartTransformerJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/TestMappingCommand.js +1 -28
- package/dist-cjs/commands/TestParsingCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateCapabilityCommand.js +1 -28
- package/dist-cjs/commands/UpdatePartnershipCommand.js +1 -29
- package/dist-cjs/commands/UpdateProfileCommand.js +1 -29
- package/dist-cjs/commands/UpdateTransformerCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -30
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2779 -11
- package/dist-cjs/models/B2biServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -227
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCapabilitiesPaginator.js +1 -7
- package/dist-cjs/pagination/ListPartnershipsPaginator.js +1 -7
- package/dist-cjs/pagination/ListProfilesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTransformersPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_json1_0.js +1 -1822
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-es/protocols/Aws_json1_0.js +9 -0
- package/dist-types/commands/CreateCapabilityCommand.d.ts +78 -0
- package/dist-types/commands/CreatePartnershipCommand.d.ts +39 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +35 -0
- package/dist-types/commands/CreateTransformerCommand.d.ts +45 -0
- package/dist-types/commands/DeleteCapabilityCommand.d.ts +11 -0
- package/dist-types/commands/DeletePartnershipCommand.d.ts +11 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +11 -0
- package/dist-types/commands/DeleteTransformerCommand.d.ts +11 -0
- package/dist-types/commands/GetCapabilityCommand.d.ts +46 -0
- package/dist-types/commands/GetPartnershipCommand.d.ts +27 -0
- package/dist-types/commands/GetProfileCommand.d.ts +24 -0
- package/dist-types/commands/GetTransformerCommand.d.ts +30 -0
- package/dist-types/commands/GetTransformerJobCommand.d.ts +24 -0
- package/dist-types/commands/ListCapabilitiesCommand.d.ts +26 -0
- package/dist-types/commands/ListPartnershipsCommand.d.ts +31 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +27 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +24 -0
- package/dist-types/commands/ListTransformersCommand.d.ts +35 -0
- package/dist-types/commands/StartTransformerJobCommand.d.ts +25 -0
- package/dist-types/commands/TagResourceCommand.d.ts +20 -0
- package/dist-types/commands/TestMappingCommand.d.ts +18 -0
- package/dist-types/commands/TestParsingCommand.d.ts +27 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/commands/UpdateCapabilityCommand.d.ts +72 -0
- package/dist-types/commands/UpdatePartnershipCommand.d.ts +31 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +29 -0
- package/dist-types/commands/UpdateTransformerCommand.d.ts +41 -0
- package/package.json +40 -40
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -878,6 +878,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
878
878
|
};
|
|
879
879
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
880
|
switch (errorCode) {
|
|
881
|
+
case "InternalServerException":
|
|
882
|
+
case "com.amazonaws.b2bi#InternalServerException":
|
|
883
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
881
884
|
case "ResourceNotFoundException":
|
|
882
885
|
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
883
886
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -980,6 +983,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
980
983
|
};
|
|
981
984
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
982
985
|
switch (errorCode) {
|
|
986
|
+
case "InternalServerException":
|
|
987
|
+
case "com.amazonaws.b2bi#InternalServerException":
|
|
988
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
983
989
|
case "ResourceNotFoundException":
|
|
984
990
|
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
985
991
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1103,6 +1109,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1103
1109
|
};
|
|
1104
1110
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
1111
|
switch (errorCode) {
|
|
1112
|
+
case "InternalServerException":
|
|
1113
|
+
case "com.amazonaws.b2bi#InternalServerException":
|
|
1114
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1106
1115
|
case "ResourceNotFoundException":
|
|
1107
1116
|
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
1108
1117
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -136,6 +136,84 @@ declare const CreateCapabilityCommand_base: {
|
|
|
136
136
|
* @throws {@link B2biServiceException}
|
|
137
137
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
138
138
|
*
|
|
139
|
+
* @example Sample CreateCapability call
|
|
140
|
+
* ```javascript
|
|
141
|
+
* //
|
|
142
|
+
* const input = {
|
|
143
|
+
* "name": "b2biexample",
|
|
144
|
+
* "type": "edi",
|
|
145
|
+
* "clientToken": "foo",
|
|
146
|
+
* "configuration": {
|
|
147
|
+
* "edi": {
|
|
148
|
+
* "type": {
|
|
149
|
+
* "x12Details": {
|
|
150
|
+
* "version": "VERSION_4010",
|
|
151
|
+
* "transactionSet": "X12_110"
|
|
152
|
+
* }
|
|
153
|
+
* },
|
|
154
|
+
* "inputLocation": {
|
|
155
|
+
* "key": "input/",
|
|
156
|
+
* "bucketName": "test-bucket"
|
|
157
|
+
* },
|
|
158
|
+
* "outputLocation": {
|
|
159
|
+
* "key": "output/",
|
|
160
|
+
* "bucketName": "test-bucket"
|
|
161
|
+
* },
|
|
162
|
+
* "transformerId": "tr-9a893cf536df4658b"
|
|
163
|
+
* }
|
|
164
|
+
* },
|
|
165
|
+
* "instructionsDocuments": [
|
|
166
|
+
* {
|
|
167
|
+
* "key": "instructiondoc.txt",
|
|
168
|
+
* "bucketName": "test-bucket"
|
|
169
|
+
* }
|
|
170
|
+
* ],
|
|
171
|
+
* "tags": [
|
|
172
|
+
* {
|
|
173
|
+
* "Key": "capabilityKey1",
|
|
174
|
+
* "Value": "capabilityValue1"
|
|
175
|
+
* }
|
|
176
|
+
* ]
|
|
177
|
+
* };
|
|
178
|
+
* const command = new CreateCapabilityCommand(input);
|
|
179
|
+
* const response = await client.send(command);
|
|
180
|
+
* /* response ==
|
|
181
|
+
* {
|
|
182
|
+
* "name": "b2biexample",
|
|
183
|
+
* "type": "edi",
|
|
184
|
+
* "capabilityArn": "arn:aws:b2bi:us-west-2:123456789012:capability/ca-963a8121e4fc4e348",
|
|
185
|
+
* "capabilityId": "ca-963a8121e4fc4e348",
|
|
186
|
+
* "configuration": {
|
|
187
|
+
* "edi": {
|
|
188
|
+
* "type": {
|
|
189
|
+
* "x12Details": {
|
|
190
|
+
* "version": "VERSION_4010",
|
|
191
|
+
* "transactionSet": "X12_110"
|
|
192
|
+
* }
|
|
193
|
+
* },
|
|
194
|
+
* "inputLocation": {
|
|
195
|
+
* "key": "input/",
|
|
196
|
+
* "bucketName": "test-bucket"
|
|
197
|
+
* },
|
|
198
|
+
* "outputLocation": {
|
|
199
|
+
* "key": "output/",
|
|
200
|
+
* "bucketName": "test-bucket"
|
|
201
|
+
* },
|
|
202
|
+
* "transformerId": "tr-9a893cf536df4658b"
|
|
203
|
+
* }
|
|
204
|
+
* },
|
|
205
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
206
|
+
* "instructionsDocuments": [
|
|
207
|
+
* {
|
|
208
|
+
* "key": "instructiondoc.txt",
|
|
209
|
+
* "bucketName": "test-bucket"
|
|
210
|
+
* }
|
|
211
|
+
* ]
|
|
212
|
+
* }
|
|
213
|
+
* *\/
|
|
214
|
+
* // example id: example-1
|
|
215
|
+
* ```
|
|
216
|
+
*
|
|
139
217
|
*/
|
|
140
218
|
export declare class CreateCapabilityCommand extends CreateCapabilityCommand_base {
|
|
141
219
|
}
|
|
@@ -98,6 +98,45 @@ declare const CreatePartnershipCommand_base: {
|
|
|
98
98
|
* @throws {@link B2biServiceException}
|
|
99
99
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
100
100
|
*
|
|
101
|
+
* @example Sample CreatePartnership call
|
|
102
|
+
* ```javascript
|
|
103
|
+
* //
|
|
104
|
+
* const input = {
|
|
105
|
+
* "name": "b2bipartner",
|
|
106
|
+
* "capabilities": [
|
|
107
|
+
* "ca-963a8121e4fc4e348"
|
|
108
|
+
* ],
|
|
109
|
+
* "clientToken": "foo",
|
|
110
|
+
* "email": "john@example.com",
|
|
111
|
+
* "phone": "5555555555",
|
|
112
|
+
* "profileId": "p-60fbc37c87f04fce9",
|
|
113
|
+
* "tags": [
|
|
114
|
+
* {
|
|
115
|
+
* "Key": "sampleKey1",
|
|
116
|
+
* "Value": "sampleValue1"
|
|
117
|
+
* }
|
|
118
|
+
* ]
|
|
119
|
+
* };
|
|
120
|
+
* const command = new CreatePartnershipCommand(input);
|
|
121
|
+
* const response = await client.send(command);
|
|
122
|
+
* /* response ==
|
|
123
|
+
* {
|
|
124
|
+
* "name": "b2bipartner",
|
|
125
|
+
* "capabilities": [
|
|
126
|
+
* "ca-963a8121e4fc4e348"
|
|
127
|
+
* ],
|
|
128
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
129
|
+
* "email": "john@example.com",
|
|
130
|
+
* "partnershipArn": "arn:aws:b2bi:us-west-2:123456789012:partnership/ps-60fbc37c87f04fce9",
|
|
131
|
+
* "partnershipId": "ps-219fa02f5b4242af8",
|
|
132
|
+
* "phone": "5555555555",
|
|
133
|
+
* "profileId": "p-60fbc37c87f04fce9",
|
|
134
|
+
* "tradingPartnerId": "tp-2a17ca447f6f4a8a8"
|
|
135
|
+
* }
|
|
136
|
+
* *\/
|
|
137
|
+
* // example id: example-1
|
|
138
|
+
* ```
|
|
139
|
+
*
|
|
101
140
|
*/
|
|
102
141
|
export declare class CreatePartnershipCommand extends CreatePartnershipCommand_base {
|
|
103
142
|
}
|
|
@@ -94,6 +94,41 @@ declare const CreateProfileCommand_base: {
|
|
|
94
94
|
* @throws {@link B2biServiceException}
|
|
95
95
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
96
96
|
*
|
|
97
|
+
* @example Sample CreateProfile call
|
|
98
|
+
* ```javascript
|
|
99
|
+
* //
|
|
100
|
+
* const input = {
|
|
101
|
+
* "name": "Shipping Profile",
|
|
102
|
+
* "businessName": "John's Shipping",
|
|
103
|
+
* "clientToken": "foo",
|
|
104
|
+
* "email": "john@example.com",
|
|
105
|
+
* "logging": "ENABLED",
|
|
106
|
+
* "phone": "5555555555",
|
|
107
|
+
* "tags": [
|
|
108
|
+
* {
|
|
109
|
+
* "Key": "sampleKey",
|
|
110
|
+
* "Value": "sampleValue"
|
|
111
|
+
* }
|
|
112
|
+
* ]
|
|
113
|
+
* };
|
|
114
|
+
* const command = new CreateProfileCommand(input);
|
|
115
|
+
* const response = await client.send(command);
|
|
116
|
+
* /* response ==
|
|
117
|
+
* {
|
|
118
|
+
* "name": "Shipping Profile",
|
|
119
|
+
* "businessName": "John's Trucking",
|
|
120
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
121
|
+
* "email": "john@example.com",
|
|
122
|
+
* "logGroupName": "b2bi/p-60fbc37c87f04fce9-Logs",
|
|
123
|
+
* "logging": "ENABLED",
|
|
124
|
+
* "phone": "5555555555",
|
|
125
|
+
* "profileArn": "arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9",
|
|
126
|
+
* "profileId": "p-60fbc37c87f04fce9"
|
|
127
|
+
* }
|
|
128
|
+
* *\/
|
|
129
|
+
* // example id: example-1
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
97
132
|
*/
|
|
98
133
|
export declare class CreateProfileCommand extends CreateProfileCommand_base {
|
|
99
134
|
}
|
|
@@ -105,6 +105,51 @@ declare const CreateTransformerCommand_base: {
|
|
|
105
105
|
* @throws {@link B2biServiceException}
|
|
106
106
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
107
107
|
*
|
|
108
|
+
* @example Sample CreateTransformer call
|
|
109
|
+
* ```javascript
|
|
110
|
+
* //
|
|
111
|
+
* const input = {
|
|
112
|
+
* "name": "transformJSON",
|
|
113
|
+
* "clientToken": "foo",
|
|
114
|
+
* "ediType": {
|
|
115
|
+
* "x12Details": {
|
|
116
|
+
* "version": "VERSION_4010",
|
|
117
|
+
* "transactionSet": "X12_110"
|
|
118
|
+
* }
|
|
119
|
+
* },
|
|
120
|
+
* "fileFormat": "JSON",
|
|
121
|
+
* "mappingTemplate": "{}",
|
|
122
|
+
* "sampleDocument": "s3://test-bucket/sampleDoc.txt",
|
|
123
|
+
* "tags": [
|
|
124
|
+
* {
|
|
125
|
+
* "Key": "sampleKey",
|
|
126
|
+
* "Value": "sampleValue"
|
|
127
|
+
* }
|
|
128
|
+
* ]
|
|
129
|
+
* };
|
|
130
|
+
* const command = new CreateTransformerCommand(input);
|
|
131
|
+
* const response = await client.send(command);
|
|
132
|
+
* /* response ==
|
|
133
|
+
* {
|
|
134
|
+
* "name": "transformJSON",
|
|
135
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
136
|
+
* "ediType": {
|
|
137
|
+
* "x12Details": {
|
|
138
|
+
* "version": "VERSION_4010",
|
|
139
|
+
* "transactionSet": "X12_110"
|
|
140
|
+
* }
|
|
141
|
+
* },
|
|
142
|
+
* "fileFormat": "JSON",
|
|
143
|
+
* "mappingTemplate": "$",
|
|
144
|
+
* "sampleDocument": "s3://test-bucket/sampleDoc.txt",
|
|
145
|
+
* "status": "inactive",
|
|
146
|
+
* "transformerArn": "arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9",
|
|
147
|
+
* "transformerId": "tr-974c129999f84d8c9"
|
|
148
|
+
* }
|
|
149
|
+
* *\/
|
|
150
|
+
* // example id: example-1
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
108
153
|
*/
|
|
109
154
|
export declare class CreateTransformerCommand extends CreateTransformerCommand_base {
|
|
110
155
|
}
|
|
@@ -69,6 +69,17 @@ declare const DeleteCapabilityCommand_base: {
|
|
|
69
69
|
* @throws {@link B2biServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
71
71
|
*
|
|
72
|
+
* @example Sample DeleteCapabilty call
|
|
73
|
+
* ```javascript
|
|
74
|
+
* //
|
|
75
|
+
* const input = {
|
|
76
|
+
* "capabilityId": "ca-963a8121e4fc4e348"
|
|
77
|
+
* };
|
|
78
|
+
* const command = new DeleteCapabilityCommand(input);
|
|
79
|
+
* await client.send(command);
|
|
80
|
+
* // example id: example-1
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
72
83
|
*/
|
|
73
84
|
export declare class DeleteCapabilityCommand extends DeleteCapabilityCommand_base {
|
|
74
85
|
}
|
|
@@ -70,6 +70,17 @@ declare const DeletePartnershipCommand_base: {
|
|
|
70
70
|
* @throws {@link B2biServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
72
72
|
*
|
|
73
|
+
* @example Sample DeletePartnership call
|
|
74
|
+
* ```javascript
|
|
75
|
+
* //
|
|
76
|
+
* const input = {
|
|
77
|
+
* "partnershipId": "ps-219fa02f5b4242af8"
|
|
78
|
+
* };
|
|
79
|
+
* const command = new DeletePartnershipCommand(input);
|
|
80
|
+
* await client.send(command);
|
|
81
|
+
* // example id: example-1
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
73
84
|
*/
|
|
74
85
|
export declare class DeletePartnershipCommand extends DeletePartnershipCommand_base {
|
|
75
86
|
}
|
|
@@ -70,6 +70,17 @@ declare const DeleteProfileCommand_base: {
|
|
|
70
70
|
* @throws {@link B2biServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
72
72
|
*
|
|
73
|
+
* @example Sample DeleteProfile call
|
|
74
|
+
* ```javascript
|
|
75
|
+
* //
|
|
76
|
+
* const input = {
|
|
77
|
+
* "profileId": "p-60fbc37c87f04fce9"
|
|
78
|
+
* };
|
|
79
|
+
* const command = new DeleteProfileCommand(input);
|
|
80
|
+
* await client.send(command);
|
|
81
|
+
* // example id: example-1
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
73
84
|
*/
|
|
74
85
|
export declare class DeleteProfileCommand extends DeleteProfileCommand_base {
|
|
75
86
|
}
|
|
@@ -71,6 +71,17 @@ declare const DeleteTransformerCommand_base: {
|
|
|
71
71
|
* @throws {@link B2biServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
73
73
|
*
|
|
74
|
+
* @example Sample DeleteTransformer call
|
|
75
|
+
* ```javascript
|
|
76
|
+
* //
|
|
77
|
+
* const input = {
|
|
78
|
+
* "transformerId": "tr-974c129999f84d8c9"
|
|
79
|
+
* };
|
|
80
|
+
* const command = new DeleteTransformerCommand(input);
|
|
81
|
+
* await client.send(command);
|
|
82
|
+
* // example id: example-1
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
74
85
|
*/
|
|
75
86
|
export declare class DeleteTransformerCommand extends DeleteTransformerCommand_base {
|
|
76
87
|
}
|
|
@@ -98,6 +98,52 @@ declare const GetCapabilityCommand_base: {
|
|
|
98
98
|
* @throws {@link B2biServiceException}
|
|
99
99
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
100
100
|
*
|
|
101
|
+
* @example Sample GetCapabilty call
|
|
102
|
+
* ```javascript
|
|
103
|
+
* //
|
|
104
|
+
* const input = {
|
|
105
|
+
* "capabilityId": "ca-963a8121e4fc4e348"
|
|
106
|
+
* };
|
|
107
|
+
* const command = new GetCapabilityCommand(input);
|
|
108
|
+
* const response = await client.send(command);
|
|
109
|
+
* /* response ==
|
|
110
|
+
* {
|
|
111
|
+
* "name": "b2biexample",
|
|
112
|
+
* "type": "edi",
|
|
113
|
+
* "capabilityArn": "arn:aws:b2bi:us-west-2:123456789012:capability/ca-963a8121e4fc4e348",
|
|
114
|
+
* "capabilityId": "ca-963a8121e4fc4e348",
|
|
115
|
+
* "configuration": {
|
|
116
|
+
* "edi": {
|
|
117
|
+
* "type": {
|
|
118
|
+
* "x12Details": {
|
|
119
|
+
* "version": "VERSION_4010",
|
|
120
|
+
* "transactionSet": "X12_110"
|
|
121
|
+
* }
|
|
122
|
+
* },
|
|
123
|
+
* "inputLocation": {
|
|
124
|
+
* "key": "input/",
|
|
125
|
+
* "bucketName": "test-bucket"
|
|
126
|
+
* },
|
|
127
|
+
* "outputLocation": {
|
|
128
|
+
* "key": "output/",
|
|
129
|
+
* "bucketName": "test-bucket"
|
|
130
|
+
* },
|
|
131
|
+
* "transformerId": "tr-9a893cf536df4658b"
|
|
132
|
+
* }
|
|
133
|
+
* },
|
|
134
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
135
|
+
* "instructionsDocuments": [
|
|
136
|
+
* {
|
|
137
|
+
* "key": "instructiondoc.txt",
|
|
138
|
+
* "bucketName": "test-bucket"
|
|
139
|
+
* }
|
|
140
|
+
* ],
|
|
141
|
+
* "modifiedAt": "2023-11-02T21:51:05.504Z"
|
|
142
|
+
* }
|
|
143
|
+
* *\/
|
|
144
|
+
* // example id: example-1
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
101
147
|
*/
|
|
102
148
|
export declare class GetCapabilityCommand extends GetCapabilityCommand_base {
|
|
103
149
|
}
|
|
@@ -80,6 +80,33 @@ declare const GetPartnershipCommand_base: {
|
|
|
80
80
|
* @throws {@link B2biServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
82
82
|
*
|
|
83
|
+
* @example Sample GetPartnership call
|
|
84
|
+
* ```javascript
|
|
85
|
+
* //
|
|
86
|
+
* const input = {
|
|
87
|
+
* "partnershipId": "ps-219fa02f5b4242af8"
|
|
88
|
+
* };
|
|
89
|
+
* const command = new GetPartnershipCommand(input);
|
|
90
|
+
* const response = await client.send(command);
|
|
91
|
+
* /* response ==
|
|
92
|
+
* {
|
|
93
|
+
* "name": "b2bipartner",
|
|
94
|
+
* "capabilities": [
|
|
95
|
+
* "ca-963a8121e4fc4e348"
|
|
96
|
+
* ],
|
|
97
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
98
|
+
* "email": "john@example.com",
|
|
99
|
+
* "modifiedAt": "2023-11-01T21:51:05.504Z",
|
|
100
|
+
* "partnershipArn": "arn:aws:b2bi:us-west-2:123456789012:partnership/ps-219fa02f5b4242af8",
|
|
101
|
+
* "partnershipId": "ps-219fa02f5b4242af8",
|
|
102
|
+
* "phone": "5555555555",
|
|
103
|
+
* "profileId": "p-60fbc37c87f04fce9",
|
|
104
|
+
* "tradingPartnerId": "tp-2a17ca447f6f4a8a8"
|
|
105
|
+
* }
|
|
106
|
+
* *\/
|
|
107
|
+
* // example id: example-1
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
83
110
|
*/
|
|
84
111
|
export declare class GetPartnershipCommand extends GetPartnershipCommand_base {
|
|
85
112
|
}
|
|
@@ -78,6 +78,30 @@ declare const GetProfileCommand_base: {
|
|
|
78
78
|
* @throws {@link B2biServiceException}
|
|
79
79
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
80
80
|
*
|
|
81
|
+
* @example Sample GetProfile call
|
|
82
|
+
* ```javascript
|
|
83
|
+
* //
|
|
84
|
+
* const input = {
|
|
85
|
+
* "profileId": "p-60fbc37c87f04fce9"
|
|
86
|
+
* };
|
|
87
|
+
* const command = new GetProfileCommand(input);
|
|
88
|
+
* const response = await client.send(command);
|
|
89
|
+
* /* response ==
|
|
90
|
+
* {
|
|
91
|
+
* "name": "Shipping Profile",
|
|
92
|
+
* "businessName": "John's Trucking",
|
|
93
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
94
|
+
* "email": "john@example.com",
|
|
95
|
+
* "logGroupName": "b2bi/p-60fbc37c87f04fce9-Logs",
|
|
96
|
+
* "logging": "ENABLED",
|
|
97
|
+
* "phone": "5555555555",
|
|
98
|
+
* "profileArn": "arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9",
|
|
99
|
+
* "profileId": "p-60fbc37c87f04fce9"
|
|
100
|
+
* }
|
|
101
|
+
* *\/
|
|
102
|
+
* // example id: example-1
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
81
105
|
*/
|
|
82
106
|
export declare class GetProfileCommand extends GetProfileCommand_base {
|
|
83
107
|
}
|
|
@@ -84,6 +84,36 @@ declare const GetTransformerCommand_base: {
|
|
|
84
84
|
* @throws {@link B2biServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
86
86
|
*
|
|
87
|
+
* @example Sample GetTransformer call
|
|
88
|
+
* ```javascript
|
|
89
|
+
* //
|
|
90
|
+
* const input = {
|
|
91
|
+
* "transformerId": "tr-974c129999f84d8c9"
|
|
92
|
+
* };
|
|
93
|
+
* const command = new GetTransformerCommand(input);
|
|
94
|
+
* const response = await client.send(command);
|
|
95
|
+
* /* response ==
|
|
96
|
+
* {
|
|
97
|
+
* "name": "transformJSON",
|
|
98
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
99
|
+
* "ediType": {
|
|
100
|
+
* "x12Details": {
|
|
101
|
+
* "version": "VERSION_4010",
|
|
102
|
+
* "transactionSet": "X12_110"
|
|
103
|
+
* }
|
|
104
|
+
* },
|
|
105
|
+
* "fileFormat": "JSON",
|
|
106
|
+
* "mappingTemplate": "$",
|
|
107
|
+
* "modifiedAt": "2023-11-01T21:51:05.504Z",
|
|
108
|
+
* "sampleDocument": "s3://test-bucket/sampleDoc.txt",
|
|
109
|
+
* "status": "inactive",
|
|
110
|
+
* "transformerArn": "arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9",
|
|
111
|
+
* "transformerId": "tr-974c129999f84d8c9"
|
|
112
|
+
* }
|
|
113
|
+
* *\/
|
|
114
|
+
* // example id: example-1
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
87
117
|
*/
|
|
88
118
|
export declare class GetTransformerCommand extends GetTransformerCommand_base {
|
|
89
119
|
}
|
|
@@ -76,6 +76,30 @@ declare const GetTransformerJobCommand_base: {
|
|
|
76
76
|
* @throws {@link B2biServiceException}
|
|
77
77
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
78
78
|
*
|
|
79
|
+
* @example Sample GetTransformerJob call
|
|
80
|
+
* ```javascript
|
|
81
|
+
* //
|
|
82
|
+
* const input = {
|
|
83
|
+
* "transformerId": "tr-974c129999f84d8c9",
|
|
84
|
+
* "transformerJobId": "tj-vpYxfV7yQOqjMSYllEslLw"
|
|
85
|
+
* };
|
|
86
|
+
* const command = new GetTransformerJobCommand(input);
|
|
87
|
+
* const response = await client.send(command);
|
|
88
|
+
* /* response ==
|
|
89
|
+
* {
|
|
90
|
+
* "message": "Transformed, writing output",
|
|
91
|
+
* "outputFiles": [
|
|
92
|
+
* {
|
|
93
|
+
* "key": "output/sample-214.edi.2023-11-01T10:44:03.353Z.json",
|
|
94
|
+
* "bucketName": "gt-edi-test"
|
|
95
|
+
* }
|
|
96
|
+
* ],
|
|
97
|
+
* "status": "succeeded"
|
|
98
|
+
* }
|
|
99
|
+
* *\/
|
|
100
|
+
* // example id: example-1
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
79
103
|
*/
|
|
80
104
|
export declare class GetTransformerJobCommand extends GetTransformerJobCommand_base {
|
|
81
105
|
}
|
|
@@ -63,6 +63,32 @@ declare const ListCapabilitiesCommand_base: {
|
|
|
63
63
|
* @throws {@link B2biServiceException}
|
|
64
64
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
65
65
|
*
|
|
66
|
+
* @example Sample ListCapabilities call
|
|
67
|
+
* ```javascript
|
|
68
|
+
* //
|
|
69
|
+
* const input = {
|
|
70
|
+
* "maxResults": 50,
|
|
71
|
+
* "nextToken": "foo"
|
|
72
|
+
* };
|
|
73
|
+
* const command = new ListCapabilitiesCommand(input);
|
|
74
|
+
* const response = await client.send(command);
|
|
75
|
+
* /* response ==
|
|
76
|
+
* {
|
|
77
|
+
* "capabilities": [
|
|
78
|
+
* {
|
|
79
|
+
* "name": "b2biexample",
|
|
80
|
+
* "type": "edi",
|
|
81
|
+
* "capabilityId": "ca-963a8121e4fc4e348",
|
|
82
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
83
|
+
* "modifiedAt": "2023-11-01T21:51:05.504Z"
|
|
84
|
+
* }
|
|
85
|
+
* ],
|
|
86
|
+
* "nextToken": "foo"
|
|
87
|
+
* }
|
|
88
|
+
* *\/
|
|
89
|
+
* // example id: example-1
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
66
92
|
*/
|
|
67
93
|
export declare class ListCapabilitiesCommand extends ListCapabilitiesCommand_base {
|
|
68
94
|
}
|
|
@@ -84,6 +84,37 @@ declare const ListPartnershipsCommand_base: {
|
|
|
84
84
|
* @throws {@link B2biServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
86
86
|
*
|
|
87
|
+
* @example Sample ListPartnerships call
|
|
88
|
+
* ```javascript
|
|
89
|
+
* //
|
|
90
|
+
* const input = {
|
|
91
|
+
* "maxResults": 50,
|
|
92
|
+
* "nextToken": "foo",
|
|
93
|
+
* "profileId": "p-60fbc37c87f04fce9"
|
|
94
|
+
* };
|
|
95
|
+
* const command = new ListPartnershipsCommand(input);
|
|
96
|
+
* const response = await client.send(command);
|
|
97
|
+
* /* response ==
|
|
98
|
+
* {
|
|
99
|
+
* "nextToken": "string",
|
|
100
|
+
* "partnerships": [
|
|
101
|
+
* {
|
|
102
|
+
* "name": "b2bipartner",
|
|
103
|
+
* "capabilities": [
|
|
104
|
+
* "ca-963a8121e4fc4e348"
|
|
105
|
+
* ],
|
|
106
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
107
|
+
* "modifiedAt": "2023-11-01T21:51:05.504Z",
|
|
108
|
+
* "partnershipId": "ps-219fa02f5b4242af8",
|
|
109
|
+
* "profileId": "p-60fbc37c87f04fce9",
|
|
110
|
+
* "tradingPartnerId": "tp-2a17ca447f6f4a8a8"
|
|
111
|
+
* }
|
|
112
|
+
* ]
|
|
113
|
+
* }
|
|
114
|
+
* *\/
|
|
115
|
+
* // example id: example-1
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
87
118
|
*/
|
|
88
119
|
export declare class ListPartnershipsCommand extends ListPartnershipsCommand_base {
|
|
89
120
|
}
|
|
@@ -66,6 +66,33 @@ declare const ListProfilesCommand_base: {
|
|
|
66
66
|
* @throws {@link B2biServiceException}
|
|
67
67
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
68
68
|
*
|
|
69
|
+
* @example Sample ListProfiles call
|
|
70
|
+
* ```javascript
|
|
71
|
+
* //
|
|
72
|
+
* const input = {
|
|
73
|
+
* "maxResults": 50,
|
|
74
|
+
* "nextToken": "foo"
|
|
75
|
+
* };
|
|
76
|
+
* const command = new ListProfilesCommand(input);
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response ==
|
|
79
|
+
* {
|
|
80
|
+
* "nextToken": "foo",
|
|
81
|
+
* "profiles": [
|
|
82
|
+
* {
|
|
83
|
+
* "name": "Shipping Profile",
|
|
84
|
+
* "businessName": "John's Trucking",
|
|
85
|
+
* "createdAt": "2023-11-01T21:51:05.504Z",
|
|
86
|
+
* "logGroupName": "b2bi/p-60fbc37c87f04fce9-Logs",
|
|
87
|
+
* "logging": "ENABLED",
|
|
88
|
+
* "profileId": "p-60fbc37c87f04fce9"
|
|
89
|
+
* }
|
|
90
|
+
* ]
|
|
91
|
+
* }
|
|
92
|
+
* *\/
|
|
93
|
+
* // example id: example-1
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
69
96
|
*/
|
|
70
97
|
export declare class ListProfilesCommand extends ListProfilesCommand_base {
|
|
71
98
|
}
|