Skip to content

Commit

Permalink
Upgrade after onfido-openapi-spec change 08508b9 (#146)
Browse files Browse the repository at this point in the history
Co-authored-by: dvacca-onfido <[email protected]>
  • Loading branch information
devops-automation-onfido and dvacca-onfido authored Sep 20, 2024
1 parent b9cea33 commit 31dc70f
Show file tree
Hide file tree
Showing 5 changed files with 297 additions and 29 deletions.
8 changes: 4 additions & 4 deletions .release.json
Original file line number Diff line number Diff line change
@@ -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"
}
272 changes: 270 additions & 2 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>}
* @type {Array<WatchlistEnhancedPropertiesRecordsInner>}
* @memberof WatchlistEnhancedProperties
*/
'records'?: Array<string>;
'records'?: Array<WatchlistEnhancedPropertiesRecordsInner>;
}
/**
*
* @export
* @interface WatchlistEnhancedPropertiesRecordsInner
*/
export interface WatchlistEnhancedPropertiesRecordsInner {
/**
* All addresses on file.
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAddressInner>}
* @memberof WatchlistEnhancedPropertiesRecordsInner
*/
'address'?: Array<WatchlistEnhancedPropertiesRecordsInnerAddressInner>;
/**
* Any names that the person is also known as.
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAliasInner>}
* @memberof WatchlistEnhancedPropertiesRecordsInner
*/
'alias'?: Array<WatchlistEnhancedPropertiesRecordsInnerAliasInner>;
/**
* Any linked persons, for example family relatives or business partners.
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAssociateInner>}
* @memberof WatchlistEnhancedPropertiesRecordsInner
*/
'associate'?: Array<WatchlistEnhancedPropertiesRecordsInnerAssociateInner>;
/**
* Information about the person, for example hair color or nationality.
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAttributeInner>}
* @memberof WatchlistEnhancedPropertiesRecordsInner
*/
'attribute'?: Array<WatchlistEnhancedPropertiesRecordsInnerAttributeInner>;
/**
* All the date of births on file.
* @type {Array<string>}
* @memberof WatchlistEnhancedPropertiesRecordsInner
*/
'date_of_birth'?: Array<string>;
/**
* Information about events that have occurred to the person, for example deportation or arrest.
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerEventInner>}
* @memberof WatchlistEnhancedPropertiesRecordsInner
*/
'event'?: Array<WatchlistEnhancedPropertiesRecordsInnerEventInner>;
/**
* The name on file
* @type {string}
* @memberof WatchlistEnhancedPropertiesRecordsInner
*/
'full_name'?: string;
/**
* The role, country and date of each position.
* @type {Array<string>}
* @memberof WatchlistEnhancedPropertiesRecordsInner
*/
'position'?: Array<string>;
/**
* Details about where the information was obtained.
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerSourceInner>}
* @memberof WatchlistEnhancedPropertiesRecordsInner
*/
'source'?: Array<WatchlistEnhancedPropertiesRecordsInnerSourceInner>;
}
/**
*
* @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;
}
/**
*
Expand Down
2 changes: 1 addition & 1 deletion configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
Loading

0 comments on commit 31dc70f

Please sign in to comment.