@ministryofjustice/hmpps-digital-prison-reporting-frontend 4.27.0 → 4.28.1

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.
Files changed (581) hide show
  1. package/dpr/DprClientClass.js +43 -0
  2. package/dpr/DprClientClass.js.map +7 -0
  3. package/dpr/{DprClientClass.mjs → DprClientClass.ts} +1 -0
  4. package/dpr/DprFormValidationClass.js +157 -0
  5. package/dpr/DprFormValidationClass.js.map +7 -0
  6. package/dpr/{DprFormValidationClass.mjs → DprFormValidationClass.ts} +2 -1
  7. package/dpr/DprGenericFormClass.js +66 -0
  8. package/dpr/DprGenericFormClass.js.map +7 -0
  9. package/dpr/{DprGenericFormClass.mjs → DprGenericFormClass.ts} +2 -1
  10. package/dpr/DprLoadingHelper.js +51 -0
  11. package/dpr/DprLoadingHelper.js.map +7 -0
  12. package/dpr/{DprLoadingHelper.mjs → DprLoadingHelper.ts} +1 -0
  13. package/dpr/DprPollingStatusClass.js +79 -0
  14. package/dpr/DprPollingStatusClass.js.map +7 -0
  15. package/dpr/{DprPollingStatusClass.mjs → DprPollingStatusClass.ts} +2 -1
  16. package/dpr/DprQueryParamClass.js +231 -0
  17. package/dpr/DprQueryParamClass.js.map +7 -0
  18. package/dpr/{DprQueryParamClass.mjs → DprQueryParamClass.ts} +2 -1
  19. package/dpr/DprSyncLoading.js +44 -0
  20. package/dpr/DprSyncLoading.js.map +7 -0
  21. package/dpr/{DprSyncLoading.mjs → DprSyncLoading.ts} +2 -1
  22. package/dpr/all.js +111 -0
  23. package/dpr/all.js.map +7 -0
  24. package/dpr/{all.mjs → all.ts} +29 -28
  25. package/dpr/assets/app.js +1 -1
  26. package/dpr/assets/app.js.map +4 -4
  27. package/dpr/components/_async/async-filters-form/clientClass.js +76 -0
  28. package/dpr/components/_async/async-filters-form/clientClass.js.map +7 -0
  29. package/dpr/components/_async/async-filters-form/{clientClass.mjs → clientClass.ts} +3 -2
  30. package/dpr/components/_async/async-filters-form/sortByTemplate.js +60 -1
  31. package/dpr/components/_async/async-filters-form/sortByTemplate.js.map +3 -3
  32. package/dpr/components/_async/async-filters-form/types.d.js +16 -1
  33. package/dpr/components/_async/async-filters-form/types.d.js.map +3 -3
  34. package/dpr/components/_async/async-filters-form/utils.js +180 -1
  35. package/dpr/components/_async/async-filters-form/utils.js.map +3 -3
  36. package/dpr/components/_async/async-polling/clientClass.js +78 -0
  37. package/dpr/components/_async/async-polling/clientClass.js.map +7 -0
  38. package/dpr/components/_async/async-polling/{clientClass.mjs → clientClass.ts} +2 -1
  39. package/dpr/components/_catalogue/catalogue/types.js +16 -1
  40. package/dpr/components/_catalogue/catalogue/types.js.map +3 -3
  41. package/dpr/components/_catalogue/catalogue/utils.js +83 -1
  42. package/dpr/components/_catalogue/catalogue/utils.js.map +3 -3
  43. package/dpr/components/_catalogue/catalogue-filter-by-type/clientClass.js +94 -0
  44. package/dpr/components/_catalogue/catalogue-filter-by-type/clientClass.js.map +7 -0
  45. package/dpr/components/_catalogue/catalogue-filter-by-type/{clientClass.mjs → clientClass.ts} +2 -1
  46. package/dpr/components/_catalogue/catalogue-filters/clientClass.js +70 -0
  47. package/dpr/components/_catalogue/catalogue-filters/clientClass.js.map +7 -0
  48. package/dpr/components/_catalogue/catalogue-filters/{clientClass.mjs → clientClass.ts} +2 -1
  49. package/dpr/components/_catalogue/catalogue-list/utils.js +140 -1
  50. package/dpr/components/_catalogue/catalogue-list/utils.js.map +3 -3
  51. package/dpr/components/_catalogue/catalogue-search/clientClass.js +106 -0
  52. package/dpr/components/_catalogue/catalogue-search/clientClass.js.map +7 -0
  53. package/dpr/components/_catalogue/catalogue-search/{clientClass.mjs → clientClass.ts} +3 -2
  54. package/dpr/components/_catalogue/catalogue-unauthorised-toggle/clientClass.js +135 -0
  55. package/dpr/components/_catalogue/catalogue-unauthorised-toggle/clientClass.js.map +7 -0
  56. package/dpr/components/_catalogue/catalogue-unauthorised-toggle/{clientClass.mjs → clientClass.ts} +2 -1
  57. package/dpr/components/_charts/chart/Chart.js +99 -1
  58. package/dpr/components/_charts/chart/Chart.js.map +3 -3
  59. package/dpr/components/_charts/chart/ChartColours.js +61 -1
  60. package/dpr/components/_charts/chart/ChartColours.js.map +3 -3
  61. package/dpr/components/_charts/chart/ChartTimeseries.js +101 -1
  62. package/dpr/components/_charts/chart/ChartTimeseries.js.map +3 -3
  63. package/dpr/components/_charts/chart/bar/BarChart.js +193 -1
  64. package/dpr/components/_charts/chart/bar/BarChart.js.map +3 -3
  65. package/dpr/components/_charts/chart/bar/clientClass.js +98 -0
  66. package/dpr/components/_charts/chart/bar/clientClass.js.map +7 -0
  67. package/dpr/components/_charts/chart/bar/{clientClass.mjs → clientClass.ts} +2 -1
  68. package/dpr/components/_charts/chart/bar/types.js +16 -1
  69. package/dpr/components/_charts/chart/bar/types.js.map +3 -3
  70. package/dpr/components/_charts/chart/bar/validate.js +73 -1
  71. package/dpr/components/_charts/chart/bar/validate.js.map +3 -3
  72. package/dpr/components/_charts/chart/bar-timeseries/BarTimeseriesChart.js +80 -1
  73. package/dpr/components/_charts/chart/bar-timeseries/BarTimeseriesChart.js.map +3 -3
  74. package/dpr/components/_charts/chart/bar-timeseries/types.js +16 -1
  75. package/dpr/components/_charts/chart/bar-timeseries/types.js.map +3 -3
  76. package/dpr/components/_charts/chart/bar-timeseries/validate.js +48 -1
  77. package/dpr/components/_charts/chart/bar-timeseries/validate.js.map +3 -3
  78. package/dpr/components/_charts/chart/buckets/Buckets.js +194 -1
  79. package/dpr/components/_charts/chart/buckets/Buckets.js.map +3 -3
  80. package/dpr/components/_charts/chart/buckets/types.js +16 -1
  81. package/dpr/components/_charts/chart/buckets/types.js.map +3 -3
  82. package/dpr/components/_charts/chart/buckets/validate.js +40 -1
  83. package/dpr/components/_charts/chart/buckets/validate.js.map +3 -3
  84. package/dpr/components/_charts/chart/chart-config.js +62 -1
  85. package/dpr/components/_charts/chart/chart-config.js.map +3 -3
  86. package/dpr/components/_charts/chart/clientClass.js +136 -0
  87. package/dpr/components/_charts/chart/clientClass.js.map +7 -0
  88. package/dpr/components/_charts/chart/{clientClass.mjs → clientClass.ts} +2 -1
  89. package/dpr/components/_charts/chart/doughnut/DoughnutChart.js +96 -1
  90. package/dpr/components/_charts/chart/doughnut/DoughnutChart.js.map +3 -3
  91. package/dpr/components/_charts/chart/doughnut/clientClass.js +170 -0
  92. package/dpr/components/_charts/chart/doughnut/clientClass.js.map +7 -0
  93. package/dpr/components/_charts/chart/doughnut/{clientClass.mjs → clientClass.ts} +2 -1
  94. package/dpr/components/_charts/chart/doughnut/types.js +16 -1
  95. package/dpr/components/_charts/chart/doughnut/types.js.map +3 -3
  96. package/dpr/components/_charts/chart/doughnut/validate.js +48 -1
  97. package/dpr/components/_charts/chart/doughnut/validate.js.map +3 -3
  98. package/dpr/components/_charts/chart/heatmap/HeatmapChart.js +213 -1
  99. package/dpr/components/_charts/chart/heatmap/HeatmapChart.js.map +3 -3
  100. package/dpr/components/_charts/chart/heatmap/clientClass.js +118 -0
  101. package/dpr/components/_charts/chart/heatmap/clientClass.js.map +7 -0
  102. package/dpr/components/_charts/chart/heatmap/{clientClass.mjs → clientClass.ts} +2 -1
  103. package/dpr/components/_charts/chart/heatmap/types.js +16 -1
  104. package/dpr/components/_charts/chart/heatmap/types.js.map +3 -3
  105. package/dpr/components/_charts/chart/heatmap/validate.js +40 -1
  106. package/dpr/components/_charts/chart/heatmap/validate.js.map +3 -3
  107. package/dpr/components/_charts/chart/line/LineChart.js +107 -1
  108. package/dpr/components/_charts/chart/line/LineChart.js.map +3 -3
  109. package/dpr/components/_charts/chart/line/clientClass.js +93 -0
  110. package/dpr/components/_charts/chart/line/clientClass.js.map +7 -0
  111. package/dpr/components/_charts/chart/line/{clientClass.mjs → clientClass.ts} +2 -1
  112. package/dpr/components/_charts/chart/line/types.js +16 -1
  113. package/dpr/components/_charts/chart/line/types.js.map +3 -3
  114. package/dpr/components/_charts/chart/line/validate.js +48 -1
  115. package/dpr/components/_charts/chart/line/validate.js.map +3 -3
  116. package/dpr/components/_charts/chart/line-timeseries/LineTimeseriesChart.js +81 -1
  117. package/dpr/components/_charts/chart/line-timeseries/LineTimeseriesChart.js.map +3 -3
  118. package/dpr/components/_charts/chart/line-timeseries/types.js +16 -1
  119. package/dpr/components/_charts/chart/line-timeseries/types.js.map +3 -3
  120. package/dpr/components/_charts/chart/line-timeseries/validate.js +48 -1
  121. package/dpr/components/_charts/chart/line-timeseries/validate.js.map +3 -3
  122. package/dpr/components/_charts/utils.js +240 -1
  123. package/dpr/components/_charts/utils.js.map +3 -3
  124. package/dpr/components/_dashboards/dashboard-list/types.js +16 -1
  125. package/dpr/components/_dashboards/dashboard-list/types.js.map +3 -3
  126. package/dpr/components/_dashboards/dashboard-list/utils.js +170 -1
  127. package/dpr/components/_dashboards/dashboard-list/utils.js.map +3 -3
  128. package/dpr/components/_dashboards/dashboard-list/validate.js +43 -1
  129. package/dpr/components/_dashboards/dashboard-list/validate.js.map +3 -3
  130. package/dpr/components/_dashboards/dashboard-visualisation/Validate.js +95 -1
  131. package/dpr/components/_dashboards/dashboard-visualisation/Validate.js.map +3 -3
  132. package/dpr/components/_dashboards/dashboard-visualisation/types.js +40 -1
  133. package/dpr/components/_dashboards/dashboard-visualisation/types.js.map +3 -3
  134. package/dpr/components/_dashboards/scorecard/Scorecard.js +176 -1
  135. package/dpr/components/_dashboards/scorecard/Scorecard.js.map +3 -3
  136. package/dpr/components/_dashboards/scorecard/clientClass.js +50 -0
  137. package/dpr/components/_dashboards/scorecard/clientClass.js.map +7 -0
  138. package/dpr/components/_dashboards/scorecard/{clientClass.mjs → clientClass.ts} +2 -1
  139. package/dpr/components/_dashboards/scorecard/types.js +16 -1
  140. package/dpr/components/_dashboards/scorecard/types.js.map +3 -3
  141. package/dpr/components/_dashboards/scorecard/utils.js +61 -1
  142. package/dpr/components/_dashboards/scorecard/utils.js.map +3 -3
  143. package/dpr/components/_dashboards/scorecard/validate.js +50 -1
  144. package/dpr/components/_dashboards/scorecard/validate.js.map +3 -3
  145. package/dpr/components/_dashboards/scorecard-group/ScorecardGroup.js +212 -1
  146. package/dpr/components/_dashboards/scorecard-group/ScorecardGroup.js.map +3 -3
  147. package/dpr/components/_dashboards/scorecard-group/types.js +16 -1
  148. package/dpr/components/_dashboards/scorecard-group/types.js.map +3 -3
  149. package/dpr/components/_dashboards/scorecard-group/validate.js +50 -1
  150. package/dpr/components/_dashboards/scorecard-group/validate.js.map +3 -3
  151. package/dpr/components/_filters/filter-input/enum.js +38 -1
  152. package/dpr/components/_filters/filter-input/enum.js.map +3 -3
  153. package/dpr/components/_filters/filter-input/filters.js +37 -1
  154. package/dpr/components/_filters/filter-input/filters.js.map +3 -3
  155. package/dpr/components/_filters/filter-input/types.d.js +16 -1
  156. package/dpr/components/_filters/filter-input/types.d.js.map +3 -3
  157. package/dpr/components/_filters/filters-form/clientClass.js +104 -0
  158. package/dpr/components/_filters/filters-form/clientClass.js.map +7 -0
  159. package/dpr/components/_filters/filters-form/{clientClass.mjs → clientClass.ts} +2 -1
  160. package/dpr/components/_filters/filters-interactive/clientClass.js +55 -0
  161. package/dpr/components/_filters/filters-interactive/clientClass.js.map +7 -0
  162. package/dpr/components/_filters/filters-interactive/{clientClass.mjs → clientClass.ts} +2 -1
  163. package/dpr/components/_filters/filters-selected/clientClass.js +396 -0
  164. package/dpr/components/_filters/filters-selected/clientClass.js.map +7 -0
  165. package/dpr/components/_filters/filters-selected/{clientClass.mjs → clientClass.ts} +7 -7
  166. package/dpr/components/_filters/filters-selected/utils.js +314 -1
  167. package/dpr/components/_filters/filters-selected/utils.js.map +3 -3
  168. package/dpr/components/_filters/filtersTypeEnum.js +32 -1
  169. package/dpr/components/_filters/filtersTypeEnum.js.map +3 -3
  170. package/dpr/components/_filters/types.d.js +16 -1
  171. package/dpr/components/_filters/types.d.js.map +3 -3
  172. package/dpr/components/_filters/utils.js +385 -1
  173. package/dpr/components/_filters/utils.js.map +3 -3
  174. package/dpr/components/_inputs/autocomplete-text-input/clientClass.js +153 -0
  175. package/dpr/components/_inputs/autocomplete-text-input/clientClass.js.map +7 -0
  176. package/dpr/components/_inputs/autocomplete-text-input/{clientClass.mjs → clientClass.ts} +2 -1
  177. package/dpr/components/_inputs/autocomplete-text-input/utils.js +45 -1
  178. package/dpr/components/_inputs/autocomplete-text-input/utils.js.map +3 -3
  179. package/dpr/components/_inputs/date-input/clientClass.js +109 -0
  180. package/dpr/components/_inputs/date-input/clientClass.js.map +7 -0
  181. package/dpr/components/_inputs/date-input/{clientClass.mjs → clientClass.ts} +2 -1
  182. package/dpr/components/_inputs/date-input/utils.js +88 -1
  183. package/dpr/components/_inputs/date-input/utils.js.map +3 -3
  184. package/dpr/components/_inputs/date-range/clientClass.js +206 -0
  185. package/dpr/components/_inputs/date-range/clientClass.js.map +7 -0
  186. package/dpr/components/_inputs/date-range/{clientClass.mjs → clientClass.ts} +2 -1
  187. package/dpr/components/_inputs/date-range/types.js +38 -1
  188. package/dpr/components/_inputs/date-range/types.js.map +3 -3
  189. package/dpr/components/_inputs/date-range/utils.js +229 -1
  190. package/dpr/components/_inputs/date-range/utils.js.map +3 -3
  191. package/dpr/components/_inputs/granular-date-range/clientClass.js +245 -0
  192. package/dpr/components/_inputs/granular-date-range/clientClass.js.map +7 -0
  193. package/dpr/components/_inputs/granular-date-range/{clientClass.mjs → clientClass.ts} +2 -1
  194. package/dpr/components/_inputs/granular-date-range/types.js +70 -1
  195. package/dpr/components/_inputs/granular-date-range/types.js.map +3 -3
  196. package/dpr/components/_inputs/granular-date-range/utils.js +445 -1
  197. package/dpr/components/_inputs/granular-date-range/utils.js.map +3 -3
  198. package/dpr/components/_inputs/multi-select/utils.js +88 -1
  199. package/dpr/components/_inputs/multi-select/utils.js.map +3 -3
  200. package/dpr/components/_inputs/start-end-date/utils.js +84 -1
  201. package/dpr/components/_inputs/start-end-date/utils.js.map +3 -3
  202. package/dpr/components/_reports/report-actions/actionsTemplate.js +59 -1
  203. package/dpr/components/_reports/report-actions/actionsTemplate.js.map +3 -3
  204. package/dpr/components/_reports/report-actions/clientClass.js +103 -0
  205. package/dpr/components/_reports/report-actions/clientClass.js.map +7 -0
  206. package/dpr/components/_reports/report-actions/{clientClass.mjs → clientClass.ts} +2 -1
  207. package/dpr/components/_reports/report-actions/types.d.js +16 -1
  208. package/dpr/components/_reports/report-actions/types.d.js.map +3 -3
  209. package/dpr/components/_reports/report-actions/utils.js +97 -1
  210. package/dpr/components/_reports/report-actions/utils.js.map +3 -3
  211. package/dpr/components/_reports/report-columns-form/clientClass.js +76 -0
  212. package/dpr/components/_reports/report-columns-form/clientClass.js.map +7 -0
  213. package/dpr/components/_reports/report-columns-form/{clientClass.mjs → clientClass.ts} +2 -1
  214. package/dpr/components/_reports/report-columns-form/types.d.js +16 -1
  215. package/dpr/components/_reports/report-columns-form/types.d.js.map +3 -3
  216. package/dpr/components/_reports/report-columns-form/utils.js +65 -1
  217. package/dpr/components/_reports/report-columns-form/utils.js.map +3 -3
  218. package/dpr/components/_reports/report-data-table/clientClass.js +80 -0
  219. package/dpr/components/_reports/report-data-table/clientClass.js.map +7 -0
  220. package/dpr/components/_reports/report-data-table/{clientClass.mjs → clientClass.ts} +2 -1
  221. package/dpr/components/_reports/report-data-table/types.d.js +16 -1
  222. package/dpr/components/_reports/report-data-table/types.d.js.map +3 -3
  223. package/dpr/components/_reports/report-data-table/utils.js +122 -1
  224. package/dpr/components/_reports/report-data-table/utils.js.map +3 -3
  225. package/dpr/components/_reports/report-download-message/clientClass.js +42 -0
  226. package/dpr/components/_reports/report-download-message/clientClass.js.map +7 -0
  227. package/dpr/components/_reports/report-download-message/{clientClass.mjs → clientClass.ts} +2 -1
  228. package/dpr/components/_reports/report-pagination/clientClass.js +61 -0
  229. package/dpr/components/_reports/report-pagination/clientClass.js.map +7 -0
  230. package/dpr/components/_reports/report-pagination/{clientClass.mjs → clientClass.ts} +2 -1
  231. package/dpr/components/_reports/report-pagination/types.d.js +16 -1
  232. package/dpr/components/_reports/report-pagination/types.d.js.map +3 -3
  233. package/dpr/components/_reports/report-pagination/utils.js +105 -1
  234. package/dpr/components/_reports/report-pagination/utils.js.map +3 -3
  235. package/dpr/components/_reports/report-totals/utils.js +42 -1
  236. package/dpr/components/_reports/report-totals/utils.js.map +3 -3
  237. package/dpr/components/bookmark-toggle/clientClass.js +111 -0
  238. package/dpr/components/bookmark-toggle/clientClass.js.map +7 -0
  239. package/dpr/components/bookmark-toggle/{clientClass.mjs → clientClass.ts} +2 -1
  240. package/dpr/components/card-group/clientClass.js +53 -0
  241. package/dpr/components/card-group/clientClass.js.map +7 -0
  242. package/dpr/components/card-group/{clientClass.mjs → clientClass.ts} +2 -1
  243. package/dpr/components/card-group/utils.js +57 -1
  244. package/dpr/components/card-group/utils.js.map +3 -3
  245. package/dpr/components/report-list/defaultTokenProvider.js +36 -1
  246. package/dpr/components/report-list/defaultTokenProvider.js.map +3 -3
  247. package/dpr/components/report-list/types.d.js +16 -1
  248. package/dpr/components/report-list/types.d.js.map +3 -3
  249. package/dpr/components/report-list/utils.js +238 -1
  250. package/dpr/components/report-list/utils.js.map +3 -3
  251. package/dpr/components/show-more/clientClass.js +63 -0
  252. package/dpr/components/show-more/clientClass.js.map +7 -0
  253. package/dpr/components/show-more/{clientClass.mjs → clientClass.ts} +2 -1
  254. package/dpr/components/show-more/utils.js +38 -3
  255. package/dpr/components/show-more/utils.js.map +3 -3
  256. package/dpr/components/user-reports/bookmarks/utils.js +198 -1
  257. package/dpr/components/user-reports/bookmarks/utils.js.map +3 -3
  258. package/dpr/components/user-reports/requested/clientClass.js +132 -0
  259. package/dpr/components/user-reports/requested/clientClass.js.map +7 -0
  260. package/dpr/components/user-reports/requested/{clientClass.mjs → clientClass.ts} +2 -1
  261. package/dpr/components/user-reports/requested/utils.js +65 -1
  262. package/dpr/components/user-reports/requested/utils.js.map +3 -3
  263. package/dpr/components/user-reports/types.d.js +16 -1
  264. package/dpr/components/user-reports/types.d.js.map +3 -3
  265. package/dpr/components/user-reports/utils.js +365 -1
  266. package/dpr/components/user-reports/utils.js.map +3 -3
  267. package/dpr/components/user-reports/viewed/clientClass.js +102 -0
  268. package/dpr/components/user-reports/viewed/clientClass.js.map +7 -0
  269. package/dpr/components/user-reports/viewed/{clientClass.mjs → clientClass.ts} +2 -1
  270. package/dpr/components/user-reports/viewed/utils.js +37 -1
  271. package/dpr/components/user-reports/viewed/utils.js.map +3 -3
  272. package/dpr/data/agentConfig.js +35 -1
  273. package/dpr/data/agentConfig.js.map +3 -3
  274. package/dpr/data/dashboardClient.js +108 -1
  275. package/dpr/data/dashboardClient.js.map +3 -3
  276. package/dpr/data/dprReportingClient.js +55 -1
  277. package/dpr/data/dprReportingClient.js.map +3 -3
  278. package/dpr/data/missingReportClient.js +55 -1
  279. package/dpr/data/missingReportClient.js.map +3 -3
  280. package/dpr/data/productCollectionClient.js +58 -1
  281. package/dpr/data/productCollectionClient.js.map +3 -3
  282. package/dpr/data/reportDataStore.js +77 -1
  283. package/dpr/data/reportDataStore.js.map +3 -3
  284. package/dpr/data/reportingClient.js +173 -1
  285. package/dpr/data/reportingClient.js.map +3 -3
  286. package/dpr/data/restClient.js +143 -1
  287. package/dpr/data/restClient.js.map +3 -3
  288. package/dpr/data/types.d.js +16 -1
  289. package/dpr/data/types.d.js.map +3 -3
  290. package/dpr/middleware/reportAuthoriser.js +63 -1
  291. package/dpr/middleware/reportAuthoriser.js.map +3 -3
  292. package/dpr/middleware/setUpDprResources.js +173 -1
  293. package/dpr/middleware/setUpDprResources.js.map +3 -3
  294. package/dpr/middleware/setUpNestedRoute.js +35 -1
  295. package/dpr/middleware/setUpNestedRoute.js.map +3 -3
  296. package/dpr/routes/index.js +50 -1
  297. package/dpr/routes/index.js.map +3 -3
  298. package/dpr/routes/journeys/api-failures.cy.js +295 -1
  299. package/dpr/routes/journeys/api-failures.cy.js.map +3 -3
  300. package/dpr/routes/journeys/download-report/controller.js +65 -1
  301. package/dpr/routes/journeys/download-report/controller.js.map +3 -3
  302. package/dpr/routes/journeys/download-report/request-download/form/controller.js +98 -1
  303. package/dpr/routes/journeys/download-report/request-download/form/controller.js.map +3 -3
  304. package/dpr/routes/journeys/download-report/request-download/form/routes.js +50 -1
  305. package/dpr/routes/journeys/download-report/request-download/form/routes.js.map +3 -3
  306. package/dpr/routes/journeys/download-report/request-download/form/submitted/controller.js +68 -1
  307. package/dpr/routes/journeys/download-report/request-download/form/submitted/controller.js.map +3 -3
  308. package/dpr/routes/journeys/download-report/request-download/form/submitted/routes.js +47 -1
  309. package/dpr/routes/journeys/download-report/request-download/form/submitted/routes.js.map +3 -3
  310. package/dpr/routes/journeys/download-report/request-download/form/submitted/tests.cy.js +17 -1
  311. package/dpr/routes/journeys/download-report/request-download/form/submitted/tests.cy.js.map +2 -2
  312. package/dpr/routes/journeys/download-report/request-download/form/tests.cy.js +24 -1
  313. package/dpr/routes/journeys/download-report/request-download/form/tests.cy.js.map +3 -3
  314. package/dpr/routes/journeys/download-report/request-download/routes.js +46 -1
  315. package/dpr/routes/journeys/download-report/request-download/routes.js.map +3 -3
  316. package/dpr/routes/journeys/download-report/request-download/service.js +90 -1
  317. package/dpr/routes/journeys/download-report/request-download/service.js.map +3 -3
  318. package/dpr/routes/journeys/download-report/routes.js +63 -1
  319. package/dpr/routes/journeys/download-report/routes.js.map +3 -3
  320. package/dpr/routes/journeys/download-report/tests.cy.js +104 -1
  321. package/dpr/routes/journeys/download-report/tests.cy.js.map +3 -3
  322. package/dpr/routes/journeys/download-report/utils.js +196 -1
  323. package/dpr/routes/journeys/download-report/utils.js.map +3 -3
  324. package/dpr/routes/journeys/my-reports/bookmarks/controller.js +58 -1
  325. package/dpr/routes/journeys/my-reports/bookmarks/controller.js.map +3 -3
  326. package/dpr/routes/journeys/my-reports/bookmarks/list/controller.js +56 -1
  327. package/dpr/routes/journeys/my-reports/bookmarks/list/controller.js.map +3 -3
  328. package/dpr/routes/journeys/my-reports/bookmarks/list/routes.js +47 -1
  329. package/dpr/routes/journeys/my-reports/bookmarks/list/routes.js.map +3 -3
  330. package/dpr/routes/journeys/my-reports/bookmarks/list/tests.cy.js +32 -1
  331. package/dpr/routes/journeys/my-reports/bookmarks/list/tests.cy.js.map +3 -3
  332. package/dpr/routes/journeys/my-reports/bookmarks/routes.js +49 -1
  333. package/dpr/routes/journeys/my-reports/bookmarks/routes.js.map +3 -3
  334. package/dpr/routes/journeys/my-reports/bookmarks/service.js +123 -4
  335. package/dpr/routes/journeys/my-reports/bookmarks/service.js.map +3 -3
  336. package/dpr/routes/journeys/my-reports/bookmarks/tests.cy.js +448 -1
  337. package/dpr/routes/journeys/my-reports/bookmarks/tests.cy.js.map +3 -3
  338. package/dpr/routes/journeys/my-reports/bookmarks/utils.js +44 -1
  339. package/dpr/routes/journeys/my-reports/bookmarks/utils.js.map +3 -3
  340. package/dpr/routes/journeys/my-reports/recently-viewed/controller.js +53 -1
  341. package/dpr/routes/journeys/my-reports/recently-viewed/controller.js.map +3 -3
  342. package/dpr/routes/journeys/my-reports/recently-viewed/list/controller.js +65 -1
  343. package/dpr/routes/journeys/my-reports/recently-viewed/list/controller.js.map +3 -3
  344. package/dpr/routes/journeys/my-reports/recently-viewed/list/routes.js +47 -1
  345. package/dpr/routes/journeys/my-reports/recently-viewed/list/routes.js.map +3 -3
  346. package/dpr/routes/journeys/my-reports/recently-viewed/list/tests.cy.js +83 -1
  347. package/dpr/routes/journeys/my-reports/recently-viewed/list/tests.cy.js.map +3 -3
  348. package/dpr/routes/journeys/my-reports/recently-viewed/routes.js +49 -1
  349. package/dpr/routes/journeys/my-reports/recently-viewed/routes.js.map +3 -3
  350. package/dpr/routes/journeys/my-reports/recently-viewed/service.js +118 -1
  351. package/dpr/routes/journeys/my-reports/recently-viewed/service.js.map +3 -3
  352. package/dpr/routes/journeys/my-reports/requested-reports/controller.js +52 -1
  353. package/dpr/routes/journeys/my-reports/requested-reports/controller.js.map +3 -3
  354. package/dpr/routes/journeys/my-reports/requested-reports/list/controller.js +65 -1
  355. package/dpr/routes/journeys/my-reports/requested-reports/list/controller.js.map +3 -3
  356. package/dpr/routes/journeys/my-reports/requested-reports/list/routes.js +47 -1
  357. package/dpr/routes/journeys/my-reports/requested-reports/list/routes.js.map +3 -3
  358. package/dpr/routes/journeys/my-reports/requested-reports/list/tests.cy.js +15 -1
  359. package/dpr/routes/journeys/my-reports/requested-reports/list/tests.cy.js.map +3 -3
  360. package/dpr/routes/journeys/my-reports/requested-reports/routes.js +49 -1
  361. package/dpr/routes/journeys/my-reports/requested-reports/routes.js.map +3 -3
  362. package/dpr/routes/journeys/my-reports/requested-reports/service.js +200 -1
  363. package/dpr/routes/journeys/my-reports/requested-reports/service.js.map +3 -3
  364. package/dpr/routes/journeys/my-reports/routes.js +59 -1
  365. package/dpr/routes/journeys/my-reports/routes.js.map +3 -3
  366. package/dpr/routes/journeys/product-collection/routes.js +45 -1
  367. package/dpr/routes/journeys/product-collection/routes.js.map +3 -3
  368. package/dpr/routes/journeys/product-collection/selected/controller.js +55 -1
  369. package/dpr/routes/journeys/product-collection/selected/controller.js.map +3 -3
  370. package/dpr/routes/journeys/product-collection/selected/routes.js +37 -1
  371. package/dpr/routes/journeys/product-collection/selected/routes.js.map +3 -3
  372. package/dpr/routes/journeys/product-collection/selected/tests.cy.js +47 -1
  373. package/dpr/routes/journeys/product-collection/selected/tests.cy.js.map +3 -3
  374. package/dpr/routes/journeys/product-collection/selected/validation.js +41 -1
  375. package/dpr/routes/journeys/product-collection/selected/validation.js.map +3 -3
  376. package/dpr/routes/journeys/request-missing-report/form/controller.js +104 -1
  377. package/dpr/routes/journeys/request-missing-report/form/controller.js.map +3 -3
  378. package/dpr/routes/journeys/request-missing-report/form/routes.js +50 -1
  379. package/dpr/routes/journeys/request-missing-report/form/routes.js.map +3 -3
  380. package/dpr/routes/journeys/request-missing-report/form/tests.cy.js +22 -1
  381. package/dpr/routes/journeys/request-missing-report/form/tests.cy.js.map +3 -3
  382. package/dpr/routes/journeys/request-missing-report/form/validation.js +43 -1
  383. package/dpr/routes/journeys/request-missing-report/form/validation.js.map +3 -3
  384. package/dpr/routes/journeys/request-missing-report/routes.js +57 -1
  385. package/dpr/routes/journeys/request-missing-report/routes.js.map +3 -3
  386. package/dpr/routes/journeys/request-missing-report/submitted/controller.js +65 -1
  387. package/dpr/routes/journeys/request-missing-report/submitted/controller.js.map +3 -3
  388. package/dpr/routes/journeys/request-missing-report/submitted/routes.js +47 -1
  389. package/dpr/routes/journeys/request-missing-report/submitted/routes.js.map +3 -3
  390. package/dpr/routes/journeys/request-missing-report/submitted/tests.cy.js +14 -1
  391. package/dpr/routes/journeys/request-missing-report/submitted/tests.cy.js.map +3 -3
  392. package/dpr/routes/journeys/request-missing-report/tests.cy.js +37 -1
  393. package/dpr/routes/journeys/request-missing-report/tests.cy.js.map +3 -3
  394. package/dpr/routes/journeys/request-report/controller.js +79 -1
  395. package/dpr/routes/journeys/request-report/controller.js.map +3 -3
  396. package/dpr/routes/journeys/request-report/filters/controller.js +127 -1
  397. package/dpr/routes/journeys/request-report/filters/controller.js.map +3 -3
  398. package/dpr/routes/journeys/request-report/filters/routes.js +50 -1
  399. package/dpr/routes/journeys/request-report/filters/routes.js.map +3 -3
  400. package/dpr/routes/journeys/request-report/filters/tests.cy.js +451 -1
  401. package/dpr/routes/journeys/request-report/filters/tests.cy.js.map +3 -3
  402. package/dpr/routes/journeys/request-report/filters/utils.js +331 -1
  403. package/dpr/routes/journeys/request-report/filters/utils.js.map +3 -3
  404. package/dpr/routes/journeys/request-report/routes.js +100 -1
  405. package/dpr/routes/journeys/request-report/routes.js.map +3 -3
  406. package/dpr/routes/journeys/request-report/status/controller.js +80 -1
  407. package/dpr/routes/journeys/request-report/status/controller.js.map +3 -3
  408. package/dpr/routes/journeys/request-report/status/routes.js +48 -1
  409. package/dpr/routes/journeys/request-report/status/routes.js.map +3 -3
  410. package/dpr/routes/journeys/request-report/status/tests.cy.js +127 -1
  411. package/dpr/routes/journeys/request-report/status/tests.cy.js.map +3 -3
  412. package/dpr/routes/journeys/request-report/status/utils.js +72 -1
  413. package/dpr/routes/journeys/request-report/status/utils.js.map +3 -3
  414. package/dpr/routes/journeys/request-report/tests.cy.js +307 -1
  415. package/dpr/routes/journeys/request-report/tests.cy.js.map +3 -3
  416. package/dpr/routes/journeys/routes.js +46 -1
  417. package/dpr/routes/journeys/routes.js.map +3 -3
  418. package/dpr/routes/journeys/view-report/async/controller.js +89 -1
  419. package/dpr/routes/journeys/view-report/async/controller.js.map +3 -3
  420. package/dpr/routes/journeys/view-report/async/dashboard/controller.js +82 -1
  421. package/dpr/routes/journeys/view-report/async/dashboard/controller.js.map +3 -3
  422. package/dpr/routes/journeys/view-report/async/dashboard/routes.js +48 -1
  423. package/dpr/routes/journeys/view-report/async/dashboard/routes.js.map +3 -3
  424. package/dpr/routes/journeys/view-report/async/dashboard/tests.cy.js +33 -1
  425. package/dpr/routes/journeys/view-report/async/dashboard/tests.cy.js.map +3 -3
  426. package/dpr/routes/journeys/view-report/async/dashboard/utils.js +242 -1
  427. package/dpr/routes/journeys/view-report/async/dashboard/utils.js.map +3 -3
  428. package/dpr/routes/journeys/view-report/async/report/controller.js +83 -1
  429. package/dpr/routes/journeys/view-report/async/report/controller.js.map +3 -3
  430. package/dpr/routes/journeys/view-report/async/report/report-variants.cy.js +76 -1
  431. package/dpr/routes/journeys/view-report/async/report/report-variants.cy.js.map +3 -3
  432. package/dpr/routes/journeys/view-report/async/report/routes.js +53 -1
  433. package/dpr/routes/journeys/view-report/async/report/routes.js.map +3 -3
  434. package/dpr/routes/journeys/view-report/async/report/tests.cy.js +895 -1
  435. package/dpr/routes/journeys/view-report/async/report/tests.cy.js.map +3 -3
  436. package/dpr/routes/journeys/view-report/async/report/types.js +16 -1
  437. package/dpr/routes/journeys/view-report/async/report/types.js.map +3 -3
  438. package/dpr/routes/journeys/view-report/async/report/utils.js +427 -1
  439. package/dpr/routes/journeys/view-report/async/report/utils.js.map +3 -3
  440. package/dpr/routes/journeys/view-report/async/routes.js +52 -1
  441. package/dpr/routes/journeys/view-report/async/routes.js.map +3 -3
  442. package/dpr/routes/journeys/view-report/controller.js +62 -1
  443. package/dpr/routes/journeys/view-report/controller.js.map +4 -4
  444. package/dpr/routes/journeys/view-report/controller.ts +1 -1
  445. package/dpr/routes/journeys/view-report/routes.js +87 -1
  446. package/dpr/routes/journeys/view-report/routes.js.map +3 -3
  447. package/dpr/routes/journeys/view-report/sync/dashboard/controller.js +68 -1
  448. package/dpr/routes/journeys/view-report/sync/dashboard/controller.js.map +3 -3
  449. package/dpr/routes/journeys/view-report/sync/dashboard/routes.js +48 -1
  450. package/dpr/routes/journeys/view-report/sync/dashboard/routes.js.map +3 -3
  451. package/dpr/routes/journeys/view-report/sync/dashboard/utils.js +144 -1
  452. package/dpr/routes/journeys/view-report/sync/dashboard/utils.js.map +3 -3
  453. package/dpr/routes/journeys/view-report/sync/load-report/controller.js +102 -1
  454. package/dpr/routes/journeys/view-report/sync/load-report/controller.js.map +3 -3
  455. package/dpr/routes/journeys/view-report/sync/load-report/routes.js +47 -1
  456. package/dpr/routes/journeys/view-report/sync/load-report/routes.js.map +3 -3
  457. package/dpr/routes/journeys/view-report/sync/report/controller.js +99 -1
  458. package/dpr/routes/journeys/view-report/sync/report/controller.js.map +3 -3
  459. package/dpr/routes/journeys/view-report/sync/report/routes.js +51 -1
  460. package/dpr/routes/journeys/view-report/sync/report/routes.js.map +3 -3
  461. package/dpr/routes/journeys/view-report/sync/report/utils.js +298 -1
  462. package/dpr/routes/journeys/view-report/sync/report/utils.js.map +3 -3
  463. package/dpr/routes/journeys/view-report/sync/routes.js +51 -1
  464. package/dpr/routes/journeys/view-report/sync/routes.js.map +3 -3
  465. package/dpr/routes/journeys/view-report/sync/tests.cy.js +43 -1
  466. package/dpr/routes/journeys/view-report/sync/tests.cy.js.map +3 -3
  467. package/dpr/routes/journeys/view-report/utils.js +173 -1
  468. package/dpr/routes/journeys/view-report/utils.js.map +3 -3
  469. package/dpr/services/dashboardService.js +66 -1
  470. package/dpr/services/dashboardService.js.map +3 -3
  471. package/dpr/services/defaultFilterValuesService.js +114 -1
  472. package/dpr/services/defaultFilterValuesService.js.map +3 -3
  473. package/dpr/services/featureFlagService.js +65 -1
  474. package/dpr/services/featureFlagService.js.map +3 -3
  475. package/dpr/services/featureFlags.cy.js +72 -1
  476. package/dpr/services/featureFlags.cy.js.map +3 -3
  477. package/dpr/services/index.js +59 -1
  478. package/dpr/services/index.js.map +3 -3
  479. package/dpr/services/missingReport/missingReportService.js +52 -1
  480. package/dpr/services/missingReport/missingReportService.js.map +3 -3
  481. package/dpr/services/productCollection/productCollectionService.js +55 -1
  482. package/dpr/services/productCollection/productCollectionService.js.map +3 -3
  483. package/dpr/services/productCollection/productCollectionStoreService.js +61 -1
  484. package/dpr/services/productCollection/productCollectionStoreService.js.map +3 -3
  485. package/dpr/services/reportStoreService.js +51 -1
  486. package/dpr/services/reportStoreService.js.map +3 -3
  487. package/dpr/services/reportingService.js +81 -1
  488. package/dpr/services/reportingService.js.map +3 -3
  489. package/dpr/setUpNunjucksFilters.js +66 -1
  490. package/dpr/setUpNunjucksFilters.js.map +3 -3
  491. package/dpr/types/AsyncReportUtils.js +16 -1
  492. package/dpr/types/AsyncReportUtils.js.map +3 -3
  493. package/dpr/types/Bookmark.js +16 -1
  494. package/dpr/types/Bookmark.js.map +3 -3
  495. package/dpr/types/Charts.js +16 -1
  496. package/dpr/types/Charts.js.map +3 -3
  497. package/dpr/types/Download.js +16 -1
  498. package/dpr/types/Download.js.map +3 -3
  499. package/dpr/types/DprConfig.js +16 -1
  500. package/dpr/types/DprConfig.js.map +3 -3
  501. package/dpr/types/DprUser.js +43 -1
  502. package/dpr/types/DprUser.js.map +3 -3
  503. package/dpr/types/EmbeddedReportUtils.js +33 -1
  504. package/dpr/types/EmbeddedReportUtils.js.map +3 -3
  505. package/dpr/types/ExecutionData.d.js +16 -1
  506. package/dpr/types/ExecutionData.d.js.map +3 -3
  507. package/dpr/types/Metrics.js +16 -1
  508. package/dpr/types/Metrics.js.map +3 -3
  509. package/dpr/types/ReportQuery.js +168 -1
  510. package/dpr/types/ReportQuery.js.map +3 -3
  511. package/dpr/types/ReportStore.js +16 -1
  512. package/dpr/types/ReportStore.js.map +3 -3
  513. package/dpr/types/Services.d.js +16 -1
  514. package/dpr/types/Services.d.js.map +3 -3
  515. package/dpr/types/Templates.d.js +16 -1
  516. package/dpr/types/Templates.d.js.map +3 -3
  517. package/dpr/types/UserReports.js +55 -1
  518. package/dpr/types/UserReports.js.map +3 -3
  519. package/dpr/types/api.d.js +16 -1
  520. package/dpr/types/api.d.js.map +3 -3
  521. package/dpr/types/index.d.js +16 -1
  522. package/dpr/types/index.d.js.map +3 -3
  523. package/dpr/utils/CollatedSummaryBuilder/CollatedSummaryBuilder.js +91 -1
  524. package/dpr/utils/CollatedSummaryBuilder/CollatedSummaryBuilder.js.map +3 -3
  525. package/dpr/utils/CreateDprServices.js +66 -1
  526. package/dpr/utils/CreateDprServices.js.map +3 -3
  527. package/dpr/utils/DataTableBuilder/DataTableBuilder.js +304 -1
  528. package/dpr/utils/DataTableBuilder/DataTableBuilder.js.map +3 -3
  529. package/dpr/utils/DataTableBuilder/types.d.js +16 -1
  530. package/dpr/utils/DataTableBuilder/types.d.js.map +3 -3
  531. package/dpr/utils/DateMapper/DateMapper.js +125 -1
  532. package/dpr/utils/DateMapper/DateMapper.js.map +3 -3
  533. package/dpr/utils/DateMapper/types.d.js +16 -1
  534. package/dpr/utils/DateMapper/types.d.js.map +3 -3
  535. package/dpr/utils/ErrorHandler.js +94 -1
  536. package/dpr/utils/ErrorHandler.js.map +3 -3
  537. package/dpr/utils/ParentChildDataTableBuilder/ParentChildDataTableBuilder.js +201 -1
  538. package/dpr/utils/ParentChildDataTableBuilder/ParentChildDataTableBuilder.js.map +3 -3
  539. package/dpr/utils/ParentChildDataTableBuilder/types.d.js +16 -1
  540. package/dpr/utils/ParentChildDataTableBuilder/types.d.js.map +3 -3
  541. package/dpr/utils/Personalisation/personalisationUtils.js +202 -1
  542. package/dpr/utils/Personalisation/personalisationUtils.js.map +3 -3
  543. package/dpr/utils/Personalisation/types.d.js +16 -1
  544. package/dpr/utils/Personalisation/types.d.js.map +3 -3
  545. package/dpr/utils/SectionedDataTableBuilder/SectionedDataTableBuilder.js +310 -1
  546. package/dpr/utils/SectionedDataTableBuilder/SectionedDataTableBuilder.js.map +3 -3
  547. package/dpr/utils/SectionedDataTableBuilder/types.d.js +16 -1
  548. package/dpr/utils/SectionedDataTableBuilder/types.d.js.map +3 -3
  549. package/dpr/utils/SectionedFieldsTableBuilder/SectionedFieldsTableBuilder.js +145 -1
  550. package/dpr/utils/SectionedFieldsTableBuilder/SectionedFieldsTableBuilder.js.map +3 -3
  551. package/dpr/utils/SummaryDataTableBuilder/SummaryDataTableBuilder.js +60 -1
  552. package/dpr/utils/SummaryDataTableBuilder/SummaryDataTableBuilder.js.map +3 -3
  553. package/dpr/utils/UserStoreItemBuilder.js +247 -1
  554. package/dpr/utils/UserStoreItemBuilder.js.map +3 -3
  555. package/dpr/utils/arrayUtils.js +28 -1
  556. package/dpr/utils/arrayUtils.js.map +3 -3
  557. package/dpr/utils/datasetHelper.js +229 -1
  558. package/dpr/utils/datasetHelper.js.map +3 -3
  559. package/dpr/utils/definitionUtils.js +133 -1
  560. package/dpr/utils/definitionUtils.js.map +3 -3
  561. package/dpr/utils/index.js +44 -1
  562. package/dpr/utils/index.js.map +3 -3
  563. package/dpr/utils/indexedAccesHelper.js +41 -1
  564. package/dpr/utils/indexedAccesHelper.js.map +3 -3
  565. package/dpr/utils/localsHelper.js +105 -1
  566. package/dpr/utils/localsHelper.js.map +3 -3
  567. package/dpr/utils/logger.js +48 -1
  568. package/dpr/utils/logger.js.map +3 -3
  569. package/dpr/utils/reportListsHelper.js +128 -12
  570. package/dpr/utils/reportListsHelper.js.map +3 -3
  571. package/dpr/utils/reportStoreHelper.js +65 -1
  572. package/dpr/utils/reportStoreHelper.js.map +3 -3
  573. package/dpr/utils/requestStatusHelper.js +172 -1
  574. package/dpr/utils/requestStatusHelper.js.map +3 -3
  575. package/dpr/utils/sanitisedError.js +45 -1
  576. package/dpr/utils/sanitisedError.js.map +3 -3
  577. package/dpr/utils/urlHelper.js +103 -1
  578. package/dpr/utils/urlHelper.js.map +3 -3
  579. package/dpr/validation/validate.js +52 -1
  580. package/dpr/validation/validate.js.map +3 -3
  581. package/package.json +11 -6
@@ -1,2 +1,73 @@
1
- "use strict";var l=require("cypress-tests/cypressUtils"),a=require("test-app/routes/integrationTests/appStateUtils");context("Viewing a report",()=>{const s="/embedded/platform/";after(()=>{cy.task("stubFeatureFlags"),(0,a.resetFeatureFlags)()}),describe("Feature flags",()=>{beforeEach(()=>{(0,l.executeReportStubs)(),cy.task("stubDefinitionRequestExamplesSuccess"),cy.task("stubRequestSuccessResult20"),(0,a.resetFeatureFlags)()}),it("should show the ability to save filters as default with feature flag enabled",()=>{cy.task("stubFeatureFlags"),cy.visit(s),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(i,t)=>!!t?.textContent?.includes("Successful Report")&&!!t?.textContent?.includes("this will succeed")}).within(()=>{cy.findByRole("link",{name:"Request report"}).click()})}),cy.findByRole("button",{name:/Save current filter values as defaults/}).should("be.visible");const e=cy.contains("summary",/Help/);e.click(),e.parent("details").invoke("attr","open").should("exist"),cy.findByRole("heading",{name:/Save current filter values as defaults/}).should("be.visible")}),it("should show the ability to save filters as default with feature flag not existing",()=>{cy.task("stubFeatureFlagsEmpty"),cy.visit(s),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(i,t)=>!!t?.textContent?.includes("Successful Report")&&!!t?.textContent?.includes("this will succeed")}).within(()=>{cy.findByRole("link",{name:"Request report"}).click()})}),cy.findByRole("button",{name:/Save current filter values as defaults/}).should("be.visible");const e=cy.contains("summary",/Help/);e.click(),e.parent("details").invoke("attr","open").should("exist"),cy.findByRole("heading",{name:/Save current filter values as defaults/}).should("be.visible")}),it("should not show the ability to save filters as default with feature flag disabled",()=>{cy.task("stubFeatureFlagsDisabled"),cy.visit(s),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(i,t)=>!!t?.textContent?.includes("Successful Report")&&!!t?.textContent?.includes("this will succeed")}).within(()=>{cy.findByRole("link",{name:"Request report"}).click()})}),cy.findByRole("button",{name:/Save current filter values as defaults/}).should("not.exist");const e=cy.contains("summary",/Help/);e.click(),e.parent("details").invoke("attr","open").should("exist"),cy.findByRole("heading",{name:/Save current filter values as defaults/}).should("not.exist")})})});
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/dpr/services/featureFlags.cy.ts"],
3
+ "sources": ["../../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": "aAAA,IAAAA,EAAmC,sCACnCC,EAAkC,0DAElC,QAAQ,mBAAoB,IAAM,CAChC,MAAMC,EAAO,sBAGb,MAAM,IAAM,CACV,GAAG,KAAK,kBAAkB,KAC1B,qBAAkB,CACpB,CAAC,EAED,SAAS,gBAAiB,IAAM,CAC9B,WAAW,IAAM,IACf,sBAAmB,EACnB,GAAG,KAAK,sCAAsC,EAC9C,GAAG,KAAK,4BAA4B,KACpC,qBAAkB,CACpB,CAAC,EAED,GAAG,+EAAgF,IAAM,CACvF,GAAG,KAAK,kBAAkB,EAE1B,GAAG,MAAMA,CAAI,EACb,GAAG,gBAAgB,sBAAsB,EAAE,OAAO,IAAM,CACtD,GAAG,WAAW,MAAO,CACnB,KAAM,CAACC,EAAGC,IAEN,EAAQA,GAAS,aAAa,SAAS,mBAAmB,GAC1D,EAAQA,GAAS,aAAa,SAAS,mBAAmB,CAGhE,CAAC,EAAE,OAAO,IAAM,CACd,GAAG,WAAW,OAAQ,CAAE,KAAM,gBAAiB,CAAC,EAAE,MAAM,CAC1D,CAAC,CACH,CAAC,EAED,GAAG,WAAW,SAAU,CAAE,KAAM,wCAAyC,CAAC,EAAE,OAAO,YAAY,EAC/F,MAAMC,EAAc,GAAG,SAAS,UAAW,MAAM,EACjDA,EAAY,MAAM,EAClBA,EAAY,OAAO,SAAS,EAAE,OAAO,OAAQ,MAAM,EAAE,OAAO,OAAO,EACnE,GAAG,WAAW,UAAW,CAAE,KAAM,wCAAyC,CAAC,EAAE,OAAO,YAAY,CAClG,CAAC,EAED,GAAG,oFAAqF,IAAM,CAC5F,GAAG,KAAK,uBAAuB,EAE/B,GAAG,MAAMH,CAAI,EACb,GAAG,gBAAgB,sBAAsB,EAAE,OAAO,IAAM,CACtD,GAAG,WAAW,MAAO,CACnB,KAAM,CAACC,EAAGC,IAEN,EAAQA,GAAS,aAAa,SAAS,mBAAmB,GAC1D,EAAQA,GAAS,aAAa,SAAS,mBAAmB,CAGhE,CAAC,EAAE,OAAO,IAAM,CACd,GAAG,WAAW,OAAQ,CAAE,KAAM,gBAAiB,CAAC,EAAE,MAAM,CAC1D,CAAC,CACH,CAAC,EAED,GAAG,WAAW,SAAU,CAAE,KAAM,wCAAyC,CAAC,EAAE,OAAO,YAAY,EAC/F,MAAMC,EAAc,GAAG,SAAS,UAAW,MAAM,EACjDA,EAAY,MAAM,EAClBA,EAAY,OAAO,SAAS,EAAE,OAAO,OAAQ,MAAM,EAAE,OAAO,OAAO,EACnE,GAAG,WAAW,UAAW,CAAE,KAAM,wCAAyC,CAAC,EAAE,OAAO,YAAY,CAClG,CAAC,EAED,GAAG,oFAAqF,IAAM,CAC5F,GAAG,KAAK,0BAA0B,EAElC,GAAG,MAAMH,CAAI,EACb,GAAG,gBAAgB,sBAAsB,EAAE,OAAO,IAAM,CACtD,GAAG,WAAW,MAAO,CACnB,KAAM,CAACC,EAAGC,IAEN,EAAQA,GAAS,aAAa,SAAS,mBAAmB,GAC1D,EAAQA,GAAS,aAAa,SAAS,mBAAmB,CAGhE,CAAC,EAAE,OAAO,IAAM,CACd,GAAG,WAAW,OAAQ,CAAE,KAAM,gBAAiB,CAAC,EAAE,MAAM,CAC1D,CAAC,CACH,CAAC,EAED,GAAG,WAAW,SAAU,CAAE,KAAM,wCAAyC,CAAC,EAAE,OAAO,WAAW,EAC9F,MAAMC,EAAc,GAAG,SAAS,UAAW,MAAM,EACjDA,EAAY,MAAM,EAClBA,EAAY,OAAO,SAAS,EAAE,OAAO,OAAQ,MAAM,EAAE,OAAO,OAAO,EACnE,GAAG,WAAW,UAAW,CAAE,KAAM,wCAAyC,CAAC,EAAE,OAAO,WAAW,CACjG,CAAC,CACH,CAAC,CACH,CAAC",
6
- "names": ["import_cypressUtils", "import_appStateUtils", "path", "_", "element", "helpSummary"]
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
  }
@@ -1,2 +1,60 @@
1
- "use strict";var n=Object.create;var t=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var V=(r,e)=>{for(var o in e)t(r,o,{get:e[o],enumerable:!0})},d=(r,e,o,R)=>{if(e&&typeof e=="object"||typeof e=="function")for(let m of D(e))!w.call(r,m)&&m!==o&&t(r,m,{get:()=>e[m],enumerable:!(R=u(e,m))||R.enumerable});return r};var i=(r,e,o)=>(o=r!=null?n(k(r)):{},d(e||!r||!r.__esModule?t(o,"default",{value:r,enumerable:!0}):o,r)),b=r=>d(t({},"__esModule",{value:!0}),r);var g={};V(g,{BookmarkService:()=>S.default,DashboardService:()=>s.default,DefaultFilterValuesService:()=>v.default,DownloadPermissionService:()=>p.default,RecentlyViewedStoreService:()=>f.default,ReportStoreService:()=>a.default,ReportingService:()=>l.default,RequestedReportService:()=>c.default});module.exports=b(g);var p=i(require("../routes/journeys/download-report/request-download/service")),S=i(require("../routes/journeys/my-reports/bookmarks/service")),c=i(require("../routes/journeys/my-reports/requested-reports/service")),f=i(require("../routes/journeys/my-reports/recently-viewed/service")),v=i(require("./defaultFilterValuesService")),a=i(require("./reportStoreService")),l=i(require("./reportingService")),s=i(require("./dashboardService"));0&&(module.exports={BookmarkService,DashboardService,DefaultFilterValuesService,DownloadPermissionService,RecentlyViewedStoreService,ReportStoreService,ReportingService,RequestedReportService});
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/dpr/services/index.ts"],
3
+ "sources": ["../../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": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,uBAAAE,QAAA,uBAAAC,QAAA,iCAAAC,QAAA,gCAAAC,QAAA,iCAAAC,QAAA,yBAAAC,QAAA,uBAAAC,QAAA,6BAAAC,UAAA,eAAAC,EAAAV,GAAA,IAAAW,EAAsC,0EACtCA,EAA4B,8DAC5BA,EAAmC,sEACnCA,EAAuC,oEACvCC,EAAuC,2CACvCC,EAA+B,mCAC/BC,EAA6B,iCAC7BC,EAA6B",
6
- "names": ["services_exports", "__export", "BookmarkService", "DashboardService", "DefaultFilterValuesService", "DownloadPermissionService", "RecentlyViewedStoreService", "ReportStoreService", "ReportingService", "RequestedReportService", "__toCommonJS", "import_service", "import_defaultFilterValuesService", "import_reportStoreService", "import_reportingService", "import_dashboardService"]
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";var l=Object.create;var s=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var c=(i,e)=>{for(var n in e)s(i,n,{get:e[n],enumerable:!0})},p=(i,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of a(e))!f.call(i,t)&&t!==n&&s(i,t,{get:()=>e[t],enumerable:!(r=m(e,t))||r.enumerable});return i};var u=(i,e,n)=>(n=i!=null?l(d(i)):{},p(e||!i||!i.__esModule?s(n,"default",{value:i,enumerable:!0}):n,i)),b=i=>p(s({},"__esModule",{value:!0}),i);var M={};c(M,{MissingReportService:()=>o,default:()=>R});module.exports=b(M);var g=u(require("../../utils/logger"));class o{constructor(e,n){this.missingReportClient=e;this.enabled=!!n.collections,this.enabled||g.default.info("Missing reports: disabled ")}enabled;submitMissingReportEntry(e,n,r,t){if(this.enabled)return this.missingReportClient.submitMissingReportEntry(e,n,r,t)}}var R=o;0&&(module.exports={MissingReportService});
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/dpr/services/missingReport/missingReportService.ts"],
3
+ "sources": ["../../../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": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,0BAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAAmB,iCAKnB,MAAMH,CAAqB,CAGzB,YAA6BI,EAA0CC,EAA4C,CAAtF,yBAAAD,EAC3B,KAAK,QAAU,EAAQC,EAAqB,YACvC,KAAK,SAAS,EAAAC,QAAO,KAAK,4BAA4B,CAC7D,CALA,QAOA,yBACEC,EACAC,EACAC,EACAC,EACuE,CACvE,GAAK,KAAK,QACV,OAAO,KAAK,oBAAoB,yBAAyBH,EAAOC,EAAUC,EAAWC,CAAM,CAC7F,CACF,CAGA,IAAOT,EAAQD",
6
- "names": ["missingReportService_exports", "__export", "MissingReportService", "missingReportService_default", "__toCommonJS", "import_logger", "missingReportClient", "serviceFeatureConfig", "logger", "token", "reportId", "variantId", "reason"]
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";var s=Object.create;var i=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty;var m=(e,o)=>{for(var t in o)i(e,t,{get:o[t],enumerable:!0})},l=(e,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of u(o))!a.call(e,n)&&n!==t&&i(e,n,{get:()=>o[n],enumerable:!(r=d(o,n))||r.enumerable});return e};var f=(e,o,t)=>(t=e!=null?s(C(e)):{},l(o||!e||!e.__esModule?i(t,"default",{value:e,enumerable:!0}):t,e)),p=e=>l(i({},"__esModule",{value:!0}),e);var g={};m(g,{ProductCollectionService:()=>P});module.exports=p(g);var c=f(require("../../utils/logger"));class P{constructor(o,t){this.productCollectionClient=o;this.productCollectionClient=o,this.enabled=!!t.collections,this.enabled||c.default.info("Product collections: disabled ")}enabled;async getProductCollections(o){return this.enabled?this.productCollectionClient.getProductCollections(o):[]}async getProductCollection(o,t){if(this.enabled)return this.productCollectionClient.getProductCollection(o,t)}}0&&(module.exports={ProductCollectionService});
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/dpr/services/productCollection/productCollectionService.ts"],
3
+ "sources": ["../../../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": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,8BAAAE,IAAA,eAAAC,EAAAH,GAGA,IAAAI,EAAmB,iCAEZ,MAAMF,CAAyB,CAGpC,YACmBG,EACjBC,EACA,CAFiB,6BAAAD,EAGjB,KAAK,wBAA0BA,EAC/B,KAAK,QAAU,EAAQC,EAAqB,YACvC,KAAK,SAAS,EAAAC,QAAO,KAAK,gCAAgC,CACjE,CATA,QAWA,MAAM,sBAAsBC,EAA6E,CACvG,OAAK,KAAK,QACH,KAAK,wBAAwB,sBAAsBA,CAAK,EADrC,CAAC,CAE7B,CAEA,MAAM,qBACJA,EACAC,EACoE,CACpE,GAAK,KAAK,QACV,OAAO,KAAK,wBAAwB,qBAAqBD,EAAOC,CAAE,CACpE,CACF",
6
- "names": ["productCollectionService_exports", "__export", "ProductCollectionService", "__toCommonJS", "import_logger", "productCollectionClient", "serviceFeatureConfig", "logger", "token", "id"]
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";var s=Object.create;var i=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var C=(t,e)=>{for(var o in e)i(t,o,{get:e[o],enumerable:!0})},c=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of a(e))!f.call(t,n)&&n!==o&&i(t,n,{get:()=>e[n],enumerable:!(r=d(e,n))||r.enumerable});return t};var S=(t,e,o)=>(o=t!=null?s(u(t)):{},c(e||!t||!t.__esModule?i(o,"default",{value:t,enumerable:!0}):o,t)),g=t=>c(i({},"__esModule",{value:!0}),t);var m={};C(m,{ProductCollectionStoreService:()=>p});module.exports=g(m);var l=S(require("../reportStoreService"));class p extends l.default{enabled;constructor(e,o){super(e),this.enabled=!!o.collections}async getSelectedProductCollectionId(e){return this.enabled?(await this.getState(e)).productCollectionInfo?.selectedProductCollection:void 0}async setSelectedProductCollectionId(e,o){if(!this.enabled)return;const r=await this.getState(e);return this.saveState(e,{...r,productCollectionInfo:{...r.productCollectionInfo,selectedProductCollection:o}})}}0&&(module.exports={ProductCollectionStoreService});
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/dpr/services/productCollection/productCollectionStoreService.ts"],
3
+ "sources": ["../../../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": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mCAAAE,IAAA,eAAAC,EAAAH,GAEA,IAAAI,EAA+B,oCAExB,MAAMF,UAAsC,EAAAG,OAAmB,CACpE,QAEA,YAAYC,EAAkCC,EAA4C,CACxF,MAAMD,CAAe,EACrB,KAAK,QAAU,EAAQC,EAAqB,WAC9C,CAEA,MAAM,+BAA+BC,EAA6C,CAChF,OAAK,KAAK,SAES,MAAM,KAAK,SAASA,CAAM,GAC3B,uBAAuB,0BAHtB,MAIrB,CAEA,MAAM,+BAA+BA,EAAgBC,EAA2B,CAC9E,GAAI,CAAC,KAAK,QAAS,OAEnB,MAAMC,EAAa,MAAM,KAAK,SAASF,CAAM,EAC7C,OAAO,KAAK,UAAUA,EAAQ,CAC5B,GAAGE,EACH,sBAAuB,CACrB,GAAGA,EAAW,sBACd,0BAA2BD,CAC7B,CACF,CAAC,CACH,CACF",
6
- "names": ["productCollectionStoreService_exports", "__export", "ProductCollectionStoreService", "__toCommonJS", "import_reportStoreService", "ReportStoreService", "reportDataStore", "serviceFeatureConfig", "userId", "id", "userConfig"]
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";var a=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})},S=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of d(t))!p.call(e,n)&&n!==r&&a(e,n,{get:()=>t[n],enumerable:!(o=s(t,n))||o.enumerable});return e};var g=e=>S(a({},"__esModule",{value:!0}),e);var R={};f(R,{ReportStoreService:()=>i,default:()=>I});module.exports=g(R);class i{constructor(t){this.reportDataStore=t;this.reportStore=t}reportStore;async getState(t){return this.reportStore.getUserConfig(t)}async saveState(t,r){await this.reportStore.setUserConfig(t,r)}findIndexByExecutionId(t,r){return r.findIndex(o=>o.executionId===t)}findIndexByTableId(t,r){return r.findIndex(o=>o.tableId===t)}findIndexByReportId(t,r){return r.findIndex(o=>o.id===t)}}var I=i;0&&(module.exports={ReportStoreService});
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/dpr/services/reportStoreService.ts"],
3
+ "sources": ["../../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": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAIA,MAAME,CAAmB,CAGvB,YAAqBG,EAAkC,CAAlC,qBAAAA,EACnB,KAAK,YAAcA,CACrB,CAJA,YAMA,MAAM,SAASC,EAAgB,CAC7B,OAAO,KAAK,YAAY,cAAcA,CAAM,CAC9C,CAEA,MAAM,UAAUA,EAAgBC,EAA+B,CAC7D,MAAM,KAAK,YAAY,cAAcD,EAAQC,CAAU,CACzD,CAEA,uBAAuBC,EAAYC,EAAyB,CAC1D,OAAOA,EAAM,UAAWC,GAAWA,EAAO,cAAgBF,CAAE,CAC9D,CAEA,mBAAmBA,EAAYC,EAAyB,CACtD,OAAOA,EAAM,UAAWC,GAAWA,EAAO,UAAYF,CAAE,CAC1D,CAEA,oBAAoBA,EAAYC,EAAyB,CACvD,OAAOA,EAAM,UAAWC,GAAWA,EAAO,KAAOF,CAAE,CACrD,CACF,CAGA,IAAOL,EAAQD",
6
- "names": ["reportStoreService_exports", "__export", "ReportStoreService", "reportStoreService_default", "__toCommonJS", "reportDataStore", "userId", "userConfig", "id", "array", "report"]
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";var o=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(s,t)=>{for(var r in t)o(s,r,{get:t[r],enumerable:!0})},y=(s,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of a(t))!p.call(s,i)&&i!==r&&o(s,i,{get:()=>t[i],enumerable:!(n=m(t,i))||n.enumerable});return s};var l=s=>y(o({},"__esModule",{value:!0}),s);var R={};u(R,{ReportingService:()=>c,default:()=>C});module.exports=l(R);class c{constructor(t){this.reportingClient=t;this.reportingClient=t}async getCount(t,r,n){return this.reportingClient.getCount(t,r,n)}async getList(t,r,n){return this.reportingClient.getList(t,r,n)}async getListWithWarnings(t,r,n){return this.reportingClient.getListWithWarnings(t,r,n)}async getDefinitionSummary(t,r,n){return this.reportingClient.getDefinitionSummary(t,r,n)}async getDefinitions(t,r){return this.reportingClient.getDefinitions(t,r)}async getDefinition(t,r,n,i,e){return this.reportingClient.getDefinition(t,r,n,i,e)}async requestAsyncReport(t,r,n,i){return this.reportingClient.requestAsyncReport(t,r,n,i)}async cancelAsyncRequest(t,r,n,i,e){return this.reportingClient.cancelAsyncRequest(t,r,n,i,e)}async getAsyncReport(t,r,n,i,e){return this.reportingClient.getAsyncReport(t,r,n,i,e)}async getAsyncSummaryReport(t,r,n,i,e,g){return this.reportingClient.getAsyncSummaryReport(t,r,n,i,e,g)}async getAsyncReportStatus(t,r,n,i,e,g){return this.reportingClient.getAsyncReportStatus(t,r,n,i,e,g)}async getAsyncCount(t,r,n){return this.reportingClient.getAsyncCount(t,r,n)}async getAsyncInteractiveCount(t,r,n,i,e){return this.reportingClient.getAsyncInteractiveCount(t,r,n,i,e)}}var C=c;0&&(module.exports={ReportingService});
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