Skip to content

Commit 0554186

Browse files
Merge pull request #152 from onfido/release-upgrade
Refresh onfido-node after onfido-openapi-spec update (8c793a1)
2 parents aa8c0fc + e45f901 commit 0554186

File tree

7 files changed

+46
-46
lines changed

7 files changed

+46
-46
lines changed

.release.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"source": {
33
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
4-
"short_sha": "c72181c",
5-
"long_sha": "c72181cc5e450bf727fc5eae2639c58ba45831ac",
6-
"version": "v4.2.0"
4+
"short_sha": "8c793a1",
5+
"long_sha": "8c793a1c8307dcd92fa657edb2a1e9b184c15278",
6+
"version": "v4.3.0"
77
},
8-
"release": "v4.2.0"
8+
"release": "v4.3.0"
99
}

api.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3101,10 +3101,10 @@ export interface DocumentProperties {
31013101
'address_lines'?: DocumentPropertiesAddressLines;
31023102
/**
31033103
*
3104-
* @type {DocumentPropertiesBarcode}
3104+
* @type {Array<DocumentPropertiesBarcodeInner>}
31053105
* @memberof DocumentProperties
31063106
*/
3107-
'barcode'?: DocumentPropertiesBarcode;
3107+
'barcode'?: Array<DocumentPropertiesBarcodeInner>;
31083108
/**
31093109
*
31103110
* @type {DocumentPropertiesNfc}
@@ -3208,115 +3208,115 @@ export interface DocumentPropertiesAddressLines {
32083208
/**
32093209
*
32103210
* @export
3211-
* @interface DocumentPropertiesBarcode
3211+
* @interface DocumentPropertiesBarcodeInner
32123212
*/
3213-
export interface DocumentPropertiesBarcode {
3213+
export interface DocumentPropertiesBarcodeInner {
32143214
/**
32153215
*
32163216
* @type {string}
3217-
* @memberof DocumentPropertiesBarcode
3217+
* @memberof DocumentPropertiesBarcodeInner
32183218
*/
32193219
'first_name'?: string;
32203220
/**
32213221
*
32223222
* @type {string}
3223-
* @memberof DocumentPropertiesBarcode
3223+
* @memberof DocumentPropertiesBarcodeInner
32243224
*/
32253225
'middle_name'?: string;
32263226
/**
32273227
*
32283228
* @type {string}
3229-
* @memberof DocumentPropertiesBarcode
3229+
* @memberof DocumentPropertiesBarcodeInner
32303230
*/
32313231
'last_name'?: string;
32323232
/**
32333233
*
32343234
* @type {string}
3235-
* @memberof DocumentPropertiesBarcode
3235+
* @memberof DocumentPropertiesBarcodeInner
32363236
*/
32373237
'document_type'?: string;
32383238
/**
32393239
*
32403240
* @type {string}
3241-
* @memberof DocumentPropertiesBarcode
3241+
* @memberof DocumentPropertiesBarcodeInner
32423242
*/
32433243
'date_of_expiry'?: string;
32443244
/**
32453245
*
32463246
* @type {string}
3247-
* @memberof DocumentPropertiesBarcode
3247+
* @memberof DocumentPropertiesBarcodeInner
32483248
*/
32493249
'date_of_birth'?: string;
32503250
/**
32513251
*
32523252
* @type {string}
3253-
* @memberof DocumentPropertiesBarcode
3253+
* @memberof DocumentPropertiesBarcodeInner
32543254
*/
32553255
'issuing_date'?: string;
32563256
/**
32573257
*
32583258
* @type {string}
3259-
* @memberof DocumentPropertiesBarcode
3259+
* @memberof DocumentPropertiesBarcodeInner
32603260
*/
32613261
'address_line_1'?: string;
32623262
/**
32633263
*
32643264
* @type {string}
3265-
* @memberof DocumentPropertiesBarcode
3265+
* @memberof DocumentPropertiesBarcodeInner
32663266
*/
32673267
'address_line_2'?: string;
32683268
/**
32693269
*
32703270
* @type {string}
3271-
* @memberof DocumentPropertiesBarcode
3271+
* @memberof DocumentPropertiesBarcodeInner
32723272
*/
32733273
'address_line_3'?: string;
32743274
/**
32753275
*
32763276
* @type {string}
3277-
* @memberof DocumentPropertiesBarcode
3277+
* @memberof DocumentPropertiesBarcodeInner
32783278
*/
32793279
'address_line_4'?: string;
32803280
/**
32813281
*
32823282
* @type {string}
3283-
* @memberof DocumentPropertiesBarcode
3283+
* @memberof DocumentPropertiesBarcodeInner
32843284
*/
32853285
'address_line_5'?: string;
32863286
/**
32873287
*
32883288
* @type {string}
3289-
* @memberof DocumentPropertiesBarcode
3289+
* @memberof DocumentPropertiesBarcodeInner
32903290
*/
32913291
'issuing_state'?: string;
32923292
/**
32933293
*
32943294
* @type {string}
3295-
* @memberof DocumentPropertiesBarcode
3295+
* @memberof DocumentPropertiesBarcodeInner
32963296
*/
32973297
'class'?: string;
32983298
/**
32993299
*
33003300
* @type {string}
3301-
* @memberof DocumentPropertiesBarcode
3301+
* @memberof DocumentPropertiesBarcodeInner
33023302
*/
33033303
'gender'?: string;
33043304
/**
33053305
*
33063306
* @type {string}
3307-
* @memberof DocumentPropertiesBarcode
3307+
* @memberof DocumentPropertiesBarcodeInner
33083308
*/
33093309
'issuing_country'?: string;
33103310
/**
33113311
*
33123312
* @type {string}
3313-
* @memberof DocumentPropertiesBarcode
3313+
* @memberof DocumentPropertiesBarcodeInner
33143314
*/
33153315
'document_number'?: string;
33163316
/**
33173317
*
33183318
* @type {string}
3319-
* @memberof DocumentPropertiesBarcode
3319+
* @memberof DocumentPropertiesBarcodeInner
33203320
*/
33213321
'real_id_classification'?: string;
33223322
}
@@ -4423,10 +4423,10 @@ export interface DocumentWithDriverVerificationReportAllOfProperties {
44234423
'address_lines'?: DocumentPropertiesAddressLines;
44244424
/**
44254425
*
4426-
* @type {DocumentPropertiesBarcode}
4426+
* @type {Array<DocumentPropertiesBarcodeInner>}
44274427
* @memberof DocumentWithDriverVerificationReportAllOfProperties
44284428
*/
4429-
'barcode'?: DocumentPropertiesBarcode;
4429+
'barcode'?: Array<DocumentPropertiesBarcodeInner>;
44304430
/**
44314431
*
44324432
* @type {DocumentPropertiesNfc}

configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class Configuration {
101101
this.baseOptions = {...{ timeout: 30_000 },
102102
...param.baseOptions,
103103
...{ headers: {...param.baseOptions?.headers,
104-
...{'User-Agent': 'onfido-node/4.2.0'}}}};
104+
...{'User-Agent': 'onfido-node/4.3.0'}}}};
105105
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
106106
}
107107

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onfido/api",
3-
"version": "4.2.0",
3+
"version": "4.3.0",
44
"description": "Node.js library for the Onfido API",
55
"author": "OpenAPI-Generator Contributors",
66
"repository": {

test/resources/report-schemas.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ it("schema of document with address information report should be valid", async (
109109
})
110110
);
111111

112-
expect(document_report.properties.barcode.document_type).toEqual(
112+
expect(document_report.properties.barcode[0].document_type).toEqual(
113113
"driving_licence"
114114
);
115115
}, 30000);

test/resources/workflow-runs.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,6 @@ it("downloads a timeline file", async () => {
147147
]);
148148

149149
expect(file.status).toEqual(200);
150-
expect(file.headers["content-type"]).toEqual("binary/octet-stream");
150+
expect(file.headers["content-type"]).toEqual("application/pdf");
151151
expect(file.data.buffer.slice(0, 5)).toEqual("%PDF-");
152152
}, 60000);

0 commit comments

Comments
 (0)