@ynput/ayon-frontend-shared 0.2.26 → 0.2.28

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 (367) hide show
  1. package/dist/DetailsPanel.cjs.js +1 -1
  2. package/dist/DetailsPanel.es.js +25 -22
  3. package/dist/DetailsPanel.es.js.map +1 -1
  4. package/dist/Views.cjs.js +1 -1
  5. package/dist/Views.cjs.js.map +1 -1
  6. package/dist/Views.es.js +13 -11
  7. package/dist/Views.es.js.map +1 -1
  8. package/dist/api.cjs.js +1 -1
  9. package/dist/api.es.js +153 -151
  10. package/dist/components.cjs.js +1 -1
  11. package/dist/components.es.js +62 -51
  12. package/dist/components.es.js.map +1 -1
  13. package/dist/index.cjs.js +1 -1
  14. package/dist/index.es.js +12 -6
  15. package/dist/index.es.js.map +1 -1
  16. package/dist/shared/src/api/generated/entityLists.cjs.js.map +1 -1
  17. package/dist/shared/src/api/generated/entityLists.es.js.map +1 -1
  18. package/dist/shared/src/api/generated/users.cjs.js.map +1 -1
  19. package/dist/shared/src/api/generated/users.es.js.map +1 -1
  20. package/dist/shared/src/api/generated/views.cjs.js.map +1 -1
  21. package/dist/shared/src/api/generated/views.es.js.map +1 -1
  22. package/dist/shared/src/api/queries/entityLists/getLists.cjs.js +1 -1
  23. package/dist/shared/src/api/queries/entityLists/getLists.cjs.js.map +1 -1
  24. package/dist/shared/src/api/queries/entityLists/getLists.es.js +142 -117
  25. package/dist/shared/src/api/queries/entityLists/getLists.es.js.map +1 -1
  26. package/dist/shared/src/api/queries/entityLists/updateLists.cjs.js +1 -1
  27. package/dist/shared/src/api/queries/entityLists/updateLists.cjs.js.map +1 -1
  28. package/dist/shared/src/api/queries/entityLists/updateLists.es.js +110 -95
  29. package/dist/shared/src/api/queries/entityLists/updateLists.es.js.map +1 -1
  30. package/dist/shared/src/api/queries/users/getUsers.cjs.js +1 -1
  31. package/dist/shared/src/api/queries/users/getUsers.cjs.js.map +1 -1
  32. package/dist/shared/src/api/queries/users/getUsers.es.js +21 -17
  33. package/dist/shared/src/api/queries/users/getUsers.es.js.map +1 -1
  34. package/dist/shared/src/components/AccessUser/AccessUser.cjs.js +2 -0
  35. package/dist/shared/src/components/AccessUser/AccessUser.cjs.js.map +1 -0
  36. package/dist/shared/src/components/AccessUser/AccessUser.es.js +33 -0
  37. package/dist/shared/src/components/AccessUser/AccessUser.es.js.map +1 -0
  38. package/dist/shared/src/components/AccessUser/AccessUser.styled.cjs.js +42 -0
  39. package/dist/shared/src/components/AccessUser/AccessUser.styled.cjs.js.map +1 -0
  40. package/dist/shared/src/components/AccessUser/AccessUser.styled.es.js +46 -0
  41. package/dist/shared/src/components/AccessUser/AccessUser.styled.es.js.map +1 -0
  42. package/dist/shared/src/components/DetailsMetaData/DetailsMetaData.cjs.js +34 -0
  43. package/dist/shared/src/components/DetailsMetaData/DetailsMetaData.cjs.js.map +1 -0
  44. package/dist/shared/src/components/DetailsMetaData/DetailsMetaData.es.js +46 -0
  45. package/dist/shared/src/components/DetailsMetaData/DetailsMetaData.es.js.map +1 -0
  46. package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributesEditor.cjs.js +20 -10
  47. package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributesEditor.cjs.js.map +1 -1
  48. package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributesEditor.es.js +81 -67
  49. package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributesEditor.es.js.map +1 -1
  50. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js +3 -3
  51. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js.map +1 -1
  52. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js +59 -52
  53. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js.map +1 -1
  54. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.cjs.js +1 -1
  55. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.cjs.js.map +1 -1
  56. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.es.js +5 -2
  57. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.es.js.map +1 -1
  58. package/dist/shared/src/components/LinksManager/AddNewLinks.cjs.js +1 -1
  59. package/dist/shared/src/components/LinksManager/AddNewLinks.cjs.js.map +1 -1
  60. package/dist/shared/src/components/LinksManager/AddNewLinks.es.js +5 -2
  61. package/dist/shared/src/components/LinksManager/AddNewLinks.es.js.map +1 -1
  62. package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.cjs.js +1 -1
  63. package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.cjs.js.map +1 -1
  64. package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.es.js +5 -2
  65. package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.es.js.map +1 -1
  66. package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.cjs.js +2 -0
  67. package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.cjs.js.map +1 -0
  68. package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.es.js +205 -0
  69. package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.es.js.map +1 -0
  70. package/dist/shared/src/components/ListMetaData/ListMetaData.cjs.js +2 -0
  71. package/dist/shared/src/components/ListMetaData/ListMetaData.cjs.js.map +1 -0
  72. package/dist/shared/src/components/ListMetaData/ListMetaData.es.js +25 -0
  73. package/dist/shared/src/components/ListMetaData/ListMetaData.es.js.map +1 -0
  74. package/dist/shared/src/components/Powerpack/PowerpackButton.cjs.js +3 -3
  75. package/dist/shared/src/components/Powerpack/PowerpackButton.cjs.js.map +1 -1
  76. package/dist/shared/src/components/Powerpack/PowerpackButton.es.js +5 -5
  77. package/dist/shared/src/components/Powerpack/PowerpackButton.es.js.map +1 -1
  78. package/dist/shared/src/components/Powerpack/PowerpackDialog.cjs.js +1 -1
  79. package/dist/shared/src/components/Powerpack/PowerpackDialog.cjs.js.map +1 -1
  80. package/dist/shared/src/components/Powerpack/PowerpackDialog.es.js +5 -2
  81. package/dist/shared/src/components/Powerpack/PowerpackDialog.es.js.map +1 -1
  82. package/dist/shared/src/components/Powerpack/RequiredPowerpackVersion.cjs.js +9 -0
  83. package/dist/shared/src/components/Powerpack/RequiredPowerpackVersion.cjs.js.map +1 -0
  84. package/dist/shared/src/components/Powerpack/RequiredPowerpackVersion.es.js +25 -0
  85. package/dist/shared/src/components/Powerpack/RequiredPowerpackVersion.es.js.map +1 -0
  86. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js +1 -1
  87. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js.map +1 -1
  88. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js +7 -4
  89. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js.map +1 -1
  90. package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.cjs.js +1 -1
  91. package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.cjs.js.map +1 -1
  92. package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.es.js +18 -21
  93. package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.es.js.map +1 -1
  94. package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js +1 -1
  95. package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js.map +1 -1
  96. package/dist/shared/src/components/ReviewablesList/ReviewablesList.es.js +5 -2
  97. package/dist/shared/src/components/ReviewablesList/ReviewablesList.es.js.map +1 -1
  98. package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js +1 -1
  99. package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js.map +1 -1
  100. package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.es.js +6 -3
  101. package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.es.js.map +1 -1
  102. package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js +1 -1
  103. package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js.map +1 -1
  104. package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.es.js +5 -2
  105. package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.es.js.map +1 -1
  106. package/dist/shared/src/components/ShareOptionIcon/ShareOptionIcon.cjs.js +2 -0
  107. package/dist/shared/src/components/ShareOptionIcon/ShareOptionIcon.cjs.js.map +1 -0
  108. package/dist/shared/src/components/ShareOptionIcon/ShareOptionIcon.es.js +17 -0
  109. package/dist/shared/src/components/ShareOptionIcon/ShareOptionIcon.es.js.map +1 -0
  110. package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js +2 -2
  111. package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js.map +1 -1
  112. package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.es.js +5 -2
  113. package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.es.js.map +1 -1
  114. package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.cjs.js +1 -1
  115. package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.cjs.js.map +1 -1
  116. package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.es.js +5 -2
  117. package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.es.js.map +1 -1
  118. package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js +1 -1
  119. package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js.map +1 -1
  120. package/dist/shared/src/containers/Actions/ActionConfigDialog.es.js +5 -2
  121. package/dist/shared/src/containers/Actions/ActionConfigDialog.es.js.map +1 -1
  122. package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js +1 -1
  123. package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js.map +1 -1
  124. package/dist/shared/src/containers/Actions/InteractiveActionDialog.es.js +5 -2
  125. package/dist/shared/src/containers/Actions/InteractiveActionDialog.es.js.map +1 -1
  126. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js +1 -1
  127. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js.map +1 -1
  128. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js +146 -157
  129. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js.map +1 -1
  130. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.styled.cjs.js +7 -1
  131. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.styled.cjs.js.map +1 -1
  132. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.styled.es.js +13 -6
  133. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.styled.es.js.map +1 -1
  134. package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.cjs.js +1 -1
  135. package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.cjs.js.map +1 -1
  136. package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.es.js +5 -2
  137. package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.es.js.map +1 -1
  138. package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.cjs.js +1 -1
  139. package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.cjs.js.map +1 -1
  140. package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.es.js +6 -3
  141. package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.es.js.map +1 -1
  142. package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.cjs.js +1 -1
  143. package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.cjs.js.map +1 -1
  144. package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.es.js +6 -3
  145. package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.es.js.map +1 -1
  146. package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.cjs.js +1 -1
  147. package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.cjs.js.map +1 -1
  148. package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.es.js +5 -2
  149. package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.es.js.map +1 -1
  150. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.cjs.js +1 -1
  151. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.cjs.js.map +1 -1
  152. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.es.js +5 -2
  153. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.es.js.map +1 -1
  154. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.cjs.js +1 -1
  155. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.cjs.js.map +1 -1
  156. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.es.js +5 -2
  157. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.es.js.map +1 -1
  158. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.cjs.js +1 -1
  159. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.cjs.js.map +1 -1
  160. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.es.js +5 -2
  161. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.es.js.map +1 -1
  162. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
  163. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
  164. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +413 -396
  165. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
  166. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js +104 -25
  167. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js.map +1 -1
  168. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js +131 -52
  169. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js.map +1 -1
  170. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
  171. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
  172. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +136 -129
  173. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
  174. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnHeaderMenu.cjs.js +16 -53
  175. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnHeaderMenu.cjs.js.map +1 -1
  176. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnHeaderMenu.es.js +100 -120
  177. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnHeaderMenu.es.js.map +1 -1
  178. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js +1 -1
  179. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js.map +1 -1
  180. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js +5 -2
  181. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js.map +1 -1
  182. package/dist/shared/src/containers/ProjectTreeTable/components/HeaderActionButton.cjs.js +7 -3
  183. package/dist/shared/src/containers/ProjectTreeTable/components/HeaderActionButton.cjs.js.map +1 -1
  184. package/dist/shared/src/containers/ProjectTreeTable/components/HeaderActionButton.es.js +12 -8
  185. package/dist/shared/src/containers/ProjectTreeTable/components/HeaderActionButton.es.js.map +1 -1
  186. package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.cjs.js +1 -1
  187. package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.cjs.js.map +1 -1
  188. package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.es.js +5 -2
  189. package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.es.js.map +1 -1
  190. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js +3 -3
  191. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js.map +1 -1
  192. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js +250 -235
  193. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js.map +1 -1
  194. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.cjs.js +1 -1
  195. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.cjs.js.map +1 -1
  196. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.es.js +24 -21
  197. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.es.js.map +1 -1
  198. package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.cjs.js +1 -1
  199. package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.cjs.js.map +1 -1
  200. package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.es.js +5 -2
  201. package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.es.js.map +1 -1
  202. package/dist/shared/src/containers/ProjectTreeTable/context/clipboard/clipboardTypes.cjs.js.map +1 -1
  203. package/dist/shared/src/containers/ProjectTreeTable/context/clipboard/clipboardTypes.es.js.map +1 -1
  204. package/dist/shared/src/containers/ProjectTreeTable/context/clipboard/clipboardValidation.cjs.js +1 -1
  205. package/dist/shared/src/containers/ProjectTreeTable/context/clipboard/clipboardValidation.cjs.js.map +1 -1
  206. package/dist/shared/src/containers/ProjectTreeTable/context/clipboard/clipboardValidation.es.js +10 -10
  207. package/dist/shared/src/containers/ProjectTreeTable/context/clipboard/clipboardValidation.es.js.map +1 -1
  208. package/dist/shared/src/containers/ProjectTreeTable/hooks/useAttributesList.cjs.js +1 -1
  209. package/dist/shared/src/containers/ProjectTreeTable/hooks/useAttributesList.cjs.js.map +1 -1
  210. package/dist/shared/src/containers/ProjectTreeTable/hooks/useAttributesList.es.js +13 -9
  211. package/dist/shared/src/containers/ProjectTreeTable/hooks/useAttributesList.es.js.map +1 -1
  212. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.cjs.js +1 -1
  213. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.cjs.js.map +1 -1
  214. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.es.js +65 -60
  215. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.es.js.map +1 -1
  216. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.cjs.js +1 -1
  217. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.cjs.js.map +1 -1
  218. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.es.js +5 -2
  219. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.es.js.map +1 -1
  220. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.cjs.js +1 -1
  221. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.cjs.js.map +1 -1
  222. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.es.js +5 -2
  223. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.es.js.map +1 -1
  224. package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.cjs.js +1 -1
  225. package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.cjs.js.map +1 -1
  226. package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.es.js +5 -2
  227. package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.es.js.map +1 -1
  228. package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.cjs.js +1 -1
  229. package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.cjs.js.map +1 -1
  230. package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.es.js +5 -2
  231. package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.es.js.map +1 -1
  232. package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.cjs.js +1 -1
  233. package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.cjs.js.map +1 -1
  234. package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.es.js +5 -2
  235. package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.es.js.map +1 -1
  236. package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.cjs.js +1 -1
  237. package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.cjs.js.map +1 -1
  238. package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.es.js +5 -2
  239. package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.es.js.map +1 -1
  240. package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.cjs.js +1 -1
  241. package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.cjs.js.map +1 -1
  242. package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.es.js +16 -13
  243. package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.es.js.map +1 -1
  244. package/dist/shared/src/containers/ProjectTreeTable/utils/getReadOnlyLists.cjs.js +1 -1
  245. package/dist/shared/src/containers/ProjectTreeTable/utils/getReadOnlyLists.cjs.js.map +1 -1
  246. package/dist/shared/src/containers/ProjectTreeTable/utils/getReadOnlyLists.es.js +41 -14
  247. package/dist/shared/src/containers/ProjectTreeTable/utils/getReadOnlyLists.es.js.map +1 -1
  248. package/dist/shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.cjs.js +1 -1
  249. package/dist/shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.cjs.js.map +1 -1
  250. package/dist/shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.es.js +7 -7
  251. package/dist/shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.es.js.map +1 -1
  252. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +2 -2
  253. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
  254. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +110 -104
  255. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
  256. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js +2 -2
  257. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js.map +1 -1
  258. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js +8 -8
  259. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js.map +1 -1
  260. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.cjs.js +2 -2
  261. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.cjs.js.map +1 -1
  262. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.es.js +44 -43
  263. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.es.js.map +1 -1
  264. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js +1 -1
  265. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js.map +1 -1
  266. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js +7 -4
  267. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js.map +1 -1
  268. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js +1 -1
  269. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js.map +1 -1
  270. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js +5 -2
  271. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js.map +1 -1
  272. package/dist/shared/src/containers/SimpleTable/SimpleTable.cjs.js +1 -1
  273. package/dist/shared/src/containers/SimpleTable/SimpleTable.cjs.js.map +1 -1
  274. package/dist/shared/src/containers/SimpleTable/SimpleTable.es.js +118 -103
  275. package/dist/shared/src/containers/SimpleTable/SimpleTable.es.js.map +1 -1
  276. package/dist/shared/src/containers/SimpleTable/SimpleTable.styled.cjs.js +16 -4
  277. package/dist/shared/src/containers/SimpleTable/SimpleTable.styled.cjs.js.map +1 -1
  278. package/dist/shared/src/containers/SimpleTable/SimpleTable.styled.es.js +13 -1
  279. package/dist/shared/src/containers/SimpleTable/SimpleTable.styled.es.js.map +1 -1
  280. package/dist/shared/src/containers/SimpleTable/SimpleTableRowTemplate.cjs.js +1 -1
  281. package/dist/shared/src/containers/SimpleTable/SimpleTableRowTemplate.cjs.js.map +1 -1
  282. package/dist/shared/src/containers/SimpleTable/SimpleTableRowTemplate.es.js +62 -50
  283. package/dist/shared/src/containers/SimpleTable/SimpleTableRowTemplate.es.js.map +1 -1
  284. package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js.map +1 -1
  285. package/dist/shared/src/containers/Views/context/ViewsContext.es.js.map +1 -1
  286. package/dist/shared/src/containers/Views/hooks/pages/useReportsViewSettings.cjs.js +2 -0
  287. package/dist/shared/src/containers/Views/hooks/pages/useReportsViewSettings.cjs.js.map +1 -0
  288. package/dist/shared/src/containers/Views/hooks/pages/useReportsViewSettings.es.js +64 -0
  289. package/dist/shared/src/containers/Views/hooks/pages/useReportsViewSettings.es.js.map +1 -0
  290. package/dist/shared/src/context/MenuContext.cjs.js +2 -0
  291. package/dist/shared/src/context/MenuContext.cjs.js.map +1 -0
  292. package/dist/shared/src/context/MenuContext.es.js +28 -0
  293. package/dist/shared/src/context/MenuContext.es.js.map +1 -0
  294. package/dist/shared/src/context/PowerpackContext.cjs.js +1 -1
  295. package/dist/shared/src/context/PowerpackContext.cjs.js.map +1 -1
  296. package/dist/shared/src/context/PowerpackContext.es.js +20 -15
  297. package/dist/shared/src/context/PowerpackContext.es.js.map +1 -1
  298. package/dist/shared/src/context/RemoteModulesContext.cjs.js +1 -1
  299. package/dist/shared/src/context/RemoteModulesContext.cjs.js.map +1 -1
  300. package/dist/shared/src/context/RemoteModulesContext.es.js +19 -19
  301. package/dist/shared/src/context/RemoteModulesContext.es.js.map +1 -1
  302. package/dist/shared/src/hooks/useLoadModule.cjs.js.map +1 -1
  303. package/dist/shared/src/hooks/useLoadModule.es.js.map +1 -1
  304. package/dist/src/components/Menu/MenuComponents/Menu.cjs.js +2 -0
  305. package/dist/src/components/Menu/MenuComponents/Menu.cjs.js.map +1 -0
  306. package/dist/src/components/Menu/MenuComponents/Menu.es.js +55 -0
  307. package/dist/src/components/Menu/MenuComponents/Menu.es.js.map +1 -0
  308. package/dist/src/components/Menu/MenuComponents/Menu.styled.cjs.js +254 -0
  309. package/dist/src/components/Menu/MenuComponents/Menu.styled.cjs.js.map +1 -0
  310. package/dist/src/components/Menu/MenuComponents/Menu.styled.es.js +265 -0
  311. package/dist/src/components/Menu/MenuComponents/Menu.styled.es.js.map +1 -0
  312. package/dist/src/components/Menu/MenuComponents/MenuContainer2.cjs.js +2 -0
  313. package/dist/src/components/Menu/MenuComponents/MenuContainer2.cjs.js.map +1 -0
  314. package/dist/src/components/Menu/MenuComponents/MenuContainer2.es.js +80 -0
  315. package/dist/src/components/Menu/MenuComponents/MenuContainer2.es.js.map +1 -0
  316. package/dist/src/components/Menu/MenuComponents/MenuItem.cjs.js +2 -0
  317. package/dist/src/components/Menu/MenuComponents/MenuItem.cjs.js.map +1 -0
  318. package/dist/src/components/Menu/MenuComponents/MenuItem.es.js +59 -0
  319. package/dist/src/components/Menu/MenuComponents/MenuItem.es.js.map +1 -0
  320. package/dist/src/components/Menu/MenuComponents/MenuList.cjs.js +2 -0
  321. package/dist/src/components/Menu/MenuComponents/MenuList.cjs.js.map +1 -0
  322. package/dist/src/components/Menu/MenuComponents/MenuList.es.js +112 -0
  323. package/dist/src/components/Menu/MenuComponents/MenuList.es.js.map +1 -0
  324. package/dist/src/components/Menu/MenuComponents/useMenuPosition.cjs.js +2 -0
  325. package/dist/src/components/Menu/MenuComponents/useMenuPosition.cjs.js.map +1 -0
  326. package/dist/src/components/Menu/MenuComponents/useMenuPosition.es.js +35 -0
  327. package/dist/src/components/Menu/MenuComponents/useMenuPosition.es.js.map +1 -0
  328. package/dist/types/api/generated/entityLists.d.ts +8 -8
  329. package/dist/types/api/generated/users.d.ts +18 -14
  330. package/dist/types/api/generated/views.d.ts +47 -9
  331. package/dist/types/api/queries/entityLists/getLists.d.ts +133 -0
  332. package/dist/types/api/queries/entityLists/types.d.ts +2 -1
  333. package/dist/types/api/queries/permissions/getPermissions.d.ts +22 -22
  334. package/dist/types/api/queries/users/getUsers.d.ts +132 -0
  335. package/dist/types/api/queries/users/updateUsers.d.ts +3 -3
  336. package/dist/types/components/AccessUser/AccessUser.d.ts +22 -0
  337. package/dist/types/components/AccessUser/AccessUser.styled.d.ts +1 -0
  338. package/dist/types/components/AccessUser/index.d.ts +1 -0
  339. package/dist/types/components/DetailsMetaData/DetailsMetaData.d.ts +8 -0
  340. package/dist/types/components/DetailsMetaData/index.d.ts +1 -0
  341. package/dist/types/components/DetailsPanelAttributes/DetailsPanelAttributesEditor.d.ts +4 -0
  342. package/dist/types/components/ListAttributeForm/ListAttributeForm.d.ts +13 -0
  343. package/dist/types/components/ListAttributeForm/index.d.ts +1 -0
  344. package/dist/types/components/ListMetaData/ListMetaData.d.ts +8 -0
  345. package/dist/types/components/ListMetaData/index.d.ts +1 -0
  346. package/dist/types/components/Powerpack/RequiredPowerpackVersion.d.ts +5 -0
  347. package/dist/types/components/Powerpack/index.d.ts +1 -0
  348. package/dist/types/components/ShareOptionIcon/ShareOptionIcon.d.ts +10 -0
  349. package/dist/types/components/ShareOptionIcon/index.d.ts +2 -0
  350. package/dist/types/components/index.d.ts +4 -0
  351. package/dist/types/containers/DetailsPanel/DetailsPanel.styled.d.ts +7 -0
  352. package/dist/types/containers/ProjectTreeTable/ProjectTreeTable.styled.d.ts +3 -1
  353. package/dist/types/containers/ProjectTreeTable/components/ColumnHeaderMenu.d.ts +4 -1
  354. package/dist/types/containers/ProjectTreeTable/context/ProjectDataContext.d.ts +1 -0
  355. package/dist/types/containers/ProjectTreeTable/context/clipboard/clipboardTypes.d.ts +3 -1
  356. package/dist/types/containers/ProjectTreeTable/hooks/useAttributesList.d.ts +1 -0
  357. package/dist/types/containers/ProjectTreeTable/utils/getReadOnlyLists.d.ts +1 -1
  358. package/dist/types/containers/ProjectTreeTable/widgets/BooleanWidget.d.ts +1 -0
  359. package/dist/types/containers/ProjectTreeTable/widgets/EnumCellValue.d.ts +2 -2
  360. package/dist/types/containers/SimpleTable/SimpleTable.d.ts +3 -0
  361. package/dist/types/containers/SimpleTable/SimpleTableRowTemplate.d.ts +5 -1
  362. package/dist/types/containers/Views/hooks/pages/useReportsViewSettings.d.ts +11 -0
  363. package/dist/types/containers/Views/index.d.ts +6 -2
  364. package/dist/types/context/MenuContext.d.ts +12 -0
  365. package/dist/types/context/PowerpackContext.d.ts +1 -1
  366. package/dist/types/index.d.ts +1 -0
  367. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"users.es.js","sources":["../../../../../src/api/generated/users.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getUserPools: build.query<GetUserPoolsApiResponse, GetUserPoolsApiArg>({\n query: () => ({ url: `/api/auth/pools` }),\n }),\n getUserApiKeys: build.query<GetUserApiKeysApiResponse, GetUserApiKeysApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/apikeys` }),\n }),\n createUserApiKey: build.mutation<CreateUserApiKeyApiResponse, CreateUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys`,\n method: 'POST',\n body: queryArg.apiKeyPostModel,\n }),\n }),\n deleteUserApiKey: build.mutation<DeleteUserApiKeyApiResponse, DeleteUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys/${queryArg.entityId}`,\n method: 'DELETE',\n }),\n }),\n updateUserApiKey: build.mutation<UpdateUserApiKeyApiResponse, UpdateUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys/${queryArg.entityId}`,\n method: 'PATCH',\n body: queryArg.apiKeyPatchModel,\n }),\n }),\n getAvatar: build.query<GetAvatarApiResponse, GetAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar` }),\n }),\n uploadAvatar: build.mutation<UploadAvatarApiResponse, UploadAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar`, method: 'PUT' }),\n }),\n deleteAvatar: build.mutation<DeleteAvatarApiResponse, DeleteAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar`, method: 'DELETE' }),\n }),\n passwordResetRequest: build.mutation<\n PasswordResetRequestApiResponse,\n PasswordResetRequestApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/passwordResetRequest`,\n method: 'POST',\n body: queryArg.passwordResetRequestModel,\n }),\n }),\n passwordReset: build.mutation<PasswordResetApiResponse, PasswordResetApiArg>({\n query: (queryArg) => ({\n url: `/api/users/passwordReset`,\n method: 'POST',\n body: queryArg.passwordResetModel,\n }),\n }),\n getMyPermissions: build.query<GetMyPermissionsApiResponse, GetMyPermissionsApiArg>({\n query: () => ({ url: `/api/users/me/permissions` }),\n }),\n getMyProjectPermissions: build.query<\n GetMyProjectPermissionsApiResponse,\n GetMyProjectPermissionsApiArg\n >({\n query: (queryArg) => ({ url: `/api/users/me/permissions/${queryArg.projectName}` }),\n }),\n getUserStudioPermissions: build.query<\n GetUserStudioPermissionsApiResponse,\n GetUserStudioPermissionsApiArg\n >({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/permissions` }),\n }),\n getUserProjectPermissions: build.query<\n GetUserProjectPermissionsApiResponse,\n GetUserProjectPermissionsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/permissions/${queryArg.projectName}`,\n }),\n }),\n getCurrentUser: build.query<GetCurrentUserApiResponse, GetCurrentUserApiArg>({\n query: () => ({ url: `/api/users/me` }),\n }),\n getUser: build.query<GetUserApiResponse, GetUserApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}` }),\n }),\n createUser: build.mutation<CreateUserApiResponse, CreateUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'PUT',\n body: queryArg.newUserModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteUser: build.mutation<DeleteUserApiResponse, DeleteUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n patchUser: build.mutation<PatchUserApiResponse, PatchUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'PATCH',\n body: queryArg.userPatchModel,\n }),\n }),\n changePassword: build.mutation<ChangePasswordApiResponse, ChangePasswordApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/password`,\n method: 'PATCH',\n body: queryArg.changePasswordRequestModel,\n }),\n }),\n checkPassword: build.mutation<CheckPasswordApiResponse, CheckPasswordApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/checkPassword`,\n method: 'POST',\n body: queryArg.checkPasswordRequestModel,\n }),\n }),\n changeUserName: build.mutation<ChangeUserNameApiResponse, ChangeUserNameApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/rename`,\n method: 'PATCH',\n body: queryArg.changeUserNameRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getUserSessions: build.query<GetUserSessionsApiResponse, GetUserSessionsApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/sessions` }),\n }),\n deleteUserSession: build.mutation<DeleteUserSessionApiResponse, DeleteUserSessionApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/sessions/${queryArg.sessionId}`,\n method: 'DELETE',\n }),\n }),\n assignAccessGroups: build.mutation<AssignAccessGroupsApiResponse, AssignAccessGroupsApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/accessGroups`,\n method: 'PATCH',\n body: queryArg.assignAccessGroupsRequestModel,\n }),\n }),\n setFrontendPreferences: build.mutation<\n SetFrontendPreferencesApiResponse,\n SetFrontendPreferencesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/frontendPreferences`,\n method: 'PATCH',\n body: queryArg.patchData,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetUserPoolsApiResponse = /** status 200 Successful Response */ UserPoolModel[]\nexport type GetUserPoolsApiArg = void\nexport type GetUserApiKeysApiResponse = /** status 200 Successful Response */ ApiKeyModel[]\nexport type GetUserApiKeysApiArg = {\n userName: string\n}\nexport type CreateUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type CreateUserApiKeyApiArg = {\n userName: string\n apiKeyPostModel: ApiKeyPostModel\n}\nexport type DeleteUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserApiKeyApiArg = {\n userName: string\n entityId: string\n}\nexport type UpdateUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type UpdateUserApiKeyApiArg = {\n userName: string\n entityId: string\n apiKeyPatchModel: ApiKeyPatchModel\n}\nexport type GetAvatarApiResponse = /** status 200 Successful Response */ any\nexport type GetAvatarApiArg = {\n userName: string\n}\nexport type UploadAvatarApiResponse = /** status 200 Successful Response */ any\nexport type UploadAvatarApiArg = {\n userName: string\n}\nexport type DeleteAvatarApiResponse = /** status 200 Successful Response */ any\nexport type DeleteAvatarApiArg = {\n userName: string\n}\nexport type PasswordResetRequestApiResponse = /** status 200 Successful Response */ any\nexport type PasswordResetRequestApiArg = {\n passwordResetRequestModel: PasswordResetRequestModel\n}\nexport type PasswordResetApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type PasswordResetApiArg = {\n passwordResetModel: PasswordResetModel\n}\nexport type GetMyPermissionsApiResponse = /** status 200 Successful Response */ UserPermissionsModel\nexport type GetMyPermissionsApiArg = void\nexport type GetMyProjectPermissionsApiResponse =\n /** status 200 Successful Response */ ProjectPermissions\nexport type GetMyProjectPermissionsApiArg = {\n projectName: string\n}\nexport type GetUserStudioPermissionsApiResponse =\n /** status 200 Successful Response */ StudioPermissions\nexport type GetUserStudioPermissionsApiArg = {\n userName: string\n}\nexport type GetUserProjectPermissionsApiResponse =\n /** status 200 Successful Response */ ProjectPermissions\nexport type GetUserProjectPermissionsApiArg = {\n projectName: string\n userName: string\n}\nexport type GetCurrentUserApiResponse = /** status 200 Successful Response */ UserModel\nexport type GetCurrentUserApiArg = void\nexport type GetUserApiResponse = /** status 200 Successful Response */\n | UserModel\n | {\n [key: string]: string\n }\nexport type GetUserApiArg = {\n userName: string\n}\nexport type CreateUserApiResponse = /** status 200 Successful Response */ any\nexport type CreateUserApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n newUserModel: NewUserModel\n}\nexport type DeleteUserApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type PatchUserApiResponse = /** status 200 Successful Response */ any\nexport type PatchUserApiArg = {\n userName: string\n userPatchModel: UserPatchModel\n}\nexport type ChangePasswordApiResponse = /** status 200 Successful Response */ any\nexport type ChangePasswordApiArg = {\n userName: string\n changePasswordRequestModel: ChangePasswordRequestModel\n}\nexport type CheckPasswordApiResponse = /** status 200 Successful Response */ any\nexport type CheckPasswordApiArg = {\n userName: string\n checkPasswordRequestModel: CheckPasswordRequestModel\n}\nexport type ChangeUserNameApiResponse = /** status 200 Successful Response */ any\nexport type ChangeUserNameApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n changeUserNameRequestModel: ChangeUserNameRequestModel\n}\nexport type GetUserSessionsApiResponse =\n /** status 200 Successful Response */ UserSessionsResponseModel\nexport type GetUserSessionsApiArg = {\n userName: string\n}\nexport type DeleteUserSessionApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserSessionApiArg = {\n sessionId: string\n userName: string\n}\nexport type AssignAccessGroupsApiResponse = /** status 200 Successful Response */ any\nexport type AssignAccessGroupsApiArg = {\n userName: string\n assignAccessGroupsRequestModel: AssignAccessGroupsRequestModel\n}\nexport type SetFrontendPreferencesApiResponse = /** status 200 Successful Response */ any\nexport type SetFrontendPreferencesApiArg = {\n userName: string\n patchData: object\n}\nexport type UserPoolModel = {\n id: string\n label: string\n type: 'fixed' | 'metered'\n valid: boolean\n note: string\n exp: number\n max: number\n used: number\n}\nexport type ApiKeyModel = {\n id: string\n label: string\n preview: string\n created: number\n expires?: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ApiKeyPostModel = {\n label: string\n key: string\n expires?: number\n}\nexport type ApiKeyPatchModel = {\n label?: string\n expires?: number\n}\nexport type PasswordResetRequestModel = {\n email: string\n url: string\n}\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type LoginResponseModel = {\n detail?: string\n error?: string\n token?: string\n user?: UserModel\n}\nexport type PasswordResetModel = {\n token: string\n password?: string\n}\nexport type StudioManagementPermissions = {\n /** Allow users to create new projects */\n create_projects?: boolean\n /** Allow users to list all users in the studio */\n list_all_users?: boolean\n}\nexport type ProjectManagementPermissions = {\n /** Allow users to view or edit the project anatomy */\n anatomy?: number\n /** Allow users to view or assign users to project access groups */\n access?: number\n /** Allow users to view or edit the project addon settings */\n settings?: number\n}\nexport type FolderAccess = {\n access_type?: string\n /** The path of the folder to allow access to. Required for access_type 'hierarchy and 'children' */\n path?: string\n}\nexport type FolderAccessList = {\n enabled?: boolean\n access_list?: FolderAccess[]\n}\nexport type AttributeReadAccessList = {\n enabled?: boolean\n attributes?: string[]\n}\nexport type AttributeWriteAccessList = {\n enabled?: boolean\n attributes?: string[]\n}\nexport type EndpointsAccessList = {\n enabled?: boolean\n endpoints?: string[]\n}\nexport type ProjectPermissions = {\n project?: ProjectManagementPermissions\n /** Whitelist folders a user can create */\n create?: FolderAccessList\n /** Whitelist folders a user can read */\n read?: FolderAccessList\n /** Whitelist folders a user can update */\n update?: FolderAccessList\n /** Whitelist folders a user can publish to */\n publish?: FolderAccessList\n /** Whitelist folders a user can delete */\n delete?: FolderAccessList\n /** Whitelist attributes a user can read */\n attrib_read?: AttributeReadAccessList\n /** Whitelist attributes a user can write */\n attrib_write?: AttributeWriteAccessList\n /** Whitelist REST endpoints a user can access */\n endpoints?: EndpointsAccessList\n}\nexport type UserPermissionsModel = {\n user_level?: 'admin' | 'manager' | 'user'\n /** Permissions for the studio */\n studio?: StudioManagementPermissions\n /** Permissions for individual projects */\n projects?: {\n [key: string]: ProjectPermissions\n }\n}\nexport type StudioPermissions = {\n studio?: StudioManagementPermissions\n}\nexport type NewUserModel = {\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n /** Password for the new user */\n password?: string\n /** API Key for the new service user */\n apiKey?: string\n}\nexport type UserPatchModel = {\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n}\nexport type ChangePasswordRequestModel = {\n /** New password */\n password?: string\n /** API Key to set to a service user */\n apiKey?: string\n}\nexport type CheckPasswordRequestModel = {\n password: string\n}\nexport type ChangeUserNameRequestModel = {\n /** New user name */\n newName: string\n}\nexport type LocationInfo = {\n country?: string\n subdivision?: string\n city?: string\n}\nexport type AgentInfo = {\n platform?: string\n client?: string\n device?: string\n}\nexport type ClientInfo = {\n ip: string\n languages?: string[]\n location?: LocationInfo\n agent?: AgentInfo\n site_id?: string\n}\nexport type UserSessionModel = {\n token: string\n isService: boolean\n lastUsed: number\n clientInfo?: ClientInfo\n}\nexport type UserSessionsResponseModel = {\n sessions: UserSessionModel[]\n}\nexport type AccessGroupsOnProject = {\n /** Project name */\n project: string\n /** List of access groups on the project */\n accessGroups: string[]\n}\nexport type AssignAccessGroupsRequestModel = {\n /** List of access groups to assign */\n accessGroups?: AccessGroupsOnProject[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,cAAcA,EAAM,MAAmD;AAAA,MACrE,OAAO,OAAO,EAAE,KAAK,kBAAkB;AAAA,IAAA,CACxC;AAAA,IACD,gBAAgBA,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc,EAAE,KAAK,cAAcA,EAAS,QAAQ,WAAW;AAAA,IAAA,CACxE;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,kBAAkBD,EAAM,SAA8D;AAAA,MACpF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,YAAYA,EAAS,QAAQ;AAAA,QACjE,QAAQ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AA,CACD;AAAA,IACD,eAAeD,EAAM,SAAwD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,gBAAgBD,EAAM,SAA0D;AAAA,MAC9E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,SAAS;AAAA,UACP,YAAYA,EAAS,UAAU;AAAA,UAC/B,iBAAiBA,EAAS,eAAe;AAAA,QAAA;AAAA,MAE7C;AAAA,IAAA,CACD;AAAA,IACD,iBAAiBD,EAAM,MAAyD;AAAA,MAC9E,OAAO,CAACC,OAAc,EAAE,KAAK,cAAcA,EAAS,QAAQ,YAAY;AAAA,IAAA,CACzE;AAAA,IACD,mBAAmBD,EAAM,SAAgE;AAAA,MACvF,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,aAAaA,EAAS,SAAS;AAAA,QACnE,QAAQ;AAAA,MACV;AAAA,IAAA,CACD;AAAA,IACD,oBAAoBD,EAAM,SAAkE;AAAA,MAC1F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,wBAAwBD,EAAM,SAG5B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"users.es.js","sources":["../../../../../src/api/generated/users.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n getUserPools: build.query<GetUserPoolsApiResponse, GetUserPoolsApiArg>({\n query: () => ({ url: `/api/auth/pools` }),\n }),\n getUserApiKeys: build.query<GetUserApiKeysApiResponse, GetUserApiKeysApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/apikeys` }),\n }),\n createUserApiKey: build.mutation<CreateUserApiKeyApiResponse, CreateUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys`,\n method: 'POST',\n body: queryArg.apiKeyPostModel,\n }),\n }),\n deleteUserApiKey: build.mutation<DeleteUserApiKeyApiResponse, DeleteUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys/${queryArg.entityId}`,\n method: 'DELETE',\n }),\n }),\n updateUserApiKey: build.mutation<UpdateUserApiKeyApiResponse, UpdateUserApiKeyApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/apikeys/${queryArg.entityId}`,\n method: 'PATCH',\n body: queryArg.apiKeyPatchModel,\n }),\n }),\n getAvatar: build.query<GetAvatarApiResponse, GetAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar` }),\n }),\n uploadAvatar: build.mutation<UploadAvatarApiResponse, UploadAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar`, method: 'PUT' }),\n }),\n deleteAvatar: build.mutation<DeleteAvatarApiResponse, DeleteAvatarApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/avatar`, method: 'DELETE' }),\n }),\n passwordResetRequest: build.mutation<\n PasswordResetRequestApiResponse,\n PasswordResetRequestApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/passwordResetRequest`,\n method: 'POST',\n body: queryArg.passwordResetRequestModel,\n }),\n }),\n passwordReset: build.mutation<PasswordResetApiResponse, PasswordResetApiArg>({\n query: (queryArg) => ({\n url: `/api/users/passwordReset`,\n method: 'POST',\n body: queryArg.passwordResetModel,\n }),\n }),\n getMyPermissions: build.query<GetMyPermissionsApiResponse, GetMyPermissionsApiArg>({\n query: () => ({ url: `/api/users/me/permissions` }),\n }),\n getMyProjectPermissions: build.query<\n GetMyProjectPermissionsApiResponse,\n GetMyProjectPermissionsApiArg\n >({\n query: (queryArg) => ({ url: `/api/users/me/permissions/${queryArg.projectName}` }),\n }),\n getUserStudioPermissions: build.query<\n GetUserStudioPermissionsApiResponse,\n GetUserStudioPermissionsApiArg\n >({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/permissions` }),\n }),\n getUserProjectPermissions: build.query<\n GetUserProjectPermissionsApiResponse,\n GetUserProjectPermissionsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/permissions/${queryArg.projectName}`,\n }),\n }),\n getCurrentUser: build.query<GetCurrentUserApiResponse, GetCurrentUserApiArg>({\n query: () => ({ url: `/api/users/me` }),\n }),\n getUser: build.query<GetUserApiResponse, GetUserApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}` }),\n }),\n createUser: build.mutation<CreateUserApiResponse, CreateUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'PUT',\n body: queryArg.newUserModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n deleteUser: build.mutation<DeleteUserApiResponse, DeleteUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'DELETE',\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n patchUser: build.mutation<PatchUserApiResponse, PatchUserApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}`,\n method: 'PATCH',\n body: queryArg.userPatchModel,\n }),\n }),\n changePassword: build.mutation<ChangePasswordApiResponse, ChangePasswordApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/password`,\n method: 'PATCH',\n body: queryArg.changePasswordRequestModel,\n }),\n }),\n checkPassword: build.mutation<CheckPasswordApiResponse, CheckPasswordApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/checkPassword`,\n method: 'POST',\n body: queryArg.checkPasswordRequestModel,\n }),\n }),\n changeUserName: build.mutation<ChangeUserNameApiResponse, ChangeUserNameApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/rename`,\n method: 'PATCH',\n body: queryArg.changeUserNameRequestModel,\n headers: {\n 'x-sender': queryArg['x-sender'],\n 'x-sender-type': queryArg['x-sender-type'],\n },\n }),\n }),\n getUserSessions: build.query<GetUserSessionsApiResponse, GetUserSessionsApiArg>({\n query: (queryArg) => ({ url: `/api/users/${queryArg.userName}/sessions` }),\n }),\n deleteUserSession: build.mutation<DeleteUserSessionApiResponse, DeleteUserSessionApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/sessions/${queryArg.sessionId}`,\n method: 'DELETE',\n }),\n }),\n assignAccessGroups: build.mutation<AssignAccessGroupsApiResponse, AssignAccessGroupsApiArg>({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/accessGroups`,\n method: 'PATCH',\n body: queryArg.assignAccessGroupsRequestModel,\n }),\n }),\n setFrontendPreferences: build.mutation<\n SetFrontendPreferencesApiResponse,\n SetFrontendPreferencesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/users/${queryArg.userName}/frontendPreferences`,\n method: 'PATCH',\n body: queryArg.patchData,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GetUserPoolsApiResponse = /** status 200 Successful Response */ UserPoolModel[]\nexport type GetUserPoolsApiArg = void\nexport type GetUserApiKeysApiResponse = /** status 200 Successful Response */ ApiKeyModel[]\nexport type GetUserApiKeysApiArg = {\n userName: string\n}\nexport type CreateUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type CreateUserApiKeyApiArg = {\n userName: string\n apiKeyPostModel: ApiKeyPostModel\n}\nexport type DeleteUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserApiKeyApiArg = {\n userName: string\n entityId: string\n}\nexport type UpdateUserApiKeyApiResponse = /** status 200 Successful Response */ any\nexport type UpdateUserApiKeyApiArg = {\n userName: string\n entityId: string\n apiKeyPatchModel: ApiKeyPatchModel\n}\nexport type GetAvatarApiResponse = /** status 200 Successful Response */ any\nexport type GetAvatarApiArg = {\n userName: string\n}\nexport type UploadAvatarApiResponse = /** status 200 Successful Response */ any\nexport type UploadAvatarApiArg = {\n userName: string\n}\nexport type DeleteAvatarApiResponse = /** status 200 Successful Response */ any\nexport type DeleteAvatarApiArg = {\n userName: string\n}\nexport type PasswordResetRequestApiResponse = /** status 200 Successful Response */ any\nexport type PasswordResetRequestApiArg = {\n passwordResetRequestModel: PasswordResetRequestModel\n}\nexport type PasswordResetApiResponse = /** status 200 Successful Response */ LoginResponseModel\nexport type PasswordResetApiArg = {\n passwordResetModel: PasswordResetModel\n}\nexport type GetMyPermissionsApiResponse = /** status 200 Successful Response */ UserPermissionsModel\nexport type GetMyPermissionsApiArg = void\nexport type GetMyProjectPermissionsApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetMyProjectPermissionsApiArg = {\n projectName: string\n}\nexport type GetUserStudioPermissionsApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetUserStudioPermissionsApiArg = {\n userName: string\n}\nexport type GetUserProjectPermissionsApiResponse = /** status 200 Successful Response */ Permissions\nexport type GetUserProjectPermissionsApiArg = {\n projectName: string\n userName: string\n}\nexport type GetCurrentUserApiResponse = /** status 200 Successful Response */ UserModel\nexport type GetCurrentUserApiArg = void\nexport type GetUserApiResponse = /** status 200 Successful Response */\n | UserModel\n | {\n [key: string]: string\n }\nexport type GetUserApiArg = {\n userName: string\n}\nexport type CreateUserApiResponse = /** status 200 Successful Response */ any\nexport type CreateUserApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n newUserModel: NewUserModel\n}\nexport type DeleteUserApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n}\nexport type PatchUserApiResponse = /** status 200 Successful Response */ any\nexport type PatchUserApiArg = {\n userName: string\n userPatchModel: UserPatchModel\n}\nexport type ChangePasswordApiResponse = /** status 200 Successful Response */ any\nexport type ChangePasswordApiArg = {\n userName: string\n changePasswordRequestModel: ChangePasswordRequestModel\n}\nexport type CheckPasswordApiResponse = /** status 200 Successful Response */ any\nexport type CheckPasswordApiArg = {\n userName: string\n checkPasswordRequestModel: CheckPasswordRequestModel\n}\nexport type ChangeUserNameApiResponse = /** status 200 Successful Response */ any\nexport type ChangeUserNameApiArg = {\n userName: string\n 'x-sender'?: string\n 'x-sender-type'?: string\n changeUserNameRequestModel: ChangeUserNameRequestModel\n}\nexport type GetUserSessionsApiResponse =\n /** status 200 Successful Response */ UserSessionsResponseModel\nexport type GetUserSessionsApiArg = {\n userName: string\n}\nexport type DeleteUserSessionApiResponse = /** status 200 Successful Response */ any\nexport type DeleteUserSessionApiArg = {\n sessionId: string\n userName: string\n}\nexport type AssignAccessGroupsApiResponse = /** status 200 Successful Response */ any\nexport type AssignAccessGroupsApiArg = {\n userName: string\n assignAccessGroupsRequestModel: AssignAccessGroupsRequestModel\n}\nexport type SetFrontendPreferencesApiResponse = /** status 200 Successful Response */ any\nexport type SetFrontendPreferencesApiArg = {\n userName: string\n patchData: object\n}\nexport type UserPoolModel = {\n id: string\n label: string\n type: 'fixed' | 'metered'\n valid: boolean\n note: string\n exp: number\n max: number\n used: number\n}\nexport type ApiKeyModel = {\n id: string\n label: string\n preview: string\n created: number\n expires?: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ApiKeyPostModel = {\n label: string\n key: string\n expires?: number\n}\nexport type ApiKeyPatchModel = {\n label?: string\n expires?: number\n}\nexport type PasswordResetRequestModel = {\n email: string\n url: string\n}\nexport type UserAttribModel = {\n fullName?: string\n email?: string\n avatarUrl?: string\n developerMode?: boolean\n}\nexport type UserModel = {\n /** Name is an unique id of the {entity_name} */\n name: string\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n ownAttrib?: string[]\n /** Time of creation */\n createdAt?: string\n /** Time of last update */\n updatedAt?: string\n}\nexport type LoginResponseModel = {\n /** Text message, which may be displayed to the user */\n detail?: string\n error?: string\n token?: string\n user?: UserModel\n /** URL to redirect the user after login */\n redirectUrl?: string\n}\nexport type PasswordResetModel = {\n token: string\n password?: string\n}\nexport type StudioManagementPermissions = {\n /** Allow users to create new projects */\n create_projects?: boolean\n /** Allow users to list all users in the studio */\n list_all_users?: boolean\n}\nexport type ProjectManagementPermissions = {\n /** Allow users to view or edit the project anatomy */\n anatomy?: number\n /** Allow users to view or assign users to project access groups */\n access?: number\n /** Allow users to view or edit the project addon settings */\n settings?: number\n}\nexport type FolderAccess = {\n access_type?: string\n /** The path of the folder to allow access to. Required for access_type 'hierarchy and 'children' */\n path?: string\n}\nexport type FolderAccessList = {\n enabled?: boolean\n access_list?: FolderAccess[]\n}\nexport type AttributeReadAccessList = {\n enabled?: boolean\n attributes?: string[]\n}\nexport type AttributeWriteAccessList = {\n enabled?: boolean\n fields?: string[]\n attributes?: string[]\n}\nexport type EndpointsAccessList = {\n enabled?: boolean\n endpoints?: string[]\n}\nexport type ProjectAdvancedPermissions = {\n /** If a user can access a task through the 'Assigned' permission, enabling this will also show all sibling tasks in the same folder. When disabled, only the assigned task is visible. */\n show_sibling_tasks?: boolean\n}\nexport type Permissions = {\n studio?: StudioManagementPermissions\n project?: ProjectManagementPermissions\n /** Whitelist folders a user can create */\n create?: FolderAccessList\n /** Whitelist folders a user can read */\n read?: FolderAccessList\n /** Whitelist folders a user can update */\n update?: FolderAccessList\n /** Whitelist folders a user can publish to */\n publish?: FolderAccessList\n /** Whitelist folders a user can delete */\n delete?: FolderAccessList\n /** Whitelist attributes a user can read */\n attrib_read?: AttributeReadAccessList\n /** Whitelist attributes a user can write */\n attrib_write?: AttributeWriteAccessList\n /** Whitelist REST endpoints a user can access */\n endpoints?: EndpointsAccessList\n advanced?: ProjectAdvancedPermissions\n}\nexport type UserPermissionsModel = {\n user_level?: 'admin' | 'manager' | 'user'\n /** Permissions for the studio */\n studio?: StudioManagementPermissions\n /** Permissions for individual projects */\n projects?: {\n [key: string]: Permissions\n }\n}\nexport type NewUserModel = {\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n /** Password for the new user */\n password?: string\n /** API Key for the new service user */\n apiKey?: string\n}\nexport type UserPatchModel = {\n attrib?: UserAttribModel\n data?: Record<string, any>\n /** Whether the user is active */\n active?: boolean\n}\nexport type ChangePasswordRequestModel = {\n /** New password */\n password?: string\n /** API Key to set to a service user */\n apiKey?: string\n}\nexport type CheckPasswordRequestModel = {\n password: string\n}\nexport type ChangeUserNameRequestModel = {\n /** New user name */\n newName: string\n}\nexport type LocationInfo = {\n country?: string\n subdivision?: string\n city?: string\n}\nexport type AgentInfo = {\n platform?: string\n client?: string\n device?: string\n}\nexport type ClientInfo = {\n ip: string\n languages?: string[]\n location?: LocationInfo\n agent?: AgentInfo\n site_id?: string\n}\nexport type UserSessionModel = {\n token: string\n isService: boolean\n lastUsed: number\n clientInfo?: ClientInfo\n}\nexport type UserSessionsResponseModel = {\n sessions: UserSessionModel[]\n}\nexport type AccessGroupsOnProject = {\n /** Project name */\n project: string\n /** List of access groups on the project */\n accessGroups: string[]\n}\nexport type AssignAccessGroupsRequestModel = {\n /** List of access groups to assign */\n accessGroups?: AccessGroupsOnProject[]\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,cAAcA,EAAM,MAAmD;AAAA,MACrE,OAAO,O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oBAAoBD,EAAM,SAAkE;AAAA,MAC1F,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,IACD,wBAAwBD,EAAM,SAG5B;AAAA,MACA,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,MACjB;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"views.cjs.js","sources":["../../../../../src/api/generated/views.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listViews: build.query<ListViewsApiResponse, ListViewsApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n createView: build.mutation<CreateViewApiResponse, CreateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n method: 'POST',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getWorkingView: build.query<GetWorkingViewApiResponse, GetWorkingViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/working`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getDefaultView: build.query<GetDefaultViewApiResponse, GetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n setDefaultView: build.mutation<SetDefaultViewApiResponse, SetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n method: 'POST',\n body: queryArg.setDefaultViewRequestModel,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getView: build.query<GetViewApiResponse, GetViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n deleteView: build.mutation<DeleteViewApiResponse, DeleteViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'DELETE',\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n updateView: build.mutation<UpdateViewApiResponse, UpdateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'PATCH',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListViewsApiResponse = /** status 200 Successful Response */ ViewListModel\nexport type ListViewsApiArg = {\n viewType: string\n projectName?: string\n}\nexport type CreateViewApiResponse = /** status 200 Successful Response */ EntityIdResponse\nexport type CreateViewApiArg = {\n viewType: string\n projectName?: string\n payload: OverviewViewPostModel | TaskProgressViewPostModel | ListsViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type SetDefaultViewApiResponse = /** status 200 Successful Response */ any\nexport type SetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n setDefaultViewRequestModel: SetDefaultViewRequestModel\n}\nexport type GetViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type DeleteViewApiResponse = /** status 200 Successful Response */ any\nexport type DeleteViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type UpdateViewApiResponse = /** status 200 Successful Response */ any\nexport type UpdateViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n payload: OverviewViewPatchModel | TaskProgressViewPatchModel | ListsViewPatchModel\n}\nexport type ViewListItemModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n}\nexport type ViewListModel = {\n views: ViewListItemModel[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type QueryCondition = {\n /** Path to the key separated by slashes */\n key: string\n /** Value to compare against */\n value?: string | number | number | boolean | string[] | number[] | number[]\n /** Comparison operator */\n operator?:\n | 'eq'\n | 'like'\n | 'lt'\n | 'gt'\n | 'lte'\n | 'gte'\n | 'ne'\n | 'isnull'\n | 'notnull'\n | 'in'\n | 'notin'\n | 'includes'\n | 'excludes'\n | 'includesall'\n | 'excludesall'\n | 'includesany'\n | 'excludesany'\n}\nexport type QueryFilter = {\n /** List of conditions to be evaluated */\n conditions?: (QueryCondition | QueryFilter)[]\n /** Operator to use when joining conditions */\n operator?: 'and' | 'or'\n}\nexport type ColumnItemModel = {\n name: string\n visible?: boolean\n pinned?: boolean\n width?: number\n}\nexport type OverviewSettings = {\n showHierarchy?: boolean\n groupBy?: string\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type OverviewViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: OverviewSettings\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type TaskProgressViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: TaskProgressSettings\n}\nexport type ListsSettings = {\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ListsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ListsSettings\n}\nexport type OverviewViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: OverviewSettings\n viewType?: 'overview'\n}\nexport type TaskProgressViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: TaskProgressSettings\n viewType?: 'taskProgress'\n}\nexport type ListsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ListsSettings\n viewType?: 'lists'\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,UAAWA,EAAM,MAA6C,CAC5D,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,GACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,GACpC,OAAQ,OACR,KAAMA,EAAS,QACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,eAAgBD,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,eAAgBD,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,eAAgBD,EAAM,SAA0D,CAC9E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,OACR,KAAMA,EAAS,2BACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,QAASD,EAAM,MAAyC,CACtD,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,SACR,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,QACR,KAAMA,EAAS,QACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
1
+ {"version":3,"file":"views.cjs.js","sources":["../../../../../src/api/generated/views.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listViews: build.query<ListViewsApiResponse, ListViewsApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n createView: build.mutation<CreateViewApiResponse, CreateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n method: 'POST',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getWorkingView: build.query<GetWorkingViewApiResponse, GetWorkingViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/working`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getDefaultView: build.query<GetDefaultViewApiResponse, GetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n setDefaultView: build.mutation<SetDefaultViewApiResponse, SetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n method: 'POST',\n body: queryArg.setDefaultViewRequestModel,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getView: build.query<GetViewApiResponse, GetViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n deleteView: build.mutation<DeleteViewApiResponse, DeleteViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'DELETE',\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n updateView: build.mutation<UpdateViewApiResponse, UpdateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'PATCH',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListViewsApiResponse = /** status 200 Successful Response */ ViewListModel\nexport type ListViewsApiArg = {\n viewType: string\n projectName?: string\n}\nexport type CreateViewApiResponse = /** status 200 Successful Response */ EntityIdResponse\nexport type CreateViewApiArg = {\n viewType: string\n projectName?: string\n payload:\n | OverviewViewPostModel\n | TaskProgressViewPostModel\n | ListsViewPostModel\n | ReviewsViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type SetDefaultViewApiResponse = /** status 200 Successful Response */ any\nexport type SetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n setDefaultViewRequestModel: SetDefaultViewRequestModel\n}\nexport type GetViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type DeleteViewApiResponse = /** status 200 Successful Response */ any\nexport type DeleteViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type UpdateViewApiResponse = /** status 200 Successful Response */ any\nexport type UpdateViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n payload:\n | OverviewViewPatchModel\n | TaskProgressViewPatchModel\n | ListsViewPatchModel\n | ReviewsViewPatchModel\n}\nexport type ViewListItemModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n}\nexport type ViewListModel = {\n views: ViewListItemModel[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type QueryCondition = {\n /** Path to the key separated by slashes */\n key: string\n /** Value to compare against */\n value?: string | number | number | boolean | string[] | number[] | number[]\n /** Comparison operator */\n operator?:\n | 'eq'\n | 'like'\n | 'lt'\n | 'gt'\n | 'lte'\n | 'gte'\n | 'ne'\n | 'isnull'\n | 'notnull'\n | 'in'\n | 'notin'\n | 'includes'\n | 'excludes'\n | 'includesall'\n | 'excludesall'\n | 'includesany'\n | 'excludesany'\n}\nexport type QueryFilter = {\n /** List of conditions to be evaluated */\n conditions?: (QueryCondition | QueryFilter)[]\n /** Operator to use when joining conditions */\n operator?: 'and' | 'or'\n}\nexport type ColumnItemModel = {\n name: string\n visible?: boolean\n pinned?: boolean\n width?: number\n}\nexport type OverviewSettings = {\n showHierarchy?: boolean\n groupBy?: string\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type OverviewViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: OverviewSettings\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type TaskProgressViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: TaskProgressSettings\n}\nexport type ListsSettings = {\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ListsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ListsSettings\n}\nexport type ReviewsSettings = {\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ReviewsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ReviewsSettings\n}\nexport type OverviewViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: OverviewSettings\n access: object\n viewType?: 'overview'\n}\nexport type TaskProgressViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: TaskProgressSettings\n access: object\n viewType?: 'taskProgress'\n}\nexport type ListsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ListsSettings\n access: object\n viewType?: 'lists'\n}\nexport type ReviewsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ReviewsSettings\n access: object\n viewType?: 'reviews'\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n}\nexport type ReviewsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ReviewsSettings\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,MAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,UAAWA,EAAM,MAA6C,CAC5D,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,GACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,GACpC,OAAQ,OACR,KAAMA,EAAS,QACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,eAAgBD,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,eAAgBD,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,eAAgBD,EAAM,SAA0D,CAC9E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,OACR,KAAMA,EAAS,2BACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,QAASD,EAAM,MAAyC,CACtD,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,SACR,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EAAA,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,QACR,KAAMA,EAAS,QACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CAE3B,EACD,CAAA,CAAA,GAEH,iBAAkB,EACpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"views.es.js","sources":["../../../../../src/api/generated/views.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listViews: build.query<ListViewsApiResponse, ListViewsApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n createView: build.mutation<CreateViewApiResponse, CreateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n method: 'POST',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getWorkingView: build.query<GetWorkingViewApiResponse, GetWorkingViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/working`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getDefaultView: build.query<GetDefaultViewApiResponse, GetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n setDefaultView: build.mutation<SetDefaultViewApiResponse, SetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n method: 'POST',\n body: queryArg.setDefaultViewRequestModel,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getView: build.query<GetViewApiResponse, GetViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n deleteView: build.mutation<DeleteViewApiResponse, DeleteViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'DELETE',\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n updateView: build.mutation<UpdateViewApiResponse, UpdateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'PATCH',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListViewsApiResponse = /** status 200 Successful Response */ ViewListModel\nexport type ListViewsApiArg = {\n viewType: string\n projectName?: string\n}\nexport type CreateViewApiResponse = /** status 200 Successful Response */ EntityIdResponse\nexport type CreateViewApiArg = {\n viewType: string\n projectName?: string\n payload: OverviewViewPostModel | TaskProgressViewPostModel | ListsViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type SetDefaultViewApiResponse = /** status 200 Successful Response */ any\nexport type SetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n setDefaultViewRequestModel: SetDefaultViewRequestModel\n}\nexport type GetViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\nexport type GetViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type DeleteViewApiResponse = /** status 200 Successful Response */ any\nexport type DeleteViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type UpdateViewApiResponse = /** status 200 Successful Response */ any\nexport type UpdateViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n payload: OverviewViewPatchModel | TaskProgressViewPatchModel | ListsViewPatchModel\n}\nexport type ViewListItemModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n}\nexport type ViewListModel = {\n views: ViewListItemModel[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type QueryCondition = {\n /** Path to the key separated by slashes */\n key: string\n /** Value to compare against */\n value?: string | number | number | boolean | string[] | number[] | number[]\n /** Comparison operator */\n operator?:\n | 'eq'\n | 'like'\n | 'lt'\n | 'gt'\n | 'lte'\n | 'gte'\n | 'ne'\n | 'isnull'\n | 'notnull'\n | 'in'\n | 'notin'\n | 'includes'\n | 'excludes'\n | 'includesall'\n | 'excludesall'\n | 'includesany'\n | 'excludesany'\n}\nexport type QueryFilter = {\n /** List of conditions to be evaluated */\n conditions?: (QueryCondition | QueryFilter)[]\n /** Operator to use when joining conditions */\n operator?: 'and' | 'or'\n}\nexport type ColumnItemModel = {\n name: string\n visible?: boolean\n pinned?: boolean\n width?: number\n}\nexport type OverviewSettings = {\n showHierarchy?: boolean\n groupBy?: string\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type OverviewViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: OverviewSettings\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type TaskProgressViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: TaskProgressSettings\n}\nexport type ListsSettings = {\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ListsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ListsSettings\n}\nexport type OverviewViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: OverviewSettings\n viewType?: 'overview'\n}\nexport type TaskProgressViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: TaskProgressSettings\n viewType?: 'taskProgress'\n}\nexport type ListsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n access: object\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ListsSettings\n viewType?: 'lists'\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,WAAWA,EAAM,MAA6C;AAAA,MAC5D,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,QAAQ;AAAA,UACN,cAAcA,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MAAMA,EAAS;AAAA,QACf,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
1
+ {"version":3,"file":"views.es.js","sources":["../../../../../src/api/generated/views.ts"],"sourcesContent":["import { api } from '@shared/api/base'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n listViews: build.query<ListViewsApiResponse, ListViewsApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n createView: build.mutation<CreateViewApiResponse, CreateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}`,\n method: 'POST',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getWorkingView: build.query<GetWorkingViewApiResponse, GetWorkingViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/working`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getDefaultView: build.query<GetDefaultViewApiResponse, GetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n setDefaultView: build.mutation<SetDefaultViewApiResponse, SetDefaultViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/default`,\n method: 'POST',\n body: queryArg.setDefaultViewRequestModel,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n getView: build.query<GetViewApiResponse, GetViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n deleteView: build.mutation<DeleteViewApiResponse, DeleteViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'DELETE',\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n updateView: build.mutation<UpdateViewApiResponse, UpdateViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/${queryArg.viewId}`,\n method: 'PATCH',\n body: queryArg.payload,\n params: {\n project_name: queryArg.projectName,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ListViewsApiResponse = /** status 200 Successful Response */ ViewListModel\nexport type ListViewsApiArg = {\n viewType: string\n projectName?: string\n}\nexport type CreateViewApiResponse = /** status 200 Successful Response */ EntityIdResponse\nexport type CreateViewApiArg = {\n viewType: string\n projectName?: string\n payload:\n | OverviewViewPostModel\n | TaskProgressViewPostModel\n | ListsViewPostModel\n | ReviewsViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type SetDefaultViewApiResponse = /** status 200 Successful Response */ any\nexport type SetDefaultViewApiArg = {\n viewType: string\n projectName?: string\n setDefaultViewRequestModel: SetDefaultViewRequestModel\n}\nexport type GetViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\nexport type GetViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type DeleteViewApiResponse = /** status 200 Successful Response */ any\nexport type DeleteViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n}\nexport type UpdateViewApiResponse = /** status 200 Successful Response */ any\nexport type UpdateViewApiArg = {\n viewType: string\n viewId: string\n projectName?: string\n payload:\n | OverviewViewPatchModel\n | TaskProgressViewPatchModel\n | ListsViewPatchModel\n | ReviewsViewPatchModel\n}\nexport type ViewListItemModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n}\nexport type ViewListModel = {\n views: ViewListItemModel[]\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type EntityIdResponse = {\n /** Entity ID */\n id: string\n}\nexport type QueryCondition = {\n /** Path to the key separated by slashes */\n key: string\n /** Value to compare against */\n value?: string | number | number | boolean | string[] | number[] | number[]\n /** Comparison operator */\n operator?:\n | 'eq'\n | 'like'\n | 'lt'\n | 'gt'\n | 'lte'\n | 'gte'\n | 'ne'\n | 'isnull'\n | 'notnull'\n | 'in'\n | 'notin'\n | 'includes'\n | 'excludes'\n | 'includesall'\n | 'excludesall'\n | 'includesany'\n | 'excludesany'\n}\nexport type QueryFilter = {\n /** List of conditions to be evaluated */\n conditions?: (QueryCondition | QueryFilter)[]\n /** Operator to use when joining conditions */\n operator?: 'and' | 'or'\n}\nexport type ColumnItemModel = {\n name: string\n visible?: boolean\n pinned?: boolean\n width?: number\n}\nexport type OverviewSettings = {\n showHierarchy?: boolean\n groupBy?: string\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type OverviewViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: OverviewSettings\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type TaskProgressViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: TaskProgressSettings\n}\nexport type ListsSettings = {\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ListsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ListsSettings\n}\nexport type ReviewsSettings = {\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type ReviewsViewPostModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working?: boolean\n settings: ReviewsSettings\n}\nexport type OverviewViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: OverviewSettings\n access: object\n viewType?: 'overview'\n}\nexport type TaskProgressViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: TaskProgressSettings\n access: object\n viewType?: 'taskProgress'\n}\nexport type ListsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ListsSettings\n access: object\n viewType?: 'lists'\n}\nexport type ReviewsViewModel = {\n /** Unique identifier for the view within the given scope. */\n id?: string\n /** Human-readable name of the view. */\n label: string\n /** Determines whether the view is only available for the given project or for all projects (studio). */\n scope: 'project' | 'studio'\n /** Name of the user who created the view. Owners have full control over the view, */\n owner: string\n /** Visibility of the view. Public views are visible to all users, private views are only visible to the owner. */\n visibility: 'public' | 'private'\n /** Working view is a special type of the view that automatically stores the current view settings without explicitly saving them. Working views are always private and scoped to the project */\n working: boolean\n position: number\n accessLevel: number\n settings: ReviewsSettings\n access: object\n viewType?: 'reviews'\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n}\nexport type ReviewsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ReviewsSettings\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACM,MAAAA,IAAiBC,EAAI,gBAAgB;AAAA,EACzC,WAAW,CAACC,OAAW;AAAA,IACrB,WAAWA,EAAM,MAA6C;AAAA,MAC5D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CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM;AAAA,QACvD,QAAQ;AAAA,QACR,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IAAA,CACD;AAAA,IACD,YAAYD,EAAM,SAAkD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM;AAAA,QACvD,QAAQ;AAAA,QACR,MAAMA,EAAS;AAAA,QACf,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MAE3B;AAAA,IACD,CAAA;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../base/client.cjs.js");const v=require("../../generated/graphql.cjs.js");require("../../generated/graphqlLinks.cjs.js");require("../../generated/access.cjs.js");require("../../generated/actions.cjs.js");require("../../generated/activityFeed.cjs.js");require("../../generated/addons.cjs.js");require("../../generated/anatomy.cjs.js");require("../../generated/attributes.cjs.js");require("../../generated/authentication.cjs.js");require("../../generated/bundles.cjs.js");require("../../generated/configuration.cjs.js");require("../../generated/desktop.cjs.js");require("../../generated/entityLists.cjs.js");require("../../generated/events.cjs.js");require("../../generated/files.cjs.js");require("../../generated/folders.cjs.js");require("../../generated/inbox.cjs.js");require("../../generated/links.cjs.js");require("../../generated/market.cjs.js");require("../../generated/onboarding.cjs.js");require("../../generated/operations.cjs.js");require("../../generated/products.cjs.js");require("../../generated/projectDashboard.cjs.js");require("../../generated/projects.cjs.js");require("../../generated/reviewables.cjs.js");require("../../generated/services.cjs.js");require("../../generated/system.cjs.js");require("../../generated/tasks.cjs.js");require("../../generated/teams.cjs.js");require("../../generated/thumbnails.cjs.js");require("../../generated/uRIs.cjs.js");require("../../generated/users.cjs.js");require("../../generated/versions.cjs.js");require("../../generated/workfiles.cjs.js");require("../../generated/ynputCloud.cjs.js");require("../../generated/grouping.cjs.js");require("../../generated/views.cjs.js");const _=require("../overview/getOverview.cjs.js");require("../overview/updateOverview.cjs.js");require("../links/getEntityLinks.cjs.js");require("lodash");require("react-toastify");require("uuid");const p=require("../../../util/pubsub.cjs.js"),T=500,h=100,q=v.api.enhanceEndpoints({endpoints:{GetLists:{transformResponse:a=>({lists:a.project.entityLists.edges.map(t=>t.node),pageInfo:a.project.entityLists.pageInfo})},GetListItems:{transformResponse:a=>({items:a.project.entityLists.edges.flatMap(t=>t.node.items.edges.map(({node:e,...n})=>({...e,...n,attrib:_.parseAllAttribs(n.allAttrib)}))),pageInfo:a.project.entityLists.edges[0].node.items.pageInfo})},GetListsItemsForReviewSession:{transformResponse:a=>({lists:a.project.entityLists.edges.map(t=>t.node),pageInfo:a.project.entityLists.pageInfo})}}}),R=q.injectEndpoints({endpoints:a=>({getListsInfinite:a.infiniteQuery({infiniteQueryOptions:{initialPageParam:{cursor:""},getNextPageParam:t=>{const{pageInfo:e}=t;if(!(!e.hasNextPage||!e.endCursor))return{cursor:e.endCursor}}},queryFn:async({queryArg:t,pageParam:e},n)=>{try{const{cursor:i}=e,r={...t,first:T,after:i||void 0},s=await n.dispatch(q.endpoints.GetLists.initiate(r,{forceRefetch:!0}));if(s.error)throw s.error;return{data:s.data||{lists:[],pageInfo:{hasNextPage:!1,endCursor:null,startCursor:null,hasPreviousPage:!1}}}}catch(i){return console.error("Error in getListsInfinite queryFn:",i),{error:{status:"FETCH_ERROR",error:i.message}}}},providesTags:t=>[{type:"entityList",id:"LIST"},...((t==null?void 0:t.pages.flatMap(e=>e.lists))||[]).map(e=>({type:"entityList",id:e.id})),...((t==null?void 0:t.pages.flatMap(e=>e.lists))||[]).map(e=>({type:"entityList",id:e.entityListType}))],async onCacheEntryAdded(t,{cacheDataLoaded:e,cacheEntryRemoved:n,dispatch:i,updateCachedData:r}){let s;try{await e;const u=(o,c)=>{if(o!=="entity_list.changed")return;const d=c.summary,g=d.id;g&&(r(I=>{const f=I.pages.flatMap(m=>m.lists).find(m=>m.id===g);if(!f)return;const l={...f,label:d.label,entityType:d.entity_type,entityListType:d.entity_list_type,count:d.count};Object.assign(f,l)}),i(v.api.util.invalidateTags([{type:"entityList",id:"LIST"}])))};s=p.subscribe("entity_list.changed",u)}catch{}await n,p.unsubscribe(s)}}),getListItemsInfinite:a.infiniteQuery({infiniteQueryOptions:{initialPageParam:{cursor:""},getNextPageParam:t=>{const{pageInfo:e}=t;if(!(!e.hasNextPage||!e.endCursor))return{cursor:e.endCursor}}},queryFn:async({queryArg:t,pageParam:e},n)=>{try{const{sortBy:i,desc:r,...s}=t,{cursor:u}=e,o={...s,first:h,after:u||void 0};o.after=u||void 0,o.first=h,i&&(o.sortBy=i,r&&(o.before=u||void 0,o.after=void 0,o.last=h,o.first=void 0));const c=await n.dispatch(q.endpoints.GetListItems.initiate(o,{forceRefetch:!0}));if(c.error)throw c.error;return{data:c.data||{items:[],pageInfo:{hasNextPage:!1,endCursor:null,startCursor:null,hasPreviousPage:!1}}}}catch(i){return console.error("Error in getListsInfinite queryFn:",i),{error:{status:"FETCH_ERROR",error:i.message}}}},providesTags:(t,e,{listId:n,projectName:i})=>[{type:"entityListItem",id:"LIST"},{type:"entityListItem",id:n},{type:"entityListItem",id:i},...((t==null?void 0:t.pages.flatMap(r=>r.items))||[]).filter(r=>!!r).flatMap(r=>[{type:"entityListItem",id:r.id},{type:"entityListItem",id:r.entityId}])],async onCacheEntryAdded(t,{cacheDataLoaded:e,cacheEntryRemoved:n,dispatch:i}){var u;let r,s;try{const g=(u=(await e).data.pages.flatMap(y=>y.items)[0])==null?void 0:u.entityType,I="entity_list.changed",f=`entity.${g}`,l=y=>{i(v.api.util.invalidateTags([{type:"entityListItem",id:y}]))},m=(y,P)=>{if(y!==I)return;const L=P.summary.id;L&&l(L)},E=(y,P)=>{if(!y.startsWith(f))return;const L=P.summary.entityId;L&&l(L)};r=p.subscribe(I,m),g&&(s=p.subscribe(f,E))}catch{}await n,p.unsubscribe(r),p.unsubscribe(s)}}),getListsItemsForReviewSession:a.infiniteQuery({infiniteQueryOptions:{initialPageParam:{cursor:""},getNextPageParam:t=>{const{pageInfo:e}=t;if(!(!e.hasNextPage||!e.endCursor))return{cursor:e.endCursor}}},queryFn:async({queryArg:t,pageParam:e},n)=>{try{const{cursor:i}=e,r={...t,first:T,after:i||void 0},s=await n.dispatch(q.endpoints.GetListsItemsForReviewSession.initiate(r,{forceRefetch:!0}));if(s.error)throw s.error;return{data:s.data||{lists:[],pageInfo:{hasNextPage:!1,endCursor:null,startCursor:null,hasPreviousPage:!1}}}}catch(i){return console.error("Error in getListsInfinite queryFn:",i),{error:{status:"FETCH_ERROR",error:i.message}}}},providesTags:t=>[{type:"entityList",id:"LIST"},...((t==null?void 0:t.pages.flatMap(e=>e.lists))||[]).map(e=>({type:"entityList",id:e.id}))]})})}),{useGetListsInfiniteInfiniteQuery:b,useGetListItemsInfiniteInfiniteQuery:S,useGetListsItemsForReviewSessionInfiniteQuery:w,useLazyGetListsQuery:Q,useLazyGetListsItemsForReviewSessionQuery:C,useLazyGetListItemsQuery:F}=R;exports.LISTS_PER_PAGE=T;exports.LIST_ITEMS_PER_PAGE=h;exports.default=R;exports.useGetListItemsInfiniteInfiniteQuery=S;exports.useGetListsInfiniteInfiniteQuery=b;exports.useGetListsItemsForReviewSessionInfiniteQuery=w;exports.useLazyGetListItemsQuery=F;exports.useLazyGetListsItemsForReviewSessionQuery=C;exports.useLazyGetListsQuery=Q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../base/client.cjs.js");const v=require("../../generated/graphql.cjs.js");require("../../generated/graphqlLinks.cjs.js");require("../../generated/access.cjs.js");require("../../generated/actions.cjs.js");require("../../generated/activityFeed.cjs.js");require("../../generated/addons.cjs.js");require("../../generated/anatomy.cjs.js");require("../../generated/attributes.cjs.js");require("../../generated/authentication.cjs.js");require("../../generated/bundles.cjs.js");require("../../generated/configuration.cjs.js");require("../../generated/desktop.cjs.js");const b=require("../../generated/entityLists.cjs.js");require("../../generated/events.cjs.js");require("../../generated/files.cjs.js");require("../../generated/folders.cjs.js");require("../../generated/inbox.cjs.js");require("../../generated/links.cjs.js");require("../../generated/market.cjs.js");require("../../generated/onboarding.cjs.js");require("../../generated/operations.cjs.js");require("../../generated/products.cjs.js");require("../../generated/projectDashboard.cjs.js");require("../../generated/projects.cjs.js");require("../../generated/reviewables.cjs.js");require("../../generated/services.cjs.js");require("../../generated/system.cjs.js");require("../../generated/tasks.cjs.js");require("../../generated/teams.cjs.js");require("../../generated/thumbnails.cjs.js");require("../../generated/uRIs.cjs.js");require("../../generated/users.cjs.js");require("../../generated/versions.cjs.js");require("../../generated/workfiles.cjs.js");require("../../generated/ynputCloud.cjs.js");require("../../generated/grouping.cjs.js");require("../../generated/views.cjs.js");const S=require("../overview/getOverview.cjs.js");require("../overview/updateOverview.cjs.js");require("../links/getEntityLinks.cjs.js");require("lodash");require("react-toastify");require("uuid");const f=require("../../../util/pubsub.cjs.js"),T=i=>{if(!i)return{};try{return typeof i!="string"?i??{}:JSON.parse(i)}catch(e){return console.warn("Failed to parse entity list data field:",e),{}}},E=500,h=100,q=v.api.enhanceEndpoints({endpoints:{GetLists:{transformResponse:i=>({lists:i.project.entityLists.edges.map(e=>({...e.node,data:T(e.node.data)})),pageInfo:i.project.entityLists.pageInfo})},GetListItems:{transformResponse:i=>({items:i.project.entityLists.edges.flatMap(e=>e.node.items.edges.map(({node:t,...n})=>({...t,...n,attrib:S.parseAllAttribs(n.allAttrib)}))),pageInfo:i.project.entityLists.edges[0].node.items.pageInfo})},GetListsItemsForReviewSession:{transformResponse:i=>({lists:i.project.entityLists.edges.map(e=>e.node),pageInfo:i.project.entityLists.pageInfo})}}}),R=q.injectEndpoints({endpoints:i=>({getListsInfinite:i.infiniteQuery({infiniteQueryOptions:{initialPageParam:{cursor:""},getNextPageParam:e=>{const{pageInfo:t}=e;if(!(!t.hasNextPage||!t.endCursor))return{cursor:t.endCursor}}},queryFn:async({queryArg:e,pageParam:t},n)=>{try{const{cursor:r}=t,s={...e,first:E,after:r||void 0},a=await n.dispatch(q.endpoints.GetLists.initiate(s,{forceRefetch:!0}));if(a.error)throw a.error;return{data:a.data||{lists:[],pageInfo:{hasNextPage:!1,endCursor:null,startCursor:null,hasPreviousPage:!1}}}}catch(r){return console.error("Error in getListsInfinite queryFn:",r),{error:{status:"FETCH_ERROR",error:r.message}}}},providesTags:e=>[{type:"entityList",id:"LIST"},...((e==null?void 0:e.pages.flatMap(t=>t.lists))||[]).map(t=>({type:"entityList",id:t.id})),...((e==null?void 0:e.pages.flatMap(t=>t.lists))||[]).map(t=>({type:"entityList",id:t.entityListType}))],async onCacheEntryAdded(e,{cacheDataLoaded:t,cacheEntryRemoved:n,dispatch:r,updateCachedData:s}){let a;try{await t;const u=(o,c)=>{if(o!=="entity_list.changed")return;const d=c.summary,g=d.id;g&&(s(l=>{const p=l.pages.flatMap(L=>L.lists).find(L=>L.id===g);if(!p)return;const I={...p,label:d.label,entityType:d.entity_type,entityListType:d.entity_list_type,count:d.count};Object.assign(p,I)}),r(v.api.util.invalidateTags([{type:"entityList",id:"LIST"}])))};a=f.subscribe("entity_list.changed",u)}catch{}await n,f.unsubscribe(a)}}),getListItemsInfinite:i.infiniteQuery({infiniteQueryOptions:{initialPageParam:{cursor:""},getNextPageParam:e=>{const{pageInfo:t}=e;if(!(!t.hasNextPage||!t.endCursor))return{cursor:t.endCursor}}},queryFn:async({queryArg:e,pageParam:t},n)=>{try{const{sortBy:r,desc:s,...a}=e,{cursor:u}=t,o={...a,first:h,after:u||void 0};o.after=u||void 0,o.first=h,r&&(o.sortBy=r,s&&(o.before=u||void 0,o.after=void 0,o.last=h,o.first=void 0));const c=await n.dispatch(q.endpoints.GetListItems.initiate(o,{forceRefetch:!0}));if(c.error)throw c.error;return{data:c.data||{items:[],pageInfo:{hasNextPage:!1,endCursor:null,startCursor:null,hasPreviousPage:!1}}}}catch(r){return console.error("Error in getListsInfinite queryFn:",r),{error:{status:"FETCH_ERROR",error:r.message}}}},providesTags:(e,t,{listId:n,projectName:r})=>[{type:"entityListItem",id:"LIST"},{type:"entityListItem",id:n},{type:"entityListItem",id:r},...((e==null?void 0:e.pages.flatMap(s=>s.items))||[]).filter(s=>!!s).flatMap(s=>[{type:"entityListItem",id:s.id},{type:"entityListItem",id:s.entityId}])],async onCacheEntryAdded(e,{cacheDataLoaded:t,cacheEntryRemoved:n,dispatch:r}){var u;let s,a;try{const g=(u=(await t).data.pages.flatMap(y=>y.items)[0])==null?void 0:u.entityType,l="entity_list.changed",p=`entity.${g}`,I=y=>{r(v.api.util.invalidateTags([{type:"entityListItem",id:y}]))},L=(y,P)=>{if(y!==l)return;const m=P.summary.id;m&&I(m)},G=(y,P)=>{if(!y.startsWith(p))return;const m=P.summary.entityId;m&&I(m)};s=f.subscribe(l,L),g&&(a=f.subscribe(p,G))}catch{}await n,f.unsubscribe(s),f.unsubscribe(a)}}),getListsItemsForReviewSession:i.infiniteQuery({infiniteQueryOptions:{initialPageParam:{cursor:""},getNextPageParam:e=>{const{pageInfo:t}=e;if(!(!t.hasNextPage||!t.endCursor))return{cursor:t.endCursor}}},queryFn:async({queryArg:e,pageParam:t},n)=>{try{const{cursor:r}=t,s={...e,first:E,after:r||void 0},a=await n.dispatch(q.endpoints.GetListsItemsForReviewSession.initiate(s,{forceRefetch:!0}));if(a.error)throw a.error;return{data:a.data||{lists:[],pageInfo:{hasNextPage:!1,endCursor:null,startCursor:null,hasPreviousPage:!1}}}}catch(r){return console.error("Error in getListsInfinite queryFn:",r),{error:{status:"FETCH_ERROR",error:r.message}}}},providesTags:e=>[{type:"entityList",id:"LIST"},...((e==null?void 0:e.pages.flatMap(t=>t.lists))||[]).map(t=>({type:"entityList",id:t.id}))]})})}),w=b.api.enhanceEndpoints({endpoints:{getEntityList:{transformResponse:i=>({...i,data:T(i.data)}),providesTags:(i,e,{listId:t,projectName:n})=>[{type:"entityList",id:t},{type:"entityList",id:n},...i?[{type:"entityList",id:i.entityListType}]:[]]}}}),{useGetListsInfiniteInfiniteQuery:Q,useGetListItemsInfiniteInfiniteQuery:C,useGetListsItemsForReviewSessionInfiniteQuery:F,useLazyGetListsQuery:M,useLazyGetListsItemsForReviewSessionQuery:A,useLazyGetListItemsQuery:j}=R,{useGetEntityListQuery:N}=w;exports.LISTS_PER_PAGE=E;exports.LIST_ITEMS_PER_PAGE=h;exports.default=R;exports.useGetEntityListQuery=N;exports.useGetListItemsInfiniteInfiniteQuery=C;exports.useGetListsInfiniteInfiniteQuery=Q;exports.useGetListsItemsForReviewSessionInfiniteQuery=F;exports.useLazyGetListItemsQuery=j;exports.useLazyGetListsItemsForReviewSessionQuery=A;exports.useLazyGetListsQuery=M;
2
2
  //# sourceMappingURL=getLists.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLists.cjs.js","sources":["../../../../../../src/api/queries/entityLists/getLists.ts"],"sourcesContent":["import { gqlApi } from '@shared/api/generated'\nimport {\n FetchBaseQueryError,\n DefinitionsFromApi,\n OverrideResultType,\n TagTypesFromApi,\n} from '@reduxjs/toolkit/query'\nimport type {\n GetListItemsQuery,\n GetListItemsQueryVariables,\n GetListsItemsForReviewSessionQuery,\n GetListsItemsForReviewSessionResult,\n GetListsQuery,\n GetListsQueryVariables,\n} from '@shared/api'\nimport { parseAllAttribs } from '../overview'\nimport { PubSub } from '@shared/util'\nimport {\n GetListItemsResult,\n GetListsResult,\n ListItemMessage,\n ListItemsPageParam,\n ListsPageParam,\n} from './types'\n\n// GRAPHQL API (getLists and getListItems)\n// Define the LISTS_PER_PAGE constant for pagination\nexport const LISTS_PER_PAGE = 500\nexport const LIST_ITEMS_PER_PAGE = 100\n\ntype Definitions = DefinitionsFromApi<typeof gqlApi>\ntype TagTypes = TagTypesFromApi<typeof gqlApi>\n// update the definitions to include the new types\ntype UpdatedDefinitions = Omit<Definitions, 'GetLists' | 'GetListItems'> & {\n GetLists: OverrideResultType<Definitions['GetLists'], GetListsResult>\n GetListItems: OverrideResultType<Definitions['GetListItems'], GetListItemsResult>\n GetListsItemsForReviewSession: OverrideResultType<\n Definitions['GetListsItemsForReviewSession'],\n GetListsItemsForReviewSessionResult\n >\n}\n\nconst getListsGqlApiEnhanced = gqlApi.enhanceEndpoints<TagTypes, UpdatedDefinitions>({\n endpoints: {\n GetLists: {\n transformResponse: (response: GetListsQuery): GetListsResult => {\n return {\n // @ts-expect-error - entityType is string\n lists: response.project.entityLists.edges.map((edge) => edge.node),\n pageInfo: response.project.entityLists.pageInfo,\n }\n },\n },\n GetListItems: {\n transformResponse: (response: GetListItemsQuery): GetListItemsResult => {\n return {\n items: response.project.entityLists.edges.flatMap((listEdge) =>\n listEdge.node.items.edges.map(({ node, ...edge }) => {\n return {\n ...node,\n ...edge,\n attrib: parseAllAttribs(edge.allAttrib),\n } as GetListItemsResult['items'][number]\n }),\n ),\n pageInfo: response.project.entityLists.edges[0].node.items.pageInfo,\n }\n },\n },\n GetListsItemsForReviewSession: {\n transformResponse: (\n response: GetListsItemsForReviewSessionQuery,\n ): GetListsItemsForReviewSessionResult => {\n return {\n lists: response.project.entityLists.edges.map((edge) => edge.node),\n pageInfo: response.project.entityLists.pageInfo,\n }\n },\n },\n },\n})\n\nconst getListsGqlApiInjected = getListsGqlApiEnhanced.injectEndpoints({\n endpoints: (build) => ({\n getListsInfinite: build.infiniteQuery<\n GetListsResult,\n Omit<GetListsQueryVariables, 'first' | 'after' | 'before'>,\n ListsPageParam\n >({\n infiniteQueryOptions: {\n initialPageParam: { cursor: '' },\n getNextPageParam: (lastPage) => {\n const { pageInfo } = lastPage\n if (!pageInfo.hasNextPage || !pageInfo.endCursor) return undefined\n\n return {\n cursor: pageInfo.endCursor,\n }\n },\n },\n queryFn: async ({ queryArg, pageParam }, api) => {\n try {\n const { cursor } = pageParam\n\n // Build the query parameters for GetLists\n const queryParams = {\n ...queryArg,\n first: LISTS_PER_PAGE,\n after: cursor || undefined,\n }\n\n // Call the existing GetLists endpoint\n const result = await api.dispatch(\n getListsGqlApiEnhanced.endpoints.GetLists.initiate(queryParams, { forceRefetch: true }),\n )\n\n if (result.error) throw result.error\n\n return {\n data: result.data || {\n lists: [],\n pageInfo: {\n hasNextPage: false,\n endCursor: null,\n startCursor: null,\n hasPreviousPage: false,\n },\n },\n }\n } catch (e: any) {\n console.error('Error in getListsInfinite queryFn:', e)\n return { error: { status: 'FETCH_ERROR', error: e.message } as FetchBaseQueryError }\n }\n },\n providesTags: (result) => [\n { type: 'entityList', id: 'LIST' },\n ...(result?.pages.flatMap((page) => page.lists) || []).map((list) => ({\n type: 'entityList' as const,\n id: list.id,\n })),\n ...(result?.pages.flatMap((page) => page.lists) || []).map((list) => ({\n type: 'entityList' as const,\n id: list.entityListType,\n })),\n ],\n async onCacheEntryAdded(\n _args,\n { cacheDataLoaded, cacheEntryRemoved, dispatch, updateCachedData },\n ) {\n let token\n try {\n // wait for the initial query to resolve before proceeding\n await cacheDataLoaded\n\n const handlePubSub = (topic: string, message: ListItemMessage) => {\n if (topic !== 'entity_list.changed') return\n const summary = message.summary\n const id = summary.id\n if (!id) return\n\n // We have all the data we need to update the cache\n updateCachedData((draft) => {\n const list = draft.pages.flatMap((page) => page.lists).find((l) => l.id === id)\n if (!list) return\n const newList = {\n ...list,\n label: summary.label,\n entityType: summary.entity_type,\n entityListType: summary.entity_list_type,\n count: summary.count,\n }\n\n Object.assign(list, newList)\n })\n // NOTE: We have to invalidate here as we don't know if other fields are updated not included in the updateCachedData\n // invalidates lists list cache\n dispatch(gqlApi.util.invalidateTags([{ type: 'entityList', id: `LIST` }]))\n }\n\n // sub to websocket topic\n token = PubSub.subscribe('entity_list.changed', handlePubSub)\n } catch {\n // no-op in case `cacheEntryRemoved` resolves before `cacheDataLoaded`,\n // in which case `cacheDataLoaded` will throw\n }\n // cacheEntryRemoved will resolve when the cache subscription is no longer active\n await cacheEntryRemoved\n // perform cleanup steps once the `cacheEntryRemoved` promise resolves\n PubSub.unsubscribe(token)\n },\n }),\n getListItemsInfinite: build.infiniteQuery<\n GetListItemsResult,\n Omit<GetListItemsQueryVariables, 'first' | 'after' | 'before' | 'last'> & { desc?: boolean },\n ListItemsPageParam\n >({\n infiniteQueryOptions: {\n initialPageParam: { cursor: '' },\n getNextPageParam: (lastPage) => {\n const { pageInfo } = lastPage\n if (!pageInfo.hasNextPage || !pageInfo.endCursor) return undefined\n\n return {\n cursor: pageInfo.endCursor,\n }\n },\n },\n queryFn: async ({ queryArg, pageParam }, api) => {\n try {\n const { sortBy, desc, ...rest } = queryArg\n const { cursor } = pageParam\n\n // Build the query parameters for GetLists\n const queryParams: GetListItemsQueryVariables = {\n ...rest,\n first: LIST_ITEMS_PER_PAGE,\n after: cursor || undefined,\n }\n\n // Add cursor-based pagination\n queryParams.after = cursor || undefined\n queryParams.first = LIST_ITEMS_PER_PAGE\n\n if (sortBy) {\n queryParams.sortBy = sortBy\n if (desc) {\n queryParams.before = cursor || undefined\n queryParams.after = undefined\n queryParams.last = LIST_ITEMS_PER_PAGE\n queryParams.first = undefined\n }\n }\n\n // Call the existing GetLists endpoint\n const result = await api.dispatch(\n getListsGqlApiEnhanced.endpoints.GetListItems.initiate(queryParams, {\n forceRefetch: true,\n }),\n )\n\n if (result.error) throw result.error\n\n return {\n data: result.data || {\n items: [],\n pageInfo: {\n hasNextPage: false,\n endCursor: null,\n startCursor: null,\n hasPreviousPage: false,\n },\n },\n }\n } catch (e: any) {\n console.error('Error in getListsInfinite queryFn:', e)\n return { error: { status: 'FETCH_ERROR', error: e.message } as FetchBaseQueryError }\n }\n },\n providesTags: (result, _e, { listId, projectName }) => [\n { type: 'entityListItem', id: 'LIST' },\n { type: 'entityListItem', id: listId },\n { type: 'entityListItem', id: projectName },\n ...(result?.pages.flatMap((page) => page.items) || [])\n .filter((i) => !!i)\n .flatMap((item) => [\n {\n type: 'entityListItem',\n id: item.id,\n },\n {\n type: 'entityListItem',\n id: item.entityId,\n },\n ]),\n ],\n async onCacheEntryAdded(_args, { cacheDataLoaded, cacheEntryRemoved, dispatch }) {\n let token, token2\n try {\n // wait for the initial query to resolve before proceeding\n const cache = await cacheDataLoaded\n const pages = cache.data.pages\n const items = pages.flatMap((page) => page.items)\n // get entityType of first item\n const entityType = items[0]?.entityType\n\n const listTopic = `entity_list.changed`\n const entityTypeTopic = `entity.${entityType}`\n\n const invalidateListItems = (id: string) => {\n dispatch(gqlApi.util.invalidateTags([{ type: 'entityListItem', id: id }]))\n }\n\n const handleListMessage = (topic: string, message: ListItemMessage) => {\n if (topic !== listTopic) return\n const summary = message.summary\n const id = summary.id\n if (!id) return\n invalidateListItems(id)\n }\n\n const handleEntityMessage = (topic: string, message: ListItemMessage) => {\n if (!topic.startsWith(entityTypeTopic)) return\n const summary = message.summary\n const id = summary.entityId\n // check for id\n if (!id) return\n invalidateListItems(id)\n }\n\n // sub to websocket topic\n token = PubSub.subscribe(listTopic, handleListMessage)\n if (entityType) token2 = PubSub.subscribe(entityTypeTopic, handleEntityMessage)\n } catch {\n // no-op in case `cacheEntryRemoved` resolves before `cacheDataLoaded`,\n // in which case `cacheDataLoaded` will throw\n }\n // cacheEntryRemoved will resolve when the cache subscription is no longer active\n await cacheEntryRemoved\n // perform cleanup steps once the `cacheEntryRemoved` promise resolves\n PubSub.unsubscribe(token)\n PubSub.unsubscribe(token2)\n },\n }),\n getListsItemsForReviewSession: build.infiniteQuery<\n GetListsItemsForReviewSessionResult,\n Omit<GetListsQueryVariables, 'first' | 'after' | 'before' | 'filter'>,\n ListsPageParam\n >({\n infiniteQueryOptions: {\n initialPageParam: { cursor: '' },\n getNextPageParam: (lastPage) => {\n const { pageInfo } = lastPage\n if (!pageInfo.hasNextPage || !pageInfo.endCursor) return undefined\n\n return {\n cursor: pageInfo.endCursor,\n }\n },\n },\n queryFn: async ({ queryArg, pageParam }, api) => {\n try {\n const { cursor } = pageParam\n\n // Build the query parameters for GetLists\n const queryParams = {\n ...queryArg,\n first: LISTS_PER_PAGE,\n after: cursor || undefined,\n }\n\n // Call the existing GetLists endpoint\n const result = await api.dispatch(\n getListsGqlApiEnhanced.endpoints.GetListsItemsForReviewSession.initiate(queryParams, {\n forceRefetch: true,\n }),\n )\n\n if (result.error) throw result.error\n\n return {\n data: result.data || {\n lists: [],\n pageInfo: {\n hasNextPage: false,\n endCursor: null,\n startCursor: null,\n hasPreviousPage: false,\n },\n },\n }\n } catch (e: any) {\n console.error('Error in getListsInfinite queryFn:', e)\n return { error: { status: 'FETCH_ERROR', error: e.message } as FetchBaseQueryError }\n }\n },\n providesTags: (result) => [\n { type: 'entityList', id: 'LIST' },\n ...(result?.pages.flatMap((page) => page.lists) || []).map((list) => ({\n type: 'entityList' as const,\n id: list.id,\n })),\n ],\n }),\n }),\n})\n\nexport default getListsGqlApiInjected\n\nexport const {\n useGetListsInfiniteInfiniteQuery,\n useGetListItemsInfiniteInfiniteQuery,\n useGetListsItemsForReviewSessionInfiniteQuery,\n useLazyGetListsQuery,\n useLazyGetListsItemsForReviewSessionQuery,\n useLazyGetListItemsQuery,\n} = getListsGqlApiInjected\n"],"names":["LISTS_PER_PAGE","LIST_ITEMS_PER_PAGE","getListsGqlApiEnhanced","gqlApi","response","edge","listEdge","node","parseAllAttribs","getListsGqlApiInjected","build","lastPage","pageInfo","queryArg","pageParam","api","cursor","queryParams","result","e","page","list","_args","cacheDataLoaded","cacheEntryRemoved","dispatch","updateCachedData","token","handlePubSub","topic","message","summary","id","draft","l","newList","PubSub","sortBy","desc","rest","_e","listId","projectName","i","item","token2","entityType","_a","listTopic","entityTypeTopic","invalidateListItems","handleListMessage","handleEntityMessage","useGetListsInfiniteInfiniteQuery","useGetListItemsInfiniteInfiniteQuery","useGetListsItemsForReviewSessionInfiniteQuery","useLazyGetListsQuery","useLazyGetListsItemsForReviewSessionQuery","useLazyGetListItemsQuery"],"mappings":"s8DA2BaA,EAAiB,IACjBC,EAAsB,IAc7BC,EAAyBC,MAAO,iBAA+C,C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AmBC,GAAa,CACxB,KAAA,CAAE,SAAAC,GAAaD,EACrB,GAAI,GAACC,EAAS,aAAe,CAACA,EAAS,WAEhC,MAAA,CACL,OAAQA,EAAS,SACnB,CAAA,CAEJ,EACA,QAAS,MAAO,CAAE,SAAAC,EAAU,UAAAC,CAAA,EAAaC,IAAQ,CAC3C,GAAA,CACI,KAAA,CAAE,OAAAC,GAAWF,EAGbG,EAAc,CAClB,GAAGJ,EACH,MAAOb,EACP,MAAOgB,GAAU,MACnB,EAGME,EAAS,MAAMH,EAAI,SACvBb,EAAuB,UAAU,8BAA8B,SAASe,EAAa,CACnF,aAAc,EACf,CAAA,CACH,EAEI,GAAAC,EAAO,MAAO,MAAMA,EAAO,MAExB,MAAA,CACL,KAAMA,EAAO,MAAQ,CACnB,MAAO,CAAC,EACR,SAAU,CACR,YAAa,GACb,UAAW,KACX,YAAa,KACb,gBAAiB,EAAA,CACnB,CAEJ,QACOC,EAAQ,CACP,eAAA,MAAM,qCAAsCA,CAAC,EAC9C,CAAE,MAAO,CAAE,OAAQ,cAAe,MAAOA,EAAE,QAAiC,CAAA,CAEvF,EACA,aAAeD,GAAW,CACxB,CAAE,KAAM,aAAc,GAAI,MAAO,EACjC,KAAIA,GAAA,YAAAA,EAAQ,MAAM,QAASE,GAASA,EAAK,SAAU,CAAA,GAAI,IAAKC,IAAU,CACpE,KAAM,aACN,GAAIA,EAAK,EAAA,EACT,CAAA,CAEL,CAAA,CACH,EACF,CAAC,EAIY,CACX,iCAAAgC,EACA,qCAAAC,EACA,8CAAAC,EACA,qBAAAC,EACA,0CAAAC,EACA,yBAAAC,CACF,EAAIjD"}
1
+ {"version":3,"file":"getLists.cjs.js","sources":["../../../../../../src/api/queries/entityLists/getLists.ts"],"sourcesContent":["import { entityListsApi, gqlApi } from '@shared/api/generated'\nimport {\n FetchBaseQueryError,\n DefinitionsFromApi,\n OverrideResultType,\n TagTypesFromApi,\n} from '@reduxjs/toolkit/query'\nimport type {\n GetListItemsQuery,\n GetListItemsQueryVariables,\n GetListsItemsForReviewSessionQuery,\n GetListsItemsForReviewSessionResult,\n GetListsQuery,\n GetListsQueryVariables,\n} from '@shared/api'\nimport { parseAllAttribs } from '../overview'\nimport { PubSub } from '@shared/util'\nimport {\n GetListItemsResult,\n GetListsResult,\n ListItemMessage,\n ListItemsPageParam,\n ListsPageParam,\n} from './types'\n\n// Helper function to safely parse entity list data field from JSON string to object\nconst parseEntityListData = (data: string | null | undefined): Record<string, any> => {\n if (!data) return {}\n\n try {\n if (typeof data !== 'string') {\n return (data as unknown as Record<string, any>) ?? {}\n }\n return JSON.parse(data)\n } catch (e) {\n console.warn('Failed to parse entity list data field:', e)\n return {}\n }\n}\n\n// GRAPHQL API (getLists and getListItems)\n// Define the LISTS_PER_PAGE constant for pagination\nexport const LISTS_PER_PAGE = 500\nexport const LIST_ITEMS_PER_PAGE = 100\n\ntype Definitions = DefinitionsFromApi<typeof gqlApi>\ntype TagTypes = TagTypesFromApi<typeof gqlApi>\n// update the definitions to include the new types\ntype UpdatedDefinitions = Omit<Definitions, 'GetLists' | 'GetListItems'> & {\n GetLists: OverrideResultType<Definitions['GetLists'], GetListsResult>\n GetListItems: OverrideResultType<Definitions['GetListItems'], GetListItemsResult>\n GetListsItemsForReviewSession: OverrideResultType<\n Definitions['GetListsItemsForReviewSession'],\n GetListsItemsForReviewSessionResult\n >\n}\n\nconst getListsGqlApiEnhanced = gqlApi.enhanceEndpoints<TagTypes, UpdatedDefinitions>({\n endpoints: {\n GetLists: {\n transformResponse: (response: GetListsQuery): GetListsResult => {\n return {\n // @ts-expect-error - entityType is string\n lists: response.project.entityLists.edges.map((edge) => ({\n ...edge.node,\n data: parseEntityListData(edge.node.data),\n })),\n pageInfo: response.project.entityLists.pageInfo,\n }\n },\n },\n GetListItems: {\n transformResponse: (response: GetListItemsQuery): GetListItemsResult => {\n return {\n items: response.project.entityLists.edges.flatMap((listEdge) =>\n listEdge.node.items.edges.map(({ node, ...edge }) => {\n return {\n ...node,\n ...edge,\n attrib: parseAllAttribs(edge.allAttrib),\n } as GetListItemsResult['items'][number]\n }),\n ),\n pageInfo: response.project.entityLists.edges[0].node.items.pageInfo,\n }\n },\n },\n GetListsItemsForReviewSession: {\n transformResponse: (\n response: GetListsItemsForReviewSessionQuery,\n ): GetListsItemsForReviewSessionResult => {\n return {\n lists: response.project.entityLists.edges.map((edge) => edge.node),\n pageInfo: response.project.entityLists.pageInfo,\n }\n },\n },\n },\n})\n\nconst getListsGqlApiInjected = getListsGqlApiEnhanced.injectEndpoints({\n endpoints: (build) => ({\n getListsInfinite: build.infiniteQuery<\n GetListsResult,\n Omit<GetListsQueryVariables, 'first' | 'after' | 'before'>,\n ListsPageParam\n >({\n infiniteQueryOptions: {\n initialPageParam: { cursor: '' },\n getNextPageParam: (lastPage) => {\n const { pageInfo } = lastPage\n if (!pageInfo.hasNextPage || !pageInfo.endCursor) return undefined\n\n return {\n cursor: pageInfo.endCursor,\n }\n },\n },\n queryFn: async ({ queryArg, pageParam }, api) => {\n try {\n const { cursor } = pageParam\n\n // Build the query parameters for GetLists\n const queryParams = {\n ...queryArg,\n first: LISTS_PER_PAGE,\n after: cursor || undefined,\n }\n\n // Call the existing GetLists endpoint\n const result = await api.dispatch(\n getListsGqlApiEnhanced.endpoints.GetLists.initiate(queryParams, { forceRefetch: true }),\n )\n\n if (result.error) throw result.error\n\n return {\n data: result.data || {\n lists: [],\n pageInfo: {\n hasNextPage: false,\n endCursor: null,\n startCursor: null,\n hasPreviousPage: false,\n },\n },\n }\n } catch (e: any) {\n console.error('Error in getListsInfinite queryFn:', e)\n return { error: { status: 'FETCH_ERROR', error: e.message } as FetchBaseQueryError }\n }\n },\n providesTags: (result) => [\n { type: 'entityList', id: 'LIST' },\n ...(result?.pages.flatMap((page) => page.lists) || []).map((list) => ({\n type: 'entityList' as const,\n id: list.id,\n })),\n ...(result?.pages.flatMap((page) => page.lists) || []).map((list) => ({\n type: 'entityList' as const,\n id: list.entityListType,\n })),\n ],\n async onCacheEntryAdded(\n _args,\n { cacheDataLoaded, cacheEntryRemoved, dispatch, updateCachedData },\n ) {\n let token\n try {\n // wait for the initial query to resolve before proceeding\n await cacheDataLoaded\n\n const handlePubSub = (topic: string, message: ListItemMessage) => {\n if (topic !== 'entity_list.changed') return\n const summary = message.summary\n const id = summary.id\n if (!id) return\n\n // We have all the data we need to update the cache\n updateCachedData((draft) => {\n const list = draft.pages.flatMap((page) => page.lists).find((l) => l.id === id)\n if (!list) return\n const newList = {\n ...list,\n label: summary.label,\n entityType: summary.entity_type,\n entityListType: summary.entity_list_type,\n count: summary.count,\n }\n\n Object.assign(list, newList)\n })\n // NOTE: We have to invalidate here as we don't know if other fields are updated not included in the updateCachedData\n // invalidates lists list cache\n dispatch(gqlApi.util.invalidateTags([{ type: 'entityList', id: `LIST` }]))\n }\n\n // sub to websocket topic\n token = PubSub.subscribe('entity_list.changed', handlePubSub)\n } catch {\n // no-op in case `cacheEntryRemoved` resolves before `cacheDataLoaded`,\n // in which case `cacheDataLoaded` will throw\n }\n // cacheEntryRemoved will resolve when the cache subscription is no longer active\n await cacheEntryRemoved\n // perform cleanup steps once the `cacheEntryRemoved` promise resolves\n PubSub.unsubscribe(token)\n },\n }),\n getListItemsInfinite: build.infiniteQuery<\n GetListItemsResult,\n Omit<GetListItemsQueryVariables, 'first' | 'after' | 'before' | 'last'> & { desc?: boolean },\n ListItemsPageParam\n >({\n infiniteQueryOptions: {\n initialPageParam: { cursor: '' },\n getNextPageParam: (lastPage) => {\n const { pageInfo } = lastPage\n if (!pageInfo.hasNextPage || !pageInfo.endCursor) return undefined\n\n return {\n cursor: pageInfo.endCursor,\n }\n },\n },\n queryFn: async ({ queryArg, pageParam }, api) => {\n try {\n const { sortBy, desc, ...rest } = queryArg\n const { cursor } = pageParam\n\n // Build the query parameters for GetLists\n const queryParams: GetListItemsQueryVariables = {\n ...rest,\n first: LIST_ITEMS_PER_PAGE,\n after: cursor || undefined,\n }\n\n // Add cursor-based pagination\n queryParams.after = cursor || undefined\n queryParams.first = LIST_ITEMS_PER_PAGE\n\n if (sortBy) {\n queryParams.sortBy = sortBy\n if (desc) {\n queryParams.before = cursor || undefined\n queryParams.after = undefined\n queryParams.last = LIST_ITEMS_PER_PAGE\n queryParams.first = undefined\n }\n }\n\n // Call the existing GetLists endpoint\n const result = await api.dispatch(\n getListsGqlApiEnhanced.endpoints.GetListItems.initiate(queryParams, {\n forceRefetch: true,\n }),\n )\n\n if (result.error) throw result.error\n\n return {\n data: result.data || {\n items: [],\n pageInfo: {\n hasNextPage: false,\n endCursor: null,\n startCursor: null,\n hasPreviousPage: false,\n },\n },\n }\n } catch (e: any) {\n console.error('Error in getListsInfinite queryFn:', e)\n return { error: { status: 'FETCH_ERROR', error: e.message } as FetchBaseQueryError }\n }\n },\n providesTags: (result, _e, { listId, projectName }) => [\n { type: 'entityListItem', id: 'LIST' },\n { type: 'entityListItem', id: listId },\n { type: 'entityListItem', id: projectName },\n ...(result?.pages.flatMap((page) => page.items) || [])\n .filter((i) => !!i)\n .flatMap((item) => [\n {\n type: 'entityListItem',\n id: item.id,\n },\n {\n type: 'entityListItem',\n id: item.entityId,\n },\n ]),\n ],\n async onCacheEntryAdded(_args, { cacheDataLoaded, cacheEntryRemoved, dispatch }) {\n let token, token2\n try {\n // wait for the initial query to resolve before proceeding\n const cache = await cacheDataLoaded\n const pages = cache.data.pages\n const items = pages.flatMap((page) => page.items)\n // get entityType of first item\n const entityType = items[0]?.entityType\n\n const listTopic = `entity_list.changed`\n const entityTypeTopic = `entity.${entityType}`\n\n const invalidateListItems = (id: string) => {\n dispatch(gqlApi.util.invalidateTags([{ type: 'entityListItem', id: id }]))\n }\n\n const handleListMessage = (topic: string, message: ListItemMessage) => {\n if (topic !== listTopic) return\n const summary = message.summary\n const id = summary.id\n if (!id) return\n invalidateListItems(id)\n }\n\n const handleEntityMessage = (topic: string, message: ListItemMessage) => {\n if (!topic.startsWith(entityTypeTopic)) return\n const summary = message.summary\n const id = summary.entityId\n // check for id\n if (!id) return\n invalidateListItems(id)\n }\n\n // sub to websocket topic\n token = PubSub.subscribe(listTopic, handleListMessage)\n if (entityType) token2 = PubSub.subscribe(entityTypeTopic, handleEntityMessage)\n } catch {\n // no-op in case `cacheEntryRemoved` resolves before `cacheDataLoaded`,\n // in which case `cacheDataLoaded` will throw\n }\n // cacheEntryRemoved will resolve when the cache subscription is no longer active\n await cacheEntryRemoved\n // perform cleanup steps once the `cacheEntryRemoved` promise resolves\n PubSub.unsubscribe(token)\n PubSub.unsubscribe(token2)\n },\n }),\n getListsItemsForReviewSession: build.infiniteQuery<\n GetListsItemsForReviewSessionResult,\n Omit<GetListsQueryVariables, 'first' | 'after' | 'before' | 'filter'>,\n ListsPageParam\n >({\n infiniteQueryOptions: {\n initialPageParam: { cursor: '' },\n getNextPageParam: (lastPage) => {\n const { pageInfo } = lastPage\n if (!pageInfo.hasNextPage || !pageInfo.endCursor) return undefined\n\n return {\n cursor: pageInfo.endCursor,\n }\n },\n },\n queryFn: async ({ queryArg, pageParam }, api) => {\n try {\n const { cursor } = pageParam\n\n // Build the query parameters for GetLists\n const queryParams = {\n ...queryArg,\n first: LISTS_PER_PAGE,\n after: cursor || undefined,\n }\n\n // Call the existing GetLists endpoint\n const result = await api.dispatch(\n getListsGqlApiEnhanced.endpoints.GetListsItemsForReviewSession.initiate(queryParams, {\n forceRefetch: true,\n }),\n )\n\n if (result.error) throw result.error\n\n return {\n data: result.data || {\n lists: [],\n pageInfo: {\n hasNextPage: false,\n endCursor: null,\n startCursor: null,\n hasPreviousPage: false,\n },\n },\n }\n } catch (e: any) {\n console.error('Error in getListsInfinite queryFn:', e)\n return { error: { status: 'FETCH_ERROR', error: e.message } as FetchBaseQueryError }\n }\n },\n providesTags: (result) => [\n { type: 'entityList', id: 'LIST' },\n ...(result?.pages.flatMap((page) => page.lists) || []).map((list) => ({\n type: 'entityList' as const,\n id: list.id,\n })),\n ],\n }),\n }),\n})\n\nconst getListsApiEnhanced = entityListsApi.enhanceEndpoints({\n endpoints: {\n getEntityList: {\n transformResponse: (response: any) => {\n return {\n ...response,\n data: parseEntityListData(response.data),\n }\n },\n providesTags: (result, _e, { listId, projectName }) => [\n { type: 'entityList', id: listId },\n { type: 'entityList', id: projectName },\n ...(result ? [{ type: 'entityList', id: result.entityListType }] : []),\n ],\n },\n },\n})\n\nexport default getListsGqlApiInjected\n\nexport const {\n useGetListsInfiniteInfiniteQuery,\n useGetListItemsInfiniteInfiniteQuery,\n useGetListsItemsForReviewSessionInfiniteQuery,\n useLazyGetListsQuery,\n useLazyGetListsItemsForReviewSessionQuery,\n useLazyGetListItemsQuery,\n} = getListsGqlApiInjected\n\nexport const { useGetEntityListQuery } = getListsApiEnhanced\n"],"names":["parseEntityListData","data","LISTS_PER_PAGE","LIST_ITEMS_PER_PAGE","getListsGqlApiEnhanced","gqlApi","response","edge","listEdge","node","parseAllAttribs","getListsGqlApiInjected","build","lastPage","pageInfo","queryArg","pageParam","api","cursor","queryParams","result","e","page","list","_args","cacheDataLoaded","cacheEntryRemoved","dispatch","updateCachedData","token","handlePubSub","topic","message","summary","id","draft","l","newList","PubSub","sortBy","desc","rest","_e","listId","projectName","i","item","token2","entityType","_a","listTopic","entityTypeTopic","invalidateListItems","handleListMessage","handleEntityMessage","getListsApiEnhanced","entityListsApi","useGetListsInfiniteInfiniteQuery","useGetListItemsInfiniteInfiniteQuery","useGetListsItemsForReviewSessionInfiniteQuery","useLazyGetListsQuery","useLazyGetListsItemsForReviewSessionQuery","useLazyGetListItemsQuery","useGetEntityListQuery"],"mappings":"88DA0BMA,EAAuBC,GAAyD,CAChF,GAAA,CAACA,EAAM,MAAO,CAAC,EAEf,GAAA,CACE,OAAA,OAAOA,GAAS,SACVA,GAA2C,CAAC,EAE/C,KAAK,MAAMA,CAAI,QACf,EAAG,CACF,eAAA,KAAK,0CAA2C,CAAC,EAClD,CAAC,CAAA,CAEZ,EAIaC,EAAiB,IACjBC,EAAsB,IAc7BC,EAAyBC,MAAO,iBAA+C,CACnF,UA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