@aws-sdk/client-b2bi 3.873.0 → 3.876.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 (35) hide show
  1. package/dist-cjs/index.js +19 -0
  2. package/dist-es/models/models_0.js +16 -0
  3. package/dist-types/commands/CreateCapabilityCommand.d.ts +1 -1
  4. package/dist-types/commands/CreatePartnershipCommand.d.ts +1 -1
  5. package/dist-types/commands/CreateProfileCommand.d.ts +1 -1
  6. package/dist-types/commands/CreateStarterMappingTemplateCommand.d.ts +1 -1
  7. package/dist-types/commands/CreateTransformerCommand.d.ts +189 -1
  8. package/dist-types/commands/DeleteCapabilityCommand.d.ts +1 -1
  9. package/dist-types/commands/DeletePartnershipCommand.d.ts +1 -1
  10. package/dist-types/commands/DeleteProfileCommand.d.ts +1 -1
  11. package/dist-types/commands/DeleteTransformerCommand.d.ts +1 -1
  12. package/dist-types/commands/GenerateMappingCommand.d.ts +1 -1
  13. package/dist-types/commands/GetCapabilityCommand.d.ts +1 -1
  14. package/dist-types/commands/GetPartnershipCommand.d.ts +1 -1
  15. package/dist-types/commands/GetProfileCommand.d.ts +1 -1
  16. package/dist-types/commands/GetTransformerCommand.d.ts +95 -1
  17. package/dist-types/commands/GetTransformerJobCommand.d.ts +1 -1
  18. package/dist-types/commands/ListCapabilitiesCommand.d.ts +1 -1
  19. package/dist-types/commands/ListPartnershipsCommand.d.ts +1 -1
  20. package/dist-types/commands/ListProfilesCommand.d.ts +1 -1
  21. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  22. package/dist-types/commands/ListTransformersCommand.d.ts +56 -1
  23. package/dist-types/commands/StartTransformerJobCommand.d.ts +1 -1
  24. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  25. package/dist-types/commands/TestConversionCommand.d.ts +68 -1
  26. package/dist-types/commands/TestMappingCommand.d.ts +1 -1
  27. package/dist-types/commands/TestParsingCommand.d.ts +93 -1
  28. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateCapabilityCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdatePartnershipCommand.d.ts +1 -1
  31. package/dist-types/commands/UpdateProfileCommand.d.ts +1 -1
  32. package/dist-types/commands/UpdateTransformerCommand.d.ts +189 -1
  33. package/dist-types/models/models_0.d.ts +160 -3
  34. package/dist-types/ts3.4/models/models_0.d.ts +67 -0
  35. package/package.json +6 -6
@@ -35,6 +35,143 @@ export interface X12SplitOptions {
35
35
  */
36
36
  splitBy: X12SplitBy | undefined;
37
37
  }
38
+ /**
39
+ * <p>Defines a validation rule that modifies the allowed code values for a specific X12 element. This rule allows you to add or remove valid codes from an element's standard code list, providing flexibility to accommodate trading partner-specific requirements or industry variations. You can specify codes to add to expand the allowed values beyond the X12 standard, or codes to remove to restrict the allowed values for stricter validation.</p>
40
+ * @public
41
+ */
42
+ export interface X12CodeListValidationRule {
43
+ /**
44
+ * <p>Specifies the four-digit element ID to which the code list modifications apply. This identifies which X12 element will have its allowed code values modified.</p>
45
+ * @public
46
+ */
47
+ elementId: string | undefined;
48
+ /**
49
+ * <p>Specifies a list of code values to add to the element's allowed values. These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification.</p>
50
+ * @public
51
+ */
52
+ codesToAdd?: string[] | undefined;
53
+ /**
54
+ * <p>Specifies a list of code values to remove from the element's allowed values. These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification.</p>
55
+ * @public
56
+ */
57
+ codesToRemove?: string[] | undefined;
58
+ }
59
+ /**
60
+ * <p>Defines a validation rule that specifies custom length constraints for a specific X12 element. This rule allows you to override the standard minimum and maximum length requirements for an element, enabling validation of trading partner-specific length requirements that may differ from the X12 specification. Both minimum and maximum length values must be specified and must be between 1 and 200 characters.</p>
61
+ * @public
62
+ */
63
+ export interface X12ElementLengthValidationRule {
64
+ /**
65
+ * <p>Specifies the four-digit element ID to which the length constraints will be applied. This identifies which X12 element will have its length requirements modified.</p>
66
+ * @public
67
+ */
68
+ elementId: string | undefined;
69
+ /**
70
+ * <p>Specifies the maximum allowed length for the identified element. This value must be between 1 and 200 characters and defines the upper limit for the element's content length.</p>
71
+ * @public
72
+ */
73
+ maxLength: number | undefined;
74
+ /**
75
+ * <p>Specifies the minimum required length for the identified element. This value must be between 1 and 200 characters and defines the lower limit for the element's content length.</p>
76
+ * @public
77
+ */
78
+ minLength: number | undefined;
79
+ }
80
+ /**
81
+ * @public
82
+ * @enum
83
+ */
84
+ export declare const ElementRequirement: {
85
+ readonly MANDATORY: "MANDATORY";
86
+ readonly OPTIONAL: "OPTIONAL";
87
+ };
88
+ /**
89
+ * @public
90
+ */
91
+ export type ElementRequirement = (typeof ElementRequirement)[keyof typeof ElementRequirement];
92
+ /**
93
+ * <p>Defines a validation rule that modifies the requirement status of a specific X12 element within a segment. This rule allows you to make optional elements mandatory or mandatory elements optional, providing flexibility to accommodate different trading partner requirements and business rules. The rule targets a specific element position within a segment and sets its requirement status to either OPTIONAL or MANDATORY.</p>
94
+ * @public
95
+ */
96
+ export interface X12ElementRequirementValidationRule {
97
+ /**
98
+ * <p>Specifies the position of the element within an X12 segment for which the requirement status will be modified. The format follows the pattern of segment identifier followed by element position (e.g., "ST-01" for the first element of the ST segment).</p>
99
+ * @public
100
+ */
101
+ elementPosition: string | undefined;
102
+ /**
103
+ * <p>Specifies the requirement status for the element at the specified position. Valid values are OPTIONAL (the element may be omitted) or MANDATORY (the element must be present).</p>
104
+ * @public
105
+ */
106
+ requirement: ElementRequirement | undefined;
107
+ }
108
+ /**
109
+ * <p>Represents a single validation rule that can be applied during X12 EDI processing. This is a union type that can contain one of several specific validation rule types: code list validation rules for modifying allowed element codes, element length validation rules for enforcing custom length constraints, or element requirement validation rules for changing mandatory/optional status. Each validation rule targets specific aspects of EDI document validation to ensure compliance with trading partner requirements and business rules.</p>
110
+ * @public
111
+ */
112
+ export type X12ValidationRule = X12ValidationRule.CodeListValidationRuleMember | X12ValidationRule.ElementLengthValidationRuleMember | X12ValidationRule.ElementRequirementValidationRuleMember | X12ValidationRule.$UnknownMember;
113
+ /**
114
+ * @public
115
+ */
116
+ export declare namespace X12ValidationRule {
117
+ /**
118
+ * <p>Specifies a code list validation rule that modifies the allowed code values for a specific X12 element. This rule enables you to customize which codes are considered valid for an element, allowing for trading partner-specific code requirements.</p>
119
+ * @public
120
+ */
121
+ interface CodeListValidationRuleMember {
122
+ codeListValidationRule: X12CodeListValidationRule;
123
+ elementLengthValidationRule?: never;
124
+ elementRequirementValidationRule?: never;
125
+ $unknown?: never;
126
+ }
127
+ /**
128
+ * <p>Specifies an element length validation rule that defines custom length constraints for a specific X12 element. This rule allows you to enforce minimum and maximum length requirements that may differ from the standard X12 specification.</p>
129
+ * @public
130
+ */
131
+ interface ElementLengthValidationRuleMember {
132
+ codeListValidationRule?: never;
133
+ elementLengthValidationRule: X12ElementLengthValidationRule;
134
+ elementRequirementValidationRule?: never;
135
+ $unknown?: never;
136
+ }
137
+ /**
138
+ * <p>Specifies an element requirement validation rule that modifies whether a specific X12 element is required or optional within a segment. This rule provides flexibility to accommodate different trading partner requirements for element presence.</p>
139
+ * @public
140
+ */
141
+ interface ElementRequirementValidationRuleMember {
142
+ codeListValidationRule?: never;
143
+ elementLengthValidationRule?: never;
144
+ elementRequirementValidationRule: X12ElementRequirementValidationRule;
145
+ $unknown?: never;
146
+ }
147
+ /**
148
+ * @public
149
+ */
150
+ interface $UnknownMember {
151
+ codeListValidationRule?: never;
152
+ elementLengthValidationRule?: never;
153
+ elementRequirementValidationRule?: never;
154
+ $unknown: [string, any];
155
+ }
156
+ interface Visitor<T> {
157
+ codeListValidationRule: (value: X12CodeListValidationRule) => T;
158
+ elementLengthValidationRule: (value: X12ElementLengthValidationRule) => T;
159
+ elementRequirementValidationRule: (value: X12ElementRequirementValidationRule) => T;
160
+ _: (name: string, value: any) => T;
161
+ }
162
+ const visit: <T>(value: X12ValidationRule, visitor: Visitor<T>) => T;
163
+ }
164
+ /**
165
+ * <p>Contains configuration options for X12 EDI validation. This structure allows you to specify custom validation rules that will be applied during EDI document processing, including element length constraints, code list modifications, and element requirement changes. These validation options provide flexibility to accommodate trading partner-specific requirements while maintaining EDI compliance. The validation rules are applied in addition to standard X12 validation to ensure documents meet both standard and custom requirements.</p>
166
+ * @public
167
+ */
168
+ export interface X12ValidationOptions {
169
+ /**
170
+ * <p>Specifies a list of validation rules to apply during EDI document processing. These rules can include code list modifications, element length constraints, and element requirement changes.</p>
171
+ * @public
172
+ */
173
+ validationRules?: X12ValidationRule[] | undefined;
174
+ }
38
175
  /**
39
176
  * <p>Contains advanced options specific to X12 EDI processing, such as splitting large X12 files into smaller units.</p>
40
177
  * @public
@@ -45,6 +182,11 @@ export interface X12AdvancedOptions {
45
182
  * @public
46
183
  */
47
184
  splitOptions?: X12SplitOptions | undefined;
185
+ /**
186
+ * <p>Specifies validation options for X12 EDI processing. These options control how validation rules are applied during EDI document processing, including custom validation rules for element length constraints, code list validations, and element requirement checks.</p>
187
+ * @public
188
+ */
189
+ validationOptions?: X12ValidationOptions | undefined;
48
190
  }
49
191
  /**
50
192
  * <p>A structure that contains advanced options for EDI processing. Currently, only X12 advanced options are supported.</p>
@@ -755,7 +897,7 @@ export declare class ThrottlingException extends __BaseException {
755
897
  constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
756
898
  }
757
899
  /**
758
- * <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
900
+ * <p>Occurs when a B2BI object cannot be validated against a request from another object. This exception can be thrown during standard EDI validation or when custom validation rules fail, such as when element length constraints are violated, invalid codes are used in code list validations, or required elements are missing based on configured element requirement rules.</p>
759
901
  * @public
760
902
  */
761
903
  export declare class ValidationException extends __BaseException {
@@ -1339,7 +1481,7 @@ export interface X12OutboundEdiHeaders {
1339
1481
  */
1340
1482
  delimiters?: X12Delimiters | undefined;
1341
1483
  /**
1342
- * <p>Specifies whether or not to validate the EDI for this X12 object: <code>TRUE</code> or <code>FALSE</code>.</p>
1484
+ * <p>Specifies whether or not to validate the EDI for this X12 object: <code>TRUE</code> or <code>FALSE</code>. When enabled, this performs both standard EDI validation and applies any configured custom validation rules including element length constraints, code list validations, and element requirement checks. Validation results are returned in the response validation messages.</p>
1343
1485
  * @public
1344
1486
  */
1345
1487
  validateEdi?: boolean | undefined;
@@ -2342,6 +2484,11 @@ export interface ConversionTarget {
2342
2484
  * @public
2343
2485
  */
2344
2486
  outputSampleFile?: OutputSampleFileSource | undefined;
2487
+ /**
2488
+ * <p>A structure that contains advanced options for EDI processing. Currently, only X12 advanced options are supported.</p>
2489
+ * @public
2490
+ */
2491
+ advancedOptions?: AdvancedOptions | undefined;
2345
2492
  }
2346
2493
  /**
2347
2494
  * @public
@@ -2368,7 +2515,7 @@ export interface TestConversionResponse {
2368
2515
  */
2369
2516
  convertedFileContent: string | undefined;
2370
2517
  /**
2371
- * <p>Returns an array of strings, each containing a message that Amazon Web Services B2B Data Interchange generates during the conversion.</p>
2518
+ * <p>Returns an array of validation messages that Amazon Web Services B2B Data Interchange generates during the conversion process. These messages include both standard EDI validation results and custom validation messages when custom validation rules are configured. Custom validation messages provide detailed feedback on element length constraints, code list validations, and element requirement checks applied during the outbound EDI generation process.</p>
2372
2519
  * @public
2373
2520
  */
2374
2521
  validationMessages?: string[] | undefined;
@@ -2455,6 +2602,11 @@ export interface TestParsingResponse {
2455
2602
  * @public
2456
2603
  */
2457
2604
  parsedSplitFileContents?: string[] | undefined;
2605
+ /**
2606
+ * <p>Returns an array of validation messages generated during EDI validation. These messages provide detailed information about validation errors, warnings, or confirmations based on the configured X12 validation rules such as element length constraints, code list validations, and element requirement checks. This field is populated when the <code>TestParsing</code> API validates EDI documents.</p>
2607
+ * @public
2608
+ */
2609
+ validationMessages?: string[] | undefined;
2458
2610
  }
2459
2611
  /**
2460
2612
  * <p>A structure that contains the X12 transaction set and version.</p>
@@ -2572,6 +2724,11 @@ export interface OutputConversion {
2572
2724
  * @public
2573
2725
  */
2574
2726
  formatOptions?: FormatOptions | undefined;
2727
+ /**
2728
+ * <p>A structure that contains advanced options for EDI processing. Currently, only X12 advanced options are supported.</p>
2729
+ * @public
2730
+ */
2731
+ advancedOptions?: AdvancedOptions | undefined;
2575
2732
  }
2576
2733
  /**
2577
2734
  * <p>An array of the Amazon S3 keys used to identify the location for your sample documents.</p>
@@ -15,8 +15,72 @@ export type X12SplitBy = (typeof X12SplitBy)[keyof typeof X12SplitBy];
15
15
  export interface X12SplitOptions {
16
16
  splitBy: X12SplitBy | undefined;
17
17
  }
18
+ export interface X12CodeListValidationRule {
19
+ elementId: string | undefined;
20
+ codesToAdd?: string[] | undefined;
21
+ codesToRemove?: string[] | undefined;
22
+ }
23
+ export interface X12ElementLengthValidationRule {
24
+ elementId: string | undefined;
25
+ maxLength: number | undefined;
26
+ minLength: number | undefined;
27
+ }
28
+ export declare const ElementRequirement: {
29
+ readonly MANDATORY: "MANDATORY";
30
+ readonly OPTIONAL: "OPTIONAL";
31
+ };
32
+ export type ElementRequirement =
33
+ (typeof ElementRequirement)[keyof typeof ElementRequirement];
34
+ export interface X12ElementRequirementValidationRule {
35
+ elementPosition: string | undefined;
36
+ requirement: ElementRequirement | undefined;
37
+ }
38
+ export type X12ValidationRule =
39
+ | X12ValidationRule.CodeListValidationRuleMember
40
+ | X12ValidationRule.ElementLengthValidationRuleMember
41
+ | X12ValidationRule.ElementRequirementValidationRuleMember
42
+ | X12ValidationRule.$UnknownMember;
43
+ export declare namespace X12ValidationRule {
44
+ interface CodeListValidationRuleMember {
45
+ codeListValidationRule: X12CodeListValidationRule;
46
+ elementLengthValidationRule?: never;
47
+ elementRequirementValidationRule?: never;
48
+ $unknown?: never;
49
+ }
50
+ interface ElementLengthValidationRuleMember {
51
+ codeListValidationRule?: never;
52
+ elementLengthValidationRule: X12ElementLengthValidationRule;
53
+ elementRequirementValidationRule?: never;
54
+ $unknown?: never;
55
+ }
56
+ interface ElementRequirementValidationRuleMember {
57
+ codeListValidationRule?: never;
58
+ elementLengthValidationRule?: never;
59
+ elementRequirementValidationRule: X12ElementRequirementValidationRule;
60
+ $unknown?: never;
61
+ }
62
+ interface $UnknownMember {
63
+ codeListValidationRule?: never;
64
+ elementLengthValidationRule?: never;
65
+ elementRequirementValidationRule?: never;
66
+ $unknown: [string, any];
67
+ }
68
+ interface Visitor<T> {
69
+ codeListValidationRule: (value: X12CodeListValidationRule) => T;
70
+ elementLengthValidationRule: (value: X12ElementLengthValidationRule) => T;
71
+ elementRequirementValidationRule: (
72
+ value: X12ElementRequirementValidationRule
73
+ ) => T;
74
+ _: (name: string, value: any) => T;
75
+ }
76
+ const visit: <T>(value: X12ValidationRule, visitor: Visitor<T>) => T;
77
+ }
78
+ export interface X12ValidationOptions {
79
+ validationRules?: X12ValidationRule[] | undefined;
80
+ }
18
81
  export interface X12AdvancedOptions {
19
82
  splitOptions?: X12SplitOptions | undefined;
83
+ validationOptions?: X12ValidationOptions | undefined;
20
84
  }
21
85
  export interface AdvancedOptions {
22
86
  x12?: X12AdvancedOptions | undefined;
@@ -968,6 +1032,7 @@ export interface ConversionTarget {
968
1032
  fileFormat: ConversionTargetFormat | undefined;
969
1033
  formatDetails?: ConversionTargetFormatDetails | undefined;
970
1034
  outputSampleFile?: OutputSampleFileSource | undefined;
1035
+ advancedOptions?: AdvancedOptions | undefined;
971
1036
  }
972
1037
  export interface TestConversionRequest {
973
1038
  source: ConversionSource | undefined;
@@ -1000,6 +1065,7 @@ export interface TestParsingRequest {
1000
1065
  export interface TestParsingResponse {
1001
1066
  parsedFileContent: string | undefined;
1002
1067
  parsedSplitFileContents?: string[] | undefined;
1068
+ validationMessages?: string[] | undefined;
1003
1069
  }
1004
1070
  export type FormatOptions =
1005
1071
  | FormatOptions.X12Member
@@ -1045,6 +1111,7 @@ export type ToFormat = (typeof ToFormat)[keyof typeof ToFormat];
1045
1111
  export interface OutputConversion {
1046
1112
  toFormat: ToFormat | undefined;
1047
1113
  formatOptions?: FormatOptions | undefined;
1114
+ advancedOptions?: AdvancedOptions | undefined;
1048
1115
  }
1049
1116
  export interface SampleDocumentKeys {
1050
1117
  input?: string | undefined;
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.873.0",
4
+ "version": "3.876.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",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.873.0",
24
- "@aws-sdk/credential-provider-node": "3.873.0",
23
+ "@aws-sdk/core": "3.876.0",
24
+ "@aws-sdk/credential-provider-node": "3.876.0",
25
25
  "@aws-sdk/middleware-host-header": "3.873.0",
26
- "@aws-sdk/middleware-logger": "3.873.0",
26
+ "@aws-sdk/middleware-logger": "3.876.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.873.0",
28
- "@aws-sdk/middleware-user-agent": "3.873.0",
28
+ "@aws-sdk/middleware-user-agent": "3.876.0",
29
29
  "@aws-sdk/region-config-resolver": "3.873.0",
30
30
  "@aws-sdk/types": "3.862.0",
31
31
  "@aws-sdk/util-endpoints": "3.873.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.873.0",
33
- "@aws-sdk/util-user-agent-node": "3.873.0",
33
+ "@aws-sdk/util-user-agent-node": "3.876.0",
34
34
  "@smithy/config-resolver": "^4.1.5",
35
35
  "@smithy/core": "^3.8.0",
36
36
  "@smithy/fetch-http-handler": "^5.1.1",