Skip to content

Commit 65f5cf6

Browse files
committed
remove parsedFields in ParsedResultItem
1 parent 19fbe93 commit 65f5cf6

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

programming/javascript/api-reference/interfaces/parsed-result-item.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ The ParsedResultItem interface provides a structure representing the result item
1616
interface ParsedResultItem extends Core.CapturedResultItem {
1717
codeType: string;
1818
jsonString: string;
19-
parsedFields: Array<{ name: string, value: string }>;
20-
getFieldValue(fieldName: string): Promise<string>;
19+
getFieldValue: (fieldName: string) => Promise<string>;
2120
getFieldMappingStatus: (fieldName: string) => EnumMappingStatus;
2221
getFieldValidationStatus: (fieldName: string) => EnumValidationStatus;
2322
}
@@ -27,12 +26,10 @@ interface ParsedResultItem extends Core.CapturedResultItem {
2726
| ------------------------------------------------------- | ----------------------------------------------------------------------- |
2827
| [codeType](#codetype) | Returns the code type of the parsed result. |
2928
| [jsonString](#jsonstring) | Returns the parsed result as a JSON formatted string. |
30-
| [parsedFields](#parsedfields) | Returns an array that contains all parsed fields. |
3129
| [getFieldValue()](#getfieldvalue) | Gets the value of a specified field from the parsed result. |
3230
| [getFieldMappingStatus()](#getfieldmappingstatus) | Gets the mapping status of a specified field from the parsed result. |
3331
| [getFieldValidationStatus()](#getfieldvalidationstatus) | Gets the validation status of a specified field from the parsed result. |
3432

35-
3633
## codeType
3734

3835
Returns the code type of the parsed result.
@@ -49,14 +46,6 @@ Returns the parsed result as a JSON formatted string.
4946
jsonString: string;
5047
```
5148

52-
## parsedFields
53-
54-
Returns an array that contains all parsed fields.
55-
56-
```ts
57-
parsedFields: Array<{ name: string, value: string }>;
58-
```
59-
6049
## getFieldValue
6150

6251
Gets the value of a specified field from the parsed result.

programming/javascript/api-reference/interfaces/parsed-result.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ interface ParsedResult {
2424
}
2525
```
2626

27-
| API Name | Description |
28-
| -------------------------------------- | ----------------------------------------------------------- |
29-
| [originalImageHashId](#codetype) | Returns the hash id of the original image. |
30-
| [originalImageTag](#jsonstring) | Returns the tag of the original image. |
31-
| [parsedResultItems](#parsedfields) | Returns an array that contains all `ParsedResultItem`s. |
32-
| [hasItem()](#getfieldvalue) | Checks whether the specified `ParsedResultItem` exists. |
33-
| [removeItem()](#getfieldmappingstatus) | Removes the specified `ParsedResultItem`. |
34-
| [errorCode](#parsedfields) | Returns the error code for the parsing operation. |
35-
| [errorString](#parsedfields) | Returns the error string that corresponds with `errorCode`. |
27+
| API Name | Description |
28+
| ------------------------------------------- | ----------------------------------------------------------- |
29+
| [originalImageHashId](#originalimagehashid) | Returns the hash id of the original image. |
30+
| [originalImageTag](#originalimagetag) | Returns the tag of the original image. |
31+
| [parsedResultItems](#parsedresultitems) | Returns an array that contains all `ParsedResultItem`s. |
32+
| [hasItem()](#hasitem) | Checks whether the specified `ParsedResultItem` exists. |
33+
| [removeItem()](#removeitem) | Removes the specified `ParsedResultItem`. |
34+
| [errorCode](#errorcode) | Returns the error code for the parsing operation. |
35+
| [errorString](#errorstring) | Returns the error string that corresponds with `errorCode`. |
3636

3737
## originalImageHashId
3838

0 commit comments

Comments
 (0)