@aws-sdk/client-b2bi 3.662.0 → 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 +1 -1
@@ -12,6 +12,12 @@ export declare class ConflictException extends __BaseException {
12
12
  readonly $fault: "client";
13
13
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
14
14
  }
15
+ export declare const CapabilityDirection: {
16
+ readonly INBOUND: "INBOUND";
17
+ readonly OUTBOUND: "OUTBOUND";
18
+ };
19
+ export type CapabilityDirection =
20
+ (typeof CapabilityDirection)[keyof typeof CapabilityDirection];
15
21
  export interface S3Location {
16
22
  bucketName?: string;
17
23
  key?: string;
@@ -123,6 +129,7 @@ export declare namespace EdiType {
123
129
  const visit: <T>(value: EdiType, visitor: Visitor<T>) => T;
124
130
  }
125
131
  export interface EdiConfiguration {
132
+ capabilityDirection?: CapabilityDirection;
126
133
  type: EdiType | undefined;
127
134
  inputLocation: S3Location | undefined;
128
135
  outputLocation: S3Location | undefined;
@@ -263,6 +270,37 @@ export interface UpdateCapabilityResponse {
263
270
  createdAt: Date | undefined;
264
271
  modifiedAt?: Date;
265
272
  }
273
+ export declare const MappingType: {
274
+ readonly JSONATA: "JSONATA";
275
+ readonly XSLT: "XSLT";
276
+ };
277
+ export type MappingType = (typeof MappingType)[keyof typeof MappingType];
278
+ export type TemplateDetails =
279
+ | TemplateDetails.X12Member
280
+ | TemplateDetails.$UnknownMember;
281
+ export declare namespace TemplateDetails {
282
+ interface X12Member {
283
+ x12: X12Details;
284
+ $unknown?: never;
285
+ }
286
+ interface $UnknownMember {
287
+ x12?: never;
288
+ $unknown: [string, any];
289
+ }
290
+ interface Visitor<T> {
291
+ x12: (value: X12Details) => T;
292
+ _: (name: string, value: any) => T;
293
+ }
294
+ const visit: <T>(value: TemplateDetails, visitor: Visitor<T>) => T;
295
+ }
296
+ export interface CreateStarterMappingTemplateRequest {
297
+ outputSampleLocation?: S3Location;
298
+ mappingType: MappingType | undefined;
299
+ templateDetails: TemplateDetails | undefined;
300
+ }
301
+ export interface CreateStarterMappingTemplateResponse {
302
+ mappingTemplate: string | undefined;
303
+ }
266
304
  export interface GetTransformerJobRequest {
267
305
  transformerJobId: string | undefined;
268
306
  transformerId: string | undefined;
@@ -285,12 +323,62 @@ export interface ListTagsForResourceRequest {
285
323
  export interface ListTagsForResourceResponse {
286
324
  Tags?: Tag[];
287
325
  }
326
+ export interface X12Delimiters {
327
+ componentSeparator?: string;
328
+ dataElementSeparator?: string;
329
+ segmentTerminator?: string;
330
+ }
331
+ export interface X12FunctionalGroupHeaders {
332
+ applicationSenderCode?: string;
333
+ applicationReceiverCode?: string;
334
+ responsibleAgencyCode?: string;
335
+ }
336
+ export interface X12InterchangeControlHeaders {
337
+ senderIdQualifier?: string;
338
+ senderId?: string;
339
+ receiverIdQualifier?: string;
340
+ receiverId?: string;
341
+ repetitionSeparator?: string;
342
+ acknowledgmentRequestedCode?: string;
343
+ usageIndicatorCode?: string;
344
+ }
345
+ export interface X12OutboundEdiHeaders {
346
+ interchangeControlHeaders?: X12InterchangeControlHeaders;
347
+ functionalGroupHeaders?: X12FunctionalGroupHeaders;
348
+ delimiters?: X12Delimiters;
349
+ validateEdi?: boolean;
350
+ }
351
+ export interface X12Envelope {
352
+ common?: X12OutboundEdiHeaders;
353
+ }
354
+ export type OutboundEdiOptions =
355
+ | OutboundEdiOptions.X12Member
356
+ | OutboundEdiOptions.$UnknownMember;
357
+ export declare namespace OutboundEdiOptions {
358
+ interface X12Member {
359
+ x12: X12Envelope;
360
+ $unknown?: never;
361
+ }
362
+ interface $UnknownMember {
363
+ x12?: never;
364
+ $unknown: [string, any];
365
+ }
366
+ interface Visitor<T> {
367
+ x12: (value: X12Envelope) => T;
368
+ _: (name: string, value: any) => T;
369
+ }
370
+ const visit: <T>(value: OutboundEdiOptions, visitor: Visitor<T>) => T;
371
+ }
372
+ export interface CapabilityOptions {
373
+ outboundEdi?: OutboundEdiOptions;
374
+ }
288
375
  export interface CreatePartnershipRequest {
289
376
  profileId: string | undefined;
290
377
  name: string | undefined;
291
378
  email: string | undefined;
292
379
  phone?: string;
293
380
  capabilities: string[] | undefined;
381
+ capabilityOptions?: CapabilityOptions;
294
382
  clientToken?: string;
295
383
  tags?: Tag[];
296
384
  }
@@ -302,6 +390,7 @@ export interface CreatePartnershipResponse {
302
390
  email?: string;
303
391
  phone?: string;
304
392
  capabilities?: string[];
393
+ capabilityOptions?: CapabilityOptions;
305
394
  tradingPartnerId?: string;
306
395
  createdAt: Date | undefined;
307
396
  }
@@ -319,6 +408,7 @@ export interface GetPartnershipResponse {
319
408
  email?: string;
320
409
  phone?: string;
321
410
  capabilities?: string[];
411
+ capabilityOptions?: CapabilityOptions;
322
412
  tradingPartnerId?: string;
323
413
  createdAt: Date | undefined;
324
414
  modifiedAt?: Date;
@@ -333,6 +423,7 @@ export interface PartnershipSummary {
333
423
  partnershipId: string | undefined;
334
424
  name?: string;
335
425
  capabilities?: string[];
426
+ capabilityOptions?: CapabilityOptions;
336
427
  tradingPartnerId?: string;
337
428
  createdAt: Date | undefined;
338
429
  modifiedAt?: Date;
@@ -345,6 +436,7 @@ export interface UpdatePartnershipRequest {
345
436
  partnershipId: string | undefined;
346
437
  name?: string;
347
438
  capabilities?: string[];
439
+ capabilityOptions?: CapabilityOptions;
348
440
  }
349
441
  export interface UpdatePartnershipResponse {
350
442
  profileId: string | undefined;
@@ -354,6 +446,7 @@ export interface UpdatePartnershipResponse {
354
446
  email?: string;
355
447
  phone?: string;
356
448
  capabilities?: string[];
449
+ capabilityOptions?: CapabilityOptions;
357
450
  tradingPartnerId?: string;
358
451
  createdAt: Date | undefined;
359
452
  modifiedAt?: Date;
@@ -450,8 +543,94 @@ export interface TagResourceRequest {
450
543
  ResourceARN: string | undefined;
451
544
  Tags: Tag[] | undefined;
452
545
  }
546
+ export declare const ConversionSourceFormat: {
547
+ readonly JSON: "JSON";
548
+ readonly XML: "XML";
549
+ };
550
+ export type ConversionSourceFormat =
551
+ (typeof ConversionSourceFormat)[keyof typeof ConversionSourceFormat];
552
+ export type InputFileSource =
553
+ | InputFileSource.FileContentMember
554
+ | InputFileSource.$UnknownMember;
555
+ export declare namespace InputFileSource {
556
+ interface FileContentMember {
557
+ fileContent: string;
558
+ $unknown?: never;
559
+ }
560
+ interface $UnknownMember {
561
+ fileContent?: never;
562
+ $unknown: [string, any];
563
+ }
564
+ interface Visitor<T> {
565
+ fileContent: (value: string) => T;
566
+ _: (name: string, value: any) => T;
567
+ }
568
+ const visit: <T>(value: InputFileSource, visitor: Visitor<T>) => T;
569
+ }
570
+ export interface ConversionSource {
571
+ fileFormat: ConversionSourceFormat | undefined;
572
+ inputFile: InputFileSource | undefined;
573
+ }
574
+ export declare const ConversionTargetFormat: {
575
+ readonly X12: "X12";
576
+ };
577
+ export type ConversionTargetFormat =
578
+ (typeof ConversionTargetFormat)[keyof typeof ConversionTargetFormat];
579
+ export type ConversionTargetFormatDetails =
580
+ | ConversionTargetFormatDetails.X12Member
581
+ | ConversionTargetFormatDetails.$UnknownMember;
582
+ export declare namespace ConversionTargetFormatDetails {
583
+ interface X12Member {
584
+ x12: X12Details;
585
+ $unknown?: never;
586
+ }
587
+ interface $UnknownMember {
588
+ x12?: never;
589
+ $unknown: [string, any];
590
+ }
591
+ interface Visitor<T> {
592
+ x12: (value: X12Details) => T;
593
+ _: (name: string, value: any) => T;
594
+ }
595
+ const visit: <T>(
596
+ value: ConversionTargetFormatDetails,
597
+ visitor: Visitor<T>
598
+ ) => T;
599
+ }
600
+ export type OutputSampleFileSource =
601
+ | OutputSampleFileSource.FileLocationMember
602
+ | OutputSampleFileSource.$UnknownMember;
603
+ export declare namespace OutputSampleFileSource {
604
+ interface FileLocationMember {
605
+ fileLocation: S3Location;
606
+ $unknown?: never;
607
+ }
608
+ interface $UnknownMember {
609
+ fileLocation?: never;
610
+ $unknown: [string, any];
611
+ }
612
+ interface Visitor<T> {
613
+ fileLocation: (value: S3Location) => T;
614
+ _: (name: string, value: any) => T;
615
+ }
616
+ const visit: <T>(value: OutputSampleFileSource, visitor: Visitor<T>) => T;
617
+ }
618
+ export interface ConversionTarget {
619
+ fileFormat: ConversionTargetFormat | undefined;
620
+ formatDetails?: ConversionTargetFormatDetails;
621
+ outputSampleFile?: OutputSampleFileSource;
622
+ }
623
+ export interface TestConversionRequest {
624
+ source: ConversionSource | undefined;
625
+ target: ConversionTarget | undefined;
626
+ }
627
+ export interface TestConversionResponse {
628
+ convertedFileContent: string | undefined;
629
+ validationMessages?: string[];
630
+ }
453
631
  export declare const FileFormat: {
454
632
  readonly JSON: "JSON";
633
+ readonly NOT_USED: "NOT_USED";
455
634
  readonly XML: "XML";
456
635
  };
457
636
  export type FileFormat = (typeof FileFormat)[keyof typeof FileFormat];
@@ -471,14 +650,70 @@ export interface TestParsingRequest {
471
650
  export interface TestParsingResponse {
472
651
  parsedFileContent: string | undefined;
473
652
  }
653
+ export type FormatOptions =
654
+ | FormatOptions.X12Member
655
+ | FormatOptions.$UnknownMember;
656
+ export declare namespace FormatOptions {
657
+ interface X12Member {
658
+ x12: X12Details;
659
+ $unknown?: never;
660
+ }
661
+ interface $UnknownMember {
662
+ x12?: never;
663
+ $unknown: [string, any];
664
+ }
665
+ interface Visitor<T> {
666
+ x12: (value: X12Details) => T;
667
+ _: (name: string, value: any) => T;
668
+ }
669
+ const visit: <T>(value: FormatOptions, visitor: Visitor<T>) => T;
670
+ }
671
+ export declare const FromFormat: {
672
+ readonly X12: "X12";
673
+ };
674
+ export type FromFormat = (typeof FromFormat)[keyof typeof FromFormat];
675
+ export interface InputConversion {
676
+ fromFormat: FromFormat | undefined;
677
+ formatOptions?: FormatOptions;
678
+ }
679
+ export declare const MappingTemplateLanguage: {
680
+ readonly JSONATA: "JSONATA";
681
+ readonly XSLT: "XSLT";
682
+ };
683
+ export type MappingTemplateLanguage =
684
+ (typeof MappingTemplateLanguage)[keyof typeof MappingTemplateLanguage];
685
+ export interface Mapping {
686
+ templateLanguage: MappingTemplateLanguage | undefined;
687
+ template?: string;
688
+ }
689
+ export declare const ToFormat: {
690
+ readonly X12: "X12";
691
+ };
692
+ export type ToFormat = (typeof ToFormat)[keyof typeof ToFormat];
693
+ export interface OutputConversion {
694
+ toFormat: ToFormat | undefined;
695
+ formatOptions?: FormatOptions;
696
+ }
697
+ export interface SampleDocumentKeys {
698
+ input?: string;
699
+ output?: string;
700
+ }
701
+ export interface SampleDocuments {
702
+ bucketName: string | undefined;
703
+ keys: SampleDocumentKeys[] | undefined;
704
+ }
474
705
  export interface CreateTransformerRequest {
475
706
  name: string | undefined;
476
- fileFormat: FileFormat | undefined;
477
- mappingTemplate: string | undefined;
478
- ediType: EdiType | undefined;
479
- sampleDocument?: string;
480
707
  clientToken?: string;
481
708
  tags?: Tag[];
709
+ fileFormat?: FileFormat;
710
+ mappingTemplate?: string;
711
+ ediType?: EdiType;
712
+ sampleDocument?: string;
713
+ inputConversion?: InputConversion;
714
+ mapping?: Mapping;
715
+ outputConversion?: OutputConversion;
716
+ sampleDocuments?: SampleDocuments;
482
717
  }
483
718
  export declare const TransformerStatus: {
484
719
  readonly ACTIVE: "active";
@@ -490,12 +725,16 @@ export interface CreateTransformerResponse {
490
725
  transformerId: string | undefined;
491
726
  transformerArn: string | undefined;
492
727
  name: string | undefined;
493
- fileFormat: FileFormat | undefined;
494
- mappingTemplate: string | undefined;
495
728
  status: TransformerStatus | undefined;
496
- ediType: EdiType | undefined;
497
- sampleDocument?: string;
498
729
  createdAt: Date | undefined;
730
+ fileFormat?: FileFormat;
731
+ mappingTemplate?: string;
732
+ ediType?: EdiType;
733
+ sampleDocument?: string;
734
+ inputConversion?: InputConversion;
735
+ mapping?: Mapping;
736
+ outputConversion?: OutputConversion;
737
+ sampleDocuments?: SampleDocuments;
499
738
  }
500
739
  export interface DeleteTransformerRequest {
501
740
  transformerId: string | undefined;
@@ -507,13 +746,17 @@ export interface GetTransformerResponse {
507
746
  transformerId: string | undefined;
508
747
  transformerArn: string | undefined;
509
748
  name: string | undefined;
510
- fileFormat: FileFormat | undefined;
511
- mappingTemplate: string | undefined;
512
749
  status: TransformerStatus | undefined;
513
- ediType: EdiType | undefined;
514
- sampleDocument?: string;
515
750
  createdAt: Date | undefined;
516
751
  modifiedAt?: Date;
752
+ fileFormat?: FileFormat;
753
+ mappingTemplate?: string;
754
+ ediType?: EdiType;
755
+ sampleDocument?: string;
756
+ inputConversion?: InputConversion;
757
+ mapping?: Mapping;
758
+ outputConversion?: OutputConversion;
759
+ sampleDocuments?: SampleDocuments;
517
760
  }
518
761
  export interface ListTransformersRequest {
519
762
  nextToken?: string;
@@ -522,13 +765,17 @@ export interface ListTransformersRequest {
522
765
  export interface TransformerSummary {
523
766
  transformerId: string | undefined;
524
767
  name: string | undefined;
525
- fileFormat: FileFormat | undefined;
526
- mappingTemplate: string | undefined;
527
768
  status: TransformerStatus | undefined;
528
- ediType: EdiType | undefined;
529
- sampleDocument?: string;
530
769
  createdAt: Date | undefined;
531
770
  modifiedAt?: Date;
771
+ fileFormat?: FileFormat;
772
+ mappingTemplate?: string;
773
+ ediType?: EdiType;
774
+ sampleDocument?: string;
775
+ inputConversion?: InputConversion;
776
+ mapping?: Mapping;
777
+ outputConversion?: OutputConversion;
778
+ sampleDocuments?: SampleDocuments;
532
779
  }
533
780
  export interface ListTransformersResponse {
534
781
  transformers: TransformerSummary[] | undefined;
@@ -537,23 +784,31 @@ export interface ListTransformersResponse {
537
784
  export interface UpdateTransformerRequest {
538
785
  transformerId: string | undefined;
539
786
  name?: string;
787
+ status?: TransformerStatus;
540
788
  fileFormat?: FileFormat;
541
789
  mappingTemplate?: string;
542
- status?: TransformerStatus;
543
790
  ediType?: EdiType;
544
791
  sampleDocument?: string;
792
+ inputConversion?: InputConversion;
793
+ mapping?: Mapping;
794
+ outputConversion?: OutputConversion;
795
+ sampleDocuments?: SampleDocuments;
545
796
  }
546
797
  export interface UpdateTransformerResponse {
547
798
  transformerId: string | undefined;
548
799
  transformerArn: string | undefined;
549
800
  name: string | undefined;
550
- fileFormat: FileFormat | undefined;
551
- mappingTemplate: string | undefined;
552
801
  status: TransformerStatus | undefined;
553
- ediType: EdiType | undefined;
554
- sampleDocument?: string;
555
802
  createdAt: Date | undefined;
556
803
  modifiedAt: Date | undefined;
804
+ fileFormat?: FileFormat;
805
+ mappingTemplate?: string;
806
+ ediType?: EdiType;
807
+ sampleDocument?: string;
808
+ inputConversion?: InputConversion;
809
+ mapping?: Mapping;
810
+ outputConversion?: OutputConversion;
811
+ sampleDocuments?: SampleDocuments;
557
812
  }
558
813
  export interface UntagResourceRequest {
559
814
  ResourceARN: string | undefined;
@@ -15,6 +15,10 @@ import {
15
15
  CreateProfileCommandInput,
16
16
  CreateProfileCommandOutput,
17
17
  } from "../commands/CreateProfileCommand";
18
+ import {
19
+ CreateStarterMappingTemplateCommandInput,
20
+ CreateStarterMappingTemplateCommandOutput,
21
+ } from "../commands/CreateStarterMappingTemplateCommand";
18
22
  import {
19
23
  CreateTransformerCommandInput,
20
24
  CreateTransformerCommandOutput,
@@ -83,6 +87,10 @@ import {
83
87
  TagResourceCommandInput,
84
88
  TagResourceCommandOutput,
85
89
  } from "../commands/TagResourceCommand";
90
+ import {
91
+ TestConversionCommandInput,
92
+ TestConversionCommandOutput,
93
+ } from "../commands/TestConversionCommand";
86
94
  import {
87
95
  TestMappingCommandInput,
88
96
  TestMappingCommandOutput,
@@ -123,6 +131,10 @@ export declare const se_CreateProfileCommand: (
123
131
  input: CreateProfileCommandInput,
124
132
  context: __SerdeContext
125
133
  ) => Promise<__HttpRequest>;
134
+ export declare const se_CreateStarterMappingTemplateCommand: (
135
+ input: CreateStarterMappingTemplateCommandInput,
136
+ context: __SerdeContext
137
+ ) => Promise<__HttpRequest>;
126
138
  export declare const se_CreateTransformerCommand: (
127
139
  input: CreateTransformerCommandInput,
128
140
  context: __SerdeContext
@@ -191,6 +203,10 @@ export declare const se_TagResourceCommand: (
191
203
  input: TagResourceCommandInput,
192
204
  context: __SerdeContext
193
205
  ) => Promise<__HttpRequest>;
206
+ export declare const se_TestConversionCommand: (
207
+ input: TestConversionCommandInput,
208
+ context: __SerdeContext
209
+ ) => Promise<__HttpRequest>;
194
210
  export declare const se_TestMappingCommand: (
195
211
  input: TestMappingCommandInput,
196
212
  context: __SerdeContext
@@ -231,6 +247,10 @@ export declare const de_CreateProfileCommand: (
231
247
  output: __HttpResponse,
232
248
  context: __SerdeContext
233
249
  ) => Promise<CreateProfileCommandOutput>;
250
+ export declare const de_CreateStarterMappingTemplateCommand: (
251
+ output: __HttpResponse,
252
+ context: __SerdeContext
253
+ ) => Promise<CreateStarterMappingTemplateCommandOutput>;
234
254
  export declare const de_CreateTransformerCommand: (
235
255
  output: __HttpResponse,
236
256
  context: __SerdeContext
@@ -299,6 +319,10 @@ export declare const de_TagResourceCommand: (
299
319
  output: __HttpResponse,
300
320
  context: __SerdeContext
301
321
  ) => Promise<TagResourceCommandOutput>;
322
+ export declare const de_TestConversionCommand: (
323
+ output: __HttpResponse,
324
+ context: __SerdeContext
325
+ ) => Promise<TestConversionCommandOutput>;
302
326
  export declare const de_TestMappingCommand: (
303
327
  output: __HttpResponse,
304
328
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-b2bi",
3
3
  "description": "AWS SDK for JavaScript B2bi Client for Node.js, Browser and React Native",
4
- "version": "3.662.0",
4
+ "version": "3.663.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-b2bi",