From 1d6db99c0eb5b66fd7ce9583f97469a33cf95634 Mon Sep 17 00:00:00 2001 From: Adam Abundis Date: Thu, 19 Oct 2023 23:17:44 -0700 Subject: [PATCH] feat: Add isPublic property to ReportSettings (#313) --- src/reports/index.ts | 1 + tests/reports/api.test.ts | 3 +++ 2 files changed, 4 insertions(+) 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); });