@ynput/ayon-frontend-shared 0.3.23 → 0.3.25

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 (806) hide show
  1. package/dist/DetailsPanel.cjs.js +1 -1
  2. package/dist/DetailsPanel.es.js +23 -22
  3. package/dist/DetailsPanel.es.js.map +1 -1
  4. package/dist/Slicer.cjs.js +1 -1
  5. package/dist/Slicer.es.js +19 -18
  6. package/dist/Slicer.es.js.map +1 -1
  7. package/dist/_virtual/index.cjs14.js +1 -1
  8. package/dist/_virtual/index.cjs15.js +1 -1
  9. package/dist/_virtual/index.cjs19.js +1 -1
  10. package/dist/_virtual/index.cjs4.js +1 -1
  11. package/dist/_virtual/index.cjs5.js +1 -1
  12. package/dist/_virtual/index.cjs9.js +1 -1
  13. package/dist/_virtual/index.es10.js +2 -2
  14. package/dist/_virtual/index.es11.js +2 -2
  15. package/dist/_virtual/index.es13.js +2 -2
  16. package/dist/_virtual/index.es14.js +5 -2
  17. package/dist/_virtual/index.es14.js.map +1 -1
  18. package/dist/_virtual/index.es15.js +2 -2
  19. package/dist/_virtual/index.es16.js +2 -2
  20. package/dist/_virtual/index.es17.js +2 -2
  21. package/dist/_virtual/index.es18.js +2 -2
  22. package/dist/_virtual/index.es19.js +2 -2
  23. package/dist/_virtual/index.es4.js +2 -5
  24. package/dist/_virtual/index.es4.js.map +1 -1
  25. package/dist/_virtual/index.es5.js +5 -2
  26. package/dist/_virtual/index.es5.js.map +1 -1
  27. package/dist/_virtual/index.es9.js +2 -5
  28. package/dist/_virtual/index.es9.js.map +1 -1
  29. package/dist/api.cjs.js +1 -1
  30. package/dist/api.es.js +355 -353
  31. package/dist/api.es.js.map +1 -1
  32. package/dist/index.cjs.js +1 -1
  33. package/dist/index.es.js +10 -9
  34. package/dist/index.es.js.map +1 -1
  35. package/dist/node_modules/match-sorter/dist/match-sorter.esm.cjs.js +1 -1
  36. package/dist/node_modules/match-sorter/dist/match-sorter.esm.es.js +1 -1
  37. package/dist/shared/node_modules/@module-federation/runtime/dist/index.cjs.js +1 -1
  38. package/dist/shared/node_modules/@module-federation/runtime/dist/index.es.js +1 -1
  39. package/dist/shared/node_modules/@module-federation/runtime-core/dist/module/index.cjs.js +1 -1
  40. package/dist/shared/node_modules/@module-federation/runtime-core/dist/module/index.es.js +1 -1
  41. package/dist/shared/node_modules/@module-federation/runtime-core/dist/plugins/snapshot/index.cjs.js +1 -1
  42. package/dist/shared/node_modules/@module-federation/runtime-core/dist/plugins/snapshot/index.es.js +1 -1
  43. package/dist/shared/node_modules/@module-federation/runtime-core/dist/remote/index.cjs.js +1 -1
  44. package/dist/shared/node_modules/@module-federation/runtime-core/dist/remote/index.es.js +1 -1
  45. package/dist/shared/node_modules/@module-federation/runtime-core/dist/shared/index.cjs.js +1 -1
  46. package/dist/shared/node_modules/@module-federation/runtime-core/dist/shared/index.es.js +1 -1
  47. package/dist/shared/node_modules/@module-federation/runtime-core/dist/type/index.cjs.js +1 -1
  48. package/dist/shared/node_modules/@module-federation/runtime-core/dist/type/index.es.js +1 -1
  49. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/hooks/index.cjs.js +1 -1
  50. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/hooks/index.es.js +1 -1
  51. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/index.cjs.js +1 -1
  52. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/index.es.js +1 -1
  53. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/semver/index.cjs.js +1 -1
  54. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/semver/index.cjs.js.map +1 -1
  55. package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/semver/index.es.js +1 -1
  56. package/dist/shared/node_modules/@module-federation/sdk/dist/index.cjs.js +1 -1
  57. package/dist/shared/node_modules/@module-federation/sdk/dist/index.es.js +1 -1
  58. package/dist/shared/node_modules/prop-types/index.cjs.js +1 -1
  59. package/dist/shared/node_modules/prop-types/index.es.js +1 -1
  60. package/dist/shared/node_modules/react-transition-group/esm/CSSTransition.cjs.js +1 -1
  61. package/dist/shared/node_modules/react-transition-group/esm/CSSTransition.cjs.js.map +1 -1
  62. package/dist/shared/node_modules/react-transition-group/esm/CSSTransition.es.js +1 -1
  63. package/dist/shared/node_modules/react-transition-group/esm/Transition.cjs.js +1 -1
  64. package/dist/shared/node_modules/react-transition-group/esm/Transition.cjs.js.map +1 -1
  65. package/dist/shared/node_modules/react-transition-group/esm/Transition.es.js +1 -1
  66. package/dist/shared/node_modules/react-transition-group/esm/utils/PropTypes.cjs.js +1 -1
  67. package/dist/shared/node_modules/react-transition-group/esm/utils/PropTypes.cjs.js.map +1 -1
  68. package/dist/shared/node_modules/react-transition-group/esm/utils/PropTypes.es.js +1 -1
  69. package/dist/shared/src/api/generated/dataImport.cjs.js +2 -0
  70. package/dist/shared/src/api/generated/dataImport.cjs.js.map +1 -0
  71. package/dist/shared/src/api/generated/dataImport.es.js +52 -0
  72. package/dist/shared/src/api/generated/dataImport.es.js.map +1 -0
  73. package/dist/shared/src/api/generated/graphql.cjs.js +716 -90
  74. package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
  75. package/dist/shared/src/api/generated/graphql.es.js +801 -175
  76. package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
  77. package/dist/shared/src/api/generated/graphqlLinks.cjs.js +322 -21
  78. package/dist/shared/src/api/generated/graphqlLinks.cjs.js.map +1 -1
  79. package/dist/shared/src/api/generated/graphqlLinks.es.js +358 -57
  80. package/dist/shared/src/api/generated/graphqlLinks.es.js.map +1 -1
  81. package/dist/shared/src/api/generated/projects.cjs.js +1 -1
  82. package/dist/shared/src/api/generated/projects.cjs.js.map +1 -1
  83. package/dist/shared/src/api/generated/projects.es.js +32 -41
  84. package/dist/shared/src/api/generated/projects.es.js.map +1 -1
  85. package/dist/shared/src/api/generated/views.cjs.js.map +1 -1
  86. package/dist/shared/src/api/generated/views.es.js.map +1 -1
  87. package/dist/shared/src/api/queries/actions/getActions.cjs.js +1 -1
  88. package/dist/shared/src/api/queries/actions/getActions.cjs.js.map +1 -1
  89. package/dist/shared/src/api/queries/actions/getActions.es.js +11 -10
  90. package/dist/shared/src/api/queries/actions/getActions.es.js.map +1 -1
  91. package/dist/shared/src/api/queries/activities/getActivities.cjs.js +1 -1
  92. package/dist/shared/src/api/queries/activities/getActivities.cjs.js.map +1 -1
  93. package/dist/shared/src/api/queries/activities/getActivities.es.js +11 -10
  94. package/dist/shared/src/api/queries/activities/getActivities.es.js.map +1 -1
  95. package/dist/shared/src/api/queries/activities/getCategories.cjs.js +1 -1
  96. package/dist/shared/src/api/queries/activities/getCategories.cjs.js.map +1 -1
  97. package/dist/shared/src/api/queries/activities/getCategories.es.js +3 -2
  98. package/dist/shared/src/api/queries/activities/getCategories.es.js.map +1 -1
  99. package/dist/shared/src/api/queries/activities/getMentions.cjs.js +1 -1
  100. package/dist/shared/src/api/queries/activities/getMentions.cjs.js.map +1 -1
  101. package/dist/shared/src/api/queries/activities/getMentions.es.js +3 -2
  102. package/dist/shared/src/api/queries/activities/getMentions.es.js.map +1 -1
  103. package/dist/shared/src/api/queries/activities/updateReaction.cjs.js +1 -1
  104. package/dist/shared/src/api/queries/activities/updateReaction.cjs.js.map +1 -1
  105. package/dist/shared/src/api/queries/activities/updateReaction.es.js +4 -3
  106. package/dist/shared/src/api/queries/activities/updateReaction.es.js.map +1 -1
  107. package/dist/shared/src/api/queries/addons/getAddons.cjs.js +1 -1
  108. package/dist/shared/src/api/queries/addons/getAddons.cjs.js.map +1 -1
  109. package/dist/shared/src/api/queries/addons/getAddons.es.js +7 -6
  110. package/dist/shared/src/api/queries/addons/getAddons.es.js.map +1 -1
  111. package/dist/shared/src/api/queries/attributes/getAttributes.cjs.js +1 -1
  112. package/dist/shared/src/api/queries/attributes/getAttributes.cjs.js.map +1 -1
  113. package/dist/shared/src/api/queries/attributes/getAttributes.es.js +4 -3
  114. package/dist/shared/src/api/queries/attributes/getAttributes.es.js.map +1 -1
  115. package/dist/shared/src/api/queries/authentication/getAuthentication.cjs.js +1 -1
  116. package/dist/shared/src/api/queries/authentication/getAuthentication.cjs.js.map +1 -1
  117. package/dist/shared/src/api/queries/authentication/getAuthentication.es.js +4 -3
  118. package/dist/shared/src/api/queries/authentication/getAuthentication.es.js.map +1 -1
  119. package/dist/shared/src/api/queries/cloud/cloud.cjs.js +1 -1
  120. package/dist/shared/src/api/queries/cloud/cloud.cjs.js.map +1 -1
  121. package/dist/shared/src/api/queries/cloud/cloud.es.js +9 -8
  122. package/dist/shared/src/api/queries/cloud/cloud.es.js.map +1 -1
  123. package/dist/shared/src/api/queries/config/getConfig.cjs.js +1 -1
  124. package/dist/shared/src/api/queries/config/getConfig.cjs.js.map +1 -1
  125. package/dist/shared/src/api/queries/config/getConfig.es.js +9 -8
  126. package/dist/shared/src/api/queries/config/getConfig.es.js.map +1 -1
  127. package/dist/shared/src/api/queries/entities/getEntity.cjs.js +1 -1
  128. package/dist/shared/src/api/queries/entities/getEntity.cjs.js.map +1 -1
  129. package/dist/shared/src/api/queries/entities/getEntity.es.js +13 -12
  130. package/dist/shared/src/api/queries/entities/getEntity.es.js.map +1 -1
  131. package/dist/shared/src/api/queries/entities/getEntityPanel.cjs.js +1 -1
  132. package/dist/shared/src/api/queries/entities/getEntityPanel.cjs.js.map +1 -1
  133. package/dist/shared/src/api/queries/entities/getEntityPanel.es.js +4 -3
  134. package/dist/shared/src/api/queries/entities/getEntityPanel.es.js.map +1 -1
  135. package/dist/shared/src/api/queries/entities/patchDetailsPanel.cjs.js +1 -1
  136. package/dist/shared/src/api/queries/entities/patchDetailsPanel.cjs.js.map +1 -1
  137. package/dist/shared/src/api/queries/entities/patchDetailsPanel.es.js +3 -2
  138. package/dist/shared/src/api/queries/entities/patchDetailsPanel.es.js.map +1 -1
  139. package/dist/shared/src/api/queries/entities/transformDetailsPanelData.cjs.js +1 -1
  140. package/dist/shared/src/api/queries/entities/transformDetailsPanelData.cjs.js.map +1 -1
  141. package/dist/shared/src/api/queries/entities/transformDetailsPanelData.es.js +4 -3
  142. package/dist/shared/src/api/queries/entities/transformDetailsPanelData.es.js.map +1 -1
  143. package/dist/shared/src/api/queries/entityLists/getLists.cjs.js +1 -1
  144. package/dist/shared/src/api/queries/entityLists/getLists.cjs.js.map +1 -1
  145. package/dist/shared/src/api/queries/entityLists/getLists.es.js +15 -14
  146. package/dist/shared/src/api/queries/entityLists/getLists.es.js.map +1 -1
  147. package/dist/shared/src/api/queries/entityLists/getListsAttributes.cjs.js +1 -1
  148. package/dist/shared/src/api/queries/entityLists/getListsAttributes.cjs.js.map +1 -1
  149. package/dist/shared/src/api/queries/entityLists/getListsAttributes.es.js +3 -2
  150. package/dist/shared/src/api/queries/entityLists/getListsAttributes.es.js.map +1 -1
  151. package/dist/shared/src/api/queries/entityLists/listFolders.cjs.js +1 -1
  152. package/dist/shared/src/api/queries/entityLists/listFolders.cjs.js.map +1 -1
  153. package/dist/shared/src/api/queries/entityLists/listFolders.es.js +18 -17
  154. package/dist/shared/src/api/queries/entityLists/listFolders.es.js.map +1 -1
  155. package/dist/shared/src/api/queries/entityLists/resolveEntityParents.cjs.js +1 -1
  156. package/dist/shared/src/api/queries/entityLists/resolveEntityParents.cjs.js.map +1 -1
  157. package/dist/shared/src/api/queries/entityLists/resolveEntityParents.es.js +3 -2
  158. package/dist/shared/src/api/queries/entityLists/resolveEntityParents.es.js.map +1 -1
  159. package/dist/shared/src/api/queries/entityLists/updateLists.cjs.js +1 -1
  160. package/dist/shared/src/api/queries/entityLists/updateLists.cjs.js.map +1 -1
  161. package/dist/shared/src/api/queries/entityLists/updateLists.es.js +17 -16
  162. package/dist/shared/src/api/queries/entityLists/updateLists.es.js.map +1 -1
  163. package/dist/shared/src/api/queries/folders/getFolders.cjs.js +1 -1
  164. package/dist/shared/src/api/queries/folders/getFolders.cjs.js.map +1 -1
  165. package/dist/shared/src/api/queries/folders/getFolders.es.js +4 -3
  166. package/dist/shared/src/api/queries/folders/getFolders.es.js.map +1 -1
  167. package/dist/shared/src/api/queries/grouping/getGrouping.cjs.js +1 -1
  168. package/dist/shared/src/api/queries/grouping/getGrouping.cjs.js.map +1 -1
  169. package/dist/shared/src/api/queries/grouping/getGrouping.es.js +3 -2
  170. package/dist/shared/src/api/queries/grouping/getGrouping.es.js.map +1 -1
  171. package/dist/shared/src/api/queries/links/getEntityLinks.cjs.js +1 -1
  172. package/dist/shared/src/api/queries/links/getEntityLinks.cjs.js.map +1 -1
  173. package/dist/shared/src/api/queries/links/getEntityLinks.es.js +3 -2
  174. package/dist/shared/src/api/queries/links/getEntityLinks.es.js.map +1 -1
  175. package/dist/shared/src/api/queries/links/getLinks.cjs.js +1 -1
  176. package/dist/shared/src/api/queries/links/getLinks.cjs.js.map +1 -1
  177. package/dist/shared/src/api/queries/links/getLinks.es.js +3 -2
  178. package/dist/shared/src/api/queries/links/getLinks.es.js.map +1 -1
  179. package/dist/shared/src/api/queries/links/updateLinks.cjs.js +1 -1
  180. package/dist/shared/src/api/queries/links/updateLinks.cjs.js.map +1 -1
  181. package/dist/shared/src/api/queries/links/updateLinks.es.js +4 -3
  182. package/dist/shared/src/api/queries/links/updateLinks.es.js.map +1 -1
  183. package/dist/shared/src/api/queries/overview/getOverview.cjs.js +1 -1
  184. package/dist/shared/src/api/queries/overview/getOverview.cjs.js.map +1 -1
  185. package/dist/shared/src/api/queries/overview/getOverview.es.js +39 -38
  186. package/dist/shared/src/api/queries/overview/getOverview.es.js.map +1 -1
  187. package/dist/shared/src/api/queries/overview/updateOverview.cjs.js +1 -1
  188. package/dist/shared/src/api/queries/overview/updateOverview.cjs.js.map +1 -1
  189. package/dist/shared/src/api/queries/overview/updateOverview.es.js +7 -6
  190. package/dist/shared/src/api/queries/overview/updateOverview.es.js.map +1 -1
  191. package/dist/shared/src/api/queries/permissions/getPermissions.cjs.js +1 -1
  192. package/dist/shared/src/api/queries/permissions/getPermissions.cjs.js.map +1 -1
  193. package/dist/shared/src/api/queries/permissions/getPermissions.es.js +4 -3
  194. package/dist/shared/src/api/queries/permissions/getPermissions.es.js.map +1 -1
  195. package/dist/shared/src/api/queries/products/createProduct.cjs.js +1 -1
  196. package/dist/shared/src/api/queries/products/createProduct.cjs.js.map +1 -1
  197. package/dist/shared/src/api/queries/products/createProduct.es.js +3 -2
  198. package/dist/shared/src/api/queries/products/createProduct.es.js.map +1 -1
  199. package/dist/shared/src/api/queries/products/getFolderProducts.cjs.js +1 -1
  200. package/dist/shared/src/api/queries/products/getFolderProducts.cjs.js.map +1 -1
  201. package/dist/shared/src/api/queries/products/getFolderProducts.es.js +3 -2
  202. package/dist/shared/src/api/queries/products/getFolderProducts.es.js.map +1 -1
  203. package/dist/shared/src/api/queries/project/getProject.cjs.js +1 -1
  204. package/dist/shared/src/api/queries/project/getProject.cjs.js.map +1 -1
  205. package/dist/shared/src/api/queries/project/getProject.es.js +7 -6
  206. package/dist/shared/src/api/queries/project/getProject.es.js.map +1 -1
  207. package/dist/shared/src/api/queries/projectFolders/projectFolders.cjs.js +1 -1
  208. package/dist/shared/src/api/queries/projectFolders/projectFolders.cjs.js.map +1 -1
  209. package/dist/shared/src/api/queries/projectFolders/projectFolders.es.js +13 -12
  210. package/dist/shared/src/api/queries/projectFolders/projectFolders.es.js.map +1 -1
  211. package/dist/shared/src/api/queries/review/getReview.cjs.js +1 -1
  212. package/dist/shared/src/api/queries/review/getReview.cjs.js.map +1 -1
  213. package/dist/shared/src/api/queries/review/getReview.es.js +7 -6
  214. package/dist/shared/src/api/queries/review/getReview.es.js.map +1 -1
  215. package/dist/shared/src/api/queries/review/updateReview.cjs.js +1 -1
  216. package/dist/shared/src/api/queries/review/updateReview.cjs.js.map +1 -1
  217. package/dist/shared/src/api/queries/review/updateReview.es.js +7 -6
  218. package/dist/shared/src/api/queries/review/updateReview.es.js.map +1 -1
  219. package/dist/shared/src/api/queries/share/share.cjs.js +1 -1
  220. package/dist/shared/src/api/queries/share/share.cjs.js.map +1 -1
  221. package/dist/shared/src/api/queries/share/share.es.js +3 -2
  222. package/dist/shared/src/api/queries/share/share.es.js.map +1 -1
  223. package/dist/shared/src/api/queries/system/getSystem.cjs.js +1 -1
  224. package/dist/shared/src/api/queries/system/getSystem.cjs.js.map +1 -1
  225. package/dist/shared/src/api/queries/system/getSystem.es.js +5 -4
  226. package/dist/shared/src/api/queries/system/getSystem.es.js.map +1 -1
  227. package/dist/shared/src/api/queries/teams/getTeams.cjs.js +1 -1
  228. package/dist/shared/src/api/queries/teams/getTeams.cjs.js.map +1 -1
  229. package/dist/shared/src/api/queries/teams/getTeams.es.js +13 -12
  230. package/dist/shared/src/api/queries/teams/getTeams.es.js.map +1 -1
  231. package/dist/shared/src/api/queries/uris/getUris.cjs.js +1 -1
  232. package/dist/shared/src/api/queries/uris/getUris.cjs.js.map +1 -1
  233. package/dist/shared/src/api/queries/uris/getUris.es.js +3 -2
  234. package/dist/shared/src/api/queries/uris/getUris.es.js.map +1 -1
  235. package/dist/shared/src/api/queries/userDashboard/getUserDashboard.cjs.js +1 -1
  236. package/dist/shared/src/api/queries/userDashboard/getUserDashboard.cjs.js.map +1 -1
  237. package/dist/shared/src/api/queries/userDashboard/getUserDashboard.es.js +6 -5
  238. package/dist/shared/src/api/queries/userDashboard/getUserDashboard.es.js.map +1 -1
  239. package/dist/shared/src/api/queries/users/getUsers.cjs.js +1 -1
  240. package/dist/shared/src/api/queries/users/getUsers.cjs.js.map +1 -1
  241. package/dist/shared/src/api/queries/users/getUsers.es.js +19 -18
  242. package/dist/shared/src/api/queries/users/getUsers.es.js.map +1 -1
  243. package/dist/shared/src/api/queries/users/guests.cjs.js +1 -1
  244. package/dist/shared/src/api/queries/users/guests.cjs.js.map +1 -1
  245. package/dist/shared/src/api/queries/users/guests.es.js +5 -4
  246. package/dist/shared/src/api/queries/users/guests.es.js.map +1 -1
  247. package/dist/shared/src/api/queries/users/updateUsers.cjs.js +1 -1
  248. package/dist/shared/src/api/queries/users/updateUsers.cjs.js.map +1 -1
  249. package/dist/shared/src/api/queries/users/updateUsers.es.js +21 -20
  250. package/dist/shared/src/api/queries/users/updateUsers.es.js.map +1 -1
  251. package/dist/shared/src/api/queries/versions/getVersionsProducts.cjs.js +1 -1
  252. package/dist/shared/src/api/queries/versions/getVersionsProducts.cjs.js.map +1 -1
  253. package/dist/shared/src/api/queries/versions/getVersionsProducts.es.js +11 -10
  254. package/dist/shared/src/api/queries/versions/getVersionsProducts.es.js.map +1 -1
  255. package/dist/shared/src/api/queries/versions/updateVersions.cjs.js +1 -1
  256. package/dist/shared/src/api/queries/versions/updateVersions.cjs.js.map +1 -1
  257. package/dist/shared/src/api/queries/versions/updateVersions.es.js +10 -9
  258. package/dist/shared/src/api/queries/versions/updateVersions.es.js.map +1 -1
  259. package/dist/shared/src/api/queries/views/getViews.cjs.js +1 -1
  260. package/dist/shared/src/api/queries/views/getViews.cjs.js.map +1 -1
  261. package/dist/shared/src/api/queries/views/getViews.es.js +11 -10
  262. package/dist/shared/src/api/queries/views/getViews.es.js.map +1 -1
  263. package/dist/shared/src/api/queries/watchers/getWatchers.cjs.js +1 -1
  264. package/dist/shared/src/api/queries/watchers/getWatchers.cjs.js.map +1 -1
  265. package/dist/shared/src/api/queries/watchers/getWatchers.es.js +4 -3
  266. package/dist/shared/src/api/queries/watchers/getWatchers.es.js.map +1 -1
  267. package/dist/shared/src/components/DetailsDialog/DetailsDialog.cjs.js +1 -1
  268. package/dist/shared/src/components/DetailsDialog/DetailsDialog.cjs.js.map +1 -1
  269. package/dist/shared/src/components/DetailsDialog/DetailsDialog.es.js +3 -2
  270. package/dist/shared/src/components/DetailsDialog/DetailsDialog.es.js.map +1 -1
  271. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js +1 -1
  272. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js.map +1 -1
  273. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js +3 -2
  274. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js.map +1 -1
  275. package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.cjs.js +1 -1
  276. package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.cjs.js.map +1 -1
  277. package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.es.js +3 -2
  278. package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.es.js.map +1 -1
  279. package/dist/shared/src/components/DetailsPanelDetails/DetailsPanelDetails.cjs.js +1 -1
  280. package/dist/shared/src/components/DetailsPanelDetails/DetailsPanelDetails.cjs.js.map +1 -1
  281. package/dist/shared/src/components/DetailsPanelDetails/DetailsPanelDetails.es.js +3 -2
  282. package/dist/shared/src/components/DetailsPanelDetails/DetailsPanelDetails.es.js.map +1 -1
  283. package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityEditing.cjs.js +1 -1
  284. package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityEditing.cjs.js.map +1 -1
  285. package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityEditing.es.js +3 -2
  286. package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityEditing.es.js.map +1 -1
  287. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.cjs.js +1 -1
  288. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.cjs.js.map +1 -1
  289. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.es.js +3 -2
  290. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.es.js.map +1 -1
  291. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploaderDialog.cjs.js +1 -1
  292. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploaderDialog.cjs.js.map +1 -1
  293. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploaderDialog.es.js +3 -2
  294. package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploaderDialog.es.js.map +1 -1
  295. package/dist/shared/src/components/Feedback/FeedbackContext.cjs.js +1 -1
  296. package/dist/shared/src/components/Feedback/FeedbackContext.cjs.js.map +1 -1
  297. package/dist/shared/src/components/Feedback/FeedbackContext.es.js +5 -4
  298. package/dist/shared/src/components/Feedback/FeedbackContext.es.js.map +1 -1
  299. package/dist/shared/src/components/LinksManager/AddNewLinks.cjs.js +1 -1
  300. package/dist/shared/src/components/LinksManager/AddNewLinks.cjs.js.map +1 -1
  301. package/dist/shared/src/components/LinksManager/AddNewLinks.es.js +3 -2
  302. package/dist/shared/src/components/LinksManager/AddNewLinks.es.js.map +1 -1
  303. package/dist/shared/src/components/LinksManager/LinkManagerItem.cjs.js +1 -1
  304. package/dist/shared/src/components/LinksManager/LinkManagerItem.cjs.js.map +1 -1
  305. package/dist/shared/src/components/LinksManager/LinkManagerItem.es.js +3 -2
  306. package/dist/shared/src/components/LinksManager/LinkManagerItem.es.js.map +1 -1
  307. package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.cjs.js +1 -1
  308. package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.cjs.js.map +1 -1
  309. package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.es.js +3 -2
  310. package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.es.js.map +1 -1
  311. package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.cjs.js +1 -1
  312. package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.cjs.js.map +1 -1
  313. package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.es.js +3 -2
  314. package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.es.js.map +1 -1
  315. package/dist/shared/src/components/Powerpack/PowerpackDialog.cjs.js +1 -1
  316. package/dist/shared/src/components/Powerpack/PowerpackDialog.cjs.js.map +1 -1
  317. package/dist/shared/src/components/Powerpack/PowerpackDialog.es.js +3 -2
  318. package/dist/shared/src/components/Powerpack/PowerpackDialog.es.js.map +1 -1
  319. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js +1 -1
  320. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js.map +1 -1
  321. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js +5 -4
  322. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js.map +1 -1
  323. package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.cjs.js +1 -1
  324. package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.cjs.js.map +1 -1
  325. package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.es.js +3 -2
  326. package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.es.js.map +1 -1
  327. package/dist/shared/src/components/RemotePage/ProjectPageRemote.cjs.js +1 -1
  328. package/dist/shared/src/components/RemotePage/ProjectPageRemote.cjs.js.map +1 -1
  329. package/dist/shared/src/components/RemotePage/ProjectPageRemote.es.js +3 -2
  330. package/dist/shared/src/components/RemotePage/ProjectPageRemote.es.js.map +1 -1
  331. package/dist/shared/src/components/RemotePage/RemotePageWrapper.cjs.js +1 -1
  332. package/dist/shared/src/components/RemotePage/RemotePageWrapper.cjs.js.map +1 -1
  333. package/dist/shared/src/components/RemotePage/RemotePageWrapper.es.js +3 -2
  334. package/dist/shared/src/components/RemotePage/RemotePageWrapper.es.js.map +1 -1
  335. package/dist/shared/src/components/RenameForm/RenameForm.cjs.js +1 -1
  336. package/dist/shared/src/components/RenameForm/RenameForm.cjs.js.map +1 -1
  337. package/dist/shared/src/components/RenameForm/RenameForm.es.js +3 -2
  338. package/dist/shared/src/components/RenameForm/RenameForm.es.js.map +1 -1
  339. package/dist/shared/src/components/ReviewableProgressCard/ReviewableProgressCard.cjs.js +1 -1
  340. package/dist/shared/src/components/ReviewableProgressCard/ReviewableProgressCard.cjs.js.map +1 -1
  341. package/dist/shared/src/components/ReviewableProgressCard/ReviewableProgressCard.es.js +27 -21
  342. package/dist/shared/src/components/ReviewableProgressCard/ReviewableProgressCard.es.js.map +1 -1
  343. package/dist/shared/src/components/ReviewablesList/EditReviewableDialog.cjs.js +1 -1
  344. package/dist/shared/src/components/ReviewablesList/EditReviewableDialog.cjs.js.map +1 -1
  345. package/dist/shared/src/components/ReviewablesList/EditReviewableDialog.es.js +3 -2
  346. package/dist/shared/src/components/ReviewablesList/EditReviewableDialog.es.js.map +1 -1
  347. package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js +1 -1
  348. package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js.map +1 -1
  349. package/dist/shared/src/components/ReviewablesList/ReviewablesList.es.js +3 -2
  350. package/dist/shared/src/components/ReviewablesList/ReviewablesList.es.js.map +1 -1
  351. package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js +1 -1
  352. package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js.map +1 -1
  353. package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.es.js +4 -3
  354. package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.es.js.map +1 -1
  355. package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js +1 -1
  356. package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js.map +1 -1
  357. package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.es.js +3 -2
  358. package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.es.js.map +1 -1
  359. package/dist/shared/src/components/ReviewablesList/useReviewablesUpload.cjs.js +1 -1
  360. package/dist/shared/src/components/ReviewablesList/useReviewablesUpload.cjs.js.map +1 -1
  361. package/dist/shared/src/components/ReviewablesList/useReviewablesUpload.es.js +3 -2
  362. package/dist/shared/src/components/ReviewablesList/useReviewablesUpload.es.js.map +1 -1
  363. package/dist/shared/src/components/ReviewablesSelector/Card.cjs.js +1 -1
  364. package/dist/shared/src/components/ReviewablesSelector/Card.cjs.js.map +1 -1
  365. package/dist/shared/src/components/ReviewablesSelector/Card.es.js +24 -23
  366. package/dist/shared/src/components/ReviewablesSelector/Card.es.js.map +1 -1
  367. package/dist/shared/src/components/ReviewablesSelector/ReviewablesSelector.cjs.js.map +1 -1
  368. package/dist/shared/src/components/ReviewablesSelector/ReviewablesSelector.es.js.map +1 -1
  369. package/dist/shared/src/components/SearchFilter/useBuildFilterOptions.cjs.js +1 -1
  370. package/dist/shared/src/components/SearchFilter/useBuildFilterOptions.cjs.js.map +1 -1
  371. package/dist/shared/src/components/SearchFilter/useBuildFilterOptions.es.js +7 -6
  372. package/dist/shared/src/components/SearchFilter/useBuildFilterOptions.es.js.map +1 -1
  373. package/dist/shared/src/components/SimpleFormDialog/FormFile.cjs.js +1 -1
  374. package/dist/shared/src/components/SimpleFormDialog/FormFile.cjs.js.map +1 -1
  375. package/dist/shared/src/components/SimpleFormDialog/FormFile.es.js +5 -4
  376. package/dist/shared/src/components/SimpleFormDialog/FormFile.es.js.map +1 -1
  377. package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js +1 -1
  378. package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js.map +1 -1
  379. package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.es.js +3 -2
  380. package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.es.js.map +1 -1
  381. package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.cjs.js +1 -1
  382. package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.cjs.js.map +1 -1
  383. package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.es.js +5 -4
  384. package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.es.js.map +1 -1
  385. package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.cjs.js +1 -1
  386. package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.cjs.js.map +1 -1
  387. package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.es.js +3 -2
  388. package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.es.js.map +1 -1
  389. package/dist/shared/src/components/VersionUploader/context/VersionUploadContext.cjs.js +1 -1
  390. package/dist/shared/src/components/VersionUploader/context/VersionUploadContext.cjs.js.map +1 -1
  391. package/dist/shared/src/components/VersionUploader/context/VersionUploadContext.es.js +5 -4
  392. package/dist/shared/src/components/VersionUploader/context/VersionUploadContext.es.js.map +1 -1
  393. package/dist/shared/src/components/Watchers/Watchers.cjs.js +1 -1
  394. package/dist/shared/src/components/Watchers/Watchers.cjs.js.map +1 -1
  395. package/dist/shared/src/components/Watchers/Watchers.es.js +3 -2
  396. package/dist/shared/src/components/Watchers/Watchers.es.js.map +1 -1
  397. package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js +1 -1
  398. package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js.map +1 -1
  399. package/dist/shared/src/containers/Actions/ActionConfigDialog.es.js +3 -2
  400. package/dist/shared/src/containers/Actions/ActionConfigDialog.es.js.map +1 -1
  401. package/dist/shared/src/containers/Actions/Actions.cjs.js +1 -1
  402. package/dist/shared/src/containers/Actions/Actions.cjs.js.map +1 -1
  403. package/dist/shared/src/containers/Actions/Actions.es.js +3 -2
  404. package/dist/shared/src/containers/Actions/Actions.es.js.map +1 -1
  405. package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js +1 -1
  406. package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js.map +1 -1
  407. package/dist/shared/src/containers/Actions/InteractiveActionDialog.es.js +3 -2
  408. package/dist/shared/src/containers/Actions/InteractiveActionDialog.es.js.map +1 -1
  409. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js +1 -1
  410. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js.map +1 -1
  411. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js +3 -2
  412. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js.map +1 -1
  413. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFiles/DetailsPanelFiles.cjs.js +1 -1
  414. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFiles/DetailsPanelFiles.cjs.js.map +1 -1
  415. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFiles/DetailsPanelFiles.es.js +3 -2
  416. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFiles/DetailsPanelFiles.es.js.map +1 -1
  417. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFloating/DetailsPanelFloating.cjs.js +1 -1
  418. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFloating/DetailsPanelFloating.cjs.js.map +1 -1
  419. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFloating/DetailsPanelFloating.es.js +3 -2
  420. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFloating/DetailsPanelFloating.es.js.map +1 -1
  421. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelHeader/DetailsPanelHeader.cjs.js +1 -1
  422. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelHeader/DetailsPanelHeader.cjs.js.map +1 -1
  423. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelHeader/DetailsPanelHeader.es.js +3 -2
  424. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelHeader/DetailsPanelHeader.es.js.map +1 -1
  425. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelSlideOut/DetailsPanelSlideOut.cjs.js +1 -1
  426. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelSlideOut/DetailsPanelSlideOut.cjs.js.map +1 -1
  427. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelSlideOut/DetailsPanelSlideOut.es.js +3 -2
  428. package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelSlideOut/DetailsPanelSlideOut.es.js.map +1 -1
  429. package/dist/shared/src/containers/DetailsPanel/components/TabHeaderAndFilters/TabHeaderAndFilters.styled.cjs.js +1 -1
  430. package/dist/shared/src/containers/DetailsPanel/components/TabHeaderAndFilters/TabHeaderAndFilters.styled.cjs.js.map +1 -1
  431. package/dist/shared/src/containers/DetailsPanel/components/TabHeaderAndFilters/TabHeaderAndFilters.styled.es.js +17 -16
  432. package/dist/shared/src/containers/DetailsPanel/components/TabHeaderAndFilters/TabHeaderAndFilters.styled.es.js.map +1 -1
  433. package/dist/shared/src/containers/DetailsPanel/containers/DetailsPanelSubtasks.cjs.js +1 -1
  434. package/dist/shared/src/containers/DetailsPanel/containers/DetailsPanelSubtasks.cjs.js.map +1 -1
  435. package/dist/shared/src/containers/DetailsPanel/containers/DetailsPanelSubtasks.es.js +3 -2
  436. package/dist/shared/src/containers/DetailsPanel/containers/DetailsPanelSubtasks.es.js.map +1 -1
  437. package/dist/shared/src/containers/DetailsPanel/containers/FeedContextWrapper.cjs.js +1 -1
  438. package/dist/shared/src/containers/DetailsPanel/containers/FeedContextWrapper.cjs.js.map +1 -1
  439. package/dist/shared/src/containers/DetailsPanel/containers/FeedContextWrapper.es.js +3 -2
  440. package/dist/shared/src/containers/DetailsPanel/containers/FeedContextWrapper.es.js.map +1 -1
  441. package/dist/shared/src/containers/DetailsPanel/containers/FeedWrapper.cjs.js +1 -1
  442. package/dist/shared/src/containers/DetailsPanel/containers/FeedWrapper.cjs.js.map +1 -1
  443. package/dist/shared/src/containers/DetailsPanel/containers/FeedWrapper.es.js +3 -2
  444. package/dist/shared/src/containers/DetailsPanel/containers/FeedWrapper.es.js.map +1 -1
  445. package/dist/shared/src/containers/DetailsPanel/hooks/useGetEntityPath.cjs.js +1 -1
  446. package/dist/shared/src/containers/DetailsPanel/hooks/useGetEntityPath.cjs.js.map +1 -1
  447. package/dist/shared/src/containers/DetailsPanel/hooks/useGetEntityPath.es.js +3 -2
  448. package/dist/shared/src/containers/DetailsPanel/hooks/useGetEntityPath.es.js.map +1 -1
  449. package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.cjs.js +1 -1
  450. package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.cjs.js.map +1 -1
  451. package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.es.js +3 -2
  452. package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.es.js.map +1 -1
  453. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.cjs.js +1 -1
  454. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.cjs.js.map +1 -1
  455. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.es.js +3 -2
  456. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.es.js.map +1 -1
  457. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.cjs.js +1 -1
  458. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.cjs.js.map +1 -1
  459. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.es.js +3 -2
  460. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.es.js.map +1 -1
  461. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.cjs.js +1 -1
  462. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.cjs.js.map +1 -1
  463. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.es.js +3 -2
  464. package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.es.js.map +1 -1
  465. package/dist/shared/src/containers/EntityPickerDialog/hooks/useGetEntityPickerData.cjs.js +1 -1
  466. package/dist/shared/src/containers/EntityPickerDialog/hooks/useGetEntityPickerData.cjs.js.map +1 -1
  467. package/dist/shared/src/containers/EntityPickerDialog/hooks/useGetEntityPickerData.es.js +3 -2
  468. package/dist/shared/src/containers/EntityPickerDialog/hooks/useGetEntityPickerData.es.js.map +1 -1
  469. package/dist/shared/src/containers/Feed/Feed.cjs.js +1 -1
  470. package/dist/shared/src/containers/Feed/Feed.cjs.js.map +1 -1
  471. package/dist/shared/src/containers/Feed/Feed.es.js +5 -4
  472. package/dist/shared/src/containers/Feed/Feed.es.js.map +1 -1
  473. package/dist/shared/src/containers/Feed/components/ActivityCheckbox/ActivityCheckbox.cjs.js +1 -1
  474. package/dist/shared/src/containers/Feed/components/ActivityCheckbox/ActivityCheckbox.cjs.js.map +1 -1
  475. package/dist/shared/src/containers/Feed/components/ActivityCheckbox/ActivityCheckbox.es.js +3 -2
  476. package/dist/shared/src/containers/Feed/components/ActivityCheckbox/ActivityCheckbox.es.js.map +1 -1
  477. package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.cjs.js +1 -1
  478. package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.cjs.js.map +1 -1
  479. package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.es.js +3 -2
  480. package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.es.js.map +1 -1
  481. package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityCommentMenu.cjs.js +1 -1
  482. package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityCommentMenu.cjs.js.map +1 -1
  483. package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityCommentMenu.es.js +3 -2
  484. package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityCommentMenu.es.js.map +1 -1
  485. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.cjs.js +1 -1
  486. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.cjs.js.map +1 -1
  487. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.es.js +3 -2
  488. package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.es.js.map +1 -1
  489. package/dist/shared/src/containers/Feed/components/CommentInput/helpers.cjs.js +1 -1
  490. package/dist/shared/src/containers/Feed/components/CommentInput/helpers.cjs.js.map +1 -1
  491. package/dist/shared/src/containers/Feed/components/CommentInput/helpers.es.js +7 -6
  492. package/dist/shared/src/containers/Feed/components/CommentInput/helpers.es.js.map +1 -1
  493. package/dist/shared/src/containers/Feed/components/Tooltips/EntityTooltip/EntityTooltip.cjs.js +1 -1
  494. package/dist/shared/src/containers/Feed/components/Tooltips/EntityTooltip/EntityTooltip.cjs.js.map +1 -1
  495. package/dist/shared/src/containers/Feed/components/Tooltips/EntityTooltip/EntityTooltip.es.js +3 -2
  496. package/dist/shared/src/containers/Feed/components/Tooltips/EntityTooltip/EntityTooltip.es.js.map +1 -1
  497. package/dist/shared/src/containers/Feed/components/Tooltips/TeamTooltip/TeamTooltip.cjs.js +1 -1
  498. package/dist/shared/src/containers/Feed/components/Tooltips/TeamTooltip/TeamTooltip.cjs.js.map +1 -1
  499. package/dist/shared/src/containers/Feed/components/Tooltips/TeamTooltip/TeamTooltip.es.js +3 -2
  500. package/dist/shared/src/containers/Feed/components/Tooltips/TeamTooltip/TeamTooltip.es.js.map +1 -1
  501. package/dist/shared/src/containers/Feed/context/FeedContext.cjs.js +1 -1
  502. package/dist/shared/src/containers/Feed/context/FeedContext.cjs.js.map +1 -1
  503. package/dist/shared/src/containers/Feed/context/FeedContext.es.js +6 -5
  504. package/dist/shared/src/containers/Feed/context/FeedContext.es.js.map +1 -1
  505. package/dist/shared/src/containers/Feed/hooks/useGetFeedActivitiesData.cjs.js +1 -1
  506. package/dist/shared/src/containers/Feed/hooks/useGetFeedActivitiesData.cjs.js.map +1 -1
  507. package/dist/shared/src/containers/Feed/hooks/useGetFeedActivitiesData.es.js +3 -2
  508. package/dist/shared/src/containers/Feed/hooks/useGetFeedActivitiesData.es.js.map +1 -1
  509. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
  510. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
  511. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +3 -2
  512. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
  513. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
  514. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
  515. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +3 -2
  516. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
  517. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnDndProvider.cjs.js +1 -1
  518. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnDndProvider.cjs.js.map +1 -1
  519. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnDndProvider.es.js +3 -2
  520. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnDndProvider.es.js.map +1 -1
  521. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnHeaderMenu.cjs.js +1 -1
  522. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnHeaderMenu.cjs.js.map +1 -1
  523. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnHeaderMenu.es.js +3 -2
  524. package/dist/shared/src/containers/ProjectTreeTable/components/ColumnHeaderMenu.es.js.map +1 -1
  525. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js +1 -1
  526. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js.map +1 -1
  527. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js +3 -2
  528. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js.map +1 -1
  529. package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.cjs.js +1 -1
  530. package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.cjs.js.map +1 -1
  531. package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.es.js +3 -2
  532. package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.es.js.map +1 -1
  533. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js +1 -1
  534. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js.map +1 -1
  535. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js +5 -4
  536. package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js.map +1 -1
  537. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.cjs.js +1 -1
  538. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.cjs.js.map +1 -1
  539. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.es.js +5 -4
  540. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.es.js.map +1 -1
  541. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectTableProvider.cjs.js +1 -1
  542. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectTableProvider.cjs.js.map +1 -1
  543. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectTableProvider.es.js +42 -42
  544. package/dist/shared/src/containers/ProjectTreeTable/context/ProjectTableProvider.es.js.map +1 -1
  545. package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.cjs.js +1 -1
  546. package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.cjs.js.map +1 -1
  547. package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.es.js +3 -2
  548. package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.es.js.map +1 -1
  549. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.cjs.js +1 -1
  550. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.cjs.js.map +1 -1
  551. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.es.js +6 -5
  552. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.es.js.map +1 -1
  553. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildProjectDataTable.cjs.js +1 -1
  554. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildProjectDataTable.cjs.js.map +1 -1
  555. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildProjectDataTable.es.js +3 -2
  556. package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildProjectDataTable.es.js.map +1 -1
  557. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.cjs.js +1 -1
  558. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.cjs.js.map +1 -1
  559. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.es.js +3 -2
  560. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.es.js.map +1 -1
  561. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.cjs.js +1 -1
  562. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.cjs.js.map +1 -1
  563. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.es.js +3 -2
  564. package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.es.js.map +1 -1
  565. package/dist/shared/src/containers/ProjectTreeTable/hooks/useColumnGroupBy.cjs.js +1 -1
  566. package/dist/shared/src/containers/ProjectTreeTable/hooks/useColumnGroupBy.cjs.js.map +1 -1
  567. package/dist/shared/src/containers/ProjectTreeTable/hooks/useColumnGroupBy.es.js +3 -2
  568. package/dist/shared/src/containers/ProjectTreeTable/hooks/useColumnGroupBy.es.js.map +1 -1
  569. package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.cjs.js +1 -1
  570. package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.cjs.js.map +1 -1
  571. package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.es.js +3 -2
  572. package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.es.js.map +1 -1
  573. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.cjs.js +1 -1
  574. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.cjs.js.map +1 -1
  575. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.es.js +3 -2
  576. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.es.js.map +1 -1
  577. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGroupBySettings.cjs.js +1 -1
  578. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGroupBySettings.cjs.js.map +1 -1
  579. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGroupBySettings.es.js +3 -2
  580. package/dist/shared/src/containers/ProjectTreeTable/hooks/useGroupBySettings.es.js.map +1 -1
  581. package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.cjs.js +1 -1
  582. package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.cjs.js.map +1 -1
  583. package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.es.js +3 -2
  584. package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.es.js.map +1 -1
  585. package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.cjs.js +1 -1
  586. package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.cjs.js.map +1 -1
  587. package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.es.js +3 -2
  588. package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.es.js.map +1 -1
  589. package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.cjs.js +1 -1
  590. package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.cjs.js.map +1 -1
  591. package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.es.js +3 -2
  592. package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.es.js.map +1 -1
  593. package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.cjs.js +1 -1
  594. package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.cjs.js.map +1 -1
  595. package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.es.js +3 -2
  596. package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.es.js.map +1 -1
  597. package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.cjs.js +1 -1
  598. package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.cjs.js.map +1 -1
  599. package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.es.js +3 -2
  600. package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.es.js.map +1 -1
  601. package/dist/shared/src/containers/ProjectTreeTable/hooks/useUpdateTableData.cjs.js +1 -1
  602. package/dist/shared/src/containers/ProjectTreeTable/hooks/useUpdateTableData.cjs.js.map +1 -1
  603. package/dist/shared/src/containers/ProjectTreeTable/hooks/useUpdateTableData.es.js +19 -17
  604. package/dist/shared/src/containers/ProjectTreeTable/hooks/useUpdateTableData.es.js.map +1 -1
  605. package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.cjs.js +1 -1
  606. package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.cjs.js.map +1 -1
  607. package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.es.js +14 -13
  608. package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.es.js.map +1 -1
  609. package/dist/shared/src/containers/ProjectTreeTable/utils/queryFilterToClientFilter.cjs.js +1 -1
  610. package/dist/shared/src/containers/ProjectTreeTable/utils/queryFilterToClientFilter.cjs.js.map +1 -1
  611. package/dist/shared/src/containers/ProjectTreeTable/utils/queryFilterToClientFilter.es.js +1 -0
  612. package/dist/shared/src/containers/ProjectTreeTable/utils/queryFilterToClientFilter.es.js.map +1 -1
  613. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +1 -1
  614. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
  615. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +4 -3
  616. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
  617. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js +1 -1
  618. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js.map +1 -1
  619. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js +5 -4
  620. package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js.map +1 -1
  621. package/dist/shared/src/containers/ProjectTreeTable/widgets/NameWidget.cjs.js +1 -1
  622. package/dist/shared/src/containers/ProjectTreeTable/widgets/NameWidget.cjs.js.map +1 -1
  623. package/dist/shared/src/containers/ProjectTreeTable/widgets/NameWidget.es.js +3 -2
  624. package/dist/shared/src/containers/ProjectTreeTable/widgets/NameWidget.es.js.map +1 -1
  625. package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.cjs.js +1 -1
  626. package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.cjs.js.map +1 -1
  627. package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.es.js +3 -2
  628. package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.es.js.map +1 -1
  629. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextContentWidget.cjs.js +1 -1
  630. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextContentWidget.cjs.js.map +1 -1
  631. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextContentWidget.es.js +3 -2
  632. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextContentWidget.es.js.map +1 -1
  633. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js +1 -1
  634. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js.map +1 -1
  635. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js +3 -2
  636. package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js.map +1 -1
  637. package/dist/shared/src/containers/SimpleTable/SimpleTable.cjs.js +1 -1
  638. package/dist/shared/src/containers/SimpleTable/SimpleTable.cjs.js.map +1 -1
  639. package/dist/shared/src/containers/SimpleTable/SimpleTable.es.js +3 -2
  640. package/dist/shared/src/containers/SimpleTable/SimpleTable.es.js.map +1 -1
  641. package/dist/shared/src/containers/Slicer/components/SlicerSearch.cjs.js +1 -1
  642. package/dist/shared/src/containers/Slicer/components/SlicerSearch.cjs.js.map +1 -1
  643. package/dist/shared/src/containers/Slicer/components/SlicerSearch.es.js +3 -2
  644. package/dist/shared/src/containers/Slicer/components/SlicerSearch.es.js.map +1 -1
  645. package/dist/shared/src/containers/Slicer/context/SlicerContext.cjs.js +1 -1
  646. package/dist/shared/src/containers/Slicer/context/SlicerContext.cjs.js.map +1 -1
  647. package/dist/shared/src/containers/Slicer/context/SlicerContext.es.js +5 -4
  648. package/dist/shared/src/containers/Slicer/context/SlicerContext.es.js.map +1 -1
  649. package/dist/shared/src/containers/Slicer/hooks/useEntityListsSlice.cjs.js +1 -1
  650. package/dist/shared/src/containers/Slicer/hooks/useEntityListsSlice.cjs.js.map +1 -1
  651. package/dist/shared/src/containers/Slicer/hooks/useEntityListsSlice.es.js +3 -2
  652. package/dist/shared/src/containers/Slicer/hooks/useEntityListsSlice.es.js.map +1 -1
  653. package/dist/shared/src/containers/Slicer/hooks/useSelectedEntityIds.cjs.js +1 -1
  654. package/dist/shared/src/containers/Slicer/hooks/useSelectedEntityIds.cjs.js.map +1 -1
  655. package/dist/shared/src/containers/Slicer/hooks/useSelectedEntityIds.es.js +3 -2
  656. package/dist/shared/src/containers/Slicer/hooks/useSelectedEntityIds.es.js.map +1 -1
  657. package/dist/shared/src/containers/Slicer/hooks/useSlicerViewSync.cjs.js +1 -1
  658. package/dist/shared/src/containers/Slicer/hooks/useSlicerViewSync.cjs.js.map +1 -1
  659. package/dist/shared/src/containers/Slicer/hooks/useSlicerViewSync.es.js +3 -2
  660. package/dist/shared/src/containers/Slicer/hooks/useSlicerViewSync.es.js.map +1 -1
  661. package/dist/shared/src/containers/Slicer/hooks/useTableDataBySlice.cjs.js +1 -1
  662. package/dist/shared/src/containers/Slicer/hooks/useTableDataBySlice.cjs.js.map +1 -1
  663. package/dist/shared/src/containers/Slicer/hooks/useTableDataBySlice.es.js +3 -2
  664. package/dist/shared/src/containers/Slicer/hooks/useTableDataBySlice.es.js.map +1 -1
  665. package/dist/shared/src/containers/Slicer/hooks/useUsersTable.cjs.js +1 -1
  666. package/dist/shared/src/containers/Slicer/hooks/useUsersTable.cjs.js.map +1 -1
  667. package/dist/shared/src/containers/Slicer/hooks/useUsersTable.es.js +3 -2
  668. package/dist/shared/src/containers/Slicer/hooks/useUsersTable.es.js.map +1 -1
  669. package/dist/shared/src/containers/Views/ViewItem/ViewItem.cjs.js +1 -1
  670. package/dist/shared/src/containers/Views/ViewItem/ViewItem.cjs.js.map +1 -1
  671. package/dist/shared/src/containers/Views/ViewItem/ViewItem.es.js +46 -45
  672. package/dist/shared/src/containers/Views/ViewItem/ViewItem.es.js.map +1 -1
  673. package/dist/shared/src/containers/Views/ViewsButton/ViewsButton.cjs.js +1 -1
  674. package/dist/shared/src/containers/Views/ViewsButton/ViewsButton.cjs.js.map +1 -1
  675. package/dist/shared/src/containers/Views/ViewsButton/ViewsButton.es.js +30 -27
  676. package/dist/shared/src/containers/Views/ViewsButton/ViewsButton.es.js.map +1 -1
  677. package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewFormDialogFallback.cjs.js.map +1 -1
  678. package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewFormDialogFallback.es.js.map +1 -1
  679. package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewsDialogContainer.cjs.js +1 -1
  680. package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewsDialogContainer.cjs.js.map +1 -1
  681. package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewsDialogContainer.es.js +32 -29
  682. package/dist/shared/src/containers/Views/ViewsDialogContainer/ViewsDialogContainer.es.js.map +1 -1
  683. package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.cjs.js +1 -1
  684. package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.cjs.js.map +1 -1
  685. package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.es.js +39 -37
  686. package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.es.js.map +1 -1
  687. package/dist/shared/src/containers/Views/ViewsMenuContainer/ViewsMenuContainer.cjs.js +2 -2
  688. package/dist/shared/src/containers/Views/ViewsMenuContainer/ViewsMenuContainer.cjs.js.map +1 -1
  689. package/dist/shared/src/containers/Views/ViewsMenuContainer/ViewsMenuContainer.es.js +34 -33
  690. package/dist/shared/src/containers/Views/ViewsMenuContainer/ViewsMenuContainer.es.js.map +1 -1
  691. package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js +1 -1
  692. package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js.map +1 -1
  693. package/dist/shared/src/containers/Views/context/ViewsContext.es.js +84 -80
  694. package/dist/shared/src/containers/Views/context/ViewsContext.es.js.map +1 -1
  695. package/dist/shared/src/containers/Views/hooks/pages/useOverviewViewSettings.cjs.js +1 -1
  696. package/dist/shared/src/containers/Views/hooks/pages/useOverviewViewSettings.cjs.js.map +1 -1
  697. package/dist/shared/src/containers/Views/hooks/pages/useOverviewViewSettings.es.js +62 -41
  698. package/dist/shared/src/containers/Views/hooks/pages/useOverviewViewSettings.es.js.map +1 -1
  699. package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.cjs.js +1 -1
  700. package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.cjs.js.map +1 -1
  701. package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.es.js +3 -2
  702. package/dist/shared/src/containers/Views/hooks/useBaseViewMutations.es.js.map +1 -1
  703. package/dist/shared/src/containers/Views/hooks/useBuildViewMenuItems.cjs.js +1 -1
  704. package/dist/shared/src/containers/Views/hooks/useBuildViewMenuItems.cjs.js.map +1 -1
  705. package/dist/shared/src/containers/Views/hooks/useBuildViewMenuItems.es.js +93 -91
  706. package/dist/shared/src/containers/Views/hooks/useBuildViewMenuItems.es.js.map +1 -1
  707. package/dist/shared/src/containers/Views/hooks/useSelectedView.cjs.js +1 -1
  708. package/dist/shared/src/containers/Views/hooks/useSelectedView.cjs.js.map +1 -1
  709. package/dist/shared/src/containers/Views/hooks/useSelectedView.es.js +3 -2
  710. package/dist/shared/src/containers/Views/hooks/useSelectedView.es.js.map +1 -1
  711. package/dist/shared/src/containers/Views/hooks/useViewsMutations.cjs.js +1 -1
  712. package/dist/shared/src/containers/Views/hooks/useViewsMutations.cjs.js.map +1 -1
  713. package/dist/shared/src/containers/Views/hooks/useViewsMutations.es.js +3 -2
  714. package/dist/shared/src/containers/Views/hooks/useViewsMutations.es.js.map +1 -1
  715. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js +1 -1
  716. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js.map +1 -1
  717. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js +63 -44
  718. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js.map +1 -1
  719. package/dist/shared/src/context/AddonProjectContext.cjs.js +1 -1
  720. package/dist/shared/src/context/AddonProjectContext.cjs.js.map +1 -1
  721. package/dist/shared/src/context/AddonProjectContext.es.js +5 -4
  722. package/dist/shared/src/context/AddonProjectContext.es.js.map +1 -1
  723. package/dist/shared/src/context/DetailsPanelContext.cjs.js +1 -1
  724. package/dist/shared/src/context/DetailsPanelContext.cjs.js.map +1 -1
  725. package/dist/shared/src/context/DetailsPanelContext.es.js +5 -4
  726. package/dist/shared/src/context/DetailsPanelContext.es.js.map +1 -1
  727. package/dist/shared/src/context/GlobalContext.cjs.js +1 -1
  728. package/dist/shared/src/context/GlobalContext.cjs.js.map +1 -1
  729. package/dist/shared/src/context/GlobalContext.es.js +5 -4
  730. package/dist/shared/src/context/GlobalContext.es.js.map +1 -1
  731. package/dist/shared/src/context/PowerpackContext.cjs.js +1 -1
  732. package/dist/shared/src/context/PowerpackContext.cjs.js.map +1 -1
  733. package/dist/shared/src/context/PowerpackContext.es.js +12 -11
  734. package/dist/shared/src/context/PowerpackContext.es.js.map +1 -1
  735. package/dist/shared/src/context/ProjectContext.cjs.js +1 -1
  736. package/dist/shared/src/context/ProjectContext.cjs.js.map +1 -1
  737. package/dist/shared/src/context/ProjectContext.es.js +5 -4
  738. package/dist/shared/src/context/ProjectContext.es.js.map +1 -1
  739. package/dist/shared/src/context/ProjectFoldersContext.cjs.js +1 -1
  740. package/dist/shared/src/context/ProjectFoldersContext.cjs.js.map +1 -1
  741. package/dist/shared/src/context/ProjectFoldersContext.es.js +5 -4
  742. package/dist/shared/src/context/ProjectFoldersContext.es.js.map +1 -1
  743. package/dist/shared/src/context/RemoteModulesContext.cjs.js +1 -1
  744. package/dist/shared/src/context/RemoteModulesContext.cjs.js.map +1 -1
  745. package/dist/shared/src/context/RemoteModulesContext.es.js +5 -4
  746. package/dist/shared/src/context/RemoteModulesContext.es.js.map +1 -1
  747. package/dist/shared/src/context/SubtasksModulesContext.cjs.js +1 -1
  748. package/dist/shared/src/context/SubtasksModulesContext.cjs.js.map +1 -1
  749. package/dist/shared/src/context/SubtasksModulesContext.es.js +5 -4
  750. package/dist/shared/src/context/SubtasksModulesContext.es.js.map +1 -1
  751. package/dist/shared/src/context/UriContext.cjs.js +1 -1
  752. package/dist/shared/src/context/UriContext.cjs.js.map +1 -1
  753. package/dist/shared/src/context/UriContext.es.js +6 -5
  754. package/dist/shared/src/context/UriContext.es.js.map +1 -1
  755. package/dist/shared/src/context/WebsocketContext.cjs.js +1 -1
  756. package/dist/shared/src/context/WebsocketContext.cjs.js.map +1 -1
  757. package/dist/shared/src/context/WebsocketContext.es.js +5 -4
  758. package/dist/shared/src/context/WebsocketContext.es.js.map +1 -1
  759. package/dist/shared/src/hooks/useActionTriggers.cjs.js +1 -1
  760. package/dist/shared/src/hooks/useActionTriggers.cjs.js.map +1 -1
  761. package/dist/shared/src/hooks/useActionTriggers.es.js +3 -2
  762. package/dist/shared/src/hooks/useActionTriggers.es.js.map +1 -1
  763. package/dist/shared/src/hooks/useEntityUpdate.cjs.js +1 -1
  764. package/dist/shared/src/hooks/useEntityUpdate.cjs.js.map +1 -1
  765. package/dist/shared/src/hooks/useEntityUpdate.es.js +3 -2
  766. package/dist/shared/src/hooks/useEntityUpdate.es.js.map +1 -1
  767. package/dist/shared/src/hooks/useGetEntityGroups.cjs.js +1 -1
  768. package/dist/shared/src/hooks/useGetEntityGroups.cjs.js.map +1 -1
  769. package/dist/shared/src/hooks/useGetEntityGroups.es.js +3 -2
  770. package/dist/shared/src/hooks/useGetEntityGroups.es.js.map +1 -1
  771. package/dist/shared/src/hooks/useGroupByRemoteModules.cjs.js +1 -1
  772. package/dist/shared/src/hooks/useGroupByRemoteModules.cjs.js.map +1 -1
  773. package/dist/shared/src/hooks/useGroupByRemoteModules.es.js +3 -2
  774. package/dist/shared/src/hooks/useGroupByRemoteModules.es.js.map +1 -1
  775. package/dist/shared/src/hooks/useScopedStatuses.cjs.js +1 -1
  776. package/dist/shared/src/hooks/useScopedStatuses.cjs.js.map +1 -1
  777. package/dist/shared/src/hooks/useScopedStatuses.es.js +5 -4
  778. package/dist/shared/src/hooks/useScopedStatuses.es.js.map +1 -1
  779. package/dist/shared/src/hooks/useScopedTypes.cjs.js +1 -1
  780. package/dist/shared/src/hooks/useScopedTypes.cjs.js.map +1 -1
  781. package/dist/shared/src/hooks/useScopedTypes.es.js +3 -2
  782. package/dist/shared/src/hooks/useScopedTypes.es.js.map +1 -1
  783. package/dist/shared/src/hooks/useUserProjectConfig.cjs.js +1 -1
  784. package/dist/shared/src/hooks/useUserProjectConfig.cjs.js.map +1 -1
  785. package/dist/shared/src/hooks/useUserProjectConfig.es.js +3 -2
  786. package/dist/shared/src/hooks/useUserProjectConfig.es.js.map +1 -1
  787. package/dist/types/api/generated/dataImport.d.ts +117 -0
  788. package/dist/types/api/generated/graphql.d.ts +66 -61
  789. package/dist/types/api/generated/graphqlLinks.d.ts +33 -32
  790. package/dist/types/api/generated/index.d.ts +1 -0
  791. package/dist/types/api/generated/projects.d.ts +50 -25
  792. package/dist/types/api/generated/views.d.ts +2 -0
  793. package/dist/types/api/queries/project/getProject.d.ts +3 -0
  794. package/dist/types/components/ReviewableProgressCard/ReviewableProgressCard.d.ts +1 -1
  795. package/dist/types/components/ReviewablesSelector/Card.d.ts +1 -1
  796. package/dist/types/components/ReviewablesSelector/ReviewablesSelector.d.ts +1 -1
  797. package/dist/types/containers/ProjectTreeTable/hooks/useUpdateTableData.d.ts +1 -0
  798. package/dist/types/containers/ProjectTreeTable/types/overviewContext.d.ts +1 -1
  799. package/dist/types/containers/Slicer/hooks/useProjectAnatomySlices.d.ts +3 -1
  800. package/dist/types/containers/Views/ViewsButton/ViewsButton.d.ts +8 -1
  801. package/dist/types/containers/Views/ViewsDialogContainer/ViewFormDialogFallback.d.ts +1 -0
  802. package/dist/types/containers/Views/context/ViewsContext.d.ts +2 -0
  803. package/dist/types/containers/Views/hooks/pages/useOverviewViewSettings.d.ts +1 -0
  804. package/dist/types/containers/Views/hooks/useBuildViewMenuItems.d.ts +2 -1
  805. package/dist/types/containers/Views/utils/viewUpdateHelper.d.ts +2 -2
  806. package/package.json +1 -1
@@ -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 getBaseView: build.query<GetBaseViewApiResponse, GetBaseViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/base`,\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 | VersionsViewPostModel\n | GenericViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetBaseViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\nexport type GetBaseViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\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\n | VersionsViewModel\n | GenericViewModel\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 | VersionsViewPatchModel\n | GenericViewPatchModel\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 rowHeight?: number\n groupBy?: string\n groupSortByDesc?: boolean\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n folderFilter?: QueryFilter\n sliceType?: string\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 viewType?: 'overview'\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n sliceType?: string\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 viewType?: 'taskProgress'\n}\nexport type ListsSettings = {\n rowHeight?: number\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 viewType?: 'lists'\n}\nexport type ReviewsSettings = {\n rowHeight?: number\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 viewType?: 'reviews'\n}\nexport type VersionsSettings = {\n showProducts?: boolean\n rowHeight?: number\n showGrid?: boolean\n gridHeight?: number\n featuredVersionOrder?: string[]\n slicerType?: string\n groupBy?: string\n groupSortByDesc?: boolean\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type VersionsViewPostModel = {\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: VersionsSettings\n viewType?: 'versions'\n}\nexport type GenericViewPostModel = {\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: object\n viewType: string\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 VersionsViewModel = {\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: VersionsSettings\n access: object\n viewType?: 'versions'\n}\nexport type GenericViewModel = {\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: object\n access: object\n viewType: string\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n viewType?: 'overview'\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n viewType?: 'taskProgress'\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n viewType?: 'lists'\n}\nexport type ReviewsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ReviewsSettings\n viewType?: 'reviews'\n}\nexport type VersionsViewPatchModel = {\n label?: string\n owner?: string\n settings?: VersionsSettings\n viewType?: 'versions'\n}\nexport type GenericViewPatchModel = {\n label?: string\n owner?: string\n settings?: object\n viewType: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,EAAAA,IAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,UAAWA,EAAM,MAA6C,CAC5D,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ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A,EAAS,WAAA,CACzB,EACF,CACD,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 getBaseView: build.query<GetBaseViewApiResponse, GetBaseViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/base`,\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 | VersionsViewPostModel\n | GenericViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetBaseViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\nexport type GetBaseViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\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\n | VersionsViewModel\n | GenericViewModel\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 | VersionsViewPatchModel\n | GenericViewPatchModel\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 rowHeight?: number\n groupBy?: string\n groupSortByDesc?: boolean\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n folderFilter?: QueryFilter\n sliceType?: string\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 viewType?: 'overview'\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n sliceType?: string\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 viewType?: 'taskProgress'\n}\nexport type ListsSettings = {\n rowHeight?: number\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 viewType?: 'lists'\n}\nexport type ReviewsSettings = {\n rowHeight?: number\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n gridHeight?: number\n displayStyle?: 'cards' | 'table' | 'playlist'\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 viewType?: 'reviews'\n}\nexport type VersionsSettings = {\n showProducts?: boolean\n rowHeight?: number\n showGrid?: boolean\n gridHeight?: number\n featuredVersionOrder?: string[]\n slicerType?: string\n groupBy?: string\n groupSortByDesc?: boolean\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type VersionsViewPostModel = {\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: VersionsSettings\n viewType?: 'versions'\n}\nexport type GenericViewPostModel = {\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: object\n viewType: string\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 VersionsViewModel = {\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: VersionsSettings\n access: object\n viewType?: 'versions'\n}\nexport type GenericViewModel = {\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: object\n access: object\n viewType: string\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n viewType?: 'overview'\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n viewType?: 'taskProgress'\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n viewType?: 'lists'\n}\nexport type ReviewsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ReviewsSettings\n viewType?: 'reviews'\n}\nexport type VersionsViewPatchModel = {\n label?: string\n owner?: string\n settings?: VersionsSettings\n viewType?: 'versions'\n}\nexport type GenericViewPatchModel = {\n label?: string\n owner?: string\n settings?: object\n viewType: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":"yHACMA,EAAiBC,EAAAA,IAAI,gBAAgB,CACzC,UAAYC,IAAW,CACrB,UAAWA,EAAM,MAA6C,CAC5D,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,GACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CACzB,EACF,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,GACpC,OAAQ,OACR,KAAMA,EAAS,QACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CACzB,EACF,CACD,EACD,eAAgBD,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CACzB,EACF,CACD,EACD,YAAaD,EAAM,MAAiD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,QACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CACzB,EACF,CACD,EACD,eAAgBD,EAAM,MAAuD,CAC3E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,CACN,aAAcA,EAAS,WAAA,CACzB,EACF,CACD,EACD,eAAgBD,EAAM,SAA0D,CAC9E,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,WACpC,OAAQ,OACR,KAAMA,EAAS,2BACf,OAAQ,CACN,aAAcA,EAAS,WAAA,CACzB,EACF,CACD,EACD,QAASD,EAAM,MAAyC,CACtD,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,CACN,aAAcA,EAAS,WAAA,CACzB,EACF,CACD,EACD,WAAYD,EAAM,SAAkD,CAClE,MAAQC,IAAc,CACpB,IAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM,GACvD,OAAQ,SACR,OAAQ,CACN,aAAcA,EAAS,WAAA,CACzB,EACF,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,CACzB,EACF,CACD,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 getBaseView: build.query<GetBaseViewApiResponse, GetBaseViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/base`,\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 | VersionsViewPostModel\n | GenericViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetBaseViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\nexport type GetBaseViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\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\n | VersionsViewModel\n | GenericViewModel\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 | VersionsViewPatchModel\n | GenericViewPatchModel\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 rowHeight?: number\n groupBy?: string\n groupSortByDesc?: boolean\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n folderFilter?: QueryFilter\n sliceType?: string\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 viewType?: 'overview'\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n sliceType?: string\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 viewType?: 'taskProgress'\n}\nexport type ListsSettings = {\n rowHeight?: number\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 viewType?: 'lists'\n}\nexport type ReviewsSettings = {\n rowHeight?: number\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 viewType?: 'reviews'\n}\nexport type VersionsSettings = {\n showProducts?: boolean\n rowHeight?: number\n showGrid?: boolean\n gridHeight?: number\n featuredVersionOrder?: string[]\n slicerType?: string\n groupBy?: string\n groupSortByDesc?: boolean\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type VersionsViewPostModel = {\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: VersionsSettings\n viewType?: 'versions'\n}\nexport type GenericViewPostModel = {\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: object\n viewType: string\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 VersionsViewModel = {\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: VersionsSettings\n access: object\n viewType?: 'versions'\n}\nexport type GenericViewModel = {\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: object\n access: object\n viewType: string\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n viewType?: 'overview'\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n viewType?: 'taskProgress'\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n viewType?: 'lists'\n}\nexport type ReviewsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ReviewsSettings\n viewType?: 'reviews'\n}\nexport type VersionsViewPatchModel = {\n label?: string\n owner?: string\n settings?: VersionsSettings\n viewType?: 'versions'\n}\nexport type GenericViewPatchModel = {\n label?: string\n owner?: string\n settings?: object\n viewType: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACA,MAAMA,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,MACzB;AAAA,IACF,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,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,CACD;AAAA,IACD,aAAaD,EAAM,MAAiD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,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,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,CACD;AAAA,IACD,SAASD,EAAM,MAAyC;AAAA,MACtD,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM;AAAA,QACvD,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,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,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,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,MACzB;AAAA,IACF,CACD;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 getBaseView: build.query<GetBaseViewApiResponse, GetBaseViewApiArg>({\n query: (queryArg) => ({\n url: `/api/views/${queryArg.viewType}/base`,\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 | VersionsViewPostModel\n | GenericViewPostModel\n}\nexport type GetWorkingViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\nexport type GetWorkingViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetBaseViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\nexport type GetBaseViewApiArg = {\n viewType: string\n projectName?: string\n}\nexport type GetDefaultViewApiResponse = /** status 200 Successful Response */\n | OverviewViewModel\n | TaskProgressViewModel\n | ListsViewModel\n | ReviewsViewModel\n | VersionsViewModel\n | GenericViewModel\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\n | VersionsViewModel\n | GenericViewModel\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 | VersionsViewPatchModel\n | GenericViewPatchModel\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 rowHeight?: number\n groupBy?: string\n groupSortByDesc?: boolean\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n folderFilter?: QueryFilter\n sliceType?: string\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 viewType?: 'overview'\n}\nexport type TaskProgressSettings = {\n filter?: QueryFilter\n sliceType?: string\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 viewType?: 'taskProgress'\n}\nexport type ListsSettings = {\n rowHeight?: number\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 viewType?: 'lists'\n}\nexport type ReviewsSettings = {\n rowHeight?: number\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n gridHeight?: number\n displayStyle?: 'cards' | 'table' | 'playlist'\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 viewType?: 'reviews'\n}\nexport type VersionsSettings = {\n showProducts?: boolean\n rowHeight?: number\n showGrid?: boolean\n gridHeight?: number\n featuredVersionOrder?: string[]\n slicerType?: string\n groupBy?: string\n groupSortByDesc?: boolean\n showEmptyGroups?: boolean\n sortBy?: string\n sortDesc?: boolean\n filter?: QueryFilter\n columns?: ColumnItemModel[]\n}\nexport type VersionsViewPostModel = {\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: VersionsSettings\n viewType?: 'versions'\n}\nexport type GenericViewPostModel = {\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: object\n viewType: string\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 VersionsViewModel = {\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: VersionsSettings\n access: object\n viewType?: 'versions'\n}\nexport type GenericViewModel = {\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: object\n access: object\n viewType: string\n}\nexport type SetDefaultViewRequestModel = {\n viewId: string\n}\nexport type OverviewViewPatchModel = {\n label?: string\n owner?: string\n settings?: OverviewSettings\n viewType?: 'overview'\n}\nexport type TaskProgressViewPatchModel = {\n label?: string\n owner?: string\n settings?: TaskProgressSettings\n viewType?: 'taskProgress'\n}\nexport type ListsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ListsSettings\n viewType?: 'lists'\n}\nexport type ReviewsViewPatchModel = {\n label?: string\n owner?: string\n settings?: ReviewsSettings\n viewType?: 'reviews'\n}\nexport type VersionsViewPatchModel = {\n label?: string\n owner?: string\n settings?: VersionsSettings\n viewType?: 'versions'\n}\nexport type GenericViewPatchModel = {\n label?: string\n owner?: string\n settings?: object\n viewType: string\n}\n"],"names":["injectedRtkApi","api","build","queryArg"],"mappings":";AACA,MAAMA,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,MACzB;AAAA,IACF,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,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,CACD;AAAA,IACD,aAAaD,EAAM,MAAiD;AAAA,MAClE,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,CACD;AAAA,IACD,gBAAgBD,EAAM,MAAuD;AAAA,MAC3E,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ;AAAA,QACpC,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,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,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,CACD;AAAA,IACD,SAASD,EAAM,MAAyC;AAAA,MACtD,OAAO,CAACC,OAAc;AAAA,QACpB,KAAK,cAAcA,EAAS,QAAQ,IAAIA,EAAS,MAAM;AAAA,QACvD,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,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,QAAQ;AAAA,UACN,cAAcA,EAAS;AAAA,QAAA;AAAA,MACzB;AAAA,IACF,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,MACzB;AAAA,IACF,CACD;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../base/client.cjs.js");require("../../generated/graphql.cjs.js");require("../../generated/graphqlLinks.cjs.js");require("../../generated/access.cjs.js");const n=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/projectFolders.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 q=n.api.enhanceEndpoints({endpoints:{executeAction:{},listAvailableActionsForContext:{transformErrorResponse:t=>t.data?.detail||"Unknown error"}}}),u=q.injectEndpoints({endpoints:t=>({getActionsFromContext:t.query({queryFn:async(r,{dispatch:i})=>{const e=await i(n.api.endpoints.listAvailableActionsForContext.initiate(r));return e.error?{error:e.error}:{data:e.data}},providesTags:(r,i,e)=>{const a=[{type:"actions",id:"LIST"}],s=e.actionContext.entityIds?.map(o=>({type:"actions",id:o}))||[],c=r?.actions?.map(o=>({type:"actions",id:o.identifier}))||[];return[...a,...s,...c]}}),getActionConfig:t.query({queryFn:async(r,{dispatch:i})=>{const e=await i(n.api.endpoints.configureAction.initiate(r));return e.error?{error:e.error}:{data:e.data}},providesTags:[{type:"actionConfig",id:"LIST"}]}),setActionConfig:t.mutation({queryFn:async(r,{dispatch:i})=>{const e=await i(n.api.endpoints.configureAction.initiate(r));return e.error?{error:e.error}:{data:e.data}},invalidatesTags:[{type:"actionConfig",id:"LIST"}]})})}),{useGetActionsFromContextQuery:d,useLazyGetActionsFromContextQuery:p,useExecuteActionMutation:y,useGetActionConfigQuery:A,useSetActionConfigMutation:g}=u;exports.actionsQueries=u;exports.useExecuteActionMutation=y;exports.useGetActionConfigQuery=A;exports.useGetActionsFromContextQuery=d;exports.useLazyGetActionsFromContextQuery=p;exports.useSetActionConfigMutation=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../base/client.cjs.js");require("../../generated/graphql.cjs.js");require("../../generated/graphqlLinks.cjs.js");require("../../generated/access.cjs.js");const n=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/dataImport.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/projectFolders.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 q=n.api.enhanceEndpoints({endpoints:{executeAction:{},listAvailableActionsForContext:{transformErrorResponse:t=>t.data?.detail||"Unknown error"}}}),u=q.injectEndpoints({endpoints:t=>({getActionsFromContext:t.query({queryFn:async(r,{dispatch:i})=>{const e=await i(n.api.endpoints.listAvailableActionsForContext.initiate(r));return e.error?{error:e.error}:{data:e.data}},providesTags:(r,i,e)=>{const a=[{type:"actions",id:"LIST"}],s=e.actionContext.entityIds?.map(o=>({type:"actions",id:o}))||[],c=r?.actions?.map(o=>({type:"actions",id:o.identifier}))||[];return[...a,...s,...c]}}),getActionConfig:t.query({queryFn:async(r,{dispatch:i})=>{const e=await i(n.api.endpoints.configureAction.initiate(r));return e.error?{error:e.error}:{data:e.data}},providesTags:[{type:"actionConfig",id:"LIST"}]}),setActionConfig:t.mutation({queryFn:async(r,{dispatch:i})=>{const e=await i(n.api.endpoints.configureAction.initiate(r));return e.error?{error:e.error}:{data:e.data}},invalidatesTags:[{type:"actionConfig",id:"LIST"}]})})}),{useGetActionsFromContextQuery:d,useLazyGetActionsFromContextQuery:p,useExecuteActionMutation:y,useGetActionConfigQuery:A,useSetActionConfigMutation:g}=u;exports.actionsQueries=u;exports.useExecuteActionMutation=y;exports.useGetActionConfigQuery=A;exports.useGetActionsFromContextQuery=d;exports.useLazyGetActionsFromContextQuery=p;exports.useSetActionConfigMutation=g;
2
2
  //# sourceMappingURL=getActions.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getActions.cjs.js","sources":["../../../../../../src/api/queries/actions/getActions.ts"],"sourcesContent":["import {\n actionsApi,\n ConfigureActionApiArg,\n ConfigureActionApiResponse,\n ListAvailableActionsForContextApiArg,\n ListAvailableActionsForContextApiResponse,\n} from '@shared/api/generated'\nimport { FetchBaseQueryError } from '@reduxjs/toolkit/query'\n\nconst enhancedApi = actionsApi.enhanceEndpoints({\n endpoints: {\n executeAction: {},\n listAvailableActionsForContext: {\n transformErrorResponse: (error: any) => error.data?.detail || 'Unknown error',\n },\n },\n})\n\nconst injectedActionsApi = enhancedApi.injectEndpoints({\n endpoints: (build) => ({\n getActionsFromContext: build.query<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(\n actionsApi.endpoints.listAvailableActionsForContext.initiate(args),\n )\n\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n\n return { data: res.data }\n },\n providesTags: (result, _error, args) => {\n const baseTags = [{ type: 'actions', id: 'LIST' }]\n const argsTags = args.actionContext.entityIds?.map((id) => ({ type: 'actions', id })) || []\n const actionTags =\n result?.actions?.map((action) => ({ type: 'actions', id: action.identifier })) || []\n return [...baseTags, ...argsTags, ...actionTags]\n },\n }),\n\n // Action configuration\n\n getActionConfig: build.query<ConfigureActionApiResponse, ConfigureActionApiArg>({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(actionsApi.endpoints.configureAction.initiate(args))\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n return { data: res.data }\n },\n\n providesTags: [{ type: 'actionConfig', id: 'LIST' }],\n }),\n\n setActionConfig: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(actionsApi.endpoints.configureAction.initiate(args))\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n return { data: res.data }\n },\n invalidatesTags: [{ type: 'actionConfig', id: 'LIST' }],\n }),\n\n // End of endpoints\n }),\n})\n\nexport const {\n useGetActionsFromContextQuery,\n useLazyGetActionsFromContextQuery,\n useExecuteActionMutation,\n useGetActionConfigQuery,\n useSetActionConfigMutation,\n} = injectedActionsApi\nexport { injectedActionsApi as actionsQueries }\n"],"names":["enhancedApi","actionsApi","error","injectedActionsApi","build","args","dispatch","res","result","_error","baseTags","argsTags","id","actionTags","action","useGetActionsFromContextQuery","useLazyGetActionsFromContextQuery","useExecuteActionMutation","useGetActionConfigQuery","useSetActionConfigMutation"],"mappings":"uuDASA,MAAMA,EAAcC,EAAAA,IAAW,iBAAiB,CAC9C,UAAW,CACT,cAAe,CAAA,EACf,+BAAgC,CAC9B,uBAAyBC,GAAeA,EAAM,MAAM,QAAU,eAAA,CAChE,CAEJ,CAAC,EAEKC,EAAqBH,EAAY,gBAAgB,CACrD,UAAYI,IAAW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CACX,8BAAAQ,EACA,kCAAAC,EACA,yBAAAC,EACA,wBAAAC,EACA,2BAAAC,CACF,EAAIhB"}
1
+ {"version":3,"file":"getActions.cjs.js","sources":["../../../../../../src/api/queries/actions/getActions.ts"],"sourcesContent":["import {\n actionsApi,\n ConfigureActionApiArg,\n ConfigureActionApiResponse,\n ListAvailableActionsForContextApiArg,\n ListAvailableActionsForContextApiResponse,\n} from '@shared/api/generated'\nimport { FetchBaseQueryError } from '@reduxjs/toolkit/query'\n\nconst enhancedApi = actionsApi.enhanceEndpoints({\n endpoints: {\n executeAction: {},\n listAvailableActionsForContext: {\n transformErrorResponse: (error: any) => error.data?.detail || 'Unknown error',\n },\n },\n})\n\nconst injectedActionsApi = enhancedApi.injectEndpoints({\n endpoints: (build) => ({\n getActionsFromContext: build.query<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(\n actionsApi.endpoints.listAvailableActionsForContext.initiate(args),\n )\n\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n\n return { data: res.data }\n },\n providesTags: (result, _error, args) => {\n const baseTags = [{ type: 'actions', id: 'LIST' }]\n const argsTags = args.actionContext.entityIds?.map((id) => ({ type: 'actions', id })) || []\n const actionTags =\n result?.actions?.map((action) => ({ type: 'actions', id: action.identifier })) || []\n return [...baseTags, ...argsTags, ...actionTags]\n },\n }),\n\n // Action configuration\n\n getActionConfig: build.query<ConfigureActionApiResponse, ConfigureActionApiArg>({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(actionsApi.endpoints.configureAction.initiate(args))\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n return { data: res.data }\n },\n\n providesTags: [{ type: 'actionConfig', id: 'LIST' }],\n }),\n\n setActionConfig: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(actionsApi.endpoints.configureAction.initiate(args))\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n return { data: res.data }\n },\n invalidatesTags: [{ type: 'actionConfig', id: 'LIST' }],\n }),\n\n // End of endpoints\n }),\n})\n\nexport const {\n useGetActionsFromContextQuery,\n useLazyGetActionsFromContextQuery,\n useExecuteActionMutation,\n useGetActionConfigQuery,\n useSetActionConfigMutation,\n} = injectedActionsApi\nexport { injectedActionsApi as actionsQueries }\n"],"names":["enhancedApi","actionsApi","error","injectedActionsApi","build","args","dispatch","res","result","_error","baseTags","argsTags","id","actionTags","action","useGetActionsFromContextQuery","useLazyGetActionsFromContextQuery","useExecuteActionMutation","useGetActionConfigQuery","useSetActionConfigMutation"],"mappings":"oxDASA,MAAMA,EAAcC,EAAAA,IAAW,iBAAiB,CAC9C,UAAW,CACT,cAAe,CAAA,EACf,+BAAgC,CAC9B,uBAAyBC,GAAeA,EAAM,MAAM,QAAU,eAAA,CAChE,CAEJ,CAAC,EAEKC,EAAqBH,EAAY,gBAAgB,CACrD,UAAYI,IAAW,CACrB,sBAAuBA,EAAM,MAG3B,CACA,QAAS,MAAOC,EAAM,CAAE,SAAAC,KAAe,CAErC,MAAMC,EAAM,MAAMD,EAChBL,EAAAA,IAAW,UAAU,+BAA+B,SAASI,CAAI,CAAA,EAGnE,OAAIE,EAAI,MACC,CAAE,MAAOA,EAAI,KAAA,EAGf,CAAE,KAAMA,EAAI,IAAA,CACrB,EACA,aAAc,CAACC,EAAQC,EAAQJ,IAAS,CACtC,MAAMK,EAAW,CAAC,CAAE,KAAM,UAAW,GAAI,OAAQ,EAC3CC,EAAWN,EAAK,cAAc,WAAW,IAAKO,IAAQ,CAAE,KAAM,UAAW,GAAAA,CAAA,EAAK,GAAK,CAAA,EACnFC,EACJL,GAAQ,SAAS,IAAKM,IAAY,CAAE,KAAM,UAAW,GAAIA,EAAO,UAAA,EAAa,GAAK,CAAA,EACpF,MAAO,CAAC,GAAGJ,EAAU,GAAGC,EAAU,GAAGE,CAAU,CACjD,CAAA,CACD,EAID,gBAAiBT,EAAM,MAAyD,CAC9E,QAAS,MAAOC,EAAM,CAAE,SAAAC,KAAe,CAErC,MAAMC,EAAM,MAAMD,EAASL,EAAAA,IAAW,UAAU,gBAAgB,SAASI,CAAI,CAAC,EAC9E,OAAIE,EAAI,MACC,CAAE,MAAOA,EAAI,KAAA,EAEf,CAAE,KAAMA,EAAI,IAAA,CACrB,EAEA,aAAc,CAAC,CAAE,KAAM,eAAgB,GAAI,OAAQ,CAAA,CACpD,EAED,gBAAiBH,EAAM,SAA4D,CACjF,QAAS,MAAOC,EAAM,CAAE,SAAAC,KAAe,CAErC,MAAMC,EAAM,MAAMD,EAASL,EAAAA,IAAW,UAAU,gBAAgB,SAASI,CAAI,CAAC,EAC9E,OAAIE,EAAI,MACC,CAAE,MAAOA,EAAI,KAAA,EAEf,CAAE,KAAMA,EAAI,IAAA,CACrB,EACA,gBAAiB,CAAC,CAAE,KAAM,eAAgB,GAAI,OAAQ,CAAA,CACvD,CAAA,EAIL,CAAC,EAEY,CACX,8BAAAQ,EACA,kCAAAC,EACA,yBAAAC,EACA,wBAAAC,EACA,2BAAAC,CACF,EAAIhB"}
@@ -10,6 +10,7 @@ import "../../generated/attributes.es.js";
10
10
  import "../../generated/authentication.es.js";
11
11
  import "../../generated/bundles.es.js";
12
12
  import "../../generated/configuration.es.js";
13
+ import "../../generated/dataImport.es.js";
13
14
  import "../../generated/desktop.es.js";
14
15
  import "../../generated/entityLists.es.js";
15
16
  import "../../generated/events.es.js";
@@ -76,18 +77,18 @@ const m = n.enhanceEndpoints({
76
77
  // End of endpoints
77
78
  })
78
79
  }), {
79
- useGetActionsFromContextQuery: X,
80
- useLazyGetActionsFromContextQuery: Y,
81
- useExecuteActionMutation: Z,
82
- useGetActionConfigQuery: $,
83
- useSetActionConfigMutation: tt
80
+ useGetActionsFromContextQuery: Y,
81
+ useLazyGetActionsFromContextQuery: Z,
82
+ useExecuteActionMutation: $,
83
+ useGetActionConfigQuery: tt,
84
+ useSetActionConfigMutation: ot
84
85
  } = c;
85
86
  export {
86
87
  c as actionsQueries,
87
- Z as useExecuteActionMutation,
88
- $ as useGetActionConfigQuery,
89
- X as useGetActionsFromContextQuery,
90
- Y as useLazyGetActionsFromContextQuery,
91
- tt as useSetActionConfigMutation
88
+ $ as useExecuteActionMutation,
89
+ tt as useGetActionConfigQuery,
90
+ Y as useGetActionsFromContextQuery,
91
+ Z as useLazyGetActionsFromContextQuery,
92
+ ot as useSetActionConfigMutation
92
93
  };
93
94
  //# sourceMappingURL=getActions.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getActions.es.js","sources":["../../../../../../src/api/queries/actions/getActions.ts"],"sourcesContent":["import {\n actionsApi,\n ConfigureActionApiArg,\n ConfigureActionApiResponse,\n ListAvailableActionsForContextApiArg,\n ListAvailableActionsForContextApiResponse,\n} from '@shared/api/generated'\nimport { FetchBaseQueryError } from '@reduxjs/toolkit/query'\n\nconst enhancedApi = actionsApi.enhanceEndpoints({\n endpoints: {\n executeAction: {},\n listAvailableActionsForContext: {\n transformErrorResponse: (error: any) => error.data?.detail || 'Unknown error',\n },\n },\n})\n\nconst injectedActionsApi = enhancedApi.injectEndpoints({\n endpoints: (build) => ({\n getActionsFromContext: build.query<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(\n actionsApi.endpoints.listAvailableActionsForContext.initiate(args),\n )\n\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n\n return { data: res.data }\n },\n providesTags: (result, _error, args) => {\n const baseTags = [{ type: 'actions', id: 'LIST' }]\n const argsTags = args.actionContext.entityIds?.map((id) => ({ type: 'actions', id })) || []\n const actionTags =\n result?.actions?.map((action) => ({ type: 'actions', id: action.identifier })) || []\n return [...baseTags, ...argsTags, ...actionTags]\n },\n }),\n\n // Action configuration\n\n getActionConfig: build.query<ConfigureActionApiResponse, ConfigureActionApiArg>({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(actionsApi.endpoints.configureAction.initiate(args))\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n return { data: res.data }\n },\n\n providesTags: [{ type: 'actionConfig', id: 'LIST' }],\n }),\n\n setActionConfig: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(actionsApi.endpoints.configureAction.initiate(args))\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n return { data: res.data }\n },\n invalidatesTags: [{ type: 'actionConfig', id: 'LIST' }],\n }),\n\n // End of endpoints\n }),\n})\n\nexport const {\n useGetActionsFromContextQuery,\n useLazyGetActionsFromContextQuery,\n useExecuteActionMutation,\n useGetActionConfigQuery,\n useSetActionConfigMutation,\n} = injectedActionsApi\nexport { injectedActionsApi as actionsQueries }\n"],"names":["enhancedApi","actionsApi","error","injectedActionsApi","build","args","dispatch","res","result","_error","baseTags","argsTags","id","actionTags","action","useGetActionsFromContextQuery","useLazyGetActionsFromContextQuery","useExecuteActionMutation","useGetActionConfigQuery","useSetActionConfigMutation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAMA,IAAcC,EAAW,iBAAiB;AAAA,EAC9C,WAAW;AAAA,IACT,eAAe,CAAA;AAAA,IACf,gCAAgC;AAAA,MAC9B,wBAAwB,CAACC,MAAeA,EAAM,MAAM,UAAU;AAAA,IAAA;AAAA,EAChE;AAEJ,CAAC,GAEKC,IAAqBH,EAAY,gBAAgB;AAAA,EACrD,WAAW,CAACI,OAAW;AAAA,IACrB,uBAAuBA,EAAM,MAG3B;AAAA,MACA,SAAS,OAAOC,GAAM,EAAE,UAAAC,QAAe;AAErC,cAAMC,IAAM,MAAMD;AAAA,UAChBL,EAAW,UAAU,+BAA+B,SAASI,CAAI;AA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A,EACA,0BAAAC;AAAA,EACA,yBAAAC;AAAA,EACA,4BAAAC;AACF,IAAIhB;"}
1
+ {"version":3,"file":"getActions.es.js","sources":["../../../../../../src/api/queries/actions/getActions.ts"],"sourcesContent":["import {\n actionsApi,\n ConfigureActionApiArg,\n ConfigureActionApiResponse,\n ListAvailableActionsForContextApiArg,\n ListAvailableActionsForContextApiResponse,\n} from '@shared/api/generated'\nimport { FetchBaseQueryError } from '@reduxjs/toolkit/query'\n\nconst enhancedApi = actionsApi.enhanceEndpoints({\n endpoints: {\n executeAction: {},\n listAvailableActionsForContext: {\n transformErrorResponse: (error: any) => error.data?.detail || 'Unknown error',\n },\n },\n})\n\nconst injectedActionsApi = enhancedApi.injectEndpoints({\n endpoints: (build) => ({\n getActionsFromContext: build.query<\n ListAvailableActionsForContextApiResponse,\n ListAvailableActionsForContextApiArg\n >({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(\n actionsApi.endpoints.listAvailableActionsForContext.initiate(args),\n )\n\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n\n return { data: res.data }\n },\n providesTags: (result, _error, args) => {\n const baseTags = [{ type: 'actions', id: 'LIST' }]\n const argsTags = args.actionContext.entityIds?.map((id) => ({ type: 'actions', id })) || []\n const actionTags =\n result?.actions?.map((action) => ({ type: 'actions', id: action.identifier })) || []\n return [...baseTags, ...argsTags, ...actionTags]\n },\n }),\n\n // Action configuration\n\n getActionConfig: build.query<ConfigureActionApiResponse, ConfigureActionApiArg>({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(actionsApi.endpoints.configureAction.initiate(args))\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n return { data: res.data }\n },\n\n providesTags: [{ type: 'actionConfig', id: 'LIST' }],\n }),\n\n setActionConfig: build.mutation<ConfigureActionApiResponse, ConfigureActionApiArg>({\n queryFn: async (args, { dispatch }) => {\n // get the data from the rest actionsApi\n const res = await dispatch(actionsApi.endpoints.configureAction.initiate(args))\n if (res.error) {\n return { error: res.error as FetchBaseQueryError }\n }\n return { data: res.data }\n },\n invalidatesTags: [{ type: 'actionConfig', id: 'LIST' }],\n }),\n\n // End of endpoints\n }),\n})\n\nexport const {\n useGetActionsFromContextQuery,\n useLazyGetActionsFromContextQuery,\n useExecuteActionMutation,\n useGetActionConfigQuery,\n useSetActionConfigMutation,\n} = injectedActionsApi\nexport { injectedActionsApi as actionsQueries }\n"],"names":["enhancedApi","actionsApi","error","injectedActionsApi","build","args","dispatch","res","result","_error","baseTags","argsTags","id","actionTags","action","useGetActionsFromContextQuery","useLazyGetActionsFromContextQuery","useExecuteActionMutation","useGetActionConfigQuery","useSetActionConfigMutation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAMA,IAAcC,EAAW,iBAAiB;AAAA,EAC9C,WAAW;AAAA,IACT,eAAe,CAAA;AAAA,IACf,gCAAgC;AAAA,MAC9B,wBAAwB,CAACC,MAAeA,EAAM,MAAM,UAAU;AAAA,IAAA;AAAA,EAChE;AAEJ,CAAC,GAEKC,IAAqBH,EAAY,gBAAgB;AAAA,EACrD,WAAW,CAACI,OAAW;AAAA,IACrB,uBAAuBA,EAAM,MAG3B;AAAA,MACA,SAAS,OAAOC,GAAM,EAAE,UAAAC,QAAe;AAErC,cAAMC,IAAM,MAAMD;AAAA,UAChBL,EAAW,UAAU,+BAA+B,SAASI,CAAI;AAAA,QAAA;AAGnE,eAAIE,EAAI,QACC,EAAE,OAAOA,EAAI,MAAA,IAGf,EAAE,MAAMA,EAAI,KAAA;AAAA,MACrB;AAAA,MACA,cAAc,CAACC,GAAQC,GAAQJ,MAAS;AACtC,cAAMK,IAAW,CAAC,EAAE,MAAM,WAAW,IAAI,QAAQ,GAC3CC,IAAWN,EAAK,cAAc,WAAW,IAAI,CAACO,OAAQ,EAAE,MAAM,WAAW,IAAAA,EAAA,EAAK,KAAK,CAAA,GACnFC,IACJL,GAAQ,SAAS,IAAI,CAACM,OAAY,EAAE,MAAM,WAAW,IAAIA,EAAO,WAAA,EAAa,KAAK,CAAA;AACpF,eAAO,CAAC,GAAGJ,GAAU,GAAGC,GAAU,GAAGE,CAAU;AAAA,MACjD;AAAA,IAAA,CACD;AAAA;AAAA,IAID,iBAAiBT,EAAM,MAAyD;AAAA,MAC9E,SAAS,OAAOC,GAAM,EAAE,UAAAC,QAAe;AAErC,cAAMC,IAAM,MAAMD,EAASL,EAAW,UAAU,gBAAgB,SAASI,CAAI,CAAC;AAC9E,eAAIE,EAAI,QACC,EAAE,OAAOA,EAAI,MAAA,IAEf,EAAE,MAAMA,EAAI,KAAA;AAAA,MACrB;AAAA,MAEA,cAAc,CAAC,EAAE,MAAM,gBAAgB,IAAI,QAAQ;AAAA,IAAA,CACpD;AAAA,IAED,iBAAiBH,EAAM,SAA4D;AAAA,MACjF,SAAS,OAAOC,GAAM,EAAE,UAAAC,QAAe;AAErC,cAAMC,IAAM,MAAMD,EAASL,EAAW,UAAU,gBAAgB,SAASI,CAAI,CAAC;AAC9E,eAAIE,EAAI,QACC,EAAE,OAAOA,EAAI,MAAA,IAEf,EAAE,MAAMA,EAAI,KAAA;AAAA,MACrB;AAAA,MACA,iBAAiB,CAAC,EAAE,MAAM,gBAAgB,IAAI,QAAQ;AAAA,IAAA,CACvD;AAAA;AAAA,EAAA;AAIL,CAAC,GAEY;AAAA,EACX,+BAAAQ;AAAA,EACA,mCAAAC;AAAA,EACA,0BAAAC;AAAA,EACA,yBAAAC;AAAA,EACA,4BAAAC;AACF,IAAIhB;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../base/client.cjs.js");const q=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/projectFolders.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 o=require("./util/activitiesHelpers.cjs.js"),d=require("./activityQueries.cjs.js"),A=require("./util/activityRealtimeHandler.cjs.js"),c=q.api.enhanceEndpoints({endpoints:{GetActivities:{transformResponse:t=>o.transformActivityData(t.project.activities.edges,t.project.activities.pageInfo),providesTags:(t,r,{entityIds:i,activityTypes:e=[],filter:n})=>t?[...t.activities.map(s=>({type:"activity",id:s.activityId})),{type:"activity",id:"LIST"},...(Array.isArray(i)?i:[i]).map(s=>({type:"entityActivities",id:s})),{type:"entityActivities",id:"LIST"},...(Array.isArray(e)?e:[e])?.map(s=>({type:"entityActivities",id:s})),...(Array.isArray(i)?i:[i]).map(s=>({type:"entityActivities",id:s+"-"+n}))]:[{type:"activity",id:"LIST"}]},GetActivitiesById:{transformResponse:t=>o.transformActivityData(t.project.activities.edges,t.project.activities.pageInfo)},GetEntitiesChecklists:{transformResponse:t=>o.countChecklists(t),providesTags:(t,r,{entityIds:i})=>t?[{type:"activity",id:"LIST"},...t.ids.map(e=>({type:"activity",id:"checklist-"+e})),...(Array.isArray(i)?i:[i]).map(e=>({type:"entityActivities",id:"checklist-"+e}))]:[{type:"activity",id:"LIST"}]},GetActivityUsers:{transformResponse:t=>t.users.edges.map(r=>r.node),providesTags:t=>t?.length?[{type:"user",id:"LIST"},...t.map(({name:r})=>({type:"user",id:r}))]:[{type:"user",id:"LIST"}]}}}),y=30,p=c.injectEndpoints({endpoints:t=>({getActivitiesInfinite:t.infiniteQuery({infiniteQueryOptions:{initialPageParam:{cursor:"",last:y},getNextPageParam:r=>{const i=r.pageInfo;if(!(!i.hasPreviousPage||!i.endCursor))return{cursor:i.endCursor,last:y}}},queryFn:async({queryArg:r,pageParam:i},e)=>{try{const{filter:n,...s}=r,a={...s,before:i?.cursor,last:i?.last},u=await e.dispatch(c.endpoints.GetActivities.initiate(a,{forceRefetch:!0}));if(u.error)throw u.error;const v={activities:[],pageInfo:{hasNextPage:!1,endCursor:null,startCursor:null,hasPreviousPage:!1}};return{data:u.data||v}}catch(n){return console.error("Error in getActivitiesInfinite queryFn:",n),{error:{status:"FETCH_ERROR",error:n.message}}}},async onCacheEntryAdded(r,{updateCachedData:i,cacheDataLoaded:e,cacheEntryRemoved:n,dispatch:s,getCacheEntry:a}){await A.handleActivityRealtimeUpdates(r,{updateCachedData:i,cacheDataLoaded:e,cacheEntryRemoved:n,dispatch:s,getCacheEntry:a})},providesTags:(r,i,{entityIds:e,activityTypes:n,filter:s})=>r?[...r.pages.flatMap(a=>a.activities).map(a=>({type:"activity",id:a.activityId})),{type:"activity",id:"LIST"},...(Array.isArray(e)?e:[e]).filter(Boolean).map(a=>({type:"entityActivities",id:a})),{type:"entityActivities",id:"LIST"},...(Array.isArray(n)?n:[n])?.filter(Boolean).map(a=>({type:"entityActivities",id:a})),...(Array.isArray(e)?e:[e]).filter(Boolean).map(a=>({type:"entityActivities",id:`${a}-${typeof s=="string"?s:JSON.stringify(s)}`}))]:[{type:"activity",id:"LIST"}]}),getEntityTooltip:t.query({query:({projectName:r,entityId:i,entityType:e})=>({url:"/graphql",method:"POST",body:{query:d.ENTITY_TOOLTIP(e),variables:{projectName:r,entityId:i}}}),transformResponse:(r,i,{entityType:e})=>o.transformTooltipData(r?.data?.project,e),providesTags:(r,i,{entityType:e})=>o.taskProvideTags([r],"task",e)})}),overrideExisting:!0}),{useGetEntityTooltipQuery:l,useLazyGetActivitiesByIdQuery:g,useGetEntitiesChecklistsQuery:f,useGetActivitiesInfiniteInfiniteQuery:m,useGetActivityUsersQuery:T}=p;exports.getActivitiesGQLApi=p;exports.useGetActivitiesInfiniteInfiniteQuery=m;exports.useGetActivityUsersQuery=T;exports.useGetEntitiesChecklistsQuery=f;exports.useGetEntityTooltipQuery=l;exports.useLazyGetActivitiesByIdQuery=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../base/client.cjs.js");const q=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/dataImport.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/projectFolders.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 u=require("./util/activitiesHelpers.cjs.js"),d=require("./activityQueries.cjs.js"),A=require("./util/activityRealtimeHandler.cjs.js"),c=q.api.enhanceEndpoints({endpoints:{GetActivities:{transformResponse:t=>u.transformActivityData(t.project.activities.edges,t.project.activities.pageInfo),providesTags:(t,r,{entityIds:i,activityTypes:e=[],filter:n})=>t?[...t.activities.map(s=>({type:"activity",id:s.activityId})),{type:"activity",id:"LIST"},...(Array.isArray(i)?i:[i]).map(s=>({type:"entityActivities",id:s})),{type:"entityActivities",id:"LIST"},...(Array.isArray(e)?e:[e])?.map(s=>({type:"entityActivities",id:s})),...(Array.isArray(i)?i:[i]).map(s=>({type:"entityActivities",id:s+"-"+n}))]:[{type:"activity",id:"LIST"}]},GetActivitiesById:{transformResponse:t=>u.transformActivityData(t.project.activities.edges,t.project.activities.pageInfo)},GetEntitiesChecklists:{transformResponse:t=>u.countChecklists(t),providesTags:(t,r,{entityIds:i})=>t?[{type:"activity",id:"LIST"},...t.ids.map(e=>({type:"activity",id:"checklist-"+e})),...(Array.isArray(i)?i:[i]).map(e=>({type:"entityActivities",id:"checklist-"+e}))]:[{type:"activity",id:"LIST"}]},GetActivityUsers:{transformResponse:t=>t.users.edges.map(r=>r.node),providesTags:t=>t?.length?[{type:"user",id:"LIST"},...t.map(({name:r})=>({type:"user",id:r}))]:[{type:"user",id:"LIST"}]}}}),y=30,p=c.injectEndpoints({endpoints:t=>({getActivitiesInfinite:t.infiniteQuery({infiniteQueryOptions:{initialPageParam:{cursor:"",last:y},getNextPageParam:r=>{const i=r.pageInfo;if(!(!i.hasPreviousPage||!i.endCursor))return{cursor:i.endCursor,last:y}}},queryFn:async({queryArg:r,pageParam:i},e)=>{try{const{filter:n,...s}=r,a={...s,before:i?.cursor,last:i?.last},o=await e.dispatch(c.endpoints.GetActivities.initiate(a,{forceRefetch:!0}));if(o.error)throw o.error;const v={activities:[],pageInfo:{hasNextPage:!1,endCursor:null,startCursor:null,hasPreviousPage:!1}};return{data:o.data||v}}catch(n){return console.error("Error in getActivitiesInfinite queryFn:",n),{error:{status:"FETCH_ERROR",error:n.message}}}},async onCacheEntryAdded(r,{updateCachedData:i,cacheDataLoaded:e,cacheEntryRemoved:n,dispatch:s,getCacheEntry:a}){await A.handleActivityRealtimeUpdates(r,{updateCachedData:i,cacheDataLoaded:e,cacheEntryRemoved:n,dispatch:s,getCacheEntry:a})},providesTags:(r,i,{entityIds:e,activityTypes:n,filter:s})=>r?[...r.pages.flatMap(a=>a.activities).map(a=>({type:"activity",id:a.activityId})),{type:"activity",id:"LIST"},...(Array.isArray(e)?e:[e]).filter(Boolean).map(a=>({type:"entityActivities",id:a})),{type:"entityActivities",id:"LIST"},...(Array.isArray(n)?n:[n])?.filter(Boolean).map(a=>({type:"entityActivities",id:a})),...(Array.isArray(e)?e:[e]).filter(Boolean).map(a=>({type:"entityActivities",id:`${a}-${typeof s=="string"?s:JSON.stringify(s)}`}))]:[{type:"activity",id:"LIST"}]}),getEntityTooltip:t.query({query:({projectName:r,entityId:i,entityType:e})=>({url:"/graphql",method:"POST",body:{query:d.ENTITY_TOOLTIP(e),variables:{projectName:r,entityId:i}}}),transformResponse:(r,i,{entityType:e})=>u.transformTooltipData(r?.data?.project,e),providesTags:(r,i,{entityType:e})=>u.taskProvideTags([r],"task",e)})}),overrideExisting:!0}),{useGetEntityTooltipQuery:l,useLazyGetActivitiesByIdQuery:g,useGetEntitiesChecklistsQuery:f,useGetActivitiesInfiniteInfiniteQuery:m,useGetActivityUsersQuery:T}=p;exports.getActivitiesGQLApi=p;exports.useGetActivitiesInfiniteInfiniteQuery=m;exports.useGetActivityUsersQuery=T;exports.useGetEntitiesChecklistsQuery=f;exports.useGetEntityTooltipQuery=l;exports.useLazyGetActivitiesByIdQuery=g;
2
2
  //# sourceMappingURL=getActivities.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getActivities.cjs.js","sources":["../../../../../../src/api/queries/activities/getActivities.ts"],"sourcesContent":["import {\n gqlApi,\n GetActivitiesByIdQuery,\n GetActivitiesQuery,\n GetActivitiesQueryVariables,\n GetActivityUsersQuery,\n GetEntitiesChecklistsQuery,\n} from '@shared/api/generated'\nimport { taskProvideTags } from './util/activitiesHelpers'\nimport {\n ActivitiesResult,\n countChecklists,\n transformActivityData,\n transformTooltipData,\n} from './util/activitiesHelpers'\nimport { ENTITY_TOOLTIP, EntityTooltipQuery } from './activityQueries'\n\nimport {\n DefinitionsFromApi,\n FetchBaseQueryError,\n OverrideResultType,\n TagTypesFromApi,\n} from '@reduxjs/toolkit/query'\nimport { ChecklistCount } from './types'\nimport { handleActivityRealtimeUpdates } from './util/activityRealtimeHandler'\n\ntype ActivityUserNode = GetActivityUsersQuery['users']['edges'][0]['node']\n\ntype Definitions = DefinitionsFromApi<typeof gqlApi>\ntype TagTypes = TagTypesFromApi<typeof gqlApi>\n// update the definitions to include the new types\ntype UpdatedDefinitions = Omit<Definitions, 'GetActivitiesById'> & {\n GetActivitiesById: OverrideResultType<Definitions['GetActivitiesById'], ActivitiesResult>\n GetActivities: OverrideResultType<Definitions['GetActivities'], ActivitiesResult>\n GetEntitiesChecklists: OverrideResultType<Definitions['GetEntitiesChecklists'], ChecklistCount>\n GetActivityUsers: OverrideResultType<Definitions['GetActivityUsers'], ActivityUserNode[]>\n}\n\nconst enhanceActivitiesApi = gqlApi.enhanceEndpoints<TagTypes, UpdatedDefinitions>({\n endpoints: {\n // Only used by the infinite query below\n GetActivities: {\n transformResponse: (res: GetActivitiesQuery) =>\n transformActivityData(res.project.activities.edges, res.project.activities.pageInfo),\n // @ts-expect-error - filter is not an query arg\n providesTags: (result, _e, { entityIds, activityTypes = [], filter }) =>\n result\n ? [\n ...result.activities.map((a) => ({ type: 'activity', id: a.activityId })),\n { type: 'activity', id: 'LIST' },\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: id,\n })),\n { type: 'entityActivities', id: 'LIST' },\n ...(Array.isArray(activityTypes) ? activityTypes : [activityTypes])?.map((type) => ({\n type: 'entityActivities',\n id: type as string,\n })),\n // filter is used when a comment is made, to refetch the activities of other filters\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: id + '-' + filter,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n },\n GetActivitiesById: {\n transformResponse: (res: GetActivitiesByIdQuery) =>\n transformActivityData(res.project.activities.edges, res.project.activities.pageInfo),\n },\n GetEntitiesChecklists: {\n transformResponse: (res: GetEntitiesChecklistsQuery) => countChecklists(res),\n providesTags: (res, _error, { entityIds }) =>\n res\n ? [\n { type: 'activity', id: 'LIST' },\n ...res.ids.map((id) => ({ type: 'activity', id: 'checklist-' + id })),\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: 'checklist-' + id,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n },\n GetActivityUsers: {\n transformResponse: (res: GetActivityUsersQuery) => res.users.edges.map((edge) => edge.node),\n providesTags: (res) =>\n res?.length\n ? [{ type: 'user', id: 'LIST' }, ...res.map(({ name }) => ({ type: 'user', id: name }))]\n : [{ type: 'user', id: 'LIST' }],\n },\n },\n})\n\nconst ACTIVITIES_INFINITE_QUERY_COUNT = 30\n\nconst getActivitiesGQLApi = enhanceActivitiesApi.injectEndpoints({\n endpoints: (build) => ({\n getActivitiesInfinite: build.infiniteQuery<\n ActivitiesResult,\n Omit<GetActivitiesQueryVariables, 'last' | 'first' | 'cursor'> & { filter?: any },\n { cursor: string; first?: number; last?: number }\n >({\n infiniteQueryOptions: {\n initialPageParam: { cursor: '', last: ACTIVITIES_INFINITE_QUERY_COUNT },\n // Calculate the next page param based on current page response and params\n getNextPageParam: (lastPage) => {\n const pageInfo = lastPage.pageInfo\n const hasPreviousPage = pageInfo.hasPreviousPage\n\n if (!hasPreviousPage || !pageInfo.endCursor) return undefined\n\n return {\n cursor: pageInfo.endCursor,\n last: ACTIVITIES_INFINITE_QUERY_COUNT,\n }\n },\n },\n queryFn: async ({ queryArg, pageParam }, api) => {\n try {\n const { filter, ...args } = queryArg\n // Build the query parameters for GetActivities\n const queryParams: GetActivitiesQueryVariables = {\n ...args,\n before: pageParam?.cursor,\n last: pageParam?.last,\n }\n\n // Call the existing GetActivities endpoint\n const result = await api.dispatch(\n enhanceActivitiesApi.endpoints.GetActivities.initiate(queryParams, {\n forceRefetch: true,\n }),\n )\n\n if (result.error) throw result.error\n const fallback = {\n activities: [],\n pageInfo: {\n hasNextPage: false,\n endCursor: null,\n startCursor: null,\n hasPreviousPage: false,\n },\n }\n\n // Return the activities directly as required by the infinite query format\n return {\n data: result.data || fallback,\n }\n } catch (e: any) {\n console.error('Error in getActivitiesInfinite queryFn:', e)\n return { error: { status: 'FETCH_ERROR', error: e.message } as FetchBaseQueryError }\n }\n },\n async onCacheEntryAdded(\n queryArg,\n { updateCachedData, cacheDataLoaded, cacheEntryRemoved, dispatch, getCacheEntry },\n ) {\n await handleActivityRealtimeUpdates(queryArg, {\n updateCachedData,\n cacheDataLoaded,\n cacheEntryRemoved,\n dispatch,\n getCacheEntry,\n })\n },\n providesTags: (result, _e, { entityIds, activityTypes, filter }) =>\n result\n ? [\n ...result.pages\n .flatMap((page) => page.activities)\n .map((a) => ({ type: 'activity', id: a.activityId })),\n { type: 'activity', id: 'LIST' },\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).filter(Boolean).map((id) => ({\n type: 'entityActivities',\n id: id as string,\n })),\n { type: 'entityActivities', id: 'LIST' },\n ...(Array.isArray(activityTypes) ? activityTypes : [activityTypes])\n ?.filter(Boolean)\n .map((type) => ({\n type: 'entityActivities',\n id: type as string,\n })),\n // filter is used when a comment is made, to refetch the activities of other filters\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).filter(Boolean).map((id) => ({\n type: 'entityActivities',\n id: `${id}-${typeof filter === 'string' ? filter : JSON.stringify(filter)}`,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n }),\n // get data for a reference tooltip based on type,id and projectName\n getEntityTooltip: build.query({\n query: ({ projectName, entityId, entityType }) => ({\n url: '/graphql',\n method: 'POST',\n body: {\n query: ENTITY_TOOLTIP(entityType),\n variables: { projectName, entityId },\n },\n }),\n transformResponse: (res: EntityTooltipQuery, _m, { entityType }) =>\n transformTooltipData(res?.data?.project, entityType),\n providesTags: (res: any, _e, { entityType }) => taskProvideTags([res], 'task', entityType),\n }),\n }),\n overrideExisting: true,\n})\n\nexport const {\n useGetEntityTooltipQuery,\n useLazyGetActivitiesByIdQuery,\n useGetEntitiesChecklistsQuery,\n useGetActivitiesInfiniteInfiniteQuery,\n useGetActivityUsersQuery,\n} = getActivitiesGQLApi\n\nexport { getActivitiesGQLApi }\n"],"names":["enhanceActivitiesApi","gqlApi","res","transformActivityData","result","_e","entityIds","activityTypes","filter","a","id","type","countChecklists","_error","edge","name","ACTIVITIES_INFINITE_QUERY_COUNT","getActivitiesGQLApi","build","lastPage","pageInfo","queryArg","pageParam","api","args","queryParams","fallback","e","updateCachedData","cacheDataLoaded","cacheEntryRemoved","dispatch","getCacheEntry","handleActivityRealtimeUpdates","page","projectName","entityId","entityType","ENTITY_TOOLTIP","_m","transformTooltipData","taskProvideTags","useGetEntityTooltipQuery","useLazyGetActivitiesByIdQuery","useGetEntitiesChecklistsQuery","useGetActivitiesInfiniteInfiniteQuery","useGetActivityUsersQuery"],"mappings":"m3DAsCMA,EAAuBC,EAAAA,IAAO,iBAA+C,CACjF,UAAW,CAET,cAAe,CACb,kBAAoBC,GAClBC,EAAAA,sBAAsBD,EAAI,QAAQ,WAAW,MAAOA,EAAI,QAAQ,WAAW,QAAQ,EAErF,aAAc,CAACE,EAAQC,EAAI,CAAE,UAAAC,EAAW,cAAAC,EAAgB,CAAA,EAAI,OAAAC,CAAA,IAC1DJ,EACI,CACE,GAAGA,EAAO,WAAW,IAAKK,IA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AAUG,EAAI,CAAE,WAAAgC,KAAiBI,EAAAA,gBAAgB,CAACvC,CAAG,EAAG,OAAQmC,CAAU,CAAA,CAC1F,CAAA,GAEH,iBAAkB,EACpB,CAAC,EAEY,CACX,yBAAAK,EACA,8BAAAC,EACA,8BAAAC,EACA,sCAAAC,EACA,yBAAAC,CACF,EAAI7B"}
1
+ {"version":3,"file":"getActivities.cjs.js","sources":["../../../../../../src/api/queries/activities/getActivities.ts"],"sourcesContent":["import {\n gqlApi,\n GetActivitiesByIdQuery,\n GetActivitiesQuery,\n GetActivitiesQueryVariables,\n GetActivityUsersQuery,\n GetEntitiesChecklistsQuery,\n} from '@shared/api/generated'\nimport { taskProvideTags } from './util/activitiesHelpers'\nimport {\n ActivitiesResult,\n countChecklists,\n transformActivityData,\n transformTooltipData,\n} from './util/activitiesHelpers'\nimport { ENTITY_TOOLTIP, EntityTooltipQuery } from './activityQueries'\n\nimport {\n DefinitionsFromApi,\n FetchBaseQueryError,\n OverrideResultType,\n TagTypesFromApi,\n} from '@reduxjs/toolkit/query'\nimport { ChecklistCount } from './types'\nimport { handleActivityRealtimeUpdates } from './util/activityRealtimeHandler'\n\ntype ActivityUserNode = GetActivityUsersQuery['users']['edges'][0]['node']\n\ntype Definitions = DefinitionsFromApi<typeof gqlApi>\ntype TagTypes = TagTypesFromApi<typeof gqlApi>\n// update the definitions to include the new types\ntype UpdatedDefinitions = Omit<Definitions, 'GetActivitiesById'> & {\n GetActivitiesById: OverrideResultType<Definitions['GetActivitiesById'], ActivitiesResult>\n GetActivities: OverrideResultType<Definitions['GetActivities'], ActivitiesResult>\n GetEntitiesChecklists: OverrideResultType<Definitions['GetEntitiesChecklists'], ChecklistCount>\n GetActivityUsers: OverrideResultType<Definitions['GetActivityUsers'], ActivityUserNode[]>\n}\n\nconst enhanceActivitiesApi = gqlApi.enhanceEndpoints<TagTypes, UpdatedDefinitions>({\n endpoints: {\n // Only used by the infinite query below\n GetActivities: {\n transformResponse: (res: GetActivitiesQuery) =>\n transformActivityData(res.project.activities.edges, res.project.activities.pageInfo),\n // @ts-expect-error - filter is not an query arg\n providesTags: (result, _e, { entityIds, activityTypes = [], filter }) =>\n result\n ? [\n ...result.activities.map((a) => ({ type: 'activity', id: a.activityId })),\n { type: 'activity', id: 'LIST' },\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: id,\n })),\n { type: 'entityActivities', id: 'LIST' },\n ...(Array.isArray(activityTypes) ? activityTypes : [activityTypes])?.map((type) => ({\n type: 'entityActivities',\n id: type as string,\n })),\n // filter is used when a comment is made, to refetch the activities of other filters\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: id + '-' + filter,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n },\n GetActivitiesById: {\n transformResponse: (res: GetActivitiesByIdQuery) =>\n transformActivityData(res.project.activities.edges, res.project.activities.pageInfo),\n },\n GetEntitiesChecklists: {\n transformResponse: (res: GetEntitiesChecklistsQuery) => countChecklists(res),\n providesTags: (res, _error, { entityIds }) =>\n res\n ? [\n { type: 'activity', id: 'LIST' },\n ...res.ids.map((id) => ({ type: 'activity', id: 'checklist-' + id })),\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: 'checklist-' + id,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n },\n GetActivityUsers: {\n transformResponse: (res: GetActivityUsersQuery) => res.users.edges.map((edge) => edge.node),\n providesTags: (res) =>\n res?.length\n ? [{ type: 'user', id: 'LIST' }, ...res.map(({ name }) => ({ type: 'user', id: name }))]\n : [{ type: 'user', id: 'LIST' }],\n },\n },\n})\n\nconst ACTIVITIES_INFINITE_QUERY_COUNT = 30\n\nconst getActivitiesGQLApi = enhanceActivitiesApi.injectEndpoints({\n endpoints: (build) => ({\n getActivitiesInfinite: build.infiniteQuery<\n ActivitiesResult,\n Omit<GetActivitiesQueryVariables, 'last' | 'first' | 'cursor'> & { filter?: any },\n { cursor: string; first?: number; last?: number }\n >({\n infiniteQueryOptions: {\n initialPageParam: { cursor: '', last: ACTIVITIES_INFINITE_QUERY_COUNT },\n // Calculate the next page param based on current page response and params\n getNextPageParam: (lastPage) => {\n const pageInfo = lastPage.pageInfo\n const hasPreviousPage = pageInfo.hasPreviousPage\n\n if (!hasPreviousPage || !pageInfo.endCursor) return undefined\n\n return {\n cursor: pageInfo.endCursor,\n last: ACTIVITIES_INFINITE_QUERY_COUNT,\n }\n },\n },\n queryFn: async ({ queryArg, pageParam }, api) => {\n try {\n const { filter, ...args } = queryArg\n // Build the query parameters for GetActivities\n const queryParams: GetActivitiesQueryVariables = {\n ...args,\n before: pageParam?.cursor,\n last: pageParam?.last,\n }\n\n // Call the existing GetActivities endpoint\n const result = await api.dispatch(\n enhanceActivitiesApi.endpoints.GetActivities.initiate(queryParams, {\n forceRefetch: true,\n }),\n )\n\n if (result.error) throw result.error\n const fallback = {\n activities: [],\n pageInfo: {\n hasNextPage: false,\n endCursor: null,\n startCursor: null,\n hasPreviousPage: false,\n },\n }\n\n // Return the activities directly as required by the infinite query format\n return {\n data: result.data || fallback,\n }\n } catch (e: any) {\n console.error('Error in getActivitiesInfinite queryFn:', e)\n return { error: { status: 'FETCH_ERROR', error: e.message } as FetchBaseQueryError }\n }\n },\n async onCacheEntryAdded(\n queryArg,\n { updateCachedData, cacheDataLoaded, cacheEntryRemoved, dispatch, getCacheEntry },\n ) {\n await handleActivityRealtimeUpdates(queryArg, {\n updateCachedData,\n cacheDataLoaded,\n cacheEntryRemoved,\n dispatch,\n getCacheEntry,\n })\n },\n providesTags: (result, _e, { entityIds, activityTypes, filter }) =>\n result\n ? [\n ...result.pages\n .flatMap((page) => page.activities)\n .map((a) => ({ type: 'activity', id: a.activityId })),\n { type: 'activity', id: 'LIST' },\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).filter(Boolean).map((id) => ({\n type: 'entityActivities',\n id: id as string,\n })),\n { type: 'entityActivities', id: 'LIST' },\n ...(Array.isArray(activityTypes) ? activityTypes : [activityTypes])\n ?.filter(Boolean)\n .map((type) => ({\n type: 'entityActivities',\n id: type as string,\n })),\n // filter is used when a comment is made, to refetch the activities of other filters\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).filter(Boolean).map((id) => ({\n type: 'entityActivities',\n id: `${id}-${typeof filter === 'string' ? filter : JSON.stringify(filter)}`,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n }),\n // get data for a reference tooltip based on type,id and projectName\n getEntityTooltip: build.query({\n query: ({ projectName, entityId, entityType }) => ({\n url: '/graphql',\n method: 'POST',\n body: {\n query: ENTITY_TOOLTIP(entityType),\n variables: { projectName, entityId },\n },\n }),\n transformResponse: (res: EntityTooltipQuery, _m, { entityType }) =>\n transformTooltipData(res?.data?.project, entityType),\n providesTags: (res: any, _e, { entityType }) => taskProvideTags([res], 'task', entityType),\n }),\n }),\n overrideExisting: true,\n})\n\nexport const {\n useGetEntityTooltipQuery,\n useLazyGetActivitiesByIdQuery,\n useGetEntitiesChecklistsQuery,\n useGetActivitiesInfiniteInfiniteQuery,\n useGetActivityUsersQuery,\n} = getActivitiesGQLApi\n\nexport { getActivitiesGQLApi }\n"],"names":["enhanceActivitiesApi","gqlApi","res","transformActivityData","result","_e","entityIds","activityTypes","filter","a","id","type","countChecklists","_error","edge","name","ACTIVITIES_INFINITE_QUERY_COUNT","getActivitiesGQLApi","build","lastPage","pageInfo","queryArg","pageParam","api","args","queryParams","fallback","e","updateCachedData","cacheDataLoaded","cacheEntryRemoved","dispatch","getCacheEntry","handleActivityRealtimeUpdates","page","projectName","entityId","entityType","ENTITY_TOOLTIP","_m","transformTooltipData","taskProvideTags","useGetEntityTooltipQuery","useLazyGetActivitiesByIdQuery","useGetEntitiesChecklistsQuery","useGetActivitiesInfiniteInfiniteQuery","useGetActivityUsersQuery"],"mappings":"g6DAsCMA,EAAuBC,EAAAA,IAAO,iBAA+C,CACjF,UAAW,CAET,c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AAQ,OACR,KAAM,CACJ,MAAOC,EAAAA,eAAeD,CAAU,EAChC,UAAW,CAAE,YAAAF,EAAa,SAAAC,CAAA,CAAS,CACrC,GAEF,kBAAmB,CAAClC,EAAyBqC,EAAI,CAAE,WAAAF,CAAA,IACjDG,EAAAA,qBAAqBtC,GAAK,MAAM,QAASmC,CAAU,EACrD,aAAc,CAACnC,EAAUG,EAAI,CAAE,WAAAgC,KAAiBI,EAAAA,gBAAgB,CAACvC,CAAG,EAAG,OAAQmC,CAAU,CAAA,CAC1F,CAAA,GAEH,iBAAkB,EACpB,CAAC,EAEY,CACX,yBAAAK,EACA,8BAAAC,EACA,8BAAAC,EACA,sCAAAC,EACA,yBAAAC,CACF,EAAI7B"}
@@ -10,6 +10,7 @@ import "../../generated/attributes.es.js";
10
10
  import "../../generated/authentication.es.js";
11
11
  import "../../generated/bundles.es.js";
12
12
  import "../../generated/configuration.es.js";
13
+ import "../../generated/dataImport.es.js";
13
14
  import "../../generated/desktop.es.js";
14
15
  import "../../generated/entityLists.es.js";
15
16
  import "../../generated/events.es.js";
@@ -171,18 +172,18 @@ const c = v.enhanceEndpoints({
171
172
  }),
172
173
  overrideExisting: !0
173
174
  }), {
174
- useGetEntityTooltipQuery: pt,
175
- useLazyGetActivitiesByIdQuery: nt,
176
- useGetEntitiesChecklistsQuery: ct,
177
- useGetActivitiesInfiniteInfiniteQuery: mt,
178
- useGetActivityUsersQuery: yt
175
+ useGetEntityTooltipQuery: nt,
176
+ useLazyGetActivitiesByIdQuery: ct,
177
+ useGetEntitiesChecklistsQuery: mt,
178
+ useGetActivitiesInfiniteInfiniteQuery: yt,
179
+ useGetActivityUsersQuery: vt
179
180
  } = l;
180
181
  export {
181
182
  l as getActivitiesGQLApi,
182
- mt as useGetActivitiesInfiniteInfiniteQuery,
183
- yt as useGetActivityUsersQuery,
184
- ct as useGetEntitiesChecklistsQuery,
185
- pt as useGetEntityTooltipQuery,
186
- nt as useLazyGetActivitiesByIdQuery
183
+ yt as useGetActivitiesInfiniteInfiniteQuery,
184
+ vt as useGetActivityUsersQuery,
185
+ mt as useGetEntitiesChecklistsQuery,
186
+ nt as useGetEntityTooltipQuery,
187
+ ct as useLazyGetActivitiesByIdQuery
187
188
  };
188
189
  //# sourceMappingURL=getActivities.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getActivities.es.js","sources":["../../../../../../src/api/queries/activities/getActivities.ts"],"sourcesContent":["import {\n gqlApi,\n GetActivitiesByIdQuery,\n GetActivitiesQuery,\n GetActivitiesQueryVariables,\n GetActivityUsersQuery,\n GetEntitiesChecklistsQuery,\n} from '@shared/api/generated'\nimport { taskProvideTags } from './util/activitiesHelpers'\nimport {\n ActivitiesResult,\n countChecklists,\n transformActivityData,\n transformTooltipData,\n} from './util/activitiesHelpers'\nimport { ENTITY_TOOLTIP, EntityTooltipQuery } from './activityQueries'\n\nimport {\n DefinitionsFromApi,\n FetchBaseQueryError,\n OverrideResultType,\n TagTypesFromApi,\n} from '@reduxjs/toolkit/query'\nimport { ChecklistCount } from './types'\nimport { handleActivityRealtimeUpdates } from './util/activityRealtimeHandler'\n\ntype ActivityUserNode = GetActivityUsersQuery['users']['edges'][0]['node']\n\ntype Definitions = DefinitionsFromApi<typeof gqlApi>\ntype TagTypes = TagTypesFromApi<typeof gqlApi>\n// update the definitions to include the new types\ntype UpdatedDefinitions = Omit<Definitions, 'GetActivitiesById'> & {\n GetActivitiesById: OverrideResultType<Definitions['GetActivitiesById'], ActivitiesResult>\n GetActivities: OverrideResultType<Definitions['GetActivities'], ActivitiesResult>\n GetEntitiesChecklists: OverrideResultType<Definitions['GetEntitiesChecklists'], ChecklistCount>\n GetActivityUsers: OverrideResultType<Definitions['GetActivityUsers'], ActivityUserNode[]>\n}\n\nconst enhanceActivitiesApi = gqlApi.enhanceEndpoints<TagTypes, UpdatedDefinitions>({\n endpoints: {\n // Only used by the infinite query below\n GetActivities: {\n transformResponse: (res: GetActivitiesQuery) =>\n transformActivityData(res.project.activities.edges, res.project.activities.pageInfo),\n // @ts-expect-error - filter is not an query arg\n providesTags: (result, _e, { entityIds, activityTypes = [], filter }) =>\n result\n ? [\n ...result.activities.map((a) => ({ type: 'activity', id: a.activityId })),\n { type: 'activity', id: 'LIST' },\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: id,\n })),\n { type: 'entityActivities', id: 'LIST' },\n ...(Array.isArray(activityTypes) ? activityTypes : [activityTypes])?.map((type) => ({\n type: 'entityActivities',\n id: type as string,\n })),\n // filter is used when a comment is made, to refetch the activities of other filters\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: id + '-' + filter,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n },\n GetActivitiesById: {\n transformResponse: (res: GetActivitiesByIdQuery) =>\n transformActivityData(res.project.activities.edges, res.project.activities.pageInfo),\n },\n GetEntitiesChecklists: {\n transformResponse: (res: GetEntitiesChecklistsQuery) => countChecklists(res),\n providesTags: (res, _error, { entityIds }) =>\n res\n ? [\n { type: 'activity', id: 'LIST' },\n ...res.ids.map((id) => ({ type: 'activity', id: 'checklist-' + id })),\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: 'checklist-' + id,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n },\n GetActivityUsers: {\n transformResponse: (res: GetActivityUsersQuery) => res.users.edges.map((edge) => edge.node),\n providesTags: (res) =>\n res?.length\n ? [{ type: 'user', id: 'LIST' }, ...res.map(({ name }) => ({ type: 'user', id: name }))]\n : [{ type: 'user', id: 'LIST' }],\n },\n },\n})\n\nconst ACTIVITIES_INFINITE_QUERY_COUNT = 30\n\nconst getActivitiesGQLApi = enhanceActivitiesApi.injectEndpoints({\n endpoints: (build) => ({\n getActivitiesInfinite: build.infiniteQuery<\n ActivitiesResult,\n Omit<GetActivitiesQueryVariables, 'last' | 'first' | 'cursor'> & { filter?: any },\n { cursor: string; first?: number; last?: number }\n >({\n infiniteQueryOptions: {\n initialPageParam: { cursor: '', last: ACTIVITIES_INFINITE_QUERY_COUNT },\n // Calculate the next page param based on current page response and params\n getNextPageParam: (lastPage) => {\n const pageInfo = lastPage.pageInfo\n const hasPreviousPage = pageInfo.hasPreviousPage\n\n if (!hasPreviousPage || !pageInfo.endCursor) return undefined\n\n return {\n cursor: pageInfo.endCursor,\n last: ACTIVITIES_INFINITE_QUERY_COUNT,\n }\n },\n },\n queryFn: async ({ queryArg, pageParam }, api) => {\n try {\n const { filter, ...args } = queryArg\n // Build the query parameters for GetActivities\n const queryParams: GetActivitiesQueryVariables = {\n ...args,\n before: pageParam?.cursor,\n last: pageParam?.last,\n }\n\n // Call the existing GetActivities endpoint\n const result = await api.dispatch(\n enhanceActivitiesApi.endpoints.GetActivities.initiate(queryParams, {\n forceRefetch: true,\n }),\n )\n\n if (result.error) throw result.error\n const fallback = {\n activities: [],\n pageInfo: {\n hasNextPage: false,\n endCursor: null,\n startCursor: null,\n hasPreviousPage: false,\n },\n }\n\n // Return the activities directly as required by the infinite query format\n return {\n data: result.data || fallback,\n }\n } catch (e: any) {\n console.error('Error in getActivitiesInfinite queryFn:', e)\n return { error: { status: 'FETCH_ERROR', error: e.message } as FetchBaseQueryError }\n }\n },\n async onCacheEntryAdded(\n queryArg,\n { updateCachedData, cacheDataLoaded, cacheEntryRemoved, dispatch, getCacheEntry },\n ) {\n await handleActivityRealtimeUpdates(queryArg, {\n updateCachedData,\n cacheDataLoaded,\n cacheEntryRemoved,\n dispatch,\n getCacheEntry,\n })\n },\n providesTags: (result, _e, { entityIds, activityTypes, filter }) =>\n result\n ? [\n ...result.pages\n .flatMap((page) => page.activities)\n .map((a) => ({ type: 'activity', id: a.activityId })),\n { type: 'activity', id: 'LIST' },\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).filter(Boolean).map((id) => ({\n type: 'entityActivities',\n id: id as string,\n })),\n { type: 'entityActivities', id: 'LIST' },\n ...(Array.isArray(activityTypes) ? activityTypes : [activityTypes])\n ?.filter(Boolean)\n .map((type) => ({\n type: 'entityActivities',\n id: type as string,\n })),\n // filter is used when a comment is made, to refetch the activities of other filters\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).filter(Boolean).map((id) => ({\n type: 'entityActivities',\n id: `${id}-${typeof filter === 'string' ? filter : JSON.stringify(filter)}`,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n }),\n // get data for a reference tooltip based on type,id and projectName\n getEntityTooltip: build.query({\n query: ({ projectName, entityId, entityType }) => ({\n url: '/graphql',\n method: 'POST',\n body: {\n query: ENTITY_TOOLTIP(entityType),\n variables: { projectName, entityId },\n },\n }),\n transformResponse: (res: EntityTooltipQuery, _m, { entityType }) =>\n transformTooltipData(res?.data?.project, entityType),\n providesTags: (res: any, _e, { entityType }) => taskProvideTags([res], 'task', entityType),\n }),\n }),\n overrideExisting: true,\n})\n\nexport const {\n useGetEntityTooltipQuery,\n useLazyGetActivitiesByIdQuery,\n useGetEntitiesChecklistsQuery,\n useGetActivitiesInfiniteInfiniteQuery,\n useGetActivityUsersQuery,\n} = getActivitiesGQLApi\n\nexport { getActivitiesGQLApi }\n"],"names":["enhanceActivitiesApi","gqlApi","res","transformActivityData","result","_e","entityIds","activityTypes","filter","a","id","type","countChecklists","_error","edge","name","ACTIVITIES_INFINITE_QUERY_COUNT","getActivitiesGQLApi","build","lastPage","pageInfo","queryArg","pageParam","api","args","queryParams","fallback","e","updateCachedData","cacheDataLoaded","cacheEntryRemoved","dispatch","getCacheEntry","handleActivityRealtimeUpdates","page","projectName","entityId","entityType","ENTITY_TOOLTIP","_m","transformTooltipData","taskProvideTags","useGetEntityTooltipQuery","useLazyGetActivitiesByIdQuery","useGetEntitiesChecklistsQuery","useGetActivitiesInfiniteInfiniteQuery","useGetActivityUsersQuery"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,MAAMA,IAAuBC,EAAO,iBAA+C;A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F,IAAI7B;"}
1
+ {"version":3,"file":"getActivities.es.js","sources":["../../../../../../src/api/queries/activities/getActivities.ts"],"sourcesContent":["import {\n gqlApi,\n GetActivitiesByIdQuery,\n GetActivitiesQuery,\n GetActivitiesQueryVariables,\n GetActivityUsersQuery,\n GetEntitiesChecklistsQuery,\n} from '@shared/api/generated'\nimport { taskProvideTags } from './util/activitiesHelpers'\nimport {\n ActivitiesResult,\n countChecklists,\n transformActivityData,\n transformTooltipData,\n} from './util/activitiesHelpers'\nimport { ENTITY_TOOLTIP, EntityTooltipQuery } from './activityQueries'\n\nimport {\n DefinitionsFromApi,\n FetchBaseQueryError,\n OverrideResultType,\n TagTypesFromApi,\n} from '@reduxjs/toolkit/query'\nimport { ChecklistCount } from './types'\nimport { handleActivityRealtimeUpdates } from './util/activityRealtimeHandler'\n\ntype ActivityUserNode = GetActivityUsersQuery['users']['edges'][0]['node']\n\ntype Definitions = DefinitionsFromApi<typeof gqlApi>\ntype TagTypes = TagTypesFromApi<typeof gqlApi>\n// update the definitions to include the new types\ntype UpdatedDefinitions = Omit<Definitions, 'GetActivitiesById'> & {\n GetActivitiesById: OverrideResultType<Definitions['GetActivitiesById'], ActivitiesResult>\n GetActivities: OverrideResultType<Definitions['GetActivities'], ActivitiesResult>\n GetEntitiesChecklists: OverrideResultType<Definitions['GetEntitiesChecklists'], ChecklistCount>\n GetActivityUsers: OverrideResultType<Definitions['GetActivityUsers'], ActivityUserNode[]>\n}\n\nconst enhanceActivitiesApi = gqlApi.enhanceEndpoints<TagTypes, UpdatedDefinitions>({\n endpoints: {\n // Only used by the infinite query below\n GetActivities: {\n transformResponse: (res: GetActivitiesQuery) =>\n transformActivityData(res.project.activities.edges, res.project.activities.pageInfo),\n // @ts-expect-error - filter is not an query arg\n providesTags: (result, _e, { entityIds, activityTypes = [], filter }) =>\n result\n ? [\n ...result.activities.map((a) => ({ type: 'activity', id: a.activityId })),\n { type: 'activity', id: 'LIST' },\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: id,\n })),\n { type: 'entityActivities', id: 'LIST' },\n ...(Array.isArray(activityTypes) ? activityTypes : [activityTypes])?.map((type) => ({\n type: 'entityActivities',\n id: type as string,\n })),\n // filter is used when a comment is made, to refetch the activities of other filters\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: id + '-' + filter,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n },\n GetActivitiesById: {\n transformResponse: (res: GetActivitiesByIdQuery) =>\n transformActivityData(res.project.activities.edges, res.project.activities.pageInfo),\n },\n GetEntitiesChecklists: {\n transformResponse: (res: GetEntitiesChecklistsQuery) => countChecklists(res),\n providesTags: (res, _error, { entityIds }) =>\n res\n ? [\n { type: 'activity', id: 'LIST' },\n ...res.ids.map((id) => ({ type: 'activity', id: 'checklist-' + id })),\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).map((id) => ({\n type: 'entityActivities',\n id: 'checklist-' + id,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n },\n GetActivityUsers: {\n transformResponse: (res: GetActivityUsersQuery) => res.users.edges.map((edge) => edge.node),\n providesTags: (res) =>\n res?.length\n ? [{ type: 'user', id: 'LIST' }, ...res.map(({ name }) => ({ type: 'user', id: name }))]\n : [{ type: 'user', id: 'LIST' }],\n },\n },\n})\n\nconst ACTIVITIES_INFINITE_QUERY_COUNT = 30\n\nconst getActivitiesGQLApi = enhanceActivitiesApi.injectEndpoints({\n endpoints: (build) => ({\n getActivitiesInfinite: build.infiniteQuery<\n ActivitiesResult,\n Omit<GetActivitiesQueryVariables, 'last' | 'first' | 'cursor'> & { filter?: any },\n { cursor: string; first?: number; last?: number }\n >({\n infiniteQueryOptions: {\n initialPageParam: { cursor: '', last: ACTIVITIES_INFINITE_QUERY_COUNT },\n // Calculate the next page param based on current page response and params\n getNextPageParam: (lastPage) => {\n const pageInfo = lastPage.pageInfo\n const hasPreviousPage = pageInfo.hasPreviousPage\n\n if (!hasPreviousPage || !pageInfo.endCursor) return undefined\n\n return {\n cursor: pageInfo.endCursor,\n last: ACTIVITIES_INFINITE_QUERY_COUNT,\n }\n },\n },\n queryFn: async ({ queryArg, pageParam }, api) => {\n try {\n const { filter, ...args } = queryArg\n // Build the query parameters for GetActivities\n const queryParams: GetActivitiesQueryVariables = {\n ...args,\n before: pageParam?.cursor,\n last: pageParam?.last,\n }\n\n // Call the existing GetActivities endpoint\n const result = await api.dispatch(\n enhanceActivitiesApi.endpoints.GetActivities.initiate(queryParams, {\n forceRefetch: true,\n }),\n )\n\n if (result.error) throw result.error\n const fallback = {\n activities: [],\n pageInfo: {\n hasNextPage: false,\n endCursor: null,\n startCursor: null,\n hasPreviousPage: false,\n },\n }\n\n // Return the activities directly as required by the infinite query format\n return {\n data: result.data || fallback,\n }\n } catch (e: any) {\n console.error('Error in getActivitiesInfinite queryFn:', e)\n return { error: { status: 'FETCH_ERROR', error: e.message } as FetchBaseQueryError }\n }\n },\n async onCacheEntryAdded(\n queryArg,\n { updateCachedData, cacheDataLoaded, cacheEntryRemoved, dispatch, getCacheEntry },\n ) {\n await handleActivityRealtimeUpdates(queryArg, {\n updateCachedData,\n cacheDataLoaded,\n cacheEntryRemoved,\n dispatch,\n getCacheEntry,\n })\n },\n providesTags: (result, _e, { entityIds, activityTypes, filter }) =>\n result\n ? [\n ...result.pages\n .flatMap((page) => page.activities)\n .map((a) => ({ type: 'activity', id: a.activityId })),\n { type: 'activity', id: 'LIST' },\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).filter(Boolean).map((id) => ({\n type: 'entityActivities',\n id: id as string,\n })),\n { type: 'entityActivities', id: 'LIST' },\n ...(Array.isArray(activityTypes) ? activityTypes : [activityTypes])\n ?.filter(Boolean)\n .map((type) => ({\n type: 'entityActivities',\n id: type as string,\n })),\n // filter is used when a comment is made, to refetch the activities of other filters\n ...(Array.isArray(entityIds) ? entityIds : [entityIds]).filter(Boolean).map((id) => ({\n type: 'entityActivities',\n id: `${id}-${typeof filter === 'string' ? filter : JSON.stringify(filter)}`,\n })),\n ]\n : [{ type: 'activity', id: 'LIST' }],\n }),\n // get data for a reference tooltip based on type,id and projectName\n getEntityTooltip: build.query({\n query: ({ projectName, entityId, entityType }) => ({\n url: '/graphql',\n method: 'POST',\n body: {\n query: ENTITY_TOOLTIP(entityType),\n variables: { projectName, entityId },\n },\n }),\n transformResponse: (res: EntityTooltipQuery, _m, { entityType }) =>\n transformTooltipData(res?.data?.project, entityType),\n providesTags: (res: any, _e, { entityType }) => taskProvideTags([res], 'task', entityType),\n }),\n }),\n overrideExisting: true,\n})\n\nexport const {\n useGetEntityTooltipQuery,\n useLazyGetActivitiesByIdQuery,\n useGetEntitiesChecklistsQuery,\n useGetActivitiesInfiniteInfiniteQuery,\n useGetActivityUsersQuery,\n} = getActivitiesGQLApi\n\nexport { getActivitiesGQLApi }\n"],"names":["enhanceActivitiesApi","gqlApi","res","transformActivityData","result","_e","entityIds","activityTypes","filter","a","id","type","countChecklists","_error","edge","name","ACTIVITIES_INFINITE_QUERY_COUNT","getActivitiesGQLApi","build","lastPage","pageInfo","queryArg","pageParam","api","args","queryParams","fallback","e","updateCachedData","cacheDataLoaded","cacheEntryRemoved","dispatch","getCacheEntry","handleActivityRealtimeUpdates","page","projectName","entityId","entityType","ENTITY_TOOLTIP","_m","transformTooltipData","taskProvideTags","useGetEntityTooltipQuery","useLazyGetActivitiesByIdQuery","useGetEntitiesChecklistsQuery","useGetActivitiesInfiniteInfiniteQuery","useGetActivityUsersQuery"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,MAAMA,IAAuBC,EAAO,iBAA+C;AAAA,EACjF,WAAW;AAAA;AAAA,IAET,eAAe;AAAA,MACb,mBAAmB,CAACC,MAClBC,EAAsBD,EAAI,QAAQ,WAAW,OAAOA,EAAI,QAAQ,WAAW,QAAQ;AAAA;AAAA,MAErF,cAAc,CAACE,GAAQC,GAAI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a,IAC7D,OAAO,OAAO,EACf,IAAI,CAACI,OAAU;AAAA,UACd,MAAM;AAAA,UACN,IAAIA;AAAA,QAAA,EACJ;AAAA;AAAA,QAEJ,IAAI,MAAM,QAAQL,CAAS,IAAIA,IAAY,CAACA,CAAS,GAAG,OAAO,OAAO,EAAE,IAAI,CAACI,OAAQ;AAAA,UACnF,MAAM;AAAA,UACN,IAAI,GAAGA,CAAE,IAAI,OAAOF,KAAW,WAAWA,IAAS,KAAK,UAAUA,CAAM,CAAC;AAAA,QAAA,EACzE;AAAA,MAAA,IAEJ,CAAC,EAAE,MAAM,YAAY,IAAI,QAAQ;AAAA,IAAA,CACxC;AAAA;AAAA,IAED,kBAAkBU,EAAM,MAAM;AAAA,MAC5B,OAAO,CAAC,EAAE,aAAAiB,GAAa,UAAAC,GAAU,YAAAC,SAAkB;AAAA,QACjD,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM;AAAA,UACJ,OAAOC,EAAeD,CAAU;AAAA,UAChC,WAAW,EAAE,aAAAF,GAAa,UAAAC,EAAA;AAAA,QAAS;AAAA,MACrC;AAAA,MAEF,mBAAmB,CAAClC,GAAyBqC,GAAI,EAAE,YAAAF,EAAA,MACjDG,EAAqBtC,GAAK,MAAM,SAASmC,CAAU;AAAA,MACrD,cAAc,CAACnC,GAAUG,GAAI,EAAE,YAAAgC,QAAiBI,EAAgB,CAACvC,CAAG,GAAG,QAAQmC,CAAU;AAAA,IAAA,CAC1F;AAAA,EAAA;AAAA,EAEH,kBAAkB;AACpB,CAAC,GAEY;AAAA,EACX,0BAAAK;AAAA,EACA,+BAAAC;AAAA,EACA,+BAAAC;AAAA,EACA,uCAAAC;AAAA,EACA,0BAAAC;AACF,IAAI7B;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../base/client.cjs.js");require("../../generated/graphql.cjs.js");require("../../generated/graphqlLinks.cjs.js");require("../../generated/access.cjs.js");require("../../generated/actions.cjs.js");const t=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/projectFolders.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 r={type:"category",id:"LIST"},i={type:"addonSettings",id:"powerpack"},q=t.api.enhanceEndpoints({endpoints:{getActivityCategories:{transformResponse:e=>e.categories,transformErrorResponse:e=>e.data?.detail||"An error occurred.",providesTags:e=>e?[...e.map(({name:u})=>({type:"category",id:u})),r,i]:[r,i]}}}),{useGetActivityCategoriesQuery:o}=q;exports.useGetActivityCategoriesQuery=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../base/client.cjs.js");require("../../generated/graphql.cjs.js");require("../../generated/graphqlLinks.cjs.js");require("../../generated/access.cjs.js");require("../../generated/actions.cjs.js");const t=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/dataImport.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/projectFolders.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 r={type:"category",id:"LIST"},i={type:"addonSettings",id:"powerpack"},q=t.api.enhanceEndpoints({endpoints:{getActivityCategories:{transformResponse:e=>e.categories,transformErrorResponse:e=>e.data?.detail||"An error occurred.",providesTags:e=>e?[...e.map(({name:u})=>({type:"category",id:u})),r,i]:[r,i]}}}),{useGetActivityCategoriesQuery:o}=q;exports.useGetActivityCategoriesQuery=o;
2
2
  //# sourceMappingURL=getCategories.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCategories.cjs.js","sources":["../../../../../../src/api/queries/activities/getCategories.ts"],"sourcesContent":["import { ActivityCategoriesResponseModel, activityFeedApi } from '@shared/api/generated'\nimport { DefinitionsFromApi, OverrideResultType, TagTypesFromApi } from '@reduxjs/toolkit/query'\nimport { AccessLevel } from '@shared/components'\n\nconst listTag = { type: 'category', id: 'LIST' } as const\nconst settingsTag = { type: 'addonSettings', id: 'powerpack' } as const\n\nexport type ActivityCategory = {\n name: string\n color: string // hex color code\n access: Record<string, AccessLevel>\n accessLevel: AccessLevel\n}\ntype GetActivityCategoriesResult = ActivityCategory[]\n\ntype Definitions = DefinitionsFromApi<typeof activityFeedApi>\ntype TagTypes = TagTypesFromApi<typeof activityFeedApi>\n// update the definitions to include the new types\ntype UpdatedDefinitions = Omit<Definitions, 'getActivityCategories'> & {\n getActivityCategories: OverrideResultType<\n Definitions['getActivityCategories'],\n GetActivityCategoriesResult\n >\n}\n\nconst categoriesApi = activityFeedApi.enhanceEndpoints<TagTypes, UpdatedDefinitions>({\n endpoints: {\n getActivityCategories: {\n transformResponse: (res: ActivityCategoriesResponseModel) =>\n res.categories as ActivityCategory[],\n transformErrorResponse: (error: any) => error.data?.detail || 'An error occurred.',\n providesTags: (result) =>\n result\n ? [\n ...result.map(({ name }) => ({ type: 'category' as const, id: name })),\n listTag,\n settingsTag,\n ]\n : [listTag, settingsTag],\n },\n },\n})\n\nexport const { useGetActivityCategoriesQuery } = categoriesApi\n"],"names":["listTag","settingsTag","categoriesApi","activityFeedApi","res","error","result","name","useGetActivityCategoriesQuery"],"mappings":"uuDAIA,MAAMA,EAAU,CAAE,KAAM,WAAY,GAAI,MAAA,EAClCC,EAAc,CAAE,KAAM,gBAAiB,GAAI,WAAA,EAoB3CC,EAAgBC,EAAAA,IAAgB,iBAA+C,CACnF,UAAW,CACT,sBAAuB,CACrB,kBAAoBC,GAClBA,EAAI,WACN,uBAAyBC,GAAeA,EAAM,MAAM,QAAU,qBAC9D,aAAeC,GACbA,EACI,CACE,GAAGA,EAAO,IAAI,CAAC,CAAE,KAAAC,CAAA,KAAY,CAAE,KAAM,WAAqB,GAAIA,CAAA,EAAO,EACrEP,EACAC,CAAA,EAEF,CAACD,EAASC,CAAW,CAAA,CAC7B,CAEJ,CAAC,EAEY,CAAE,8BAAAO,GAAkCN"}
1
+ {"version":3,"file":"getCategories.cjs.js","sources":["../../../../../../src/api/queries/activities/getCategories.ts"],"sourcesContent":["import { ActivityCategoriesResponseModel, activityFeedApi } from '@shared/api/generated'\nimport { DefinitionsFromApi, OverrideResultType, TagTypesFromApi } from '@reduxjs/toolkit/query'\nimport { AccessLevel } from '@shared/components'\n\nconst listTag = { type: 'category', id: 'LIST' } as const\nconst settingsTag = { type: 'addonSettings', id: 'powerpack' } as const\n\nexport type ActivityCategory = {\n name: string\n color: string // hex color code\n access: Record<string, AccessLevel>\n accessLevel: AccessLevel\n}\ntype GetActivityCategoriesResult = ActivityCategory[]\n\ntype Definitions = DefinitionsFromApi<typeof activityFeedApi>\ntype TagTypes = TagTypesFromApi<typeof activityFeedApi>\n// update the definitions to include the new types\ntype UpdatedDefinitions = Omit<Definitions, 'getActivityCategories'> & {\n getActivityCategories: OverrideResultType<\n Definitions['getActivityCategories'],\n GetActivityCategoriesResult\n >\n}\n\nconst categoriesApi = activityFeedApi.enhanceEndpoints<TagTypes, UpdatedDefinitions>({\n endpoints: {\n getActivityCategories: {\n transformResponse: (res: ActivityCategoriesResponseModel) =>\n res.categories as ActivityCategory[],\n transformErrorResponse: (error: any) => error.data?.detail || 'An error occurred.',\n providesTags: (result) =>\n result\n ? [\n ...result.map(({ name }) => ({ type: 'category' as const, id: name })),\n listTag,\n settingsTag,\n ]\n : [listTag, settingsTag],\n },\n },\n})\n\nexport const { useGetActivityCategoriesQuery } = categoriesApi\n"],"names":["listTag","settingsTag","categoriesApi","activityFeedApi","res","error","result","name","useGetActivityCategoriesQuery"],"mappings":"oxDAIA,MAAMA,EAAU,CAAE,KAAM,WAAY,GAAI,MAAA,EAClCC,EAAc,CAAE,KAAM,gBAAiB,GAAI,WAAA,EAoB3CC,EAAgBC,EAAAA,IAAgB,iBAA+C,CACnF,UAAW,CACT,sBAAuB,CACrB,kBAAoBC,GAClBA,EAAI,WACN,uBAAyBC,GAAeA,EAAM,MAAM,QAAU,qBAC9D,aAAeC,GACbA,EACI,CACE,GAAGA,EAAO,IAAI,CAAC,CAAE,KAAAC,CAAA,KAAY,CAAE,KAAM,WAAqB,GAAIA,CAAA,EAAO,EACrEP,EACAC,CAAA,EAEF,CAACD,EAASC,CAAW,CAAA,CAC7B,CAEJ,CAAC,EAEY,CAAE,8BAAAO,GAAkCN"}
@@ -10,6 +10,7 @@ import "../../generated/attributes.es.js";
10
10
  import "../../generated/authentication.es.js";
11
11
  import "../../generated/bundles.es.js";
12
12
  import "../../generated/configuration.es.js";
13
+ import "../../generated/dataImport.es.js";
13
14
  import "../../generated/desktop.es.js";
14
15
  import "../../generated/entityLists.es.js";
15
16
  import "../../generated/events.es.js";
@@ -49,8 +50,8 @@ const o = { type: "category", id: "LIST" }, i = { type: "addonSettings", id: "po
49
50
  ] : [o, i]
50
51
  }
51
52
  }
52
- }), { useGetActivityCategoriesQuery: P } = m;
53
+ }), { useGetActivityCategoriesQuery: U } = m;
53
54
  export {
54
- P as useGetActivityCategoriesQuery
55
+ U as useGetActivityCategoriesQuery
55
56
  };
56
57
  //# sourceMappingURL=getCategories.es.js.map