@ministryofjustice/hmpps-digital-prison-reporting-frontend 4.27.0 → 4.28.0
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/dpr/assets/app.js.map +2 -2
- package/dpr/components/_async/async-filters-form/sortByTemplate.js +60 -1
- package/dpr/components/_async/async-filters-form/sortByTemplate.js.map +2 -2
- package/dpr/components/_async/async-filters-form/types.d.js +16 -1
- package/dpr/components/_async/async-filters-form/types.d.js.map +2 -2
- package/dpr/components/_async/async-filters-form/utils.js +180 -1
- package/dpr/components/_async/async-filters-form/utils.js.map +2 -2
- package/dpr/components/_catalogue/catalogue/types.js +16 -1
- package/dpr/components/_catalogue/catalogue/types.js.map +2 -2
- package/dpr/components/_catalogue/catalogue/utils.js +83 -1
- package/dpr/components/_catalogue/catalogue/utils.js.map +2 -2
- package/dpr/components/_catalogue/catalogue-list/utils.js +140 -1
- package/dpr/components/_catalogue/catalogue-list/utils.js.map +2 -2
- package/dpr/components/_charts/chart/Chart.js +99 -1
- package/dpr/components/_charts/chart/Chart.js.map +2 -2
- package/dpr/components/_charts/chart/ChartColours.js +61 -1
- package/dpr/components/_charts/chart/ChartColours.js.map +2 -2
- package/dpr/components/_charts/chart/ChartTimeseries.js +101 -1
- package/dpr/components/_charts/chart/ChartTimeseries.js.map +2 -2
- package/dpr/components/_charts/chart/bar/BarChart.js +193 -1
- package/dpr/components/_charts/chart/bar/BarChart.js.map +2 -2
- package/dpr/components/_charts/chart/bar/types.js +16 -1
- package/dpr/components/_charts/chart/bar/types.js.map +2 -2
- package/dpr/components/_charts/chart/bar/validate.js +73 -1
- package/dpr/components/_charts/chart/bar/validate.js.map +2 -2
- package/dpr/components/_charts/chart/bar-timeseries/BarTimeseriesChart.js +80 -1
- package/dpr/components/_charts/chart/bar-timeseries/BarTimeseriesChart.js.map +2 -2
- package/dpr/components/_charts/chart/bar-timeseries/types.js +16 -1
- package/dpr/components/_charts/chart/bar-timeseries/types.js.map +2 -2
- package/dpr/components/_charts/chart/bar-timeseries/validate.js +48 -1
- package/dpr/components/_charts/chart/bar-timeseries/validate.js.map +2 -2
- package/dpr/components/_charts/chart/buckets/Buckets.js +194 -1
- package/dpr/components/_charts/chart/buckets/Buckets.js.map +2 -2
- package/dpr/components/_charts/chart/buckets/types.js +16 -1
- package/dpr/components/_charts/chart/buckets/types.js.map +2 -2
- package/dpr/components/_charts/chart/buckets/validate.js +40 -1
- package/dpr/components/_charts/chart/buckets/validate.js.map +2 -2
- package/dpr/components/_charts/chart/chart-config.js +62 -1
- package/dpr/components/_charts/chart/chart-config.js.map +2 -2
- package/dpr/components/_charts/chart/doughnut/DoughnutChart.js +96 -1
- package/dpr/components/_charts/chart/doughnut/DoughnutChart.js.map +2 -2
- package/dpr/components/_charts/chart/doughnut/types.js +16 -1
- package/dpr/components/_charts/chart/doughnut/types.js.map +2 -2
- package/dpr/components/_charts/chart/doughnut/validate.js +48 -1
- package/dpr/components/_charts/chart/doughnut/validate.js.map +2 -2
- package/dpr/components/_charts/chart/heatmap/HeatmapChart.js +213 -1
- package/dpr/components/_charts/chart/heatmap/HeatmapChart.js.map +2 -2
- package/dpr/components/_charts/chart/heatmap/types.js +16 -1
- package/dpr/components/_charts/chart/heatmap/types.js.map +2 -2
- package/dpr/components/_charts/chart/heatmap/validate.js +40 -1
- package/dpr/components/_charts/chart/heatmap/validate.js.map +2 -2
- package/dpr/components/_charts/chart/line/LineChart.js +107 -1
- package/dpr/components/_charts/chart/line/LineChart.js.map +2 -2
- package/dpr/components/_charts/chart/line/types.js +16 -1
- package/dpr/components/_charts/chart/line/types.js.map +2 -2
- package/dpr/components/_charts/chart/line/validate.js +48 -1
- package/dpr/components/_charts/chart/line/validate.js.map +2 -2
- package/dpr/components/_charts/chart/line-timeseries/LineTimeseriesChart.js +81 -1
- package/dpr/components/_charts/chart/line-timeseries/LineTimeseriesChart.js.map +2 -2
- package/dpr/components/_charts/chart/line-timeseries/types.js +16 -1
- package/dpr/components/_charts/chart/line-timeseries/types.js.map +2 -2
- package/dpr/components/_charts/chart/line-timeseries/validate.js +48 -1
- package/dpr/components/_charts/chart/line-timeseries/validate.js.map +2 -2
- package/dpr/components/_charts/utils.js +240 -1
- package/dpr/components/_charts/utils.js.map +2 -2
- package/dpr/components/_dashboards/dashboard-list/types.js +16 -1
- package/dpr/components/_dashboards/dashboard-list/types.js.map +2 -2
- package/dpr/components/_dashboards/dashboard-list/utils.js +170 -1
- package/dpr/components/_dashboards/dashboard-list/utils.js.map +2 -2
- package/dpr/components/_dashboards/dashboard-list/validate.js +43 -1
- package/dpr/components/_dashboards/dashboard-list/validate.js.map +2 -2
- package/dpr/components/_dashboards/dashboard-visualisation/Validate.js +95 -1
- package/dpr/components/_dashboards/dashboard-visualisation/Validate.js.map +2 -2
- package/dpr/components/_dashboards/dashboard-visualisation/types.js +40 -1
- package/dpr/components/_dashboards/dashboard-visualisation/types.js.map +2 -2
- package/dpr/components/_dashboards/scorecard/Scorecard.js +176 -1
- package/dpr/components/_dashboards/scorecard/Scorecard.js.map +2 -2
- package/dpr/components/_dashboards/scorecard/types.js +16 -1
- package/dpr/components/_dashboards/scorecard/types.js.map +2 -2
- package/dpr/components/_dashboards/scorecard/utils.js +61 -1
- package/dpr/components/_dashboards/scorecard/utils.js.map +2 -2
- package/dpr/components/_dashboards/scorecard/validate.js +50 -1
- package/dpr/components/_dashboards/scorecard/validate.js.map +2 -2
- package/dpr/components/_dashboards/scorecard-group/ScorecardGroup.js +212 -1
- package/dpr/components/_dashboards/scorecard-group/ScorecardGroup.js.map +2 -2
- package/dpr/components/_dashboards/scorecard-group/types.js +16 -1
- package/dpr/components/_dashboards/scorecard-group/types.js.map +2 -2
- package/dpr/components/_dashboards/scorecard-group/validate.js +50 -1
- package/dpr/components/_dashboards/scorecard-group/validate.js.map +2 -2
- package/dpr/components/_filters/filter-input/enum.js +38 -1
- package/dpr/components/_filters/filter-input/enum.js.map +2 -2
- package/dpr/components/_filters/filter-input/filters.js +37 -1
- package/dpr/components/_filters/filter-input/filters.js.map +2 -2
- package/dpr/components/_filters/filter-input/types.d.js +16 -1
- package/dpr/components/_filters/filter-input/types.d.js.map +2 -2
- package/dpr/components/_filters/filters-selected/utils.js +314 -1
- package/dpr/components/_filters/filters-selected/utils.js.map +2 -2
- package/dpr/components/_filters/filtersTypeEnum.js +32 -1
- package/dpr/components/_filters/filtersTypeEnum.js.map +2 -2
- package/dpr/components/_filters/types.d.js +16 -1
- package/dpr/components/_filters/types.d.js.map +2 -2
- package/dpr/components/_filters/utils.js +385 -1
- package/dpr/components/_filters/utils.js.map +2 -2
- package/dpr/components/_inputs/autocomplete-text-input/utils.js +45 -1
- package/dpr/components/_inputs/autocomplete-text-input/utils.js.map +2 -2
- package/dpr/components/_inputs/date-input/utils.js +88 -1
- package/dpr/components/_inputs/date-input/utils.js.map +2 -2
- package/dpr/components/_inputs/date-range/types.js +38 -1
- package/dpr/components/_inputs/date-range/types.js.map +2 -2
- package/dpr/components/_inputs/date-range/utils.js +229 -1
- package/dpr/components/_inputs/date-range/utils.js.map +2 -2
- package/dpr/components/_inputs/granular-date-range/types.js +70 -1
- package/dpr/components/_inputs/granular-date-range/types.js.map +2 -2
- package/dpr/components/_inputs/granular-date-range/utils.js +445 -1
- package/dpr/components/_inputs/granular-date-range/utils.js.map +2 -2
- package/dpr/components/_inputs/multi-select/utils.js +88 -1
- package/dpr/components/_inputs/multi-select/utils.js.map +2 -2
- package/dpr/components/_inputs/start-end-date/utils.js +84 -1
- package/dpr/components/_inputs/start-end-date/utils.js.map +2 -2
- package/dpr/components/_reports/report-actions/actionsTemplate.js +59 -1
- package/dpr/components/_reports/report-actions/actionsTemplate.js.map +2 -2
- package/dpr/components/_reports/report-actions/types.d.js +16 -1
- package/dpr/components/_reports/report-actions/types.d.js.map +2 -2
- package/dpr/components/_reports/report-actions/utils.js +97 -1
- package/dpr/components/_reports/report-actions/utils.js.map +2 -2
- package/dpr/components/_reports/report-columns-form/types.d.js +16 -1
- package/dpr/components/_reports/report-columns-form/types.d.js.map +2 -2
- package/dpr/components/_reports/report-columns-form/utils.js +65 -1
- package/dpr/components/_reports/report-columns-form/utils.js.map +2 -2
- package/dpr/components/_reports/report-data-table/types.d.js +16 -1
- package/dpr/components/_reports/report-data-table/types.d.js.map +2 -2
- package/dpr/components/_reports/report-data-table/utils.js +122 -1
- package/dpr/components/_reports/report-data-table/utils.js.map +2 -2
- package/dpr/components/_reports/report-pagination/types.d.js +16 -1
- package/dpr/components/_reports/report-pagination/types.d.js.map +2 -2
- package/dpr/components/_reports/report-pagination/utils.js +105 -1
- package/dpr/components/_reports/report-pagination/utils.js.map +2 -2
- package/dpr/components/_reports/report-totals/utils.js +42 -1
- package/dpr/components/_reports/report-totals/utils.js.map +2 -2
- package/dpr/components/card-group/utils.js +57 -1
- package/dpr/components/card-group/utils.js.map +2 -2
- package/dpr/components/report-list/defaultTokenProvider.js +36 -1
- package/dpr/components/report-list/defaultTokenProvider.js.map +2 -2
- package/dpr/components/report-list/types.d.js +16 -1
- package/dpr/components/report-list/types.d.js.map +2 -2
- package/dpr/components/report-list/utils.js +238 -1
- package/dpr/components/report-list/utils.js.map +2 -2
- package/dpr/components/show-more/utils.js +38 -3
- package/dpr/components/show-more/utils.js.map +2 -2
- package/dpr/components/user-reports/bookmarks/utils.js +198 -1
- package/dpr/components/user-reports/bookmarks/utils.js.map +2 -2
- package/dpr/components/user-reports/requested/utils.js +65 -1
- package/dpr/components/user-reports/requested/utils.js.map +2 -2
- package/dpr/components/user-reports/types.d.js +16 -1
- package/dpr/components/user-reports/types.d.js.map +2 -2
- package/dpr/components/user-reports/utils.js +365 -1
- package/dpr/components/user-reports/utils.js.map +2 -2
- package/dpr/components/user-reports/viewed/utils.js +37 -1
- package/dpr/components/user-reports/viewed/utils.js.map +2 -2
- package/dpr/data/agentConfig.js +35 -1
- package/dpr/data/agentConfig.js.map +2 -2
- package/dpr/data/dashboardClient.js +108 -1
- package/dpr/data/dashboardClient.js.map +2 -2
- package/dpr/data/dprReportingClient.js +55 -1
- package/dpr/data/dprReportingClient.js.map +2 -2
- package/dpr/data/missingReportClient.js +55 -1
- package/dpr/data/missingReportClient.js.map +2 -2
- package/dpr/data/productCollectionClient.js +58 -1
- package/dpr/data/productCollectionClient.js.map +2 -2
- package/dpr/data/reportDataStore.js +77 -1
- package/dpr/data/reportDataStore.js.map +2 -2
- package/dpr/data/reportingClient.js +173 -1
- package/dpr/data/reportingClient.js.map +2 -2
- package/dpr/data/restClient.js +143 -1
- package/dpr/data/restClient.js.map +2 -2
- package/dpr/data/types.d.js +16 -1
- package/dpr/data/types.d.js.map +2 -2
- package/dpr/middleware/reportAuthoriser.js +63 -1
- package/dpr/middleware/reportAuthoriser.js.map +2 -2
- package/dpr/middleware/setUpDprResources.js +173 -1
- package/dpr/middleware/setUpDprResources.js.map +2 -2
- package/dpr/middleware/setUpNestedRoute.js +35 -1
- package/dpr/middleware/setUpNestedRoute.js.map +2 -2
- package/dpr/routes/index.js +50 -1
- package/dpr/routes/index.js.map +2 -2
- package/dpr/routes/journeys/api-failures.cy.js +295 -1
- package/dpr/routes/journeys/api-failures.cy.js.map +2 -2
- package/dpr/routes/journeys/download-report/controller.js +65 -1
- package/dpr/routes/journeys/download-report/controller.js.map +2 -2
- package/dpr/routes/journeys/download-report/request-download/form/controller.js +98 -1
- package/dpr/routes/journeys/download-report/request-download/form/controller.js.map +2 -2
- package/dpr/routes/journeys/download-report/request-download/form/routes.js +50 -1
- package/dpr/routes/journeys/download-report/request-download/form/routes.js.map +2 -2
- package/dpr/routes/journeys/download-report/request-download/form/submitted/controller.js +68 -1
- package/dpr/routes/journeys/download-report/request-download/form/submitted/controller.js.map +2 -2
- package/dpr/routes/journeys/download-report/request-download/form/submitted/routes.js +47 -1
- package/dpr/routes/journeys/download-report/request-download/form/submitted/routes.js.map +2 -2
- package/dpr/routes/journeys/download-report/request-download/form/submitted/tests.cy.js +17 -1
- package/dpr/routes/journeys/download-report/request-download/form/submitted/tests.cy.js.map +1 -1
- package/dpr/routes/journeys/download-report/request-download/form/tests.cy.js +24 -1
- package/dpr/routes/journeys/download-report/request-download/form/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/download-report/request-download/routes.js +46 -1
- package/dpr/routes/journeys/download-report/request-download/routes.js.map +2 -2
- package/dpr/routes/journeys/download-report/request-download/service.js +90 -1
- package/dpr/routes/journeys/download-report/request-download/service.js.map +2 -2
- package/dpr/routes/journeys/download-report/routes.js +63 -1
- package/dpr/routes/journeys/download-report/routes.js.map +2 -2
- package/dpr/routes/journeys/download-report/tests.cy.js +104 -1
- package/dpr/routes/journeys/download-report/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/download-report/utils.js +196 -1
- package/dpr/routes/journeys/download-report/utils.js.map +2 -2
- package/dpr/routes/journeys/my-reports/bookmarks/controller.js +58 -1
- package/dpr/routes/journeys/my-reports/bookmarks/controller.js.map +2 -2
- package/dpr/routes/journeys/my-reports/bookmarks/list/controller.js +56 -1
- package/dpr/routes/journeys/my-reports/bookmarks/list/controller.js.map +2 -2
- package/dpr/routes/journeys/my-reports/bookmarks/list/routes.js +47 -1
- package/dpr/routes/journeys/my-reports/bookmarks/list/routes.js.map +2 -2
- package/dpr/routes/journeys/my-reports/bookmarks/list/tests.cy.js +32 -1
- package/dpr/routes/journeys/my-reports/bookmarks/list/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/my-reports/bookmarks/routes.js +49 -1
- package/dpr/routes/journeys/my-reports/bookmarks/routes.js.map +2 -2
- package/dpr/routes/journeys/my-reports/bookmarks/service.js +123 -4
- package/dpr/routes/journeys/my-reports/bookmarks/service.js.map +2 -2
- package/dpr/routes/journeys/my-reports/bookmarks/tests.cy.js +448 -1
- package/dpr/routes/journeys/my-reports/bookmarks/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/my-reports/bookmarks/utils.js +44 -1
- package/dpr/routes/journeys/my-reports/bookmarks/utils.js.map +2 -2
- package/dpr/routes/journeys/my-reports/recently-viewed/controller.js +53 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/controller.js.map +2 -2
- package/dpr/routes/journeys/my-reports/recently-viewed/list/controller.js +65 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/list/controller.js.map +2 -2
- package/dpr/routes/journeys/my-reports/recently-viewed/list/routes.js +47 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/list/routes.js.map +2 -2
- package/dpr/routes/journeys/my-reports/recently-viewed/list/tests.cy.js +83 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/list/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/my-reports/recently-viewed/routes.js +49 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/routes.js.map +2 -2
- package/dpr/routes/journeys/my-reports/recently-viewed/service.js +118 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/service.js.map +2 -2
- package/dpr/routes/journeys/my-reports/requested-reports/controller.js +52 -1
- package/dpr/routes/journeys/my-reports/requested-reports/controller.js.map +2 -2
- package/dpr/routes/journeys/my-reports/requested-reports/list/controller.js +65 -1
- package/dpr/routes/journeys/my-reports/requested-reports/list/controller.js.map +2 -2
- package/dpr/routes/journeys/my-reports/requested-reports/list/routes.js +47 -1
- package/dpr/routes/journeys/my-reports/requested-reports/list/routes.js.map +2 -2
- package/dpr/routes/journeys/my-reports/requested-reports/list/tests.cy.js +15 -1
- package/dpr/routes/journeys/my-reports/requested-reports/list/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/my-reports/requested-reports/routes.js +49 -1
- package/dpr/routes/journeys/my-reports/requested-reports/routes.js.map +2 -2
- package/dpr/routes/journeys/my-reports/requested-reports/service.js +200 -1
- package/dpr/routes/journeys/my-reports/requested-reports/service.js.map +2 -2
- package/dpr/routes/journeys/my-reports/routes.js +59 -1
- package/dpr/routes/journeys/my-reports/routes.js.map +2 -2
- package/dpr/routes/journeys/product-collection/routes.js +45 -1
- package/dpr/routes/journeys/product-collection/routes.js.map +2 -2
- package/dpr/routes/journeys/product-collection/selected/controller.js +55 -1
- package/dpr/routes/journeys/product-collection/selected/controller.js.map +2 -2
- package/dpr/routes/journeys/product-collection/selected/routes.js +37 -1
- package/dpr/routes/journeys/product-collection/selected/routes.js.map +2 -2
- package/dpr/routes/journeys/product-collection/selected/tests.cy.js +47 -1
- package/dpr/routes/journeys/product-collection/selected/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/product-collection/selected/validation.js +41 -1
- package/dpr/routes/journeys/product-collection/selected/validation.js.map +2 -2
- package/dpr/routes/journeys/request-missing-report/form/controller.js +104 -1
- package/dpr/routes/journeys/request-missing-report/form/controller.js.map +2 -2
- package/dpr/routes/journeys/request-missing-report/form/routes.js +50 -1
- package/dpr/routes/journeys/request-missing-report/form/routes.js.map +2 -2
- package/dpr/routes/journeys/request-missing-report/form/tests.cy.js +22 -1
- package/dpr/routes/journeys/request-missing-report/form/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/request-missing-report/form/validation.js +43 -1
- package/dpr/routes/journeys/request-missing-report/form/validation.js.map +2 -2
- package/dpr/routes/journeys/request-missing-report/routes.js +57 -1
- package/dpr/routes/journeys/request-missing-report/routes.js.map +2 -2
- package/dpr/routes/journeys/request-missing-report/submitted/controller.js +65 -1
- package/dpr/routes/journeys/request-missing-report/submitted/controller.js.map +2 -2
- package/dpr/routes/journeys/request-missing-report/submitted/routes.js +47 -1
- package/dpr/routes/journeys/request-missing-report/submitted/routes.js.map +2 -2
- package/dpr/routes/journeys/request-missing-report/submitted/tests.cy.js +14 -1
- package/dpr/routes/journeys/request-missing-report/submitted/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/request-missing-report/tests.cy.js +37 -1
- package/dpr/routes/journeys/request-missing-report/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/request-report/controller.js +79 -1
- package/dpr/routes/journeys/request-report/controller.js.map +2 -2
- package/dpr/routes/journeys/request-report/filters/controller.js +127 -1
- package/dpr/routes/journeys/request-report/filters/controller.js.map +2 -2
- package/dpr/routes/journeys/request-report/filters/routes.js +50 -1
- package/dpr/routes/journeys/request-report/filters/routes.js.map +2 -2
- package/dpr/routes/journeys/request-report/filters/tests.cy.js +451 -1
- package/dpr/routes/journeys/request-report/filters/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/request-report/filters/utils.js +331 -1
- package/dpr/routes/journeys/request-report/filters/utils.js.map +2 -2
- package/dpr/routes/journeys/request-report/routes.js +100 -1
- package/dpr/routes/journeys/request-report/routes.js.map +2 -2
- package/dpr/routes/journeys/request-report/status/controller.js +80 -1
- package/dpr/routes/journeys/request-report/status/controller.js.map +2 -2
- package/dpr/routes/journeys/request-report/status/routes.js +48 -1
- package/dpr/routes/journeys/request-report/status/routes.js.map +2 -2
- package/dpr/routes/journeys/request-report/status/tests.cy.js +127 -1
- package/dpr/routes/journeys/request-report/status/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/request-report/status/utils.js +72 -1
- package/dpr/routes/journeys/request-report/status/utils.js.map +2 -2
- package/dpr/routes/journeys/request-report/tests.cy.js +307 -1
- package/dpr/routes/journeys/request-report/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/routes.js +46 -1
- package/dpr/routes/journeys/routes.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/controller.js +89 -1
- package/dpr/routes/journeys/view-report/async/controller.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/dashboard/controller.js +82 -1
- package/dpr/routes/journeys/view-report/async/dashboard/controller.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/dashboard/routes.js +48 -1
- package/dpr/routes/journeys/view-report/async/dashboard/routes.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/dashboard/tests.cy.js +33 -1
- package/dpr/routes/journeys/view-report/async/dashboard/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/dashboard/utils.js +242 -1
- package/dpr/routes/journeys/view-report/async/dashboard/utils.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/report/controller.js +83 -1
- package/dpr/routes/journeys/view-report/async/report/controller.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/report/report-variants.cy.js +76 -1
- package/dpr/routes/journeys/view-report/async/report/report-variants.cy.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/report/routes.js +53 -1
- package/dpr/routes/journeys/view-report/async/report/routes.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/report/tests.cy.js +895 -1
- package/dpr/routes/journeys/view-report/async/report/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/report/types.js +16 -1
- package/dpr/routes/journeys/view-report/async/report/types.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/report/utils.js +427 -1
- package/dpr/routes/journeys/view-report/async/report/utils.js.map +2 -2
- package/dpr/routes/journeys/view-report/async/routes.js +52 -1
- package/dpr/routes/journeys/view-report/async/routes.js.map +2 -2
- package/dpr/routes/journeys/view-report/controller.js +62 -1
- package/dpr/routes/journeys/view-report/controller.js.map +2 -2
- package/dpr/routes/journeys/view-report/routes.js +87 -1
- package/dpr/routes/journeys/view-report/routes.js.map +2 -2
- package/dpr/routes/journeys/view-report/sync/dashboard/controller.js +68 -1
- package/dpr/routes/journeys/view-report/sync/dashboard/controller.js.map +2 -2
- package/dpr/routes/journeys/view-report/sync/dashboard/routes.js +48 -1
- package/dpr/routes/journeys/view-report/sync/dashboard/routes.js.map +2 -2
- package/dpr/routes/journeys/view-report/sync/dashboard/utils.js +144 -1
- package/dpr/routes/journeys/view-report/sync/dashboard/utils.js.map +2 -2
- package/dpr/routes/journeys/view-report/sync/load-report/controller.js +102 -1
- package/dpr/routes/journeys/view-report/sync/load-report/controller.js.map +2 -2
- package/dpr/routes/journeys/view-report/sync/load-report/routes.js +47 -1
- package/dpr/routes/journeys/view-report/sync/load-report/routes.js.map +2 -2
- package/dpr/routes/journeys/view-report/sync/report/controller.js +99 -1
- package/dpr/routes/journeys/view-report/sync/report/controller.js.map +2 -2
- package/dpr/routes/journeys/view-report/sync/report/routes.js +51 -1
- package/dpr/routes/journeys/view-report/sync/report/routes.js.map +2 -2
- package/dpr/routes/journeys/view-report/sync/report/utils.js +298 -1
- package/dpr/routes/journeys/view-report/sync/report/utils.js.map +2 -2
- package/dpr/routes/journeys/view-report/sync/routes.js +51 -1
- package/dpr/routes/journeys/view-report/sync/routes.js.map +2 -2
- package/dpr/routes/journeys/view-report/sync/tests.cy.js +43 -1
- package/dpr/routes/journeys/view-report/sync/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/view-report/utils.js +173 -1
- package/dpr/routes/journeys/view-report/utils.js.map +2 -2
- package/dpr/services/dashboardService.js +66 -1
- package/dpr/services/dashboardService.js.map +2 -2
- package/dpr/services/defaultFilterValuesService.js +114 -1
- package/dpr/services/defaultFilterValuesService.js.map +2 -2
- package/dpr/services/featureFlagService.js +65 -1
- package/dpr/services/featureFlagService.js.map +2 -2
- package/dpr/services/featureFlags.cy.js +72 -1
- package/dpr/services/featureFlags.cy.js.map +2 -2
- package/dpr/services/index.js +59 -1
- package/dpr/services/index.js.map +2 -2
- package/dpr/services/missingReport/missingReportService.js +52 -1
- package/dpr/services/missingReport/missingReportService.js.map +2 -2
- package/dpr/services/productCollection/productCollectionService.js +55 -1
- package/dpr/services/productCollection/productCollectionService.js.map +2 -2
- package/dpr/services/productCollection/productCollectionStoreService.js +61 -1
- package/dpr/services/productCollection/productCollectionStoreService.js.map +2 -2
- package/dpr/services/reportStoreService.js +51 -1
- package/dpr/services/reportStoreService.js.map +2 -2
- package/dpr/services/reportingService.js +81 -1
- package/dpr/services/reportingService.js.map +2 -2
- package/dpr/setUpNunjucksFilters.js +66 -1
- package/dpr/setUpNunjucksFilters.js.map +2 -2
- package/dpr/types/AsyncReportUtils.js +16 -1
- package/dpr/types/AsyncReportUtils.js.map +2 -2
- package/dpr/types/Bookmark.js +16 -1
- package/dpr/types/Bookmark.js.map +2 -2
- package/dpr/types/Charts.js +16 -1
- package/dpr/types/Charts.js.map +2 -2
- package/dpr/types/Download.js +16 -1
- package/dpr/types/Download.js.map +2 -2
- package/dpr/types/DprConfig.js +16 -1
- package/dpr/types/DprConfig.js.map +2 -2
- package/dpr/types/DprUser.js +43 -1
- package/dpr/types/DprUser.js.map +2 -2
- package/dpr/types/EmbeddedReportUtils.js +33 -1
- package/dpr/types/EmbeddedReportUtils.js.map +2 -2
- package/dpr/types/ExecutionData.d.js +16 -1
- package/dpr/types/ExecutionData.d.js.map +2 -2
- package/dpr/types/Metrics.js +16 -1
- package/dpr/types/Metrics.js.map +2 -2
- package/dpr/types/ReportQuery.js +168 -1
- package/dpr/types/ReportQuery.js.map +2 -2
- package/dpr/types/ReportStore.js +16 -1
- package/dpr/types/ReportStore.js.map +2 -2
- package/dpr/types/Services.d.js +16 -1
- package/dpr/types/Services.d.js.map +2 -2
- package/dpr/types/Templates.d.js +16 -1
- package/dpr/types/Templates.d.js.map +2 -2
- package/dpr/types/UserReports.js +55 -1
- package/dpr/types/UserReports.js.map +2 -2
- package/dpr/types/api.d.js +16 -1
- package/dpr/types/api.d.js.map +2 -2
- package/dpr/types/index.d.js +16 -1
- package/dpr/types/index.d.js.map +2 -2
- package/dpr/utils/CollatedSummaryBuilder/CollatedSummaryBuilder.js +91 -1
- package/dpr/utils/CollatedSummaryBuilder/CollatedSummaryBuilder.js.map +2 -2
- package/dpr/utils/CreateDprServices.js +66 -1
- package/dpr/utils/CreateDprServices.js.map +2 -2
- package/dpr/utils/DataTableBuilder/DataTableBuilder.js +304 -1
- package/dpr/utils/DataTableBuilder/DataTableBuilder.js.map +2 -2
- package/dpr/utils/DataTableBuilder/types.d.js +16 -1
- package/dpr/utils/DataTableBuilder/types.d.js.map +2 -2
- package/dpr/utils/DateMapper/DateMapper.js +125 -1
- package/dpr/utils/DateMapper/DateMapper.js.map +2 -2
- package/dpr/utils/DateMapper/types.d.js +16 -1
- package/dpr/utils/DateMapper/types.d.js.map +2 -2
- package/dpr/utils/ErrorHandler.js +94 -1
- package/dpr/utils/ErrorHandler.js.map +2 -2
- package/dpr/utils/ParentChildDataTableBuilder/ParentChildDataTableBuilder.js +201 -1
- package/dpr/utils/ParentChildDataTableBuilder/ParentChildDataTableBuilder.js.map +2 -2
- package/dpr/utils/ParentChildDataTableBuilder/types.d.js +16 -1
- package/dpr/utils/ParentChildDataTableBuilder/types.d.js.map +2 -2
- package/dpr/utils/Personalisation/personalisationUtils.js +202 -1
- package/dpr/utils/Personalisation/personalisationUtils.js.map +2 -2
- package/dpr/utils/Personalisation/types.d.js +16 -1
- package/dpr/utils/Personalisation/types.d.js.map +2 -2
- package/dpr/utils/SectionedDataTableBuilder/SectionedDataTableBuilder.js +310 -1
- package/dpr/utils/SectionedDataTableBuilder/SectionedDataTableBuilder.js.map +2 -2
- package/dpr/utils/SectionedDataTableBuilder/types.d.js +16 -1
- package/dpr/utils/SectionedDataTableBuilder/types.d.js.map +2 -2
- package/dpr/utils/SectionedFieldsTableBuilder/SectionedFieldsTableBuilder.js +145 -1
- package/dpr/utils/SectionedFieldsTableBuilder/SectionedFieldsTableBuilder.js.map +2 -2
- package/dpr/utils/SummaryDataTableBuilder/SummaryDataTableBuilder.js +60 -1
- package/dpr/utils/SummaryDataTableBuilder/SummaryDataTableBuilder.js.map +2 -2
- package/dpr/utils/UserStoreItemBuilder.js +247 -1
- package/dpr/utils/UserStoreItemBuilder.js.map +2 -2
- package/dpr/utils/arrayUtils.js +28 -1
- package/dpr/utils/arrayUtils.js.map +2 -2
- package/dpr/utils/datasetHelper.js +229 -1
- package/dpr/utils/datasetHelper.js.map +2 -2
- package/dpr/utils/definitionUtils.js +133 -1
- package/dpr/utils/definitionUtils.js.map +2 -2
- package/dpr/utils/index.js +44 -1
- package/dpr/utils/index.js.map +2 -2
- package/dpr/utils/indexedAccesHelper.js +41 -1
- package/dpr/utils/indexedAccesHelper.js.map +2 -2
- package/dpr/utils/localsHelper.js +105 -1
- package/dpr/utils/localsHelper.js.map +2 -2
- package/dpr/utils/logger.js +48 -1
- package/dpr/utils/logger.js.map +2 -2
- package/dpr/utils/reportListsHelper.js +128 -12
- package/dpr/utils/reportListsHelper.js.map +2 -2
- package/dpr/utils/reportStoreHelper.js +65 -1
- package/dpr/utils/reportStoreHelper.js.map +2 -2
- package/dpr/utils/requestStatusHelper.js +172 -1
- package/dpr/utils/requestStatusHelper.js.map +2 -2
- package/dpr/utils/sanitisedError.js +45 -1
- package/dpr/utils/sanitisedError.js.map +2 -2
- package/dpr/utils/urlHelper.js +103 -1
- package/dpr/utils/urlHelper.js.map +2 -2
- package/dpr/validation/validate.js +52 -1
- package/dpr/validation/validate.js.map +2 -2
- package/package.json +1 -1
|
@@ -1,2 +1,73 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var import_cypressUtils = require("cypress-tests/cypressUtils");
|
|
3
|
+
var import_appStateUtils = require("test-app/routes/integrationTests/appStateUtils");
|
|
4
|
+
context("Viewing a report", () => {
|
|
5
|
+
const path = "/embedded/platform/";
|
|
6
|
+
after(() => {
|
|
7
|
+
cy.task("stubFeatureFlags");
|
|
8
|
+
(0, import_appStateUtils.resetFeatureFlags)();
|
|
9
|
+
});
|
|
10
|
+
describe("Feature flags", () => {
|
|
11
|
+
beforeEach(() => {
|
|
12
|
+
(0, import_cypressUtils.executeReportStubs)();
|
|
13
|
+
cy.task("stubDefinitionRequestExamplesSuccess");
|
|
14
|
+
cy.task("stubRequestSuccessResult20");
|
|
15
|
+
(0, import_appStateUtils.resetFeatureFlags)();
|
|
16
|
+
});
|
|
17
|
+
it("should show the ability to save filters as default with feature flag enabled", () => {
|
|
18
|
+
cy.task("stubFeatureFlags");
|
|
19
|
+
cy.visit(path);
|
|
20
|
+
cy.findByLabelText(/Reports catalogue.*/i).within(() => {
|
|
21
|
+
cy.findByRole("row", {
|
|
22
|
+
name: (_, element) => {
|
|
23
|
+
return Boolean(element?.textContent?.includes("Successful Report")) && Boolean(element?.textContent?.includes("this will succeed"));
|
|
24
|
+
}
|
|
25
|
+
}).within(() => {
|
|
26
|
+
cy.findByRole("link", { name: "Request report" }).click();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
cy.findByRole("button", { name: /Save current filter values as defaults/ }).should("be.visible");
|
|
30
|
+
const helpSummary = cy.contains("summary", /Help/);
|
|
31
|
+
helpSummary.click();
|
|
32
|
+
helpSummary.parent("details").invoke("attr", "open").should("exist");
|
|
33
|
+
cy.findByRole("heading", { name: /Save current filter values as defaults/ }).should("be.visible");
|
|
34
|
+
});
|
|
35
|
+
it("should show the ability to save filters as default with feature flag not existing", () => {
|
|
36
|
+
cy.task("stubFeatureFlagsEmpty");
|
|
37
|
+
cy.visit(path);
|
|
38
|
+
cy.findByLabelText(/Reports catalogue.*/i).within(() => {
|
|
39
|
+
cy.findByRole("row", {
|
|
40
|
+
name: (_, element) => {
|
|
41
|
+
return Boolean(element?.textContent?.includes("Successful Report")) && Boolean(element?.textContent?.includes("this will succeed"));
|
|
42
|
+
}
|
|
43
|
+
}).within(() => {
|
|
44
|
+
cy.findByRole("link", { name: "Request report" }).click();
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
cy.findByRole("button", { name: /Save current filter values as defaults/ }).should("be.visible");
|
|
48
|
+
const helpSummary = cy.contains("summary", /Help/);
|
|
49
|
+
helpSummary.click();
|
|
50
|
+
helpSummary.parent("details").invoke("attr", "open").should("exist");
|
|
51
|
+
cy.findByRole("heading", { name: /Save current filter values as defaults/ }).should("be.visible");
|
|
52
|
+
});
|
|
53
|
+
it("should not show the ability to save filters as default with feature flag disabled", () => {
|
|
54
|
+
cy.task("stubFeatureFlagsDisabled");
|
|
55
|
+
cy.visit(path);
|
|
56
|
+
cy.findByLabelText(/Reports catalogue.*/i).within(() => {
|
|
57
|
+
cy.findByRole("row", {
|
|
58
|
+
name: (_, element) => {
|
|
59
|
+
return Boolean(element?.textContent?.includes("Successful Report")) && Boolean(element?.textContent?.includes("this will succeed"));
|
|
60
|
+
}
|
|
61
|
+
}).within(() => {
|
|
62
|
+
cy.findByRole("link", { name: "Request report" }).click();
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
cy.findByRole("button", { name: /Save current filter values as defaults/ }).should("not.exist");
|
|
66
|
+
const helpSummary = cy.contains("summary", /Help/);
|
|
67
|
+
helpSummary.click();
|
|
68
|
+
helpSummary.parent("details").invoke("attr", "open").should("exist");
|
|
69
|
+
cy.findByRole("heading", { name: /Save current filter values as defaults/ }).should("not.exist");
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
});
|
|
2
73
|
//# sourceMappingURL=featureFlags.cy.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/dpr/services/featureFlags.cy.ts"],
|
|
4
4
|
"sourcesContent": ["import { executeReportStubs } from 'cypress-tests/cypressUtils'\nimport { resetFeatureFlags } from 'test-app/routes/integrationTests/appStateUtils'\n\ncontext('Viewing a report', () => {\n const path = '/embedded/platform/'\n\n // Do a reset so that any tests after this re-query for feature flags\n after(() => {\n cy.task('stubFeatureFlags')\n resetFeatureFlags()\n })\n\n describe('Feature flags', () => {\n beforeEach(() => {\n executeReportStubs()\n cy.task('stubDefinitionRequestExamplesSuccess')\n cy.task('stubRequestSuccessResult20')\n resetFeatureFlags()\n })\n\n it('should show the ability to save filters as default with feature flag enabled', () => {\n cy.task('stubFeatureFlags')\n\n cy.visit(path)\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return (\n Boolean(element?.textContent?.includes('Successful Report')) &&\n Boolean(element?.textContent?.includes('this will succeed'))\n )\n },\n }).within(() => {\n cy.findByRole('link', { name: 'Request report' }).click()\n })\n })\n\n cy.findByRole('button', { name: /Save current filter values as defaults/ }).should('be.visible')\n const helpSummary = cy.contains('summary', /Help/)\n helpSummary.click()\n helpSummary.parent('details').invoke('attr', 'open').should('exist')\n cy.findByRole('heading', { name: /Save current filter values as defaults/ }).should('be.visible')\n })\n\n it('should show the ability to save filters as default with feature flag not existing', () => {\n cy.task('stubFeatureFlagsEmpty')\n\n cy.visit(path)\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return (\n Boolean(element?.textContent?.includes('Successful Report')) &&\n Boolean(element?.textContent?.includes('this will succeed'))\n )\n },\n }).within(() => {\n cy.findByRole('link', { name: 'Request report' }).click()\n })\n })\n\n cy.findByRole('button', { name: /Save current filter values as defaults/ }).should('be.visible')\n const helpSummary = cy.contains('summary', /Help/)\n helpSummary.click()\n helpSummary.parent('details').invoke('attr', 'open').should('exist')\n cy.findByRole('heading', { name: /Save current filter values as defaults/ }).should('be.visible')\n })\n\n it('should not show the ability to save filters as default with feature flag disabled', () => {\n cy.task('stubFeatureFlagsDisabled')\n\n cy.visit(path)\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return (\n Boolean(element?.textContent?.includes('Successful Report')) &&\n Boolean(element?.textContent?.includes('this will succeed'))\n )\n },\n }).within(() => {\n cy.findByRole('link', { name: 'Request report' }).click()\n })\n })\n\n cy.findByRole('button', { name: /Save current filter values as defaults/ }).should('not.exist')\n const helpSummary = cy.contains('summary', /Help/)\n helpSummary.click()\n helpSummary.parent('details').invoke('attr', 'open').should('exist')\n cy.findByRole('heading', { name: /Save current filter values as defaults/ }).should('not.exist')\n })\n })\n})\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";AAAA,0BAAmC;AACnC,2BAAkC;AAElC,QAAQ,oBAAoB,MAAM;AAChC,QAAM,OAAO;AAGb,QAAM,MAAM;AACV,OAAG,KAAK,kBAAkB;AAC1B,gDAAkB;AAAA,EACpB,CAAC;AAED,WAAS,iBAAiB,MAAM;AAC9B,eAAW,MAAM;AACf,kDAAmB;AACnB,SAAG,KAAK,sCAAsC;AAC9C,SAAG,KAAK,4BAA4B;AACpC,kDAAkB;AAAA,IACpB,CAAC;AAED,OAAG,gFAAgF,MAAM;AACvF,SAAG,KAAK,kBAAkB;AAE1B,SAAG,MAAM,IAAI;AACb,SAAG,gBAAgB,sBAAsB,EAAE,OAAO,MAAM;AACtD,WAAG,WAAW,OAAO;AAAA,UACnB,MAAM,CAAC,GAAG,YAAY;AACpB,mBACE,QAAQ,SAAS,aAAa,SAAS,mBAAmB,CAAC,KAC3D,QAAQ,SAAS,aAAa,SAAS,mBAAmB,CAAC;AAAA,UAE/D;AAAA,QACF,CAAC,EAAE,OAAO,MAAM;AACd,aAAG,WAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAC,EAAE,MAAM;AAAA,QAC1D,CAAC;AAAA,MACH,CAAC;AAED,SAAG,WAAW,UAAU,EAAE,MAAM,yCAAyC,CAAC,EAAE,OAAO,YAAY;AAC/F,YAAM,cAAc,GAAG,SAAS,WAAW,MAAM;AACjD,kBAAY,MAAM;AAClB,kBAAY,OAAO,SAAS,EAAE,OAAO,QAAQ,MAAM,EAAE,OAAO,OAAO;AACnE,SAAG,WAAW,WAAW,EAAE,MAAM,yCAAyC,CAAC,EAAE,OAAO,YAAY;AAAA,IAClG,CAAC;AAED,OAAG,qFAAqF,MAAM;AAC5F,SAAG,KAAK,uBAAuB;AAE/B,SAAG,MAAM,IAAI;AACb,SAAG,gBAAgB,sBAAsB,EAAE,OAAO,MAAM;AACtD,WAAG,WAAW,OAAO;AAAA,UACnB,MAAM,CAAC,GAAG,YAAY;AACpB,mBACE,QAAQ,SAAS,aAAa,SAAS,mBAAmB,CAAC,KAC3D,QAAQ,SAAS,aAAa,SAAS,mBAAmB,CAAC;AAAA,UAE/D;AAAA,QACF,CAAC,EAAE,OAAO,MAAM;AACd,aAAG,WAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAC,EAAE,MAAM;AAAA,QAC1D,CAAC;AAAA,MACH,CAAC;AAED,SAAG,WAAW,UAAU,EAAE,MAAM,yCAAyC,CAAC,EAAE,OAAO,YAAY;AAC/F,YAAM,cAAc,GAAG,SAAS,WAAW,MAAM;AACjD,kBAAY,MAAM;AAClB,kBAAY,OAAO,SAAS,EAAE,OAAO,QAAQ,MAAM,EAAE,OAAO,OAAO;AACnE,SAAG,WAAW,WAAW,EAAE,MAAM,yCAAyC,CAAC,EAAE,OAAO,YAAY;AAAA,IAClG,CAAC;AAED,OAAG,qFAAqF,MAAM;AAC5F,SAAG,KAAK,0BAA0B;AAElC,SAAG,MAAM,IAAI;AACb,SAAG,gBAAgB,sBAAsB,EAAE,OAAO,MAAM;AACtD,WAAG,WAAW,OAAO;AAAA,UACnB,MAAM,CAAC,GAAG,YAAY;AACpB,mBACE,QAAQ,SAAS,aAAa,SAAS,mBAAmB,CAAC,KAC3D,QAAQ,SAAS,aAAa,SAAS,mBAAmB,CAAC;AAAA,UAE/D;AAAA,QACF,CAAC,EAAE,OAAO,MAAM;AACd,aAAG,WAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAC,EAAE,MAAM;AAAA,QAC1D,CAAC;AAAA,MACH,CAAC;AAED,SAAG,WAAW,UAAU,EAAE,MAAM,yCAAyC,CAAC,EAAE,OAAO,WAAW;AAC9F,YAAM,cAAc,GAAG,SAAS,WAAW,MAAM;AACjD,kBAAY,MAAM;AAClB,kBAAY,OAAO,SAAS,EAAE,OAAO,QAAQ,MAAM,EAAE,OAAO,OAAO;AACnE,SAAG,WAAW,WAAW,EAAE,MAAM,yCAAyC,CAAC,EAAE,OAAO,WAAW;AAAA,IACjG,CAAC;AAAA,EACH,CAAC;AACH,CAAC;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dpr/services/index.js
CHANGED
|
@@ -1,2 +1,60 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var services_exports = {};
|
|
30
|
+
__export(services_exports, {
|
|
31
|
+
BookmarkService: () => import_service2.default,
|
|
32
|
+
DashboardService: () => import_dashboardService.default,
|
|
33
|
+
DefaultFilterValuesService: () => import_defaultFilterValuesService.default,
|
|
34
|
+
DownloadPermissionService: () => import_service.default,
|
|
35
|
+
RecentlyViewedStoreService: () => import_service4.default,
|
|
36
|
+
ReportStoreService: () => import_reportStoreService.default,
|
|
37
|
+
ReportingService: () => import_reportingService.default,
|
|
38
|
+
RequestedReportService: () => import_service3.default
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(services_exports);
|
|
41
|
+
var import_service = __toESM(require("../routes/journeys/download-report/request-download/service"));
|
|
42
|
+
var import_service2 = __toESM(require("../routes/journeys/my-reports/bookmarks/service"));
|
|
43
|
+
var import_service3 = __toESM(require("../routes/journeys/my-reports/requested-reports/service"));
|
|
44
|
+
var import_service4 = __toESM(require("../routes/journeys/my-reports/recently-viewed/service"));
|
|
45
|
+
var import_defaultFilterValuesService = __toESM(require("./defaultFilterValuesService"));
|
|
46
|
+
var import_reportStoreService = __toESM(require("./reportStoreService"));
|
|
47
|
+
var import_reportingService = __toESM(require("./reportingService"));
|
|
48
|
+
var import_dashboardService = __toESM(require("./dashboardService"));
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
BookmarkService,
|
|
52
|
+
DashboardService,
|
|
53
|
+
DefaultFilterValuesService,
|
|
54
|
+
DownloadPermissionService,
|
|
55
|
+
RecentlyViewedStoreService,
|
|
56
|
+
ReportStoreService,
|
|
57
|
+
ReportingService,
|
|
58
|
+
RequestedReportService
|
|
59
|
+
});
|
|
2
60
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/dpr/services/index.ts"],
|
|
4
4
|
"sourcesContent": ["import DownloadPermissionService from '../routes/journeys/download-report/request-download/service'\nimport BookmarkService from '../routes/journeys/my-reports/bookmarks/service'\nimport RequestedReportService from '../routes/journeys/my-reports/requested-reports/service'\nimport RecentlyViewedStoreService from '../routes/journeys/my-reports/recently-viewed/service'\nimport DefaultFilterValuesService from './defaultFilterValuesService'\nimport ReportStoreService from './reportStoreService'\nimport ReportingService from './reportingService'\nimport DashboardService from './dashboardService'\n\nexport {\n DownloadPermissionService,\n BookmarkService,\n ReportStoreService,\n ReportingService,\n RecentlyViewedStoreService,\n RequestedReportService,\n DashboardService,\n DefaultFilterValuesService,\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yCAAAA;AAAA,EAAA,gDAAAC;AAAA,EAAA,oEAAAC;AAAA,EAAA,gDAAAC;AAAA,EAAA,kDAAAC;AAAA,EAAA,oDAAAC;AAAA,EAAA,gDAAAC;AAAA,EAAA,8CAAAC;AAAA;AAAA;AAAA,qBAAsC;AACtC,IAAAC,kBAA4B;AAC5B,IAAAA,kBAAmC;AACnC,IAAAA,kBAAuC;AACvC,wCAAuC;AACvC,gCAA+B;AAC/B,8BAA6B;AAC7B,8BAA6B;",
|
|
6
|
+
"names": ["BookmarkService", "DashboardService", "DefaultFilterValuesService", "DownloadPermissionService", "RecentlyViewedStoreService", "ReportStoreService", "ReportingService", "RequestedReportService", "import_service"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,53 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var missingReportService_exports = {};
|
|
30
|
+
__export(missingReportService_exports, {
|
|
31
|
+
MissingReportService: () => MissingReportService,
|
|
32
|
+
default: () => missingReportService_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(missingReportService_exports);
|
|
35
|
+
var import_logger = __toESM(require("../../utils/logger"));
|
|
36
|
+
class MissingReportService {
|
|
37
|
+
constructor(missingReportClient, serviceFeatureConfig) {
|
|
38
|
+
this.missingReportClient = missingReportClient;
|
|
39
|
+
this.enabled = Boolean(serviceFeatureConfig.collections);
|
|
40
|
+
if (!this.enabled) import_logger.default.info(`Missing reports: disabled `);
|
|
41
|
+
}
|
|
42
|
+
enabled;
|
|
43
|
+
submitMissingReportEntry(token, reportId, variantId, reason) {
|
|
44
|
+
if (!this.enabled) return void 0;
|
|
45
|
+
return this.missingReportClient.submitMissingReportEntry(token, reportId, variantId, reason);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
var missingReportService_default = MissingReportService;
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
MissingReportService
|
|
52
|
+
});
|
|
2
53
|
//# sourceMappingURL=missingReportService.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/dpr/services/missingReport/missingReportService.ts"],
|
|
4
4
|
"sourcesContent": ["import logger from '../../utils/logger'\nimport MissingReportClient from '../../data/missingReportClient'\nimport { components } from '../../types/api'\nimport { ServiceFeatureConfig } from '../../types/DprConfig'\n\nclass MissingReportService {\n enabled: boolean\n\n constructor(private readonly missingReportClient: MissingReportClient, serviceFeatureConfig: ServiceFeatureConfig) {\n this.enabled = Boolean(serviceFeatureConfig.collections)\n if (!this.enabled) logger.info(`Missing reports: disabled `)\n }\n\n submitMissingReportEntry(\n token: string,\n reportId: string,\n variantId: string,\n reason?: string,\n ): Promise<components['schemas']['MissingReportSubmission']> | undefined {\n if (!this.enabled) return undefined\n return this.missingReportClient.submitMissingReportEntry(token, reportId, variantId, reason)\n }\n}\n\nexport { MissingReportService }\nexport default MissingReportService\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmB;AAKnB,MAAM,qBAAqB;AAAA,EAGzB,YAA6B,qBAA0C,sBAA4C;AAAtF;AAC3B,SAAK,UAAU,QAAQ,qBAAqB,WAAW;AACvD,QAAI,CAAC,KAAK,QAAS,eAAAA,QAAO,KAAK,4BAA4B;AAAA,EAC7D;AAAA,EALA;AAAA,EAOA,yBACE,OACA,UACA,WACA,QACuE;AACvE,QAAI,CAAC,KAAK,QAAS,QAAO;AAC1B,WAAO,KAAK,oBAAoB,yBAAyB,OAAO,UAAU,WAAW,MAAM;AAAA,EAC7F;AACF;AAGA,IAAO,+BAAQ;",
|
|
6
|
+
"names": ["logger"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,56 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var productCollectionService_exports = {};
|
|
30
|
+
__export(productCollectionService_exports, {
|
|
31
|
+
ProductCollectionService: () => ProductCollectionService
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(productCollectionService_exports);
|
|
34
|
+
var import_logger = __toESM(require("../../utils/logger"));
|
|
35
|
+
class ProductCollectionService {
|
|
36
|
+
constructor(productCollectionClient, serviceFeatureConfig) {
|
|
37
|
+
this.productCollectionClient = productCollectionClient;
|
|
38
|
+
this.productCollectionClient = productCollectionClient;
|
|
39
|
+
this.enabled = Boolean(serviceFeatureConfig.collections);
|
|
40
|
+
if (!this.enabled) import_logger.default.info(`Product collections: disabled `);
|
|
41
|
+
}
|
|
42
|
+
enabled;
|
|
43
|
+
async getProductCollections(token) {
|
|
44
|
+
if (!this.enabled) return [];
|
|
45
|
+
return this.productCollectionClient.getProductCollections(token);
|
|
46
|
+
}
|
|
47
|
+
async getProductCollection(token, id) {
|
|
48
|
+
if (!this.enabled) return void 0;
|
|
49
|
+
return this.productCollectionClient.getProductCollection(token, id);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
ProductCollectionService
|
|
55
|
+
});
|
|
2
56
|
//# sourceMappingURL=productCollectionService.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/dpr/services/productCollection/productCollectionService.ts"],
|
|
4
4
|
"sourcesContent": ["import { components } from '../../types/api'\nimport { ServiceFeatureConfig } from '../../types/DprConfig'\nimport { ProductCollectionClient } from '../../data/productCollectionClient'\nimport logger from '../../utils/logger'\n\nexport class ProductCollectionService {\n enabled: boolean\n\n constructor(\n private readonly productCollectionClient: ProductCollectionClient,\n serviceFeatureConfig: ServiceFeatureConfig,\n ) {\n this.productCollectionClient = productCollectionClient\n this.enabled = Boolean(serviceFeatureConfig.collections)\n if (!this.enabled) logger.info(`Product collections: disabled `)\n }\n\n async getProductCollections(token: string): Promise<components['schemas']['ProductCollectionSummary'][]> {\n if (!this.enabled) return []\n return this.productCollectionClient.getProductCollections(token)\n }\n\n async getProductCollection(\n token: string,\n id: string,\n ): Promise<components['schemas']['ProductCollectionDTO'] | undefined> {\n if (!this.enabled) return undefined\n return this.productCollectionClient.getProductCollection(token, id)\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAmB;AAEZ,MAAM,yBAAyB;AAAA,EAGpC,YACmB,yBACjB,sBACA;AAFiB;AAGjB,SAAK,0BAA0B;AAC/B,SAAK,UAAU,QAAQ,qBAAqB,WAAW;AACvD,QAAI,CAAC,KAAK,QAAS,eAAAA,QAAO,KAAK,gCAAgC;AAAA,EACjE;AAAA,EATA;AAAA,EAWA,MAAM,sBAAsB,OAA6E;AACvG,QAAI,CAAC,KAAK,QAAS,QAAO,CAAC;AAC3B,WAAO,KAAK,wBAAwB,sBAAsB,KAAK;AAAA,EACjE;AAAA,EAEA,MAAM,qBACJ,OACA,IACoE;AACpE,QAAI,CAAC,KAAK,QAAS,QAAO;AAC1B,WAAO,KAAK,wBAAwB,qBAAqB,OAAO,EAAE;AAAA,EACpE;AACF;",
|
|
6
|
+
"names": ["logger"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,62 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var productCollectionStoreService_exports = {};
|
|
30
|
+
__export(productCollectionStoreService_exports, {
|
|
31
|
+
ProductCollectionStoreService: () => ProductCollectionStoreService
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(productCollectionStoreService_exports);
|
|
34
|
+
var import_reportStoreService = __toESM(require("../reportStoreService"));
|
|
35
|
+
class ProductCollectionStoreService extends import_reportStoreService.default {
|
|
36
|
+
enabled;
|
|
37
|
+
constructor(reportDataStore, serviceFeatureConfig) {
|
|
38
|
+
super(reportDataStore);
|
|
39
|
+
this.enabled = Boolean(serviceFeatureConfig.collections);
|
|
40
|
+
}
|
|
41
|
+
async getSelectedProductCollectionId(userId) {
|
|
42
|
+
if (!this.enabled) return void 0;
|
|
43
|
+
const userConfig = await this.getState(userId);
|
|
44
|
+
return userConfig.productCollectionInfo?.selectedProductCollection;
|
|
45
|
+
}
|
|
46
|
+
async setSelectedProductCollectionId(userId, id) {
|
|
47
|
+
if (!this.enabled) return void 0;
|
|
48
|
+
const userConfig = await this.getState(userId);
|
|
49
|
+
return this.saveState(userId, {
|
|
50
|
+
...userConfig,
|
|
51
|
+
productCollectionInfo: {
|
|
52
|
+
...userConfig.productCollectionInfo,
|
|
53
|
+
selectedProductCollection: id
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
+
0 && (module.exports = {
|
|
60
|
+
ProductCollectionStoreService
|
|
61
|
+
});
|
|
2
62
|
//# sourceMappingURL=productCollectionStoreService.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/dpr/services/productCollection/productCollectionStoreService.ts"],
|
|
4
4
|
"sourcesContent": ["import { ServiceFeatureConfig } from '../../types/DprConfig'\nimport ReportDataStore from '../../data/reportDataStore'\nimport ReportStoreService from '../reportStoreService'\n\nexport class ProductCollectionStoreService extends ReportStoreService {\n enabled: boolean\n\n constructor(reportDataStore: ReportDataStore, serviceFeatureConfig: ServiceFeatureConfig) {\n super(reportDataStore)\n this.enabled = Boolean(serviceFeatureConfig.collections)\n }\n\n async getSelectedProductCollectionId(userId: string): Promise<string | undefined> {\n if (!this.enabled) return undefined\n\n const userConfig = await this.getState(userId)\n return userConfig.productCollectionInfo?.selectedProductCollection\n }\n\n async setSelectedProductCollectionId(userId: string, id: string): Promise<void> {\n if (!this.enabled) return undefined\n\n const userConfig = await this.getState(userId)\n return this.saveState(userId, {\n ...userConfig,\n productCollectionInfo: {\n ...userConfig.productCollectionInfo,\n selectedProductCollection: id,\n },\n })\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,gCAA+B;AAExB,MAAM,sCAAsC,0BAAAA,QAAmB;AAAA,EACpE;AAAA,EAEA,YAAY,iBAAkC,sBAA4C;AACxF,UAAM,eAAe;AACrB,SAAK,UAAU,QAAQ,qBAAqB,WAAW;AAAA,EACzD;AAAA,EAEA,MAAM,+BAA+B,QAA6C;AAChF,QAAI,CAAC,KAAK,QAAS,QAAO;AAE1B,UAAM,aAAa,MAAM,KAAK,SAAS,MAAM;AAC7C,WAAO,WAAW,uBAAuB;AAAA,EAC3C;AAAA,EAEA,MAAM,+BAA+B,QAAgB,IAA2B;AAC9E,QAAI,CAAC,KAAK,QAAS,QAAO;AAE1B,UAAM,aAAa,MAAM,KAAK,SAAS,MAAM;AAC7C,WAAO,KAAK,UAAU,QAAQ;AAAA,MAC5B,GAAG;AAAA,MACH,uBAAuB;AAAA,QACrB,GAAG,WAAW;AAAA,QACd,2BAA2B;AAAA,MAC7B;AAAA,IACF,CAAC;AAAA,EACH;AACF;",
|
|
6
|
+
"names": ["ReportStoreService"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,52 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var reportStoreService_exports = {};
|
|
20
|
+
__export(reportStoreService_exports, {
|
|
21
|
+
ReportStoreService: () => ReportStoreService,
|
|
22
|
+
default: () => reportStoreService_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(reportStoreService_exports);
|
|
25
|
+
class ReportStoreService {
|
|
26
|
+
constructor(reportDataStore) {
|
|
27
|
+
this.reportDataStore = reportDataStore;
|
|
28
|
+
this.reportStore = reportDataStore;
|
|
29
|
+
}
|
|
30
|
+
reportStore;
|
|
31
|
+
async getState(userId) {
|
|
32
|
+
return this.reportStore.getUserConfig(userId);
|
|
33
|
+
}
|
|
34
|
+
async saveState(userId, userConfig) {
|
|
35
|
+
await this.reportStore.setUserConfig(userId, userConfig);
|
|
36
|
+
}
|
|
37
|
+
findIndexByExecutionId(id, array) {
|
|
38
|
+
return array.findIndex((report) => report.executionId === id);
|
|
39
|
+
}
|
|
40
|
+
findIndexByTableId(id, array) {
|
|
41
|
+
return array.findIndex((report) => report.tableId === id);
|
|
42
|
+
}
|
|
43
|
+
findIndexByReportId(id, array) {
|
|
44
|
+
return array.findIndex((report) => report.id === id);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
var reportStoreService_default = ReportStoreService;
|
|
48
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
+
0 && (module.exports = {
|
|
50
|
+
ReportStoreService
|
|
51
|
+
});
|
|
2
52
|
//# sourceMappingURL=reportStoreService.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/dpr/services/reportStoreService.ts"],
|
|
4
4
|
"sourcesContent": ["import ReportDataStore from '../data/reportDataStore'\nimport { UserReportData } from '../types/UserReports'\nimport { ReportStoreConfig } from '../types/ReportStore'\n\nclass ReportStoreService {\n reportStore: ReportDataStore\n\n constructor(readonly reportDataStore: ReportDataStore) {\n this.reportStore = reportDataStore\n }\n\n async getState(userId: string) {\n return this.reportStore.getUserConfig(userId)\n }\n\n async saveState(userId: string, userConfig: ReportStoreConfig) {\n await this.reportStore.setUserConfig(userId, userConfig)\n }\n\n findIndexByExecutionId(id: string, array: UserReportData[]) {\n return array.findIndex((report) => report.executionId === id)\n }\n\n findIndexByTableId(id: string, array: UserReportData[]) {\n return array.findIndex((report) => report.tableId === id)\n }\n\n findIndexByReportId(id: string, array: UserReportData[]) {\n return array.findIndex((report) => report.id === id)\n }\n}\n\nexport { ReportStoreService }\nexport default ReportStoreService\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,MAAM,mBAAmB;AAAA,EAGvB,YAAqB,iBAAkC;AAAlC;AACnB,SAAK,cAAc;AAAA,EACrB;AAAA,EAJA;AAAA,EAMA,MAAM,SAAS,QAAgB;AAC7B,WAAO,KAAK,YAAY,cAAc,MAAM;AAAA,EAC9C;AAAA,EAEA,MAAM,UAAU,QAAgB,YAA+B;AAC7D,UAAM,KAAK,YAAY,cAAc,QAAQ,UAAU;AAAA,EACzD;AAAA,EAEA,uBAAuB,IAAY,OAAyB;AAC1D,WAAO,MAAM,UAAU,CAAC,WAAW,OAAO,gBAAgB,EAAE;AAAA,EAC9D;AAAA,EAEA,mBAAmB,IAAY,OAAyB;AACtD,WAAO,MAAM,UAAU,CAAC,WAAW,OAAO,YAAY,EAAE;AAAA,EAC1D;AAAA,EAEA,oBAAoB,IAAY,OAAyB;AACvD,WAAO,MAAM,UAAU,CAAC,WAAW,OAAO,OAAO,EAAE;AAAA,EACrD;AACF;AAGA,IAAO,6BAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,82 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var reportingService_exports = {};
|
|
20
|
+
__export(reportingService_exports, {
|
|
21
|
+
ReportingService: () => ReportingService,
|
|
22
|
+
default: () => reportingService_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(reportingService_exports);
|
|
25
|
+
class ReportingService {
|
|
26
|
+
constructor(reportingClient) {
|
|
27
|
+
this.reportingClient = reportingClient;
|
|
28
|
+
this.reportingClient = reportingClient;
|
|
29
|
+
}
|
|
30
|
+
async getCount(resourceName, token, listRequest) {
|
|
31
|
+
return this.reportingClient.getCount(resourceName, token, listRequest);
|
|
32
|
+
}
|
|
33
|
+
async getList(resourceName, token, listRequest) {
|
|
34
|
+
return this.reportingClient.getList(resourceName, token, listRequest);
|
|
35
|
+
}
|
|
36
|
+
async getListWithWarnings(resourceName, token, listRequest) {
|
|
37
|
+
return this.reportingClient.getListWithWarnings(resourceName, token, listRequest);
|
|
38
|
+
}
|
|
39
|
+
async getDefinitionSummary(token, reportId, dataProductDefinitionsPath) {
|
|
40
|
+
return this.reportingClient.getDefinitionSummary(token, reportId, dataProductDefinitionsPath);
|
|
41
|
+
}
|
|
42
|
+
async getDefinitions(token, dataProductDefinitionsPath) {
|
|
43
|
+
return this.reportingClient.getDefinitions(token, dataProductDefinitionsPath);
|
|
44
|
+
}
|
|
45
|
+
async getDefinition(token, reportId, variantId, dataProductDefinitionsPath, query) {
|
|
46
|
+
return this.reportingClient.getDefinition(token, reportId, variantId, dataProductDefinitionsPath, query);
|
|
47
|
+
}
|
|
48
|
+
async requestAsyncReport(token, reportId, variantId, query) {
|
|
49
|
+
return this.reportingClient.requestAsyncReport(token, reportId, variantId, query);
|
|
50
|
+
}
|
|
51
|
+
async cancelAsyncRequest(token, reportId, variantId, executionId, dataProductDefinitionsPath) {
|
|
52
|
+
return this.reportingClient.cancelAsyncRequest(token, reportId, variantId, executionId, dataProductDefinitionsPath);
|
|
53
|
+
}
|
|
54
|
+
async getAsyncReport(token, reportId, variantId, tableId, query) {
|
|
55
|
+
return this.reportingClient.getAsyncReport(token, reportId, variantId, tableId, query);
|
|
56
|
+
}
|
|
57
|
+
async getAsyncSummaryReport(token, reportId, variantId, tableId, summaryId, query) {
|
|
58
|
+
return this.reportingClient.getAsyncSummaryReport(token, reportId, variantId, tableId, summaryId, query);
|
|
59
|
+
}
|
|
60
|
+
async getAsyncReportStatus(token, reportId, variantId, executionId, dataProductDefinitionsPath, tableId) {
|
|
61
|
+
return this.reportingClient.getAsyncReportStatus(
|
|
62
|
+
token,
|
|
63
|
+
reportId,
|
|
64
|
+
variantId,
|
|
65
|
+
executionId,
|
|
66
|
+
dataProductDefinitionsPath,
|
|
67
|
+
tableId
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
async getAsyncCount(token, tableId, dataProductDefinitionsPath) {
|
|
71
|
+
return this.reportingClient.getAsyncCount(token, tableId, dataProductDefinitionsPath);
|
|
72
|
+
}
|
|
73
|
+
async getAsyncInteractiveCount(token, tableId, reportId, id, filters) {
|
|
74
|
+
return this.reportingClient.getAsyncInteractiveCount(token, tableId, reportId, id, filters);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
var reportingService_default = ReportingService;
|
|
78
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
79
|
+
0 && (module.exports = {
|
|
80
|
+
ReportingService
|
|
81
|
+
});
|
|
2
82
|
//# sourceMappingURL=reportingService.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/dpr/services/reportingService.ts"],
|
|
4
4
|
"sourcesContent": ["import { components } from '../types/api'\nimport type ReportingClient from '../data/reportingClient'\nimport ReportQuery from '../types/ReportQuery'\nimport Dict = NodeJS.Dict\nimport { ListWithWarnings } from '../data/types'\n\nclass ReportingService {\n constructor(private readonly reportingClient: ReportingClient) {\n this.reportingClient = reportingClient\n }\n\n async getCount(resourceName: string, token: string, listRequest: ReportQuery): Promise<number> {\n return this.reportingClient.getCount(resourceName, token, listRequest)\n }\n\n async getList(resourceName: string, token: string, listRequest: ReportQuery): Promise<Array<NodeJS.Dict<string>>> {\n return this.reportingClient.getList(resourceName, token, listRequest)\n }\n\n async getListWithWarnings(resourceName: string, token: string, listRequest: ReportQuery): Promise<ListWithWarnings> {\n return this.reportingClient.getListWithWarnings(resourceName, token, listRequest)\n }\n\n async getDefinitionSummary(\n token: string,\n reportId: string,\n dataProductDefinitionsPath?: string,\n ): Promise<components['schemas']['ReportDefinitionSummary']> {\n return this.reportingClient.getDefinitionSummary(token, reportId, dataProductDefinitionsPath)\n }\n\n async getDefinitions(\n token: string,\n dataProductDefinitionsPath?: string,\n ): Promise<Array<components['schemas']['ReportDefinitionSummary']>> {\n return this.reportingClient.getDefinitions(token, dataProductDefinitionsPath)\n }\n\n async getDefinition(\n token: string,\n reportId: string,\n variantId: string,\n dataProductDefinitionsPath?: string,\n query?: Dict<string | string[]>,\n ): Promise<components['schemas']['SingleVariantReportDefinition']> {\n return this.reportingClient.getDefinition(token, reportId, variantId, dataProductDefinitionsPath, query)\n }\n\n async requestAsyncReport(\n token: string,\n reportId: string,\n variantId: string,\n query: Record<string, string | boolean | number>,\n ): Promise<Dict<string>> {\n return this.reportingClient.requestAsyncReport(token, reportId, variantId, query)\n }\n\n async cancelAsyncRequest(\n token: string,\n reportId: string,\n variantId: string,\n executionId: string,\n dataProductDefinitionsPath?: string,\n ): Promise<Dict<string>> {\n return this.reportingClient.cancelAsyncRequest(token, reportId, variantId, executionId, dataProductDefinitionsPath)\n }\n\n async getAsyncReport(\n token: string,\n reportId: string,\n variantId: string,\n tableId: string,\n query: Record<string, string | string[]>,\n ): Promise<Array<Dict<string>>> {\n return this.reportingClient.getAsyncReport(token, reportId, variantId, tableId, query)\n }\n\n async getAsyncSummaryReport(\n token: string,\n reportId: string,\n variantId: string,\n tableId: string,\n summaryId: string,\n query: Dict<string | number>,\n ): Promise<Array<Dict<string>>> {\n return this.reportingClient.getAsyncSummaryReport(token, reportId, variantId, tableId, summaryId, query)\n }\n\n async getAsyncReportStatus(\n token: string,\n reportId: string,\n variantId: string,\n executionId: string,\n dataProductDefinitionsPath: string,\n tableId: string,\n ): Promise<components['schemas']['StatementExecutionStatus']> {\n return this.reportingClient.getAsyncReportStatus(\n token,\n reportId,\n variantId,\n executionId,\n dataProductDefinitionsPath,\n tableId,\n )\n }\n\n async getAsyncCount(token: string, tableId: string, dataProductDefinitionsPath?: string): Promise<number> {\n return this.reportingClient.getAsyncCount(token, tableId, dataProductDefinitionsPath)\n }\n\n async getAsyncInteractiveCount(\n token: string,\n tableId: string,\n reportId: string,\n id: string,\n filters: ReportQuery,\n ): Promise<number> {\n return this.reportingClient.getAsyncInteractiveCount(token, tableId, reportId, id, filters)\n }\n}\n\nexport { ReportingService }\nexport default ReportingService\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,MAAM,iBAAiB;AAAA,EACrB,YAA6B,iBAAkC;AAAlC;AAC3B,SAAK,kBAAkB;AAAA,EACzB;AAAA,EAEA,MAAM,SAAS,cAAsB,OAAe,aAA2C;AAC7F,WAAO,KAAK,gBAAgB,SAAS,cAAc,OAAO,WAAW;AAAA,EACvE;AAAA,EAEA,MAAM,QAAQ,cAAsB,OAAe,aAA+D;AAChH,WAAO,KAAK,gBAAgB,QAAQ,cAAc,OAAO,WAAW;AAAA,EACtE;AAAA,EAEA,MAAM,oBAAoB,cAAsB,OAAe,aAAqD;AAClH,WAAO,KAAK,gBAAgB,oBAAoB,cAAc,OAAO,WAAW;AAAA,EAClF;AAAA,EAEA,MAAM,qBACJ,OACA,UACA,4BAC2D;AAC3D,WAAO,KAAK,gBAAgB,qBAAqB,OAAO,UAAU,0BAA0B;AAAA,EAC9F;AAAA,EAEA,MAAM,eACJ,OACA,4BACkE;AAClE,WAAO,KAAK,gBAAgB,eAAe,OAAO,0BAA0B;AAAA,EAC9E;AAAA,EAEA,MAAM,cACJ,OACA,UACA,WACA,4BACA,OACiE;AACjE,WAAO,KAAK,gBAAgB,cAAc,OAAO,UAAU,WAAW,4BAA4B,KAAK;AAAA,EACzG;AAAA,EAEA,MAAM,mBACJ,OACA,UACA,WACA,OACuB;AACvB,WAAO,KAAK,gBAAgB,mBAAmB,OAAO,UAAU,WAAW,KAAK;AAAA,EAClF;AAAA,EAEA,MAAM,mBACJ,OACA,UACA,WACA,aACA,4BACuB;AACvB,WAAO,KAAK,gBAAgB,mBAAmB,OAAO,UAAU,WAAW,aAAa,0BAA0B;AAAA,EACpH;AAAA,EAEA,MAAM,eACJ,OACA,UACA,WACA,SACA,OAC8B;AAC9B,WAAO,KAAK,gBAAgB,eAAe,OAAO,UAAU,WAAW,SAAS,KAAK;AAAA,EACvF;AAAA,EAEA,MAAM,sBACJ,OACA,UACA,WACA,SACA,WACA,OAC8B;AAC9B,WAAO,KAAK,gBAAgB,sBAAsB,OAAO,UAAU,WAAW,SAAS,WAAW,KAAK;AAAA,EACzG;AAAA,EAEA,MAAM,qBACJ,OACA,UACA,WACA,aACA,4BACA,SAC4D;AAC5D,WAAO,KAAK,gBAAgB;AAAA,MAC1B;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAM,cAAc,OAAe,SAAiB,4BAAsD;AACxG,WAAO,KAAK,gBAAgB,cAAc,OAAO,SAAS,0BAA0B;AAAA,EACtF;AAAA,EAEA,MAAM,yBACJ,OACA,SACA,UACA,IACA,SACiB;AACjB,WAAO,KAAK,gBAAgB,yBAAyB,OAAO,SAAS,UAAU,IAAI,OAAO;AAAA,EAC5F;AACF;AAGA,IAAO,2BAAQ;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|