Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh onfido-node after onfido-openapi-spec update (8c793a1) #152

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);