@regulaforensics/document-reader-webclient 7.2.2-beta.2 → 7.2.2-beta.3

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/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AxiosInstance } from "axios";
1
+ import { AxiosInstance, AxiosResponse } from "axios";
2
2
  /**
3
3
  * Regula Document Reader Web API
4
4
  * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
@@ -10238,8 +10238,8 @@ export class Response {
10238
10238
  text?: TextExt;
10239
10239
  images?: ImagesExt;
10240
10240
  lowLvlResponse: LowLvlResponse;
10241
- rawResponse: ProcessResponse;
10242
- constructor(original: ProcessResponse);
10241
+ rawResponse: ProcessResponse | InlineResponse2001;
10242
+ constructor(original: ProcessResponse | InlineResponse2001);
10243
10243
  authenticity(page_idx?: number): Authenticity | undefined;
10244
10244
  json(): string;
10245
10245
  authenticityPerPage(): Array<Authenticity>;
@@ -10258,7 +10258,7 @@ export class LowLvlResponse implements ProcessResponse {
10258
10258
  [key: string]: any;
10259
10259
  };
10260
10260
  morePagesAvailable?: number;
10261
- constructor(original: ProcessResponse);
10261
+ constructor(original: ProcessResponse | InlineResponse2001);
10262
10262
  statusResult(): StatusResult | undefined;
10263
10263
  textResult(): TextResult | undefined;
10264
10264
  imagesResult(): ImagesResult | undefined;
@@ -10319,5 +10319,23 @@ export class DocumentReaderApi {
10319
10319
  * */
10320
10320
  process(request: ProcessRequestExt | ProcessRequest, xRequestID?: string, options?: any): Promise<Response>;
10321
10321
  setLicense(license: ArrayBuffer | Base64String): void;
10322
+ /**
10323
+ *
10324
+ * @summary Reprocess
10325
+ * @param {number} transactionId Transaction id
10326
+ * @param {TransactionProcessRequest} transactionProcessRequest
10327
+ * @param {*} [options] Override http request option.
10328
+ * @throws {RequiredError}
10329
+ */
10330
+ reprocessTransaction(transactionId: number, transactionProcessRequest: TransactionProcessRequest, options?: any): Promise<AxiosResponse<InlineResponse200, any>>;
10331
+ /**
10332
+ *
10333
+ * @summary Get Reprocess transaction result
10334
+ * @param {number} transactionId Transaction id
10335
+ * @param {boolean} [withImages] With base64 images or url
10336
+ * @param {*} [options] Override http request option.
10337
+ * @throws {RequiredError}
10338
+ */
10339
+ getReprocessTransactionResult(transactionId: number, withImages?: boolean, options?: any): Promise<Response>;
10322
10340
  }
10323
10341
  export function requestToBaseRequest(request: ProcessRequestExt): ProcessRequest;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "> 0.2%",
6
6
  "not dead"
7
7
  ],
8
- "version": "7.2.2-beta.2",
8
+ "version": "7.2.2-beta.3",
9
9
  "description": "Regula Document Reader js client for the browser and node.js based on axios",
10
10
  "author": "Regula Forensics, Inc.",
11
11
  "keywords": [