@onfido/api 3.5.0 → 3.6.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 +268 -2
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +268 -2
- package/dist/esm/configuration.js +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -8798,10 +8798,276 @@ export interface WatchlistEnhancedBreakdown {
|
|
|
8798
8798
|
export interface WatchlistEnhancedProperties {
|
|
8799
8799
|
/**
|
|
8800
8800
|
* Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources.
|
|
8801
|
-
* @type {Array<
|
|
8801
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInner>}
|
|
8802
8802
|
* @memberof WatchlistEnhancedProperties
|
|
8803
8803
|
*/
|
|
8804
|
-
'records'?: Array<
|
|
8804
|
+
'records'?: Array<WatchlistEnhancedPropertiesRecordsInner>;
|
|
8805
|
+
}
|
|
8806
|
+
/**
|
|
8807
|
+
*
|
|
8808
|
+
* @export
|
|
8809
|
+
* @interface WatchlistEnhancedPropertiesRecordsInner
|
|
8810
|
+
*/
|
|
8811
|
+
export interface WatchlistEnhancedPropertiesRecordsInner {
|
|
8812
|
+
/**
|
|
8813
|
+
* All addresses on file.
|
|
8814
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAddressInner>}
|
|
8815
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8816
|
+
*/
|
|
8817
|
+
'address'?: Array<WatchlistEnhancedPropertiesRecordsInnerAddressInner>;
|
|
8818
|
+
/**
|
|
8819
|
+
* Any names that the person is also known as.
|
|
8820
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAliasInner>}
|
|
8821
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8822
|
+
*/
|
|
8823
|
+
'alias'?: Array<WatchlistEnhancedPropertiesRecordsInnerAliasInner>;
|
|
8824
|
+
/**
|
|
8825
|
+
* Any linked persons, for example family relatives or business partners.
|
|
8826
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAssociateInner>}
|
|
8827
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8828
|
+
*/
|
|
8829
|
+
'associate'?: Array<WatchlistEnhancedPropertiesRecordsInnerAssociateInner>;
|
|
8830
|
+
/**
|
|
8831
|
+
* Information about the person, for example hair color or nationality.
|
|
8832
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAttributeInner>}
|
|
8833
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8834
|
+
*/
|
|
8835
|
+
'attribute'?: Array<WatchlistEnhancedPropertiesRecordsInnerAttributeInner>;
|
|
8836
|
+
/**
|
|
8837
|
+
* All the date of births on file.
|
|
8838
|
+
* @type {Array<string>}
|
|
8839
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8840
|
+
*/
|
|
8841
|
+
'date_of_birth'?: Array<string>;
|
|
8842
|
+
/**
|
|
8843
|
+
* Information about events that have occurred to the person, for example deportation or arrest.
|
|
8844
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerEventInner>}
|
|
8845
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8846
|
+
*/
|
|
8847
|
+
'event'?: Array<WatchlistEnhancedPropertiesRecordsInnerEventInner>;
|
|
8848
|
+
/**
|
|
8849
|
+
* The name on file
|
|
8850
|
+
* @type {string}
|
|
8851
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8852
|
+
*/
|
|
8853
|
+
'full_name'?: string;
|
|
8854
|
+
/**
|
|
8855
|
+
* The role, country and date of each position.
|
|
8856
|
+
* @type {Array<string>}
|
|
8857
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8858
|
+
*/
|
|
8859
|
+
'position'?: Array<string>;
|
|
8860
|
+
/**
|
|
8861
|
+
* Details about where the information was obtained.
|
|
8862
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerSourceInner>}
|
|
8863
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8864
|
+
*/
|
|
8865
|
+
'source'?: Array<WatchlistEnhancedPropertiesRecordsInnerSourceInner>;
|
|
8866
|
+
}
|
|
8867
|
+
/**
|
|
8868
|
+
*
|
|
8869
|
+
* @export
|
|
8870
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8871
|
+
*/
|
|
8872
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerAddressInner {
|
|
8873
|
+
/**
|
|
8874
|
+
*
|
|
8875
|
+
* @type {string}
|
|
8876
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8877
|
+
*/
|
|
8878
|
+
'address_line1'?: string;
|
|
8879
|
+
/**
|
|
8880
|
+
*
|
|
8881
|
+
* @type {CountryCodes}
|
|
8882
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8883
|
+
*/
|
|
8884
|
+
'country'?: CountryCodes;
|
|
8885
|
+
/**
|
|
8886
|
+
*
|
|
8887
|
+
* @type {string}
|
|
8888
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8889
|
+
*/
|
|
8890
|
+
'postal_code'?: string;
|
|
8891
|
+
/**
|
|
8892
|
+
*
|
|
8893
|
+
* @type {string}
|
|
8894
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8895
|
+
*/
|
|
8896
|
+
'state_province'?: string;
|
|
8897
|
+
/**
|
|
8898
|
+
*
|
|
8899
|
+
* @type {string}
|
|
8900
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8901
|
+
*/
|
|
8902
|
+
'town'?: string;
|
|
8903
|
+
/**
|
|
8904
|
+
*
|
|
8905
|
+
* @type {string}
|
|
8906
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8907
|
+
*/
|
|
8908
|
+
'locator_type'?: string;
|
|
8909
|
+
}
|
|
8910
|
+
/**
|
|
8911
|
+
*
|
|
8912
|
+
* @export
|
|
8913
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerAliasInner
|
|
8914
|
+
*/
|
|
8915
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerAliasInner {
|
|
8916
|
+
/**
|
|
8917
|
+
*
|
|
8918
|
+
* @type {string}
|
|
8919
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAliasInner
|
|
8920
|
+
*/
|
|
8921
|
+
'alias_name'?: string;
|
|
8922
|
+
/**
|
|
8923
|
+
*
|
|
8924
|
+
* @type {string}
|
|
8925
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAliasInner
|
|
8926
|
+
*/
|
|
8927
|
+
'alias_type'?: string;
|
|
8928
|
+
}
|
|
8929
|
+
/**
|
|
8930
|
+
*
|
|
8931
|
+
* @export
|
|
8932
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerAssociateInner
|
|
8933
|
+
*/
|
|
8934
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerAssociateInner {
|
|
8935
|
+
/**
|
|
8936
|
+
*
|
|
8937
|
+
* @type {string}
|
|
8938
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
|
|
8939
|
+
*/
|
|
8940
|
+
'entity_name'?: string;
|
|
8941
|
+
/**
|
|
8942
|
+
*
|
|
8943
|
+
* @type {string}
|
|
8944
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
|
|
8945
|
+
*/
|
|
8946
|
+
'relationship_direction'?: string;
|
|
8947
|
+
/**
|
|
8948
|
+
*
|
|
8949
|
+
* @type {string}
|
|
8950
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
|
|
8951
|
+
*/
|
|
8952
|
+
'relationship_type'?: string;
|
|
8953
|
+
}
|
|
8954
|
+
/**
|
|
8955
|
+
*
|
|
8956
|
+
* @export
|
|
8957
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerAttributeInner
|
|
8958
|
+
*/
|
|
8959
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerAttributeInner {
|
|
8960
|
+
/**
|
|
8961
|
+
*
|
|
8962
|
+
* @type {string}
|
|
8963
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAttributeInner
|
|
8964
|
+
*/
|
|
8965
|
+
'attribute_type'?: string;
|
|
8966
|
+
/**
|
|
8967
|
+
*
|
|
8968
|
+
* @type {string}
|
|
8969
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAttributeInner
|
|
8970
|
+
*/
|
|
8971
|
+
'attribute_value'?: string;
|
|
8972
|
+
}
|
|
8973
|
+
/**
|
|
8974
|
+
*
|
|
8975
|
+
* @export
|
|
8976
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
8977
|
+
*/
|
|
8978
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerEventInner {
|
|
8979
|
+
/**
|
|
8980
|
+
*
|
|
8981
|
+
* @type {string}
|
|
8982
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
8983
|
+
*/
|
|
8984
|
+
'category'?: string;
|
|
8985
|
+
/**
|
|
8986
|
+
*
|
|
8987
|
+
* @type {string}
|
|
8988
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
8989
|
+
*/
|
|
8990
|
+
'event_date'?: string;
|
|
8991
|
+
/**
|
|
8992
|
+
*
|
|
8993
|
+
* @type {string}
|
|
8994
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
8995
|
+
*/
|
|
8996
|
+
'event_description'?: string;
|
|
8997
|
+
/**
|
|
8998
|
+
*
|
|
8999
|
+
* @type {WatchlistEnhancedPropertiesRecordsInnerEventInnerSource}
|
|
9000
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
9001
|
+
*/
|
|
9002
|
+
'source'?: WatchlistEnhancedPropertiesRecordsInnerEventInnerSource;
|
|
9003
|
+
/**
|
|
9004
|
+
*
|
|
9005
|
+
* @type {string}
|
|
9006
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
9007
|
+
*/
|
|
9008
|
+
'sub_category'?: string;
|
|
9009
|
+
}
|
|
9010
|
+
/**
|
|
9011
|
+
*
|
|
9012
|
+
* @export
|
|
9013
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
|
|
9014
|
+
*/
|
|
9015
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerEventInnerSource {
|
|
9016
|
+
/**
|
|
9017
|
+
*
|
|
9018
|
+
* @type {string}
|
|
9019
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
|
|
9020
|
+
*/
|
|
9021
|
+
'source_date'?: string;
|
|
9022
|
+
/**
|
|
9023
|
+
*
|
|
9024
|
+
* @type {string}
|
|
9025
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
|
|
9026
|
+
*/
|
|
9027
|
+
'source_format'?: string;
|
|
9028
|
+
/**
|
|
9029
|
+
*
|
|
9030
|
+
* @type {string}
|
|
9031
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
|
|
9032
|
+
*/
|
|
9033
|
+
'source_name'?: string;
|
|
9034
|
+
/**
|
|
9035
|
+
*
|
|
9036
|
+
* @type {string}
|
|
9037
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
|
|
9038
|
+
*/
|
|
9039
|
+
'source_url'?: string;
|
|
9040
|
+
}
|
|
9041
|
+
/**
|
|
9042
|
+
*
|
|
9043
|
+
* @export
|
|
9044
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerSourceInner
|
|
9045
|
+
*/
|
|
9046
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerSourceInner {
|
|
9047
|
+
/**
|
|
9048
|
+
*
|
|
9049
|
+
* @type {string}
|
|
9050
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
|
|
9051
|
+
*/
|
|
9052
|
+
'source_headline'?: string;
|
|
9053
|
+
/**
|
|
9054
|
+
*
|
|
9055
|
+
* @type {string}
|
|
9056
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
|
|
9057
|
+
*/
|
|
9058
|
+
'source_name'?: string;
|
|
9059
|
+
/**
|
|
9060
|
+
*
|
|
9061
|
+
* @type {string}
|
|
9062
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
|
|
9063
|
+
*/
|
|
9064
|
+
'source_url'?: string;
|
|
9065
|
+
/**
|
|
9066
|
+
*
|
|
9067
|
+
* @type {string}
|
|
9068
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
|
|
9069
|
+
*/
|
|
9070
|
+
'source_format'?: string;
|
|
8805
9071
|
}
|
|
8806
9072
|
/**
|
|
8807
9073
|
*
|
package/dist/configuration.js
CHANGED
|
@@ -32,7 +32,7 @@ class Configuration {
|
|
|
32
32
|
}
|
|
33
33
|
this.apiKey = 'Token token=' + param.apiToken;
|
|
34
34
|
this.basePath = param.basePath || base_1.BASE_PATH.replace('.eu.', `.${Region[param.region || Region.EU].toLowerCase()}.`);
|
|
35
|
-
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/3.
|
|
35
|
+
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/3.6.0' }) });
|
|
36
36
|
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
|
|
37
37
|
}
|
|
38
38
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -8798,10 +8798,276 @@ export interface WatchlistEnhancedBreakdown {
|
|
|
8798
8798
|
export interface WatchlistEnhancedProperties {
|
|
8799
8799
|
/**
|
|
8800
8800
|
* Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources.
|
|
8801
|
-
* @type {Array<
|
|
8801
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInner>}
|
|
8802
8802
|
* @memberof WatchlistEnhancedProperties
|
|
8803
8803
|
*/
|
|
8804
|
-
'records'?: Array<
|
|
8804
|
+
'records'?: Array<WatchlistEnhancedPropertiesRecordsInner>;
|
|
8805
|
+
}
|
|
8806
|
+
/**
|
|
8807
|
+
*
|
|
8808
|
+
* @export
|
|
8809
|
+
* @interface WatchlistEnhancedPropertiesRecordsInner
|
|
8810
|
+
*/
|
|
8811
|
+
export interface WatchlistEnhancedPropertiesRecordsInner {
|
|
8812
|
+
/**
|
|
8813
|
+
* All addresses on file.
|
|
8814
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAddressInner>}
|
|
8815
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8816
|
+
*/
|
|
8817
|
+
'address'?: Array<WatchlistEnhancedPropertiesRecordsInnerAddressInner>;
|
|
8818
|
+
/**
|
|
8819
|
+
* Any names that the person is also known as.
|
|
8820
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAliasInner>}
|
|
8821
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8822
|
+
*/
|
|
8823
|
+
'alias'?: Array<WatchlistEnhancedPropertiesRecordsInnerAliasInner>;
|
|
8824
|
+
/**
|
|
8825
|
+
* Any linked persons, for example family relatives or business partners.
|
|
8826
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAssociateInner>}
|
|
8827
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8828
|
+
*/
|
|
8829
|
+
'associate'?: Array<WatchlistEnhancedPropertiesRecordsInnerAssociateInner>;
|
|
8830
|
+
/**
|
|
8831
|
+
* Information about the person, for example hair color or nationality.
|
|
8832
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerAttributeInner>}
|
|
8833
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8834
|
+
*/
|
|
8835
|
+
'attribute'?: Array<WatchlistEnhancedPropertiesRecordsInnerAttributeInner>;
|
|
8836
|
+
/**
|
|
8837
|
+
* All the date of births on file.
|
|
8838
|
+
* @type {Array<string>}
|
|
8839
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8840
|
+
*/
|
|
8841
|
+
'date_of_birth'?: Array<string>;
|
|
8842
|
+
/**
|
|
8843
|
+
* Information about events that have occurred to the person, for example deportation or arrest.
|
|
8844
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerEventInner>}
|
|
8845
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8846
|
+
*/
|
|
8847
|
+
'event'?: Array<WatchlistEnhancedPropertiesRecordsInnerEventInner>;
|
|
8848
|
+
/**
|
|
8849
|
+
* The name on file
|
|
8850
|
+
* @type {string}
|
|
8851
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8852
|
+
*/
|
|
8853
|
+
'full_name'?: string;
|
|
8854
|
+
/**
|
|
8855
|
+
* The role, country and date of each position.
|
|
8856
|
+
* @type {Array<string>}
|
|
8857
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8858
|
+
*/
|
|
8859
|
+
'position'?: Array<string>;
|
|
8860
|
+
/**
|
|
8861
|
+
* Details about where the information was obtained.
|
|
8862
|
+
* @type {Array<WatchlistEnhancedPropertiesRecordsInnerSourceInner>}
|
|
8863
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInner
|
|
8864
|
+
*/
|
|
8865
|
+
'source'?: Array<WatchlistEnhancedPropertiesRecordsInnerSourceInner>;
|
|
8866
|
+
}
|
|
8867
|
+
/**
|
|
8868
|
+
*
|
|
8869
|
+
* @export
|
|
8870
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8871
|
+
*/
|
|
8872
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerAddressInner {
|
|
8873
|
+
/**
|
|
8874
|
+
*
|
|
8875
|
+
* @type {string}
|
|
8876
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8877
|
+
*/
|
|
8878
|
+
'address_line1'?: string;
|
|
8879
|
+
/**
|
|
8880
|
+
*
|
|
8881
|
+
* @type {CountryCodes}
|
|
8882
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8883
|
+
*/
|
|
8884
|
+
'country'?: CountryCodes;
|
|
8885
|
+
/**
|
|
8886
|
+
*
|
|
8887
|
+
* @type {string}
|
|
8888
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8889
|
+
*/
|
|
8890
|
+
'postal_code'?: string;
|
|
8891
|
+
/**
|
|
8892
|
+
*
|
|
8893
|
+
* @type {string}
|
|
8894
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8895
|
+
*/
|
|
8896
|
+
'state_province'?: string;
|
|
8897
|
+
/**
|
|
8898
|
+
*
|
|
8899
|
+
* @type {string}
|
|
8900
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8901
|
+
*/
|
|
8902
|
+
'town'?: string;
|
|
8903
|
+
/**
|
|
8904
|
+
*
|
|
8905
|
+
* @type {string}
|
|
8906
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAddressInner
|
|
8907
|
+
*/
|
|
8908
|
+
'locator_type'?: string;
|
|
8909
|
+
}
|
|
8910
|
+
/**
|
|
8911
|
+
*
|
|
8912
|
+
* @export
|
|
8913
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerAliasInner
|
|
8914
|
+
*/
|
|
8915
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerAliasInner {
|
|
8916
|
+
/**
|
|
8917
|
+
*
|
|
8918
|
+
* @type {string}
|
|
8919
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAliasInner
|
|
8920
|
+
*/
|
|
8921
|
+
'alias_name'?: string;
|
|
8922
|
+
/**
|
|
8923
|
+
*
|
|
8924
|
+
* @type {string}
|
|
8925
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAliasInner
|
|
8926
|
+
*/
|
|
8927
|
+
'alias_type'?: string;
|
|
8928
|
+
}
|
|
8929
|
+
/**
|
|
8930
|
+
*
|
|
8931
|
+
* @export
|
|
8932
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerAssociateInner
|
|
8933
|
+
*/
|
|
8934
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerAssociateInner {
|
|
8935
|
+
/**
|
|
8936
|
+
*
|
|
8937
|
+
* @type {string}
|
|
8938
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
|
|
8939
|
+
*/
|
|
8940
|
+
'entity_name'?: string;
|
|
8941
|
+
/**
|
|
8942
|
+
*
|
|
8943
|
+
* @type {string}
|
|
8944
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
|
|
8945
|
+
*/
|
|
8946
|
+
'relationship_direction'?: string;
|
|
8947
|
+
/**
|
|
8948
|
+
*
|
|
8949
|
+
* @type {string}
|
|
8950
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAssociateInner
|
|
8951
|
+
*/
|
|
8952
|
+
'relationship_type'?: string;
|
|
8953
|
+
}
|
|
8954
|
+
/**
|
|
8955
|
+
*
|
|
8956
|
+
* @export
|
|
8957
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerAttributeInner
|
|
8958
|
+
*/
|
|
8959
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerAttributeInner {
|
|
8960
|
+
/**
|
|
8961
|
+
*
|
|
8962
|
+
* @type {string}
|
|
8963
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAttributeInner
|
|
8964
|
+
*/
|
|
8965
|
+
'attribute_type'?: string;
|
|
8966
|
+
/**
|
|
8967
|
+
*
|
|
8968
|
+
* @type {string}
|
|
8969
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerAttributeInner
|
|
8970
|
+
*/
|
|
8971
|
+
'attribute_value'?: string;
|
|
8972
|
+
}
|
|
8973
|
+
/**
|
|
8974
|
+
*
|
|
8975
|
+
* @export
|
|
8976
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
8977
|
+
*/
|
|
8978
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerEventInner {
|
|
8979
|
+
/**
|
|
8980
|
+
*
|
|
8981
|
+
* @type {string}
|
|
8982
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
8983
|
+
*/
|
|
8984
|
+
'category'?: string;
|
|
8985
|
+
/**
|
|
8986
|
+
*
|
|
8987
|
+
* @type {string}
|
|
8988
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
8989
|
+
*/
|
|
8990
|
+
'event_date'?: string;
|
|
8991
|
+
/**
|
|
8992
|
+
*
|
|
8993
|
+
* @type {string}
|
|
8994
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
8995
|
+
*/
|
|
8996
|
+
'event_description'?: string;
|
|
8997
|
+
/**
|
|
8998
|
+
*
|
|
8999
|
+
* @type {WatchlistEnhancedPropertiesRecordsInnerEventInnerSource}
|
|
9000
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
9001
|
+
*/
|
|
9002
|
+
'source'?: WatchlistEnhancedPropertiesRecordsInnerEventInnerSource;
|
|
9003
|
+
/**
|
|
9004
|
+
*
|
|
9005
|
+
* @type {string}
|
|
9006
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInner
|
|
9007
|
+
*/
|
|
9008
|
+
'sub_category'?: string;
|
|
9009
|
+
}
|
|
9010
|
+
/**
|
|
9011
|
+
*
|
|
9012
|
+
* @export
|
|
9013
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
|
|
9014
|
+
*/
|
|
9015
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerEventInnerSource {
|
|
9016
|
+
/**
|
|
9017
|
+
*
|
|
9018
|
+
* @type {string}
|
|
9019
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
|
|
9020
|
+
*/
|
|
9021
|
+
'source_date'?: string;
|
|
9022
|
+
/**
|
|
9023
|
+
*
|
|
9024
|
+
* @type {string}
|
|
9025
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
|
|
9026
|
+
*/
|
|
9027
|
+
'source_format'?: string;
|
|
9028
|
+
/**
|
|
9029
|
+
*
|
|
9030
|
+
* @type {string}
|
|
9031
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
|
|
9032
|
+
*/
|
|
9033
|
+
'source_name'?: string;
|
|
9034
|
+
/**
|
|
9035
|
+
*
|
|
9036
|
+
* @type {string}
|
|
9037
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerEventInnerSource
|
|
9038
|
+
*/
|
|
9039
|
+
'source_url'?: string;
|
|
9040
|
+
}
|
|
9041
|
+
/**
|
|
9042
|
+
*
|
|
9043
|
+
* @export
|
|
9044
|
+
* @interface WatchlistEnhancedPropertiesRecordsInnerSourceInner
|
|
9045
|
+
*/
|
|
9046
|
+
export interface WatchlistEnhancedPropertiesRecordsInnerSourceInner {
|
|
9047
|
+
/**
|
|
9048
|
+
*
|
|
9049
|
+
* @type {string}
|
|
9050
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
|
|
9051
|
+
*/
|
|
9052
|
+
'source_headline'?: string;
|
|
9053
|
+
/**
|
|
9054
|
+
*
|
|
9055
|
+
* @type {string}
|
|
9056
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
|
|
9057
|
+
*/
|
|
9058
|
+
'source_name'?: string;
|
|
9059
|
+
/**
|
|
9060
|
+
*
|
|
9061
|
+
* @type {string}
|
|
9062
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
|
|
9063
|
+
*/
|
|
9064
|
+
'source_url'?: string;
|
|
9065
|
+
/**
|
|
9066
|
+
*
|
|
9067
|
+
* @type {string}
|
|
9068
|
+
* @memberof WatchlistEnhancedPropertiesRecordsInnerSourceInner
|
|
9069
|
+
*/
|
|
9070
|
+
'source_format'?: string;
|
|
8805
9071
|
}
|
|
8806
9072
|
/**
|
|
8807
9073
|
*
|
|
@@ -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/3.
|
|
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/3.6.0' }) });
|
|
33
33
|
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
|
|
34
34
|
}
|
|
35
35
|
/**
|