@corva/ui 3.60.0-0 → 3.60.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/api/{bic/fetchOffsetWellSelections.js → external-offsets/fetchOffsetWellSelectionAppOffsets.js} +2 -2
- package/cjs-bundle/components/OffsetWellPickerV5/api/external-offsets/fetchOffsetWellSelectionAppOffsets.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/api/external-offsets/fetchWellhubSettingsOffsets.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/api/external-offsets/fetchWellhubSettingsOffsets.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/api/external-offsets/resyncIdasWells.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/hooks/useAssetsFilter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/useRowInteractions.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/TableSection/TableSection.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/constants.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-save-reset/buildOffsetSourceLabel.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-save-reset/buildOffsetSourceLabel.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-save-reset/partitionSelectedWellIds.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-save-reset/partitionSelectedWellIds.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-save-reset/useCancelHandler.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-save-reset/usePerformSave.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-save-reset/useSaveReset.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-save-reset/useSaveResetDerivedState.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-selection/useSelectionHandlers.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-selection/useWellReconciliation.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-selection/useWellSelection.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAutoSyncOffsetWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useExternalOffsets.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useExternalOffsets.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/usePickerStoreSelectors.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/types.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreContext.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreContext.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreProvider.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreProvider.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncStore.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncStore.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/idas-resync.types.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/idas-resync.types.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/idasResyncChannel.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/idasResyncChannel.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/subscribeToIdasResync.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/subscribeToIdasResync.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStore.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStore.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStoreApi.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStoreApi.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncSync.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncSync.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/classifyBicSourceBuckets.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/classifyBicSourceBuckets.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/isXtoIdasPicker.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/isXtoIdasPicker.js.map +1 -0
- package/cjs-bundle/componentsV2/Menu/Menu.scss.js +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.types.d.ts +65 -27
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.types.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/api/external-offsets/fetchOffsetWellSelectionAppOffsets.d.ts +2 -0
- package/components/OffsetWellPickerV5/api/external-offsets/fetchOffsetWellSelectionAppOffsets.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/api/{bic/fetchOffsetWellSelections.js → external-offsets/fetchOffsetWellSelectionAppOffsets.js} +2 -2
- package/components/OffsetWellPickerV5/api/external-offsets/fetchOffsetWellSelectionAppOffsets.js.map +1 -0
- package/components/OffsetWellPickerV5/api/external-offsets/fetchWellhubSettingsOffsets.d.ts +2 -0
- package/components/OffsetWellPickerV5/api/external-offsets/fetchWellhubSettingsOffsets.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/api/{bic/fetchWellhubWells.js → external-offsets/fetchWellhubSettingsOffsets.js} +2 -2
- package/components/OffsetWellPickerV5/api/external-offsets/fetchWellhubSettingsOffsets.js.map +1 -0
- package/components/OffsetWellPickerV5/api/external-offsets/resyncIdasWells.d.ts +7 -0
- package/components/OffsetWellPickerV5/api/external-offsets/resyncIdasWells.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/api/external-offsets/resyncIdasWells.js +2 -0
- package/components/OffsetWellPickerV5/api/index.d.ts +3 -3
- package/components/OffsetWellPickerV5/api/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.d.ts +1 -5
- package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.d.ts +1 -5
- package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts +2 -2
- package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.types.d.ts +8 -5
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.types.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/hooks/useAssetsFilter.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/OffsetWellsTableRow/OffsetWellsTableRow.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/OffsetWellsTableRow/OffsetWellsTableRow.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.d.ts +3 -2
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/useRowInteractions.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/useRowMemoizedMaps.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/useRowMemoizedMaps.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.d.ts +6 -3
- package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
- package/components/OffsetWellPickerV5/components/TableSection/TableSection.d.ts +1 -1
- package/components/OffsetWellPickerV5/components/TableSection/TableSection.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/TableSection/TableSection.js +1 -1
- package/components/OffsetWellPickerV5/constants.d.ts +0 -11
- package/components/OffsetWellPickerV5/constants.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/constants.js +1 -1
- package/components/OffsetWellPickerV5/hooks/__tests__/useExternalOffsets.test.d.ts +2 -0
- package/components/OffsetWellPickerV5/hooks/__tests__/useExternalOffsets.test.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/index.d.ts +1 -1
- package/components/OffsetWellPickerV5/hooks/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/__tests__/buildOffsetSourceLabel.test.d.ts +2 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/__tests__/buildOffsetSourceLabel.test.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/__tests__/partitionSelectedWellIds.test.d.ts +2 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/__tests__/partitionSelectedWellIds.test.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/__tests__/useSaveReset.test.d.ts +2 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/__tests__/useSaveReset.test.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/__tests__/useSaveResetDerivedState.test.d.ts +2 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/__tests__/useSaveResetDerivedState.test.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/buildOffsetSourceLabel.d.ts +18 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/buildOffsetSourceLabel.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/buildOffsetSourceLabel.js +2 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/buildOffsetSourceLabel.js.map +1 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/partitionSelectedWellIds.d.ts +29 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/partitionSelectedWellIds.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/partitionSelectedWellIds.js +2 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/partitionSelectedWellIds.js.map +1 -0
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useCancelHandler.d.ts +2 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useCancelHandler.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useCancelHandler.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/usePerformSave.d.ts +4 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/usePerformSave.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/usePerformSave.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useSaveReset.d.ts +1 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useSaveReset.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useSaveReset.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useSaveReset.types.d.ts +17 -4
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useSaveReset.types.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useSaveResetDerivedState.d.ts +23 -6
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useSaveResetDerivedState.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-save-reset/useSaveResetDerivedState.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useAdvancedWells.d.ts +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useAdvancedWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.d.ts +6 -5
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-selection/__tests__/useSelectionHandlers.test.d.ts +2 -0
- package/components/OffsetWellPickerV5/hooks/use-well-selection/__tests__/useSelectionHandlers.test.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/use-well-selection/index.d.ts +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-selection/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-selection/useSelectionHandlers.d.ts +3 -3
- package/components/OffsetWellPickerV5/hooks/use-well-selection/useSelectionHandlers.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-selection/useSelectionHandlers.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-selection/useWellReconciliation.d.ts +3 -1
- package/components/OffsetWellPickerV5/hooks/use-well-selection/useWellReconciliation.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-selection/useWellReconciliation.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-selection/useWellSelection.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-selection/useWellSelection.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-selection/useWellSelection.types.d.ts +5 -2
- package/components/OffsetWellPickerV5/hooks/use-well-selection/useWellSelection.types.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useAutoSyncOffsetWells.d.ts +11 -3
- package/components/OffsetWellPickerV5/hooks/useAutoSyncOffsetWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useAutoSyncOffsetWells.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useExternalOffsets.d.ts +33 -0
- package/components/OffsetWellPickerV5/hooks/useExternalOffsets.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/useExternalOffsets.js +2 -0
- package/components/OffsetWellPickerV5/hooks/useExternalOffsets.js.map +1 -0
- package/components/OffsetWellPickerV5/hooks/usePickerStoreSelectors.d.ts +1 -0
- package/components/OffsetWellPickerV5/hooks/usePickerStoreSelectors.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/usePickerStoreSelectors.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useWellsToDisplay.d.ts +2 -2
- package/components/OffsetWellPickerV5/hooks/useWellsToDisplay.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/types.js +1 -1
- package/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreContext.d.ts +3 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreContext.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreContext.js +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreContext.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreProvider.d.ts +7 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreProvider.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreProvider.js +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreProvider.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/__tests__/useIdasResyncSync.test.d.ts +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/__tests__/useIdasResyncSync.test.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.d.ts +46 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncStore.d.ts +5 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncStore.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncStore.js +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncStore.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/idas-resync.types.d.ts +18 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/idas-resync.types.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/idas-resync.types.js +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/idas-resync.types.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/idasResyncChannel.d.ts +5 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/idasResyncChannel.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/idasResyncChannel.js +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/idasResyncChannel.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/index.d.ts +11 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/index.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/subscribeToIdasResync.d.ts +19 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/subscribeToIdasResync.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/subscribeToIdasResync.js +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/subscribeToIdasResync.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStore.d.ts +3 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStore.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStore.js +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStore.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStoreApi.d.ts +3 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStoreApi.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStoreApi.js +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStoreApi.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncSync.d.ts +7 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncSync.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncSync.js +2 -0
- package/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncSync.js.map +1 -0
- package/components/OffsetWellPickerV5/utils/__tests__/classifyBicSourceBuckets.test.d.ts +2 -0
- package/components/OffsetWellPickerV5/utils/__tests__/classifyBicSourceBuckets.test.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/utils/classifyBicSourceBuckets.d.ts +24 -0
- package/components/OffsetWellPickerV5/utils/classifyBicSourceBuckets.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/utils/classifyBicSourceBuckets.js +2 -0
- package/components/OffsetWellPickerV5/utils/classifyBicSourceBuckets.js.map +1 -0
- package/components/OffsetWellPickerV5/utils/index.d.ts +2 -0
- package/components/OffsetWellPickerV5/utils/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/utils/isXtoIdasPicker.d.ts +8 -0
- package/components/OffsetWellPickerV5/utils/isXtoIdasPicker.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/utils/isXtoIdasPicker.js +2 -0
- package/components/OffsetWellPickerV5/utils/isXtoIdasPicker.js.map +1 -0
- package/componentsV2/Menu/Menu.scss.js +1 -1
- package/mcp-server/server.mjs +1 -1
- package/package.json +9 -8
- package/tsconfig.tsbuildinfo +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/api/bic/fetchOffsetWellSelections.js.map +0 -1
- package/cjs-bundle/components/OffsetWellPickerV5/api/bic/fetchWellhubWells.js +0 -2
- package/cjs-bundle/components/OffsetWellPickerV5/api/bic/fetchWellhubWells.js.map +0 -1
- package/cjs-bundle/components/OffsetWellPickerV5/api/bic/resyncIdasWells.js +0 -2
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useBicWells.js +0 -2
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useBicWells.js.map +0 -1
- package/components/OffsetWellPickerV5/api/bic/fetchOffsetWellSelections.d.ts +0 -2
- package/components/OffsetWellPickerV5/api/bic/fetchOffsetWellSelections.d.ts.map +0 -1
- package/components/OffsetWellPickerV5/api/bic/fetchOffsetWellSelections.js.map +0 -1
- package/components/OffsetWellPickerV5/api/bic/fetchWellhubWells.d.ts +0 -2
- package/components/OffsetWellPickerV5/api/bic/fetchWellhubWells.d.ts.map +0 -1
- package/components/OffsetWellPickerV5/api/bic/fetchWellhubWells.js.map +0 -1
- package/components/OffsetWellPickerV5/api/bic/resyncIdasWells.d.ts +0 -2
- package/components/OffsetWellPickerV5/api/bic/resyncIdasWells.d.ts.map +0 -1
- package/components/OffsetWellPickerV5/api/bic/resyncIdasWells.js +0 -2
- package/components/OffsetWellPickerV5/hooks/useBicWells.d.ts +0 -26
- package/components/OffsetWellPickerV5/hooks/useBicWells.d.ts.map +0 -1
- package/components/OffsetWellPickerV5/hooks/useBicWells.js +0 -2
- package/components/OffsetWellPickerV5/hooks/useBicWells.js.map +0 -1
- /package/cjs-bundle/components/OffsetWellPickerV5/api/{bic → external-offsets}/resyncIdasWells.js.map +0 -0
- /package/components/OffsetWellPickerV5/api/{bic → external-offsets}/resyncIdasWells.js.map +0 -0
|
@@ -15,6 +15,8 @@ type UseWellReconciliationParams = {
|
|
|
15
15
|
* When the picker opens, resolves any missing wells by fetching them,
|
|
16
16
|
* then updates the selection to match external settings.
|
|
17
17
|
*/
|
|
18
|
-
export declare const useWellReconciliation: ({ subjectWell, wells, offsetSettings, open, isAllWellsLoaded, fetchSearchedWells, setSelectedWells, hasUserSelectionEditsRef, }: UseWellReconciliationParams) =>
|
|
18
|
+
export declare const useWellReconciliation: ({ subjectWell, wells, offsetSettings, open, isAllWellsLoaded, fetchSearchedWells, setSelectedWells, hasUserSelectionEditsRef, }: UseWellReconciliationParams) => {
|
|
19
|
+
isReconciled: boolean;
|
|
20
|
+
};
|
|
19
21
|
export {};
|
|
20
22
|
//# sourceMappingURL=useWellReconciliation.d.ts.map
|
package/components/OffsetWellPickerV5/hooks/use-well-selection/useWellReconciliation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWellReconciliation.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/use-well-selection/useWellReconciliation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAItF,KAAK,2BAA2B,GAAG;IACjC,WAAW,EAAE,UAAU,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAChD,IAAI,EAAE,OAAO,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IACjE,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACzD,wBAAwB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CACrD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,iIASnC,2BAA2B,KAAG,
|
|
1
|
+
{"version":3,"file":"useWellReconciliation.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/use-well-selection/useWellReconciliation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAItF,KAAK,2BAA2B,GAAG;IACjC,WAAW,EAAE,UAAU,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAChD,IAAI,EAAE,OAAO,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IACjE,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACzD,wBAAwB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CACrD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,iIASnC,2BAA2B,KAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAkIvD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/regenerator";import{useRef as
|
|
1
|
+
import r from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/regenerator";import{useRef as n,useState as u,useMemo as c,useCallback as i,useEffect as a}from"react";import{uniqBy as o}from"lodash";import{getSortedIdsSignature as s}from"./getSortedIdsSignature.js";var l=function(l){var f=l.subjectWell,p=l.wells,d=l.offsetSettings,m=l.open,h=l.isAllWellsLoaded,v=l.fetchSearchedWells,b=l.setSelectedWells,x=l.hasUserSelectionEditsRef,w=n(null),g=n(null),S=n(0),k=u(!1),W=e(k,2),y=W[0],I=W[1],j=c((function(){return(null==d?void 0:d.selectedWellIds)||[]}),[null==d?void 0:d.selectedWellIds]),A=c((function(){return s(j)}),[j]),E=i(function(){var e=r(t.mark((function r(e){var n,u,c,i,a,l;return t.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e===S.current&&!x.current){r.next=2;break}return r.abrupt("return",!1);case 2:if(n=new Map((null==p?void 0:p.map((function(r){return[r.id,r]})))||[]),!((u=j.filter((function(r){return!n.has(r)}))).length>0)){r.next=13;break}if(c="".concat(A,"|").concat(s(u)),g.current===c){r.next=12;break}return g.current=c,r.next=10,v(u);case 10:r.sent.forEach((function(r){return n.set(r.id,r)}));case 12:u=j.filter((function(r){return!n.has(r)}));case 13:if(e===S.current&&!x.current){r.next=15;break}return r.abrupt("return",!1);case 15:return i=new Set(j),a=j.map((function(r){return n.get(r)})).filter((function(r){return void 0!==r})),l=new Set(a.map((function(r){return r.id}))),b((function(r){var e=r.filter((function(r){return i.has(r.id)&&!l.has(r.id)})),t=a.concat(e);f&&(t=t.concat(f));var n=o(t,"id"),u=new Set(n.map((function(r){return r.id})));return r.length===u.size&&r.every((function(r){return u.has(r.id)}))?r:n})),r.abrupt("return",0===u.length);case 20:case"end":return r.stop()}}),r)})));return function(r){return e.apply(this,arguments)}}(),[j,A,v,f,p,x,b]);return a((function(){if(!m)return x.current=!1,w.current=null,g.current=null,S.current+=1,void I(!1);if(h&&!x.current&&w.current!==A){I(!1);var e=S.current+1;S.current=e;var n=!1,u=function(){var u=r(t.mark((function r(){var u;return t.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,E(e);case 3:if(u=r.sent,!n&&S.current===e){r.next=6;break}return r.abrupt("return");case 6:u&&(w.current=A),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(0),console.error("Failed to reconcile selected wells from offset settings:",r.t0);case 12:return r.prev=12,n||S.current!==e||I(!0),r.finish(12);case 15:case"end":return r.stop()}}),r,null,[[0,9,12,15]])})));return function(){return u.apply(this,arguments)}}();return u(),function(){n=!0}}}),[m,h,A,E,x]),{isReconciled:y}};export{l as useWellReconciliation};
|
|
2
2
|
//# sourceMappingURL=useWellReconciliation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWellSelection.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/use-well-selection/useWellSelection.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAM/F;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,sBAAsB,KAAG,
|
|
1
|
+
{"version":3,"file":"useWellSelection.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/use-well-selection/useWellSelection.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAM/F;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,sBAAsB,KAAG,sBA4HjE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as l,useRef as r,useCallback as n,useMemo as s}from"react";import{ALL_SECTION_KEY as i}from"../../constants.js";import{useFilterPruneEffect as o}from"./useFilterPruneEffect.js";import{useWellReconciliation as c}from"./useWellReconciliation.js";import{usePendingSearchEffect as f}from"./usePendingSearchEffect.js";import{useSelectionHandlers as u}from"./useSelectionHandlers.js";function d(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),l.push.apply(l,r)}return l}var a=function(a){var S=a.subjectWellId,p=a.subjectWell,
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as l,useRef as r,useCallback as n,useMemo as s}from"react";import{ALL_SECTION_KEY as i}from"../../constants.js";import{useFilterPruneEffect as o}from"./useFilterPruneEffect.js";import{useWellReconciliation as c}from"./useWellReconciliation.js";import{usePendingSearchEffect as f}from"./usePendingSearchEffect.js";import{useSelectionHandlers as u}from"./useSelectionHandlers.js";function d(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),l.push.apply(l,r)}return l}var a=function(a){var S=a.subjectWellId,p=a.subjectWell,m=a.wells,W=a.filteredWells,b=a.externalOffsets,h=a.rawWellsWithSubject,O=a.offsetSettings,j=a.maxOffsetWellNumber,g=a.maxOffsetSize,w=a.open,y=a.isAllWellsLoaded,P=a.fetchSearchedWells,v=a.filters,E=a.filterMutationSeq,R=a.lastFilterMutationSource,x=a.includeHidden,I=l([]),A=t(I,2),Z=A[0],C=A[1],U=r(!1),D=r(new Set),L=r(0),M=l((function(){var e;return null!==(e=null==O?void 0:O.lastSelectionZone)&&void 0!==e?e:null})),F=t(M,2),H=F[0],N=F[1],k=l((null==O?void 0:O.wellSection)||i),q=t(k,2),z=q[0],G=q[1],T=l([]),B=t(T,2),J=B[0],K=B[1];o({filterMutationSeq:E,lastFilterMutationSource:R,open:w,filters:v,includeHidden:x,subjectWellId:S,setSelectedWells:C,setCurrentSelectionZone:N,hasUserSelectionEditsRef:U});var Q=c({subjectWell:p,wells:m,offsetSettings:O,open:w,isAllWellsLoaded:y,fetchSearchedWells:P,setSelectedWells:C,hasUserSelectionEditsRef:U}).isReconciled;f({wells:m,maxOffsetWellNumber:j,filters:v,pendingSearchSelectionRef:D,setSelectedWells:C,setCurrentSelectionZone:N,setLoadingAssetIds:K});var V=u({subjectWell:p,wells:m,filteredWells:W,externalOffsets:b,rawWellsWithSubject:h,maxOffsetWellNumber:j,maxOffsetSize:g,fetchSearchedWells:P,setSelectedWells:C,setCurrentSelectionZone:N,setSelectedWellSection:G,hasUserSelectionEditsRef:U}),X=n((function(){U.current=!0}),[]),Y=n((function(e){e.forEach((function(e){return D.current.add(e)}))}),[]),$=n((function(){D.current.clear(),L.current+=1}),[]),_=s((function(){return Z.find((function(e){return e.id===S}))?Z.length-1:Z.length}),[Z,S]),ee=s((function(){return Z.map((function(e){return e.id}))}),[Z]);return function(t){for(var l=1;l<arguments.length;l++){var r=null!=arguments[l]?arguments[l]:{};l%2?d(Object(r),!0).forEach((function(l){e(t,l,r[l])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({selectedWells:Z,setSelectedWells:C,selectedWellsCount:_,selectedWellIds:ee,isReconciled:Q,currentSelectionZone:H,setCurrentSelectionZone:N,selectedWellSection:z,setSelectedWellSection:G,loadingAssetIds:J,setLoadingAssetIds:K,pendingSearchSelectionRef:D,pendingSearchGenerationRef:L,hasUserSelectionEditsRef:U,markUserEdit:X,addPendingSearchIds:Y,abandonPendingSearch:$},V)};export{a as useWellSelection};
|
|
2
2
|
//# sourceMappingURL=useWellSelection.js.map
|
|
@@ -2,7 +2,7 @@ import type { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|
|
2
2
|
import type { OffsetWell, OffsetSettingsInput } from '../../OffsetWellPickerV5.types';
|
|
3
3
|
import type { FilterState, FilterMutationSource } from '../../stores/filter-store/types';
|
|
4
4
|
import type { SelectionZone } from '../../types/SelectionZone';
|
|
5
|
-
export type
|
|
5
|
+
export type ExternalOffsetsWells = Record<string, number[]>;
|
|
6
6
|
export type BatchSelectResult = {
|
|
7
7
|
attempted: number;
|
|
8
8
|
added: number;
|
|
@@ -12,7 +12,7 @@ export type UseWellSelectionParams = {
|
|
|
12
12
|
subjectWell: OffsetWell | null;
|
|
13
13
|
wells: OffsetWell[] | null;
|
|
14
14
|
filteredWells: OffsetWell[] | null;
|
|
15
|
-
|
|
15
|
+
externalOffsets: ExternalOffsetsWells | null;
|
|
16
16
|
rawWellsWithSubject: OffsetWell[] | null;
|
|
17
17
|
offsetSettings: OffsetSettingsInput | undefined;
|
|
18
18
|
maxOffsetWellNumber: number;
|
|
@@ -30,6 +30,7 @@ export type UseWellSelectionReturn = {
|
|
|
30
30
|
setSelectedWells: Dispatch<SetStateAction<OffsetWell[]>>;
|
|
31
31
|
selectedWellsCount: number;
|
|
32
32
|
selectedWellIds: number[];
|
|
33
|
+
isReconciled: boolean;
|
|
33
34
|
currentSelectionZone: SelectionZone | null;
|
|
34
35
|
setCurrentSelectionZone: Dispatch<SetStateAction<SelectionZone | null>>;
|
|
35
36
|
selectedWellSection: string;
|
|
@@ -37,9 +38,11 @@ export type UseWellSelectionReturn = {
|
|
|
37
38
|
loadingAssetIds: number[];
|
|
38
39
|
setLoadingAssetIds: Dispatch<SetStateAction<number[]>>;
|
|
39
40
|
pendingSearchSelectionRef: MutableRefObject<Set<number>>;
|
|
41
|
+
pendingSearchGenerationRef: MutableRefObject<number>;
|
|
40
42
|
hasUserSelectionEditsRef: MutableRefObject<boolean>;
|
|
41
43
|
markUserEdit: () => void;
|
|
42
44
|
addPendingSearchIds: (ids: number[]) => void;
|
|
45
|
+
abandonPendingSearch: () => void;
|
|
43
46
|
handleChangeOffsetWell: (well: OffsetWell, checked: boolean) => void;
|
|
44
47
|
handleChangeAllOffsetWells: (checked: boolean) => void;
|
|
45
48
|
handleBatchSelectWells: (wellsToSelect: OffsetWell[], onComplete?: (result: BatchSelectResult) => void, options?: {
|
package/components/OffsetWellPickerV5/hooks/use-well-selection/useWellSelection.types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWellSelection.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/use-well-selection/useWellSelection.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"useWellSelection.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/use-well-selection/useWellSelection.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAC5D,MAAM,MAAM,iBAAiB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,WAAW,EAAE,UAAU,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACnC,eAAe,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC7C,mBAAmB,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACzC,cAAc,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAChD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IACjE,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,EAAE,oBAAoB,CAAC;IAC/C,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,UAAU,EAAE,CAAC;IAC5B,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACzD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,oBAAoB,EAAE,aAAa,GAAG,IAAI,CAAC;IAC3C,uBAAuB,EAAE,QAAQ,CAAC,cAAc,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC,CAAC;IACxE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACzD,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,kBAAkB,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACvD,yBAAyB,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACzD,0BAA0B,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACrD,wBAAwB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC7C,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,sBAAsB,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrE,0BAA0B,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,sBAAsB,EAAE,CACtB,aAAa,EAAE,UAAU,EAAE,EAC3B,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,EAChD,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,KAC7B,IAAI,CAAC;IACV,0BAA0B,EAAE,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IACjE,uBAAuB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,4BAA4B,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE,CAAC"}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import type { OffsetSettingsInput, OffsetSettingsOutput, OffsetWell } from '../OffsetWellPickerV5.types';
|
|
2
|
-
import type { OffsetWellsBySection } from './
|
|
2
|
+
import type { OffsetWellsBySection } from './useExternalOffsets';
|
|
3
3
|
type UseAutoSyncOffsetWellsParams = {
|
|
4
4
|
isAllWellsLoaded: boolean;
|
|
5
5
|
syncAutoEnabled: boolean;
|
|
6
|
+
isXtoIdas: boolean;
|
|
6
7
|
offsetSettings: OffsetSettingsInput | undefined;
|
|
7
|
-
|
|
8
|
+
externalOffsets: OffsetWellsBySection | null;
|
|
8
9
|
subjectWellId: number | null;
|
|
9
10
|
maxOffsetWellNumber: number;
|
|
10
11
|
localMaxOffsetSize: number;
|
|
12
|
+
idasWellIds: number[];
|
|
13
|
+
owsWellIds: number[];
|
|
14
|
+
wellhubWellIds: number[];
|
|
11
15
|
onSave: (offsetSettings: OffsetSettingsOutput, selectedWells?: OffsetWell[]) => void;
|
|
12
16
|
};
|
|
13
17
|
/**
|
|
14
18
|
* Auto-syncs offset wells from BIC well recommendations when syncAutoEnabled is true.
|
|
15
19
|
* Runs once when the app first loads with valid offset settings and BIC data.
|
|
20
|
+
*
|
|
21
|
+
* Skipped for XTO IDAS users: their authoritative path is the explicit "Sync with
|
|
22
|
+
* IDAS" header action, which triggers a backend recompute. Auto-saving the initial
|
|
23
|
+
* BIC snapshot on mount would silently pin pre-resync state and make Cancel a no-op.
|
|
16
24
|
*/
|
|
17
|
-
export declare const useAutoSyncOffsetWells: ({ isAllWellsLoaded, syncAutoEnabled, offsetSettings,
|
|
25
|
+
export declare const useAutoSyncOffsetWells: ({ isAllWellsLoaded, syncAutoEnabled, isXtoIdas, offsetSettings, externalOffsets, subjectWellId, maxOffsetWellNumber, localMaxOffsetSize, idasWellIds, owsWellIds, wellhubWellIds, onSave, }: UseAutoSyncOffsetWellsParams) => void;
|
|
18
26
|
export {};
|
|
19
27
|
//# sourceMappingURL=useAutoSyncOffsetWells.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutoSyncOffsetWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/hooks/useAutoSyncOffsetWells.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACX,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useAutoSyncOffsetWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/hooks/useAutoSyncOffsetWells.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACX,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAMjE,KAAK,4BAA4B,GAAG;IAClC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAChD,eAAe,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC7C,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,CAAC,cAAc,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;CACtF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,6LAapC,4BAA4B,KAAG,IAoGjC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/slicedToArray";import l from"@babel/runtime/regenerator";import{useState as n,useEffect as s}from"react";import{ALL_SECTION_KEY as o}from"../constants.js";import{getCoordinatedWells as i}from"../utils/getCoordinatedWells.js";import"geolib";import"../../../utils/convert.js";import"moment";import"../../../utils/index.js";import"lodash";import{partitionSelectedWellIds as c,applyPartitionToOffsetSettings as a}from"./use-save-reset/partitionSelectedWellIds.js";function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function u(t){for(var r=1;r<arguments.length;r++){var l=null!=arguments[r]?arguments[r]:{};r%2?d(Object(l),!0).forEach((function(r){e(t,r,l[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):d(Object(l)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))}))}return t}var f=function(e){var d=e.isAllWellsLoaded,f=e.syncAutoEnabled,p=e.isXtoIdas,b=e.offsetSettings,m=e.externalOffsets,W=e.subjectWellId,v=e.maxOffsetWellNumber,I=e.localMaxOffsetSize,j=e.idasWellIds,O=e.owsWellIds,y=e.wellhubWellIds,h=e.onSave,w=n(!0),g=r(w,2),x=g[0],S=g[1];s((function(){S(!0)}),[W]),s((function(){if(!p&&d){var e=function(){var e=t(l.mark((function e(){var t,r,n,s,d,f,p,w,g,x,S,P,k,D,A;return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m&&null!==W){e.next=2;break}return e.abrupt("return");case 2:if(t=void 0===(null==b?void 0:b.isSynced)||(null==b?void 0:b.isSynced),r=!0,!t){e.next=23;break}if(s=m[o]||[],d=new Set(s),f=((null==b?void 0:b.selectedWellIds)||[]).every((function(e){return d.has(e)})),s.length===(null==b||null===(n=b.selectedWellIds)||void 0===n?void 0:n.length)&&f){e.next=20;break}return e.next=11,i(s,W);case 11:p=e.sent,w=p.slice(0,I+1).map((function(e){return e.id})),g=c({selectedWellIds:w,subjectWellId:null!=W?W:void 0,idasWellIds:j,owsWellIds:O,wellhubWellIds:y}),x=a(u(u({},b),{},{subjectWellId:W,selectedWellIds:w,offsetWellsLimited:v<=w.length}),g),S=new Set(w),P=p.filter((function(e){return S.has(e.id)})),h(x,P),e.next=21;break;case 20:r=!1;case 21:e.next=24;break;case 23:r=!1;case 24:if(r){e.next=31;break}return e.next=27,i((null==b?void 0:b.selectedWellIds)||[],W);case 27:k=e.sent,D=c({selectedWellIds:(null==b?void 0:b.selectedWellIds)||[],subjectWellId:null!=W?W:void 0,idasWellIds:j,owsWellIds:O,wellhubWellIds:y}),A=a(u({},b),D),h(A,k);case 31:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();f&&x&&b&&m&&(e(),S(!1))}}),[b,m,W,v,f,p,d,x,I,j,O,y,h])};export{f as useAutoSyncOffsetWells};
|
|
2
2
|
//# sourceMappingURL=useAutoSyncOffsetWells.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
|
+
export type WellSection = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
};
|
|
7
|
+
export type OffsetWellsBySection = Record<string, number[]>;
|
|
8
|
+
export type TaScore = {
|
|
9
|
+
wellId: number;
|
|
10
|
+
taScore: string | number;
|
|
11
|
+
};
|
|
12
|
+
export type OffsetsState = {
|
|
13
|
+
wellSections: WellSection[] | null;
|
|
14
|
+
offsetWellsBySection: OffsetWellsBySection | null;
|
|
15
|
+
taScores: TaScore[];
|
|
16
|
+
/** Raw IDAS-classified wells from BIC. Subject excluded. Not viewport-filtered. */
|
|
17
|
+
idasWellIds: number[];
|
|
18
|
+
/** Raw Offset Well Selection app wells from BIC. Subject excluded. Not viewport-filtered. */
|
|
19
|
+
owsWellIds: number[];
|
|
20
|
+
/** Raw Wellhub auto wells. Subject excluded. Not viewport-filtered. */
|
|
21
|
+
wellhubWellIds: number[];
|
|
22
|
+
loadedAssetId: number | null;
|
|
23
|
+
};
|
|
24
|
+
type UseExternalOffsetsReturn = {
|
|
25
|
+
offsets: OffsetsState;
|
|
26
|
+
setOffsets: Dispatch<SetStateAction<OffsetsState>>;
|
|
27
|
+
loadExternalOffsets: () => Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
export declare const useExternalOffsets: (assetId: number | null, wells: Array<{
|
|
30
|
+
id: number;
|
|
31
|
+
}> | null) => UseExternalOffsetsReturn;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=useExternalOffsets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExternalOffsets.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/hooks/useExternalOffsets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ7F,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAE5D,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,YAAY,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IACnC,oBAAoB,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAClD,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,mFAAmF;IACnF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,6FAA6F;IAC7F,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,uEAAuE;IACvE,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAYF,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IACnD,mBAAmB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,SAAS,MAAM,GAAG,IAAI,EACtB,OAAO,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,IAAI,KAClC,wBAoKF,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/helpers/slicedToArray";import l from"@babel/runtime/regenerator";import{useState as o,useCallback as n,useEffect as i}from"react";import{uniq as a,get as c}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions/constants.js";import"../../../clients/subscriptions.v1.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"../../../clients/api/rateLimiter.js";import{WellSectionColors as u,ALL_SECTION_KEY as p,ALL_SECTION_LABEL as f}from"../constants.js";import"../api/shared/dataFormatter.js";import{fetchOffsetWellSelectionAppOffsets as m}from"../api/external-offsets/fetchOffsetWellSelectionAppOffsets.js";import{fetchWellhubSettingsOffsets as d}from"../api/external-offsets/fetchWellhubSettingsOffsets.js";import"zustand";import"../stores/picker-props-store/PickerPropsStoreContext.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react/jsx-runtime";import"../viewport/ViewportProvider.js";import"../viewport/ViewportContext.js";import{usePickerPropsStore as b}from"../stores/picker-props-store/usePickerPropsStore.js";import{classifyBicSourceBuckets as v}from"../utils/classifyBicSourceBuckets.js";function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function h(e){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?w(Object(s),!0).forEach((function(r){t(e,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):w(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var S={wellSections:null,offsetWellsBySection:null,taScores:[],idasWellIds:[],owsWellIds:[],wellhubWellIds:[],loadedAssetId:null},j=function(w,j){var W=b((function(e){return e.isWDUser})),O=b((function(e){return e.isManualWellsEnabled})),I=o(S),y=s(I,2),x=y[0],k=y[1],P=n(r(l.mark((function r(){var s,o,n,i,c,d,b,W,I,y,x,P,g,B,A,D,_,C,E,J,N;return l.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(w&&j){r.next=2;break}return r.abrupt("return");case 2:return r.prev=2,r.next=5,m(w);case 5:if(i=r.sent,c=null!==(s=null===(o=i[0])||void 0===o?void 0:o.data)&&void 0!==s?s:null,d=null!=c&&c.filters?JSON.parse(c.filters):null,b=null!=c&&c.result?JSON.parse(c.result):null,W=O&&null!=c&&c.manual_wells?JSON.parse(c.manual_wells):[],I=O&&null!=c&&c.ta_scores?JSON.parse(c.ta_scores):null,d&&b){r.next=20;break}if(W.length){r.next=15;break}return k(h(h({},S),{},{wellSections:[],offsetWellsBySection:{}})),r.abrupt("return");case 15:return y=a([w].concat(e(W))),x=W.map((function(e,t){var r;return{wellId:e,taScore:null!==(r=null==I?void 0:I[t])&&void 0!==r?r:""}})),P=v({resultSectionIds:[],manualWellIds:W,assetId:w}),g=P.idasWellIds,B=P.owsWellIds,k({wellSections:[],offsetWellsBySection:t({},p,y),taScores:x,idasWellIds:g,owsWellIds:B,wellhubWellIds:[],loadedAssetId:w}),r.abrupt("return");case 20:A=(null===(n=d.filterTabs)||void 0===n?void 0:n.map((function(e,t){return{value:e.value,label:e.name,color:u[t]}})))||[],D=[w],_=A.reduce((function(e,r){var s=r.value,l=b[s]||[],o=a(l.concat(w));return D=D.concat(o),h(h({},e),{},t({},s,o))}),{}),C=[],W.length&&(D=D.concat(W),C=W.map((function(e,t){var r;return{wellId:e,taScore:null!==(r=null==I?void 0:I[t])&&void 0!==r?r:""}}))),_[p]=a(D),E=v({resultSectionIds:A.map((function(e){var t=e.value;return b[t]||[]})),manualWellIds:W,assetId:w}),J=E.idasWellIds,N=E.owsWellIds,k({wellSections:[{value:p,label:f}].concat(e(A)),offsetWellsBySection:_,taScores:C,idasWellIds:J,owsWellIds:N,wellhubWellIds:[],loadedAssetId:w}),r.next=34;break;case 30:r.prev=30,r.t0=r.catch(2),console.error("Offset well selection fetch error: ",r.t0),k(h(h({},S),{},{wellSections:[],offsetWellsBySection:{}}));case 34:case"end":return r.stop()}}),r,null,[[2,30]])}))),[w,j,O]),g=n(r(l.mark((function e(){var r,s,o,n;return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(w&&j){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,d(w);case 5:r=e.sent,s=c(r[0],"data.offset_wells")||[],o=t({},p,a(s.map((function(e){return e.id})).concat(w))),n=a(s.map((function(e){return e.id}))).filter((function(e){return e!==w})),k(h(h({},S),{},{wellSections:[{value:p,label:f}],offsetWellsBySection:o,wellhubWellIds:n,loadedAssetId:w})),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),console.error("Wellhub fetch error: ",e.t0),k(h(h({},S),{},{wellSections:[],offsetWellsBySection:{}}));case 16:case"end":return e.stop()}}),e,null,[[2,12]])}))),[w,j]),B=n(r(l.mark((function e(){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!W){e.next=5;break}return e.next=3,P();case 3:e.next=7;break;case 5:return e.next=7,g();case 7:case"end":return e.stop()}}),e)}))),[W,P,g]);return i((function(){w&&j?B():!w&&j&&k(h(h({},S),{},{wellSections:[{value:p,label:f}],offsetWellsBySection:t({},p,[])}))}),[w,j,B]),{offsets:x,setOffsets:k,loadExternalOffsets:B}};export{j as useExternalOffsets};
|
|
2
|
+
//# sourceMappingURL=useExternalOffsets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExternalOffsets.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -17,6 +17,7 @@ export declare const usePickerStoreSelectors: () => {
|
|
|
17
17
|
resetIsLoadAllWells: () => void;
|
|
18
18
|
shouldRecenter: boolean;
|
|
19
19
|
setShouldRecenter: (value: boolean) => void;
|
|
20
|
+
isManualWellsEnabled: boolean;
|
|
20
21
|
isFilterExpanded: boolean;
|
|
21
22
|
isMapHidden: boolean;
|
|
22
23
|
isHScrollMoved: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePickerStoreSelectors.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/hooks/usePickerStoreSelectors.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"usePickerStoreSelectors.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/hooks/usePickerStoreSelectors.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEnC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{usePickerPropsStore as e}from"../stores/picker-props-store/usePickerPropsStore.js";import{useFilterStore as t}from"../stores/filter-store/useFilterStore.js";import{useViewStore as r}from"../stores/view-store/useViewStore.js";import"../stores/selection-tool-store/SelectionToolStoreContext.js";import"../stores/selection-tool-store/SelectionToolStoreProvider.js";import"zustand";import{useSelectionToolStore as n}from"../stores/selection-tool-store/useSelectionToolStore.js";var o=function(){return{open:e((function(e){return e.open})),isWDUser:e((function(e){return e.isWDUser})),defaultSubjectWell:e((function(e){return e.defaultSubjectWell})),currentUser:e((function(e){return e.currentUser})),offsetSettings:e((function(e){return e.offsetSettings})),isViewOnly:e((function(e){return e.isViewOnly})),onClose:e((function(e){return e.onClose})),onSave:e((function(e){return e.onSave})),offsetSize:e((function(e){return e.maxOffsetSize})),localMaxOffsetSize:e((function(e){return e.localMaxOffsetSize})),syncAutoEnabled:e((function(e){return e.syncAutoEnabled})),isLoadAllWells:e((function(e){return e.isLoadAllWells})),resetIsLoadAllWells:e((function(e){return e.resetIsLoadAllWells})),shouldRecenter:e((function(e){return e.shouldRecenter})),setShouldRecenter:e((function(e){return e.setShouldRecenter})),isFilterExpanded:r((function(e){return e.isFilterExpanded})),isMapHidden:r((function(e){return e.isMapHidden})),isHScrollMoved:r((function(e){return e.isHScrollMoved})),setIsHScrollMoved:r((function(e){return e.setIsHScrollMoved})),isVScrollMoved:r((function(e){return e.isVScrollMoved})),setIsVScrollMoved:r((function(e){return e.setIsVScrollMoved})),isAdvancedSearchHidden:r((function(e){return e.isAdvancedSearchHidden})),setIsAdvancedSearchHidden:r((function(e){return e.setIsAdvancedSearchHidden})),filters:t((function(e){return e.filters})),lastFilterMutationSource:t((function(e){return e.lastFilterMutationSource})),filterMutationSeq:t((function(e){return e.filterMutationSeq})),setFilters:t((function(e){return e.setFilters})),resetFilters:t((function(e){return e.resetFilters})),resetSelectionTool:n((function(e){return e.reset}))}};export{o as usePickerStoreSelectors};
|
|
1
|
+
import{usePickerPropsStore as e}from"../stores/picker-props-store/usePickerPropsStore.js";import{useFilterStore as t}from"../stores/filter-store/useFilterStore.js";import{useViewStore as r}from"../stores/view-store/useViewStore.js";import"../stores/selection-tool-store/SelectionToolStoreContext.js";import"../stores/selection-tool-store/SelectionToolStoreProvider.js";import"zustand";import{useSelectionToolStore as n}from"../stores/selection-tool-store/useSelectionToolStore.js";var o=function(){return{open:e((function(e){return e.open})),isWDUser:e((function(e){return e.isWDUser})),defaultSubjectWell:e((function(e){return e.defaultSubjectWell})),currentUser:e((function(e){return e.currentUser})),offsetSettings:e((function(e){return e.offsetSettings})),isViewOnly:e((function(e){return e.isViewOnly})),onClose:e((function(e){return e.onClose})),onSave:e((function(e){return e.onSave})),offsetSize:e((function(e){return e.maxOffsetSize})),localMaxOffsetSize:e((function(e){return e.localMaxOffsetSize})),syncAutoEnabled:e((function(e){return e.syncAutoEnabled})),isLoadAllWells:e((function(e){return e.isLoadAllWells})),resetIsLoadAllWells:e((function(e){return e.resetIsLoadAllWells})),shouldRecenter:e((function(e){return e.shouldRecenter})),setShouldRecenter:e((function(e){return e.setShouldRecenter})),isManualWellsEnabled:e((function(e){return e.isManualWellsEnabled})),isFilterExpanded:r((function(e){return e.isFilterExpanded})),isMapHidden:r((function(e){return e.isMapHidden})),isHScrollMoved:r((function(e){return e.isHScrollMoved})),setIsHScrollMoved:r((function(e){return e.setIsHScrollMoved})),isVScrollMoved:r((function(e){return e.isVScrollMoved})),setIsVScrollMoved:r((function(e){return e.setIsVScrollMoved})),isAdvancedSearchHidden:r((function(e){return e.isAdvancedSearchHidden})),setIsAdvancedSearchHidden:r((function(e){return e.setIsAdvancedSearchHidden})),filters:t((function(e){return e.filters})),lastFilterMutationSource:t((function(e){return e.lastFilterMutationSource})),filterMutationSeq:t((function(e){return e.filterMutationSeq})),setFilters:t((function(e){return e.setFilters})),resetFilters:t((function(e){return e.resetFilters})),resetSelectionTool:n((function(e){return e.reset}))}};export{o as usePickerStoreSelectors};
|
|
2
2
|
//# sourceMappingURL=usePickerStoreSelectors.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TransformedWell } from './use-well-data-pipeline';
|
|
2
|
-
import type { OffsetWellsBySection } from './
|
|
3
|
-
export declare const useWellsToDisplay: (filteredWells: TransformedWell[] | null, selectedWells: TransformedWell[], wells: TransformedWell[] | null,
|
|
2
|
+
import type { OffsetWellsBySection } from './useExternalOffsets';
|
|
3
|
+
export declare const useWellsToDisplay: (filteredWells: TransformedWell[] | null, selectedWells: TransformedWell[], wells: TransformedWell[] | null, externalOffsets: OffsetWellsBySection | null, selectedWellSection: string, includeHidden: boolean) => TransformedWell[] | null;
|
|
4
4
|
//# sourceMappingURL=useWellsToDisplay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWellsToDisplay.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/hooks/useWellsToDisplay.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useWellsToDisplay.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/hooks/useWellsToDisplay.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,eAAO,MAAM,iBAAiB,GAC5B,eAAe,eAAe,EAAE,GAAG,IAAI,EACvC,eAAe,eAAe,EAAE,EAChC,OAAO,eAAe,EAAE,GAAG,IAAI,EAC/B,iBAAiB,oBAAoB,GAAG,IAAI,EAC5C,qBAAqB,MAAM,EAC3B,eAAe,OAAO,KACrB,eAAe,EAAE,GAAG,IAgBtB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var o={showHiddenWells:!
|
|
1
|
+
var o={showHiddenWells:!1},e=["selectionMode","radius","polygonCoords"];export{o as BASE_DEFAULT_FILTERS,e as SELECTION_FILTER_KEYS};
|
|
2
2
|
//# sourceMappingURL=types.js.map
|
package/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreContext.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdasResyncStoreContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,eAAO,MAAM,sBAAsB,oDAAiD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdasResyncStoreContext.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreProvider.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdasResyncStoreProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/IdasResyncStoreProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAK9C,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAYpE,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{useRef as e}from"react";import{createIdasResyncStore as t}from"./createIdasResyncStore.js";import{IdasResyncStoreContext as o}from"./IdasResyncStoreContext.js";var n=function(n){var c=n.children,a=e(null);return a.current||(a.current=t()),r(o.Provider,{value:a.current,children:c})};n.displayName="IdasResyncStoreProvider";export{n as IdasResyncStoreProvider};
|
|
2
|
+
//# sourceMappingURL=IdasResyncStoreProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdasResyncStoreProvider.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIdasResyncSync.test.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/__tests__/useIdasResyncSync.test.ts"],"names":[],"mappings":""}
|
package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { PickerPropsStore } from '../picker-props-store';
|
|
2
|
+
import type { IdasResyncStoreApi } from './createIdasResyncStore';
|
|
3
|
+
type ControllerUser = PickerPropsStore['currentUser'];
|
|
4
|
+
export type IdasResyncControllerInputs = {
|
|
5
|
+
assetId: number | null;
|
|
6
|
+
currentUser: ControllerUser;
|
|
7
|
+
loadExternalOffsets: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export type IdasResyncController = {
|
|
10
|
+
activate: () => void;
|
|
11
|
+
deactivate: () => void;
|
|
12
|
+
update: (inputs: IdasResyncControllerInputs) => void;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Drives the IDAS re-sync state machine for a subject asset and writes its
|
|
16
|
+
* state into `IdasResyncStore`. Consumers (e.g. `HeaderActions`,
|
|
17
|
+
* `PickerModalActions`, `OffsetWellPickerV5`) subscribe via
|
|
18
|
+
* `useIdasResyncStore` instead of having props drilled through the tree.
|
|
19
|
+
*
|
|
20
|
+
* Flow: subscribe → POST task → resolve via subscription event
|
|
21
|
+
* ({ status, message }). The task-app response is used only for dual-track
|
|
22
|
+
* failure detection (state === 'failed'); the underlying app's outcome is
|
|
23
|
+
* carried by the subscription message.
|
|
24
|
+
*
|
|
25
|
+
* The socket is wired manually via `subscribeToIdasResync` rather than
|
|
26
|
+
* `useSubscriptionsV2` because we want no historical fetch and explicit
|
|
27
|
+
* single-shot teardown. See `subscribeToIdasResync.ts` for the rationale.
|
|
28
|
+
*
|
|
29
|
+
* We do NOT gate the POST on a socket ack: the upstream `_emit`
|
|
30
|
+
* mis-routes the ack callback so it would never fire. The theoretical
|
|
31
|
+
* race window (local listener attached but channel not yet registered
|
|
32
|
+
* server-side) is dwarfed by worker latency.
|
|
33
|
+
*
|
|
34
|
+
* KNOWN LIMITATION: the subscription payload has no correlation/request id,
|
|
35
|
+
* so a delayed event from a previous same-asset run — or another user's
|
|
36
|
+
* same-asset run — could resolve the current run with the wrong outcome.
|
|
37
|
+
* Tracked separately; backend needs to attach a request_id to the payload.
|
|
38
|
+
*
|
|
39
|
+
* Construction is side-effect-free. `activate()` installs `triggerResync`
|
|
40
|
+
* into the store and arms the controller; `deactivate()` aborts any in-flight
|
|
41
|
+
* resync and resets the store's `triggerResync` back to a noop. The pair is
|
|
42
|
+
* idempotent so it survives React 18 StrictMode setup→cleanup→setup replay.
|
|
43
|
+
*/
|
|
44
|
+
export declare const createIdasResyncController: (storeApi: IdasResyncStoreApi) => IdasResyncController;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=createIdasResyncController.d.ts.map
|
package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createIdasResyncController.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAWlE,KAAK,cAAc,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAEtD,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,cAAc,CAAC;IAC5B,mBAAmB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,EAAE,CAAC,MAAM,EAAE,0BAA0B,KAAK,IAAI,CAAC;CACtD,CAAC;AAWF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,0BAA0B,GAAI,UAAU,kBAAkB,KAAG,oBAkKzE,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import t from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/regenerator";import"lodash";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/defineProperty";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions/constants.js";import"../../../../clients/subscriptions.v1.js";import"../../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../../clients/api/apiCore.js";import"../../../../clients/constants.js";import"../../../../clients/sso/auth0.js";import"../../../../clients/sso/oauth2.js";import"../../../../clients/api/rateLimiter.js";import"../../constants.js";import"../../api/shared/dataFormatter.js";import"@babel/runtime/helpers/slicedToArray";import{resyncIdasWells as r}from"../../api/external-offsets/resyncIdasWells.js";import{IdasResyncStatus as n}from"./idas-resync.types.js";import{getIdasResyncChannel as s}from"./idasResyncChannel.js";import{subscribeToIdasResync as i}from"./subscribeToIdasResync.js";import"../../../../utils/index.js";import{showErrorNotification as o,showSuccessNotification as a}from"../../../../utils/notificationToasts.js";var u={multiline:!0,autoHideDuration:1e4},c=function(){},l=function(l){var p,f=null,m=null,d=!1,v={assetId:null,currentUser:void 0,loadExternalOffsets:(p=t(e.mark((function t(){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",void 0);case 1:case"end":return t.stop()}}),t)}))),function(){return p.apply(this,arguments)})},h=function(t){var e;l.setState({status:t,isResyncInFlight:(e=t,e===n.TRIGGERED||e===n.RUNNING)})},b=function(){var t;null===(t=m)||void 0===t||t(),m=null},y=function(){f=null},j=function(){b(),y()},I=function(t){d&&(o(t,u),h(n.FAILED))},x=function(t,e){d&&t===f&&(y(),a(e,u),h(n.SUCCEEDED))},g=function(){var r=t(e.mark((function t(r,n){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,v.loadExternalOffsets();case 3:return t.prev=3,x(r,n),t.finish(3);case 6:case"end":return t.stop()}}),t,null,[[0,,3,6]])})));return function(t,e){return r.apply(this,arguments)}}(),R=function(t,e){t===f&&(j(),I(e||"Re-sync wells from IDAS failed"))},E=function(){var n=t(e.mark((function t(n){var s,i;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=(s=v.currentUser)&&s.id){t.next=4;break}return R(n,void 0),t.abrupt("return");case 4:return t.prev=4,t.next=7,r(s,n);case 7:"failed"===(null==(i=t.sent)?void 0:i.state)&&R(n,i.fail_reason),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),R(n,t.t0 instanceof Error?t.t0.message:void 0);case 14:case"end":return t.stop()}}),t,null,[[4,11]])})));return function(t){return n.apply(this,arguments)}}(),w=function(){var t=v,e=t.assetId,r=t.currentUser;if(e&&null!=r&&r.id&&null===f){var o=e;f=o;var a=s(o);m=i(a,(function(t){return function(t,e){d&&t===f&&(b(),"success"===(null==e?void 0:e.status)?g(t,e.message):(y(),I((null==e?void 0:e.message)||"Re-sync wells from IDAS failed")))}(o,t)})),h(n.RUNNING),E(o)}};return{activate:function(){d=!0,l.setState({triggerResync:w})},deactivate:function(){d=!1,j(),l.setState({triggerResync:c})},update:function(t){null!==f&&t.assetId!==f&&l.getState().isResyncInFlight&&(j(),h(n.INITIAL)),v=t}}};export{l as createIdasResyncController};
|
|
2
|
+
//# sourceMappingURL=createIdasResyncController.js.map
|
package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createIdasResyncController.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type StoreApi } from 'zustand';
|
|
2
|
+
import { type IdasResyncStore } from './idas-resync.types';
|
|
3
|
+
export type IdasResyncStoreApi = StoreApi<IdasResyncStore>;
|
|
4
|
+
export declare const createIdasResyncStore: () => IdasResyncStoreApi;
|
|
5
|
+
//# sourceMappingURL=createIdasResyncStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createIdasResyncStore.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAErD,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE7E,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAI3D,eAAO,MAAM,qBAAqB,QAAO,kBAKpC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createStore as t}from"zustand";import{IdasResyncStatus as n}from"./idas-resync.types.js";var r=function(){},s=function(){return t()((function(){return{status:n.INITIAL,isResyncInFlight:!1,triggerResync:r}}))};export{s as createIdasResyncStore};
|
|
2
|
+
//# sourceMappingURL=createIdasResyncStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createIdasResyncStore.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const IdasResyncStatus: {
|
|
2
|
+
readonly INITIAL: 0;
|
|
3
|
+
readonly TRIGGERED: 1;
|
|
4
|
+
readonly RUNNING: 2;
|
|
5
|
+
readonly SUCCEEDED: 3;
|
|
6
|
+
readonly FAILED: -1;
|
|
7
|
+
};
|
|
8
|
+
export type IdasResyncStatusValue = typeof IdasResyncStatus[keyof typeof IdasResyncStatus];
|
|
9
|
+
export type IdasSubscriptionPayload = {
|
|
10
|
+
status: 'success' | 'error';
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
export type IdasResyncStore = {
|
|
14
|
+
status: IdasResyncStatusValue;
|
|
15
|
+
isResyncInFlight: boolean;
|
|
16
|
+
triggerResync: () => void;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=idas-resync.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idas-resync.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/idas-resync.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,OAAO,gBAAgB,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3F,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idas-resync.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const IDAS_RESYNC_PROVIDER = "xto";
|
|
2
|
+
export declare const IDAS_RESYNC_DATASET = "idas_offset_performance_distance_be_od";
|
|
3
|
+
export declare const IDAS_RESYNC_APP_KEY = "xto.idas_offset_performance_distance_be_od";
|
|
4
|
+
export declare const getIdasResyncChannel: (assetId: number) => string;
|
|
5
|
+
//# sourceMappingURL=idasResyncChannel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idasResyncChannel.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/idasResyncChannel.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAC1C,eAAO,MAAM,mBAAmB,2CAA2C,CAAC;AAC5E,eAAO,MAAM,mBAAmB,+CAAmD,CAAC;AAEpF,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,KAAG,MAKnD,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{getChannelName as e}from"../../../../clients/subscriptions/get-channel-name.js";var t="xto",o="idas_offset_performance_distance_be_od",s=function(t){return e({provider:"xto",dataset:"idas_offset_performance_distance_be_od",assetId:t})};export{o as IDAS_RESYNC_DATASET,t as IDAS_RESYNC_PROVIDER,s as getIdasResyncChannel};
|
|
2
|
+
//# sourceMappingURL=idasResyncChannel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idasResyncChannel.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { IdasResyncStoreContext } from './IdasResyncStoreContext';
|
|
2
|
+
export { IdasResyncStoreProvider } from './IdasResyncStoreProvider';
|
|
3
|
+
export { createIdasResyncStore } from './createIdasResyncStore';
|
|
4
|
+
export { useIdasResyncStore } from './useIdasResyncStore';
|
|
5
|
+
export { useIdasResyncStoreApi } from './useIdasResyncStoreApi';
|
|
6
|
+
export { useIdasResyncSync } from './useIdasResyncSync';
|
|
7
|
+
export { IdasResyncStatus } from './idas-resync.types';
|
|
8
|
+
export type { IdasResyncStatusValue, IdasSubscriptionPayload, IdasResyncStore, } from './idas-resync.types';
|
|
9
|
+
export type { IdasResyncStoreApi } from './createIdasResyncStore';
|
|
10
|
+
export { IDAS_RESYNC_PROVIDER, IDAS_RESYNC_DATASET, IDAS_RESYNC_APP_KEY, getIdasResyncChannel, } from './idasResyncChannel';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EACV,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IdasSubscriptionPayload } from './idas-resync.types';
|
|
2
|
+
/**
|
|
3
|
+
* Wires the IDAS re-sync socket channel directly via `SubscriptionsClientFactory`
|
|
4
|
+
* rather than `useSubscriptionsV2`. The hook is built for snapshot-backed
|
|
5
|
+
* datasets; this channel is an RPC-style one-shot event. Specifically we need:
|
|
6
|
+
* 1. No historical fetch — `fetchInitialSubscriptionsData` would either
|
|
7
|
+
* return nothing or, worse, a stale event from a prior run.
|
|
8
|
+
* 2. Explicit single-shot unsubscribe at the terminal event, with no
|
|
9
|
+
* state-driven channel-array toggling races.
|
|
10
|
+
*
|
|
11
|
+
* We intentionally do NOT pass an ack callback. `SubscriptionsClientV2._emit`
|
|
12
|
+
* mis-uses `socket.io-client`'s `emitWithAck` (passes the ack as a 3rd-arg
|
|
13
|
+
* function, which socket.io@4 treats as event data, not as an ack handler).
|
|
14
|
+
* The Promise it returns is discarded, so any ack callback we pass would
|
|
15
|
+
* never fire and the resync would hang forever. Once the upstream `_emit`
|
|
16
|
+
* is fixed we can revisit gating the POST on the ack.
|
|
17
|
+
*/
|
|
18
|
+
export declare const subscribeToIdasResync: (channel: string, onMessage: (payload: IdasSubscriptionPayload) => void) => (() => void);
|
|
19
|
+
//# sourceMappingURL=subscribeToIdasResync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribeToIdasResync.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/subscribeToIdasResync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAInE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,GAChC,SAAS,MAAM,EACf,WAAW,CAAC,OAAO,EAAE,uBAAuB,KAAK,IAAI,KACpD,CAAC,MAAM,IAAI,CAIb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribeToIdasResync.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIdasResyncStore.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,eAAO,MAAM,kBAAkB,GAAI,CAAC,GAAG,eAAe,EACpD,UAAU,CAAC,KAAK,EAAE,eAAe,KAAK,CAAC,KACtC,CAIF,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useStore as r}from"zustand";import{IdasResyncStoreContext as t}from"./IdasResyncStoreContext.js";import{useContextOrThrow as o}from"../utils/useContextOrThrow.js";var e=function(e){var n=o(t);return r(n,e)};export{e as useIdasResyncStore};
|
|
2
|
+
//# sourceMappingURL=useIdasResyncStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIdasResyncStore.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIdasResyncStoreApi.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncStoreApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAIlE,eAAO,MAAM,qBAAqB,QAAO,kBACE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIdasResyncStoreApi.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type UseIdasResyncSyncParams = {
|
|
2
|
+
assetId: number | null;
|
|
3
|
+
loadExternalOffsets: () => Promise<void>;
|
|
4
|
+
};
|
|
5
|
+
export declare const useIdasResyncSync: ({ assetId, loadExternalOffsets, }: UseIdasResyncSyncParams) => void;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=useIdasResyncSync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIdasResyncSync.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/idas-resync-store/useIdasResyncSync.ts"],"names":[],"mappings":"AAUA,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,mBAAmB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,mCAG/B,uBAAuB,KAAG,IAyB5B,CAAC"}
|