New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@onfido/api

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onfido/api - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

dist/resources/WorkflowRuns.d.ts

4

CHANGELOG.md
# Changelog
## v2.6.0, 7 December 2022
- Added WorkflowRuns support
## v2.5.0, 22 November 2022

@@ -4,0 +8,0 @@

@@ -19,1 +19,2 @@ export { Onfido, OnfidoOptions, Region } from "./Onfido";

export { Autofill, ExtractionResult } from "./resources/Autofill";
export { WorkflowRun, WorkflowRunRequest } from "./resources/WorkflowRuns";
import axios from 'axios';
import { PassThrough, Readable } from 'stream';
var version = "2.5.0";
var version = "2.6.0";

@@ -175,5 +175,6 @@ class OnfidoError extends Error {

async request({ method, path = "", body, query }) {
const url = path === null ? `${this.name}` : `${this.name}/${path}`;
const request = this.axiosInstance({
method,
url: `${this.name}/${path}`,
url: url,
data: body && convertObjectToSnakeCase(body),

@@ -439,2 +440,21 @@ params: query && convertObjectToSnakeCase(query)

class WorkflowRuns extends Resource {
constructor(axiosInstance) {
super("workflow_runs", axiosInstance);
}
async create(workflowRunRequest) {
return this.request({ method: Method.POST, body: workflowRunRequest });
}
async find(id) {
return this.request({ method: Method.GET, path: id });
}
async list(queryParams) {
const workflowRuns = await this.request({
method: Method.GET,
query: queryParams
});
return workflowRuns;
}
}
var Region;

@@ -474,2 +494,3 @@ (function (Region) {

this.report = new Reports(this.axiosInstance);
this.workflowRun = new WorkflowRuns(this.axiosInstance);
// Other endpoints

@@ -476,0 +497,0 @@ this.address = new Addresses(this.axiosInstance);

@@ -10,3 +10,3 @@ 'use strict';

var version = "2.5.0";
var version = "2.6.0";

@@ -182,5 +182,6 @@ class OnfidoError extends Error {

async request({ method, path = "", body, query }) {
const url = path === null ? `${this.name}` : `${this.name}/${path}`;
const request = this.axiosInstance({
method,
url: `${this.name}/${path}`,
url: url,
data: body && convertObjectToSnakeCase(body),

@@ -446,2 +447,21 @@ params: query && convertObjectToSnakeCase(query)

class WorkflowRuns extends Resource {
constructor(axiosInstance) {
super("workflow_runs", axiosInstance);
}
async create(workflowRunRequest) {
return this.request({ method: Method.POST, body: workflowRunRequest });
}
async find(id) {
return this.request({ method: Method.GET, path: id });
}
async list(queryParams) {
const workflowRuns = await this.request({
method: Method.GET,
query: queryParams
});
return workflowRuns;
}
}
(function (Region) {

@@ -480,2 +500,3 @@ Region["EU"] = "EU";

this.report = new Reports(this.axiosInstance);
this.workflowRun = new WorkflowRuns(this.axiosInstance);
// Other endpoints

@@ -482,0 +503,0 @@ this.address = new Addresses(this.axiosInstance);

@@ -13,2 +13,3 @@ import { AxiosInstance } from "axios";

import { Webhooks } from "./resources/Webhooks";
import { WorkflowRuns } from "./resources/WorkflowRuns";
export declare enum Region {

@@ -34,2 +35,3 @@ EU = "EU",

readonly report: Reports;
readonly workflowRun: WorkflowRuns;
readonly address: Addresses;

@@ -36,0 +38,0 @@ readonly webhook: Webhooks;

2

package.json
{
"name": "@onfido/api",
"version": "2.5.0",
"version": "2.6.0",
"description": "Node.js library for the Onfido API",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc