diff --git a/src/.openapi-generator/FILES b/src/.openapi-generator/FILES index c5b9c7a8..83740c1f 100755 --- a/src/.openapi-generator/FILES +++ b/src/.openapi-generator/FILES @@ -1,4 +1,4 @@ -api/default-api.ts +api/healthcheck-api.ts api/process-api.ts api/transaction-api.ts base.ts @@ -57,6 +57,8 @@ models/graphic-field.ts models/graphic-fields-list.ts models/graphics-result-all-of.ts models/graphics-result.ts +models/healthcheck-documents-database.ts +models/healthcheck.ts models/ident-result-all-of.ts models/ident-result.ts models/image-data.ts diff --git a/src/api/healthcheck-api.ts b/src/api/healthcheck-api.ts new file mode 100644 index 00000000..58051499 --- /dev/null +++ b/src/api/healthcheck-api.ts @@ -0,0 +1,292 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula Document Reader Web API + * 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 + * + * The version of the OpenAPI document: 7.2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; +import { Configuration } from '../configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { DeviceInfo } from '../models'; +// @ts-ignore +import { Healthcheck } from '../models'; +/** + * HealthcheckApi - axios parameter creator + * @export + */ +export const HealthcheckApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Server health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + healthz: async (xRequestID?: string, options: any = {}): Promise => { + const localVarPath = `/api/healthz`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (xRequestID !== undefined && xRequestID !== null) { + localVarHeaderParameter['X-RequestID'] = String(xRequestID); + } + + + + const queryParameters = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + queryParameters.set(key, localVarQueryParameter[key]); + } + for (const key in options.query) { + queryParameters.set(key, options.query[key]); + } + localVarUrlObj.search = (new URLSearchParams(queryParameters)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Server health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + ping: async (xRequestID?: string, options: any = {}): Promise => { + const localVarPath = `/api/ping`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (xRequestID !== undefined && xRequestID !== null) { + localVarHeaderParameter['X-RequestID'] = String(xRequestID); + } + + + + const queryParameters = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + queryParameters.set(key, localVarQueryParameter[key]); + } + for (const key in options.query) { + queryParameters.set(key, options.query[key]); + } + localVarUrlObj.search = (new URLSearchParams(queryParameters)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + /** + * + * @summary License health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + readyz: async (xRequestID?: string, options: any = {}): Promise => { + const localVarPath = `/api/readyz`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (xRequestID !== undefined && xRequestID !== null) { + localVarHeaderParameter['X-RequestID'] = String(xRequestID); + } + + + + const queryParameters = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + queryParameters.set(key, localVarQueryParameter[key]); + } + for (const key in options.query) { + queryParameters.set(key, options.query[key]); + } + localVarUrlObj.search = (new URLSearchParams(queryParameters)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * HealthcheckApi - functional programming interface + * @export + */ +export const HealthcheckApiFp = function(configuration?: Configuration) { + return { + /** + * + * @summary Server health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async healthz(xRequestID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await HealthcheckApiAxiosParamCreator(configuration).healthz(xRequestID, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...localVarAxiosArgs.options, url: (configuration?.basePath || basePath) + localVarAxiosArgs.url}; + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Server health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async ping(xRequestID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await HealthcheckApiAxiosParamCreator(configuration).ping(xRequestID, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...localVarAxiosArgs.options, url: (configuration?.basePath || basePath) + localVarAxiosArgs.url}; + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary License health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async readyz(xRequestID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await HealthcheckApiAxiosParamCreator(configuration).readyz(xRequestID, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...localVarAxiosArgs.options, url: (configuration?.basePath || basePath) + localVarAxiosArgs.url}; + return axios.request(axiosRequestArgs); + }; + }, + } +}; + +/** + * HealthcheckApi - factory interface + * @export + */ +export const HealthcheckApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + return { + /** + * + * @summary Server health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + healthz(xRequestID?: string, options?: any): AxiosPromise { + return HealthcheckApiFp(configuration).healthz(xRequestID, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Server health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + ping(xRequestID?: string, options?: any): AxiosPromise { + return HealthcheckApiFp(configuration).ping(xRequestID, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary License health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + readyz(xRequestID?: string, options?: any): AxiosPromise { + return HealthcheckApiFp(configuration).readyz(xRequestID, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * HealthcheckApi - object-oriented interface + * @export + * @class HealthcheckApi + * @extends {BaseAPI} + */ +export class HealthcheckApi extends BaseAPI { + /** + * + * @summary Server health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthcheckApi + */ + public healthz(xRequestID?: string, options?: any) { + return HealthcheckApiFp(this.configuration).healthz(xRequestID, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Server health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthcheckApi + */ + public ping(xRequestID?: string, options?: any) { + return HealthcheckApiFp(this.configuration).ping(xRequestID, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary License health check + * @param {string} [xRequestID] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthcheckApi + */ + public readyz(xRequestID?: string, options?: any) { + return HealthcheckApiFp(this.configuration).readyz(xRequestID, options).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/api/process-api.ts b/src/api/process-api.ts index 447f1cc2..6e5a06fe 100644 --- a/src/api/process-api.ts +++ b/src/api/process-api.ts @@ -17,11 +17,11 @@ import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base.js'; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; // @ts-ignore -import { ProcessRequest } from '../models.js'; +import { ProcessRequest } from '../models'; // @ts-ignore -import { ProcessResponse } from '../models.js'; +import { ProcessResponse } from '../models'; /** * ProcessApi - axios parameter creator * @export diff --git a/src/api/transaction-api.ts b/src/api/transaction-api.ts index 4c1f8f6f..a649ec95 100644 --- a/src/api/transaction-api.ts +++ b/src/api/transaction-api.ts @@ -37,11 +37,11 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu /** * * @summary Delete Reprocess transactions by tag - * @param {number} tagId Tag id + * @param {string} tagId Tag id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV2TagTagIdDelete: async (tagId: number, options: any = {}): Promise => { + apiV2TagTagIdDelete: async (tagId: string, options: any = {}): Promise => { // verify required parameter 'tagId' is not null or undefined if (tagId === null || tagId === undefined) { throw new RequiredError('tagId','Required parameter tagId was null or undefined when calling apiV2TagTagIdDelete.'); @@ -123,12 +123,12 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu /** * * @summary Get Reprocess transaction file - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {string} name File name * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV2TransactionTransactionIdFileGet: async (transactionId: number, name: string, options: any = {}): Promise => { + apiV2TransactionTransactionIdFileGet: async (transactionId: string, name: string, options: any = {}): Promise => { // verify required parameter 'transactionId' is not null or undefined if (transactionId === null || transactionId === undefined) { throw new RequiredError('transactionId','Required parameter transactionId was null or undefined when calling apiV2TransactionTransactionIdFileGet.'); @@ -175,11 +175,11 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu /** * * @summary Get Reprocess transaction data - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV2TransactionTransactionIdGet: async (transactionId: number, options: any = {}): Promise => { + apiV2TransactionTransactionIdGet: async (transactionId: string, options: any = {}): Promise => { // verify required parameter 'transactionId' is not null or undefined if (transactionId === null || transactionId === undefined) { throw new RequiredError('transactionId','Required parameter transactionId was null or undefined when calling apiV2TransactionTransactionIdGet.'); @@ -218,12 +218,12 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu /** * * @summary Reprocess - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {TransactionProcessRequest} transactionProcessRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV2TransactionTransactionIdProcessPost: async (transactionId: number, transactionProcessRequest: TransactionProcessRequest, options: any = {}): Promise => { + apiV2TransactionTransactionIdProcessPost: async (transactionId: string, transactionProcessRequest: TransactionProcessRequest, options: any = {}): Promise => { // verify required parameter 'transactionId' is not null or undefined if (transactionId === null || transactionId === undefined) { throw new RequiredError('transactionId','Required parameter transactionId was null or undefined when calling apiV2TransactionTransactionIdProcessPost.'); @@ -275,12 +275,12 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu /** * * @summary Get Reprocess transaction result - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {boolean} [withImages] With base64 images or url * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV2TransactionTransactionIdResultsGet: async (transactionId: number, withImages?: boolean, options: any = {}): Promise => { + apiV2TransactionTransactionIdResultsGet: async (transactionId: string, withImages?: boolean, options: any = {}): Promise => { // verify required parameter 'transactionId' is not null or undefined if (transactionId === null || transactionId === undefined) { throw new RequiredError('transactionId','Required parameter transactionId was null or undefined when calling apiV2TransactionTransactionIdResultsGet.'); @@ -332,11 +332,11 @@ export const TransactionApiFp = function(configuration?: Configuration) { /** * * @summary Delete Reprocess transactions by tag - * @param {number} tagId Tag id + * @param {string} tagId Tag id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV2TagTagIdDelete(tagId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV2TagTagIdDelete(tagId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await TransactionApiAxiosParamCreator(configuration).apiV2TagTagIdDelete(tagId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: (configuration?.basePath || basePath) + localVarAxiosArgs.url}; @@ -360,12 +360,12 @@ export const TransactionApiFp = function(configuration?: Configuration) { /** * * @summary Get Reprocess transaction file - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {string} name File name * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV2TransactionTransactionIdFileGet(transactionId: number, name: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV2TransactionTransactionIdFileGet(transactionId: string, name: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await TransactionApiAxiosParamCreator(configuration).apiV2TransactionTransactionIdFileGet(transactionId, name, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: (configuration?.basePath || basePath) + localVarAxiosArgs.url}; @@ -375,11 +375,11 @@ export const TransactionApiFp = function(configuration?: Configuration) { /** * * @summary Get Reprocess transaction data - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV2TransactionTransactionIdGet(transactionId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV2TransactionTransactionIdGet(transactionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await TransactionApiAxiosParamCreator(configuration).apiV2TransactionTransactionIdGet(transactionId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: (configuration?.basePath || basePath) + localVarAxiosArgs.url}; @@ -389,12 +389,12 @@ export const TransactionApiFp = function(configuration?: Configuration) { /** * * @summary Reprocess - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {TransactionProcessRequest} transactionProcessRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV2TransactionTransactionIdProcessPost(transactionId: number, transactionProcessRequest: TransactionProcessRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV2TransactionTransactionIdProcessPost(transactionId: string, transactionProcessRequest: TransactionProcessRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await TransactionApiAxiosParamCreator(configuration).apiV2TransactionTransactionIdProcessPost(transactionId, transactionProcessRequest, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: (configuration?.basePath || basePath) + localVarAxiosArgs.url}; @@ -404,12 +404,12 @@ export const TransactionApiFp = function(configuration?: Configuration) { /** * * @summary Get Reprocess transaction result - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {boolean} [withImages] With base64 images or url * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiV2TransactionTransactionIdResultsGet(transactionId: number, withImages?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiV2TransactionTransactionIdResultsGet(transactionId: string, withImages?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await TransactionApiAxiosParamCreator(configuration).apiV2TransactionTransactionIdResultsGet(transactionId, withImages, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs = {...localVarAxiosArgs.options, url: (configuration?.basePath || basePath) + localVarAxiosArgs.url}; @@ -428,11 +428,11 @@ export const TransactionApiFactory = function (configuration?: Configuration, ba /** * * @summary Delete Reprocess transactions by tag - * @param {number} tagId Tag id + * @param {string} tagId Tag id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV2TagTagIdDelete(tagId: number, options?: any): AxiosPromise { + apiV2TagTagIdDelete(tagId: string, options?: any): AxiosPromise { return TransactionApiFp(configuration).apiV2TagTagIdDelete(tagId, options).then((request) => request(axios, basePath)); }, /** @@ -448,44 +448,44 @@ export const TransactionApiFactory = function (configuration?: Configuration, ba /** * * @summary Get Reprocess transaction file - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {string} name File name * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV2TransactionTransactionIdFileGet(transactionId: number, name: string, options?: any): AxiosPromise { + apiV2TransactionTransactionIdFileGet(transactionId: string, name: string, options?: any): AxiosPromise { return TransactionApiFp(configuration).apiV2TransactionTransactionIdFileGet(transactionId, name, options).then((request) => request(axios, basePath)); }, /** * * @summary Get Reprocess transaction data - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV2TransactionTransactionIdGet(transactionId: number, options?: any): AxiosPromise { + apiV2TransactionTransactionIdGet(transactionId: string, options?: any): AxiosPromise { return TransactionApiFp(configuration).apiV2TransactionTransactionIdGet(transactionId, options).then((request) => request(axios, basePath)); }, /** * * @summary Reprocess - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {TransactionProcessRequest} transactionProcessRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV2TransactionTransactionIdProcessPost(transactionId: number, transactionProcessRequest: TransactionProcessRequest, options?: any): AxiosPromise { + apiV2TransactionTransactionIdProcessPost(transactionId: string, transactionProcessRequest: TransactionProcessRequest, options?: any): AxiosPromise { return TransactionApiFp(configuration).apiV2TransactionTransactionIdProcessPost(transactionId, transactionProcessRequest, options).then((request) => request(axios, basePath)); }, /** * * @summary Get Reprocess transaction result - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {boolean} [withImages] With base64 images or url * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiV2TransactionTransactionIdResultsGet(transactionId: number, withImages?: boolean, options?: any): AxiosPromise { + apiV2TransactionTransactionIdResultsGet(transactionId: string, withImages?: boolean, options?: any): AxiosPromise { return TransactionApiFp(configuration).apiV2TransactionTransactionIdResultsGet(transactionId, withImages, options).then((request) => request(axios, basePath)); }, }; @@ -501,12 +501,12 @@ export class TransactionApi extends BaseAPI { /** * * @summary Delete Reprocess transactions by tag - * @param {number} tagId Tag id + * @param {string} tagId Tag id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionApi */ - public apiV2TagTagIdDelete(tagId: number, options?: any) { + public apiV2TagTagIdDelete(tagId: string, options?: any) { return TransactionApiFp(this.configuration).apiV2TagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath)); } @@ -525,51 +525,51 @@ export class TransactionApi extends BaseAPI { /** * * @summary Get Reprocess transaction file - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {string} name File name * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionApi */ - public apiV2TransactionTransactionIdFileGet(transactionId: number, name: string, options?: any) { + public apiV2TransactionTransactionIdFileGet(transactionId: string, name: string, options?: any) { return TransactionApiFp(this.configuration).apiV2TransactionTransactionIdFileGet(transactionId, name, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get Reprocess transaction data - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionApi */ - public apiV2TransactionTransactionIdGet(transactionId: number, options?: any) { + public apiV2TransactionTransactionIdGet(transactionId: string, options?: any) { return TransactionApiFp(this.configuration).apiV2TransactionTransactionIdGet(transactionId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Reprocess - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {TransactionProcessRequest} transactionProcessRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionApi */ - public apiV2TransactionTransactionIdProcessPost(transactionId: number, transactionProcessRequest: TransactionProcessRequest, options?: any) { + public apiV2TransactionTransactionIdProcessPost(transactionId: string, transactionProcessRequest: TransactionProcessRequest, options?: any) { return TransactionApiFp(this.configuration).apiV2TransactionTransactionIdProcessPost(transactionId, transactionProcessRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get Reprocess transaction result - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {boolean} [withImages] With base64 images or url * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionApi */ - public apiV2TransactionTransactionIdResultsGet(transactionId: number, withImages?: boolean, options?: any) { + public apiV2TransactionTransactionIdResultsGet(transactionId: string, withImages?: boolean, options?: any) { return TransactionApiFp(this.configuration).apiV2TransactionTransactionIdResultsGet(transactionId, withImages, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/src/ext/document-reader.ts b/src/ext/document-reader.ts index 04143003..11008916 100755 --- a/src/ext/document-reader.ts +++ b/src/ext/document-reader.ts @@ -92,13 +92,13 @@ export class DocumentReaderApi { /** * * @summary Reprocess - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {TransactionProcessRequest} transactionProcessRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ public reprocessTransaction( - transactionId: number, + transactionId: string, transactionProcessRequest: TransactionProcessRequest, options?: any, ): Promise> { @@ -112,12 +112,12 @@ export class DocumentReaderApi { /** * * @summary Get Reprocess transaction result - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {boolean} [withImages] With base64 images or url * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getReprocessTransactionResult(transactionId: number, withImages?: boolean, options?: any): Promise { + async getReprocessTransactionResult(transactionId: string, withImages?: boolean, options?: any): Promise { const axiosResult = await this.transactionApi.apiV2TransactionTransactionIdResultsGet( transactionId, withImages, @@ -129,7 +129,7 @@ export class DocumentReaderApi { /** * * @summary Get transactions by tag - * @param {number} tagId Tag id + * @param {string} tagId Tag id * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -140,24 +140,24 @@ export class DocumentReaderApi { /** * * @summary Delete Reprocess transactions by tag - * @param {number} tagId Tag id + * @param {string} tagId Tag id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteReprocessTransactionsByTag(tagId: number, options?: any): Promise> { + async deleteReprocessTransactionsByTag(tagId: string, options?: any): Promise> { return this.transactionApi.apiV2TagTagIdDelete(tagId, options); } /** * * @summary Get Reprocess transaction file - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {string} name File name * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getReprocessTransactionFile( - transactionId: number, + transactionId: string, name: string, options?: any, ): Promise> { @@ -167,12 +167,12 @@ export class DocumentReaderApi { /** * * @summary Get Reprocess transaction data - * @param {number} transactionId Transaction id + * @param {string} transactionId Transaction id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getReprocessTransactionData( - transactionId: number, + transactionId: string, options?: any, ): Promise> { return this.transactionApi.apiV2TransactionTransactionIdGet(transactionId, options); diff --git a/src/models/authenticity-result-type.ts b/src/models/authenticity-result-type.ts index 548148a1..6048be44 100644 --- a/src/models/authenticity-result-type.ts +++ b/src/models/authenticity-result-type.ts @@ -57,11 +57,11 @@ export enum AuthenticityResultType { */ PHOTO_EMBED_TYPE = 512, /** - * OVI check + * OVI check. Deprecated, use Document liveness check instead */ OVI = 1024, /** - * Hologram presence check + * Hologram presence check. Deprecated */ HOLOGRAMS = 4096, /** diff --git a/src/models/available-source.ts b/src/models/available-source.ts deleted file mode 100755 index 15f53d62..00000000 --- a/src/models/available-source.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { CheckResult } from './check-result'; -import { Source } from './source'; - -/** - * - * @export - * @interface AvailableSource - */ -export interface AvailableSource { - /** - * - * @type {Source} - * @memberof AvailableSource - */ - source: Source; - /** - * - * @type {CheckResult} - * @memberof AvailableSource - */ - validityStatus: CheckResult; -} - - diff --git a/src/models/barcode-text-data-result.ts b/src/models/barcode-text-data-result.ts deleted file mode 100755 index 9f9ea99b..00000000 --- a/src/models/barcode-text-data-result.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { ChosenDocumentTypeResult } from './chosen-document-type-result'; -import { DocVisualExtendedInfo } from './doc-visual-extended-info'; -import { DocumentTypesCandidatesResult } from './document-types-candidates-result'; -import { GraphicsResult } from './graphics-result'; -import { LexicalAnalysisResult } from './lexical-analysis-result'; -import { MrzOcrExtendedResult } from './mrz-ocr-extended-result'; -import { MrzOcrExtendedResultAllOf } from './mrz-ocr-extended-result-all-of'; -import { RawImageResult } from './raw-image-result'; -import { ResultItem } from './result-item'; -import { RfidTextDataResult } from './rfid-text-data-result'; -import { StatusResult } from './status-result'; -import { TextResult } from './text-result'; -import { VisualOcrExtendedResult } from './visual-ocr-extended-result'; - -/** - * @type BarcodeTextDataResult - * Text fields extracted from document barcode - * @export - */ -export type BarcodeTextDataResult = MrzOcrExtendedResultAllOf & ResultItem; - - - diff --git a/src/models/binary-data-result.ts b/src/models/binary-data-result.ts deleted file mode 100644 index 9697d3cb..00000000 --- a/src/models/binary-data-result.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * 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 - * - * The version of the OpenAPI document: 7.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { TBinaryData } from './tbinary-data'; - -/** - * - * @export - * @interface BinaryDataResult - */ -export interface BinaryDataResult { - /** - * Count of array fields - * @type {number} - * @memberof BinaryDataResult - */ - nFields?: number; - /** - * - * @type {Array} - * @memberof BinaryDataResult - */ - pArrayFields?: Array; -} - - diff --git a/src/models/check-result.ts b/src/models/check-result.ts old mode 100755 new mode 100644 diff --git a/src/models/chosen-document-type-result-all-of.ts b/src/models/chosen-document-type-result-all-of.ts old mode 100755 new mode 100644 diff --git a/src/models/chosen-document-type-result.ts b/src/models/chosen-document-type-result.ts old mode 100755 new mode 100644 diff --git a/src/models/container-list.ts b/src/models/container-list.ts old mode 100755 new mode 100644 diff --git a/src/models/cross-source-value-comparison.ts b/src/models/cross-source-value-comparison.ts old mode 100755 new mode 100644 diff --git a/src/models/details-optical.ts b/src/models/details-optical.ts old mode 100755 new mode 100644 diff --git a/src/models/details-rfid.ts b/src/models/details-rfid.ts old mode 100755 new mode 100644 diff --git a/src/models/doc-visual-extended-field.ts b/src/models/doc-visual-extended-field.ts old mode 100755 new mode 100644 diff --git a/src/models/doc-visual-extended-info.ts b/src/models/doc-visual-extended-info.ts old mode 100755 new mode 100644 diff --git a/src/models/document-format.ts b/src/models/document-format.ts old mode 100755 new mode 100644 diff --git a/src/models/document-image-result-all-of.ts b/src/models/document-image-result-all-of.ts old mode 100755 new mode 100644 index 40f2140f..a7e4cc20 --- a/src/models/document-image-result-all-of.ts +++ b/src/models/document-image-result-all-of.ts @@ -16,7 +16,7 @@ import { ImageData } from './image-data'; /** - * Contains cropped and rotated with perspective compensation image of document. Single input image can contain multiple document side/pages, which will be returned as separated results. Most of coordinates in other types defined on that image + * * @export * @interface DocumentImageResultAllOf */ diff --git a/src/models/document-image-result.ts b/src/models/document-image-result.ts old mode 100755 new mode 100644 index 65ae1a20..0850c1ec --- a/src/models/document-image-result.ts +++ b/src/models/document-image-result.ts @@ -33,6 +33,7 @@ import { TextResult } from './text-result'; /** * @type DocumentImageResult + * Contains document image. * @export */ export type DocumentImageResult = DocumentImageResultAllOf & ResultItem; diff --git a/src/models/document-image.ts b/src/models/document-image.ts index 485ca7ad..50e8367f 100644 --- a/src/models/document-image.ts +++ b/src/models/document-image.ts @@ -26,6 +26,12 @@ export interface DocumentImage { * @memberof DocumentImage */ image: string; + /** + * Image format + * @type {string} + * @memberof DocumentImage + */ + format?: string; } diff --git a/src/models/document-type-recognition-result.ts b/src/models/document-type-recognition-result.ts old mode 100755 new mode 100644 diff --git a/src/models/document-type.ts b/src/models/document-type.ts old mode 100755 new mode 100644 diff --git a/src/models/document-types-candidates-list.ts b/src/models/document-types-candidates-list.ts old mode 100755 new mode 100644 diff --git a/src/models/document-types-candidates-result-all-of.ts b/src/models/document-types-candidates-result-all-of.ts old mode 100755 new mode 100644 diff --git a/src/models/document-types-candidates-result.ts b/src/models/document-types-candidates-result.ts old mode 100755 new mode 100644 diff --git a/src/models/extended-rfid-text-field-all-of.ts b/src/models/extended-rfid-text-field-all-of.ts deleted file mode 100755 index 1011431d..00000000 --- a/src/models/extended-rfid-text-field-all-of.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ExtendedRfidTextFieldAllOf - */ -export interface ExtendedRfidTextFieldAllOf { - /** - * Information data group - * @type {number} - * @memberof ExtendedRfidTextFieldAllOf - */ - RFID_OriginDG?: number; - /** - * Index of the text field record in information data group - * @type {number} - * @memberof ExtendedRfidTextFieldAllOf - */ - RFID_OriginTagEntry?: number; -} - - diff --git a/src/models/extended-rfid-text-field.ts b/src/models/extended-rfid-text-field.ts deleted file mode 100755 index ecae31b9..00000000 --- a/src/models/extended-rfid-text-field.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { ExtendedRfidTextFieldAllOf } from './extended-rfid-text-field-all-of'; -import { ExtendedTextField } from './extended-text-field'; -import { LCID } from './lcid'; -import { StringRecognitionResult } from './string-recognition-result'; -import { TextFieldType } from './text-field-type'; - -/** - * @type ExtendedRfidTextField - * @export - */ -export type ExtendedRfidTextField = ExtendedRfidTextFieldAllOf & ExtendedTextField; - - - diff --git a/src/models/extended-text-field.ts b/src/models/extended-text-field.ts deleted file mode 100755 index ba95a689..00000000 --- a/src/models/extended-text-field.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { LCID } from './lcid'; -import { StringRecognitionResult } from './string-recognition-result'; -import { TextFieldType } from './text-field-type'; - -/** - * - * @export - * @interface ExtendedTextField - */ -export interface ExtendedTextField { - /** - * - * @type {TextFieldType} - * @memberof ExtendedTextField - */ - wFieldType?: TextFieldType; - /** - * - * @type {LCID} - * @memberof ExtendedTextField - */ - wLCID?: LCID; - /** - * Array of recognizing probabilities for a each line of text field - * @type {Array} - * @memberof ExtendedTextField - */ - StringsResult?: Array; - /** - * Text field data in UTF8 format. Results of reading different lines of a multiline field are separated by “^” - * @type {string} - * @memberof ExtendedTextField - */ - Buf_Text?: string; -} - - diff --git a/src/models/extended-visual-text-field-all-of.ts b/src/models/extended-visual-text-field-all-of.ts deleted file mode 100755 index 98ef16e2..00000000 --- a/src/models/extended-visual-text-field-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { RectangleCoordinates } from './rectangle-coordinates'; - -/** - * - * @export - * @interface ExtendedVisualTextFieldAllOf - */ -export interface ExtendedVisualTextFieldAllOf { - /** - * - * @type {RectangleCoordinates} - * @memberof ExtendedVisualTextFieldAllOf - */ - FieldRect?: RectangleCoordinates; -} - - diff --git a/src/models/extended-visual-text-field.ts b/src/models/extended-visual-text-field.ts deleted file mode 100755 index a251185c..00000000 --- a/src/models/extended-visual-text-field.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { ExtendedTextField } from './extended-text-field'; -import { ExtendedVisualTextFieldAllOf } from './extended-visual-text-field-all-of'; -import { LCID } from './lcid'; -import { RectangleCoordinates } from './rectangle-coordinates'; -import { StringRecognitionResult } from './string-recognition-result'; -import { TextFieldType } from './text-field-type'; - -/** - * @type ExtendedVisualTextField - * @export - */ -export type ExtendedVisualTextField = ExtendedTextField & ExtendedVisualTextFieldAllOf; - - - diff --git a/src/models/field-source.ts b/src/models/field-source.ts deleted file mode 100755 index 485a6f05..00000000 --- a/src/models/field-source.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @enum {string} - */ -export enum FieldSource { - MRZ = 'MRZ', - RFID = 'RFID', - BARCODE = 'BARCODE', - VISUAL = 'VISUAL' -} - - - diff --git a/src/models/get-transactions-by-tag-response.ts b/src/models/get-transactions-by-tag-response.ts index 4cbe2a45..c8fabcc9 100644 --- a/src/models/get-transactions-by-tag-response.ts +++ b/src/models/get-transactions-by-tag-response.ts @@ -22,10 +22,10 @@ export interface GetTransactionsByTagResponse { /** * Transaction id - * @type {number} + * @type {string} * @memberof GetTransactionsByTagResponse */ - id?: number; + id?: string; /** * Transaction status * @type {number} diff --git a/src/models/graphic-field-type.ts b/src/models/graphic-field-type.ts old mode 100755 new mode 100644 diff --git a/src/models/graphic-field.ts b/src/models/graphic-field.ts old mode 100755 new mode 100644 diff --git a/src/models/graphic-fields-list.ts b/src/models/graphic-fields-list.ts old mode 100755 new mode 100644 diff --git a/src/models/graphics-result-all-of.ts b/src/models/graphics-result-all-of.ts old mode 100755 new mode 100644 diff --git a/src/models/graphics-result.ts b/src/models/graphics-result.ts old mode 100755 new mode 100644 diff --git a/src/models/tbinary-data.ts b/src/models/healthcheck-documents-database.ts similarity index 59% rename from src/models/tbinary-data.ts rename to src/models/healthcheck-documents-database.ts index 76e5d118..945a851c 100644 --- a/src/models/tbinary-data.ts +++ b/src/models/healthcheck-documents-database.ts @@ -15,35 +15,35 @@ /** - * Container for extracted text fields. Fields are identified by type and language + * Database information. * @export - * @interface TBinaryData + * @interface HealthcheckDocumentsDatabase */ -export interface TBinaryData { +export interface HealthcheckDocumentsDatabase { /** - * - * @type {number} - * @memberof TBinaryData + * Database identifier. + * @type {string} + * @memberof HealthcheckDocumentsDatabase */ - FieldType?: number; + id: string | null; /** - * + * Database version. * @type {string} - * @memberof TBinaryData + * @memberof HealthcheckDocumentsDatabase */ - FieldName?: string; + version: string | null; /** - * - * @type {number} - * @memberof TBinaryData + * Date of database creation. + * @type {string} + * @memberof HealthcheckDocumentsDatabase */ - Buf_Length?: number; + exportDate: string | null; /** - * + * Description of the database contents, such as the list of supported countries and documents. * @type {string} - * @memberof TBinaryData + * @memberof HealthcheckDocumentsDatabase */ - Buffer?: string; + description: string | null; } diff --git a/src/models/healthcheck.ts b/src/models/healthcheck.ts new file mode 100644 index 00000000..bbae9ec0 --- /dev/null +++ b/src/models/healthcheck.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula Document Reader Web API + * 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 + * + * The version of the OpenAPI document: 7.2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { HealthcheckDocumentsDatabase } from './healthcheck-documents-database'; + +/** + * + * @export + * @interface Healthcheck + */ +export interface Healthcheck { + /** + * Application name. + * @type {string} + * @memberof Healthcheck + */ + app: string; + /** + * Unique license identifier. + * @type {string} + * @memberof Healthcheck + */ + licenseId: string | null; + /** + * License type. + * @type {string} + * @memberof Healthcheck + */ + licenseType: string | null; + /** + * License serial number. + * @type {string} + * @memberof Healthcheck + */ + licenseSerial: string | null; + /** + * License validity date. + * @type {string} + * @memberof Healthcheck + */ + licenseValidUntil: string | null; + /** + * List of supported scenarios. + * @type {Array} + * @memberof Healthcheck + */ + scenarios: Array | null; + /** + * Product version. + * @type {string} + * @memberof Healthcheck + */ + version: string | null; + /** + * + * @type {HealthcheckDocumentsDatabase} + * @memberof Healthcheck + */ + documentsDatabase?: HealthcheckDocumentsDatabase; +} + + diff --git a/src/models/image-data.ts b/src/models/image-data.ts old mode 100755 new mode 100644 index c94ef3bf..937e27ac --- a/src/models/image-data.ts +++ b/src/models/image-data.ts @@ -26,6 +26,12 @@ export interface ImageData { * @memberof ImageData */ image: string; + /** + * Image format + * @type {string} + * @memberof ImageData + */ + format?: string; } diff --git a/src/models/images-available-source.ts b/src/models/images-available-source.ts old mode 100755 new mode 100644 diff --git a/src/models/images-field-value.ts b/src/models/images-field-value.ts old mode 100755 new mode 100644 diff --git a/src/models/images-field.ts b/src/models/images-field.ts old mode 100755 new mode 100644 diff --git a/src/models/images-result-all-of.ts b/src/models/images-result-all-of.ts old mode 100755 new mode 100644 diff --git a/src/models/images-result.ts b/src/models/images-result.ts old mode 100755 new mode 100644 diff --git a/src/models/images.ts b/src/models/images.ts old mode 100755 new mode 100644 diff --git a/src/models/in-data-rfid-session.ts b/src/models/in-data-rfid-session.ts deleted file mode 100644 index 13348d97..00000000 --- a/src/models/in-data-rfid-session.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * 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 - * - * The version of the OpenAPI document: 7.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface InDataRfidSession - */ -export interface InDataRfidSession { - /** - * Image url - * @type {string} - * @memberof InDataRfidSession - */ - url?: string; -} - - diff --git a/src/models/index.ts b/src/models/index.ts old mode 100755 new mode 100644 index 8cd037a7..b6e3d031 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -52,6 +52,8 @@ export * from './graphic-field-type'; export * from './graphic-fields-list'; export * from './graphics-result'; export * from './graphics-result-all-of'; +export * from './healthcheck'; +export * from './healthcheck-documents-database'; export * from './ident-result'; export * from './ident-result-all-of'; export * from './image-data'; diff --git a/src/models/lcid.ts b/src/models/lcid.ts old mode 100755 new mode 100644 diff --git a/src/models/lexical-analysis-result-all-of.ts b/src/models/lexical-analysis-result-all-of.ts old mode 100755 new mode 100644 diff --git a/src/models/lexical-analysis-result.ts b/src/models/lexical-analysis-result.ts old mode 100755 new mode 100644 diff --git a/src/models/light.ts b/src/models/light.ts old mode 100755 new mode 100644 diff --git a/src/models/list-verified-fields.ts b/src/models/list-verified-fields.ts old mode 100755 new mode 100644 diff --git a/src/models/mrz-ocr-extended-result-all-of.ts b/src/models/mrz-ocr-extended-result-all-of.ts deleted file mode 100755 index 95bcb776..00000000 --- a/src/models/mrz-ocr-extended-result-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { DocVisualExtendedInfo } from './doc-visual-extended-info'; - -/** - * - * @export - * @interface MrzOcrExtendedResultAllOf - */ -export interface MrzOcrExtendedResultAllOf { - /** - * - * @type {DocVisualExtendedInfo} - * @memberof MrzOcrExtendedResultAllOf - */ - DocVisualExtendedInfo?: DocVisualExtendedInfo; -} - - diff --git a/src/models/mrz-ocr-extended-result.ts b/src/models/mrz-ocr-extended-result.ts deleted file mode 100755 index 8d695fef..00000000 --- a/src/models/mrz-ocr-extended-result.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { BarcodeTextDataResult } from './barcode-text-data-result'; -import { ChosenDocumentTypeResult } from './chosen-document-type-result'; -import { DocVisualExtendedInfo } from './doc-visual-extended-info'; -import { DocumentTypesCandidatesResult } from './document-types-candidates-result'; -import { GraphicsResult } from './graphics-result'; -import { LexicalAnalysisResult } from './lexical-analysis-result'; -import { MrzOcrExtendedResultAllOf } from './mrz-ocr-extended-result-all-of'; -import { RawImageResult } from './raw-image-result'; -import { ResultItem } from './result-item'; -import { RfidTextDataResult } from './rfid-text-data-result'; -import { StatusResult } from './status-result'; -import { TextResult } from './text-result'; -import { VisualOcrExtendedResult } from './visual-ocr-extended-result'; - -/** - * @type MrzOcrExtendedResult - * Text fields extracted from the document MRZ region - * @export - */ -export type MrzOcrExtendedResult = MrzOcrExtendedResultAllOf & ResultItem; - - - diff --git a/src/models/one-candidate.ts b/src/models/one-candidate.ts old mode 100755 new mode 100644 diff --git a/src/models/original-graphics-result.ts b/src/models/original-graphics-result.ts deleted file mode 100644 index b0e9c7b0..00000000 --- a/src/models/original-graphics-result.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * 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 - * - * The version of the OpenAPI document: 7.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { TOriginalRFIDGraphics } from './toriginal-rfidgraphics'; - -/** - * - * @export - * @interface OriginalGraphicsResult - */ -export interface OriginalGraphicsResult { - /** - * Count of array fields - * @type {number} - * @memberof OriginalGraphicsResult - */ - nFields?: number; - /** - * - * @type {Array} - * @memberof OriginalGraphicsResult - */ - pArrayFields?: Array; -} - - diff --git a/src/models/original-symbol.ts b/src/models/original-symbol.ts old mode 100755 new mode 100644 diff --git a/src/models/process-param.ts b/src/models/process-param.ts deleted file mode 100755 index f6811fa5..00000000 --- a/src/models/process-param.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { Result } from './result'; -import { Scenario } from './scenario'; - -/** - * - * @export - * @interface ProcessParam - */ -export interface ProcessParam { - /** - * - * @type {Scenario} - * @memberof ProcessParam - */ - scenario: Scenario; - /** - * Types of results to extract. See \'Result\' enum for available options. - * @type {Array} - * @memberof ProcessParam - */ - resultTypeOutput?: Array; -} - - diff --git a/src/models/process-params.ts b/src/models/process-params.ts old mode 100755 new mode 100644 index 232bc9ff..f1e3a025 --- a/src/models/process-params.ts +++ b/src/models/process-params.ts @@ -206,10 +206,17 @@ export interface ProcessParams { */ imageQa?: ImageQA; /** - * When enabled, image quality checks status affects document optical and overall status. Disabled by default. + * When enabled, the image quality check status affects the document optical and overall status. Disabled by default. * @type {boolean} * @memberof ProcessParams */ + strictImageQuality?: boolean; + /** + * Deprecated. Please use strictImageQuality instead. When enabled, image quality checks status affects document optical and overall status. Disabled by default. + * @type {boolean} + * @memberof ProcessParams + * @deprecated + */ respectImageQuality?: boolean; /** * @@ -361,6 +368,12 @@ export interface ProcessParams { * @memberof ProcessParams */ generateNumericCodes?: boolean; + /** + * This parameter if enabled will require all necessary certificates to verify digital signature in barcode data to be present in order for the Barcode format check to succeed. + * @type {boolean} + * @memberof ProcessParams + */ + strictBarcodeDigitalSignatureCheck?: boolean; } diff --git a/src/models/process-request-image-image-data.ts b/src/models/process-request-image-image-data.ts deleted file mode 100755 index 7d3bff7f..00000000 --- a/src/models/process-request-image-image-data.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface ProcessRequestImageImageData - */ -export interface ProcessRequestImageImageData { - /** - * base64 encoded image - * @type {string} - * @memberof ProcessRequestImageImageData - */ - image: string; -} - - diff --git a/src/models/process-request-image.ts b/src/models/process-request-image.ts old mode 100755 new mode 100644 diff --git a/src/models/process-request.ts b/src/models/process-request.ts old mode 100755 new mode 100644 index 7893969c..775c5639 --- a/src/models/process-request.ts +++ b/src/models/process-request.ts @@ -84,6 +84,12 @@ export interface ProcessRequest { * @memberof ProcessRequest */ passBackObject?: { [key: string]: object; }; + /** + * URLs to the document images for processing. + * @type {Array} + * @memberof ProcessRequest + */ + ImageUrls?: Array; } diff --git a/src/models/process-response.ts b/src/models/process-response.ts old mode 100755 new mode 100644 diff --git a/src/models/process-system-info.ts b/src/models/process-system-info.ts old mode 100755 new mode 100644 diff --git a/src/models/processing-status.ts b/src/models/processing-status.ts old mode 100755 new mode 100644 diff --git a/src/models/raw-data-result.ts b/src/models/raw-data-result.ts deleted file mode 100644 index 844ae260..00000000 --- a/src/models/raw-data-result.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * 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 - * - * The version of the OpenAPI document: 7.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { TBinaryData } from './tbinary-data'; - -/** - * - * @export - * @interface RawDataResult - */ -export interface RawDataResult { - /** - * Count of array fields - * @type {number} - * @memberof RawDataResult - */ - nFields?: number; - /** - * - * @type {Array} - * @memberof RawDataResult - */ - pArrayFields?: Array; -} - - diff --git a/src/models/raw-image-container.ts b/src/models/raw-image-container.ts deleted file mode 100755 index 033193b0..00000000 --- a/src/models/raw-image-container.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface RawImageContainer - */ -export interface RawImageContainer { - /** - * - * @type {string} - * @memberof RawImageContainer - */ - format?: string; - /** - * base64 encoded image - * @type {string} - * @memberof RawImageContainer - */ - image?: string; -} - - diff --git a/src/models/raw-image-result-all-of.ts b/src/models/raw-image-result-all-of.ts deleted file mode 100755 index 786e4081..00000000 --- a/src/models/raw-image-result-all-of.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { ImageData } from './image-data'; - -/** - * Returns cropped and rotated image of document. Most of coordinates in other types defined on that image - * @export - * @interface RawImageResultAllOf - */ -export interface RawImageResultAllOf { - /** - * - * @type {ImageData} - * @memberof RawImageResultAllOf - */ - RawImageContainer: ImageData; -} - - diff --git a/src/models/raw-image-result.ts b/src/models/raw-image-result.ts deleted file mode 100755 index ba57aef3..00000000 --- a/src/models/raw-image-result.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { ChosenDocumentTypeResult } from './chosen-document-type-result'; -import { DocumentTypesCandidatesResult } from './document-types-candidates-result'; -import { GraphicsResult } from './graphics-result'; -import { ImageData } from './image-data'; -import { LexicalAnalysisResult } from './lexical-analysis-result'; -import { RawImageResultAllOf } from './raw-image-result-all-of'; -import { ResultItem } from './result-item'; -import { StatusResult } from './status-result'; -import { TextDataResult } from './text-data-result'; -import { TextResult } from './text-result'; - -/** - * @type RawImageResult - * @export - */ -export type RawImageResult = RawImageResultAllOf & ResultItem; - - - diff --git a/src/models/rectangle-coordinates.ts b/src/models/rectangle-coordinates.ts old mode 100755 new mode 100644 diff --git a/src/models/result-item.ts b/src/models/result-item.ts old mode 100755 new mode 100644 diff --git a/src/models/result.ts b/src/models/result.ts old mode 100755 new mode 100644 diff --git a/src/models/rfid-location.ts b/src/models/rfid-location.ts old mode 100755 new mode 100644 diff --git a/src/models/rfid-origin.ts b/src/models/rfid-origin.ts old mode 100755 new mode 100644 diff --git a/src/models/rfid-text-data-result.ts b/src/models/rfid-text-data-result.ts deleted file mode 100755 index 026c2202..00000000 --- a/src/models/rfid-text-data-result.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { BarcodeTextDataResult } from './barcode-text-data-result'; -import { ChosenDocumentTypeResult } from './chosen-document-type-result'; -import { DocVisualExtendedInfo } from './doc-visual-extended-info'; -import { DocumentTypesCandidatesResult } from './document-types-candidates-result'; -import { GraphicsResult } from './graphics-result'; -import { LexicalAnalysisResult } from './lexical-analysis-result'; -import { MrzOcrExtendedResult } from './mrz-ocr-extended-result'; -import { MrzOcrExtendedResultAllOf } from './mrz-ocr-extended-result-all-of'; -import { RawImageResult } from './raw-image-result'; -import { ResultItem } from './result-item'; -import { StatusResult } from './status-result'; -import { TextResult } from './text-result'; -import { VisualOcrExtendedResult } from './visual-ocr-extended-result'; - -/** - * @type RfidTextDataResult - * Text fields extracted from document RFID chip - * @export - */ -export type RfidTextDataResult = MrzOcrExtendedResultAllOf & ResultItem; - - - diff --git a/src/models/scenario.ts b/src/models/scenario.ts old mode 100755 new mode 100644 diff --git a/src/models/source-validity.ts b/src/models/source-validity.ts old mode 100755 new mode 100644 diff --git a/src/models/source.ts b/src/models/source.ts old mode 100755 new mode 100644 diff --git a/src/models/status-result-all-of.ts b/src/models/status-result-all-of.ts old mode 100755 new mode 100644 diff --git a/src/models/status-result.ts b/src/models/status-result.ts old mode 100755 new mode 100644 diff --git a/src/models/status.ts b/src/models/status.ts old mode 100755 new mode 100644 diff --git a/src/models/string-recognition-result.ts b/src/models/string-recognition-result.ts old mode 100755 new mode 100644 diff --git a/src/models/symbol-candidate.ts b/src/models/symbol-candidate.ts old mode 100755 new mode 100644 diff --git a/src/models/symbol-recognition-result.ts b/src/models/symbol-recognition-result.ts old mode 100755 new mode 100644 diff --git a/src/models/text-available-source.ts b/src/models/text-available-source.ts old mode 100755 new mode 100644 diff --git a/src/models/text-data-result-all-of.ts b/src/models/text-data-result-all-of.ts old mode 100755 new mode 100644 diff --git a/src/models/text-data-result.ts b/src/models/text-data-result.ts old mode 100755 new mode 100644 diff --git a/src/models/text-field-type.ts b/src/models/text-field-type.ts old mode 100755 new mode 100644 diff --git a/src/models/text-field-value.ts b/src/models/text-field-value.ts old mode 100755 new mode 100644 diff --git a/src/models/text-field.ts b/src/models/text-field.ts old mode 100755 new mode 100644 diff --git a/src/models/text-result-all-of.ts b/src/models/text-result-all-of.ts old mode 100755 new mode 100644 diff --git a/src/models/text-result.ts b/src/models/text-result.ts old mode 100755 new mode 100644 diff --git a/src/models/text.ts b/src/models/text.ts old mode 100755 new mode 100644 diff --git a/src/models/tfdsidlist.ts b/src/models/tfdsidlist.ts deleted file mode 100755 index 4e0f0fe9..00000000 --- a/src/models/tfdsidlist.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { DocumentFormat } from './document-format'; -import { DocumentType } from './document-type'; - -/** - * Extended document type info and Regula\'s \'Information Reference Systems\' links - * @export - * @interface TFDSIDList - */ -export interface TFDSIDList { - /** - * ICAO code of the issuing country - * @type {string} - * @memberof TFDSIDList - */ - ICAO?: string; - /** - * Document identifiers in \'Information Reference Systems\' - * @type {Array} - * @memberof TFDSIDList - */ - List?: Array; - /** - * - * @type {DocumentType} - * @memberof TFDSIDList - */ - dType?: DocumentType; - /** - * - * @type {DocumentFormat} - * @memberof TFDSIDList - */ - dFormat?: DocumentFormat; - /** - * Flag indicating the presence of MRZ on the document - * @type {boolean} - * @memberof TFDSIDList - */ - dMRZ?: boolean; - /** - * Document description - * @type {string} - * @memberof TFDSIDList - */ - dDescription?: string; - /** - * Year of publication of the document - * @type {string} - * @memberof TFDSIDList - */ - dYear?: string; - /** - * Issuing country name - * @type {string} - * @memberof TFDSIDList - */ - dCountryName?: string; - /** - * Issuing state code - * @type {string} - * @memberof TFDSIDList - */ - dStateCode?: string; - /** - * Issuing state name - * @type {string} - * @memberof TFDSIDList - */ - dStateName?: string; -} - - diff --git a/src/models/toriginal-rfidgraphics.ts b/src/models/toriginal-rfidgraphics.ts deleted file mode 100644 index efbf1190..00000000 --- a/src/models/toriginal-rfidgraphics.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * 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 - * - * The version of the OpenAPI document: 7.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -/** - * - * @export - * @interface TOriginalRFIDGraphics - */ -export interface TOriginalRFIDGraphics { - /** - * - * @type {number} - * @memberof TOriginalRFIDGraphics - */ - FieldType?: number; - /** - * - * @type {number} - * @memberof TOriginalRFIDGraphics - */ - GraphicsType?: number; - /** - * - * @type {number} - * @memberof TOriginalRFIDGraphics - */ - RFID_OriginDG?: number; - /** - * - * @type {number} - * @memberof TOriginalRFIDGraphics - */ - RFID_OriginDGTag?: number; - /** - * - * @type {number} - * @memberof TOriginalRFIDGraphics - */ - RFID_OriginTagEntry?: number; - /** - * - * @type {number} - * @memberof TOriginalRFIDGraphics - */ - RFID_OriginEntryView?: number; - /** - * - * @type {number} - * @memberof TOriginalRFIDGraphics - */ - Buf_Length?: number; - /** - * - * @type {string} - * @memberof TOriginalRFIDGraphics - */ - Buffer?: string; -} - - diff --git a/src/models/transaction-images-field-value.ts b/src/models/transaction-images-field-value.ts deleted file mode 100644 index 1137cfa2..00000000 --- a/src/models/transaction-images-field-value.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * 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 - * - * The version of the OpenAPI document: 7.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { GraphicFieldType } from './graphic-field-type'; -import { Light } from './light'; - -/** - * - * @export - * @interface TransactionImagesFieldValue - */ -export interface TransactionImagesFieldValue { - /** - * - * @type {GraphicFieldType} - * @memberof TransactionImagesFieldValue - */ - fieldType?: GraphicFieldType; - /** - * - * @type {Light} - * @memberof TransactionImagesFieldValue - */ - light?: Light; - /** - * - * @type {number} - * @memberof TransactionImagesFieldValue - */ - listIdx?: number; - /** - * Page index of the image from input list - * @type {number} - * @memberof TransactionImagesFieldValue - */ - pageIdx?: number; - /** - * Image url - * @type {string} - * @memberof TransactionImagesFieldValue - */ - url?: string; -} - - diff --git a/src/models/transaction-info.ts b/src/models/transaction-info.ts old mode 100755 new mode 100644 diff --git a/src/models/transaction-process-get-response.ts b/src/models/transaction-process-get-response.ts index c383b095..5fae18e4 100644 --- a/src/models/transaction-process-get-response.ts +++ b/src/models/transaction-process-get-response.ts @@ -24,10 +24,10 @@ import { OutData } from './out-data'; export interface TransactionProcessGetResponse { /** * - * @type {number} + * @type {string} * @memberof TransactionProcessGetResponse */ - transactionId?: number; + transactionId?: string; /** * * @type {string} diff --git a/src/models/transaction-scenario-request.ts b/src/models/transaction-scenario-request.ts deleted file mode 100644 index 3f429333..00000000 --- a/src/models/transaction-scenario-request.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * 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 - * - * The version of the OpenAPI document: 7.2.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { Scenario } from './scenario'; - -/** - * - * @export - * @interface TransactionScenarioRequest - */ -export interface TransactionScenarioRequest { - /** - * - * @type {Scenario} - * @memberof TransactionScenarioRequest - */ - scenario?: Scenario; -} - - diff --git a/src/models/verification-result.ts b/src/models/verification-result.ts old mode 100755 new mode 100644 diff --git a/src/models/verified-field-map.ts b/src/models/verified-field-map.ts old mode 100755 new mode 100644 diff --git a/src/models/visual-ocr-extended-result.ts b/src/models/visual-ocr-extended-result.ts deleted file mode 100755 index 1edff533..00000000 --- a/src/models/visual-ocr-extended-result.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Regula Document Reader Web API - * Regula Document Reader Web API - * - * The version of the OpenAPI document: 5.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { BarcodeTextDataResult } from './barcode-text-data-result'; -import { ChosenDocumentTypeResult } from './chosen-document-type-result'; -import { DocVisualExtendedInfo } from './doc-visual-extended-info'; -import { DocumentTypesCandidatesResult } from './document-types-candidates-result'; -import { GraphicsResult } from './graphics-result'; -import { LexicalAnalysisResult } from './lexical-analysis-result'; -import { MrzOcrExtendedResult } from './mrz-ocr-extended-result'; -import { MrzOcrExtendedResultAllOf } from './mrz-ocr-extended-result-all-of'; -import { RawImageResult } from './raw-image-result'; -import { ResultItem } from './result-item'; -import { RfidTextDataResult } from './rfid-text-data-result'; -import { StatusResult } from './status-result'; -import { TextResult } from './text-result'; - -/** - * @type VisualOcrExtendedResult - * Text fields from document OCR with symbol probabilities - * @export - */ -export type VisualOcrExtendedResult = MrzOcrExtendedResultAllOf & ResultItem; - - - diff --git a/update-models.sh b/update-models.sh index 530c7ec5..5c559323 100755 --- a/update-models.sh +++ b/update-models.sh @@ -2,35 +2,57 @@ DOCS_DEFINITION_FOLDER="${PWD}/../DocumentReader-web-openapi" \ \ -&& docker run --user "$(id -u):$(id -g)" --rm -v "${PWD}:/client" -v "$DOCS_DEFINITION_FOLDER:/definitions" \ +&& docker run --user "$(id -u):$(id -g)" --rm \ +-v "${PWD}:/client" \ +-v "$DOCS_DEFINITION_FOLDER:/definitions" \ openapitools/openapi-generator-cli:v5.0.0 generate -g typescript-axios \ --i /definitions/index.yml -o /client/src -c /client/ts-generator-config.json \ +-i /definitions/index.yml \ +-o /client/src \ +-c /client/ts-generator-config.json \ -t /client/generator-templates/ || exit 1 -sed -i '/import { TextResult } /d' ./src/models/text-result.ts -sed -i '/import { TextDataResult } /d' ./src/models/text-data-result.ts -sed -i '/import { StatusResult } /d' ./src/models/status-result.ts -sed -i '/import { SecurityFeatureResult } /d' ./src/models/security-feature-result.ts -sed -i '/import { PhotoIdentResult } /d' ./src/models/photo-ident-result.ts -sed -i '/import { OCRSecurityTextResult } /d' ./src/models/ocrsecurity-text-result.ts -sed -i '/import { LexicalAnalysisResult } /d' ./src/models/lexical-analysis-result.ts -sed -i '/import { ImagesResult } /d' ./src/models/images-result.ts -sed -i '/import { IdentResult } /d' ./src/models/ident-result.ts -sed -i '/import { GraphicsResult } /d' ./src/models/graphics-result.ts -sed -i '/import { FiberResult } /d' ./src/models/fiber-result.ts -sed -i '/import { DocumentTypesCandidatesResult } /d' ./src/models/document-types-candidates-result.ts -sed -i '/import { DocumentImageResult } /d' ./src/models/document-image-result.ts -sed -i '/import { ChosenDocumentTypeResult } /d' ./src/models/chosen-document-type-result.ts -sed -i '/import { AuthenticityResult } /d' ./src/models/authenticity-result.ts -sed -i '/import { ImageQualityResult } /d' ./src/models/image-quality-result.ts -sed -i '/import { DocumentPositionResult } /d' ./src/models/document-position-result.ts -sed -i '/import { DocBarCodeInfo } /d' ./src/models/doc-bar-code-info.ts -sed -i '/import { EncryptedRCLResult } /d' ./src/models/encrypted-rclresult.ts -sed -i '/import { LicenseResult } /d' ./src/models/license-result.ts - -sed -i "s+from '../models'+from '../models.js'+g" ./src/api/default-api.ts -sed -i "s+from '../base'+from '../base.js'+g" ./src/api/default-api.ts -sed -i "s+from '../base'+from '../base.js'+g" ./src/api/process-api.ts -sed -i "s+from '../models'+from '../models.js'+g" ./src/api/process-api.ts +if [ "$(uname)" = "Darwin" ]; then + sed -i '' '/import { TextResult } /d' ./src/models/text-result.ts + sed -i '' '/import { AuthenticityResult } /d' ./src/models/authenticity-result.ts + sed -i '' '/import { ChosenDocumentTypeResult } /d' ./src/models/chosen-document-type-result.ts + sed -i '' '/import { DocBarCodeInfo } /d' ./src/models/doc-bar-code-info.ts + sed -i '' '/import { DocumentImageResult } /d' ./src/models/document-image-result.ts + sed -i '' '/import { DocumentPositionResult } /d' ./src/models/document-position-result.ts + sed -i '' '/import { DocumentTypesCandidatesResult } /d' ./src/models/document-types-candidates-result.ts + sed -i '' '/import { EncryptedRCLResult } /d' ./src/models/encrypted-rclresult.ts + sed -i '' '/import { GraphicsResult } /d' ./src/models/graphics-result.ts + sed -i '' '/import { ImageQualityResult } /d' ./src/models/image-quality-result.ts + sed -i '' '/import { ImagesResult } /d' ./src/models/images-result.ts + sed -i '' '/import { LexicalAnalysisResult } /d' ./src/models/lexical-analysis-result.ts + sed -i '' '/import { LicenseResult } /d' ./src/models/license-result.ts + sed -i '' '/import { StatusResult } /d' ./src/models/status-result.ts + sed -i '' '/import { TextDataResult } /d' ./src/models/text-data-result.ts + sed -i '' '/import { FiberResult } /d' ./src/models/fiber-result.ts + sed -i '' '/import { IdentResult } /d' ./src/models/ident-result.ts + sed -i '' '/import { OCRSecurityTextResult } /d' ./src/models/ocrsecurity-text-result.ts + sed -i '' '/import { PhotoIdentResult } /d' ./src/models/photo-ident-result.ts + sed -i '' '/import { SecurityFeatureResult } /d' ./src/models/security-feature-result.ts +else + sed -i '/import { TextResult } /d' ./src/models/text-result.ts + sed -i '/import { AuthenticityResult } /d' ./src/models/authenticity-result.ts + sed -i '/import { ChosenDocumentTypeResult } /d' ./src/models/chosen-document-type-result.ts + sed -i '/import { DocBarCodeInfo } /d' ./src/models/doc-bar-code-info.ts + sed -i '/import { DocumentImageResult } /d' ./src/models/document-image-result.ts + sed -i '/import { DocumentPositionResult } /d' ./src/models/document-position-result.ts + sed -i '/import { DocumentTypesCandidatesResult } /d' ./src/models/document-types-candidates-result.ts + sed -i '/import { EncryptedRCLResult } /d' ./src/models/encrypted-rclresult.ts + sed -i '/import { GraphicsResult } /d' ./src/models/graphics-result.ts + sed -i '/import { ImageQualityResult } /d' ./src/models/image-quality-result.ts + sed -i '/import { ImagesResult } /d' ./src/models/images-result.ts + sed -i '/import { LexicalAnalysisResult } /d' ./src/models/lexical-analysis-result.ts + sed -i '/import { LicenseResult } /d' ./src/models/license-result.ts + sed -i '/import { StatusResult } /d' ./src/models/status-result.ts + sed -i '/import { TextDataResult } /d' ./src/models/text-data-result.ts + sed -i '/import { FiberResult } /d' ./src/models/fiber-result.ts + sed -i '/import { IdentResult } /d' ./src/models/ident-result.ts + sed -i '/import { OCRSecurityTextResult } /d' ./src/models/ocrsecurity-text-result.ts + sed -i '/import { PhotoIdentResult } /d' ./src/models/photo-ident-result.ts + sed -i '/import { SecurityFeatureResult } /d' ./src/models/security-feature-result.ts +fi npm run format || exit 0