@onfido/api 4.6.0 → 5.0.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/README.md +1 -1
- package/dist/api.d.ts +135 -179
- package/dist/api.js +88 -38
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +135 -179
- package/dist/esm/api.js +86 -36
- package/dist/esm/configuration.js +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WorkflowRunStatus = exports.WorkflowRunLinkLanguageEnum = exports.WebhookEventType = exports.WebhookEventResourceType = exports.WebhookEventObjectStatus = exports.WatchlistMonitorSharedReportNameEnum = exports.WatchlistMonitorBuilderReportNameEnum = exports.WatchlistMonitorReportNameEnum = exports.UsDrivingLicenceSharedGenderEnum = exports.UsDrivingLicenceSharedEyeColorCodeEnum = exports.UsDrivingLicenceSharedDocumentCategoryEnum = exports.UsDrivingLicenceBuilderGenderEnum = exports.UsDrivingLicenceBuilderEyeColorCodeEnum = exports.UsDrivingLicenceBuilderDocumentCategoryEnum = exports.ResultsFeedbackExpectedResultEnum = exports.ReportSubResult = exports.ReportStatus = exports.ReportResult = exports.ReportName = exports.RepeatAttemptsListRepeatAttemptsInnerResultEnum = exports.RepeatAttemptsListRepeatAttemptsInnerNamesEnum = exports.RepeatAttemptsListRepeatAttemptsInnerDateOfBirthEnum = exports.ProofOfAddressPropertiesDocumentTypeEnum = exports.IdNumberTypeEnum = exports.ExtractionExtractedDataGenderEnum = exports.ExtractionDocumentClassificationSubtypeEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesHasIssuanceConfirmationEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentTypes = exports.DocumentSharedSideEnum = exports.
|
|
26
|
-
exports.UploadDocumentSideEnum =
|
|
25
|
+
exports.ListWorkflowRunsSortEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WorkflowRunStatus = exports.WorkflowRunLinkLanguageEnum = exports.WebhookEventType = exports.WebhookEventResourceType = exports.WebhookEventObjectStatus = exports.WatchlistMonitorSharedReportNameEnum = exports.WatchlistMonitorBuilderReportNameEnum = exports.WatchlistMonitorReportNameEnum = exports.UsDrivingLicenceSharedGenderEnum = exports.UsDrivingLicenceSharedEyeColorCodeEnum = exports.UsDrivingLicenceSharedDocumentCategoryEnum = exports.UsDrivingLicenceBuilderGenderEnum = exports.UsDrivingLicenceBuilderEyeColorCodeEnum = exports.UsDrivingLicenceBuilderDocumentCategoryEnum = exports.ResultsFeedbackExpectedResultEnum = exports.ReportSubResult = exports.ReportStatus = exports.ReportResult = exports.ReportName = exports.RepeatAttemptsListRepeatAttemptsInnerResultEnum = exports.RepeatAttemptsListRepeatAttemptsInnerNamesEnum = exports.RepeatAttemptsListRepeatAttemptsInnerDateOfBirthEnum = exports.ProofOfAddressPropertiesDocumentTypeEnum = exports.IdNumberTypeEnum = exports.ExtractionExtractedDataGenderEnum = exports.ExtractionDocumentClassificationSubtypeEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesHasIssuanceConfirmationEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentTypes = exports.DocumentSharedSideEnum = exports.DocumentPropertiesSecurityTierEnum = exports.DocumentPropertiesHasIssuanceConfirmationEnum = exports.DocumentPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentSideEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceDocumentCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceIpReputationEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceAuthenticationTypeEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceSdkSourceEnum = exports.CountryCodes = exports.CheckStatus = exports.CheckResponseResultEnum = exports.CheckResultEnum = exports.ApplicantConsentName = void 0;
|
|
26
|
+
exports.UploadDocumentSideEnum = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// URLSearchParams not necessarily used
|
|
29
29
|
// @ts-ignore
|
|
@@ -372,13 +372,6 @@ exports.DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = {
|
|
|
372
372
|
UnknownMethod: 'unknown_method',
|
|
373
373
|
UnknownDefaultOpenApi: '11184809'
|
|
374
374
|
};
|
|
375
|
-
exports.DocumentFileTypeEnum = {
|
|
376
|
-
Jpg: 'jpg',
|
|
377
|
-
Jpeg: 'jpeg',
|
|
378
|
-
Png: 'png',
|
|
379
|
-
Pdf: 'pdf',
|
|
380
|
-
UnknownDefaultOpenApi: '11184809'
|
|
381
|
-
};
|
|
382
375
|
exports.DocumentSideEnum = {
|
|
383
376
|
Front: 'front',
|
|
384
377
|
Back: 'back',
|
|
@@ -408,13 +401,6 @@ exports.DocumentPropertiesSecurityTierEnum = {
|
|
|
408
401
|
UnspecifiedSecurityTier: 'unspecified_security_tier',
|
|
409
402
|
UnknownDefaultOpenApi: '11184809'
|
|
410
403
|
};
|
|
411
|
-
exports.DocumentSharedFileTypeEnum = {
|
|
412
|
-
Jpg: 'jpg',
|
|
413
|
-
Jpeg: 'jpeg',
|
|
414
|
-
Png: 'png',
|
|
415
|
-
Pdf: 'pdf',
|
|
416
|
-
UnknownDefaultOpenApi: '11184809'
|
|
417
|
-
};
|
|
418
404
|
exports.DocumentSharedSideEnum = {
|
|
419
405
|
Front: 'front',
|
|
420
406
|
Back: 'back',
|
|
@@ -777,7 +763,6 @@ exports.WebhookEventType = {
|
|
|
777
763
|
ReportAwaitingApproval: 'report.awaiting_approval',
|
|
778
764
|
ReportCompleted: 'report.completed',
|
|
779
765
|
WorkflowTimelineFileCreated: 'workflow_timeline_file.created',
|
|
780
|
-
WorkflowSignedEvidenceFileCreated: 'workflow_signed_evidence_file.created',
|
|
781
766
|
WorkflowRunEvidenceFolderCreated: 'workflow_run_evidence_folder.created',
|
|
782
767
|
UnknownDefaultOpenApi: '11184809'
|
|
783
768
|
};
|
|
@@ -1478,6 +1463,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1478
1463
|
options: localVarRequestOptions,
|
|
1479
1464
|
};
|
|
1480
1465
|
}),
|
|
1466
|
+
/**
|
|
1467
|
+
* Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
|
|
1468
|
+
* @summary Download NFC face
|
|
1469
|
+
* @param {string} documentId
|
|
1470
|
+
* @param {*} [options] Override http request option.
|
|
1471
|
+
* @throws {RequiredError}
|
|
1472
|
+
*/
|
|
1473
|
+
downloadNfcFace: (documentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1474
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
1475
|
+
(0, common_1.assertParamExists)('downloadNfcFace', 'documentId', documentId);
|
|
1476
|
+
const localVarPath = `/documents/{document_id}/nfc_face`
|
|
1477
|
+
.replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));
|
|
1478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1479
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1480
|
+
let baseOptions;
|
|
1481
|
+
if (configuration) {
|
|
1482
|
+
baseOptions = configuration.baseOptions;
|
|
1483
|
+
}
|
|
1484
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1485
|
+
const localVarHeaderParameter = {};
|
|
1486
|
+
const localVarQueryParameter = {};
|
|
1487
|
+
// authentication Token required
|
|
1488
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1489
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1490
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1491
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1492
|
+
return {
|
|
1493
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1494
|
+
options: localVarRequestOptions,
|
|
1495
|
+
};
|
|
1496
|
+
}),
|
|
1481
1497
|
/**
|
|
1482
1498
|
* Retrieves the signed document or application form depending on the file_id provided.
|
|
1483
1499
|
* @summary Retrieves the signed document or application form
|
|
@@ -2522,10 +2538,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2522
2538
|
* @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
|
|
2523
2539
|
* @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
|
|
2524
2540
|
* @param {ListWorkflowRunsSortEnum} [sort] A string with the value \'desc\' or \'asc\' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \'desc\'.
|
|
2541
|
+
* @param {string} [applicantId] the applicant\'s id.
|
|
2525
2542
|
* @param {*} [options] Override http request option.
|
|
2526
2543
|
* @throws {RequiredError}
|
|
2527
2544
|
*/
|
|
2528
|
-
listWorkflowRuns: (page, status, createdAtGt, createdAtLt, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2545
|
+
listWorkflowRuns: (page, status, createdAtGt, createdAtLt, sort, applicantId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2529
2546
|
const localVarPath = `/workflow_runs`;
|
|
2530
2547
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2531
2548
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2557,6 +2574,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2557
2574
|
if (sort !== undefined) {
|
|
2558
2575
|
localVarQueryParameter['sort'] = sort;
|
|
2559
2576
|
}
|
|
2577
|
+
if (applicantId !== undefined) {
|
|
2578
|
+
localVarQueryParameter['applicant_id'] = applicantId;
|
|
2579
|
+
}
|
|
2560
2580
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2561
2581
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2562
2582
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2863,7 +2883,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2863
2883
|
* @param {DocumentTypes} type The type of document
|
|
2864
2884
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
2865
2885
|
* @param {FileTransfer} file The file to be uploaded.
|
|
2866
|
-
* @param {
|
|
2886
|
+
* @param {string} [fileType] The file type of the uploaded file
|
|
2867
2887
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
2868
2888
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
2869
2889
|
* @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
|
|
@@ -3353,6 +3373,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
3353
3373
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3354
3374
|
});
|
|
3355
3375
|
},
|
|
3376
|
+
/**
|
|
3377
|
+
* Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
|
|
3378
|
+
* @summary Download NFC face
|
|
3379
|
+
* @param {string} documentId
|
|
3380
|
+
* @param {*} [options] Override http request option.
|
|
3381
|
+
* @throws {RequiredError}
|
|
3382
|
+
*/
|
|
3383
|
+
downloadNfcFace(documentId, options) {
|
|
3384
|
+
var _a, _b, _c;
|
|
3385
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3386
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadNfcFace(documentId, options);
|
|
3387
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3388
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.downloadNfcFace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3389
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3390
|
+
});
|
|
3391
|
+
},
|
|
3356
3392
|
/**
|
|
3357
3393
|
* Retrieves the signed document or application form depending on the file_id provided.
|
|
3358
3394
|
* @summary Retrieves the signed document or application form
|
|
@@ -3878,13 +3914,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
3878
3914
|
* @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
|
|
3879
3915
|
* @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
|
|
3880
3916
|
* @param {ListWorkflowRunsSortEnum} [sort] A string with the value \'desc\' or \'asc\' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \'desc\'.
|
|
3917
|
+
* @param {string} [applicantId] the applicant\'s id.
|
|
3881
3918
|
* @param {*} [options] Override http request option.
|
|
3882
3919
|
* @throws {RequiredError}
|
|
3883
3920
|
*/
|
|
3884
|
-
listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options) {
|
|
3921
|
+
listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options) {
|
|
3885
3922
|
var _a, _b, _c;
|
|
3886
3923
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3887
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options);
|
|
3924
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options);
|
|
3888
3925
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3889
3926
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.listWorkflowRuns']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3890
3927
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4042,7 +4079,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
4042
4079
|
* @param {DocumentTypes} type The type of document
|
|
4043
4080
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
4044
4081
|
* @param {FileTransfer} file The file to be uploaded.
|
|
4045
|
-
* @param {
|
|
4082
|
+
* @param {string} [fileType] The file type of the uploaded file
|
|
4046
4083
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
4047
4084
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
4048
4085
|
* @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
|
|
@@ -4316,6 +4353,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4316
4353
|
downloadMotionCaptureFrame(motionCaptureId, options) {
|
|
4317
4354
|
return localVarFp.downloadMotionCaptureFrame(motionCaptureId, options).then((request) => request(axios, basePath));
|
|
4318
4355
|
},
|
|
4356
|
+
/**
|
|
4357
|
+
* Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
|
|
4358
|
+
* @summary Download NFC face
|
|
4359
|
+
* @param {string} documentId
|
|
4360
|
+
* @param {*} [options] Override http request option.
|
|
4361
|
+
* @throws {RequiredError}
|
|
4362
|
+
*/
|
|
4363
|
+
downloadNfcFace(documentId, options) {
|
|
4364
|
+
return localVarFp.downloadNfcFace(documentId, options).then((request) => request(axios, basePath));
|
|
4365
|
+
},
|
|
4319
4366
|
/**
|
|
4320
4367
|
* Retrieves the signed document or application form depending on the file_id provided.
|
|
4321
4368
|
* @summary Retrieves the signed document or application form
|
|
@@ -4649,11 +4696,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4649
4696
|
* @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
|
|
4650
4697
|
* @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
|
|
4651
4698
|
* @param {ListWorkflowRunsSortEnum} [sort] A string with the value \'desc\' or \'asc\' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \'desc\'.
|
|
4699
|
+
* @param {string} [applicantId] the applicant\'s id.
|
|
4652
4700
|
* @param {*} [options] Override http request option.
|
|
4653
4701
|
* @throws {RequiredError}
|
|
4654
4702
|
*/
|
|
4655
|
-
listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options) {
|
|
4656
|
-
return localVarFp.listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options).then((request) => request(axios, basePath));
|
|
4703
|
+
listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options) {
|
|
4704
|
+
return localVarFp.listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options).then((request) => request(axios, basePath));
|
|
4657
4705
|
},
|
|
4658
4706
|
/**
|
|
4659
4707
|
* Run a health check on the Onfido API
|
|
@@ -4753,7 +4801,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4753
4801
|
* @param {DocumentTypes} type The type of document
|
|
4754
4802
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
4755
4803
|
* @param {FileTransfer} file The file to be uploaded.
|
|
4756
|
-
* @param {
|
|
4804
|
+
* @param {string} [fileType] The file type of the uploaded file
|
|
4757
4805
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
4758
4806
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
4759
4807
|
* @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
|
|
@@ -5030,6 +5078,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5030
5078
|
downloadMotionCaptureFrame(motionCaptureId, options) {
|
|
5031
5079
|
return (0, exports.DefaultApiFp)(this.configuration).downloadMotionCaptureFrame(motionCaptureId, options).then((request) => request(this.axios, this.basePath));
|
|
5032
5080
|
}
|
|
5081
|
+
/**
|
|
5082
|
+
* Downloads digital photos extracted from specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
|
|
5083
|
+
* @summary Download NFC face
|
|
5084
|
+
* @param {string} documentId
|
|
5085
|
+
* @param {*} [options] Override http request option.
|
|
5086
|
+
* @throws {RequiredError}
|
|
5087
|
+
* @memberof DefaultApi
|
|
5088
|
+
*/
|
|
5089
|
+
downloadNfcFace(documentId, options) {
|
|
5090
|
+
return (0, exports.DefaultApiFp)(this.configuration).downloadNfcFace(documentId, options).then((request) => request(this.axios, this.basePath));
|
|
5091
|
+
}
|
|
5033
5092
|
/**
|
|
5034
5093
|
* Retrieves the signed document or application form depending on the file_id provided.
|
|
5035
5094
|
* @summary Retrieves the signed document or application form
|
|
@@ -5395,12 +5454,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5395
5454
|
* @param {string} [createdAtGt] A ISO-8601 date to filter results with a created date greater than (after) the one provided.
|
|
5396
5455
|
* @param {string} [createdAtLt] A ISO-8601 date to filter results with a created date less than (before) the one provided.
|
|
5397
5456
|
* @param {ListWorkflowRunsSortEnum} [sort] A string with the value \'desc\' or \'asc\' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to \'desc\'.
|
|
5457
|
+
* @param {string} [applicantId] the applicant\'s id.
|
|
5398
5458
|
* @param {*} [options] Override http request option.
|
|
5399
5459
|
* @throws {RequiredError}
|
|
5400
5460
|
* @memberof DefaultApi
|
|
5401
5461
|
*/
|
|
5402
|
-
listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options) {
|
|
5403
|
-
return (0, exports.DefaultApiFp)(this.configuration).listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, options).then((request) => request(this.axios, this.basePath));
|
|
5462
|
+
listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options) {
|
|
5463
|
+
return (0, exports.DefaultApiFp)(this.configuration).listWorkflowRuns(page, status, createdAtGt, createdAtLt, sort, applicantId, options).then((request) => request(this.axios, this.basePath));
|
|
5404
5464
|
}
|
|
5405
5465
|
/**
|
|
5406
5466
|
* Run a health check on the Onfido API
|
|
@@ -5509,7 +5569,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5509
5569
|
* @param {DocumentTypes} type The type of document
|
|
5510
5570
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
5511
5571
|
* @param {FileTransfer} file The file to be uploaded.
|
|
5512
|
-
* @param {
|
|
5572
|
+
* @param {string} [fileType] The file type of the uploaded file
|
|
5513
5573
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
5514
5574
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
5515
5575
|
* @param {boolean} [validateImageQuality] Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
|
|
@@ -5556,16 +5616,6 @@ exports.ListWorkflowRunsSortEnum = {
|
|
|
5556
5616
|
Asc: 'asc',
|
|
5557
5617
|
UnknownDefaultOpenApi: '11184809'
|
|
5558
5618
|
};
|
|
5559
|
-
/**
|
|
5560
|
-
* @export
|
|
5561
|
-
*/
|
|
5562
|
-
exports.UploadDocumentFileTypeEnum = {
|
|
5563
|
-
Jpg: 'jpg',
|
|
5564
|
-
Jpeg: 'jpeg',
|
|
5565
|
-
Png: 'png',
|
|
5566
|
-
Pdf: 'pdf',
|
|
5567
|
-
UnknownDefaultOpenApi: '11184809'
|
|
5568
|
-
};
|
|
5569
5619
|
/**
|
|
5570
5620
|
* @export
|
|
5571
5621
|
*/
|
package/dist/configuration.js
CHANGED
|
@@ -32,7 +32,7 @@ class Configuration {
|
|
|
32
32
|
}
|
|
33
33
|
this.apiKey = 'Token token=' + param.apiToken;
|
|
34
34
|
this.basePath = param.basePath || base_1.BASE_PATH.replace('.eu.', `.${Region[param.region || Region.EU].toLowerCase()}.`);
|
|
35
|
-
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':
|
|
35
|
+
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.0.0" }) });
|
|
36
36
|
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
|
|
37
37
|
}
|
|
38
38
|
/**
|