aws-samples / amazon-textract-response-parser

Parse JSON response of Amazon Textract
Apache License 2.0
218 stars 95 forks source link

Errors in ApiTableCellEntityType enumerations #158

Closed roysaad closed 1 year ago

roysaad commented 1 year ago

The type ApiTableCellEntityType is defined as

export declare const enum ApiTableCellEntityType { Title = "TABLE_TITLE", Footer = "FOOTER", SectionTitle = "SECTION_TITLE", ColumnHeader = "COLUMN_HEADER", Summary = "TABLE_SUMMARY" } while the entity types returned by Textract are :

KEY | VALUE | COLUMN_HEADER | TABLE_TITLE | TABLE_FOOTER | TABLE_SECTION_TITLE | TABLE_SUMMARY | STRUCTURED_TABLE | SEMI_STRUCTURED_TABLE

FOOTER should be chaned to TABLE_FOOTER and SECTION_TITLE should be changed to TABLE_SECTION_TITLE

athewsey commented 1 year ago

Hi & thanks for raising this. A tentative fix is now published in NPM version 0.3.1-alpha.2: Please try it out and let us know if you find any problems! All being well, will try to roll out the mainline v0.3.1 soon.

athewsey commented 1 year ago

This should now be fixed as of today's merge of the linked PR and the mainline release of v0.3.1 to NPM. Please re-open if still facing problems!