@onfido/api 5.4.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +192 -71
- package/dist/api.js +29 -2
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +3 -3
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +192 -71
- package/dist/esm/api.js +29 -2
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Onfido API v3.6
|
|
5
|
-
* The Onfido API (v3.6)
|
|
4
|
+
* Onfido Public API v3.6
|
|
5
|
+
* The Onfido Public API (v3.6)
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: v3.6
|
|
8
8
|
*
|
|
@@ -511,9 +511,29 @@ export const DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum
|
|
|
511
511
|
UnknownDefaultOpenApi: '11184809'
|
|
512
512
|
};
|
|
513
513
|
export const ExtractionDocumentClassificationSubtypeEnum = {
|
|
514
|
+
Spe: 'SPE',
|
|
515
|
+
Ali: 'ali',
|
|
516
|
+
Alien: 'alien',
|
|
517
|
+
Com: 'com',
|
|
518
|
+
Commercial: 'commercial',
|
|
519
|
+
Dom: 'dom',
|
|
520
|
+
Domestic: 'domestic',
|
|
514
521
|
Full: 'full',
|
|
515
522
|
NotFull: 'not_full',
|
|
523
|
+
FullDrivingLicence: 'full driving licence',
|
|
524
|
+
HeavyVehicle: 'heavy_vehicle',
|
|
525
|
+
Learner: 'learner',
|
|
526
|
+
MinorU21OrU18: 'minor (u21 or u18)',
|
|
527
|
+
Mot: 'mot',
|
|
528
|
+
Mul: 'mul',
|
|
516
529
|
Provisional: 'provisional',
|
|
530
|
+
ProvisionalDrivingLicence: 'provisional driving licence',
|
|
531
|
+
Ser: 'ser',
|
|
532
|
+
Spe2: 'spe',
|
|
533
|
+
Special: 'special',
|
|
534
|
+
Standard: 'standard',
|
|
535
|
+
Tem: 'tem',
|
|
536
|
+
U21: 'u21',
|
|
517
537
|
UnknownDefaultOpenApi: '11184809'
|
|
518
538
|
};
|
|
519
539
|
export const ExtractionExtractedDataGenderEnum = {
|
|
@@ -546,6 +566,13 @@ export const ProofOfAddressPropertiesDocumentTypeEnum = {
|
|
|
546
566
|
PensionPropertyStatementLetter: 'pension_property_statement_letter',
|
|
547
567
|
IdentityDocumentWithAddress: 'identity_document_with_address',
|
|
548
568
|
ExchangeHouseStatement: 'exchange_house_statement',
|
|
569
|
+
AccommodationTenancyCertificate: 'accommodation_tenancy_certificate',
|
|
570
|
+
AddressCertificate: 'address_certificate',
|
|
571
|
+
ElectricityBill: 'electricity_bill',
|
|
572
|
+
GasBill: 'gas_bill',
|
|
573
|
+
InternetBill: 'internet_bill',
|
|
574
|
+
PhoneBill: 'phone_bill',
|
|
575
|
+
WaterBill: 'water_bill',
|
|
549
576
|
UnknownDefaultOpenApi: '11184809'
|
|
550
577
|
};
|
|
551
578
|
export const RepeatAttemptsListRepeatAttemptsInnerDateOfBirthEnum = {
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Onfido API v3.6
|
|
3
|
-
* The Onfido API (v3.6)
|
|
2
|
+
* Onfido Public API v3.6
|
|
3
|
+
* The Onfido Public API (v3.6)
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v3.6
|
|
6
6
|
*
|
|
@@ -63,4 +63,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/esm/common.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Onfido API v3.6
|
|
5
|
-
* The Onfido API (v3.6)
|
|
4
|
+
* Onfido Public API v3.6
|
|
5
|
+
* The Onfido Public API (v3.6)
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: v3.6
|
|
8
8
|
*
|
|
@@ -29,7 +29,7 @@ export class Configuration {
|
|
|
29
29
|
}
|
|
30
30
|
this.apiKey = 'Token token=' + param.apiToken;
|
|
31
31
|
this.basePath = param.basePath || BASE_PATH.replace('.eu.', `.${Region[param.region || Region.EU].toLowerCase()}.`);
|
|
32
|
-
this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "onfido-node/5.
|
|
32
|
+
this.baseOptions = Object.assign(Object.assign({ timeout: 30000 }, param.baseOptions), { headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "onfido-node/5.6.0" }) });
|
|
33
33
|
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
|
|
34
34
|
}
|
|
35
35
|
/**
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED