@onfido/api 5.3.0 → 5.5.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 +195 -70
- package/dist/api.js +81 -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 +195 -70
- package/dist/esm/api.js +81 -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/api.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Onfido API v3.6
|
|
6
|
-
* The Onfido API (v3.6)
|
|
5
|
+
* Onfido Public API v3.6
|
|
6
|
+
* The Onfido Public API (v3.6)
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: v3.6
|
|
9
9
|
*
|
|
@@ -1158,6 +1158,45 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1158
1158
|
options: localVarRequestOptions,
|
|
1159
1159
|
};
|
|
1160
1160
|
}),
|
|
1161
|
+
/**
|
|
1162
|
+
* Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
1163
|
+
* @summary Retrieves the signed document or signing transaction receipt
|
|
1164
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
1165
|
+
* @param {string} id The unique identifier of the file which you want to retrieve.
|
|
1166
|
+
* @param {*} [options] Override http request option.
|
|
1167
|
+
* @throws {RequiredError}
|
|
1168
|
+
*/
|
|
1169
|
+
downloadAesDocument: (workflowRunId, id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1170
|
+
// verify required parameter 'workflowRunId' is not null or undefined
|
|
1171
|
+
(0, common_1.assertParamExists)('downloadAesDocument', 'workflowRunId', workflowRunId);
|
|
1172
|
+
// verify required parameter 'id' is not null or undefined
|
|
1173
|
+
(0, common_1.assertParamExists)('downloadAesDocument', 'id', id);
|
|
1174
|
+
const localVarPath = `/advanced_electronic_signature/documents`;
|
|
1175
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1176
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1177
|
+
let baseOptions;
|
|
1178
|
+
if (configuration) {
|
|
1179
|
+
baseOptions = configuration.baseOptions;
|
|
1180
|
+
}
|
|
1181
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1182
|
+
const localVarHeaderParameter = {};
|
|
1183
|
+
const localVarQueryParameter = {};
|
|
1184
|
+
// authentication Token required
|
|
1185
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1186
|
+
if (workflowRunId !== undefined) {
|
|
1187
|
+
localVarQueryParameter['workflow_run_id'] = workflowRunId;
|
|
1188
|
+
}
|
|
1189
|
+
if (id !== undefined) {
|
|
1190
|
+
localVarQueryParameter['id'] = id;
|
|
1191
|
+
}
|
|
1192
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1193
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1194
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1195
|
+
return {
|
|
1196
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1197
|
+
options: localVarRequestOptions,
|
|
1198
|
+
};
|
|
1199
|
+
}),
|
|
1161
1200
|
/**
|
|
1162
1201
|
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
|
|
1163
1202
|
* @summary Download check
|
|
@@ -3249,6 +3288,23 @@ const DefaultApiFp = function (configuration) {
|
|
|
3249
3288
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3250
3289
|
});
|
|
3251
3290
|
},
|
|
3291
|
+
/**
|
|
3292
|
+
* Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
3293
|
+
* @summary Retrieves the signed document or signing transaction receipt
|
|
3294
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
3295
|
+
* @param {string} id The unique identifier of the file which you want to retrieve.
|
|
3296
|
+
* @param {*} [options] Override http request option.
|
|
3297
|
+
* @throws {RequiredError}
|
|
3298
|
+
*/
|
|
3299
|
+
downloadAesDocument(workflowRunId, id, options) {
|
|
3300
|
+
var _a, _b, _c;
|
|
3301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3302
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadAesDocument(workflowRunId, id, options);
|
|
3303
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3304
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.downloadAesDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3305
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3306
|
+
});
|
|
3307
|
+
},
|
|
3252
3308
|
/**
|
|
3253
3309
|
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
|
|
3254
3310
|
* @summary Download check
|
|
@@ -4305,6 +4361,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4305
4361
|
deleteWebhook(webhookId, options) {
|
|
4306
4362
|
return localVarFp.deleteWebhook(webhookId, options).then((request) => request(axios, basePath));
|
|
4307
4363
|
},
|
|
4364
|
+
/**
|
|
4365
|
+
* Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
4366
|
+
* @summary Retrieves the signed document or signing transaction receipt
|
|
4367
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
4368
|
+
* @param {string} id The unique identifier of the file which you want to retrieve.
|
|
4369
|
+
* @param {*} [options] Override http request option.
|
|
4370
|
+
* @throws {RequiredError}
|
|
4371
|
+
*/
|
|
4372
|
+
downloadAesDocument(workflowRunId, id, options) {
|
|
4373
|
+
return localVarFp.downloadAesDocument(workflowRunId, id, options).then((request) => request(axios, basePath));
|
|
4374
|
+
},
|
|
4308
4375
|
/**
|
|
4309
4376
|
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
|
|
4310
4377
|
* @summary Download check
|
|
@@ -5030,6 +5097,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5030
5097
|
deleteWebhook(webhookId, options) {
|
|
5031
5098
|
return (0, exports.DefaultApiFp)(this.configuration).deleteWebhook(webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
5032
5099
|
}
|
|
5100
|
+
/**
|
|
5101
|
+
* Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
5102
|
+
* @summary Retrieves the signed document or signing transaction receipt
|
|
5103
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
5104
|
+
* @param {string} id The unique identifier of the file which you want to retrieve.
|
|
5105
|
+
* @param {*} [options] Override http request option.
|
|
5106
|
+
* @throws {RequiredError}
|
|
5107
|
+
* @memberof DefaultApi
|
|
5108
|
+
*/
|
|
5109
|
+
downloadAesDocument(workflowRunId, id, options) {
|
|
5110
|
+
return (0, exports.DefaultApiFp)(this.configuration).downloadAesDocument(workflowRunId, id, options).then((request) => request(this.axios, this.basePath));
|
|
5111
|
+
}
|
|
5033
5112
|
/**
|
|
5034
5113
|
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
|
|
5035
5114
|
* @summary Download check
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/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/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Onfido API v3.6
|
|
6
|
-
* The Onfido API (v3.6)
|
|
5
|
+
* Onfido Public API v3.6
|
|
6
|
+
* The Onfido Public API (v3.6)
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: v3.6
|
|
9
9
|
*
|
|
@@ -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': "onfido-node/5.
|
|
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.5.0" }) });
|
|
36
36
|
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
|
|
37
37
|
}
|
|
38
38
|
/**
|