@aws-sdk/client-b2bi 3.873.0 → 3.875.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/index.js +19 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-types/commands/CreateCapabilityCommand.d.ts +1 -1
- package/dist-types/commands/CreatePartnershipCommand.d.ts +1 -1
- package/dist-types/commands/CreateProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateStarterMappingTemplateCommand.d.ts +1 -1
- package/dist-types/commands/CreateTransformerCommand.d.ts +189 -1
- package/dist-types/commands/DeleteCapabilityCommand.d.ts +1 -1
- package/dist-types/commands/DeletePartnershipCommand.d.ts +1 -1
- package/dist-types/commands/DeleteProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTransformerCommand.d.ts +1 -1
- package/dist-types/commands/GenerateMappingCommand.d.ts +1 -1
- package/dist-types/commands/GetCapabilityCommand.d.ts +1 -1
- package/dist-types/commands/GetPartnershipCommand.d.ts +1 -1
- package/dist-types/commands/GetProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetTransformerCommand.d.ts +95 -1
- package/dist-types/commands/GetTransformerJobCommand.d.ts +1 -1
- package/dist-types/commands/ListCapabilitiesCommand.d.ts +1 -1
- package/dist-types/commands/ListPartnershipsCommand.d.ts +1 -1
- package/dist-types/commands/ListProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTransformersCommand.d.ts +56 -1
- package/dist-types/commands/StartTransformerJobCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/TestConversionCommand.d.ts +68 -1
- package/dist-types/commands/TestMappingCommand.d.ts +1 -1
- package/dist-types/commands/TestParsingCommand.d.ts +93 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCapabilityCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePartnershipCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProfileCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTransformerCommand.d.ts +189 -1
- package/dist-types/models/models_0.d.ts +160 -3
- package/dist-types/ts3.4/models/models_0.d.ts +67 -0
- package/package.json +1 -1
|
@@ -70,6 +70,30 @@ declare const ListTransformersCommand_base: {
|
|
|
70
70
|
* // splitOptions: { // X12SplitOptions
|
|
71
71
|
* // splitBy: "NONE" || "TRANSACTION", // required
|
|
72
72
|
* // },
|
|
73
|
+
* // validationOptions: { // X12ValidationOptions
|
|
74
|
+
* // validationRules: [ // X12ValidationRules
|
|
75
|
+
* // { // X12ValidationRule Union: only one key present
|
|
76
|
+
* // codeListValidationRule: { // X12CodeListValidationRule
|
|
77
|
+
* // elementId: "STRING_VALUE", // required
|
|
78
|
+
* // codesToAdd: [ // CodeList
|
|
79
|
+
* // "STRING_VALUE",
|
|
80
|
+
* // ],
|
|
81
|
+
* // codesToRemove: [
|
|
82
|
+
* // "STRING_VALUE",
|
|
83
|
+
* // ],
|
|
84
|
+
* // },
|
|
85
|
+
* // elementLengthValidationRule: { // X12ElementLengthValidationRule
|
|
86
|
+
* // elementId: "STRING_VALUE", // required
|
|
87
|
+
* // maxLength: Number("int"), // required
|
|
88
|
+
* // minLength: Number("int"), // required
|
|
89
|
+
* // },
|
|
90
|
+
* // elementRequirementValidationRule: { // X12ElementRequirementValidationRule
|
|
91
|
+
* // elementPosition: "STRING_VALUE", // required
|
|
92
|
+
* // requirement: "OPTIONAL" || "MANDATORY", // required
|
|
93
|
+
* // },
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
96
|
+
* // },
|
|
73
97
|
* // },
|
|
74
98
|
* // },
|
|
75
99
|
* // },
|
|
@@ -85,6 +109,37 @@ declare const ListTransformersCommand_base: {
|
|
|
85
109
|
* // version: "VERSION_4010" || "VERSION_4030" || "VERSION_4050" || "VERSION_4060" || "VERSION_5010" || "VERSION_5010_HIPAA",
|
|
86
110
|
* // },
|
|
87
111
|
* // },
|
|
112
|
+
* // advancedOptions: {
|
|
113
|
+
* // x12: {
|
|
114
|
+
* // splitOptions: {
|
|
115
|
+
* // splitBy: "NONE" || "TRANSACTION", // required
|
|
116
|
+
* // },
|
|
117
|
+
* // validationOptions: {
|
|
118
|
+
* // validationRules: [
|
|
119
|
+
* // {// Union: only one key present
|
|
120
|
+
* // codeListValidationRule: {
|
|
121
|
+
* // elementId: "STRING_VALUE", // required
|
|
122
|
+
* // codesToAdd: [
|
|
123
|
+
* // "STRING_VALUE",
|
|
124
|
+
* // ],
|
|
125
|
+
* // codesToRemove: [
|
|
126
|
+
* // "STRING_VALUE",
|
|
127
|
+
* // ],
|
|
128
|
+
* // },
|
|
129
|
+
* // elementLengthValidationRule: {
|
|
130
|
+
* // elementId: "STRING_VALUE", // required
|
|
131
|
+
* // maxLength: Number("int"), // required
|
|
132
|
+
* // minLength: Number("int"), // required
|
|
133
|
+
* // },
|
|
134
|
+
* // elementRequirementValidationRule: {
|
|
135
|
+
* // elementPosition: "STRING_VALUE", // required
|
|
136
|
+
* // requirement: "OPTIONAL" || "MANDATORY", // required
|
|
137
|
+
* // },
|
|
138
|
+
* // },
|
|
139
|
+
* // ],
|
|
140
|
+
* // },
|
|
141
|
+
* // },
|
|
142
|
+
* // },
|
|
88
143
|
* // },
|
|
89
144
|
* // sampleDocuments: { // SampleDocuments
|
|
90
145
|
* // bucketName: "STRING_VALUE", // required
|
|
@@ -118,7 +173,7 @@ declare const ListTransformersCommand_base: {
|
|
|
118
173
|
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
119
174
|
*
|
|
120
175
|
* @throws {@link ValidationException} (client fault)
|
|
121
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
176
|
+
* <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>
|
|
122
177
|
*
|
|
123
178
|
* @throws {@link B2biServiceException}
|
|
124
179
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -76,7 +76,7 @@ declare const StartTransformerJobCommand_base: {
|
|
|
76
76
|
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
77
77
|
*
|
|
78
78
|
* @throws {@link ValidationException} (client fault)
|
|
79
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
79
|
+
* <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>
|
|
80
80
|
*
|
|
81
81
|
* @throws {@link B2biServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -65,7 +65,7 @@ declare const TagResourceCommand_base: {
|
|
|
65
65
|
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link ValidationException} (client fault)
|
|
68
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
68
|
+
* <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>
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link B2biServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -55,6 +55,37 @@ declare const TestConversionCommand_base: {
|
|
|
55
55
|
* key: "STRING_VALUE",
|
|
56
56
|
* },
|
|
57
57
|
* },
|
|
58
|
+
* advancedOptions: { // AdvancedOptions
|
|
59
|
+
* x12: { // X12AdvancedOptions
|
|
60
|
+
* splitOptions: { // X12SplitOptions
|
|
61
|
+
* splitBy: "NONE" || "TRANSACTION", // required
|
|
62
|
+
* },
|
|
63
|
+
* validationOptions: { // X12ValidationOptions
|
|
64
|
+
* validationRules: [ // X12ValidationRules
|
|
65
|
+
* { // X12ValidationRule Union: only one key present
|
|
66
|
+
* codeListValidationRule: { // X12CodeListValidationRule
|
|
67
|
+
* elementId: "STRING_VALUE", // required
|
|
68
|
+
* codesToAdd: [ // CodeList
|
|
69
|
+
* "STRING_VALUE",
|
|
70
|
+
* ],
|
|
71
|
+
* codesToRemove: [
|
|
72
|
+
* "STRING_VALUE",
|
|
73
|
+
* ],
|
|
74
|
+
* },
|
|
75
|
+
* elementLengthValidationRule: { // X12ElementLengthValidationRule
|
|
76
|
+
* elementId: "STRING_VALUE", // required
|
|
77
|
+
* maxLength: Number("int"), // required
|
|
78
|
+
* minLength: Number("int"), // required
|
|
79
|
+
* },
|
|
80
|
+
* elementRequirementValidationRule: { // X12ElementRequirementValidationRule
|
|
81
|
+
* elementPosition: "STRING_VALUE", // required
|
|
82
|
+
* requirement: "OPTIONAL" || "MANDATORY", // required
|
|
83
|
+
* },
|
|
84
|
+
* },
|
|
85
|
+
* ],
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* },
|
|
58
89
|
* },
|
|
59
90
|
* };
|
|
60
91
|
* const command = new TestConversionCommand(input);
|
|
@@ -87,7 +118,7 @@ declare const TestConversionCommand_base: {
|
|
|
87
118
|
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
88
119
|
*
|
|
89
120
|
* @throws {@link ValidationException} (client fault)
|
|
90
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
121
|
+
* <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>
|
|
91
122
|
*
|
|
92
123
|
* @throws {@link B2biServiceException}
|
|
93
124
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -104,6 +135,42 @@ declare const TestConversionCommand_base: {
|
|
|
104
135
|
* }
|
|
105
136
|
* },
|
|
106
137
|
* target: {
|
|
138
|
+
* advancedOptions: {
|
|
139
|
+
* x12: {
|
|
140
|
+
* validationOptions: {
|
|
141
|
+
* validationRules: [
|
|
142
|
+
* {
|
|
143
|
+
* codeListValidationRule: {
|
|
144
|
+
* codesToAdd: [
|
|
145
|
+
* "X",
|
|
146
|
+
* "Y",
|
|
147
|
+
* "Z"
|
|
148
|
+
* ],
|
|
149
|
+
* codesToRemove: [
|
|
150
|
+
* "A",
|
|
151
|
+
* "B",
|
|
152
|
+
* "C"
|
|
153
|
+
* ],
|
|
154
|
+
* elementId: "1280"
|
|
155
|
+
* }
|
|
156
|
+
* },
|
|
157
|
+
* {
|
|
158
|
+
* elementRequirementValidationRule: {
|
|
159
|
+
* elementPosition: "NM1-01",
|
|
160
|
+
* requirement: "OPTIONAL"
|
|
161
|
+
* }
|
|
162
|
+
* },
|
|
163
|
+
* {
|
|
164
|
+
* elementLengthValidationRule: {
|
|
165
|
+
* elementId: "0803",
|
|
166
|
+
* maxLength: 30,
|
|
167
|
+
* minLength: 5
|
|
168
|
+
* }
|
|
169
|
+
* }
|
|
170
|
+
* ]
|
|
171
|
+
* }
|
|
172
|
+
* }
|
|
173
|
+
* },
|
|
107
174
|
* fileFormat: "X12",
|
|
108
175
|
* formatDetails: {
|
|
109
176
|
* x12: {
|
|
@@ -66,7 +66,7 @@ declare const TestMappingCommand_base: {
|
|
|
66
66
|
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
67
67
|
*
|
|
68
68
|
* @throws {@link ValidationException} (client fault)
|
|
69
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
69
|
+
* <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>
|
|
70
70
|
*
|
|
71
71
|
* @throws {@link B2biServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -51,6 +51,30 @@ declare const TestParsingCommand_base: {
|
|
|
51
51
|
* splitOptions: { // X12SplitOptions
|
|
52
52
|
* splitBy: "NONE" || "TRANSACTION", // required
|
|
53
53
|
* },
|
|
54
|
+
* validationOptions: { // X12ValidationOptions
|
|
55
|
+
* validationRules: [ // X12ValidationRules
|
|
56
|
+
* { // X12ValidationRule Union: only one key present
|
|
57
|
+
* codeListValidationRule: { // X12CodeListValidationRule
|
|
58
|
+
* elementId: "STRING_VALUE", // required
|
|
59
|
+
* codesToAdd: [ // CodeList
|
|
60
|
+
* "STRING_VALUE",
|
|
61
|
+
* ],
|
|
62
|
+
* codesToRemove: [
|
|
63
|
+
* "STRING_VALUE",
|
|
64
|
+
* ],
|
|
65
|
+
* },
|
|
66
|
+
* elementLengthValidationRule: { // X12ElementLengthValidationRule
|
|
67
|
+
* elementId: "STRING_VALUE", // required
|
|
68
|
+
* maxLength: Number("int"), // required
|
|
69
|
+
* minLength: Number("int"), // required
|
|
70
|
+
* },
|
|
71
|
+
* elementRequirementValidationRule: { // X12ElementRequirementValidationRule
|
|
72
|
+
* elementPosition: "STRING_VALUE", // required
|
|
73
|
+
* requirement: "OPTIONAL" || "MANDATORY", // required
|
|
74
|
+
* },
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* },
|
|
54
78
|
* },
|
|
55
79
|
* },
|
|
56
80
|
* };
|
|
@@ -61,6 +85,9 @@ declare const TestParsingCommand_base: {
|
|
|
61
85
|
* // parsedSplitFileContents: [ // ParsedSplitFileContentsList
|
|
62
86
|
* // "STRING_VALUE",
|
|
63
87
|
* // ],
|
|
88
|
+
* // validationMessages: [ // ValidationMessages
|
|
89
|
+
* // "STRING_VALUE",
|
|
90
|
+
* // ],
|
|
64
91
|
* // };
|
|
65
92
|
*
|
|
66
93
|
* ```
|
|
@@ -84,7 +111,7 @@ declare const TestParsingCommand_base: {
|
|
|
84
111
|
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
85
112
|
*
|
|
86
113
|
* @throws {@link ValidationException} (client fault)
|
|
87
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
114
|
+
* <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>
|
|
88
115
|
*
|
|
89
116
|
* @throws {@link B2biServiceException}
|
|
90
117
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -183,6 +210,71 @@ declare const TestParsingCommand_base: {
|
|
|
183
210
|
* *\/
|
|
184
211
|
* ```
|
|
185
212
|
*
|
|
213
|
+
* @example Sample TestParsing call with Validation Options
|
|
214
|
+
* ```javascript
|
|
215
|
+
* //
|
|
216
|
+
* const input = {
|
|
217
|
+
* advancedOptions: {
|
|
218
|
+
* x12: {
|
|
219
|
+
* validationOptions: {
|
|
220
|
+
* validationRules: [
|
|
221
|
+
* {
|
|
222
|
+
* codeListValidationRule: {
|
|
223
|
+
* codesToAdd: [
|
|
224
|
+
* "X",
|
|
225
|
+
* "Y",
|
|
226
|
+
* "Z"
|
|
227
|
+
* ],
|
|
228
|
+
* codesToRemove: [
|
|
229
|
+
* "A",
|
|
230
|
+
* "B",
|
|
231
|
+
* "C"
|
|
232
|
+
* ],
|
|
233
|
+
* elementId: "1280"
|
|
234
|
+
* }
|
|
235
|
+
* },
|
|
236
|
+
* {
|
|
237
|
+
* elementRequirementValidationRule: {
|
|
238
|
+
* elementPosition: "NM1-01",
|
|
239
|
+
* requirement: "OPTIONAL"
|
|
240
|
+
* }
|
|
241
|
+
* },
|
|
242
|
+
* {
|
|
243
|
+
* elementLengthValidationRule: {
|
|
244
|
+
* elementId: "0803",
|
|
245
|
+
* maxLength: 30,
|
|
246
|
+
* minLength: 5
|
|
247
|
+
* }
|
|
248
|
+
* }
|
|
249
|
+
* ]
|
|
250
|
+
* }
|
|
251
|
+
* }
|
|
252
|
+
* },
|
|
253
|
+
* ediType: {
|
|
254
|
+
* x12Details: {
|
|
255
|
+
* transactionSet: "X12_110",
|
|
256
|
+
* version: "VERSION_4010"
|
|
257
|
+
* }
|
|
258
|
+
* },
|
|
259
|
+
* fileFormat: "JSON",
|
|
260
|
+
* inputFile: {
|
|
261
|
+
* bucketName: "test-bucket",
|
|
262
|
+
* key: "sampleFile.txt"
|
|
263
|
+
* }
|
|
264
|
+
* };
|
|
265
|
+
* const command = new TestParsingCommand(input);
|
|
266
|
+
* const response = await client.send(command);
|
|
267
|
+
* /* response is
|
|
268
|
+
* {
|
|
269
|
+
* parsedFileContent: "",
|
|
270
|
+
* parsedSplitFileContents: [
|
|
271
|
+
* "sample split parsed file content",
|
|
272
|
+
* "sample split parsed file content"
|
|
273
|
+
* ]
|
|
274
|
+
* }
|
|
275
|
+
* *\/
|
|
276
|
+
* ```
|
|
277
|
+
*
|
|
186
278
|
* @public
|
|
187
279
|
*/
|
|
188
280
|
export declare class TestParsingCommand extends TestParsingCommand_base {
|
|
@@ -59,7 +59,7 @@ declare const UntagResourceCommand_base: {
|
|
|
59
59
|
* <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>
|
|
60
60
|
*
|
|
61
61
|
* @throws {@link ValidationException} (client fault)
|
|
62
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
62
|
+
* <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>
|
|
63
63
|
*
|
|
64
64
|
* @throws {@link B2biServiceException}
|
|
65
65
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -128,7 +128,7 @@ declare const UpdateCapabilityCommand_base: {
|
|
|
128
128
|
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
129
129
|
*
|
|
130
130
|
* @throws {@link ValidationException} (client fault)
|
|
131
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
131
|
+
* <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>
|
|
132
132
|
*
|
|
133
133
|
* @throws {@link B2biServiceException}
|
|
134
134
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -179,7 +179,7 @@ declare const UpdatePartnershipCommand_base: {
|
|
|
179
179
|
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
180
180
|
*
|
|
181
181
|
* @throws {@link ValidationException} (client fault)
|
|
182
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
182
|
+
* <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>
|
|
183
183
|
*
|
|
184
184
|
* @throws {@link B2biServiceException}
|
|
185
185
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -83,7 +83,7 @@ declare const UpdateProfileCommand_base: {
|
|
|
83
83
|
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
84
84
|
*
|
|
85
85
|
* @throws {@link ValidationException} (client fault)
|
|
86
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
86
|
+
* <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>
|
|
87
87
|
*
|
|
88
88
|
* @throws {@link B2biServiceException}
|
|
89
89
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -60,6 +60,30 @@ declare const UpdateTransformerCommand_base: {
|
|
|
60
60
|
* splitOptions: { // X12SplitOptions
|
|
61
61
|
* splitBy: "NONE" || "TRANSACTION", // required
|
|
62
62
|
* },
|
|
63
|
+
* validationOptions: { // X12ValidationOptions
|
|
64
|
+
* validationRules: [ // X12ValidationRules
|
|
65
|
+
* { // X12ValidationRule Union: only one key present
|
|
66
|
+
* codeListValidationRule: { // X12CodeListValidationRule
|
|
67
|
+
* elementId: "STRING_VALUE", // required
|
|
68
|
+
* codesToAdd: [ // CodeList
|
|
69
|
+
* "STRING_VALUE",
|
|
70
|
+
* ],
|
|
71
|
+
* codesToRemove: [
|
|
72
|
+
* "STRING_VALUE",
|
|
73
|
+
* ],
|
|
74
|
+
* },
|
|
75
|
+
* elementLengthValidationRule: { // X12ElementLengthValidationRule
|
|
76
|
+
* elementId: "STRING_VALUE", // required
|
|
77
|
+
* maxLength: Number("int"), // required
|
|
78
|
+
* minLength: Number("int"), // required
|
|
79
|
+
* },
|
|
80
|
+
* elementRequirementValidationRule: { // X12ElementRequirementValidationRule
|
|
81
|
+
* elementPosition: "STRING_VALUE", // required
|
|
82
|
+
* requirement: "OPTIONAL" || "MANDATORY", // required
|
|
83
|
+
* },
|
|
84
|
+
* },
|
|
85
|
+
* ],
|
|
86
|
+
* },
|
|
63
87
|
* },
|
|
64
88
|
* },
|
|
65
89
|
* },
|
|
@@ -75,6 +99,37 @@ declare const UpdateTransformerCommand_base: {
|
|
|
75
99
|
* version: "VERSION_4010" || "VERSION_4030" || "VERSION_4050" || "VERSION_4060" || "VERSION_5010" || "VERSION_5010_HIPAA",
|
|
76
100
|
* },
|
|
77
101
|
* },
|
|
102
|
+
* advancedOptions: {
|
|
103
|
+
* x12: {
|
|
104
|
+
* splitOptions: {
|
|
105
|
+
* splitBy: "NONE" || "TRANSACTION", // required
|
|
106
|
+
* },
|
|
107
|
+
* validationOptions: {
|
|
108
|
+
* validationRules: [
|
|
109
|
+
* {// Union: only one key present
|
|
110
|
+
* codeListValidationRule: {
|
|
111
|
+
* elementId: "STRING_VALUE", // required
|
|
112
|
+
* codesToAdd: [
|
|
113
|
+
* "STRING_VALUE",
|
|
114
|
+
* ],
|
|
115
|
+
* codesToRemove: [
|
|
116
|
+
* "STRING_VALUE",
|
|
117
|
+
* ],
|
|
118
|
+
* },
|
|
119
|
+
* elementLengthValidationRule: {
|
|
120
|
+
* elementId: "STRING_VALUE", // required
|
|
121
|
+
* maxLength: Number("int"), // required
|
|
122
|
+
* minLength: Number("int"), // required
|
|
123
|
+
* },
|
|
124
|
+
* elementRequirementValidationRule: {
|
|
125
|
+
* elementPosition: "STRING_VALUE", // required
|
|
126
|
+
* requirement: "OPTIONAL" || "MANDATORY", // required
|
|
127
|
+
* },
|
|
128
|
+
* },
|
|
129
|
+
* ],
|
|
130
|
+
* },
|
|
131
|
+
* },
|
|
132
|
+
* },
|
|
78
133
|
* },
|
|
79
134
|
* sampleDocuments: { // SampleDocuments
|
|
80
135
|
* bucketName: "STRING_VALUE", // required
|
|
@@ -117,6 +172,30 @@ declare const UpdateTransformerCommand_base: {
|
|
|
117
172
|
* // splitOptions: { // X12SplitOptions
|
|
118
173
|
* // splitBy: "NONE" || "TRANSACTION", // required
|
|
119
174
|
* // },
|
|
175
|
+
* // validationOptions: { // X12ValidationOptions
|
|
176
|
+
* // validationRules: [ // X12ValidationRules
|
|
177
|
+
* // { // X12ValidationRule Union: only one key present
|
|
178
|
+
* // codeListValidationRule: { // X12CodeListValidationRule
|
|
179
|
+
* // elementId: "STRING_VALUE", // required
|
|
180
|
+
* // codesToAdd: [ // CodeList
|
|
181
|
+
* // "STRING_VALUE",
|
|
182
|
+
* // ],
|
|
183
|
+
* // codesToRemove: [
|
|
184
|
+
* // "STRING_VALUE",
|
|
185
|
+
* // ],
|
|
186
|
+
* // },
|
|
187
|
+
* // elementLengthValidationRule: { // X12ElementLengthValidationRule
|
|
188
|
+
* // elementId: "STRING_VALUE", // required
|
|
189
|
+
* // maxLength: Number("int"), // required
|
|
190
|
+
* // minLength: Number("int"), // required
|
|
191
|
+
* // },
|
|
192
|
+
* // elementRequirementValidationRule: { // X12ElementRequirementValidationRule
|
|
193
|
+
* // elementPosition: "STRING_VALUE", // required
|
|
194
|
+
* // requirement: "OPTIONAL" || "MANDATORY", // required
|
|
195
|
+
* // },
|
|
196
|
+
* // },
|
|
197
|
+
* // ],
|
|
198
|
+
* // },
|
|
120
199
|
* // },
|
|
121
200
|
* // },
|
|
122
201
|
* // },
|
|
@@ -132,6 +211,37 @@ declare const UpdateTransformerCommand_base: {
|
|
|
132
211
|
* // version: "VERSION_4010" || "VERSION_4030" || "VERSION_4050" || "VERSION_4060" || "VERSION_5010" || "VERSION_5010_HIPAA",
|
|
133
212
|
* // },
|
|
134
213
|
* // },
|
|
214
|
+
* // advancedOptions: {
|
|
215
|
+
* // x12: {
|
|
216
|
+
* // splitOptions: {
|
|
217
|
+
* // splitBy: "NONE" || "TRANSACTION", // required
|
|
218
|
+
* // },
|
|
219
|
+
* // validationOptions: {
|
|
220
|
+
* // validationRules: [
|
|
221
|
+
* // {// Union: only one key present
|
|
222
|
+
* // codeListValidationRule: {
|
|
223
|
+
* // elementId: "STRING_VALUE", // required
|
|
224
|
+
* // codesToAdd: [
|
|
225
|
+
* // "STRING_VALUE",
|
|
226
|
+
* // ],
|
|
227
|
+
* // codesToRemove: [
|
|
228
|
+
* // "STRING_VALUE",
|
|
229
|
+
* // ],
|
|
230
|
+
* // },
|
|
231
|
+
* // elementLengthValidationRule: {
|
|
232
|
+
* // elementId: "STRING_VALUE", // required
|
|
233
|
+
* // maxLength: Number("int"), // required
|
|
234
|
+
* // minLength: Number("int"), // required
|
|
235
|
+
* // },
|
|
236
|
+
* // elementRequirementValidationRule: {
|
|
237
|
+
* // elementPosition: "STRING_VALUE", // required
|
|
238
|
+
* // requirement: "OPTIONAL" || "MANDATORY", // required
|
|
239
|
+
* // },
|
|
240
|
+
* // },
|
|
241
|
+
* // ],
|
|
242
|
+
* // },
|
|
243
|
+
* // },
|
|
244
|
+
* // },
|
|
135
245
|
* // },
|
|
136
246
|
* // sampleDocuments: { // SampleDocuments
|
|
137
247
|
* // bucketName: "STRING_VALUE", // required
|
|
@@ -171,7 +281,7 @@ declare const UpdateTransformerCommand_base: {
|
|
|
171
281
|
* <p>The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.</p>
|
|
172
282
|
*
|
|
173
283
|
* @throws {@link ValidationException} (client fault)
|
|
174
|
-
* <p>Occurs when a B2BI object cannot be validated against a request from another object.</p>
|
|
284
|
+
* <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>
|
|
175
285
|
*
|
|
176
286
|
* @throws {@link B2biServiceException}
|
|
177
287
|
* <p>Base exception class for all service exceptions from B2bi service.</p>
|
|
@@ -182,6 +292,45 @@ declare const UpdateTransformerCommand_base: {
|
|
|
182
292
|
* //
|
|
183
293
|
* const input = {
|
|
184
294
|
* inputConversion: {
|
|
295
|
+
* advancedOptions: {
|
|
296
|
+
* x12: {
|
|
297
|
+
* splitOptions: {
|
|
298
|
+
* splitBy: "NONE"
|
|
299
|
+
* },
|
|
300
|
+
* validationOptions: {
|
|
301
|
+
* validationRules: [
|
|
302
|
+
* {
|
|
303
|
+
* codeListValidationRule: {
|
|
304
|
+
* codesToAdd: [
|
|
305
|
+
* "A",
|
|
306
|
+
* "B",
|
|
307
|
+
* "C"
|
|
308
|
+
* ],
|
|
309
|
+
* codesToRemove: [
|
|
310
|
+
* "X",
|
|
311
|
+
* "Y",
|
|
312
|
+
* "Z"
|
|
313
|
+
* ],
|
|
314
|
+
* elementId: "1234"
|
|
315
|
+
* }
|
|
316
|
+
* },
|
|
317
|
+
* {
|
|
318
|
+
* elementRequirementValidationRule: {
|
|
319
|
+
* elementPosition: "NM1-01",
|
|
320
|
+
* requirement: "MANDATORY"
|
|
321
|
+
* }
|
|
322
|
+
* },
|
|
323
|
+
* {
|
|
324
|
+
* elementLengthValidationRule: {
|
|
325
|
+
* elementId: "5678",
|
|
326
|
+
* maxLength: 10,
|
|
327
|
+
* minLength: 2
|
|
328
|
+
* }
|
|
329
|
+
* }
|
|
330
|
+
* ]
|
|
331
|
+
* }
|
|
332
|
+
* }
|
|
333
|
+
* },
|
|
185
334
|
* formatOptions: {
|
|
186
335
|
* x12: {
|
|
187
336
|
* transactionSet: "X12_110",
|
|
@@ -212,6 +361,45 @@ declare const UpdateTransformerCommand_base: {
|
|
|
212
361
|
* {
|
|
213
362
|
* createdAt: "2023-11-01T21:51:05.504Z",
|
|
214
363
|
* inputConversion: {
|
|
364
|
+
* advancedOptions: {
|
|
365
|
+
* x12: {
|
|
366
|
+
* splitOptions: {
|
|
367
|
+
* splitBy: "NONE"
|
|
368
|
+
* },
|
|
369
|
+
* validationOptions: {
|
|
370
|
+
* validationRules: [
|
|
371
|
+
* {
|
|
372
|
+
* codeListValidationRule: {
|
|
373
|
+
* codesToAdd: [
|
|
374
|
+
* "A",
|
|
375
|
+
* "B",
|
|
376
|
+
* "C"
|
|
377
|
+
* ],
|
|
378
|
+
* codesToRemove: [
|
|
379
|
+
* "X",
|
|
380
|
+
* "Y",
|
|
381
|
+
* "Z"
|
|
382
|
+
* ],
|
|
383
|
+
* elementId: "1234"
|
|
384
|
+
* }
|
|
385
|
+
* },
|
|
386
|
+
* {
|
|
387
|
+
* elementRequirementValidationRule: {
|
|
388
|
+
* elementPosition: "NM1-01",
|
|
389
|
+
* requirement: "MANDATORY"
|
|
390
|
+
* }
|
|
391
|
+
* },
|
|
392
|
+
* {
|
|
393
|
+
* elementLengthValidationRule: {
|
|
394
|
+
* elementId: "5678",
|
|
395
|
+
* maxLength: 10,
|
|
396
|
+
* minLength: 2
|
|
397
|
+
* }
|
|
398
|
+
* }
|
|
399
|
+
* ]
|
|
400
|
+
* }
|
|
401
|
+
* }
|
|
402
|
+
* },
|
|
215
403
|
* formatOptions: {
|
|
216
404
|
* x12: {
|
|
217
405
|
* transactionSet: "X12_110",
|