diff --git a/src/reports/index.ts b/src/reports/index.ts index 3153c9e5e..e9d643d25 100644 --- a/src/reports/index.ts +++ b/src/reports/index.ts @@ -328,6 +328,7 @@ export namespace ReportsModel { currency: Currency; unit: Unit; config: ReportSettinsConfig; + isPublic: boolean; createdAt: string; updatedAt: string; } diff --git a/tests/reports/api.test.ts b/tests/reports/api.test.ts index a19ade6e5..111b5489f 100644 --- a/tests/reports/api.test.ts +++ b/tests/reports/api.test.ts @@ -31,6 +31,7 @@ describe('Reports API', () => { baseRates: { fullTranslation: 0, proofread: 0 }, netRateSchemes: [], }; + const isPublic = false; beforeAll(() => { scope = nock(api.url) @@ -170,6 +171,7 @@ describe('Reports API', () => { currency, unit, config, + isPublic, }, { reqheaders: { @@ -291,6 +293,7 @@ describe('Reports API', () => { currency, name: reportName, unit, + isPublic, }); expect(template.data.id).toBe(reportSettingsTemplateId); });