@onfido/api
Advanced tools
Comparing version 2.7.2 to 2.8.0
# Changelog | ||
## v2.8.0 24 November 2023 | ||
- Added `signed_evidence_file` method for WorkflowRuns | ||
## v2.7.2, 14 June 2023 | ||
@@ -4,0 +8,0 @@ |
import axios from 'axios'; | ||
import { PassThrough, Readable } from 'stream'; | ||
var version = "2.7.2"; | ||
var version = "2.8.0"; | ||
@@ -464,2 +464,5 @@ class OnfidoError extends Error { | ||
} | ||
async evidence(id) { | ||
return super.download(`${id}/signed_evidence_file`); | ||
} | ||
} | ||
@@ -466,0 +469,0 @@ |
@@ -10,3 +10,3 @@ 'use strict'; | ||
var version = "2.7.2"; | ||
var version = "2.8.0"; | ||
@@ -471,2 +471,5 @@ class OnfidoError extends Error { | ||
} | ||
async evidence(id) { | ||
return super.download(`${id}/signed_evidence_file`); | ||
} | ||
} | ||
@@ -473,0 +476,0 @@ |
@@ -17,2 +17,3 @@ import { AxiosInstance } from "axios"; | ||
environments: string[]; | ||
payloadVersion: number; | ||
}; | ||
@@ -19,0 +20,0 @@ export declare class Webhooks extends Resource<WebhookRequest> { |
import { AxiosInstance } from "axios"; | ||
import { OnfidoDownload } from "../OnfidoDownload"; | ||
import { Resource } from "../Resource"; | ||
@@ -32,2 +33,3 @@ export declare type WorkflowRunRequest = { | ||
updatedAt: string; | ||
tags: string[] | null; | ||
}; | ||
@@ -45,3 +47,4 @@ export declare type WorkflowRunListRequest = { | ||
list(queryParams?: WorkflowRunListRequest): Promise<WorkflowRun[]>; | ||
evidence(id: string): Promise<OnfidoDownload>; | ||
} | ||
export {}; |
{ | ||
"name": "@onfido/api", | ||
"version": "2.7.2", | ||
"version": "2.8.0", | ||
"description": "Node.js library for the Onfido API", | ||
@@ -36,3 +36,4 @@ "keywords": [ | ||
"moduleNameMapper": { | ||
"onfido-node": "<rootDir>/src/index" | ||
"onfido-node": "<rootDir>/src/index", | ||
"axios": "axios/dist/node/axios.cjs" | ||
}, | ||
@@ -61,5 +62,5 @@ "globals": { | ||
"dependencies": { | ||
"axios": "^0.21.1", | ||
"axios": "^1.6.1", | ||
"form-data": "^3.0.0" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
156347
1586
+ Addedaxios@1.7.9(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removedaxios@0.21.4(transitive)
Updatedaxios@^1.6.1