@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/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
|
*
|
|
@@ -1154,6 +1154,45 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1154
1154
|
options: localVarRequestOptions,
|
|
1155
1155
|
};
|
|
1156
1156
|
}),
|
|
1157
|
+
/**
|
|
1158
|
+
* Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
1159
|
+
* @summary Retrieves the signed document or signing transaction receipt
|
|
1160
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
1161
|
+
* @param {string} id The unique identifier of the file which you want to retrieve.
|
|
1162
|
+
* @param {*} [options] Override http request option.
|
|
1163
|
+
* @throws {RequiredError}
|
|
1164
|
+
*/
|
|
1165
|
+
downloadAesDocument: (workflowRunId, id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1166
|
+
// verify required parameter 'workflowRunId' is not null or undefined
|
|
1167
|
+
assertParamExists('downloadAesDocument', 'workflowRunId', workflowRunId);
|
|
1168
|
+
// verify required parameter 'id' is not null or undefined
|
|
1169
|
+
assertParamExists('downloadAesDocument', 'id', id);
|
|
1170
|
+
const localVarPath = `/advanced_electronic_signature/documents`;
|
|
1171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1172
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1173
|
+
let baseOptions;
|
|
1174
|
+
if (configuration) {
|
|
1175
|
+
baseOptions = configuration.baseOptions;
|
|
1176
|
+
}
|
|
1177
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1178
|
+
const localVarHeaderParameter = {};
|
|
1179
|
+
const localVarQueryParameter = {};
|
|
1180
|
+
// authentication Token required
|
|
1181
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1182
|
+
if (workflowRunId !== undefined) {
|
|
1183
|
+
localVarQueryParameter['workflow_run_id'] = workflowRunId;
|
|
1184
|
+
}
|
|
1185
|
+
if (id !== undefined) {
|
|
1186
|
+
localVarQueryParameter['id'] = id;
|
|
1187
|
+
}
|
|
1188
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1189
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1190
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1191
|
+
return {
|
|
1192
|
+
url: toPathString(localVarUrlObj),
|
|
1193
|
+
options: localVarRequestOptions,
|
|
1194
|
+
};
|
|
1195
|
+
}),
|
|
1157
1196
|
/**
|
|
1158
1197
|
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
|
|
1159
1198
|
* @summary Download check
|
|
@@ -3244,6 +3283,23 @@ export const DefaultApiFp = function (configuration) {
|
|
|
3244
3283
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3245
3284
|
});
|
|
3246
3285
|
},
|
|
3286
|
+
/**
|
|
3287
|
+
* Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
3288
|
+
* @summary Retrieves the signed document or signing transaction receipt
|
|
3289
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
3290
|
+
* @param {string} id The unique identifier of the file which you want to retrieve.
|
|
3291
|
+
* @param {*} [options] Override http request option.
|
|
3292
|
+
* @throws {RequiredError}
|
|
3293
|
+
*/
|
|
3294
|
+
downloadAesDocument(workflowRunId, id, options) {
|
|
3295
|
+
var _a, _b, _c;
|
|
3296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3297
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadAesDocument(workflowRunId, id, options);
|
|
3298
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3299
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.downloadAesDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3300
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3301
|
+
});
|
|
3302
|
+
},
|
|
3247
3303
|
/**
|
|
3248
3304
|
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
|
|
3249
3305
|
* @summary Download check
|
|
@@ -4299,6 +4355,17 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4299
4355
|
deleteWebhook(webhookId, options) {
|
|
4300
4356
|
return localVarFp.deleteWebhook(webhookId, options).then((request) => request(axios, basePath));
|
|
4301
4357
|
},
|
|
4358
|
+
/**
|
|
4359
|
+
* Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
4360
|
+
* @summary Retrieves the signed document or signing transaction receipt
|
|
4361
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
4362
|
+
* @param {string} id The unique identifier of the file which you want to retrieve.
|
|
4363
|
+
* @param {*} [options] Override http request option.
|
|
4364
|
+
* @throws {RequiredError}
|
|
4365
|
+
*/
|
|
4366
|
+
downloadAesDocument(workflowRunId, id, options) {
|
|
4367
|
+
return localVarFp.downloadAesDocument(workflowRunId, id, options).then((request) => request(axios, basePath));
|
|
4368
|
+
},
|
|
4302
4369
|
/**
|
|
4303
4370
|
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
|
|
4304
4371
|
* @summary Download check
|
|
@@ -5023,6 +5090,18 @@ export class DefaultApi extends BaseAPI {
|
|
|
5023
5090
|
deleteWebhook(webhookId, options) {
|
|
5024
5091
|
return DefaultApiFp(this.configuration).deleteWebhook(webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
5025
5092
|
}
|
|
5093
|
+
/**
|
|
5094
|
+
* Retrieves the signed document or signing transaction receipt depending on the id provided.
|
|
5095
|
+
* @summary Retrieves the signed document or signing transaction receipt
|
|
5096
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
|
|
5097
|
+
* @param {string} id The unique identifier of the file which you want to retrieve.
|
|
5098
|
+
* @param {*} [options] Override http request option.
|
|
5099
|
+
* @throws {RequiredError}
|
|
5100
|
+
* @memberof DefaultApi
|
|
5101
|
+
*/
|
|
5102
|
+
downloadAesDocument(workflowRunId, id, options) {
|
|
5103
|
+
return DefaultApiFp(this.configuration).downloadAesDocument(workflowRunId, id, options).then((request) => request(this.axios, this.basePath));
|
|
5104
|
+
}
|
|
5026
5105
|
/**
|
|
5027
5106
|
* Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
|
|
5028
5107
|
* @summary Download check
|
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.5.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