@onfido/api 4.0.0 → 4.1.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 +24 -24
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +24 -24
- package/dist/esm/configuration.js +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -3022,10 +3022,10 @@ export interface DocumentProperties {
|
|
|
3022
3022
|
'address_lines'?: DocumentPropertiesAddressLines;
|
|
3023
3023
|
/**
|
|
3024
3024
|
*
|
|
3025
|
-
* @type {
|
|
3025
|
+
* @type {DocumentPropertiesBarcode}
|
|
3026
3026
|
* @memberof DocumentProperties
|
|
3027
3027
|
*/
|
|
3028
|
-
'barcode'?:
|
|
3028
|
+
'barcode'?: DocumentPropertiesBarcode;
|
|
3029
3029
|
/**
|
|
3030
3030
|
*
|
|
3031
3031
|
* @type {DocumentPropertiesNfc}
|
|
@@ -3124,115 +3124,115 @@ export interface DocumentPropertiesAddressLines {
|
|
|
3124
3124
|
/**
|
|
3125
3125
|
*
|
|
3126
3126
|
* @export
|
|
3127
|
-
* @interface
|
|
3127
|
+
* @interface DocumentPropertiesBarcode
|
|
3128
3128
|
*/
|
|
3129
|
-
export interface
|
|
3129
|
+
export interface DocumentPropertiesBarcode {
|
|
3130
3130
|
/**
|
|
3131
3131
|
*
|
|
3132
3132
|
* @type {string}
|
|
3133
|
-
* @memberof
|
|
3133
|
+
* @memberof DocumentPropertiesBarcode
|
|
3134
3134
|
*/
|
|
3135
3135
|
'first_name'?: string;
|
|
3136
3136
|
/**
|
|
3137
3137
|
*
|
|
3138
3138
|
* @type {string}
|
|
3139
|
-
* @memberof
|
|
3139
|
+
* @memberof DocumentPropertiesBarcode
|
|
3140
3140
|
*/
|
|
3141
3141
|
'middle_name'?: string;
|
|
3142
3142
|
/**
|
|
3143
3143
|
*
|
|
3144
3144
|
* @type {string}
|
|
3145
|
-
* @memberof
|
|
3145
|
+
* @memberof DocumentPropertiesBarcode
|
|
3146
3146
|
*/
|
|
3147
3147
|
'last_name'?: string;
|
|
3148
3148
|
/**
|
|
3149
3149
|
*
|
|
3150
3150
|
* @type {string}
|
|
3151
|
-
* @memberof
|
|
3151
|
+
* @memberof DocumentPropertiesBarcode
|
|
3152
3152
|
*/
|
|
3153
3153
|
'document_type'?: string;
|
|
3154
3154
|
/**
|
|
3155
3155
|
*
|
|
3156
3156
|
* @type {string}
|
|
3157
|
-
* @memberof
|
|
3157
|
+
* @memberof DocumentPropertiesBarcode
|
|
3158
3158
|
*/
|
|
3159
3159
|
'date_of_expiry'?: string;
|
|
3160
3160
|
/**
|
|
3161
3161
|
*
|
|
3162
3162
|
* @type {string}
|
|
3163
|
-
* @memberof
|
|
3163
|
+
* @memberof DocumentPropertiesBarcode
|
|
3164
3164
|
*/
|
|
3165
3165
|
'date_of_birth'?: string;
|
|
3166
3166
|
/**
|
|
3167
3167
|
*
|
|
3168
3168
|
* @type {string}
|
|
3169
|
-
* @memberof
|
|
3169
|
+
* @memberof DocumentPropertiesBarcode
|
|
3170
3170
|
*/
|
|
3171
3171
|
'issuing_date'?: string;
|
|
3172
3172
|
/**
|
|
3173
3173
|
*
|
|
3174
3174
|
* @type {string}
|
|
3175
|
-
* @memberof
|
|
3175
|
+
* @memberof DocumentPropertiesBarcode
|
|
3176
3176
|
*/
|
|
3177
3177
|
'address_line_1'?: string;
|
|
3178
3178
|
/**
|
|
3179
3179
|
*
|
|
3180
3180
|
* @type {string}
|
|
3181
|
-
* @memberof
|
|
3181
|
+
* @memberof DocumentPropertiesBarcode
|
|
3182
3182
|
*/
|
|
3183
3183
|
'address_line_2'?: string;
|
|
3184
3184
|
/**
|
|
3185
3185
|
*
|
|
3186
3186
|
* @type {string}
|
|
3187
|
-
* @memberof
|
|
3187
|
+
* @memberof DocumentPropertiesBarcode
|
|
3188
3188
|
*/
|
|
3189
3189
|
'address_line_3'?: string;
|
|
3190
3190
|
/**
|
|
3191
3191
|
*
|
|
3192
3192
|
* @type {string}
|
|
3193
|
-
* @memberof
|
|
3193
|
+
* @memberof DocumentPropertiesBarcode
|
|
3194
3194
|
*/
|
|
3195
3195
|
'address_line_4'?: string;
|
|
3196
3196
|
/**
|
|
3197
3197
|
*
|
|
3198
3198
|
* @type {string}
|
|
3199
|
-
* @memberof
|
|
3199
|
+
* @memberof DocumentPropertiesBarcode
|
|
3200
3200
|
*/
|
|
3201
3201
|
'address_line_5'?: string;
|
|
3202
3202
|
/**
|
|
3203
3203
|
*
|
|
3204
3204
|
* @type {string}
|
|
3205
|
-
* @memberof
|
|
3205
|
+
* @memberof DocumentPropertiesBarcode
|
|
3206
3206
|
*/
|
|
3207
3207
|
'issuing_state'?: string;
|
|
3208
3208
|
/**
|
|
3209
3209
|
*
|
|
3210
3210
|
* @type {string}
|
|
3211
|
-
* @memberof
|
|
3211
|
+
* @memberof DocumentPropertiesBarcode
|
|
3212
3212
|
*/
|
|
3213
3213
|
'class'?: string;
|
|
3214
3214
|
/**
|
|
3215
3215
|
*
|
|
3216
3216
|
* @type {string}
|
|
3217
|
-
* @memberof
|
|
3217
|
+
* @memberof DocumentPropertiesBarcode
|
|
3218
3218
|
*/
|
|
3219
3219
|
'gender'?: string;
|
|
3220
3220
|
/**
|
|
3221
3221
|
*
|
|
3222
3222
|
* @type {string}
|
|
3223
|
-
* @memberof
|
|
3223
|
+
* @memberof DocumentPropertiesBarcode
|
|
3224
3224
|
*/
|
|
3225
3225
|
'issuing_country'?: string;
|
|
3226
3226
|
/**
|
|
3227
3227
|
*
|
|
3228
3228
|
* @type {string}
|
|
3229
|
-
* @memberof
|
|
3229
|
+
* @memberof DocumentPropertiesBarcode
|
|
3230
3230
|
*/
|
|
3231
3231
|
'document_number'?: string;
|
|
3232
3232
|
/**
|
|
3233
3233
|
*
|
|
3234
3234
|
* @type {string}
|
|
3235
|
-
* @memberof
|
|
3235
|
+
* @memberof DocumentPropertiesBarcode
|
|
3236
3236
|
*/
|
|
3237
3237
|
'real_id_classification'?: string;
|
|
3238
3238
|
}
|
|
@@ -4275,10 +4275,10 @@ export interface DocumentWithDriverVerificationReportAllOfProperties {
|
|
|
4275
4275
|
'address_lines'?: DocumentPropertiesAddressLines;
|
|
4276
4276
|
/**
|
|
4277
4277
|
*
|
|
4278
|
-
* @type {
|
|
4278
|
+
* @type {DocumentPropertiesBarcode}
|
|
4279
4279
|
* @memberof DocumentWithDriverVerificationReportAllOfProperties
|
|
4280
4280
|
*/
|
|
4281
|
-
'barcode'?:
|
|
4281
|
+
'barcode'?: DocumentPropertiesBarcode;
|
|
4282
4282
|
/**
|
|
4283
4283
|
*
|
|
4284
4284
|
* @type {DocumentPropertiesNfc}
|
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/4.
|
|
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/4.1.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
|
@@ -3022,10 +3022,10 @@ export interface DocumentProperties {
|
|
|
3022
3022
|
'address_lines'?: DocumentPropertiesAddressLines;
|
|
3023
3023
|
/**
|
|
3024
3024
|
*
|
|
3025
|
-
* @type {
|
|
3025
|
+
* @type {DocumentPropertiesBarcode}
|
|
3026
3026
|
* @memberof DocumentProperties
|
|
3027
3027
|
*/
|
|
3028
|
-
'barcode'?:
|
|
3028
|
+
'barcode'?: DocumentPropertiesBarcode;
|
|
3029
3029
|
/**
|
|
3030
3030
|
*
|
|
3031
3031
|
* @type {DocumentPropertiesNfc}
|
|
@@ -3124,115 +3124,115 @@ export interface DocumentPropertiesAddressLines {
|
|
|
3124
3124
|
/**
|
|
3125
3125
|
*
|
|
3126
3126
|
* @export
|
|
3127
|
-
* @interface
|
|
3127
|
+
* @interface DocumentPropertiesBarcode
|
|
3128
3128
|
*/
|
|
3129
|
-
export interface
|
|
3129
|
+
export interface DocumentPropertiesBarcode {
|
|
3130
3130
|
/**
|
|
3131
3131
|
*
|
|
3132
3132
|
* @type {string}
|
|
3133
|
-
* @memberof
|
|
3133
|
+
* @memberof DocumentPropertiesBarcode
|
|
3134
3134
|
*/
|
|
3135
3135
|
'first_name'?: string;
|
|
3136
3136
|
/**
|
|
3137
3137
|
*
|
|
3138
3138
|
* @type {string}
|
|
3139
|
-
* @memberof
|
|
3139
|
+
* @memberof DocumentPropertiesBarcode
|
|
3140
3140
|
*/
|
|
3141
3141
|
'middle_name'?: string;
|
|
3142
3142
|
/**
|
|
3143
3143
|
*
|
|
3144
3144
|
* @type {string}
|
|
3145
|
-
* @memberof
|
|
3145
|
+
* @memberof DocumentPropertiesBarcode
|
|
3146
3146
|
*/
|
|
3147
3147
|
'last_name'?: string;
|
|
3148
3148
|
/**
|
|
3149
3149
|
*
|
|
3150
3150
|
* @type {string}
|
|
3151
|
-
* @memberof
|
|
3151
|
+
* @memberof DocumentPropertiesBarcode
|
|
3152
3152
|
*/
|
|
3153
3153
|
'document_type'?: string;
|
|
3154
3154
|
/**
|
|
3155
3155
|
*
|
|
3156
3156
|
* @type {string}
|
|
3157
|
-
* @memberof
|
|
3157
|
+
* @memberof DocumentPropertiesBarcode
|
|
3158
3158
|
*/
|
|
3159
3159
|
'date_of_expiry'?: string;
|
|
3160
3160
|
/**
|
|
3161
3161
|
*
|
|
3162
3162
|
* @type {string}
|
|
3163
|
-
* @memberof
|
|
3163
|
+
* @memberof DocumentPropertiesBarcode
|
|
3164
3164
|
*/
|
|
3165
3165
|
'date_of_birth'?: string;
|
|
3166
3166
|
/**
|
|
3167
3167
|
*
|
|
3168
3168
|
* @type {string}
|
|
3169
|
-
* @memberof
|
|
3169
|
+
* @memberof DocumentPropertiesBarcode
|
|
3170
3170
|
*/
|
|
3171
3171
|
'issuing_date'?: string;
|
|
3172
3172
|
/**
|
|
3173
3173
|
*
|
|
3174
3174
|
* @type {string}
|
|
3175
|
-
* @memberof
|
|
3175
|
+
* @memberof DocumentPropertiesBarcode
|
|
3176
3176
|
*/
|
|
3177
3177
|
'address_line_1'?: string;
|
|
3178
3178
|
/**
|
|
3179
3179
|
*
|
|
3180
3180
|
* @type {string}
|
|
3181
|
-
* @memberof
|
|
3181
|
+
* @memberof DocumentPropertiesBarcode
|
|
3182
3182
|
*/
|
|
3183
3183
|
'address_line_2'?: string;
|
|
3184
3184
|
/**
|
|
3185
3185
|
*
|
|
3186
3186
|
* @type {string}
|
|
3187
|
-
* @memberof
|
|
3187
|
+
* @memberof DocumentPropertiesBarcode
|
|
3188
3188
|
*/
|
|
3189
3189
|
'address_line_3'?: string;
|
|
3190
3190
|
/**
|
|
3191
3191
|
*
|
|
3192
3192
|
* @type {string}
|
|
3193
|
-
* @memberof
|
|
3193
|
+
* @memberof DocumentPropertiesBarcode
|
|
3194
3194
|
*/
|
|
3195
3195
|
'address_line_4'?: string;
|
|
3196
3196
|
/**
|
|
3197
3197
|
*
|
|
3198
3198
|
* @type {string}
|
|
3199
|
-
* @memberof
|
|
3199
|
+
* @memberof DocumentPropertiesBarcode
|
|
3200
3200
|
*/
|
|
3201
3201
|
'address_line_5'?: string;
|
|
3202
3202
|
/**
|
|
3203
3203
|
*
|
|
3204
3204
|
* @type {string}
|
|
3205
|
-
* @memberof
|
|
3205
|
+
* @memberof DocumentPropertiesBarcode
|
|
3206
3206
|
*/
|
|
3207
3207
|
'issuing_state'?: string;
|
|
3208
3208
|
/**
|
|
3209
3209
|
*
|
|
3210
3210
|
* @type {string}
|
|
3211
|
-
* @memberof
|
|
3211
|
+
* @memberof DocumentPropertiesBarcode
|
|
3212
3212
|
*/
|
|
3213
3213
|
'class'?: string;
|
|
3214
3214
|
/**
|
|
3215
3215
|
*
|
|
3216
3216
|
* @type {string}
|
|
3217
|
-
* @memberof
|
|
3217
|
+
* @memberof DocumentPropertiesBarcode
|
|
3218
3218
|
*/
|
|
3219
3219
|
'gender'?: string;
|
|
3220
3220
|
/**
|
|
3221
3221
|
*
|
|
3222
3222
|
* @type {string}
|
|
3223
|
-
* @memberof
|
|
3223
|
+
* @memberof DocumentPropertiesBarcode
|
|
3224
3224
|
*/
|
|
3225
3225
|
'issuing_country'?: string;
|
|
3226
3226
|
/**
|
|
3227
3227
|
*
|
|
3228
3228
|
* @type {string}
|
|
3229
|
-
* @memberof
|
|
3229
|
+
* @memberof DocumentPropertiesBarcode
|
|
3230
3230
|
*/
|
|
3231
3231
|
'document_number'?: string;
|
|
3232
3232
|
/**
|
|
3233
3233
|
*
|
|
3234
3234
|
* @type {string}
|
|
3235
|
-
* @memberof
|
|
3235
|
+
* @memberof DocumentPropertiesBarcode
|
|
3236
3236
|
*/
|
|
3237
3237
|
'real_id_classification'?: string;
|
|
3238
3238
|
}
|
|
@@ -4275,10 +4275,10 @@ export interface DocumentWithDriverVerificationReportAllOfProperties {
|
|
|
4275
4275
|
'address_lines'?: DocumentPropertiesAddressLines;
|
|
4276
4276
|
/**
|
|
4277
4277
|
*
|
|
4278
|
-
* @type {
|
|
4278
|
+
* @type {DocumentPropertiesBarcode}
|
|
4279
4279
|
* @memberof DocumentWithDriverVerificationReportAllOfProperties
|
|
4280
4280
|
*/
|
|
4281
|
-
'barcode'?:
|
|
4281
|
+
'barcode'?: DocumentPropertiesBarcode;
|
|
4282
4282
|
/**
|
|
4283
4283
|
*
|
|
4284
4284
|
* @type {DocumentPropertiesNfc}
|
|
@@ -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/4.
|
|
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/4.1.0' }) });
|
|
33
33
|
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
|
|
34
34
|
}
|
|
35
35
|
/**
|