Skip to content

Commit c07bdac

Browse files
Merge pull request #152 from regulaforensics/4c3acb3b
update-clients
2 parents 49e9972 + b31eaa8 commit c07bdac

13 files changed

+238
-25
lines changed

src/.openapi-generator/FILES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ models/face-api.ts
5151
models/fdsidlist.ts
5252
models/fiber-result-all-of.ts
5353
models/fiber-result.ts
54+
models/get-transactions-by-tag-response.ts
5455
models/graphic-field-type.ts
5556
models/graphic-field.ts
5657
models/graphic-fields-list.ts
@@ -143,7 +144,6 @@ models/transaction-image.ts
143144
models/transaction-info.ts
144145
models/transaction-process-get-response.ts
145146
models/transaction-process-request.ts
146-
models/transaction-scenario-request.ts
147147
models/verification-result.ts
148148
models/verified-field-map.ts
149149
models/visibility.ts

src/api/transaction-api.ts

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import { Configuration } from '../configuration';
1919
// @ts-ignore
2020
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
2121
// @ts-ignore
22+
import { GetTransactionsByTagResponse } from '../models';
23+
// @ts-ignore
2224
import { InlineResponse200 } from '../models';
2325
// @ts-ignore
2426
import { InlineResponse2001 } from '../models';
@@ -59,6 +61,49 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
5961

6062

6163

64+
const queryParameters = new URLSearchParams(localVarUrlObj.search);
65+
for (const key in localVarQueryParameter) {
66+
queryParameters.set(key, localVarQueryParameter[key]);
67+
}
68+
for (const key in options.query) {
69+
queryParameters.set(key, options.query[key]);
70+
}
71+
localVarUrlObj.search = (new URLSearchParams(queryParameters)).toString();
72+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
73+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
74+
75+
return {
76+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
77+
options: localVarRequestOptions,
78+
};
79+
},
80+
/**
81+
*
82+
* @summary Get transactions by tag
83+
* @param {number} tagId Tag id
84+
* @param {*} [options] Override http request option.
85+
* @throws {RequiredError}
86+
*/
87+
apiV2TagTagIdTransactionsGet: async (tagId: number, options: any = {}): Promise<RequestArgs> => {
88+
// verify required parameter 'tagId' is not null or undefined
89+
if (tagId === null || tagId === undefined) {
90+
throw new RequiredError('tagId','Required parameter tagId was null or undefined when calling apiV2TagTagIdTransactionsGet.');
91+
}
92+
const localVarPath = `/api/v2/tag/{tagId}/transactions`
93+
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
94+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
95+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
96+
let baseOptions;
97+
if (configuration) {
98+
baseOptions = configuration.baseOptions;
99+
}
100+
101+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
102+
const localVarHeaderParameter = {} as any;
103+
const localVarQueryParameter = {} as any;
104+
105+
106+
62107
const queryParameters = new URLSearchParams(localVarUrlObj.search);
63108
for (const key in localVarQueryParameter) {
64109
queryParameters.set(key, localVarQueryParameter[key]);
@@ -298,6 +343,20 @@ export const TransactionApiFp = function(configuration?: Configuration) {
298343
return axios.request(axiosRequestArgs);
299344
};
300345
},
346+
/**
347+
*
348+
* @summary Get transactions by tag
349+
* @param {number} tagId Tag id
350+
* @param {*} [options] Override http request option.
351+
* @throws {RequiredError}
352+
*/
353+
async apiV2TagTagIdTransactionsGet(tagId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GetTransactionsByTagResponse>>> {
354+
const localVarAxiosArgs = await TransactionApiAxiosParamCreator(configuration).apiV2TagTagIdTransactionsGet(tagId, options);
355+
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
356+
const axiosRequestArgs = {...localVarAxiosArgs.options, url: (configuration?.basePath || basePath) + localVarAxiosArgs.url};
357+
return axios.request(axiosRequestArgs);
358+
};
359+
},
301360
/**
302361
*
303362
* @summary Get Reprocess transaction file
@@ -376,6 +435,16 @@ export const TransactionApiFactory = function (configuration?: Configuration, ba
376435
apiV2TagTagIdDelete(tagId: number, options?: any): AxiosPromise<object> {
377436
return TransactionApiFp(configuration).apiV2TagTagIdDelete(tagId, options).then((request) => request(axios, basePath));
378437
},
438+
/**
439+
*
440+
* @summary Get transactions by tag
441+
* @param {number} tagId Tag id
442+
* @param {*} [options] Override http request option.
443+
* @throws {RequiredError}
444+
*/
445+
apiV2TagTagIdTransactionsGet(tagId: number, options?: any): AxiosPromise<Array<GetTransactionsByTagResponse>> {
446+
return TransactionApiFp(configuration).apiV2TagTagIdTransactionsGet(tagId, options).then((request) => request(axios, basePath));
447+
},
379448
/**
380449
*
381450
* @summary Get Reprocess transaction file
@@ -441,6 +510,18 @@ export class TransactionApi extends BaseAPI {
441510
return TransactionApiFp(this.configuration).apiV2TagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath));
442511
}
443512

513+
/**
514+
*
515+
* @summary Get transactions by tag
516+
* @param {number} tagId Tag id
517+
* @param {*} [options] Override http request option.
518+
* @throws {RequiredError}
519+
* @memberof TransactionApi
520+
*/
521+
public apiV2TagTagIdTransactionsGet(tagId: number, options?: any) {
522+
return TransactionApiFp(this.configuration).apiV2TagTagIdTransactionsGet(tagId, options).then((request) => request(this.axios, this.basePath));
523+
}
524+
444525
/**
445526
*
446527
* @summary Get Reprocess transaction file

src/models/authenticity-result-type.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ export enum AuthenticityResultType {
103103
/**
104104
* Extended MRZ check
105105
*/
106-
EXTENDED_MRZ_CHECK = 8388608
106+
EXTENDED_MRZ_CHECK = 8388608,
107+
/**
108+
* Encrypted IPI
109+
*/
110+
ENCRYPTED_IPI = 16777216
107111
}
108112

109113

src/models/check-diagnose.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export enum CheckDiagnose {
6060
UV_DULL_PAPER_ERROR = 54,
6161
FALSE_LUMINESCENCE_IN_BLANK = 55,
6262
BAD_AREA_IN_AXIAL = 60,
63-
FALSE_IP_PARAMETERS = 65,
63+
FALSE_IPI_PARAMETERS = 65,
64+
ENCRYPTED_IPI_NOT_FOUND = 66,
65+
ENCRYPTED_IPI_DATA_DONT_MATCH = 67,
6466
FIELD_POS_CORRECTOR_HIGHLIGHT_IR = 80,
6567
FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA = 81,
6668
FIELD_POS_CORRECTOR_PHOTO_REPLACED = 82,
@@ -138,7 +140,7 @@ export enum CheckDiagnose {
138140
CHD_ICAO_IDB_SIGNATURE_MUST_BE_PRESENT = 246,
139141
CHD_ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT = 247,
140142
CHD_ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT = 248,
141-
LAST_DIAGNOSE_VALUE = 250
143+
CHD_INCORRECT_OBJECT_COLOR = 250
142144
}
143145

144146

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Regula Document Reader Web API
5+
* 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
6+
*
7+
* The version of the OpenAPI document: 7.2.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
17+
/**
18+
*
19+
* @export
20+
* @interface GetTransactionsByTagResponse
21+
*/
22+
export interface GetTransactionsByTagResponse {
23+
/**
24+
* Transaction id
25+
* @type {number}
26+
* @memberof GetTransactionsByTagResponse
27+
*/
28+
id?: number;
29+
/**
30+
* Transaction status
31+
* @type {number}
32+
* @memberof GetTransactionsByTagResponse
33+
*/
34+
state?: number;
35+
/**
36+
* Last time updated
37+
* @type {string}
38+
* @memberof GetTransactionsByTagResponse
39+
*/
40+
updatedAt?: string;
41+
}
42+
43+

src/models/image-qa.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ export interface ImageQA {
5656
* @memberof ImageQA
5757
*/
5858
colornessCheck?: boolean;
59-
/**
60-
* This option enables screen capture (moire patterns) check while performing image quality validation.
61-
* @type {boolean}
62-
* @memberof ImageQA
63-
*/
64-
moireCheck?: boolean;
6559
/**
6660
* This parameter specifies the necessary margin. Default 0.
6761
* @type {number}

src/models/image-quality-check-type.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ export enum ImageQualityCheckType {
4545
*/
4646
Bounds = 5,
4747
/**
48-
* Signals if an image is captured from screen
49-
*/
50-
ScreenCapture = 6,
51-
/**
5248
* Signals if the portrait is present
5349
*/
5450
Portrait = 7,

src/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export * from './face-api';
4646
export * from './face-api-search';
4747
export * from './fiber-result';
4848
export * from './fiber-result-all-of';
49+
export * from './get-transactions-by-tag-response';
4950
export * from './graphic-field';
5051
export * from './graphic-field-type';
5152
export * from './graphic-fields-list';
@@ -137,7 +138,6 @@ export * from './transaction-image';
137138
export * from './transaction-info';
138139
export * from './transaction-process-get-response';
139140
export * from './transaction-process-request';
140-
export * from './transaction-scenario-request';
141141
export * from './verification-result';
142142
export * from './verified-field-map';
143143
export * from './visibility';

src/models/process-params.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,12 @@ export interface ProcessParams {
355355
* @memberof ProcessParams
356356
*/
357357
mrzDetectMode?: MrzDetectModeEnum;
358+
/**
359+
* This parameter is used to generate numeric representation for issuing state and nationality codes
360+
* @type {boolean}
361+
* @memberof ProcessParams
362+
*/
363+
generateNumericCodes?: boolean;
358364
}
359365

360366

src/models/process-request.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ import { ProcessSystemInfo } from './process-system-info';
2424
* @interface ProcessRequest
2525
*/
2626
export interface ProcessRequest {
27-
/**
28-
* session id
29-
* @type {string}
30-
* @memberof ProcessRequest
31-
*/
32-
tag?: string;
3327
/**
3428
*
3529
* @type {ProcessParams}
@@ -42,6 +36,24 @@ export interface ProcessRequest {
4236
* @memberof ProcessRequest
4337
*/
4438
List?: Array<ProcessRequestImage>;
39+
/**
40+
* Session ID
41+
* @type {string}
42+
* @memberof ProcessRequest
43+
*/
44+
tag?: string;
45+
/**
46+
* Customer name
47+
* @type {string}
48+
* @memberof ProcessRequest
49+
*/
50+
tenant?: string;
51+
/**
52+
* Environment type
53+
* @type {string}
54+
* @memberof ProcessRequest
55+
*/
56+
env?: string;
4557
/**
4658
* Live portrait photo
4759
* @type {string}

0 commit comments

Comments
 (0)