amazon-textract-response-parser icon indicating copy to clipboard operation
amazon-textract-response-parser copied to clipboard

Errors in ApiTableCellEntityType enumerations

Open roysaad opened this issue 3 years ago • 2 comments

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

roysaad avatar Aug 09 '23 08:08 roysaad

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 avatar Aug 10 '23 04:08 athewsey

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!

athewsey avatar Aug 28 '23 09:08 athewsey