@aws-sdk/client-b2bi 3.658.1 → 3.663.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +205 -4
  3. package/dist-es/B2bi.js +4 -0
  4. package/dist-es/commands/CreateStarterMappingTemplateCommand.js +22 -0
  5. package/dist-es/commands/TestConversionCommand.js +22 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +78 -0
  8. package/dist-es/protocols/Aws_json1_0.js +63 -0
  9. package/dist-types/B2bi.d.ts +14 -0
  10. package/dist-types/B2biClient.d.ts +4 -2
  11. package/dist-types/commands/CreateCapabilityCommand.d.ts +2 -0
  12. package/dist-types/commands/CreatePartnershipCommand.d.ts +56 -0
  13. package/dist-types/commands/CreateStarterMappingTemplateCommand.d.ts +99 -0
  14. package/dist-types/commands/CreateTransformerCommand.d.ts +106 -14
  15. package/dist-types/commands/DeleteTransformerCommand.d.ts +2 -3
  16. package/dist-types/commands/GetCapabilityCommand.d.ts +1 -0
  17. package/dist-types/commands/GetPartnershipCommand.d.ts +28 -0
  18. package/dist-types/commands/GetTransformerCommand.d.ts +37 -7
  19. package/dist-types/commands/ListPartnershipsCommand.d.ts +28 -0
  20. package/dist-types/commands/ListTransformersCommand.d.ts +37 -7
  21. package/dist-types/commands/StartTransformerJobCommand.d.ts +1 -1
  22. package/dist-types/commands/TestConversionCommand.d.ts +109 -0
  23. package/dist-types/commands/TestMappingCommand.d.ts +1 -1
  24. package/dist-types/commands/TestParsingCommand.d.ts +1 -1
  25. package/dist-types/commands/UpdateCapabilityCommand.d.ts +2 -0
  26. package/dist-types/commands/UpdatePartnershipCommand.d.ts +56 -0
  27. package/dist-types/commands/UpdateTransformerCommand.d.ts +70 -9
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/models/models_0.d.ts +934 -105
  30. package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
  31. package/dist-types/ts3.4/B2bi.d.ts +34 -0
  32. package/dist-types/ts3.4/B2biClient.d.ts +12 -0
  33. package/dist-types/ts3.4/commands/CreateStarterMappingTemplateCommand.d.ts +51 -0
  34. package/dist-types/ts3.4/commands/TestConversionCommand.d.ts +50 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +276 -21
  37. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
  38. package/package.json +35 -35
@@ -24,6 +24,10 @@ export class ConflictException extends __BaseException {
24
24
  Object.setPrototypeOf(this, ConflictException.prototype);
25
25
  }
26
26
  }
27
+ export const CapabilityDirection = {
28
+ INBOUND: "INBOUND",
29
+ OUTBOUND: "OUTBOUND",
30
+ };
27
31
  export const X12TransactionSet = {
28
32
  X12_110: "X12_110",
29
33
  X12_180: "X12_180",
@@ -195,19 +199,89 @@ export class ValidationException extends __BaseException {
195
199
  this.Message = opts.Message;
196
200
  }
197
201
  }
202
+ export const MappingType = {
203
+ JSONATA: "JSONATA",
204
+ XSLT: "XSLT",
205
+ };
206
+ export var TemplateDetails;
207
+ (function (TemplateDetails) {
208
+ TemplateDetails.visit = (value, visitor) => {
209
+ if (value.x12 !== undefined)
210
+ return visitor.x12(value.x12);
211
+ return visitor._(value.$unknown[0], value.$unknown[1]);
212
+ };
213
+ })(TemplateDetails || (TemplateDetails = {}));
198
214
  export const TransformerJobStatus = {
199
215
  FAILED: "failed",
200
216
  RUNNING: "running",
201
217
  SUCCEEDED: "succeeded",
202
218
  };
219
+ export var OutboundEdiOptions;
220
+ (function (OutboundEdiOptions) {
221
+ OutboundEdiOptions.visit = (value, visitor) => {
222
+ if (value.x12 !== undefined)
223
+ return visitor.x12(value.x12);
224
+ return visitor._(value.$unknown[0], value.$unknown[1]);
225
+ };
226
+ })(OutboundEdiOptions || (OutboundEdiOptions = {}));
203
227
  export const Logging = {
204
228
  DISABLED: "DISABLED",
205
229
  ENABLED: "ENABLED",
206
230
  };
231
+ export const ConversionSourceFormat = {
232
+ JSON: "JSON",
233
+ XML: "XML",
234
+ };
235
+ export var InputFileSource;
236
+ (function (InputFileSource) {
237
+ InputFileSource.visit = (value, visitor) => {
238
+ if (value.fileContent !== undefined)
239
+ return visitor.fileContent(value.fileContent);
240
+ return visitor._(value.$unknown[0], value.$unknown[1]);
241
+ };
242
+ })(InputFileSource || (InputFileSource = {}));
243
+ export const ConversionTargetFormat = {
244
+ X12: "X12",
245
+ };
246
+ export var ConversionTargetFormatDetails;
247
+ (function (ConversionTargetFormatDetails) {
248
+ ConversionTargetFormatDetails.visit = (value, visitor) => {
249
+ if (value.x12 !== undefined)
250
+ return visitor.x12(value.x12);
251
+ return visitor._(value.$unknown[0], value.$unknown[1]);
252
+ };
253
+ })(ConversionTargetFormatDetails || (ConversionTargetFormatDetails = {}));
254
+ export var OutputSampleFileSource;
255
+ (function (OutputSampleFileSource) {
256
+ OutputSampleFileSource.visit = (value, visitor) => {
257
+ if (value.fileLocation !== undefined)
258
+ return visitor.fileLocation(value.fileLocation);
259
+ return visitor._(value.$unknown[0], value.$unknown[1]);
260
+ };
261
+ })(OutputSampleFileSource || (OutputSampleFileSource = {}));
207
262
  export const FileFormat = {
208
263
  JSON: "JSON",
264
+ NOT_USED: "NOT_USED",
209
265
  XML: "XML",
210
266
  };
267
+ export var FormatOptions;
268
+ (function (FormatOptions) {
269
+ FormatOptions.visit = (value, visitor) => {
270
+ if (value.x12 !== undefined)
271
+ return visitor.x12(value.x12);
272
+ return visitor._(value.$unknown[0], value.$unknown[1]);
273
+ };
274
+ })(FormatOptions || (FormatOptions = {}));
275
+ export const FromFormat = {
276
+ X12: "X12",
277
+ };
278
+ export const MappingTemplateLanguage = {
279
+ JSONATA: "JSONATA",
280
+ XSLT: "XSLT",
281
+ };
282
+ export const ToFormat = {
283
+ X12: "X12",
284
+ };
211
285
  export const TransformerStatus = {
212
286
  ACTIVE: "active",
213
287
  INACTIVE: "inactive",
@@ -216,21 +290,25 @@ export const CreatePartnershipRequestFilterSensitiveLog = (obj) => ({
216
290
  ...obj,
217
291
  ...(obj.email && { email: SENSITIVE_STRING }),
218
292
  ...(obj.phone && { phone: SENSITIVE_STRING }),
293
+ ...(obj.capabilityOptions && { capabilityOptions: obj.capabilityOptions }),
219
294
  });
220
295
  export const CreatePartnershipResponseFilterSensitiveLog = (obj) => ({
221
296
  ...obj,
222
297
  ...(obj.email && { email: SENSITIVE_STRING }),
223
298
  ...(obj.phone && { phone: SENSITIVE_STRING }),
299
+ ...(obj.capabilityOptions && { capabilityOptions: obj.capabilityOptions }),
224
300
  });
225
301
  export const GetPartnershipResponseFilterSensitiveLog = (obj) => ({
226
302
  ...obj,
227
303
  ...(obj.email && { email: SENSITIVE_STRING }),
228
304
  ...(obj.phone && { phone: SENSITIVE_STRING }),
305
+ ...(obj.capabilityOptions && { capabilityOptions: obj.capabilityOptions }),
229
306
  });
230
307
  export const UpdatePartnershipResponseFilterSensitiveLog = (obj) => ({
231
308
  ...obj,
232
309
  ...(obj.email && { email: SENSITIVE_STRING }),
233
310
  ...(obj.phone && { phone: SENSITIVE_STRING }),
311
+ ...(obj.capabilityOptions && { capabilityOptions: obj.capabilityOptions }),
234
312
  });
235
313
  export const CreateProfileRequestFilterSensitiveLog = (obj) => ({
236
314
  ...obj,
@@ -22,6 +22,12 @@ export const se_CreateProfileCommand = async (input, context) => {
22
22
  body = JSON.stringify(se_CreateProfileRequest(input, context));
23
23
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
24
  };
25
+ export const se_CreateStarterMappingTemplateCommand = async (input, context) => {
26
+ const headers = sharedHeaders("CreateStarterMappingTemplate");
27
+ let body;
28
+ body = JSON.stringify(_json(input));
29
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
+ };
25
31
  export const se_CreateTransformerCommand = async (input, context) => {
26
32
  const headers = sharedHeaders("CreateTransformer");
27
33
  let body;
@@ -124,6 +130,12 @@ export const se_TagResourceCommand = async (input, context) => {
124
130
  body = JSON.stringify(_json(input));
125
131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
132
  };
133
+ export const se_TestConversionCommand = async (input, context) => {
134
+ const headers = sharedHeaders("TestConversion");
135
+ let body;
136
+ body = JSON.stringify(_json(input));
137
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
+ };
127
139
  export const se_TestMappingCommand = async (input, context) => {
128
140
  const headers = sharedHeaders("TestMapping");
129
141
  let body;
@@ -205,6 +217,19 @@ export const de_CreateProfileCommand = async (output, context) => {
205
217
  };
206
218
  return response;
207
219
  };
220
+ export const de_CreateStarterMappingTemplateCommand = async (output, context) => {
221
+ if (output.statusCode >= 300) {
222
+ return de_CommandError(output, context);
223
+ }
224
+ const data = await parseBody(output.body, context);
225
+ let contents = {};
226
+ contents = _json(data);
227
+ const response = {
228
+ $metadata: deserializeMetadata(output),
229
+ ...contents,
230
+ };
231
+ return response;
232
+ };
208
233
  export const de_CreateTransformerCommand = async (output, context) => {
209
234
  if (output.statusCode >= 300) {
210
235
  return de_CommandError(output, context);
@@ -411,6 +436,19 @@ export const de_TagResourceCommand = async (output, context) => {
411
436
  };
412
437
  return response;
413
438
  };
439
+ export const de_TestConversionCommand = async (output, context) => {
440
+ if (output.statusCode >= 300) {
441
+ return de_CommandError(output, context);
442
+ }
443
+ const data = await parseBody(output.body, context);
444
+ let contents = {};
445
+ contents = _json(data);
446
+ const response = {
447
+ $metadata: deserializeMetadata(output),
448
+ ...contents,
449
+ };
450
+ return response;
451
+ };
414
452
  export const de_TestMappingCommand = async (output, context) => {
415
453
  if (output.statusCode >= 300) {
416
454
  return de_CommandError(output, context);
@@ -612,6 +650,7 @@ const se_CreateCapabilityRequest = (input, context) => {
612
650
  const se_CreatePartnershipRequest = (input, context) => {
613
651
  return take(input, {
614
652
  capabilities: _json,
653
+ capabilityOptions: _json,
615
654
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
616
655
  email: [],
617
656
  name: [],
@@ -636,9 +675,13 @@ const se_CreateTransformerRequest = (input, context) => {
636
675
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
637
676
  ediType: _json,
638
677
  fileFormat: [],
678
+ inputConversion: _json,
679
+ mapping: _json,
639
680
  mappingTemplate: [],
640
681
  name: [],
682
+ outputConversion: _json,
641
683
  sampleDocument: [],
684
+ sampleDocuments: _json,
642
685
  tags: _json,
643
686
  });
644
687
  };
@@ -681,6 +724,7 @@ const de_CreateCapabilityResponse = (output, context) => {
681
724
  const de_CreatePartnershipResponse = (output, context) => {
682
725
  return take(output, {
683
726
  capabilities: _json,
727
+ capabilityOptions: _json,
684
728
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
685
729
  email: __expectString,
686
730
  name: __expectString,
@@ -709,9 +753,13 @@ const de_CreateTransformerResponse = (output, context) => {
709
753
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
710
754
  ediType: (_) => _json(__expectUnion(_)),
711
755
  fileFormat: __expectString,
756
+ inputConversion: _json,
757
+ mapping: _json,
712
758
  mappingTemplate: __expectString,
713
759
  name: __expectString,
760
+ outputConversion: _json,
714
761
  sampleDocument: __expectString,
762
+ sampleDocuments: _json,
715
763
  status: __expectString,
716
764
  transformerArn: __expectString,
717
765
  transformerId: __expectString,
@@ -732,6 +780,7 @@ const de_GetCapabilityResponse = (output, context) => {
732
780
  const de_GetPartnershipResponse = (output, context) => {
733
781
  return take(output, {
734
782
  capabilities: _json,
783
+ capabilityOptions: _json,
735
784
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
736
785
  email: __expectString,
737
786
  modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
@@ -762,10 +811,14 @@ const de_GetTransformerResponse = (output, context) => {
762
811
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
763
812
  ediType: (_) => _json(__expectUnion(_)),
764
813
  fileFormat: __expectString,
814
+ inputConversion: _json,
815
+ mapping: _json,
765
816
  mappingTemplate: __expectString,
766
817
  modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
767
818
  name: __expectString,
819
+ outputConversion: _json,
768
820
  sampleDocument: __expectString,
821
+ sampleDocuments: _json,
769
822
  status: __expectString,
770
823
  transformerArn: __expectString,
771
824
  transformerId: __expectString,
@@ -806,6 +859,7 @@ const de_PartnershipList = (output, context) => {
806
859
  const de_PartnershipSummary = (output, context) => {
807
860
  return take(output, {
808
861
  capabilities: _json,
862
+ capabilityOptions: _json,
809
863
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
810
864
  modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
811
865
  name: __expectString,
@@ -846,10 +900,14 @@ const de_TransformerSummary = (output, context) => {
846
900
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
847
901
  ediType: (_) => _json(__expectUnion(_)),
848
902
  fileFormat: __expectString,
903
+ inputConversion: _json,
904
+ mapping: _json,
849
905
  mappingTemplate: __expectString,
850
906
  modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
851
907
  name: __expectString,
908
+ outputConversion: _json,
852
909
  sampleDocument: __expectString,
910
+ sampleDocuments: _json,
853
911
  status: __expectString,
854
912
  transformerId: __expectString,
855
913
  });
@@ -869,6 +927,7 @@ const de_UpdateCapabilityResponse = (output, context) => {
869
927
  const de_UpdatePartnershipResponse = (output, context) => {
870
928
  return take(output, {
871
929
  capabilities: _json,
930
+ capabilityOptions: _json,
872
931
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
873
932
  email: __expectString,
874
933
  modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
@@ -899,10 +958,14 @@ const de_UpdateTransformerResponse = (output, context) => {
899
958
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
900
959
  ediType: (_) => _json(__expectUnion(_)),
901
960
  fileFormat: __expectString,
961
+ inputConversion: _json,
962
+ mapping: _json,
902
963
  mappingTemplate: __expectString,
903
964
  modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
904
965
  name: __expectString,
966
+ outputConversion: _json,
905
967
  sampleDocument: __expectString,
968
+ sampleDocuments: _json,
906
969
  status: __expectString,
907
970
  transformerArn: __expectString,
908
971
  transformerId: __expectString,
@@ -3,6 +3,7 @@ import { B2biClient } from "./B2biClient";
3
3
  import { CreateCapabilityCommandInput, CreateCapabilityCommandOutput } from "./commands/CreateCapabilityCommand";
4
4
  import { CreatePartnershipCommandInput, CreatePartnershipCommandOutput } from "./commands/CreatePartnershipCommand";
5
5
  import { CreateProfileCommandInput, CreateProfileCommandOutput } from "./commands/CreateProfileCommand";
6
+ import { CreateStarterMappingTemplateCommandInput, CreateStarterMappingTemplateCommandOutput } from "./commands/CreateStarterMappingTemplateCommand";
6
7
  import { CreateTransformerCommandInput, CreateTransformerCommandOutput } from "./commands/CreateTransformerCommand";
7
8
  import { DeleteCapabilityCommandInput, DeleteCapabilityCommandOutput } from "./commands/DeleteCapabilityCommand";
8
9
  import { DeletePartnershipCommandInput, DeletePartnershipCommandOutput } from "./commands/DeletePartnershipCommand";
@@ -20,6 +21,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
20
21
  import { ListTransformersCommandInput, ListTransformersCommandOutput } from "./commands/ListTransformersCommand";
21
22
  import { StartTransformerJobCommandInput, StartTransformerJobCommandOutput } from "./commands/StartTransformerJobCommand";
22
23
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
24
+ import { TestConversionCommandInput, TestConversionCommandOutput } from "./commands/TestConversionCommand";
23
25
  import { TestMappingCommandInput, TestMappingCommandOutput } from "./commands/TestMappingCommand";
24
26
  import { TestParsingCommandInput, TestParsingCommandOutput } from "./commands/TestParsingCommand";
25
27
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -46,6 +48,12 @@ export interface B2bi {
46
48
  createProfile(args: CreateProfileCommandInput, options?: __HttpHandlerOptions): Promise<CreateProfileCommandOutput>;
47
49
  createProfile(args: CreateProfileCommandInput, cb: (err: any, data?: CreateProfileCommandOutput) => void): void;
48
50
  createProfile(args: CreateProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProfileCommandOutput) => void): void;
51
+ /**
52
+ * @see {@link CreateStarterMappingTemplateCommand}
53
+ */
54
+ createStarterMappingTemplate(args: CreateStarterMappingTemplateCommandInput, options?: __HttpHandlerOptions): Promise<CreateStarterMappingTemplateCommandOutput>;
55
+ createStarterMappingTemplate(args: CreateStarterMappingTemplateCommandInput, cb: (err: any, data?: CreateStarterMappingTemplateCommandOutput) => void): void;
56
+ createStarterMappingTemplate(args: CreateStarterMappingTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateStarterMappingTemplateCommandOutput) => void): void;
49
57
  /**
50
58
  * @see {@link CreateTransformerCommand}
51
59
  */
@@ -152,6 +160,12 @@ export interface B2bi {
152
160
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
153
161
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
154
162
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
163
+ /**
164
+ * @see {@link TestConversionCommand}
165
+ */
166
+ testConversion(args: TestConversionCommandInput, options?: __HttpHandlerOptions): Promise<TestConversionCommandOutput>;
167
+ testConversion(args: TestConversionCommandInput, cb: (err: any, data?: TestConversionCommandOutput) => void): void;
168
+ testConversion(args: TestConversionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TestConversionCommandOutput) => void): void;
155
169
  /**
156
170
  * @see {@link TestMappingCommand}
157
171
  */
@@ -10,6 +10,7 @@ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/
10
10
  import { CreateCapabilityCommandInput, CreateCapabilityCommandOutput } from "./commands/CreateCapabilityCommand";
11
11
  import { CreatePartnershipCommandInput, CreatePartnershipCommandOutput } from "./commands/CreatePartnershipCommand";
12
12
  import { CreateProfileCommandInput, CreateProfileCommandOutput } from "./commands/CreateProfileCommand";
13
+ import { CreateStarterMappingTemplateCommandInput, CreateStarterMappingTemplateCommandOutput } from "./commands/CreateStarterMappingTemplateCommand";
13
14
  import { CreateTransformerCommandInput, CreateTransformerCommandOutput } from "./commands/CreateTransformerCommand";
14
15
  import { DeleteCapabilityCommandInput, DeleteCapabilityCommandOutput } from "./commands/DeleteCapabilityCommand";
15
16
  import { DeletePartnershipCommandInput, DeletePartnershipCommandOutput } from "./commands/DeletePartnershipCommand";
@@ -27,6 +28,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
27
28
  import { ListTransformersCommandInput, ListTransformersCommandOutput } from "./commands/ListTransformersCommand";
28
29
  import { StartTransformerJobCommandInput, StartTransformerJobCommandOutput } from "./commands/StartTransformerJobCommand";
29
30
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
31
+ import { TestConversionCommandInput, TestConversionCommandOutput } from "./commands/TestConversionCommand";
30
32
  import { TestMappingCommandInput, TestMappingCommandOutput } from "./commands/TestMappingCommand";
31
33
  import { TestParsingCommandInput, TestParsingCommandOutput } from "./commands/TestParsingCommand";
32
34
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -40,11 +42,11 @@ export { __Client };
40
42
  /**
41
43
  * @public
42
44
  */
43
- 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
+ export type ServiceInputTypes = CreateCapabilityCommandInput | CreatePartnershipCommandInput | CreateProfileCommandInput | CreateStarterMappingTemplateCommandInput | CreateTransformerCommandInput | DeleteCapabilityCommandInput | DeletePartnershipCommandInput | DeleteProfileCommandInput | DeleteTransformerCommandInput | GetCapabilityCommandInput | GetPartnershipCommandInput | GetProfileCommandInput | GetTransformerCommandInput | GetTransformerJobCommandInput | ListCapabilitiesCommandInput | ListPartnershipsCommandInput | ListProfilesCommandInput | ListTagsForResourceCommandInput | ListTransformersCommandInput | StartTransformerJobCommandInput | TagResourceCommandInput | TestConversionCommandInput | TestMappingCommandInput | TestParsingCommandInput | UntagResourceCommandInput | UpdateCapabilityCommandInput | UpdatePartnershipCommandInput | UpdateProfileCommandInput | UpdateTransformerCommandInput;
44
46
  /**
45
47
  * @public
46
48
  */
47
- 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
+ export type ServiceOutputTypes = CreateCapabilityCommandOutput | CreatePartnershipCommandOutput | CreateProfileCommandOutput | CreateStarterMappingTemplateCommandOutput | CreateTransformerCommandOutput | DeleteCapabilityCommandOutput | DeletePartnershipCommandOutput | DeleteProfileCommandOutput | DeleteTransformerCommandOutput | GetCapabilityCommandOutput | GetPartnershipCommandOutput | GetProfileCommandOutput | GetTransformerCommandOutput | GetTransformerJobCommandOutput | ListCapabilitiesCommandOutput | ListPartnershipsCommandOutput | ListProfilesCommandOutput | ListTagsForResourceCommandOutput | ListTransformersCommandOutput | StartTransformerJobCommandOutput | TagResourceCommandOutput | TestConversionCommandOutput | TestMappingCommandOutput | TestParsingCommandOutput | UntagResourceCommandOutput | UpdateCapabilityCommandOutput | UpdatePartnershipCommandOutput | UpdateProfileCommandOutput | UpdateTransformerCommandOutput;
48
50
  /**
49
51
  * @public
50
52
  */
@@ -39,6 +39,7 @@ declare const CreateCapabilityCommand_base: {
39
39
  * type: "edi", // required
40
40
  * configuration: { // CapabilityConfiguration Union: only one key present
41
41
  * edi: { // EdiConfiguration
42
+ * capabilityDirection: "INBOUND" || "OUTBOUND",
42
43
  * type: { // EdiType Union: only one key present
43
44
  * x12Details: { // X12Details
44
45
  * transactionSet: "X12_110" || "X12_180" || "X12_204" || "X12_210" || "X12_211" || "X12_214" || "X12_215" || "X12_259" || "X12_260" || "X12_266" || "X12_269" || "X12_270" || "X12_271" || "X12_274" || "X12_275" || "X12_276" || "X12_277" || "X12_278" || "X12_310" || "X12_315" || "X12_322" || "X12_404" || "X12_410" || "X12_417" || "X12_421" || "X12_426" || "X12_810" || "X12_820" || "X12_824" || "X12_830" || "X12_832" || "X12_834" || "X12_835" || "X12_837" || "X12_844" || "X12_846" || "X12_849" || "X12_850" || "X12_852" || "X12_855" || "X12_856" || "X12_860" || "X12_861" || "X12_864" || "X12_865" || "X12_869" || "X12_870" || "X12_940" || "X12_945" || "X12_990" || "X12_997" || "X12_999" || "X12_270_X279" || "X12_271_X279" || "X12_275_X210" || "X12_275_X211" || "X12_276_X212" || "X12_277_X212" || "X12_277_X214" || "X12_277_X364" || "X12_278_X217" || "X12_820_X218" || "X12_820_X306" || "X12_824_X186" || "X12_834_X220" || "X12_834_X307" || "X12_834_X318" || "X12_835_X221" || "X12_837_X222" || "X12_837_X223" || "X12_837_X224" || "X12_837_X291" || "X12_837_X292" || "X12_837_X298" || "X12_999_X231",
@@ -79,6 +80,7 @@ declare const CreateCapabilityCommand_base: {
79
80
  * // type: "edi", // required
80
81
  * // configuration: { // CapabilityConfiguration Union: only one key present
81
82
  * // edi: { // EdiConfiguration
83
+ * // capabilityDirection: "INBOUND" || "OUTBOUND",
82
84
  * // type: { // EdiType Union: only one key present
83
85
  * // x12Details: { // X12Details
84
86
  * // transactionSet: "X12_110" || "X12_180" || "X12_204" || "X12_210" || "X12_211" || "X12_214" || "X12_215" || "X12_259" || "X12_260" || "X12_266" || "X12_269" || "X12_270" || "X12_271" || "X12_274" || "X12_275" || "X12_276" || "X12_277" || "X12_278" || "X12_310" || "X12_315" || "X12_322" || "X12_404" || "X12_410" || "X12_417" || "X12_421" || "X12_426" || "X12_810" || "X12_820" || "X12_824" || "X12_830" || "X12_832" || "X12_834" || "X12_835" || "X12_837" || "X12_844" || "X12_846" || "X12_849" || "X12_850" || "X12_852" || "X12_855" || "X12_856" || "X12_860" || "X12_861" || "X12_864" || "X12_865" || "X12_869" || "X12_870" || "X12_940" || "X12_945" || "X12_990" || "X12_997" || "X12_999" || "X12_270_X279" || "X12_271_X279" || "X12_275_X210" || "X12_275_X211" || "X12_276_X212" || "X12_277_X212" || "X12_277_X214" || "X12_277_X364" || "X12_278_X217" || "X12_820_X218" || "X12_820_X306" || "X12_824_X186" || "X12_834_X220" || "X12_834_X307" || "X12_834_X318" || "X12_835_X221" || "X12_837_X222" || "X12_837_X223" || "X12_837_X224" || "X12_837_X291" || "X12_837_X292" || "X12_837_X298" || "X12_999_X231",
@@ -43,6 +43,34 @@ declare const CreatePartnershipCommand_base: {
43
43
  * capabilities: [ // PartnershipCapabilities // required
44
44
  * "STRING_VALUE",
45
45
  * ],
46
+ * capabilityOptions: { // CapabilityOptions
47
+ * outboundEdi: { // OutboundEdiOptions Union: only one key present
48
+ * x12: { // X12Envelope
49
+ * common: { // X12OutboundEdiHeaders
50
+ * interchangeControlHeaders: { // X12InterchangeControlHeaders
51
+ * senderIdQualifier: "STRING_VALUE",
52
+ * senderId: "STRING_VALUE",
53
+ * receiverIdQualifier: "STRING_VALUE",
54
+ * receiverId: "STRING_VALUE",
55
+ * repetitionSeparator: "STRING_VALUE",
56
+ * acknowledgmentRequestedCode: "STRING_VALUE",
57
+ * usageIndicatorCode: "STRING_VALUE",
58
+ * },
59
+ * functionalGroupHeaders: { // X12FunctionalGroupHeaders
60
+ * applicationSenderCode: "STRING_VALUE",
61
+ * applicationReceiverCode: "STRING_VALUE",
62
+ * responsibleAgencyCode: "STRING_VALUE",
63
+ * },
64
+ * delimiters: { // X12Delimiters
65
+ * componentSeparator: "STRING_VALUE",
66
+ * dataElementSeparator: "STRING_VALUE",
67
+ * segmentTerminator: "STRING_VALUE",
68
+ * },
69
+ * validateEdi: true || false,
70
+ * },
71
+ * },
72
+ * },
73
+ * },
46
74
  * clientToken: "STRING_VALUE",
47
75
  * tags: [ // TagList
48
76
  * { // Tag
@@ -63,6 +91,34 @@ declare const CreatePartnershipCommand_base: {
63
91
  * // capabilities: [ // PartnershipCapabilities
64
92
  * // "STRING_VALUE",
65
93
  * // ],
94
+ * // capabilityOptions: { // CapabilityOptions
95
+ * // outboundEdi: { // OutboundEdiOptions Union: only one key present
96
+ * // x12: { // X12Envelope
97
+ * // common: { // X12OutboundEdiHeaders
98
+ * // interchangeControlHeaders: { // X12InterchangeControlHeaders
99
+ * // senderIdQualifier: "STRING_VALUE",
100
+ * // senderId: "STRING_VALUE",
101
+ * // receiverIdQualifier: "STRING_VALUE",
102
+ * // receiverId: "STRING_VALUE",
103
+ * // repetitionSeparator: "STRING_VALUE",
104
+ * // acknowledgmentRequestedCode: "STRING_VALUE",
105
+ * // usageIndicatorCode: "STRING_VALUE",
106
+ * // },
107
+ * // functionalGroupHeaders: { // X12FunctionalGroupHeaders
108
+ * // applicationSenderCode: "STRING_VALUE",
109
+ * // applicationReceiverCode: "STRING_VALUE",
110
+ * // responsibleAgencyCode: "STRING_VALUE",
111
+ * // },
112
+ * // delimiters: { // X12Delimiters
113
+ * // componentSeparator: "STRING_VALUE",
114
+ * // dataElementSeparator: "STRING_VALUE",
115
+ * // segmentTerminator: "STRING_VALUE",
116
+ * // },
117
+ * // validateEdi: true || false,
118
+ * // },
119
+ * // },
120
+ * // },
121
+ * // },
66
122
  * // tradingPartnerId: "STRING_VALUE",
67
123
  * // createdAt: new Date("TIMESTAMP"), // required
68
124
  * // };
@@ -0,0 +1,99 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../B2biClient";
4
+ import { CreateStarterMappingTemplateRequest, CreateStarterMappingTemplateResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateStarterMappingTemplateCommand}.
14
+ */
15
+ export interface CreateStarterMappingTemplateCommandInput extends CreateStarterMappingTemplateRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateStarterMappingTemplateCommand}.
21
+ */
22
+ export interface CreateStarterMappingTemplateCommandOutput extends CreateStarterMappingTemplateResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateStarterMappingTemplateCommand_base: {
25
+ new (input: CreateStarterMappingTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<CreateStarterMappingTemplateCommandInput, CreateStarterMappingTemplateCommandOutput, B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateStarterMappingTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<CreateStarterMappingTemplateCommandInput, CreateStarterMappingTemplateCommandOutput, B2biClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Amazon Web Services B2B Data Interchange uses a mapping template in JSONata or XSLT format to transform a customer input file into a JSON or XML file that can be converted to EDI.</p>
31
+ * <p>If you provide a sample EDI file with the same structure as the EDI files that you wish to generate, then the service can generate a mapping template.
32
+ * The starter template contains placeholder values which you can replace with JSONata or XSLT expressions to take data from your input file and insert it
33
+ * into the JSON or XML file that is used to generate the EDI.</p>
34
+ * <p>If you do not provide a sample EDI file, then the service can generate a mapping template based on the EDI settings in the <code>templateDetails</code> parameter.
35
+ * </p>
36
+ * <p> Currently, we only support generating a template that can generate the input to produce an Outbound X12 EDI file.</p>
37
+ * @example
38
+ * Use a bare-bones client and the command you need to make an API call.
39
+ * ```javascript
40
+ * import { B2biClient, CreateStarterMappingTemplateCommand } from "@aws-sdk/client-b2bi"; // ES Modules import
41
+ * // const { B2biClient, CreateStarterMappingTemplateCommand } = require("@aws-sdk/client-b2bi"); // CommonJS import
42
+ * const client = new B2biClient(config);
43
+ * const input = { // CreateStarterMappingTemplateRequest
44
+ * outputSampleLocation: { // S3Location
45
+ * bucketName: "STRING_VALUE",
46
+ * key: "STRING_VALUE",
47
+ * },
48
+ * mappingType: "JSONATA" || "XSLT", // required
49
+ * templateDetails: { // TemplateDetails Union: only one key present
50
+ * x12: { // X12Details
51
+ * transactionSet: "X12_110" || "X12_180" || "X12_204" || "X12_210" || "X12_211" || "X12_214" || "X12_215" || "X12_259" || "X12_260" || "X12_266" || "X12_269" || "X12_270" || "X12_271" || "X12_274" || "X12_275" || "X12_276" || "X12_277" || "X12_278" || "X12_310" || "X12_315" || "X12_322" || "X12_404" || "X12_410" || "X12_417" || "X12_421" || "X12_426" || "X12_810" || "X12_820" || "X12_824" || "X12_830" || "X12_832" || "X12_834" || "X12_835" || "X12_837" || "X12_844" || "X12_846" || "X12_849" || "X12_850" || "X12_852" || "X12_855" || "X12_856" || "X12_860" || "X12_861" || "X12_864" || "X12_865" || "X12_869" || "X12_870" || "X12_940" || "X12_945" || "X12_990" || "X12_997" || "X12_999" || "X12_270_X279" || "X12_271_X279" || "X12_275_X210" || "X12_275_X211" || "X12_276_X212" || "X12_277_X212" || "X12_277_X214" || "X12_277_X364" || "X12_278_X217" || "X12_820_X218" || "X12_820_X306" || "X12_824_X186" || "X12_834_X220" || "X12_834_X307" || "X12_834_X318" || "X12_835_X221" || "X12_837_X222" || "X12_837_X223" || "X12_837_X224" || "X12_837_X291" || "X12_837_X292" || "X12_837_X298" || "X12_999_X231",
52
+ * version: "VERSION_4010" || "VERSION_4030" || "VERSION_5010" || "VERSION_5010_HIPAA",
53
+ * },
54
+ * },
55
+ * };
56
+ * const command = new CreateStarterMappingTemplateCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // CreateStarterMappingTemplateResponse
59
+ * // mappingTemplate: "STRING_VALUE", // required
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param CreateStarterMappingTemplateCommandInput - {@link CreateStarterMappingTemplateCommandInput}
65
+ * @returns {@link CreateStarterMappingTemplateCommandOutput}
66
+ * @see {@link CreateStarterMappingTemplateCommandInput} for command's `input` shape.
67
+ * @see {@link CreateStarterMappingTemplateCommandOutput} for command's `response` shape.
68
+ * @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape.
69
+ *
70
+ * @throws {@link AccessDeniedException} (client fault)
71
+ * <p>You do not have sufficient access to perform this action.</p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.</p>
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ * <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
81
+ *
82
+ * @throws {@link B2biServiceException}
83
+ * <p>Base exception class for all service exceptions from B2bi service.</p>
84
+ *
85
+ * @public
86
+ */
87
+ export declare class CreateStarterMappingTemplateCommand extends CreateStarterMappingTemplateCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: CreateStarterMappingTemplateRequest;
92
+ output: CreateStarterMappingTemplateResponse;
93
+ };
94
+ sdk: {
95
+ input: CreateStarterMappingTemplateCommandInput;
96
+ output: CreateStarterMappingTemplateCommandOutput;
97
+ };
98
+ };
99
+ }