regulaforensics / DocumentReader-web-js-client

Regula Document Reader web API js client for the browser and node.js based on axios
https://regulaforensics.com
8 stars 6 forks source link

Build issue in typescript with version 7.4.95 #159

Closed boncossoftware closed 4 weeks ago

boncossoftware commented 1 month ago

Hi there! I am getting an issue when trying to build my application (in typescript) with the latest version 7.4.95 of your package. The errors I am getting is:

node_modules/@regulaforensics/document-reader-webclient/lib/index.d.ts:10458:86 - error TS2307: Cannot find module 'models' or its corresponding type declarations.

10458     getTransactionsByTag(tagId: number, options?: any): Promise<AxiosResponse<import("models").GetTransactionsByTagResponse[], any>>;
                                                                                           ~~~~~~~~

node_modules/@regulaforensics/document-reader-webclient/lib/index.d.ts:10483:101 - error TS2307: Cannot find module 'models' or its corresponding type declarations.

10483     getReprocessTransactionData(transactionId: number, options?: any): Promise<AxiosResponse<import("models").TransactionProcessGetResponse, any>>;
                                                                                                      ~~~~~~~~

Am I missing a dependency or could this be an issue in the latest version? Version 7.4.68 builds fine up until now.

These are the items I am importing:

import {
  CheckResult,
  GraphicFieldType,
  ProcessRequest,
  Response,
  Scenario,
  TextFieldType,
} from "@regulaforensics/document-reader-webclient";
inspector-code commented 4 weeks ago

Fixed in 7.4.97