@corva/ui 3.78.0-rc.0 → 3.79.0-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
  3. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  4. package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
  5. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  6. package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
  7. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  8. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  9. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  10. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  11. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  12. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  13. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  14. package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
  15. package/cjs-bundle/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
  16. package/cjs-bundle/components/DevCenter/AppsDataProvider/AppsDataProvider.js.map +1 -1
  17. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/constants.js.map +1 -1
  18. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
  19. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/dataResolvers.js.map +1 -1
  20. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
  21. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/useAppsData.js.map +1 -1
  22. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  23. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/utils.js.map +1 -1
  24. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  25. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  26. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  27. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  28. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppDialogs.js.map +1 -1
  29. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js.map +1 -1
  30. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/constants.js +1 -1
  31. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/constants.js.map +1 -1
  32. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
  33. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js.map +1 -1
  34. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/effects/useDevCenterAppProps.js.map +1 -1
  35. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/getAppDataEntryFromContext.js +2 -0
  36. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/getAppDataEntryFromContext.js.map +1 -0
  37. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  38. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -1
  39. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  40. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  41. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  42. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  43. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  44. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  45. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  46. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  47. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  48. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  49. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  50. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  51. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  52. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  53. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  54. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  55. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  56. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  57. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  58. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  59. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  60. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  61. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  62. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  63. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  64. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  65. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  66. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  67. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  68. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  69. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  70. package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
  71. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  72. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  73. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  74. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  75. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  76. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  77. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  78. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  79. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  80. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  81. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  82. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  83. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  84. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  85. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  86. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  87. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  88. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  89. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  90. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  91. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  92. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  93. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  94. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  95. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  96. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  97. package/components/AddComment/Popover.js +1 -1
  98. package/components/AddComment/Popover.js.map +1 -1
  99. package/components/AddComment/components/Content.js +1 -1
  100. package/components/AddComment/components/Content.js.map +1 -1
  101. package/components/BICOffsetPickerDialog/index.js +1 -1
  102. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  103. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  104. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  105. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  106. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  107. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  108. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  109. package/components/CollapsableSidebar.js +1 -1
  110. package/components/CollapsableSidebar.js.map +1 -1
  111. package/components/DevCenter/AppsDataProvider/AppsDataProvider.d.ts +3 -21
  112. package/components/DevCenter/AppsDataProvider/AppsDataProvider.d.ts.map +1 -1
  113. package/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
  114. package/components/DevCenter/AppsDataProvider/AppsDataProvider.js.map +1 -1
  115. package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/assetDashboard/wellAssetDashboard/appWithDefaultSettings.d.ts +22 -2
  116. package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/assetDashboard/wellAssetDashboard/appWithDefaultSettings.d.ts.map +1 -1
  117. package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/completion/appWithFracFleetId.d.ts +23 -2
  118. package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/completion/appWithFracFleetId.d.ts.map +1 -1
  119. package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/completion/appWithPadId.d.ts +20 -2
  120. package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/completion/appWithPadId.d.ts.map +1 -1
  121. package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/drilling/appWithActiveWellId.d.ts +27 -2
  122. package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/drilling/appWithActiveWellId.d.ts.map +1 -1
  123. package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/drilling/appWithRigId.d.ts +49 -3
  124. package/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/drilling/appWithRigId.d.ts.map +1 -1
  125. package/components/DevCenter/AppsDataProvider/effects/__tests__/utils.test.d.ts +2 -0
  126. package/components/DevCenter/AppsDataProvider/effects/__tests__/utils.test.d.ts.map +1 -0
  127. package/components/DevCenter/AppsDataProvider/effects/constants.d.ts +2 -7
  128. package/components/DevCenter/AppsDataProvider/effects/constants.d.ts.map +1 -1
  129. package/components/DevCenter/AppsDataProvider/effects/constants.js.map +1 -1
  130. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.d.ts +14 -10
  131. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.d.ts.map +1 -1
  132. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
  133. package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js.map +1 -1
  134. package/components/DevCenter/AppsDataProvider/effects/index.d.ts.map +1 -1
  135. package/components/DevCenter/AppsDataProvider/effects/useAppsData.d.ts +5 -5
  136. package/components/DevCenter/AppsDataProvider/effects/useAppsData.d.ts.map +1 -1
  137. package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
  138. package/components/DevCenter/AppsDataProvider/effects/useAppsData.js.map +1 -1
  139. package/components/DevCenter/AppsDataProvider/effects/utils.d.ts +33 -54
  140. package/components/DevCenter/AppsDataProvider/effects/utils.d.ts.map +1 -1
  141. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  142. package/components/DevCenter/AppsDataProvider/effects/utils.js.map +1 -1
  143. package/components/DevCenter/AppsDataProvider/index.d.ts +1 -0
  144. package/components/DevCenter/AppsDataProvider/index.d.ts.map +1 -1
  145. package/components/DevCenter/AppsDataProvider/types.d.ts +216 -0
  146. package/components/DevCenter/AppsDataProvider/types.d.ts.map +1 -0
  147. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
  148. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  149. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  150. package/components/DevCenter/DevCenterAppContainer/__tests__/getAppDataEntryFromContext.test.d.ts +2 -0
  151. package/components/DevCenter/DevCenterAppContainer/__tests__/getAppDataEntryFromContext.test.d.ts.map +1 -0
  152. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
  153. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  154. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  155. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppDialogs.d.ts +1 -1
  156. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppDialogs.d.ts.map +1 -1
  157. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppDialogs.js.map +1 -1
  158. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts +5 -3
  159. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts.map +1 -1
  160. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js.map +1 -1
  161. package/components/DevCenter/DevCenterAppContainer/constants.d.ts +0 -2
  162. package/components/DevCenter/DevCenterAppContainer/constants.d.ts.map +1 -1
  163. package/components/DevCenter/DevCenterAppContainer/constants.js +1 -1
  164. package/components/DevCenter/DevCenterAppContainer/constants.js.map +1 -1
  165. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.d.ts +1 -1
  166. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.d.ts.map +1 -1
  167. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
  168. package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js.map +1 -1
  169. package/components/DevCenter/DevCenterAppContainer/effects/useDevCenterAppProps.d.ts +7 -1
  170. package/components/DevCenter/DevCenterAppContainer/effects/useDevCenterAppProps.d.ts.map +1 -1
  171. package/components/DevCenter/DevCenterAppContainer/effects/useDevCenterAppProps.js.map +1 -1
  172. package/components/DevCenter/DevCenterAppContainer/getAppDataEntryFromContext.d.ts +12 -0
  173. package/components/DevCenter/DevCenterAppContainer/getAppDataEntryFromContext.d.ts.map +1 -0
  174. package/components/DevCenter/DevCenterAppContainer/getAppDataEntryFromContext.js +2 -0
  175. package/components/DevCenter/DevCenterAppContainer/getAppDataEntryFromContext.js.map +1 -0
  176. package/components/DevCenter/DevCenterAppContainer/types.d.ts +1 -6
  177. package/components/DevCenter/DevCenterAppContainer/types.d.ts.map +1 -1
  178. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  179. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -1
  180. package/components/DocumentViewer/DocumentViewer.js +1 -1
  181. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  182. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  183. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  184. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  185. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  186. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  187. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  188. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  189. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  190. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  191. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  192. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  193. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  194. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  195. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  196. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  197. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  198. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  199. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  200. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  201. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  202. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  203. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  204. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  205. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  206. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  207. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  208. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  209. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  210. package/components/FeedItem/FeedItem.js +1 -1
  211. package/components/FeedItem/FeedItem.js.map +1 -1
  212. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  213. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  214. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  215. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  216. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  217. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  218. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  219. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  220. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  221. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  222. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  223. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  224. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  225. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  226. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  227. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  228. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  229. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  230. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  231. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  232. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  233. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  234. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  235. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  236. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  237. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  238. package/mcp-server/server.mjs +6 -6
  239. package/package.json +1 -1
  240. package/tsconfig.tsbuildinfo +1 -1
@@ -8,7 +8,7 @@ export declare const hookProps: {
8
8
  dashboardAssetId: number;
9
9
  };
10
10
  export declare const initialResponse: {
11
- appWithDefaultProps: any;
11
+ appWithDefaultProps: import("../../../../..").InitializedAppDataEntry;
12
12
  };
13
13
  export declare const resolveResponse: {
14
14
  wells: {
@@ -68,6 +68,26 @@ export declare const wellsResponse: {
68
68
  })[];
69
69
  };
70
70
  export declare const fullResponse: {
71
- appWithDefaultProps: any;
71
+ appWithDefaultProps: {
72
+ id: import("../../../../../types").AppId;
73
+ fracFleet: null;
74
+ interventionUnit: null;
75
+ program: import("../../../../../types").AppDataProgram;
76
+ completionWellInfo: {
77
+ pad: import("../../../../../types").AppDataAssetSummary;
78
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
79
+ } & {
80
+ pad: import("../../../../../types").AppDataAssetSummary;
81
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
82
+ };
83
+ wells: null;
84
+ settings?: import("../../../../../types").AppSettings;
85
+ appHash: string;
86
+ rig: Pick<any, string | number | symbol>;
87
+ well: {
88
+ companyId: number;
89
+ };
90
+ isLoading: boolean;
91
+ };
72
92
  };
73
93
  //# sourceMappingURL=appWithDefaultSettings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appWithDefaultSettings.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/assetDashboard/wellAssetDashboard/appWithDefaultSettings.js"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;YAIT,QAAQ;;;;CAIpB,CAAC;AAIF,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;CAY3B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;gBAQhB,QAAQ;gBACR,QAAQ;oBAAI,GAAG;oBAAW,WAAW;;gBACrC,WAAW;gBACX,oBAAoB;gBACpB,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBxC,CAAC;AAIF,eAAO,MAAM,YAAY;;CAUxB,CAAC"}
1
+ {"version":3,"file":"appWithDefaultSettings.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/assetDashboard/wellAssetDashboard/appWithDefaultSettings.js"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;YAIT,QAAQ;;;;CAIpB,CAAC;AAIF,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;CAY3B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;gBAQhB,QAAQ;gBACR,QAAQ;oBAAI,GAAG;oBAAW,WAAW;;gBACrC,WAAW;gBACX,oBAAoB;gBACpB,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBxC,CAAC;AAIF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAC"}
@@ -11,7 +11,7 @@ export declare const hookProps: {
11
11
  }[];
12
12
  };
13
13
  export declare const initialResponse: {
14
- 1789975: any;
14
+ 1789975: import("../../../../..").InitializedAppDataEntry;
15
15
  };
16
16
  export declare const fracFleetResponse: {
17
17
  data: {
@@ -98,6 +98,27 @@ export declare const fracFleetWellsResponse: {
98
98
  }[];
99
99
  };
100
100
  export declare const fullResponse: {
101
- 1789975: any;
101
+ 1789975: {
102
+ id: import("../../../../../types").AppId;
103
+ rig: null;
104
+ well: null;
105
+ interventionUnit: null;
106
+ completionWellInfo: {
107
+ pad: import("../../../../../types").AppDataAssetSummary;
108
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
109
+ } & {
110
+ pad: import("../../../../../types").AppDataAssetSummary;
111
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
112
+ };
113
+ settings?: import("../../../../../types").AppSettings;
114
+ appHash: string;
115
+ fracFleet: any;
116
+ wells: import("jsona/lib/JsonaTypes").TJsonaModel[] | import("jsona/lib/JsonaTypes").TJsonaModel;
117
+ isLoading: boolean;
118
+ program: {
119
+ id: number;
120
+ name: string;
121
+ };
122
+ };
102
123
  };
103
124
  //# sourceMappingURL=appWithFracFleetId.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appWithFracFleetId.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/completion/appWithFracFleetId.js"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;YAKT,QAAQ;;;CAGpB,CAAC;AAIF,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;YAKV,IAAI;YAAe,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA+B3C,EAAE;gBACF,IAAI;;;;;;;;CAwBb,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;YAM3B,QAAQ;YACR,IAAI;;;;;;;;;;gBAIG,IAAI;oBAAI,EAAE;oBAAY,IAAI;;;;;;;;;YAqBjC,EAAE;YACF,MAAM;YACN,UAAU;YACV,OAAO;YACP,WAAW;;;CAelB,CAAC;AAEF,eAAO,MAAM,YAAY;;CAWxB,CAAC"}
1
+ {"version":3,"file":"appWithFracFleetId.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/completion/appWithFracFleetId.js"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;YAKT,QAAQ;;;CAGpB,CAAC;AAIF,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;YAKV,IAAI;YAAe,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA+B3C,EAAE;gBACF,IAAI;;;;;;;;CAwBb,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;YAM3B,QAAQ;YACR,IAAI;;;;;;;;;;gBAIG,IAAI;oBAAI,EAAE;oBAAY,IAAI;;;;;;;;;YAqBjC,EAAE;YACF,MAAM;YACN,UAAU;YACV,OAAO;YACP,WAAW;;;CAelB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;CAWxB,CAAC"}
@@ -11,7 +11,7 @@ export declare const hookProps: {
11
11
  }[];
12
12
  };
13
13
  export declare const initialResponse: {
14
- 1789975: any;
14
+ 1789975: import("../../../../..").InitializedAppDataEntry;
15
15
  };
16
16
  export declare const fracFleetResponse: {
17
17
  data: {
@@ -82,6 +82,24 @@ export declare const padWellsResponse: {
82
82
  }[];
83
83
  };
84
84
  export declare const fullResponse: {
85
- 1789975: any;
85
+ 1789975: {
86
+ id: import("../../../../../types").AppId;
87
+ rig: null;
88
+ well: null;
89
+ interventionUnit: null;
90
+ program: import("../../../../../types").AppDataProgram;
91
+ completionWellInfo: {
92
+ pad: import("../../../../../types").AppDataAssetSummary;
93
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
94
+ } & {
95
+ pad: import("../../../../../types").AppDataAssetSummary;
96
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
97
+ };
98
+ settings?: import("../../../../../types").AppSettings;
99
+ appHash: string;
100
+ fracFleet: any;
101
+ wells: import("jsona/lib/JsonaTypes").TJsonaModel[] | import("jsona/lib/JsonaTypes").TJsonaModel;
102
+ isLoading: boolean;
103
+ };
86
104
  };
87
105
  //# sourceMappingURL=appWithPadId.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appWithPadId.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/completion/appWithPadId.js"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;YAKT,QAAQ;;;CAGpB,CAAC;AAIF,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;YAKV,IAAI;YAAuB,cAAc;;;;;;;;;;;;;;;;;gBAkBnD,EAAE;gBACF,IAAI;;;;;;;;CAwBb,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;YAMrB,QAAQ;YACR,IAAI;;;;;;;;;;gBAIG,IAAI;oBAAI,EAAE;oBAAW,IAAI;;;;;;;;;YAShC,EAAE;YACF,MAAM;YACN,UAAU;YACV,OAAO;YACP,WAAW;;;CAIlB,CAAC;AAEF,eAAO,MAAM,YAAY;;CAOxB,CAAC"}
1
+ {"version":3,"file":"appWithPadId.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/completion/appWithPadId.js"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;YAKT,QAAQ;;;CAGpB,CAAC;AAIF,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;YAKV,IAAI;YAAuB,cAAc;;;;;;;;;;;;;;;;;gBAkBnD,EAAE;gBACF,IAAI;;;;;;;;CAwBb,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;YAMrB,QAAQ;YACR,IAAI;;;;;;;;;;gBAIG,IAAI;oBAAI,EAAE;oBAAW,IAAI;;;;;;;;;YAShC,EAAE;YACF,MAAM;YACN,UAAU;YACV,OAAO;YACP,WAAW;;;CAIlB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAOxB,CAAC"}
@@ -11,10 +11,35 @@ export declare const hookProps: {
11
11
  }[];
12
12
  };
13
13
  export declare const initialResponse: {
14
- 1789664: any;
14
+ 1789664: import("../../../../..").InitializedAppDataEntry;
15
15
  };
16
16
  export declare const fullResponse: {
17
- 1789664: any;
17
+ 1789664: {
18
+ id: import("../../../../../types").AppId;
19
+ fracFleet: null;
20
+ interventionUnit: null;
21
+ program: import("../../../../../types").AppDataProgram;
22
+ completionWellInfo: {
23
+ pad: import("../../../../../types").AppDataAssetSummary;
24
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
25
+ } & {
26
+ pad: import("../../../../../types").AppDataAssetSummary;
27
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
28
+ };
29
+ wells: null;
30
+ settings?: import("../../../../../types").AppSettings;
31
+ appHash: string;
32
+ rig: {
33
+ name: string;
34
+ id: number;
35
+ asset_id: number;
36
+ };
37
+ well: {
38
+ id: number;
39
+ companyId: number;
40
+ };
41
+ isLoading: boolean;
42
+ };
18
43
  };
19
44
  export declare const wellsResponse: {
20
45
  data: {
@@ -1 +1 @@
1
- {"version":3,"file":"appWithActiveWellId.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/drilling/appWithActiveWellId.js"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;YAKT,QAAQ;;;CAGpB,CAAC;AAIF,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,YAAY;;CAUxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC"}
1
+ {"version":3,"file":"appWithActiveWellId.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/drilling/appWithActiveWellId.js"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;YAKT,QAAQ;;;CAGpB,CAAC;AAIF,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC"}
@@ -12,13 +12,59 @@ export declare const hookProps: {
12
12
  }[];
13
13
  };
14
14
  export declare const initialResponse: {
15
- 1789664: any;
15
+ 1789664: import("../../../../..").InitializedAppDataEntry;
16
16
  };
17
17
  export declare const failedResponse: {
18
- 1789664: any;
18
+ 1789664: {
19
+ id: import("../../../../../types").AppId;
20
+ rig: null;
21
+ well: null;
22
+ fracFleet: null;
23
+ interventionUnit: null;
24
+ program: import("../../../../../types").AppDataProgram;
25
+ completionWellInfo: {
26
+ pad: import("../../../../../types").AppDataAssetSummary;
27
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
28
+ } & {
29
+ pad: import("../../../../../types").AppDataAssetSummary;
30
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
31
+ };
32
+ wells: null;
33
+ settings?: import("../../../../../types").AppSettings;
34
+ appHash: string;
35
+ isLoading: boolean;
36
+ };
19
37
  };
20
38
  export declare const fullResponse: {
21
- 1789664: any;
39
+ 1789664: {
40
+ id: import("../../../../../types").AppId;
41
+ fracFleet: null;
42
+ interventionUnit: null;
43
+ completionWellInfo: {
44
+ pad: import("../../../../../types").AppDataAssetSummary;
45
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
46
+ } & {
47
+ pad: import("../../../../../types").AppDataAssetSummary;
48
+ fracFleet: import("../../../../../types").AppDataAssetSummary;
49
+ };
50
+ wells: null;
51
+ settings?: import("../../../../../types").AppSettings;
52
+ appHash: string;
53
+ rig: {
54
+ name: string;
55
+ id: number;
56
+ asset_id: number;
57
+ };
58
+ well: {
59
+ id: number;
60
+ companyId: number;
61
+ };
62
+ program: {
63
+ id: number;
64
+ name: string;
65
+ };
66
+ isLoading: boolean;
67
+ };
22
68
  };
23
69
  export declare const rigsResponse: {
24
70
  data: {
@@ -1 +1 @@
1
- {"version":3,"file":"appWithRigId.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/drilling/appWithRigId.js"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,UAAU,CAAC;AAS9B,eAAO,MAAM,SAAS;;;;;;;;YAKT,QAAQ;;;CAGpB,CAAC;AAIF,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,cAAc;;CAE1B,CAAC;AAEF,eAAO,MAAM,YAAY;;CAcxB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAC"}
1
+ {"version":3,"file":"appWithRigId.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/mocks/generalDashboard/drilling/appWithRigId.js"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,UAAU,CAAC;AAS9B,eAAO,MAAM,SAAS;;;;;;;;YAKT,QAAQ;;;CAGpB,CAAC;AAIF,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;CAE1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcxB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/AppsDataProvider/effects/__tests__/utils.test.js"],"names":[],"mappings":""}
@@ -1,10 +1,5 @@
1
+ export type AppsDataRequest = 'WELLS' | 'RIGS' | 'FRAC_FLEETS' | 'FRAC_FLEET_WELLS' | 'PAD_WELLS' | 'INTERVENTION_UNITS' | 'INTERVENTION_UNIT_WELLS';
1
2
  export declare const APPS_DATA_REQUESTS: {
2
- WELLS: string;
3
- RIGS: string;
4
- FRAC_FLEETS: string;
5
- FRAC_FLEET_WELLS: string;
6
- PAD_WELLS: string;
7
- INTERVENTION_UNITS: string;
8
- INTERVENTION_UNIT_WELLS: string;
3
+ [Request in AppsDataRequest]: Request;
9
4
  };
10
5
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/constants.js"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;IAC7B,KAAK;IACL,IAAI;IACJ,WAAW;IACX,gBAAgB;IAChB,SAAS;IACT,kBAAkB;IAClB,uBAAuB;CACxB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/constants.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,MAAM,GACN,aAAa,GACb,kBAAkB,GAClB,WAAW,GACX,oBAAoB,GACpB,yBAAyB,CAAC;AAE9B,eAAO,MAAM,kBAAkB,EAAE;KAAG,OAAO,IAAI,eAAe,GAAG,OAAO;CAQvE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/constants.js"],"sourcesContent":["export const APPS_DATA_REQUESTS = {\n WELLS: 'WELLS',\n RIGS: 'RIGS',\n FRAC_FLEETS: 'FRAC_FLEETS',\n FRAC_FLEET_WELLS: 'FRAC_FLEET_WELLS',\n PAD_WELLS: 'PAD_WELLS',\n INTERVENTION_UNITS: 'INTERVENTION_UNITS',\n INTERVENTION_UNIT_WELLS: 'INTERVENTION_UNIT_WELLS',\n};\n"],"names":["APPS_DATA_REQUESTS","WELLS","RIGS","FRAC_FLEETS","FRAC_FLEET_WELLS","PAD_WELLS","INTERVENTION_UNITS","INTERVENTION_UNIT_WELLS"],"mappings":"AAAO,IAAMA,EAAqB,CAChCC,MAAO,QACPC,KAAM,OACNC,YAAa,cACbC,iBAAkB,mBAClBC,UAAW,YACXC,mBAAoB,qBACpBC,wBAAyB"}
1
+ {"version":3,"file":"constants.js","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/constants.ts"],"sourcesContent":["export type AppsDataRequest =\n | 'WELLS'\n | 'RIGS'\n | 'FRAC_FLEETS'\n | 'FRAC_FLEET_WELLS'\n | 'PAD_WELLS'\n | 'INTERVENTION_UNITS'\n | 'INTERVENTION_UNIT_WELLS';\n\nexport const APPS_DATA_REQUESTS: { [Request in AppsDataRequest]: Request } = {\n WELLS: 'WELLS',\n RIGS: 'RIGS',\n FRAC_FLEETS: 'FRAC_FLEETS',\n FRAC_FLEET_WELLS: 'FRAC_FLEET_WELLS',\n PAD_WELLS: 'PAD_WELLS',\n INTERVENTION_UNITS: 'INTERVENTION_UNITS',\n INTERVENTION_UNIT_WELLS: 'INTERVENTION_UNIT_WELLS',\n};\n"],"names":["APPS_DATA_REQUESTS","WELLS","RIGS","FRAC_FLEETS","FRAC_FLEET_WELLS","PAD_WELLS","INTERVENTION_UNITS","INTERVENTION_UNIT_WELLS"],"mappings":"AASO,IAAMA,EAAgE,CAC3EC,MAAO,QACPC,KAAM,OACNC,YAAa,cACbC,iBAAkB,mBAClBC,UAAW,YACXC,mBAAoB,qBACpBC,wBAAyB"}
@@ -1,11 +1,15 @@
1
- export declare const getDeprecatedAssetIds: (apps: any, dashboardAssetId: any) => any[];
2
- export declare function getAppSettingsByDeprecatedAssetId(deprecatedAssetIds: any, cache: any): Promise<any>;
3
- export declare function getAppsWithUnifiedSettings(apps: any, dashboardAssetId: any, cache: any): Promise<any>;
4
- export declare function resolveAppsData({ apps, dashboardAssetId, cache, updateCache, requests, }: {
5
- apps: any;
6
- cache: any;
7
- dashboardAssetId: any;
8
- requests?: string[] | undefined;
9
- updateCache: any;
10
- }): Promise<any>;
1
+ import type { AppDataPatches, AppSettings, AppsDataCacheRef, AssetId, DashboardAssetId, PreparedProviderApp, ProviderApp, UpdateAppsDataCache } from '../types';
2
+ import type { AppsDataRequest } from './constants';
3
+ type ResolveAppsDataParams = {
4
+ apps: PreparedProviderApp[];
5
+ dashboardAssetId?: DashboardAssetId;
6
+ cache: AppsDataCacheRef;
7
+ updateCache: UpdateAppsDataCache;
8
+ requests?: AppsDataRequest[];
9
+ };
10
+ export declare const getDeprecatedAssetIds: (apps: ProviderApp[], dashboardAssetId?: DashboardAssetId) => Array<AssetId | null | undefined>;
11
+ export declare const getAppSettingsByDeprecatedAssetId: (deprecatedAssetIds: Array<AssetId | null | undefined>, cache: AppsDataCacheRef) => Promise<Record<string, AppSettings>>;
12
+ export declare const getAppsWithUnifiedSettings: (apps: PreparedProviderApp[], dashboardAssetId: DashboardAssetId, cache: AppsDataCacheRef) => Promise<PreparedProviderApp[]>;
13
+ export declare const resolveAppsData: ({ apps, dashboardAssetId, cache, updateCache, requests, }: ResolveAppsDataParams) => Promise<AppDataPatches>;
14
+ export {};
11
15
  //# sourceMappingURL=dataResolvers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataResolvers.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/dataResolvers.js"],"names":[],"mappings":"AAiCA,eAAO,MAAM,qBAAqB,6CAWjC,CAAC;AAEF,wBAAsB,iCAAiC,CAAC,kBAAkB,KAAA,EAAE,KAAK,KAAA,gBAmChF;AAGD,wBAAsB,0BAA0B,CAAC,IAAI,KAAA,EAAE,gBAAgB,KAAA,EAAE,KAAK,KAAA,gBAgB7E;AAED,wBAAsB,eAAe,CAAC,EACpC,IAAI,EACJ,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,QAA2B,GAC5B;;;;;;CAAA,gBA+HA"}
1
+ {"version":3,"file":"dataResolvers.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/dataResolvers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAiCnD,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,mBAAmB,EAAE,CAAC;IAC5B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,KAAK,EAAE,gBAAgB,CAAC;IACxB,WAAW,EAAE,mBAAmB,CAAC;IACjC,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,qBAAqB,SAC1B,WAAW,EAAE,qBACA,gBAAgB,KAClC,KAAK,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAWlC,CAAC;AAEF,eAAO,MAAM,iCAAiC,uBACxB,KAAK,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,SAC9C,gBAAgB,KACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAoCrC,CAAC;AAGF,eAAO,MAAM,0BAA0B,SAC/B,mBAAmB,EAAE,oBACT,gBAAgB,SAC3B,gBAAgB,KACtB,OAAO,CAAC,mBAAmB,EAAE,CAgB/B,CAAC;AAEF,eAAO,MAAM,eAAe,8DAMzB,qBAAqB,KAAG,OAAO,CAAC,cAAc,CA4EhD,CAAC"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/toConsumableArray";import i from"@babel/runtime/regenerator";import{keyBy as a,get as s,merge as u}from"lodash";import{getAppsDataByWells as d,getAppsDataByRigs as c,getAppsDataByFFs as o,getAppsDataByPads as p,getAppsDataByInterventionUnits as l,prepareDataForResolver as f,getUniqAssetIds as m,fetchWells as y,fetchRigs as I,fetchFracFleets as b,fetchFracFleetWells as h,fetchPadWells as v,fetchInterventionUnits as g,isAppWithSettings as E,getAppAssetSpecificTypeId as w,fetchAssetEntitiesByAssetIds as O}from"./utils.js";import{APPS_DATA_REQUESTS as _}from"./constants.js";import{ASSET_TYPES as L}from"../../../../constants/assetTypes.js";function T(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var S=[_.WELLS,_.RIGS,_.FRAC_FLEETS,_.FRAC_FLEET_WELLS,_.PAD_WELLS,_.INTERVENTION_UNITS],j=function(e,r){var t=e.reduce((function(e,t){if(E(t))return e;var n=w(t,"deprecatedAssetId");return e.add(n||r),e}),new Set);return n(t)};function N(e,r){return A.apply(this,arguments)}function A(){return(A=t(i.mark((function e(t,n){var a,s,u,d,c,o,p;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.current.deprecatedAssetData,s=Object.keys(a),(u=t.filter((function(e){return!s.includes(String(e))}))).length){e.next=5;break}return e.abrupt("return",a);case 5:return e.next=7,O(u);case 7:if(d=e.sent){e.next=10;break}return e.abrupt("return",a);case 10:return c={rig:L.rig.id,well:L.well.id},o=Object.values(d).flat().reduce((function(e,t){var n=t.data;return e[n.attributes.asset_id]=r({},c[n.type],n.id),e}),{}),p=F(F({},a),o),n.current.cachedDeprecatedAssetData=p,e.abrupt("return",p);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e,r,t){return R.apply(this,arguments)}function R(){return(R=t(i.mark((function e(r,t,n){var a;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N(j(r,t),n);case 2:return a=e.sent,e.abrupt("return",r.map((function(e){if(E(e))return e;var r=w(e,"deprecatedAssetId");return F(F({},e),{},{settings:a[r||t]})})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e){return x.apply(this,arguments)}function x(){return(x=t(i.mark((function r(t){var n,E,w,O,L,T,j,N,A,R,W,x,B,D,U,k,C,q,V,G,z,H,J,K,M,Q,X,Y,Z,$,ee,re,te,ne,ie,ae,se;return i.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.apps,E=t.dashboardAssetId,w=t.cache,O=t.updateCache,L=t.requests,T=void 0===L?S:L,r.next=3,P(n,E,w);case 3:return j=r.sent,N=f(j,w),A=N.appsWellIds,R=N.appsRigIds,W=N.appsFracFleetIds,x=N.appsInterventionUnitIds,B=N.appsFracFleetToFetchWellsIds,D=N.appsPadIds,U=N.uniqueWellIds,k=N.uniqueRigIds,C=N.uniqueFFIds,q=N.uniqueInterventionUnitIds,V=m(x,[]),G=T.includes(_.INTERVENTION_UNIT_WELLS)?V:q,r.next=9,Promise.all([T.includes(_.WELLS)&&y(U),T.includes(_.RIGS)&&I(k),T.includes(_.FRAC_FLEETS)&&b(C),T.includes(_.FRAC_FLEET_WELLS)&&h(B,n),T.includes(_.PAD_WELLS)&&v(D,n),(T.includes(_.INTERVENTION_UNITS)||T.includes(_.INTERVENTION_UNIT_WELLS))&&g(G)]);case 9:return z=r.sent,H=e(z,6),J=H[0],K=H[1],M=H[2],Q=H[3],X=H[4],Y=H[5],Z=(null==J?void 0:J.data)&&a(J.data.map((function(e){var r=s(e,"relationships.rig.data.id"),t=s(e,"relationships.program.data.id"),n=s(e,"relationships.frac_fleet.data.id"),i=s(e,"relationships.pad.data.id"),a=J.included.find((function(e){return"rig"===e.type&&e.id===r})),u=J.included.find((function(e){return"program"===e.type&&e.id===t})),d=J.included.find((function(e){return"frac_fleet"===e.type&&e.id===n})),c=J.included.find((function(e){return"pad"===e.type&&e.id===i}));return F(F({},e),{},{rig:F(F({},a),{},{program:u}),fracFleet:d,pad:c})})),"id"),$=(null==K?void 0:K.data)&&a(K.data.map((function(e){var r=s(e,"relationships.active_well.data.id")||s(e,"relationships.last_active_well.data.id"),t=s(e,"relationships.program.data.id"),n=K.included.find((function(e){return"well"===e.type&&e.id===r})),i=K.included.find((function(e){return"program"===e.type&&e.id===t}));return F(F({},e),{},{well:n,program:i})})),"id"),ee=M&&a(M,"id"),re=(null==Y?void 0:Y.data)&&a(Y.data.map((function(e){var r=s(e,"relationships.active_well.data.id"),t=Y.included.find((function(e){return"well"===e.type&&e.id===r}));return F(F({},e),{},{name:e.attributes.name,well:t})})),"id"),O({wellsById:Z||{},rigsById:$||{},fracFleetsById:ee||{},interventionUnitsById:re||{}}),te=d(A,w.current.wellsById),ne=c(R,w.current.rigsById),ie=o(W,w.current.fracFleetsById,Q),ae=p(D,X),se=l(x,w.current.interventionUnitsById,A,w.current.wellsById),r.abrupt("return",u(te,ne,ie,ae,se));case 28:case"end":return r.stop()}}),r)})))).apply(this,arguments)}export{N as getAppSettingsByDeprecatedAssetId,P as getAppsWithUnifiedSettings,j as getDeprecatedAssetIds,W as resolveAppsData};
1
+ import e from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/toConsumableArray";import s from"@babel/runtime/regenerator";import{merge as u}from"lodash";import{ASSET_TYPES as a}from"../../../../constants/assetTypes.js";import{APPS_DATA_REQUESTS as i}from"./constants.js";import{buildWellCache as c,buildRigCache as o,buildFracFleetCache as p,buildInterventionUnitCache as d,getAppsDataByWells as l,getAppsDataByRigs as f,getAppsDataByFFs as I,getAppsDataByPads as b,getAppsDataByInterventionUnits as m,prepareDataForResolver as y,getUniqAssetIds as E,fetchWells as v,fetchRigs as O,fetchFracFleets as h,fetchFracFleetWells as L,fetchPadWells as T,fetchInterventionUnits as S,isAppWithSettings as g,getAppAssetSpecificTypeId as w,fetchAssetEntitiesByAssetIds as F}from"./utils.js";function j(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var _=[i.WELLS,i.RIGS,i.FRAC_FLEETS,i.FRAC_FLEET_WELLS,i.PAD_WELLS,i.INTERVENTION_UNITS],A=function(e,r){var t=e.reduce((function(e,t){if(g(t))return e;var n=w(t,"deprecatedAssetId");return e.add(n||r),e}),new Set);return n(t)},P=function(){var e=t(s.mark((function e(t,n){var u,i,c,o,p,d,l;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=n.current.deprecatedAssetData,i=Object.keys(u),(c=t.filter((function(e){return!i.includes(String(e))}))).length){e.next=5;break}return e.abrupt("return",u);case 5:return e.next=7,F(c);case 7:if(o=e.sent){e.next=10;break}return e.abrupt("return",u);case 10:return p={rig:a.rig.id,well:a.well.id},d=Object.values(o).flat().reduce((function(e,t){var n=t.data;return e[n.attributes.asset_id]=r({},p[n.type],n.id),e}),{}),l=N(N({},u),d),n.current.cachedDeprecatedAssetData=l,e.abrupt("return",l);case 15:case"end":return e.stop()}}),e)})));return function(r,t){return e.apply(this,arguments)}}(),R=function(){var e=t(s.mark((function e(r,t,n){var u;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(A(r,t),n);case 2:return u=e.sent,e.abrupt("return",r.map((function(e){if(g(e))return e;var r=w(e,"deprecatedAssetId");return N(N({},e),{},{settings:u[r||String(t)]})})));case 4:case"end":return e.stop()}}),e)})));return function(r,t,n){return e.apply(this,arguments)}}(),W=function(){var r=t(s.mark((function r(t){var n,a,g,w,F,j,N,A,P,W,x,B,D,U,k,C,q,V,G,z,H,J,K,M,Q,X,Y,Z,$,ee,re,te,ne,se,ue,ae,ie;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.apps,a=t.dashboardAssetId,g=t.cache,w=t.updateCache,F=t.requests,j=void 0===F?_:F,r.next=3,R(n,a,g);case 3:return N=r.sent,A=y(N,g),P=A.appsWellIds,W=A.appsRigIds,x=A.appsFracFleetIds,B=A.appsInterventionUnitIds,D=A.appsFracFleetToFetchWellsIds,U=A.appsPadIds,k=A.uniqueWellIds,C=A.uniqueRigIds,q=A.uniqueFFIds,V=A.uniqueInterventionUnitIds,G=E(B,[]),z=j.includes(i.INTERVENTION_UNIT_WELLS)?G:V,r.next=9,Promise.all([j.includes(i.WELLS)&&v(k),j.includes(i.RIGS)&&O(C),j.includes(i.FRAC_FLEETS)&&h(q),j.includes(i.FRAC_FLEET_WELLS)&&L(D,n),j.includes(i.PAD_WELLS)&&T(U,n),(j.includes(i.INTERVENTION_UNITS)||j.includes(i.INTERVENTION_UNIT_WELLS))&&S(z)]);case 9:return H=r.sent,J=e(H,6),K=J[0],M=J[1],Q=J[2],X=J[3],Y=J[4],Z=J[5],$=K?c(K):{},ee=M?o(M):{},re=Q?p(Q):{},te=Z?d(Z):{},w({wellsById:$,rigsById:ee,fracFleetsById:re,interventionUnitsById:te}),ne=l(P,g.current.wellsById),se=f(W,g.current.rigsById),ue=I(x,g.current.fracFleetsById,X),ae=b(U,Y),ie=m(B,g.current.interventionUnitsById,P,g.current.wellsById),r.abrupt("return",u(ne,se,ue,ae,ie));case 28:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();export{P as getAppSettingsByDeprecatedAssetId,R as getAppsWithUnifiedSettings,A as getDeprecatedAssetIds,W as resolveAppsData};
2
2
  //# sourceMappingURL=dataResolvers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataResolvers.js","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/dataResolvers.js"],"sourcesContent":["import { get, keyBy, merge } from 'lodash';\n\nimport {\n fetchAssetEntitiesByAssetIds,\n fetchRigs,\n fetchWells,\n fetchFracFleets,\n fetchFracFleetWells,\n fetchPadWells,\n getAppsDataByWells,\n getAppsDataByRigs,\n getAppsDataByFFs,\n getAppsDataByPads,\n prepareDataForResolver,\n getAppAssetSpecificTypeId,\n isAppWithSettings,\n fetchInterventionUnits,\n getAppsDataByInterventionUnits,\n getUniqAssetIds,\n} from './utils';\nimport { APPS_DATA_REQUESTS } from './constants';\n\nimport { ASSET_TYPES } from '~/constants/assetTypes';\n\nconst DEFAULT_REQUESTS = [\n APPS_DATA_REQUESTS.WELLS,\n APPS_DATA_REQUESTS.RIGS,\n APPS_DATA_REQUESTS.FRAC_FLEETS,\n APPS_DATA_REQUESTS.FRAC_FLEET_WELLS,\n APPS_DATA_REQUESTS.PAD_WELLS,\n APPS_DATA_REQUESTS.INTERVENTION_UNITS,\n];\n\nexport const getDeprecatedAssetIds = (apps, dashboardAssetId) => {\n const uniqueIds = apps.reduce((acc, app) => {\n if (isAppWithSettings(app)) return acc;\n\n const deprecatedAssetId = getAppAssetSpecificTypeId(app, 'deprecatedAssetId');\n acc.add(deprecatedAssetId || dashboardAssetId);\n\n return acc;\n }, new Set());\n\n return [...uniqueIds];\n};\n\nexport async function getAppSettingsByDeprecatedAssetId(deprecatedAssetIds, cache) {\n const { deprecatedAssetData: cachedDeprecatedAssetData } = cache.current;\n const cachedDeprecatedAssetIds = Object.keys(cachedDeprecatedAssetData);\n const notResolvedDeprecatedAssetIds = deprecatedAssetIds.filter(\n deprecatedAssetId => !cachedDeprecatedAssetIds.includes(String(deprecatedAssetId))\n );\n\n if (!notResolvedDeprecatedAssetIds.length) return cachedDeprecatedAssetData;\n\n const assetsData = await fetchAssetEntitiesByAssetIds(notResolvedDeprecatedAssetIds);\n\n if (!assetsData) return cachedDeprecatedAssetData;\n\n const MAP_DEPRECATED_ASSET_TYPE_TO_APP_SETTINGS = {\n rig: ASSET_TYPES.rig.id,\n well: ASSET_TYPES.well.id,\n };\n\n const dataByDeprecatedAssetId = Object.values(assetsData)\n .flat()\n .reduce((acc, { data }) => {\n acc[data.attributes.asset_id] = {\n [MAP_DEPRECATED_ASSET_TYPE_TO_APP_SETTINGS[data.type]]: data.id,\n };\n return acc;\n }, {});\n\n const updatedCachedDeprecatedAssetData = {\n ...cachedDeprecatedAssetData,\n ...dataByDeprecatedAssetId,\n };\n // eslint-disable-next-line no-param-reassign\n cache.current.cachedDeprecatedAssetData = updatedCachedDeprecatedAssetData;\n\n return updatedCachedDeprecatedAssetData;\n}\n\n// NOTE: converts feed page apps and asset page apps deprecated asset ids to regular rigId/wellId in app settings\nexport async function getAppsWithUnifiedSettings(apps, dashboardAssetId, cache) {\n const appSettingsByDeprecatedAssetId = await getAppSettingsByDeprecatedAssetId(\n getDeprecatedAssetIds(apps, dashboardAssetId),\n cache\n );\n\n return apps.map(app => {\n if (isAppWithSettings(app)) return app;\n\n const appDeprecatedAssetId = getAppAssetSpecificTypeId(app, 'deprecatedAssetId');\n\n return {\n ...app,\n settings: appSettingsByDeprecatedAssetId[appDeprecatedAssetId || dashboardAssetId],\n };\n });\n}\n\nexport async function resolveAppsData({\n apps,\n dashboardAssetId,\n cache,\n updateCache,\n requests = DEFAULT_REQUESTS,\n}) {\n const unifiedApps = await getAppsWithUnifiedSettings(apps, dashboardAssetId, cache);\n const {\n appsWellIds,\n appsRigIds,\n appsFracFleetIds,\n appsInterventionUnitIds,\n appsFracFleetToFetchWellsIds,\n appsPadIds,\n uniqueWellIds,\n uniqueRigIds,\n uniqueFFIds,\n uniqueInterventionUnitIds,\n } = prepareDataForResolver(unifiedApps, cache);\n\n // NOTE: Non-cache-filtered IDs for intervention unit wells refresh\n const allInterventionUnitIds = getUniqAssetIds(appsInterventionUnitIds, []);\n const interventionUnitIdsToFetch = requests.includes(APPS_DATA_REQUESTS.INTERVENTION_UNIT_WELLS)\n ? allInterventionUnitIds\n : uniqueInterventionUnitIds;\n\n const [\n wellsResponse,\n rigsResponse,\n ffsResponse,\n ffWellsData,\n padWellsData,\n interventionUnitsResponse,\n ] = await Promise.all([\n requests.includes(APPS_DATA_REQUESTS.WELLS) && fetchWells(uniqueWellIds),\n requests.includes(APPS_DATA_REQUESTS.RIGS) && fetchRigs(uniqueRigIds),\n requests.includes(APPS_DATA_REQUESTS.FRAC_FLEETS) && fetchFracFleets(uniqueFFIds),\n requests.includes(APPS_DATA_REQUESTS.FRAC_FLEET_WELLS) &&\n fetchFracFleetWells(appsFracFleetToFetchWellsIds, apps),\n requests.includes(APPS_DATA_REQUESTS.PAD_WELLS) && fetchPadWells(appsPadIds, apps),\n (requests.includes(APPS_DATA_REQUESTS.INTERVENTION_UNITS) ||\n requests.includes(APPS_DATA_REQUESTS.INTERVENTION_UNIT_WELLS)) &&\n fetchInterventionUnits(interventionUnitIdsToFetch),\n ]);\n\n const fetchedWellsById =\n wellsResponse?.data &&\n keyBy(\n wellsResponse.data.map(well => {\n const rigId = get(well, 'relationships.rig.data.id');\n const programId = get(well, 'relationships.program.data.id');\n const fracFleetId = get(well, 'relationships.frac_fleet.data.id');\n const padId = get(well, 'relationships.pad.data.id');\n\n const rig = wellsResponse.included.find(item => item.type === 'rig' && item.id === rigId);\n const program = wellsResponse.included.find(\n item => item.type === 'program' && item.id === programId\n );\n const fracFleet = wellsResponse.included.find(\n item => item.type === 'frac_fleet' && item.id === fracFleetId\n );\n const pad = wellsResponse.included.find(item => item.type === 'pad' && item.id === padId);\n\n return { ...well, rig: { ...rig, program }, fracFleet, pad };\n }),\n 'id'\n );\n const fetchedRigsById =\n rigsResponse?.data &&\n keyBy(\n rigsResponse.data.map(rig => {\n const wellId =\n get(rig, 'relationships.active_well.data.id') ||\n get(rig, 'relationships.last_active_well.data.id');\n const programId = get(rig, 'relationships.program.data.id');\n const well = rigsResponse.included.find(item => item.type === 'well' && item.id === wellId);\n const program = rigsResponse.included.find(\n item => item.type === 'program' && item.id === programId\n );\n return { ...rig, well, program };\n }),\n 'id'\n );\n const fetchedFFsById = ffsResponse && keyBy(ffsResponse, 'id');\n const fetchedInterventionUnitsById =\n interventionUnitsResponse?.data &&\n keyBy(\n interventionUnitsResponse.data.map(interventionUnit => {\n const wellId = get(interventionUnit, 'relationships.active_well.data.id');\n const well = interventionUnitsResponse.included.find(\n item => item.type === 'well' && item.id === wellId\n );\n\n return {\n ...interventionUnit,\n name: interventionUnit.attributes.name,\n well,\n };\n }),\n 'id'\n );\n\n updateCache({\n wellsById: fetchedWellsById || {},\n rigsById: fetchedRigsById || {},\n fracFleetsById: fetchedFFsById || {},\n interventionUnitsById: fetchedInterventionUnitsById || {},\n });\n\n const appsDataByWells = getAppsDataByWells(appsWellIds, cache.current.wellsById);\n const appsDataByRigs = getAppsDataByRigs(appsRigIds, cache.current.rigsById);\n\n const appsDataByFFs = getAppsDataByFFs(\n appsFracFleetIds,\n cache.current.fracFleetsById,\n ffWellsData\n );\n const appsDataByPads = getAppsDataByPads(appsPadIds, padWellsData);\n const appsDataByInterventionUnits = getAppsDataByInterventionUnits(\n appsInterventionUnitIds,\n cache.current.interventionUnitsById,\n appsWellIds,\n cache.current.wellsById\n );\n\n return merge(\n appsDataByWells,\n appsDataByRigs,\n appsDataByFFs,\n appsDataByPads,\n appsDataByInterventionUnits\n );\n}\n"],"names":["DEFAULT_REQUESTS","APPS_DATA_REQUESTS","WELLS","RIGS","FRAC_FLEETS","FRAC_FLEET_WELLS","PAD_WELLS","INTERVENTION_UNITS","getDeprecatedAssetIds","apps","dashboardAssetId","uniqueIds","reduce","acc","app","isAppWithSettings","deprecatedAssetId","getAppAssetSpecificTypeId","add","Set","_toConsumableArray","getAppSettingsByDeprecatedAssetId","_x","_x2","_getAppSettingsByDeprecatedAssetId","apply","this","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","deprecatedAssetIds","cache","cachedDeprecatedAssetData","cachedDeprecatedAssetIds","notResolvedDeprecatedAssetIds","assetsData","MAP_DEPRECATED_ASSET_TYPE_TO_APP_SETTINGS","dataByDeprecatedAssetId","updatedCachedDeprecatedAssetData","wrap","_context","prev","next","current","deprecatedAssetData","Object","keys","filter","includes","String","length","abrupt","fetchAssetEntitiesByAssetIds","sent","rig","ASSET_TYPES","id","well","values","flat","_ref2","data","attributes","asset_id","type","stop","getAppsWithUnifiedSettings","_x3","_x4","_x5","_getAppsWithUnifiedSettings","appSettingsByDeprecatedAssetId","_context2","map","appDeprecatedAssetId","_objectSpread","settings","_callee2","resolveAppsData","_x6","_resolveAppsData","_callee3","_ref","updateCache","_ref$requests","requests","unifiedApps","_prepareDataForResolv","appsWellIds","appsRigIds","appsFracFleetIds","appsInterventionUnitIds","appsFracFleetToFetchWellsIds","appsPadIds","uniqueWellIds","uniqueRigIds","uniqueFFIds","uniqueInterventionUnitIds","allInterventionUnitIds","interventionUnitIdsToFetch","_yield$Promise$all","_yield$Promise$all2","wellsResponse","rigsResponse","ffsResponse","ffWellsData","padWellsData","interventionUnitsResponse","fetchedWellsById","fetchedRigsById","fetchedFFsById","fetchedInterventionUnitsById","appsDataByWells","appsDataByRigs","appsDataByFFs","appsDataByPads","appsDataByInterventionUnits","_context3","prepareDataForResolver","getUniqAssetIds","INTERVENTION_UNIT_WELLS","Promise","all","fetchWells","fetchRigs","fetchFracFleets","fetchFracFleetWells","fetchPadWells","fetchInterventionUnits","_slicedToArray","keyBy","rigId","get","programId","fracFleetId","padId","included","find","item","program","fracFleet","pad","wellId","interventionUnit","name","wellsById","rigsById","fracFleetsById","interventionUnitsById","getAppsDataByWells","getAppsDataByRigs","getAppsDataByFFs","getAppsDataByPads","getAppsDataByInterventionUnits","merge"],"mappings":"u4CAwBA,IAAMA,EAAmB,CACvBC,EAAmBC,MACnBD,EAAmBE,KACnBF,EAAmBG,YACnBH,EAAmBI,iBACnBJ,EAAmBK,UACnBL,EAAmBM,oBAGRC,EAAwB,SAACC,EAAMC,GAC1C,IAAMC,EAAYF,EAAKG,QAAO,SAACC,EAAKC,GAClC,GAAIC,EAAkBD,GAAM,OAAOD,EAEnC,IAAMG,EAAoBC,EAA0BH,EAAK,qBAGzD,OAFAD,EAAIK,IAAIF,GAAqBN,GAEtBG,CACT,GAAG,IAAIM,KAEP,OAAAC,EAAWT,EACb,EAEA,SAAsBU,EAAiCC,EAAAC,GAAA,OAAAC,EAAAC,MAAAC,KAAAC,UAAA,CAqCvD,SAAAH,IAFC,OAEDA,EArCOI,EAAAC,EAAAC,MAAA,SAAAC,EAAiDC,EAAoBC,GAAK,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,OAAAX,EAAAY,MAAA,SAAAC,GAAA,OAAA,OAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAK9E,GAJ4BV,EAA8BD,EAAMY,QAAzDC,oBACFX,EAA2BY,OAAOC,KAAKd,IACvCE,EAAgCJ,EAAmBiB,QACvD,SAAAjC,GAAiB,OAAKmB,EAAyBe,SAASC,OAAOnC,QAG9BoC,OAAM,CAAAV,EAAAE,KAAA,EAAA,KAAA,CAAA,OAAAF,EAAAW,OAAA,SAASnB,GAAyB,K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,EAAMY,QAAQwG,eACd1C,GAEIU,GAAiBqC,EAAkB3D,EAAYa,GAC/CU,GAA8BqC,EAClC9D,EACA5D,EAAMY,QAAQyG,sBACd5D,EACAzD,EAAMY,QAAQsG,WAGTS,EAAAA,OAAAA,SAAAA,EACL1C,GACAC,GACAC,GACAC,GACAC,KACD,KAAA,GAAA,IAAA,MAAA,OAAAC,EAAApD,OAAA,GAAAgB,EACF,MAAA1D,MAAAC,KAAAC,UAAA"}
1
+ {"version":3,"file":"dataResolvers.js","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/dataResolvers.ts"],"sourcesContent":["import { merge } from 'lodash';\n\nimport { ASSET_TYPES } from '~/constants/assetTypes';\n\nimport type {\n AppDataPatches,\n AppSettings,\n AppsDataCacheRef,\n AssetId,\n DashboardAssetId,\n PreparedProviderApp,\n ProviderApp,\n UpdateAppsDataCache,\n} from '../types';\nimport { APPS_DATA_REQUESTS } from './constants';\nimport type { AppsDataRequest } from './constants';\nimport {\n buildFracFleetCache,\n buildInterventionUnitCache,\n buildRigCache,\n buildWellCache,\n fetchAssetEntitiesByAssetIds,\n fetchFracFleets,\n fetchFracFleetWells,\n fetchInterventionUnits,\n fetchPadWells,\n fetchRigs,\n fetchWells,\n getAppsDataByFFs,\n getAppsDataByInterventionUnits,\n getAppsDataByPads,\n getAppsDataByRigs,\n getAppsDataByWells,\n getAppAssetSpecificTypeId,\n getUniqAssetIds,\n isAppWithSettings,\n prepareDataForResolver,\n} from './utils';\n\nconst DEFAULT_REQUESTS: AppsDataRequest[] = [\n APPS_DATA_REQUESTS.WELLS,\n APPS_DATA_REQUESTS.RIGS,\n APPS_DATA_REQUESTS.FRAC_FLEETS,\n APPS_DATA_REQUESTS.FRAC_FLEET_WELLS,\n APPS_DATA_REQUESTS.PAD_WELLS,\n APPS_DATA_REQUESTS.INTERVENTION_UNITS,\n];\n\ntype ResolveAppsDataParams = {\n apps: PreparedProviderApp[];\n dashboardAssetId?: DashboardAssetId;\n cache: AppsDataCacheRef;\n updateCache: UpdateAppsDataCache;\n requests?: AppsDataRequest[];\n};\n\nexport const getDeprecatedAssetIds = (\n apps: ProviderApp[],\n dashboardAssetId?: DashboardAssetId\n): Array<AssetId | null | undefined> => {\n const uniqueIds = apps.reduce<Set<AssetId | null | undefined>>((acc, app) => {\n if (isAppWithSettings(app)) return acc;\n\n const deprecatedAssetId = getAppAssetSpecificTypeId(app, 'deprecatedAssetId');\n acc.add(deprecatedAssetId || dashboardAssetId);\n\n return acc;\n }, new Set());\n\n return [...uniqueIds];\n};\n\nexport const getAppSettingsByDeprecatedAssetId = async (\n deprecatedAssetIds: Array<AssetId | null | undefined>,\n cache: AppsDataCacheRef\n): Promise<Record<string, AppSettings>> => {\n const { deprecatedAssetData: cachedDeprecatedAssetData } = cache.current;\n const cachedDeprecatedAssetIds = Object.keys(cachedDeprecatedAssetData);\n const notResolvedDeprecatedAssetIds = deprecatedAssetIds.filter(\n deprecatedAssetId => !cachedDeprecatedAssetIds.includes(String(deprecatedAssetId))\n );\n\n if (!notResolvedDeprecatedAssetIds.length) return cachedDeprecatedAssetData;\n\n const assetsData = await fetchAssetEntitiesByAssetIds(notResolvedDeprecatedAssetIds);\n if (!assetsData) return cachedDeprecatedAssetData;\n\n const deprecatedAssetTypeToSetting: Record<string, string> = {\n rig: ASSET_TYPES.rig.id,\n well: ASSET_TYPES.well.id,\n };\n\n const dataByDeprecatedAssetId = Object.values(assetsData)\n .flat()\n .reduce<Record<string, AppSettings>>((acc, { data }) => {\n acc[data.attributes.asset_id] = {\n [deprecatedAssetTypeToSetting[data.type]]: data.id,\n };\n\n return acc;\n }, {});\n\n const updatedCachedDeprecatedAssetData = {\n ...cachedDeprecatedAssetData,\n ...dataByDeprecatedAssetId,\n };\n\n // Keep the legacy typo during this type-only migration; changing cache behavior is separate.\n cache.current.cachedDeprecatedAssetData = updatedCachedDeprecatedAssetData;\n\n return updatedCachedDeprecatedAssetData;\n};\n\n// NOTE: converts feed page apps and asset page apps deprecated asset ids to regular rigId/wellId in app settings\nexport const getAppsWithUnifiedSettings = async (\n apps: PreparedProviderApp[],\n dashboardAssetId: DashboardAssetId,\n cache: AppsDataCacheRef\n): Promise<PreparedProviderApp[]> => {\n const appSettingsByDeprecatedAssetId = await getAppSettingsByDeprecatedAssetId(\n getDeprecatedAssetIds(apps, dashboardAssetId),\n cache\n );\n\n return apps.map(app => {\n if (isAppWithSettings(app)) return app;\n\n const appDeprecatedAssetId = getAppAssetSpecificTypeId(app, 'deprecatedAssetId');\n\n return {\n ...app,\n settings: appSettingsByDeprecatedAssetId[appDeprecatedAssetId || String(dashboardAssetId)],\n };\n });\n};\n\nexport const resolveAppsData = async ({\n apps,\n dashboardAssetId,\n cache,\n updateCache,\n requests = DEFAULT_REQUESTS,\n}: ResolveAppsDataParams): Promise<AppDataPatches> => {\n const unifiedApps = await getAppsWithUnifiedSettings(apps, dashboardAssetId, cache);\n const {\n appsWellIds,\n appsRigIds,\n appsFracFleetIds,\n appsInterventionUnitIds,\n appsFracFleetToFetchWellsIds,\n appsPadIds,\n uniqueWellIds,\n uniqueRigIds,\n uniqueFFIds,\n uniqueInterventionUnitIds,\n } = prepareDataForResolver(unifiedApps, cache);\n\n // NOTE: Non-cache-filtered IDs for intervention unit wells refresh\n const allInterventionUnitIds = getUniqAssetIds(appsInterventionUnitIds, []);\n const interventionUnitIdsToFetch = requests.includes(APPS_DATA_REQUESTS.INTERVENTION_UNIT_WELLS)\n ? allInterventionUnitIds\n : uniqueInterventionUnitIds;\n\n const [\n wellsResponse,\n rigsResponse,\n fracFleetsResponse,\n fracFleetWellsData,\n padWellsData,\n interventionUnitsResponse,\n ] = await Promise.all([\n requests.includes(APPS_DATA_REQUESTS.WELLS) && fetchWells(uniqueWellIds),\n requests.includes(APPS_DATA_REQUESTS.RIGS) && fetchRigs(uniqueRigIds),\n requests.includes(APPS_DATA_REQUESTS.FRAC_FLEETS) && fetchFracFleets(uniqueFFIds),\n requests.includes(APPS_DATA_REQUESTS.FRAC_FLEET_WELLS) &&\n fetchFracFleetWells(appsFracFleetToFetchWellsIds, apps),\n requests.includes(APPS_DATA_REQUESTS.PAD_WELLS) && fetchPadWells(appsPadIds, apps),\n (requests.includes(APPS_DATA_REQUESTS.INTERVENTION_UNITS) ||\n requests.includes(APPS_DATA_REQUESTS.INTERVENTION_UNIT_WELLS)) &&\n fetchInterventionUnits(interventionUnitIdsToFetch),\n ]);\n\n const fetchedWellsById = wellsResponse ? buildWellCache(wellsResponse) : {};\n const fetchedRigsById = rigsResponse ? buildRigCache(rigsResponse) : {};\n const fetchedFracFleetsById = fracFleetsResponse ? buildFracFleetCache(fracFleetsResponse) : {};\n const fetchedInterventionUnitsById = interventionUnitsResponse\n ? buildInterventionUnitCache(interventionUnitsResponse)\n : {};\n\n updateCache({\n wellsById: fetchedWellsById,\n rigsById: fetchedRigsById,\n fracFleetsById: fetchedFracFleetsById,\n interventionUnitsById: fetchedInterventionUnitsById,\n });\n\n const appsDataByWells = getAppsDataByWells(appsWellIds, cache.current.wellsById);\n const appsDataByRigs = getAppsDataByRigs(appsRigIds, cache.current.rigsById);\n const appsDataByFracFleets = getAppsDataByFFs(\n appsFracFleetIds,\n cache.current.fracFleetsById,\n fracFleetWellsData\n );\n const appsDataByPads = getAppsDataByPads(appsPadIds, padWellsData);\n const appsDataByInterventionUnits = getAppsDataByInterventionUnits(\n appsInterventionUnitIds,\n cache.current.interventionUnitsById,\n appsWellIds,\n cache.current.wellsById\n );\n\n return merge(\n appsDataByWells,\n appsDataByRigs,\n appsDataByFracFleets,\n appsDataByPads,\n appsDataByInterventionUnits\n );\n};\n"],"names":["DEFAULT_REQUESTS","APPS_DATA_REQUESTS","WELLS","RIGS","FRAC_FLEETS","FRAC_FLEET_WELLS","PAD_WELLS","INTERVENTION_UNITS","getDeprecatedAssetIds","apps","dashboardAssetId","uniqueIds","reduce","acc","app","isAppWithSettings","deprecatedAssetId","getAppAssetSpecificTypeId","add","Set","_toConsumableArray","getAppSettingsByDeprecatedAssetId","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","deprecatedAssetIds","cache","cachedDeprecatedAssetData","cachedDeprecatedAssetIds","notResolvedDeprecatedAssetIds","assetsData","deprecatedAssetTypeToSetting","dataByDeprecatedAssetId","updatedCachedDeprecatedAssetData","wrap","_context","prev","next","current","deprecatedAssetData","Object","keys","filter","includes","String","length","abrupt","fetchAssetEntitiesByAssetIds","sent","rig","ASSET_TYPES","id","well","values","flat","_ref2","data","attributes","asset_id","type","stop","_x","_x2","apply","this","arguments","getAppsWithUnifiedSettings","_ref3","appSettingsByDeprecatedAssetId","_context2","map","appDeprecatedAssetId","_objectSpread","settings","_callee2","_x3","_x4","_x5","resolveAppsData","_ref5","_callee3","_ref4","updateCache","_ref4$requests","requests","unifiedApps","_prepareDataForResolv","appsWellIds","appsRigIds","appsFracFleetIds","appsInterventionUnitIds","appsFracFleetToFetchWellsIds","appsPadIds","uniqueWellIds","uniqueRigIds","uniqueFFIds","uniqueInterventionUnitIds","allInterventionUnitIds","interventionUnitIdsToFetch","_yield$Promise$all","_yield$Promise$all2","wellsResponse","rigsResponse","fracFleetsResponse","fracFleetWellsData","padWellsData","interventionUnitsResponse","fetchedWellsById","fetchedRigsById","fetchedFracFleetsById","fetchedInterventionUnitsById","appsDataByWells","appsDataByRigs","appsDataByFracFleets","appsDataByPads","appsDataByInterventionUnits","_context3","prepareDataForResolver","getUniqAssetIds","INTERVENTION_UNIT_WELLS","Promise","all","fetchWells","fetchRigs","fetchFracFleets","fetchFracFleetWells","fetchPadWells","fetchInterventionUnits","_slicedToArray","buildWellCache","buildRigCache","buildFracFleetCache","buildInterventionUnitCache","wellsById","rigsById","fracFleetsById","interventionUnitsById","getAppsDataByWells","getAppsDataByRigs","getAppsDataByFFs","getAppsDataByPads","getAppsDataByInterventionUnits","merge","_x6"],"mappings":"m9CAuCA,IAAMA,EAAsC,CAC1CC,EAAmBC,MACnBD,EAAmBE,KACnBF,EAAmBG,YACnBH,EAAmBI,iBACnBJ,EAA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BH,EAAA,GAClBI,EAAkBJ,EAAA,GAClBK,EAAYL,EAAA,GACZM,EAAyBN,EAAA,GAarBO,EAAmBN,EAAgB4B,EAAe5B,GAAiB,CAAA,EACnEO,GAAkBN,EAAe4B,EAAc5B,GAAgB,CAAA,EAC/DO,GAAwBN,EAAqB4B,EAAoB5B,GAAsB,CAAA,EACvFO,GAA+BJ,EACjC0B,EAA2B1B,GAC3B,CAAA,EAEJxB,EAAY,CACVmD,UAAW1B,EACX2B,SAAU1B,GACV2B,eAAgB1B,GAChB2B,sBAAuB1B,KAGnBC,GAAkB0B,EAAmBlD,EAAa7D,EAAMY,QAAQ+F,WAChErB,GAAiB0B,EAAkBlD,EAAY9D,EAAMY,QAAQgG,UAC7DrB,GAAuB0B,EAC3BlD,EACA/D,EAAMY,QAAQiG,eACd/B,GAEIU,GAAiB0B,EAAkBhD,EAAYa,GAC/CU,GAA8B0B,EAClCnD,EACAhE,EAAMY,QAAQkG,sBACdjD,EACA7D,EAAMY,QAAQ+F,WAGTS,EAAAA,OAAAA,SAAAA,EACL/B,GACAC,GACAC,GACAC,GACAC,KACD,KAAA,GAAA,IAAA,MAAA,OAAAC,EAAAxD,OAAA,GAAAoB,EACF,KAAA,OAAA,SAlF2B+D,GAAA,OAAAhE,EAAAhB,MAAAC,KAAAC,UAAA,CAAA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -1,7 +1,7 @@
1
- declare function useAppsData({ apps: allApps, dashboardAssetId, dashboardMeta }: {
2
- apps: any;
3
- dashboardAssetId: any;
4
- dashboardMeta: any;
5
- }): {};
1
+ import type { AppDataEntry, AppId, UseAppsDataParams } from '../types';
2
+ type LoadedAppData = Record<string, AppDataEntry & {
3
+ id: AppId;
4
+ }>;
5
+ declare const useAppsData: ({ apps: allApps, dashboardAssetId, dashboardMeta }: UseAppsDataParams) => LoadedAppData;
6
6
  export default useAppsData;
7
7
  //# sourceMappingURL=useAppsData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAppsData.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/useAppsData.js"],"names":[],"mappings":"AAiBA,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE;;;;CAAA,MAiItE;eAEc,WAAW"}
1
+ {"version":3,"file":"useAppsData.d.ts","sourceRoot":"","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/useAppsData.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EAEZ,KAAK,EAIL,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAgBlB,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAElE,QAAA,MAAM,WAAW,uDAAwD,iBAAiB,kBAuIzF,CAAC;eAEa,WAAW"}
@@ -1,2 +1,2 @@
1
- import r from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as i,useRef as o,useEffect as a}from"react";import{keyBy as u,omit as s,mapValues as c,merge as l}from"lodash";import{getAppHash as p,getInitialAppsDataState as d,isAppNeedingInterventionUnitWellRefresh as f}from"./utils.js";import{resolveAppsData as v}from"./dataResolvers.js";import{isDCAppMultiRig as h,isDevCenterApp as m}from"../../../../utils/devcenter.js";import{APPS_DATA_REQUESTS as b}from"./constants.js";function O(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function g(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){e(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}function y(e){var O=e.apps,y=e.dashboardAssetId,j=e.dashboardMeta,w=i({}),I=t(w,2),P=I[0],E=I[1],L=o(),D=o(),S=o({}),A=o({wellsById:{},rigsById:{},fracFleetsById:{},interventionUnitsById:{},deprecatedAssetData:{}}),T=O.reduce((function(r,e){var t,n=h({uiSettings:null===(t=e.app)||void 0===t?void 0:t.ui_settings,isChiplessDashboard:null==j?void 0:j.isChiplessDashboard});return m(e)&&!n&&r.push(g(g({},e),{},{appHash:p(e)})),r}),[]),_=function(r){return E((function(e){return c(e,(function(e){var t=r[e.id]||{};return g(g(g({},e),t),{},{isLoading:!1})}))}))},C=function(r){A.current=l(A.current,r)};a((function(){var r=Object.values(P);if(T.length||r.length)if(T.length<r.length){var e=u(T,"id"),t=r.find((function(r){return!e[r.id]})).id;E((function(r){return s(r,t)}))}else{var n=T.filter((function(r){return!P[r.id]||P[r.id].appHash!==r.appHash}));E((function(r){return g(g({},r),d(n))})),v({apps:T,dashboardAssetId:y,cache:A,updateCache:C}).then(_)}}),[String(T.map((function(r){return r.appHash}))),y]),S.current={apps:T,dashboardAssetId:y,cache:A,updateCache:C},a((function(){return L.current=setInterval((function(){v(g(g({},S.current),{},{requests:[b.FRAC_FLEET_WELLS,b.PAD_WELLS]})).then(_)}),3e5),function(){return clearInterval(L.current)}}),[]);var B=T.some(f);return a((function(){if(B)return D.current=setInterval(r(n.mark((function r(){var e,i,o;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=S.current.apps,i=new Set(e.filter(f).map((function(r){return r.id}))),r.next=4,v(g(g({},S.current),{},{requests:[b.INTERVENTION_UNIT_WELLS]}));case 4:o=r.sent,E((function(r){var e=Object.entries(r);return e.some((function(r){var e,n,a=t(r,2),u=a[0],s=a[1];if(!i.has(u))return!1;var c=o[u];return!!c&&(null===(e=c.well)||void 0===e?void 0:e.id)!==(null===(n=s.well)||void 0===n?void 0:n.id)}))?e.reduce((function(r,e){var n,a,u=t(e,2),s=u[0],c=u[1];if(!i.has(s))return r[s]=c,r;var l=o[s];return l&&(null===(n=l.well)||void 0===n?void 0:n.id)!==(null===(a=c.well)||void 0===a?void 0:a.id)?(r[s]=g(g(g({},c),l),{},{isLoading:!1}),r):(r[s]=c,r)}),{}):r}));case 6:case"end":return r.stop()}}),r)}))),3e5),function(){return clearInterval(D.current)}}),[B]),P}export{y as default};
1
+ import r from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/regenerator";import{useState as i,useRef as o,useEffect as a}from"react";import{merge as u}from"lodash";import{getAppHash as s,getInitialAppsDataState as c,isAppNeedingInterventionUnitWellRefresh as f}from"./utils.js";import{resolveAppsData as l}from"./dataResolvers.js";import{isDCAppMultiRig as p,isDevCenterApp as d}from"../../../../utils/devcenter.js";import{APPS_DATA_REQUESTS as v}from"./constants.js";function b(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function m(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){e(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}var h=function(e){var b=e.apps,h=e.dashboardAssetId,O=e.dashboardMeta,g=i({}),j=t(g,2),y=j[0],w=j[1],I=o(null),S=o({wellsById:{},rigsById:{},fracFleetsById:{},interventionUnitsById:{},deprecatedAssetData:{}}),E=b.reduce((function(r,e){var t,n=p({uiSettings:null===(t=e.app)||void 0===t?void 0:t.ui_settings,isChiplessDashboard:null==O?void 0:O.isChiplessDashboard});return d(e)&&!n&&r.push(m(m({},e),{},{appHash:s(e)})),r}),[]),P=function(r){return w((function(e){return Object.fromEntries(Object.entries(e).map((function(e){var n=t(e,2),i=n[0],o=n[1];return[i,m(m(m({},o),r[o.id]),{},{isLoading:!1})]})))}))},L=function(r){S.current=u(S.current,r)};a((function(){var r=Object.values(y);if(E.length||r.length)if(E.length<r.length){var e=new Set(E.map((function(r){return String(r.id)}))),n=r.find((function(r){return!e.has(String(r.id))}));if(!n)return;w((function(r){return Object.fromEntries(Object.entries(r).filter((function(r){return t(r,1)[0]!==String(n.id)})))}))}else{var i=E.filter((function(r){return!y[r.id]||y[r.id].appHash!==r.appHash}));w((function(r){return m(m({},r),c(i))})),l({apps:E,dashboardAssetId:h,cache:S,updateCache:L}).then(P)}}),[String(E.map((function(r){return r.appHash}))),h]),I.current={apps:E,dashboardAssetId:h,cache:S,updateCache:L},a((function(){var r=setInterval((function(){var r=I.current;r&&l(m(m({},r),{},{requests:[v.FRAC_FLEET_WELLS,v.PAD_WELLS]})).then(P)}),3e5);return function(){return clearInterval(r)}}),[]);var D=E.some(f);return a((function(){if(D){var e=setInterval(r(n.mark((function r(){var e,i,o,a;return n.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e=I.current){r.next=3;break}return r.abrupt("return");case 3:return i=e.apps,o=new Set(i.filter(f).map((function(r){return r.id}))),r.next=7,l(m(m({},e),{},{requests:[v.INTERVENTION_UNIT_WELLS]}));case 7:a=r.sent,w((function(r){var e=Object.entries(r);return e.some((function(r){var e,n,i=t(r,2),u=i[0],s=i[1];if(!o.has(u))return!1;var c=a[u];return!!c&&(null===(e=c.well)||void 0===e?void 0:e.id)!==(null===(n=s.well)||void 0===n?void 0:n.id)}))?e.reduce((function(r,e){var n,i,u=t(e,2),s=u[0],c=u[1];if(!o.has(s))return r[s]=c,r;var f=a[s];return f&&(null===(n=f.well)||void 0===n?void 0:n.id)!==(null===(i=c.well)||void 0===i?void 0:i.id)?(r[s]=m(m(m({},c),f),{},{isLoading:!1}),r):(r[s]=c,r)}),{}):r}));case 9:case"end":return r.stop()}}),r)}))),3e5);return function(){return clearInterval(e)}}}),[D]),y};export{h as default};
2
2
  //# sourceMappingURL=useAppsData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAppsData.js","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/useAppsData.js"],"sourcesContent":["import { useState, useEffect, useRef } from 'react';\nimport { mapValues, keyBy, omit, merge } from 'lodash';\n\nimport {\n getInitialAppsDataState,\n getAppHash,\n isAppNeedingInterventionUnitWellRefresh,\n} from './utils';\nimport { resolveAppsData } from './dataResolvers';\n\nimport { isDCAppMultiRig, isDevCenterApp } from '~/utils/devcenter';\nimport { APPS_DATA_REQUESTS } from '~/components/DevCenter/AppsDataProvider/effects/constants';\n\nconst MINUTE = 60_000;\nconst FRAC_FLEETS_REFRESH_INTERVAL = 5 * MINUTE;\nconst INTERVENTION_UNITS_REFRESH_INTERVAL = 5 * MINUTE;\n\nfunction useAppsData({ apps: allApps, dashboardAssetId, dashboardMeta }) {\n const [appsData, setAppsData] = useState({});\n const refreshFracFleetsInterval = useRef();\n const refreshInterventionUnitsInterval = useRef();\n const resolveAppsDataParamsRef = useRef({});\n\n const cache = useRef({\n wellsById: {},\n rigsById: {},\n fracFleetsById: {},\n interventionUnitsById: {},\n deprecatedAssetData: {},\n });\n\n const apps = allApps.reduce((acc, app) => {\n const isMultiRig = isDCAppMultiRig({\n uiSettings: app.app?.ui_settings,\n isChiplessDashboard: dashboardMeta?.isChiplessDashboard,\n });\n\n if (isDevCenterApp(app) && !isMultiRig) acc.push({ ...app, appHash: getAppHash(app) });\n return acc;\n }, []);\n\n const handleResolvedAppsData = resolvedAppsData =>\n setAppsData(prevAppsData =>\n mapValues(prevAppsData, prevAppData => {\n const appData = resolvedAppsData[prevAppData.id] || {};\n\n return {\n ...prevAppData,\n ...appData,\n isLoading: false,\n };\n })\n );\n\n const updateCache = updates => {\n cache.current = merge(cache.current, updates);\n };\n\n useEffect(() => {\n const appsDataValues = Object.values(appsData);\n\n // NOTE: empty dashboard\n if (!apps.length && !appsDataValues.length) {\n return;\n }\n\n // NOTE: app was removed from db\n if (apps.length < appsDataValues.length) {\n const appsById = keyBy(apps, 'id');\n const removedAppId = appsDataValues.find(appData => !appsById[appData.id]).id;\n setAppsData(prevAppsData => omit(prevAppsData, removedAppId));\n return;\n }\n\n const changedApps = apps.filter(\n app => !appsData[app.id] || appsData[app.id].appHash !== app.appHash\n );\n setAppsData(prevAppsData => ({ ...prevAppsData, ...getInitialAppsDataState(changedApps) }));\n resolveAppsData({ apps, dashboardAssetId, cache, updateCache }).then(handleResolvedAppsData);\n }, [String(apps.map(({ appHash }) => appHash)), dashboardAssetId]);\n\n // NOTE: Keep this data in ref to avoid closure in setInterval\n resolveAppsDataParamsRef.current = { apps, dashboardAssetId, cache, updateCache };\n\n useEffect(() => {\n // NOTE: Refresh fracfleet wells and pad wells every 5 minutes\n refreshFracFleetsInterval.current = setInterval(() => {\n resolveAppsData({\n ...resolveAppsDataParamsRef.current,\n requests: [APPS_DATA_REQUESTS.FRAC_FLEET_WELLS, APPS_DATA_REQUESTS.PAD_WELLS],\n }).then(handleResolvedAppsData);\n }, FRAC_FLEETS_REFRESH_INTERVAL);\n\n return () => clearInterval(refreshFracFleetsInterval.current);\n }, []);\n\n const hasAppsNeedingInterventionUnitRefresh = apps.some(isAppNeedingInterventionUnitWellRefresh);\n\n useEffect(() => {\n if (!hasAppsNeedingInterventionUnitRefresh) return;\n\n refreshInterventionUnitsInterval.current = setInterval(async () => {\n const currentApps = resolveAppsDataParamsRef.current.apps;\n const interventionUnitAppIds = new Set(\n currentApps.filter(isAppNeedingInterventionUnitWellRefresh).map(app => app.id)\n );\n\n const resolvedAppsData = await resolveAppsData({\n ...resolveAppsDataParamsRef.current,\n requests: [APPS_DATA_REQUESTS.INTERVENTION_UNIT_WELLS],\n });\n\n setAppsData(prevAppsData => {\n const entries = Object.entries(prevAppsData);\n const hasChanges = entries.some(([appId, prevAppData]) => {\n if (!interventionUnitAppIds.has(appId)) return false;\n const newData = resolvedAppsData[appId];\n if (!newData) return false;\n return newData.well?.id !== prevAppData.well?.id;\n });\n\n if (!hasChanges) return prevAppsData;\n\n return entries.reduce((acc, [appId, prevAppData]) => {\n if (!interventionUnitAppIds.has(appId)) {\n acc[appId] = prevAppData;\n return acc;\n }\n\n const newData = resolvedAppsData[appId];\n if (!newData || newData.well?.id === prevAppData.well?.id) {\n acc[appId] = prevAppData;\n return acc;\n }\n\n acc[appId] = { ...prevAppData, ...newData, isLoading: false };\n return acc;\n }, {});\n });\n }, INTERVENTION_UNITS_REFRESH_INTERVAL);\n\n // eslint-disable-next-line consistent-return\n return () => clearInterval(refreshInterventionUnitsInterval.current);\n }, [hasAppsNeedingInterventionUnitRefresh]);\n\n return appsData;\n}\n\nexport default useAppsData;\n"],"names":["useAppsData","_ref","allApps","apps","dashboardAssetId","dashboardMeta","_useState","useState","_useState2","_slicedToArray","appsData","setAppsData","refreshFracFleetsInterval","useRef","refreshInterventionUnitsInterval","resolveAppsDataParamsRef","cache","wellsById","rigsById","fracFleetsById","interventionUnitsById","deprecatedAssetData","reduce","acc","app","_app$app","isMultiRig","isDCAppMultiRig","uiSettings","ui_settings","isChiplessDashboard","isDevCenterApp","push","_objectSpread","appHash","getAppHash","handleResolvedAppsData","resolvedAppsData","prevAppsData","mapValues","prevAppData","appData","id","isLoading","updateCache","updates","current","merge","useEffect","appsDataValues","Object","values","length","appsById","keyBy","removedAppId","find","omit","changedApps","filter","getInitialAppsDataState","resolveAppsData","then","String","map","_ref2","setInterval","requests","APPS_DATA_REQUESTS","FRAC_FLEET_WELLS","PAD_WELLS","clearInterval","hasAppsNeedingInterventionUnitRefresh","some","isAppNeedingInterventionUnitWellRefresh","_asyncToGenerator","_regeneratorRuntime","mark","_callee","currentApps","interventionUnitAppIds","wrap","_context","prev","next","Set","INTERVENTION_UNIT_WELLS","sent","entries","_ref4","_newData$well","_prevAppData$well","_ref5","appId","has","newData","well","_ref6","_newData$well2","_prevAppData$well2","_ref7","stop"],"mappings":"wrCAiBA,SAASA,EAAgEC,GAAA,IAA5CC,IAANC,KAAeC,IAAAA,iBAAkBC,IAAAA,cACtDC,EAAgCC,EAAS,IAAGC,EAAAC,EAAAH,EAAA,GAArCI,EAAQF,EAAA,GAAEG,EAAWH,EAAA,GACtBI,EAA4BC,IAC5BC,EAAmCD,IACnCE,EAA2BF,EAAO,CAAA,GAElCG,EAAQH,EAAO,CACnBI,UAAW,CAAE,EACbC,SAAU,CAAE,EACZC,eAAgB,CAAE,EAClBC,sBAAuB,CAAE,EACzBC,oBAAqB,CAAC,IAGlBlB,EAAOD,EAAQoB,QAAO,SAACC,EAAKC,GAAQ,IAAAC,EAClCC,EAAaC,EAAgB,CACjCC,WAAmB,UAAPJ,EAAIA,WAAG,IAAAC,OAAA,EAAPA,EAASI,YACrBC,oBAAqBzB,aAAa,EAAbA,EAAeyB,sBAItC,OADIC,EAAeP,KAASE,GAAYH,EAAIS,KAAIC,EAAAA,EAAA,CAAA,EAAMT,GAAG,CAAA,EAAA,CAAEU,QAASC,EAAWX,MACxED,CACR,GAAE,IAEGa,EAAyB,SAAAC,GAAgB,OAC7C1B,GAAY,SAAA2B,GAAY,OACtBC,EAAUD,GAAc,SAAAE,GACtB,IAAMC,EAAUJ,EAAiBG,EAAYE,KAAO,CAAA,EAEpD,OACKF,EAAAA,EAAAA,EAAAA,CAAAA,EAAAA,GACAC,GAAO,GAAA,CACVE,WAAW,GAEf,MACD,EAEGC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AcrD,EAAAA,EAAAA,EAAAA,CAAAA,EAAAA,GAAgBuD,GAAO,GAAA,CAAEpD,WAAW,IAC/CpB,IALLA,EAAIsE,GAASrD,EACNjB,EAKV,GAAE,CAAE,GAhBmBe,CAiB1B,IAAG,KAAA,EAAA,IAAA,MAAA,OAAA4C,EAAAmB,OAAA,GAAAvB,OA3HmC,KA+HjC,WAAA,OAAMP,cAAczD,EAAiCgC,QAAQ,CACtE,GAAG,CAAC0B,IAEG9D,CACT"}
1
+ {"version":3,"file":"useAppsData.js","sources":["../../../../../src/components/DevCenter/AppsDataProvider/effects/useAppsData.ts"],"sourcesContent":["import { useState, useEffect, useRef } from 'react';\nimport { merge } from 'lodash';\n\nimport type {\n AppDataEntry,\n AppDataPatches,\n AppId,\n AppsDataCache,\n AppsDataCacheUpdate,\n PreparedProviderApp,\n UseAppsDataParams,\n} from '../types';\n\nimport {\n getInitialAppsDataState,\n getAppHash,\n isAppNeedingInterventionUnitWellRefresh,\n} from './utils';\nimport { resolveAppsData } from './dataResolvers';\n\nimport { isDCAppMultiRig, isDevCenterApp } from '~/utils/devcenter';\nimport { APPS_DATA_REQUESTS } from '~/components/DevCenter/AppsDataProvider/effects/constants';\n\nconst MINUTE = 60_000;\nconst FRAC_FLEETS_REFRESH_INTERVAL = 5 * MINUTE;\nconst INTERVENTION_UNITS_REFRESH_INTERVAL = 5 * MINUTE;\n\ntype LoadedAppData = Record<string, AppDataEntry & { id: AppId }>;\n\nconst useAppsData = ({ apps: allApps, dashboardAssetId, dashboardMeta }: UseAppsDataParams) => {\n const [appsData, setAppsData] = useState<LoadedAppData>({});\n const resolveAppsDataParamsRef = useRef<Parameters<typeof resolveAppsData>[0] | null>(null);\n\n const cache = useRef<AppsDataCache>({\n wellsById: {},\n rigsById: {},\n fracFleetsById: {},\n interventionUnitsById: {},\n deprecatedAssetData: {},\n });\n\n const apps = allApps.reduce<PreparedProviderApp[]>((acc, app) => {\n const isMultiRig = isDCAppMultiRig({\n uiSettings: app.app?.ui_settings,\n isChiplessDashboard: dashboardMeta?.isChiplessDashboard,\n });\n\n if (isDevCenterApp(app) && !isMultiRig) acc.push({ ...app, appHash: getAppHash(app) });\n return acc;\n }, []);\n\n const handleResolvedAppsData = (resolvedAppsData: AppDataPatches) =>\n setAppsData(prevAppsData =>\n Object.fromEntries(\n Object.entries(prevAppsData).map(([appId, prevAppData]) => [\n appId,\n { ...prevAppData, ...resolvedAppsData[prevAppData.id], isLoading: false },\n ])\n )\n );\n\n const updateCache = (updates: AppsDataCacheUpdate) => {\n cache.current = merge(cache.current, updates);\n };\n\n useEffect(() => {\n const appsDataValues = Object.values(appsData);\n\n // NOTE: empty dashboard\n if (!apps.length && !appsDataValues.length) {\n return;\n }\n\n // NOTE: app was removed from db\n if (apps.length < appsDataValues.length) {\n const appIds = new Set(apps.map(app => String(app.id)));\n const removedApp = appsDataValues.find(appData => !appIds.has(String(appData.id)));\n if (!removedApp) return;\n\n setAppsData(prevAppsData =>\n Object.fromEntries(\n Object.entries(prevAppsData).filter(([appId]) => appId !== String(removedApp.id))\n )\n );\n return;\n }\n\n const changedApps = apps.filter(\n app => !appsData[app.id] || appsData[app.id].appHash !== app.appHash\n );\n setAppsData(prevAppsData => ({ ...prevAppsData, ...getInitialAppsDataState(changedApps) }));\n resolveAppsData({ apps, dashboardAssetId, cache, updateCache }).then(handleResolvedAppsData);\n }, [String(apps.map(({ appHash }) => appHash)), dashboardAssetId]);\n\n // NOTE: Keep this data in ref to avoid closure in setInterval\n resolveAppsDataParamsRef.current = { apps, dashboardAssetId, cache, updateCache };\n\n useEffect(() => {\n // NOTE: Refresh fracfleet wells and pad wells every 5 minutes\n const interval = setInterval(() => {\n const params = resolveAppsDataParamsRef.current;\n if (!params) return;\n\n resolveAppsData({\n ...params,\n requests: [APPS_DATA_REQUESTS.FRAC_FLEET_WELLS, APPS_DATA_REQUESTS.PAD_WELLS],\n }).then(handleResolvedAppsData);\n }, FRAC_FLEETS_REFRESH_INTERVAL);\n\n return () => clearInterval(interval);\n }, []);\n\n const hasAppsNeedingInterventionUnitRefresh = apps.some(isAppNeedingInterventionUnitWellRefresh);\n\n useEffect((): (() => void) | undefined => {\n if (!hasAppsNeedingInterventionUnitRefresh) return;\n\n const interval = setInterval(async () => {\n const params = resolveAppsDataParamsRef.current;\n if (!params) return;\n\n const currentApps = params.apps;\n const interventionUnitAppIds = new Set(\n currentApps.filter(isAppNeedingInterventionUnitWellRefresh).map(app => app.id)\n );\n\n const resolvedAppsData = await resolveAppsData({\n ...params,\n requests: [APPS_DATA_REQUESTS.INTERVENTION_UNIT_WELLS],\n });\n\n setAppsData(prevAppsData => {\n const entries = Object.entries(prevAppsData);\n const hasChanges = entries.some(([appId, prevAppData]) => {\n if (!interventionUnitAppIds.has(appId)) return false;\n const newData = resolvedAppsData[appId];\n if (!newData) return false;\n return newData.well?.id !== prevAppData.well?.id;\n });\n\n if (!hasChanges) return prevAppsData;\n\n return entries.reduce<LoadedAppData>((acc, [appId, prevAppData]) => {\n if (!interventionUnitAppIds.has(appId)) {\n acc[appId] = prevAppData;\n return acc;\n }\n\n const newData = resolvedAppsData[appId];\n if (!newData || newData.well?.id === prevAppData.well?.id) {\n acc[appId] = prevAppData;\n return acc;\n }\n\n acc[appId] = { ...prevAppData, ...newData, isLoading: false };\n return acc;\n }, {});\n });\n }, INTERVENTION_UNITS_REFRESH_INTERVAL);\n\n return () => clearInterval(interval);\n }, [hasAppsNeedingInterventionUnitRefresh]);\n\n return appsData;\n};\n\nexport default useAppsData;\n"],"names":["useAppsData","_ref","allApps","apps","dashboardAssetId","dashboardMeta","_useState","useState","_useState2","_slicedToArray","appsData","setAppsData","resolveAppsDataParamsRef","useRef","cache","wellsById","rigsById","fracFleetsById","interventionUnitsById","deprecatedAssetData","reduce","acc","app","_app$app","isMultiRig","isDCAppMultiRig","uiSettings","ui_settings","isChiplessDashboard","isDevCenterApp","push","_objectSpread","appHash","getAppHash","handleResolvedAppsData","resolvedAppsData","prevAppsData","Object","fromEntries","entries","map","_ref2","_ref3","appId","prevAppData","id","isLoading","updateCache","updates","current","merge","useEffect","appsDataValues","values","length","appIds","Set","String","removedApp","find","appData","has","filter","_ref4","changedApps","getInitialAppsDataState","resolveAppsData","then","_ref6","interval","setInterval","params","requests","APPS_DATA_REQUESTS","FRAC_FLEET_WELLS","PAD_WELLS","clearInterval","hasAppsNeedingInterventionUnitRefresh","some","isAppNeedingInterventionUnitWellRefresh","_asyncToGenerator","_regeneratorRuntime","mark","_callee","currentApps","interventionUnitAppIds","wrap","_context","prev","next","abrupt","INTERVENTION_UNIT_WELLS","sent","_ref8","_newData$well","_prevAppData$well","_ref9","newData","well","_ref10","_newData$well2","_prevAppData$well2","_ref11","stop"],"mappings":"opCAuBA,IAMMA,EAAc,SAA2EC,GAAA,IAAlEC,IAANC,KAAeC,IAAAA,iBAAkBC,IAAAA,cACtDC,EAAgCC,EAAwB,IAAGC,EAAAC,EAAAH,EAAA,GAApDI,EAAQF,EAAA,GAAEG,EAAWH,EAAA,GACtBI,EAA2BC,EAAqD,MAEhFC,EAAQD,EAAsB,CAClCE,UAAW,CAAE,EACbC,SAAU,CAAE,EACZC,eAAgB,CAAE,EAClBC,sBAAuB,CAAE,EACzBC,oBAAqB,CAAC,IAGlBhB,EAAOD,EAAQkB,QAA8B,SAACC,EAAKC,GAAQ,IAAAC,EACzDC,EAAaC,EAAgB,CACjCC,WAAmB,UAAPJ,EAAIA,WAAG,IAAAC,OAAA,EAAPA,EAASI,YACrBC,oBAAqBvB,aAAa,EAAbA,EAAeuB,sBAItC,OADIC,EAAeP,KAASE,GAAYH,EAAIS,KAAIC,EAAAA,EAAA,CAAA,EAAMT,GAAG,CAAA,EAAA,CAAEU,QAASC,EAAWX,MACxED,CACR,GAAE,IAEGa,EAAyB,SAACC,GAAgC,OAC9DxB,GAAY,SAAAyB,GAAY,OACtBC,OAAOC,YACLD,OAAOE,QAAQH,GAAcI,KAAI,SAAAC,GAAA,IAAAC,EAAAjC,EAAAgC,EAAA,GAAEE,E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