@bahmni/reports-app 0.0.1-dev.455 → 0.0.1-dev.456
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DocumentsTable-DZ1zyEeJ-DABASslp.js → DocumentsTable-CIA5vIKF-CVrLUp5Y.js} +1 -1
- package/dist/{FormsTable-C1Yy7yQt-CNwCapgX.js → FormsTable-CNZ9uLEn-DyvUJx9E.js} +28 -28
- package/dist/{LNWAZHJI-pbosfkqW.js → LNWAZHJI-BV9OuY8B.js} +10 -10
- package/dist/{MWZ6AO7Z-a_vR_MdQ.js → MWZ6AO7Z-DZrPc2nb.js} +7 -7
- package/dist/{Observations-D079FoDG-BGwIPW_z.js → Observations-DrtP4xat-BdOHJEk6.js} +3 -3
- package/dist/ReportsPage-COf6FbtZ.js +887 -0
- package/dist/{YPM2AS64-Cp3d5iX-.js → YPM2AS64-CFVt--4j.js} +1 -1
- package/dist/components/ReportList/ReportList.d.ts.map +1 -1
- package/dist/components/ReportList/ReportsTable.d.ts +1 -0
- package/dist/components/ReportList/ReportsTable.d.ts.map +1 -1
- package/dist/components/ReportList/TableFilters.d.ts.map +1 -1
- package/dist/components/ReportList/appConfigSchema.json.d.ts +4 -0
- package/dist/components/ReportList/constants.d.ts +2 -1
- package/dist/components/ReportList/constants.d.ts.map +1 -1
- package/dist/components/ReportList/models.d.ts +3 -0
- package/dist/components/ReportList/models.d.ts.map +1 -1
- package/dist/components/ReportList/utils.d.ts +4 -0
- package/dist/components/ReportList/utils.d.ts.map +1 -1
- package/dist/hooks/useQueueReport.d.ts +7 -0
- package/dist/hooks/useQueueReport.d.ts.map +1 -0
- package/dist/hooks/useReportTableState.d.ts +10 -2
- package/dist/hooks/useReportTableState.d.ts.map +1 -1
- package/dist/hooks/useRunReport.d.ts +1 -1
- package/dist/hooks/useRunReport.d.ts.map +1 -1
- package/dist/{index-j-6IAmqw.js → index-DlwV4zZm.js} +28614 -28575
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/locales/locale_en.json +16 -0
- package/dist/locales/locale_es.json +16 -0
- package/dist/utils/reportAuditEvent.d.ts +8 -0
- package/dist/utils/reportAuditEvent.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/ReportsPage-CcVV2dV0.js +0 -666
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { av as we, aw as z, ax as xt, ay as B, at as q, au as y, az as Ro, aA as ye, aB as R, aC as _, aD as k, aE as N, aF as A, aG as bs, aH as ir, aI as $e, aJ as U, aK as Hn, aL as Vn, aM as dt, aN as D, aO as xs, aP as cn, aQ as Be, aR as ws, aS as qt, aT as zt, aU as $s, aV as Cs, aW as $n, aX as Ss, aY as Nr, aZ as Bt, a_ as zo, a$ as ks, b0 as Es, b1 as j, b2 as Ur, b3 as Ms, b4 as Ds, b5 as sr, b6 as As, b7 as Ts, b8 as zn, b9 as Fs, ba as Is, bb as Z, bc as Ps, bd as Ls } from "./index-DlwV4zZm.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportList.d.ts","sourceRoot":"","sources":["../../../src/components/ReportList/ReportList.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAsB5D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ReportList.d.ts","sourceRoot":"","sources":["../../../src/components/ReportList/ReportList.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAsB5D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EA6I9B,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -7,6 +7,7 @@ interface ReportsTableProps {
|
|
|
7
7
|
appliedFilters: AppliedFilters;
|
|
8
8
|
availableFormats: FormatKey[];
|
|
9
9
|
defaultPaperSize?: string;
|
|
10
|
+
enableReportQueue?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare const ReportsTable: React.NamedExoticComponent<ReportsTableProps>;
|
|
12
13
|
export default ReportsTable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportsTable.d.ts","sourceRoot":"","sources":["../../../src/components/ReportList/ReportsTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReportsTable.d.ts","sourceRoot":"","sources":["../../../src/components/ReportList/ReportsTable.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5E,UAAU,iBAAiB;IACzB,OAAO,EAAE,KAAK,CAAC,gBAAgB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,cAAc,EAAE,cAAc,CAAC;IAC/B,gBAAgB,EAAE,SAAS,EAAE,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,YAAY,+CAgPxB,CAAC;AAIF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableFilters.d.ts","sourceRoot":"","sources":["../../../src/components/ReportList/TableFilters.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,UAAU,iBAAiB;IACzB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,c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AE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IACpD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8FpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -16,6 +16,10 @@ declare const _default: {
|
|
|
16
16
|
"paperSize": {
|
|
17
17
|
"type": "string",
|
|
18
18
|
"description": "Default paper size for generated reports (e.g., A4)"
|
|
19
|
+
},
|
|
20
|
+
"enableReportQueue": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "Whether reports can be queued (run asynchronously) in addition to running immediately"
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
"additionalProperties": true
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FormatKey } from './models';
|
|
2
2
|
export declare const FORMAT_I18N_KEYS: Record<FormatKey, string>;
|
|
3
|
-
export type DatePreset = 'TODAY' | 'THIS_MONTH' | 'LAST_7_DAYS';
|
|
3
|
+
export type DatePreset = 'TODAY' | 'THIS_MONTH' | 'PREVIOUS_MONTH' | 'THIS_QUARTER' | 'THIS_YEAR' | 'LAST_7_DAYS' | 'LAST_30_DAYS';
|
|
4
4
|
export declare const DATE_PRESETS: DatePreset[];
|
|
5
5
|
export declare const DATE_PRESET_I18N_KEYS: Record<DatePreset, string>;
|
|
6
6
|
export declare const QUERY_KEYS: {
|
|
7
7
|
readonly reportsConfig: readonly ["reportsConfig"];
|
|
8
8
|
readonly reportsAppConfig: readonly ["reportsAppConfig"];
|
|
9
9
|
};
|
|
10
|
+
export declare const CUSTOM_EXCEL_TEMPLATE_ACCEPT: string[];
|
|
10
11
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/ReportList/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAOtD,CAAC;AAEF,MAAM,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/ReportList/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAOtD,CAAC;AAEF,MAAM,MAAM,UAAU,GAClB,OAAO,GACP,YAAY,GACZ,gBAAgB,GAChB,cAAc,GACd,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB,eAAO,MAAM,YAAY,EAAE,UAAU,EAQpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAQ5D,CAAC;AAEF,eAAO,MAAM,UAAU;;;CAGb,CAAC;AAEX,eAAO,MAAM,4BAA4B,UAAoB,CAAC"}
|
|
@@ -17,12 +17,15 @@ export interface ReportsAppConfig {
|
|
|
17
17
|
config?: {
|
|
18
18
|
supportedFormats?: string[];
|
|
19
19
|
paperSize?: string;
|
|
20
|
+
enableReportQueue?: boolean;
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
export interface ReportFilters {
|
|
23
24
|
startDate: Date | null;
|
|
24
25
|
endDate: Date | null;
|
|
25
26
|
format: FormatKey | null;
|
|
27
|
+
/** Uploaded custom-Excel template location, as returned by the upload endpoint. */
|
|
28
|
+
templateLocation?: string | null;
|
|
26
29
|
}
|
|
27
30
|
/** `version` bumps on every Apply/Reset so rows re-sync even when values are unchanged. */
|
|
28
31
|
export interface AppliedFilters extends ReportFilters {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/components/ReportList/models.ts"],"names":[],"mappings":"AAAA,OAA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MAAM,EAAE,gBAAgB,CAAC,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE;QACP,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,CAAC;CACH;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,2FAA2F;AAC3F,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;IAC3C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3D,kBAAkB,EAAE,KAAK,CAAC,gBAAgB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC9D"}
|
|
@@ -22,7 +22,11 @@ export interface ValidateReportRunInput {
|
|
|
22
22
|
format: FormatKey | null;
|
|
23
23
|
startDate: Date | null;
|
|
24
24
|
endDate: Date | null;
|
|
25
|
+
templateLocation?: string | null;
|
|
25
26
|
}
|
|
27
|
+
export declare const resolveTemplateLocation: (report: ReportDefinition & {
|
|
28
|
+
id: string;
|
|
29
|
+
}, templateLocation?: string | null) => string | null;
|
|
26
30
|
export declare const validateReportRun: (input: ValidateReportRunInput, t: (key: string, options?: {
|
|
27
31
|
reportName?: string;
|
|
28
32
|
}) => string) => ReportValidationError | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/ReportList/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/ReportList/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,kBAAkB,CAAC;AAS1B,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,mBAAmB,GAC9B,gBAAgB,aAAa,EAAE,GAAG,IAAI,EACtC,oBAAoB,MAAM,KACzB,OAGF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,SAAS,KAAK,CAAC,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,EACjD,gBAAgB,aAAa,EAAE,GAAG,IAAI,KACrC,KAAK,CAAC,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAGvC,CAAC;AAEJ,eAAO,MAAM,iBAAiB,GAAI,QAAQ,gBAAgB,KAAG,OACjB,CAAC;AAE7C,eAAO,MAAM,6BAA6B,GACxC,SAAS,KAAK,CAAC,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,KAChD,cAGD,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAClC,oBAAoB,MAAM,EAAE,KAC3B,SAAS,EAQX,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,QAAQ,UAAU,KAAG,CAAC,IAAI,EAAE,IAAI,CAoB7D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC5B,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,MAC1B,KAAK,SAAS,GAAG,IAAI,KAAG,MACY,CAAC;AAExC,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,gBAAgB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,uBAAuB,GAClC,QAAQ,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EACzC,mBAAmB,MAAM,GAAG,IAAI,KAC/B,MAAM,GAAG,IACkD,CAAC;AAE/D,eAAO,MAAM,iBAAiB,GAC5B,OAAO,sBAAsB,EAC7B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,KAC5D,qBAAqB,GAAG,IAqE1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,aAAa,KACpB,KAAK,CAAC,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAIrC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReportDefinition, FormatKey } from '../components/ReportList/models';
|
|
2
|
+
export declare const useQueueReport: () => {
|
|
3
|
+
queueReport: (report: ReportDefinition & {
|
|
4
|
+
id: string;
|
|
5
|
+
}, format: FormatKey, startDate?: Date | null, endDate?: Date | null, defaultPaperSize?: string, macroTemplateLocation?: string | null) => Promise<boolean>;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useQueueReport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useQueueReport.d.ts","sourceRoot":"","sources":["../../src/hooks/useQueueReport.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,SAAS,EACV,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,cAAc;0BAKb,gBAAgB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,UACjC,SAAS,cACL,IAAI,GAAG,IAAI,YACb,IAAI,GAAG,IAAI,qBACF,MAAM,0BACD,MAAM,GAAG,IAAI,KACpC,OAAO,CAAC,OAAO,CAAC;CAoCtB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppliedFilters, ReportDefinition, ReportFilters } from '../components/ReportList/models';
|
|
1
|
+
import { AppliedFilters, FormatKey, ReportDefinition, ReportFilters } from '../components/ReportList/models';
|
|
2
2
|
export interface RowErrors {
|
|
3
3
|
format?: string;
|
|
4
4
|
startDate?: string;
|
|
@@ -6,14 +6,22 @@ export interface RowErrors {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const useReportTableState: (reports: Array<ReportDefinition & {
|
|
8
8
|
id: string;
|
|
9
|
-
}>, appliedFilters: AppliedFilters, defaultPaperSize?: string) => {
|
|
9
|
+
}>, appliedFilters: AppliedFilters, availableFormats: FormatKey[], defaultPaperSize?: string) => {
|
|
10
10
|
rowFilters: (id: string) => ReportFilters;
|
|
11
11
|
errors: (id: string) => RowErrors;
|
|
12
12
|
isRunning: (id: string) => boolean;
|
|
13
|
+
isQueuing: (id: string) => boolean;
|
|
14
|
+
isUploadingTemplate: (id: string) => boolean;
|
|
13
15
|
updateRow: (id: string, patch: Partial<ReportFilters>) => void;
|
|
14
16
|
clearRowFieldError: (id: string, field: keyof RowErrors) => void;
|
|
15
17
|
handleRunReport: (report: ReportDefinition & {
|
|
16
18
|
id: string;
|
|
17
19
|
}) => void;
|
|
20
|
+
handleQueueReport: (report: ReportDefinition & {
|
|
21
|
+
id: string;
|
|
22
|
+
}) => Promise<void>;
|
|
23
|
+
handleTemplateUpload: (report: ReportDefinition & {
|
|
24
|
+
id: string;
|
|
25
|
+
}, file: File) => Promise<void>;
|
|
18
26
|
};
|
|
19
27
|
//# sourceMappingURL=useReportTableState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReportTableState.d.ts","sourceRoot":"","sources":["../../src/hooks/useReportTableState.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,
|
|
1
|
+
{"version":3,"file":"useReportTableState.d.ts","sourceRoot":"","sources":["../../src/hooks/useReportTableState.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,aAAa,EACd,MAAM,iCAAiC,CAAC;AASzC,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,GAC9B,SAAS,KAAK,CAAC,gBAAgB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,EACjD,gBAAgB,cAAc,EAC9B,kBAAkB,SAAS,EAAE,EAC7B,mBAAmB,MAAM;qBAmBD,MAAM,KAAG,aAAa;iBA8M/B,MAAM;oBACH,MAAM;oBACN,MAAM;8BACI,MAAM;oBA1MX,MAAM,SAAS,OAAO,CAAC,aAAa,CAAC;6BAM5B,MAAM,SAAS,MAAM,SAAS;8BAuG7B,gBAAgB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;gCA+BxD,gBAAgB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;mCAkCjC,gBAAgB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,QACnC,IAAI;CAkCb,CAAC"}
|
|
@@ -2,6 +2,6 @@ import { ReportDefinition, FormatKey } from '../components/ReportList/models';
|
|
|
2
2
|
export declare const useRunReport: () => {
|
|
3
3
|
runReport: (report: ReportDefinition & {
|
|
4
4
|
id: string;
|
|
5
|
-
}, format: FormatKey, startDate?: Date | null, endDate?: Date | null, defaultPaperSize?: string) => boolean;
|
|
5
|
+
}, format: FormatKey, startDate?: Date | null, endDate?: Date | null, defaultPaperSize?: string, macroTemplateLocation?: string | null) => boolean;
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=useRunReport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRunReport.d.ts","sourceRoot":"","sources":["../../src/hooks/useRunReport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRunReport.d.ts","sourceRoot":"","sources":["../../src/hooks/useRunReport.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,SAAS,EACV,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,YAAY;wBAGX,gBAAgB,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,UACjC,SAAS,cACL,IAAI,GAAG,IAAI,YACb,IAAI,GAAG,IAAI,qBACF,MAAM,0BACD,MAAM,GAAG,IAAI,KACpC,OAAO;CAwCb,CAAC"}
|