From 31dc70f1544e28daabb8154b3a88f7705e4c880d Mon Sep 17 00:00:00 2001 From: devops-automation-onfido <162147477+devops-automation-onfido@users.noreply.github.com> Date: Fri, 20 Sep 2024 10:11:53 -0400 Subject: [PATCH] Upgrade after onfido-openapi-spec change 08508b9 (#146) Co-authored-by: dvacca-onfido <134616519+dvacca-onfido@users.noreply.github.com> --- .release.json | 8 +- api.ts | 272 +++++++++++++++++++++++++++++++++++++++++++++- configuration.ts | 2 +- package-lock.json | 42 +++---- package.json | 2 +- 5 files changed, 297 insertions(+), 29 deletions(-) diff --git a/.release.json b/.release.json index 66fc76e..3e5a1de 100644 --- a/.release.json +++ b/.release.json @@ -1,9 +1,9 @@ { "source": { "repo_url": "https://github.com/onfido/onfido-openapi-spec", - "short_sha": "a33e3b2", - "long_sha": "a33e3b25defea6110ec610051560df2c20bd1f65", - "version": "v3.4.0" + "short_sha": "08508b9", + "long_sha": "08508b9517238b3becb4265130633a418a8ee319", + "version": "v3.5.0" }, - "release": "v3.5.0" + "release": "v3.6.0" } diff --git a/api.ts b/api.ts index 0967910..c2b72b3 100644 --- a/api.ts +++ b/api.ts @@ -8931,10 +8931,278 @@ export interface WatchlistEnhancedBreakdown { export interface WatchlistEnhancedProperties { /** * Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources. - * @type {Array} + * @type {Array} * @memberof WatchlistEnhancedProperties */ - 'records'?: Array; + 'records'?: Array; +} +/** + * + * @export + * @interface WatchlistEnhancedPropertiesRecordsInner + */ +export interface WatchlistEnhancedPropertiesRecordsInner { + /** + * All addresses on file. + * @type {Array} + * @memberof WatchlistEnhancedPropertiesRecordsInner + */ + 'address'?: Array; + /** + * Any names that the person is also known as. + * @type {Array} + * @memberof WatchlistEnhancedPropertiesRecordsInner + */ + 'alias'?: Array; + /** + * Any linked persons, for example family relatives or business partners. + * @type {Array} + * @memberof WatchlistEnhancedPropertiesRecordsInner + */ + 'associate'?: Array; + /** + * Information about the person, for example hair color or nationality. + * @type {Array} + * @memberof WatchlistEnhancedPropertiesRecordsInner + */ + 'attribute'?: Array; + /** + * All the date of births on file. + * @type {Array} + * @memberof WatchlistEnhancedPropertiesRecordsInner + */ + 'date_of_birth'?: Array; + /** + * Information about events that have occurred to the person, for example deportation or arrest. + * @type {Array} + * @memberof WatchlistEnhancedPropertiesRecordsInner + */ + 'event'?: Array; + /** + * The name on file + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInner + */ + 'full_name'?: string; + /** + * The role, country and date of each position. + * @type {Array} + * @memberof WatchlistEnhancedPropertiesRecordsInner + */ + 'position'?: Array; + /** + * Details about where the information was obtained. + * @type {Array} + * @memberof WatchlistEnhancedPropertiesRecordsInner + */ + 'source'?: Array; +} +/** + * + * @export + * @interface WatchlistEnhancedPropertiesRecordsInnerAddressInner + */ +export interface WatchlistEnhancedPropertiesRecordsInnerAddressInner { + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner + */ + 'address_line1'?: string; + /** + * + * @type {CountryCodes} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner + */ + 'country'?: CountryCodes; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner + */ + 'postal_code'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner + */ + 'state_province'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner + */ + 'town'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner + */ + 'locator_type'?: string; +} + + +/** + * + * @export + * @interface WatchlistEnhancedPropertiesRecordsInnerAliasInner + */ +export interface WatchlistEnhancedPropertiesRecordsInnerAliasInner { + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAliasInner + */ + 'alias_name'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAliasInner + */ + 'alias_type'?: string; +} +/** + * + * @export + * @interface WatchlistEnhancedPropertiesRecordsInnerAssociateInner + */ +export interface WatchlistEnhancedPropertiesRecordsInnerAssociateInner { + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner + */ + 'entity_name'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner + */ + 'relationship_direction'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner + */ + 'relationship_type'?: string; +} +/** + * + * @export + * @interface WatchlistEnhancedPropertiesRecordsInnerAttributeInner + */ +export interface WatchlistEnhancedPropertiesRecordsInnerAttributeInner { + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAttributeInner + */ + 'attribute_type'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerAttributeInner + */ + 'attribute_value'?: string; +} +/** + * + * @export + * @interface WatchlistEnhancedPropertiesRecordsInnerEventInner + */ +export interface WatchlistEnhancedPropertiesRecordsInnerEventInner { + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner + */ + 'category'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner + */ + 'event_date'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner + */ + 'event_description'?: string; + /** + * + * @type {WatchlistEnhancedPropertiesRecordsInnerEventInnerSource} + * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner + */ + 'source'?: WatchlistEnhancedPropertiesRecordsInnerEventInnerSource; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner + */ + 'sub_category'?: string; +} +/** + * + * @export + * @interface WatchlistEnhancedPropertiesRecordsInnerEventInnerSource + */ +export interface WatchlistEnhancedPropertiesRecordsInnerEventInnerSource { + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource + */ + 'source_date'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource + */ + 'source_format'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource + */ + 'source_name'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource + */ + 'source_url'?: string; +} +/** + * + * @export + * @interface WatchlistEnhancedPropertiesRecordsInnerSourceInner + */ +export interface WatchlistEnhancedPropertiesRecordsInnerSourceInner { + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner + */ + 'source_headline'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner + */ + 'source_name'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner + */ + 'source_url'?: string; + /** + * + * @type {string} + * @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner + */ + 'source_format'?: string; } /** * diff --git a/configuration.ts b/configuration.ts index de83228..9b01a50 100644 --- a/configuration.ts +++ b/configuration.ts @@ -101,7 +101,7 @@ export class Configuration { this.baseOptions = {...{ timeout: 30_000 }, ...param.baseOptions, ...{ headers: {...param.baseOptions?.headers, - ...{'User-Agent': 'onfido-node/3.5.0'}}}}; + ...{'User-Agent': 'onfido-node/3.6.0'}}}}; this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed) } diff --git a/package-lock.json b/package-lock.json index 8419ac5..7cc0c93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@onfido/api", - "version": "3.5.0", + "version": "3.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@onfido/api", - "version": "3.5.0", + "version": "3.6.0", "license": "MIT", "dependencies": { "axios": "^1.7.4" @@ -1512,9 +1512,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001657", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001657.tgz", - "integrity": "sha512-DPbJAlP8/BAXy3IgiWmZKItubb3TYGP0WscQQlVGIfT4s/YlFYVuJgyOsQNP7rJRChx/qdMeLJQJP0Sgg2yjNA==", + "version": "1.0.30001662", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001662.tgz", + "integrity": "sha512-sgMUVwLmGseH8ZIrm1d51UbrhqMCH3jvS7gF/M6byuHOnKyLOBL7W8yz5V02OHwgLGA36o/AFhWzzh4uc5aqTA==", "dev": true, "funding": [ { @@ -1772,12 +1772,12 @@ } }, "node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", "dev": true, "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -1895,9 +1895,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.14", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.14.tgz", - "integrity": "sha512-bEfPECb3fJ15eaDnu9LEJ2vPGD6W1vt7vZleSVyFhYuMIKm3vz/g9lt7IvEzgdwj58RjbPKUF2rXTCN/UW47tQ==", + "version": "1.5.25", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.25.tgz", + "integrity": "sha512-kMb204zvK3PsSlgvvwzI3wBIcAw15tRkYk+NQdsjdDtcQWTp2RABbMQ9rUBy8KNEOM+/E6ep+XC3AykiWZld4g==", "dev": true }, "node_modules/emittery": { @@ -2246,9 +2246,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.8", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.8.tgz", - "integrity": "sha512-xgrmBhBToVKay1q2Tao5LI26B83UhrB/vM1avwVSDzt8rx3rO6AizBAaF46EgksTVr+rFTQaqZZ9MVBfUe4nig==", + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", "funding": [ { "type": "individual", @@ -3783,9 +3783,9 @@ } }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true }, "node_modules/nanomatch": { @@ -4232,9 +4232,9 @@ "dev": true }, "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", "dev": true, "dependencies": { "end-of-stream": "^1.1.0", diff --git a/package.json b/package.json index 736bc3f..cfc47bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onfido/api", - "version": "3.5.0", + "version": "3.6.0", "description": "Node.js library for the Onfido API", "author": "OpenAPI-Generator Contributors", "repository": {