Skip to content

Commit

Permalink
Merge pull request #152 from onfido/release-upgrade
Browse files Browse the repository at this point in the history
Refresh onfido-node after onfido-openapi-spec update (8c793a1)
  • Loading branch information
dvacca-onfido authored Nov 27, 2024
2 parents aa8c0fc + e45f901 commit 0554186
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 46 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": "c72181c",
"long_sha": "c72181cc5e450bf727fc5eae2639c58ba45831ac",
"version": "v4.2.0"
"short_sha": "8c793a1",
"long_sha": "8c793a1c8307dcd92fa657edb2a1e9b184c15278",
"version": "v4.3.0"
},
"release": "v4.2.0"
"release": "v4.3.0"
}
48 changes: 24 additions & 24 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3101,10 +3101,10 @@ export interface DocumentProperties {
'address_lines'?: DocumentPropertiesAddressLines;
/**
*
* @type {DocumentPropertiesBarcode}
* @type {Array<DocumentPropertiesBarcodeInner>}
* @memberof DocumentProperties
*/
'barcode'?: DocumentPropertiesBarcode;
'barcode'?: Array<DocumentPropertiesBarcodeInner>;
/**
*
* @type {DocumentPropertiesNfc}
Expand Down Expand Up @@ -3208,115 +3208,115 @@ export interface DocumentPropertiesAddressLines {
/**
*
* @export
* @interface DocumentPropertiesBarcode
* @interface DocumentPropertiesBarcodeInner
*/
export interface DocumentPropertiesBarcode {
export interface DocumentPropertiesBarcodeInner {
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'first_name'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'middle_name'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'last_name'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'document_type'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'date_of_expiry'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'date_of_birth'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'issuing_date'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'address_line_1'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'address_line_2'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'address_line_3'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'address_line_4'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'address_line_5'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'issuing_state'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'class'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'gender'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'issuing_country'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'document_number'?: string;
/**
*
* @type {string}
* @memberof DocumentPropertiesBarcode
* @memberof DocumentPropertiesBarcodeInner
*/
'real_id_classification'?: string;
}
Expand Down Expand Up @@ -4423,10 +4423,10 @@ export interface DocumentWithDriverVerificationReportAllOfProperties {
'address_lines'?: DocumentPropertiesAddressLines;
/**
*
* @type {DocumentPropertiesBarcode}
* @type {Array<DocumentPropertiesBarcodeInner>}
* @memberof DocumentWithDriverVerificationReportAllOfProperties
*/
'barcode'?: DocumentPropertiesBarcode;
'barcode'?: Array<DocumentPropertiesBarcodeInner>;
/**
*
* @type {DocumentPropertiesNfc}
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/4.2.0'}}}};
...{'User-Agent': 'onfido-node/4.3.0'}}}};
this.formDataCtor = param.formDataCtor || require('form-data'); // Injiect form data constructor (if needed)
}

Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onfido/api",
"version": "4.2.0",
"version": "4.3.0",
"description": "Node.js library for the Onfido API",
"author": "OpenAPI-Generator Contributors",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion test/resources/report-schemas.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ it("schema of document with address information report should be valid", async (
})
);

expect(document_report.properties.barcode.document_type).toEqual(
expect(document_report.properties.barcode[0].document_type).toEqual(
"driving_licence"
);
}, 30000);
2 changes: 1 addition & 1 deletion test/resources/workflow-runs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,6 @@ it("downloads a timeline file", async () => {
]);

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

0 comments on commit 0554186

Please sign in to comment.