@collabdt/core 0.18.0 → 0.20.0
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/dist/core/components/AppSidebarContent.d.ts.map +1 -1
- package/dist/core/components/AppSidebarContent.js +47 -43
- package/dist/core/components/AppSidebarContent.js.map +1 -1
- package/dist/core/components/ConfirmDialog.d.ts.map +1 -1
- package/dist/core/components/ConfirmDialog.js +2 -1
- package/dist/core/components/ConfirmDialog.js.map +1 -1
- package/dist/core/components/ToolbarBody.d.ts.map +1 -1
- package/dist/core/components/ToolbarBody.js +2 -1
- package/dist/core/components/ToolbarBody.js.map +1 -1
- package/dist/core/components/TopNavigationBar.d.ts.map +1 -1
- package/dist/core/components/TopNavigationBar.js +5 -2
- package/dist/core/components/TopNavigationBar.js.map +1 -1
- package/dist/core/components/settings/index.js +1 -1
- package/dist/core/components/settings/index.js.map +1 -1
- package/dist/core/components/settings/src/SettingsContent.js +1 -1
- package/dist/core/components/settings/src/SettingsContent.js.map +1 -1
- package/dist/core/components/settings/src/SettingsSidebar.d.ts.map +1 -1
- package/dist/core/components/settings/src/SettingsSidebar.js +3 -10
- package/dist/core/components/settings/src/SettingsSidebar.js.map +1 -1
- package/dist/core/components/settings/src/settingsTabs.d.ts +6 -0
- package/dist/core/components/settings/src/settingsTabs.d.ts.map +1 -0
- package/dist/core/components/settings/src/settingsTabs.js +12 -0
- package/dist/core/components/settings/src/settingsTabs.js.map +1 -0
- package/dist/core/components/support/SupportMenu.d.ts +2 -1
- package/dist/core/components/support/SupportMenu.d.ts.map +1 -1
- package/dist/core/components/support/SupportMenu.js +12 -1
- package/dist/core/components/support/SupportMenu.js.map +1 -1
- package/dist/core/components/tour/GuidedTour.d.ts +5 -0
- package/dist/core/components/tour/GuidedTour.d.ts.map +1 -0
- package/dist/core/components/tour/GuidedTour.js +191 -0
- package/dist/core/components/tour/GuidedTour.js.map +1 -0
- package/dist/core/components/tour/TourBody.d.ts +8 -0
- package/dist/core/components/tour/TourBody.d.ts.map +1 -0
- package/dist/core/components/tour/TourBody.js +28 -0
- package/dist/core/components/tour/TourBody.js.map +1 -0
- package/dist/core/components/tour/TourItems.d.ts +7 -0
- package/dist/core/components/tour/TourItems.d.ts.map +1 -0
- package/dist/core/components/tour/TourItems.js +19 -0
- package/dist/core/components/tour/TourItems.js.map +1 -0
- package/dist/core/components/tour/contentBox.d.ts +4 -0
- package/dist/core/components/tour/contentBox.d.ts.map +1 -0
- package/dist/core/components/tour/contentBox.js +43 -0
- package/dist/core/components/tour/contentBox.js.map +1 -0
- package/dist/core/components/tour/hostTargets.d.ts +11 -0
- package/dist/core/components/tour/hostTargets.d.ts.map +1 -0
- package/dist/core/components/tour/hostTargets.js +24 -0
- package/dist/core/components/tour/hostTargets.js.map +1 -0
- package/dist/core/components/tour/index.d.ts +8 -0
- package/dist/core/components/tour/index.d.ts.map +1 -0
- package/dist/core/components/tour/index.js +15 -0
- package/dist/core/components/tour/index.js.map +1 -0
- package/dist/core/components/tour/placement.d.ts +24 -0
- package/dist/core/components/tour/placement.d.ts.map +1 -0
- package/dist/core/components/tour/placement.js +100 -0
- package/dist/core/components/tour/placement.js.map +1 -0
- package/dist/core/components/tour/platform/MenuPathText.d.ts +7 -0
- package/dist/core/components/tour/platform/MenuPathText.d.ts.map +1 -0
- package/dist/core/components/tour/platform/MenuPathText.js +22 -0
- package/dist/core/components/tour/platform/MenuPathText.js.map +1 -0
- package/dist/core/components/tour/platform/PlatformTour.d.ts +7 -0
- package/dist/core/components/tour/platform/PlatformTour.d.ts.map +1 -0
- package/dist/core/components/tour/platform/PlatformTour.js +57 -0
- package/dist/core/components/tour/platform/PlatformTour.js.map +1 -0
- package/dist/core/components/tour/platform/TourLegendDemo.d.ts +4 -0
- package/dist/core/components/tour/platform/TourLegendDemo.d.ts.map +1 -0
- package/dist/core/components/tour/platform/TourLegendDemo.js +26 -0
- package/dist/core/components/tour/platform/TourLegendDemo.js.map +1 -0
- package/dist/core/components/tour/platform/helloMapDemo.d.ts +13 -0
- package/dist/core/components/tour/platform/helloMapDemo.d.ts.map +1 -0
- package/dist/core/components/tour/platform/helloMapDemo.js +147 -0
- package/dist/core/components/tour/platform/helloMapDemo.js.map +1 -0
- package/dist/core/components/tour/platform/liveDemo.d.ts +10 -0
- package/dist/core/components/tour/platform/liveDemo.d.ts.map +1 -0
- package/dist/core/components/tour/platform/liveDemo.js +58 -0
- package/dist/core/components/tour/platform/liveDemo.js.map +1 -0
- package/dist/core/components/tour/platform/placeDemo.d.ts +30 -0
- package/dist/core/components/tour/platform/placeDemo.d.ts.map +1 -0
- package/dist/core/components/tour/platform/placeDemo.js +168 -0
- package/dist/core/components/tour/platform/placeDemo.js.map +1 -0
- package/dist/core/components/tour/platform/platformHost.d.ts +57 -0
- package/dist/core/components/tour/platform/platformHost.d.ts.map +1 -0
- package/dist/core/components/tour/platform/platformHost.js +290 -0
- package/dist/core/components/tour/platform/platformHost.js.map +1 -0
- package/dist/core/components/tour/platform/platformTourSteps.d.ts +50 -0
- package/dist/core/components/tour/platform/platformTourSteps.d.ts.map +1 -0
- package/dist/core/components/tour/platform/platformTourSteps.js +168 -0
- package/dist/core/components/tour/platform/platformTourSteps.js.map +1 -0
- package/dist/core/components/tour/platform/platformTourTypes.d.ts +51 -0
- package/dist/core/components/tour/platform/platformTourTypes.d.ts.map +1 -0
- package/dist/core/components/tour/platform/platformTourTypes.js +1 -0
- package/dist/core/components/tour/platform/platformTourTypes.js.map +1 -0
- package/dist/core/components/tour/platform/subTourSteps.d.ts +15 -0
- package/dist/core/components/tour/platform/subTourSteps.d.ts.map +1 -0
- package/dist/core/components/tour/platform/subTourSteps.js +482 -0
- package/dist/core/components/tour/platform/subTourSteps.js.map +1 -0
- package/dist/core/components/tour/platform/tourDemos.d.ts +8 -0
- package/dist/core/components/tour/platform/tourDemos.d.ts.map +1 -0
- package/dist/core/components/tour/platform/tourDemos.js +26 -0
- package/dist/core/components/tour/platform/tourDemos.js.map +1 -0
- package/dist/core/components/tour/platform/tourPlace.d.ts +25 -0
- package/dist/core/components/tour/platform/tourPlace.d.ts.map +1 -0
- package/dist/core/components/tour/platform/tourPlace.js +72 -0
- package/dist/core/components/tour/platform/tourPlace.js.map +1 -0
- package/dist/core/components/tour/platform/tourRoutes.d.ts +20 -0
- package/dist/core/components/tour/platform/tourRoutes.d.ts.map +1 -0
- package/dist/core/components/tour/platform/tourRoutes.js +60 -0
- package/dist/core/components/tour/platform/tourRoutes.js.map +1 -0
- package/dist/core/components/tour/platform/useDatasetPort.d.ts +4 -0
- package/dist/core/components/tour/platform/useDatasetPort.d.ts.map +1 -0
- package/dist/core/components/tour/platform/useDatasetPort.js +20 -0
- package/dist/core/components/tour/platform/useDatasetPort.js.map +1 -0
- package/dist/core/components/tour/platform/useGuideStart.d.ts +7 -0
- package/dist/core/components/tour/platform/useGuideStart.d.ts.map +1 -0
- package/dist/core/components/tour/platform/useGuideStart.js +34 -0
- package/dist/core/components/tour/platform/useGuideStart.js.map +1 -0
- package/dist/core/components/tour/platform/useMapItemPorts.d.ts +6 -0
- package/dist/core/components/tour/platform/useMapItemPorts.d.ts.map +1 -0
- package/dist/core/components/tour/platform/useMapItemPorts.js +96 -0
- package/dist/core/components/tour/platform/useMapItemPorts.js.map +1 -0
- package/dist/core/components/tour/platform/useMapStyleTour.d.ts +8 -0
- package/dist/core/components/tour/platform/useMapStyleTour.d.ts.map +1 -0
- package/dist/core/components/tour/platform/useMapStyleTour.js +42 -0
- package/dist/core/components/tour/platform/useMapStyleTour.js.map +1 -0
- package/dist/core/components/tour/platform/usePlatformTour.d.ts +15 -0
- package/dist/core/components/tour/platform/usePlatformTour.d.ts.map +1 -0
- package/dist/core/components/tour/platform/usePlatformTour.js +119 -0
- package/dist/core/components/tour/platform/usePlatformTour.js.map +1 -0
- package/dist/core/components/tour/platform/usePlatformTourActions.d.ts +4 -0
- package/dist/core/components/tour/platform/usePlatformTourActions.d.ts.map +1 -0
- package/dist/core/components/tour/platform/usePlatformTourActions.js +125 -0
- package/dist/core/components/tour/platform/usePlatformTourActions.js.map +1 -0
- package/dist/core/components/tour/platform/usePluginTourEntries.d.ts +16 -0
- package/dist/core/components/tour/platform/usePluginTourEntries.d.ts.map +1 -0
- package/dist/core/components/tour/platform/usePluginTourEntries.js +37 -0
- package/dist/core/components/tour/platform/usePluginTourEntries.js.map +1 -0
- package/dist/core/components/tour/platform/zoningDemo.d.ts +30 -0
- package/dist/core/components/tour/platform/zoningDemo.d.ts.map +1 -0
- package/dist/core/components/tour/platform/zoningDemo.js +280 -0
- package/dist/core/components/tour/platform/zoningDemo.js.map +1 -0
- package/dist/core/components/tour/tourQueue.d.ts +9 -0
- package/dist/core/components/tour/tourQueue.d.ts.map +1 -0
- package/dist/core/components/tour/tourQueue.js +43 -0
- package/dist/core/components/tour/tourQueue.js.map +1 -0
- package/dist/core/components/tour/tourStore.d.ts +15 -0
- package/dist/core/components/tour/tourStore.d.ts.map +1 -0
- package/dist/core/components/tour/tourStore.js +30 -0
- package/dist/core/components/tour/tourStore.js.map +1 -0
- package/dist/core/components/tour/tourStyles.d.ts +3 -0
- package/dist/core/components/tour/tourStyles.d.ts.map +1 -0
- package/dist/core/components/tour/tourStyles.js +95 -0
- package/dist/core/components/tour/tourStyles.js.map +1 -0
- package/dist/core/components/tour/tourTypes.d.ts +61 -0
- package/dist/core/components/tour/tourTypes.d.ts.map +1 -0
- package/dist/core/components/tour/tourTypes.js +1 -0
- package/dist/core/components/tour/tourTypes.js.map +1 -0
- package/dist/core/components/tour/useTour.d.ts +8 -0
- package/dist/core/components/tour/useTour.d.ts.map +1 -0
- package/dist/core/components/tour/useTour.js +20 -0
- package/dist/core/components/tour/useTour.js.map +1 -0
- package/dist/core/components/tour/useTourLayout.d.ts +26 -0
- package/dist/core/components/tour/useTourLayout.d.ts.map +1 -0
- package/dist/core/components/tour/useTourLayout.js +197 -0
- package/dist/core/components/tour/useTourLayout.js.map +1 -0
- package/dist/core/components/ui/AppSidebar.d.ts.map +1 -1
- package/dist/core/components/ui/AppSidebar.js +5 -3
- package/dist/core/components/ui/AppSidebar.js.map +1 -1
- package/dist/core/components/ui/CollapsibleSection.d.ts +3 -1
- package/dist/core/components/ui/CollapsibleSection.d.ts.map +1 -1
- package/dist/core/components/ui/CollapsibleSection.js +4 -2
- package/dist/core/components/ui/CollapsibleSection.js.map +1 -1
- package/dist/core/components/ui/Comments/CollapsibleCommentItem.d.ts.map +1 -1
- package/dist/core/components/ui/Comments/CollapsibleCommentItem.js +1 -0
- package/dist/core/components/ui/Comments/CollapsibleCommentItem.js.map +1 -1
- package/dist/core/components/ui/Comments/CommentActionButtons.d.ts.map +1 -1
- package/dist/core/components/ui/Comments/CommentActionButtons.js +1 -0
- package/dist/core/components/ui/Comments/CommentActionButtons.js.map +1 -1
- package/dist/core/components/ui/Comments/CommentInput.d.ts.map +1 -1
- package/dist/core/components/ui/Comments/CommentInput.js +7 -2
- package/dist/core/components/ui/Comments/CommentInput.js.map +1 -1
- package/dist/core/components/ui/Comments/CommentsSection.js +1 -1
- package/dist/core/components/ui/Comments/CommentsSection.js.map +1 -1
- package/dist/core/components/ui/FilesManager/src/FileItemComponent.d.ts +3 -1
- package/dist/core/components/ui/FilesManager/src/FileItemComponent.d.ts.map +1 -1
- package/dist/core/components/ui/FilesManager/src/FileItemComponent.js +46 -10
- package/dist/core/components/ui/FilesManager/src/FileItemComponent.js.map +1 -1
- package/dist/core/components/ui/FilesManager/src/ViewerContextMenu.d.ts.map +1 -1
- package/dist/core/components/ui/FilesManager/src/ViewerContextMenu.js +28 -20
- package/dist/core/components/ui/FilesManager/src/ViewerContextMenu.js.map +1 -1
- package/dist/core/components/ui/FilesManager/src/fileType.d.ts +2 -0
- package/dist/core/components/ui/FilesManager/src/fileType.d.ts.map +1 -1
- package/dist/core/components/ui/FilesManager/src/fileType.js +2 -0
- package/dist/core/components/ui/FilesManager/src/fileType.js.map +1 -1
- package/dist/core/components/ui/FilesManager/src/ifcGeoreference.d.ts +13 -0
- package/dist/core/components/ui/FilesManager/src/ifcGeoreference.d.ts.map +1 -0
- package/dist/core/components/ui/FilesManager/src/ifcGeoreference.js +76 -0
- package/dist/core/components/ui/FilesManager/src/ifcGeoreference.js.map +1 -0
- package/dist/core/components/ui/FilesManager/src/useFileUploadHandler.d.ts.map +1 -1
- package/dist/core/components/ui/FilesManager/src/useFileUploadHandler.js +4 -1
- package/dist/core/components/ui/FilesManager/src/useFileUploadHandler.js.map +1 -1
- package/dist/core/components/ui/FilesManager/src/useFileUploadWithProgress.d.ts +3 -1
- package/dist/core/components/ui/FilesManager/src/useFileUploadWithProgress.d.ts.map +1 -1
- package/dist/core/components/ui/FilesManager/src/useFileUploadWithProgress.js +3 -2
- package/dist/core/components/ui/FilesManager/src/useFileUploadWithProgress.js.map +1 -1
- package/dist/core/components/ui/Sensors/CollapsibleSensorItem.d.ts.map +1 -1
- package/dist/core/components/ui/Sensors/CollapsibleSensorItem.js +1 -0
- package/dist/core/components/ui/Sensors/CollapsibleSensorItem.js.map +1 -1
- package/dist/core/components/ui/Sensors/SensorInput.d.ts.map +1 -1
- package/dist/core/components/ui/Sensors/SensorInput.js +9 -3
- package/dist/core/components/ui/Sensors/SensorInput.js.map +1 -1
- package/dist/core/components/ui/Sensors/SensorsSection.d.ts.map +1 -1
- package/dist/core/components/ui/Sensors/SensorsSection.js +5 -2
- package/dist/core/components/ui/Sensors/SensorsSection.js.map +1 -1
- package/dist/core/components/ui/SettingsButton.js +1 -1
- package/dist/core/components/ui/SettingsButton.js.map +1 -1
- package/dist/core/components/ui/ShareFeature/ShareToolSubmenu.js +5 -5
- package/dist/core/components/ui/ShareFeature/ShareToolSubmenu.js.map +1 -1
- package/dist/core/components/ui/Sidebar.d.ts +2 -0
- package/dist/core/components/ui/Sidebar.d.ts.map +1 -1
- package/dist/core/components/ui/Sidebar.js +5 -2
- package/dist/core/components/ui/Sidebar.js.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/Panel.js +1 -1
- package/dist/core/components/ui/ViewerSidebar/Panel.js.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/SettingsSection.d.ts +3 -1
- package/dist/core/components/ui/ViewerSidebar/SettingsSection.d.ts.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/SettingsSection.js +3 -1
- package/dist/core/components/ui/ViewerSidebar/SettingsSection.js.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/Shell.d.ts.map +1 -1
- package/dist/core/components/ui/ViewerSidebar/Shell.js +2 -1
- package/dist/core/components/ui/ViewerSidebar/Shell.js.map +1 -1
- package/dist/core/components/ui/uploadFile.d.ts +4 -1
- package/dist/core/components/ui/uploadFile.d.ts.map +1 -1
- package/dist/core/components/ui/uploadFile.js +13 -3
- package/dist/core/components/ui/uploadFile.js.map +1 -1
- package/dist/core/components/viewers/Data/ActiveFilterChips.d.ts +12 -0
- package/dist/core/components/viewers/Data/ActiveFilterChips.d.ts.map +1 -0
- package/dist/core/components/viewers/Data/ActiveFilterChips.js +54 -0
- package/dist/core/components/viewers/Data/ActiveFilterChips.js.map +1 -0
- package/dist/core/components/viewers/Data/DataMenu.d.ts.map +1 -1
- package/dist/core/components/viewers/Data/DataMenu.js +99 -50
- package/dist/core/components/viewers/Data/DataMenu.js.map +1 -1
- package/dist/core/components/viewers/Data/FilterButtons.d.ts +2 -1
- package/dist/core/components/viewers/Data/FilterButtons.d.ts.map +1 -1
- package/dist/core/components/viewers/Data/FilterButtons.js +87 -401
- package/dist/core/components/viewers/Data/FilterButtons.js.map +1 -1
- package/dist/core/components/viewers/Data/MoreOptions.d.ts.map +1 -1
- package/dist/core/components/viewers/Data/MoreOptions.js +28 -20
- package/dist/core/components/viewers/Data/MoreOptions.js.map +1 -1
- package/dist/core/components/viewers/Data/PageActions.d.ts +13 -0
- package/dist/core/components/viewers/Data/PageActions.d.ts.map +1 -0
- package/dist/core/components/viewers/Data/PageActions.js +81 -0
- package/dist/core/components/viewers/Data/PageActions.js.map +1 -0
- package/dist/core/components/viewers/Data/ResultActions.d.ts +16 -0
- package/dist/core/components/viewers/Data/ResultActions.d.ts.map +1 -0
- package/dist/core/components/viewers/Data/ResultActions.js +106 -0
- package/dist/core/components/viewers/Data/ResultActions.js.map +1 -0
- package/dist/core/components/viewers/Data/buildingDetails/DeleteBuildingDialog.d.ts +11 -0
- package/dist/core/components/viewers/Data/buildingDetails/DeleteBuildingDialog.d.ts.map +1 -0
- package/dist/core/components/viewers/Data/buildingDetails/DeleteBuildingDialog.js +91 -0
- package/dist/core/components/viewers/Data/buildingDetails/DeleteBuildingDialog.js.map +1 -0
- package/dist/core/components/viewers/Data/details/DetailActions.d.ts.map +1 -1
- package/dist/core/components/viewers/Data/details/DetailActions.js +2 -1
- package/dist/core/components/viewers/Data/details/DetailActions.js.map +1 -1
- package/dist/core/components/viewers/Data/utils/filterFieldNames.d.ts +13 -0
- package/dist/core/components/viewers/Data/utils/filterFieldNames.d.ts.map +1 -0
- package/dist/core/components/viewers/Data/utils/filterFieldNames.js +31 -0
- package/dist/core/components/viewers/Data/utils/filterFieldNames.js.map +1 -0
- package/dist/core/components/viewers/Data/utils/filterHelper.d.ts +3 -0
- package/dist/core/components/viewers/Data/utils/filterHelper.d.ts.map +1 -1
- package/dist/core/components/viewers/Data/utils/filterHelper.js +10 -1
- package/dist/core/components/viewers/Data/utils/filterHelper.js.map +1 -1
- package/dist/core/components/viewers/Data/utils/useFilterChipLabels.d.ts +13 -0
- package/dist/core/components/viewers/Data/utils/useFilterChipLabels.d.ts.map +1 -0
- package/dist/core/components/viewers/Data/utils/useFilterChipLabels.js +42 -0
- package/dist/core/components/viewers/Data/utils/useFilterChipLabels.js.map +1 -0
- package/dist/core/components/viewers/Viewer.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimLoadingState/index.js +1 -1
- package/dist/core/components/viewers/bim/src/BimLoadingState/index.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/index.js +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/index.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/index.js +2 -2
- package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/index.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/CameraSettings.js +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/CameraSettings.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/GridManagement.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/GridManagement.js +1 -0
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/GridManagement.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/LightingManagement.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/LightingManagement.js +1 -0
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/LightingManagement.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/MeasurementSettings.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/MeasurementSettings.js +1 -0
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/MeasurementSettings.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/NavigationMode.js +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/NavigationMode.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/PointCloudSettings.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/PointCloudSettings.js +1 -0
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/PointCloudSettings.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/RenderMode.js +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/RenderMode.js.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/ToggleProjection.js +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/ToggleProjection.js.map +1 -1
- package/dist/core/components/viewers/bim/src/ViewportGizmo.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/ViewportGizmo.js +3 -1
- package/dist/core/components/viewers/bim/src/ViewportGizmo.js.map +1 -1
- package/dist/core/components/viewers/bim/src/lib/sceneSeed.d.ts +4 -3
- package/dist/core/components/viewers/bim/src/lib/sceneSeed.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/lib/sceneSeed.js +2 -1
- package/dist/core/components/viewers/bim/src/lib/sceneSeed.js.map +1 -1
- package/dist/core/components/viewers/map/MapViewer.d.ts.map +1 -1
- package/dist/core/components/viewers/map/MapViewer.js +5 -1
- package/dist/core/components/viewers/map/MapViewer.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/index.js +10 -29
- package/dist/core/components/viewers/map/datasets/DatasetManager/index.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetLayerActions.d.ts +10 -0
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetLayerActions.d.ts.map +1 -0
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetLayerActions.js +51 -0
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetLayerActions.js.map +1 -0
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetStylePanel.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetStylePanel.js +1 -0
- package/dist/core/components/viewers/map/datasets/DatasetManager/src/DatasetStylePanel.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/RowActions.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/RowActions.js +12 -9
- package/dist/core/components/viewers/map/datasets/RowActions.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/index.js +13 -12
- package/dist/core/components/viewers/map/datasets/index.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/src/datasetExtent.d.ts +8 -0
- package/dist/core/components/viewers/map/datasets/src/datasetExtent.d.ts.map +1 -0
- package/dist/core/components/viewers/map/datasets/src/datasetExtent.js +20 -0
- package/dist/core/components/viewers/map/datasets/src/datasetExtent.js.map +1 -0
- package/dist/core/components/viewers/map/datasets/src/orgDatasetFiles.d.ts +25 -0
- package/dist/core/components/viewers/map/datasets/src/orgDatasetFiles.d.ts.map +1 -0
- package/dist/core/components/viewers/map/datasets/src/orgDatasetFiles.js +64 -0
- package/dist/core/components/viewers/map/datasets/src/orgDatasetFiles.js.map +1 -0
- package/dist/core/components/viewers/map/datasets/src/orgFileDatasets.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/src/orgFileDatasets.js +51 -10
- package/dist/core/components/viewers/map/datasets/src/orgFileDatasets.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/src/urlSources.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/src/urlSources.js +2 -1
- package/dist/core/components/viewers/map/datasets/src/urlSources.js.map +1 -1
- package/dist/core/components/viewers/map/src/BuildingFocus/useBuildingFocus.d.ts +13 -0
- package/dist/core/components/viewers/map/src/BuildingFocus/useBuildingFocus.d.ts.map +1 -0
- package/dist/core/components/viewers/map/src/BuildingFocus/useBuildingFocus.js +61 -0
- package/dist/core/components/viewers/map/src/BuildingFocus/useBuildingFocus.js.map +1 -0
- package/dist/core/components/viewers/map/src/BuildingFocus/useClearBuildingFocus.d.ts +2 -0
- package/dist/core/components/viewers/map/src/BuildingFocus/useClearBuildingFocus.d.ts.map +1 -0
- package/dist/core/components/viewers/map/src/BuildingFocus/useClearBuildingFocus.js +33 -0
- package/dist/core/components/viewers/map/src/BuildingFocus/useClearBuildingFocus.js.map +1 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/BimLayer/ifcOriginOffset.d.ts +5 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/BimLayer/ifcOriginOffset.d.ts.map +1 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/BimLayer/ifcOriginOffset.js +9 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/BimLayer/ifcOriginOffset.js.map +1 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/BimLayer/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/BimLayer/index.js +10 -3
- package/dist/core/components/viewers/map/src/MapLayers/src/BimLayer/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/buildingColourExpression.d.ts +8 -3
- package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/buildingColourExpression.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/buildingColourExpression.js +9 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/buildingColourExpression.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/index.js +8 -3
- package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/src/DrawnBuildingsLayer.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/src/DrawnBuildingsLayer.js +13 -5
- package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/src/DrawnBuildingsLayer.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/index.js +9 -5
- package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/useCameraSubdivision.d.ts +5 -4
- package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/useCameraSubdivision.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/useCameraSubdivision.js +17 -9
- package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/useCameraSubdivision.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/index.js +7 -2
- package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/PlaceOnMap.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/PlaceOnMap.js +4 -10
- package/dist/core/components/viewers/map/src/MapLayers/src/PlaceOnMap.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/index.js +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/src/ModelsSection.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/src/ModelsSection.js +6 -14
- package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/src/ModelsSection.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.d.ts +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.js +4 -31
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/src/AppliedDatasetsSection.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/src/AppliedDatasetsSection.js +4 -50
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/src/AppliedDatasetsSection.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/src/AvailableDatasetsSection.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/src/AvailableDatasetsSection.js +32 -12
- package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/src/AvailableDatasetsSection.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/BuildingVisibility.js +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/BuildingVisibility.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/LocationSettings.js +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/LocationSettings.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapCustomization.js +3 -3
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapCustomization.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapProjection.js +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapProjection.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/TerrainLevel.js +1 -1
- package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/TerrainLevel.js.map +1 -1
- package/dist/core/components/viewers/map/src/Placement/useLinkFileToBuilding.d.ts +4 -0
- package/dist/core/components/viewers/map/src/Placement/useLinkFileToBuilding.d.ts.map +1 -0
- package/dist/core/components/viewers/map/src/Placement/useLinkFileToBuilding.js +16 -0
- package/dist/core/components/viewers/map/src/Placement/useLinkFileToBuilding.js.map +1 -0
- package/dist/core/components/viewers/map/src/compare/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/compare/index.js +4 -1
- package/dist/core/components/viewers/map/src/compare/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.d.ts +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.js +48 -54
- package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddFile/FileAdder.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddFile/FileAdder.js +23 -29
- package/dist/core/components/viewers/map/src/tools/AddTools/AddFile/FileAdder.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.js +1 -1
- package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/DatasetMapTool.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/tools/DatasetMapTool.js +3 -1
- package/dist/core/components/viewers/map/src/tools/DatasetMapTool.js.map +1 -1
- package/dist/core/components/viewers/map/src/tools/measureMapTool.js +2 -2
- package/dist/core/components/viewers/map/src/tools/measureMapTool.js.map +1 -1
- package/dist/core/components/viewers/map/utils/MapEventManager/MapClickManager.d.ts +3 -0
- package/dist/core/components/viewers/map/utils/MapEventManager/MapClickManager.d.ts.map +1 -1
- package/dist/core/components/viewers/map/utils/MapEventManager/MapClickManager.js +10 -0
- package/dist/core/components/viewers/map/utils/MapEventManager/MapClickManager.js.map +1 -1
- package/dist/core/components/viewers/plugins/PluginsManager.d.ts.map +1 -1
- package/dist/core/components/viewers/plugins/PluginsManager.js +36 -17
- package/dist/core/components/viewers/plugins/PluginsManager.js.map +1 -1
- package/dist/core/components/viewers/plugins/src/PluginDetails.d.ts +2 -1
- package/dist/core/components/viewers/plugins/src/PluginDetails.d.ts.map +1 -1
- package/dist/core/components/viewers/plugins/src/PluginDetails.js +8 -3
- package/dist/core/components/viewers/plugins/src/PluginDetails.js.map +1 -1
- package/dist/core/components/viewers/plugins/src/PluginRow.js +1 -1
- package/dist/core/components/viewers/plugins/src/PluginRow.js.map +1 -1
- package/dist/core/components/viewers/shared/intake/useFileIntake.d.ts.map +1 -1
- package/dist/core/components/viewers/shared/intake/useFileIntake.js +6 -3
- package/dist/core/components/viewers/shared/intake/useFileIntake.js.map +1 -1
- package/dist/core/components/viewers/shared/placement/GeolocationDialog.d.ts +10 -0
- package/dist/core/components/viewers/shared/placement/GeolocationDialog.d.ts.map +1 -0
- package/dist/core/components/viewers/shared/placement/GeolocationDialog.js +182 -0
- package/dist/core/components/viewers/shared/placement/GeolocationDialog.js.map +1 -0
- package/dist/core/hooks/buildings/buildings.d.ts +11 -0
- package/dist/core/hooks/buildings/buildings.d.ts.map +1 -1
- package/dist/core/hooks/buildings/buildings.js +5 -1
- package/dist/core/hooks/buildings/buildings.js.map +1 -1
- package/dist/core/hooks/buildings/createBuildingHooks.d.ts +12 -1
- package/dist/core/hooks/buildings/createBuildingHooks.d.ts.map +1 -1
- package/dist/core/hooks/buildings/createBuildingHooks.js +28 -1
- package/dist/core/hooks/buildings/createBuildingHooks.js.map +1 -1
- package/dist/core/hooks/ports/apiAdapter.d.ts +5 -1
- package/dist/core/hooks/ports/apiAdapter.d.ts.map +1 -1
- package/dist/core/hooks/ui/useChangeViewer.d.ts +4 -0
- package/dist/core/hooks/ui/useChangeViewer.d.ts.map +1 -0
- package/dist/core/hooks/ui/useChangeViewer.js +22 -0
- package/dist/core/hooks/ui/useChangeViewer.js.map +1 -0
- package/dist/core/i18n/messages/en.json +1023 -10
- package/dist/core/i18n/messages/es.json +1023 -10
- package/dist/core/i18n/messages/fr.json +1023 -10
- package/dist/core/plugins/host/runtimeShims.d.ts.map +1 -1
- package/dist/core/plugins/host/runtimeShims.js +14 -0
- package/dist/core/plugins/host/runtimeShims.js.map +1 -1
- package/dist/core/plugins/host/usePluginToolbarTools.d.ts +2 -0
- package/dist/core/plugins/host/usePluginToolbarTools.d.ts.map +1 -1
- package/dist/core/plugins/host/usePluginToolbarTools.js +1 -0
- package/dist/core/plugins/host/usePluginToolbarTools.js.map +1 -1
- package/dist/core/plugins/sdk/tour.d.ts +3 -0
- package/dist/core/plugins/sdk/tour.d.ts.map +1 -0
- package/dist/core/plugins/sdk/tour.js +22 -0
- package/dist/core/plugins/sdk/tour.js.map +1 -0
- package/dist/core/store/Map/context.d.ts.map +1 -1
- package/dist/core/store/Map/context.js +2 -1
- package/dist/core/store/Map/context.js.map +1 -1
- package/dist/core/store/Map/reducer.d.ts +3 -0
- package/dist/core/store/Map/reducer.d.ts.map +1 -1
- package/dist/core/store/Map/reducer.js +4 -3
- package/dist/core/store/Map/reducer.js.map +1 -1
- package/dist/core/types/dbTypes.d.ts +11 -0
- package/dist/core/types/dbTypes.d.ts.map +1 -1
- package/dist/core/types/dbTypes.js.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/index.js.map +1 -1
- package/dist/core/utils/buildingDisplayName.d.ts +4 -0
- package/dist/core/utils/buildingDisplayName.d.ts.map +1 -0
- package/dist/core/utils/buildingDisplayName.js +5 -0
- package/dist/core/utils/buildingDisplayName.js.map +1 -0
- package/dist/core/utils/escapeGuard.d.ts +3 -0
- package/dist/core/utils/escapeGuard.d.ts.map +1 -0
- package/dist/core/utils/escapeGuard.js +10 -0
- package/dist/core/utils/escapeGuard.js.map +1 -0
- package/dist/core/utils/geo/crsDefinitions.d.ts +9 -0
- package/dist/core/utils/geo/crsDefinitions.d.ts.map +1 -0
- package/dist/core/utils/geo/crsDefinitions.js +60 -0
- package/dist/core/utils/geo/crsDefinitions.js.map +1 -0
- package/dist/core/utils/geo/georeference.d.ts +24 -0
- package/dist/core/utils/geo/georeference.d.ts.map +1 -0
- package/dist/core/utils/geo/georeference.js +85 -0
- package/dist/core/utils/geo/georeference.js.map +1 -0
- package/dist/core/utils/geo/reprojectGeometry.d.ts.map +1 -1
- package/dist/core/utils/geo/reprojectGeometry.js +1 -1
- package/dist/core/utils/geo/reprojectGeometry.js.map +1 -1
- package/package.json +1 -1
- package/dist/core/components/viewers/Data/HeaderButtons.d.ts +0 -20
- package/dist/core/components/viewers/Data/HeaderButtons.d.ts.map +0 -1
- package/dist/core/components/viewers/Data/HeaderButtons.js +0 -237
- package/dist/core/components/viewers/Data/HeaderButtons.js.map +0 -1
- package/dist/core/components/viewers/map/src/Placement/useBuildingLinkConfirm.d.ts +0 -9
- package/dist/core/components/viewers/map/src/Placement/useBuildingLinkConfirm.d.ts.map +0 -1
- package/dist/core/components/viewers/map/src/Placement/useBuildingLinkConfirm.js +0 -50
- package/dist/core/components/viewers/map/src/Placement/useBuildingLinkConfirm.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/core/types/dbTypes.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport { CountrySubdivision } from './datasetTypes';\n\nimport type { Position } from './global'\n\nexport enum BuildingOccupantType { Adults = 'Adults', Families = 'Families', Seniors = 'Seniors', Seniors_50_Plus = 'Seniors_50_Plus', Seniors_55_Plus = 'Seniors_55_Plus', Seniors_65_Plus = 'Seniors_65_Plus', Seniors_60_Plus = 'Seniors_60_Plus', Indigenous_Families = 'Indigenous_Families', Youth = 'Youth', Adults_16_Plus = 'Adults_16_Plus', Adults_16_To_24 = 'Adults_16_To_24', Singles = 'Singles', Families_Single_Parents = 'Families_Single_Parents', Indigenous = 'Indigenous' }\nexport enum BuildingGeometryStyle { Complex = 'Complex', Simple = 'Simple', Apartment = 'Apartment' }\nexport enum BuildingAssessmentConditions { Excellent = 'Excellent', Good = 'Good', Fair = 'Fair', Poor = 'Poor' }\nexport enum BuildingProjectPhase { Inception_Phase = 'Inception_Phase', Conceptualization_Phase = 'Conceptualization_Phase', Criteria_Definition_Phase = 'Criteria_Definition_Phase', Design_Phase = 'Design_Phase', Coordination_Phase = 'Coordination_Phase', Implementation_Phase = 'Implementation_Phase', Handover_Phase = 'Handover_Phase', Operations_Phase = 'Operations_Phase' }\nexport enum BuildingProjectType { Modification = 'Modification', New_Build = 'New_Build', Renovation = 'Renovation', Repair = 'Repair', Operation_Maintenance = 'Operation_Maintenance', Retrofit = 'Retrofit' }\nexport enum BuildingManagementType { Internal = 'Internal', External = 'External', Municipal = 'Municipal', Private = 'Private' }\nexport enum BuildingEnergySource { Gas = 'Gas', Propane = 'Propane', Electric_BB = 'Electric_BB', Oil = 'Oil', Electric = 'Electric', Natural_Gas = 'Natural_Gas', Solar = 'Solar', Wind = 'Wind', Geothermal = 'Geothermal', District_Heating = 'District_Heating' }\nexport enum BuildingHeatingEnergySource { Gas = 'Gas', Propane = 'Propane', Electric_BB = 'Electric_BB', Oil = 'Oil', Electric = 'Electric', Natural_Gas = 'Natural_Gas', Solar = 'Solar', Wind = 'Wind', Geothermal = 'Geothermal', District_Heating = 'District_Heating' }\nexport enum BuildingCoolingEnergySource { Electric = 'Electric', Wind = 'Wind', Geothermal = 'Geothermal', District_Cooling = 'District_Cooling', Solar = 'Solar' }\nexport enum BuildingHotWaterEnergySource { Electric = 'Electric', Natural_Gas = 'Natural_Gas', Propane = 'Propane', Oil = 'Oil', Solar = 'Solar', Wind = 'Wind' }\nexport enum BuildingElectricityServiceSize { Size_60 = 'Size_60', Size_100 = 'Size_100', Size_200 = 'Size_200' }\nexport enum BuildingElectricityServiceLocation { Overhead = 'Overhead', Underhead = 'Underhead' }\n\nexport enum SiteEnergySource { Gas = 'Gas', Propane = 'Propane', Electric_BB = 'Electric_BB', Oil = 'Oil', Electric = 'Electric', Natural_Gas = 'Natural_Gas', Solar = 'Solar', Wind = 'Wind', Geothermal = 'Geothermal', District_Heating = 'District_Heating' }\nexport enum SiteAssessmentConditions { Excellent = 'Excellent', Good = 'Good', Fair = 'Fair', Poor = 'Poor' }\nexport enum SiteLandUse { Residential = 'Residential', Industry_And_Business = 'Industry_And_Business', Mixed_Use = 'Mixed_Use', Special_Function_Area = 'Special_Function_Area', Monument = 'Monument', Dump = 'Dump', Mining = 'Mining', Park = 'Park', Cemetery = 'Cemetery', Sports_Leisure_and_Recreation = 'Sports_Leisure_and_Recreation', Open_Pit_Quarry = 'Open_Pit_Quarry', Road = 'Road', Railway = 'Railway', Airfield = 'Airfield', Shipping = 'Shipping', Track = 'Track', Square = 'Square', Grassland = 'Grassland', Agriculture = 'Agriculture', Forest = 'Forest', Grove = 'Grove', Heath = 'Heath', Moor = 'Moor', Marsh = 'Marsh', Untilled_Land = 'Untilled_Land', River = 'River', Standing_Waterbody = 'Standing_Waterbody', Harbour = 'Harbour', Sea = 'Sea' }\nexport enum SiteProjectPhase { Inception_Phase = 'Inception_Phase', Conceptualization_Phase = 'Conceptualization_Phase', Criteria_Definition_Phase = 'Criteria_Definition_Phase', Design_Phase = 'Design_Phase', Coordination_Phase = 'Coordination_Phase', Implementation_Phase = 'Implementation_Phase', Handover_Phase = 'Handover_Phase', Operations_Phase = 'Operations_Phase' }\nexport enum SiteProjectType { Modification = 'Modification', New_Build = 'New_Build', Renovation = 'Renovation', Repair = 'Repair', Operation_Maintenance = 'Operation_Maintenance', Retrofit = 'Retrofit' }\nexport enum DatasetGroup { Organizational = 'Organizational', Municipal = 'Municipal', National = 'National', Provincial = 'Provincial' }\nexport enum DatasetProvider { evergreen = 'evergreen' }\nexport enum SourceUpAxis { y = 'y', z = 'z' }\nexport enum GeoreferenceSource { ifc = 'ifc', lasHeader = 'lasHeader', manual = 'manual' }\nexport enum DataManagementSystem { Ckan = 'Ckan', Arcgis = 'Arcgis', Opendatasoft = 'Opendatasoft', Socrata = 'Socrata', Other = 'Other' }\nexport enum ViewerNames { auth = 'auth', map = 'map', bim = 'bim', buildings = 'buildings', sites = 'sites', files = 'files', land = 'land', infrastructure = 'infrastructure', plugins = 'plugins', settings = 'settings', users = 'users' }\n/**\n * A built-in viewer or a plugin page, as `plugin:<pluginId>:<pageId>`. Widened rather than\n * adding enum members: `ViewerNames` mirrors the Prisma `appContent` enum.\n */\nexport type ViewerKey = ViewerNames | `plugin:${string}`\n\nexport enum SensorTypes { Temperature = 'Temperature', Light = 'Light', Humidity = 'Humidity', Energy_Consumption = 'Energy_Consumption', Movement = 'Movement', Air_Quality = 'Air_Quality', Atmospheric_Pressure = 'Atmospheric_Pressure', Irradiance = 'Irradiance', Flow = 'Flow', State = 'State', Noise_Level = 'Noise_Level' }\nexport enum SensorDataFormat { Csv = 'Csv', Json = 'Json' }\n\nexport enum InfrastructureType { LandFeature = 'LandFeature', Facility = 'Facility', Project = 'Project', Alignment = 'Alignment', Road = 'Road', Railway = 'Railway', Survey = 'Survey', LandDivision = 'LandDivision', Condominium = 'Condominium', Other = 'Other' }\nexport enum InfrastructureState { Existing = 'Existing', Proposed = 'Proposed', Planned = 'Planned', UnderConstruction = 'UnderConstruction', Abandoned = 'Abandoned', Demolished = 'Demolished' }\nexport enum LinearSide { Left = 'Left', Right = 'Right', Center = 'Center', Both = 'Both', Neither = 'Neither', Unspecified = 'Unspecified' }\nexport enum LinearReferencingType { Absolute = 'Absolute', Relative = 'Relative', Interpolative = 'Interpolative' }\nexport enum GeometryType { Point = 'Point', LineString = 'LineString', PolyfaceMesh = 'PolyfaceMesh', Curve = 'Curve' }\nexport enum SurfaceType { TIN = 'TIN', Grid = 'Grid', Breaklines = 'Breaklines' }\nexport enum IfcInfrastructureDomain { IfcRoad = 'IfcRoad', IfcRailway = 'IfcRailway', IfcBridge = 'IfcBridge', IfcMarineFacility = 'IfcMarineFacility', IfcWaterway = 'IfcWaterway', IfcGeotechnicalAssembly = 'IfcGeotechnicalAssembly', }\nexport enum IfcRoadType { Highway = 'Highway', Street = 'Street', Interchange = 'Interchange', BicycleWay = 'BicycleWay', Footway = 'Footway', NotDefined = 'NotDefined' }\nexport enum IfcRailType { HeavyRail = 'HeavyRail', LightRail = 'LightRail', Subway = 'Subway', Tram = 'Tram', Monorail = 'Monorail', RackRail = 'RackRail' }\nexport enum IfcTrackComponentType { Track = 'Track', Sleeper = 'Sleeper', Ballast = 'Ballast', Frog = 'Frog', Sleepers = 'Sleepers', Block = 'Block' }\nexport enum IfcBridgePartType { Abutment = 'Abutment', Deck = 'Deck', Pier = 'Pier', Pylon = 'Pylon', Superstructure = 'Superstructure', Substructure = 'Substructure' }\nexport enum IfcGeotechType { Borehole = 'Borehole', Earthwork = 'Earthwork', RockTunnel = 'RockTunnel' }\nexport enum IfcSignalType { TrafficLight = 'TrafficLight', RailSignal = 'RailSignal', Sign = 'Sign', Panel = 'Panel' }\nexport enum IfcSensorType { TrafficSensor = 'TrafficSensor', WeatherSensor = 'WeatherSensor', SecurityCamera = 'SecurityCamera' }\nexport enum IfcUtilityType { PowerLine = 'PowerLine', Telecom = 'Telecom', Stormwater = 'Stormwater', Sewage = 'Sewage', Gas = 'Gas', DuctBank = 'DuctBank' }\nexport enum IfcEarthworksType { Cut = 'Cut', Fill = 'Fill', Embankment = 'Embankment', Subgrade = 'Subgrade' }\nexport enum IfcFacilityPartType { Segment = 'Segment', Junction = 'Junction', LevelCrossing = 'LevelCrossing', Terminal = 'Terminal' }\nexport enum CityGmlLod { LOD0 = 'LOD0', LOD1 = 'LOD1', LOD2 = 'LOD2', LOD3 = 'LOD3', LOD4 = 'LOD4' }\nexport enum CityGmlFunction { Traffic = 'Traffic', WaterBody = 'WaterBody', SolitaryVegetation = 'SolitaryVegetation', PlantCover = 'PlantCover', CityFurniture = 'CityFurniture', LandUse = 'LandUse' }\nexport enum CityGmlUsage { Public = 'Public', Private = 'Private', Industrial = 'Industrial', Commercial = 'Commercial', Government = 'Government', Military = 'Military' }\nexport enum CityGmlFurnitureType { TrafficLight = 'TrafficLight', TrafficSign = 'TrafficSign', StreetLamp = 'StreetLamp', BusStop = 'BusStop', Bench = 'Bench', WasteBin = 'WasteBin', Bollard = 'Bollard' }\nexport enum CityGmlVegetationType { Tree = 'Tree', Shrub = 'Shrub', Hedge = 'Hedge', Grass = 'Grass' }\nexport enum CityGmlCondition { Intact = 'Intact', UnderConstruction = 'UnderConstruction', Declined = 'Declined', Demolished = 'Demolished', Ruin = 'Ruin' }\nexport enum CityGmlElevationRef { Bottom = 'Bottom', Ground = 'Ground', Eaves = 'Eaves', Top = 'Top' }\nexport enum CityGmlSurfaceMaterial { Asphalt = 'Asphalt', Concrete = 'Concrete', Gravel = 'Gravel', Soil = 'Soil', Grass = 'Grass', PavingStones = 'PavingStones' }\nexport enum CityGmlTrafficSurfaceFunction { DrivingLane = 'DrivingLane', CycleLane = 'CycleLane', Sidewalk = 'Sidewalk', ParkingBay = 'ParkingBay', Crosswalk = 'Crosswalk', TrafficIsland = 'TrafficIsland', Embankment = 'Embankment' }\nexport enum Language { En = 'En', Fr = 'Fr', Es = 'Es' }\n\n\nexport interface User {\n id: number;\n name: string;\n password: string;\n email: string;\n emailVerified?: Date | null;\n imageFileId?: number | null;\n createdAt: Date;\n updatedAt: Date;\n organizationId?: number | null;\n roleId: number;\n}\n\nexport interface Role {\n id: number;\n name: string;\n permissions: unknown[]; // Prisma Json[]; keep as unknown[] in core\n orgId: number;\n}\n\nexport type Permission = {\n action: string;\n subject: string;\n description?: string;\n};\n\nexport interface Account {\n id: number;\n type: string;\n provider: string;\n providerAccountId: string;\n refresh_token?: string | null;\n access_token?: string | null;\n expires_at?: number | null;\n token_type?: string | null;\n scope?: string | null;\n id_token?: string | null;\n session_state?: string | null;\n createdAt: Date;\n updatedAt: Date;\n userId: number;\n}\n\nexport interface Organization {\n id: number;\n name: string;\n title?: string | null;\n description?: string | null;\n geocoder: boolean;\n mainColor?: string | null;\n secondaryColor?: string | null;\n locationId?: string | null;\n countrySubdivision?: string | null; // CA-ON, US-NY, etc.\n municipality?: string | null;\n postalCode?: string | null;\n lat?: number | null;\n long?: number | null;\n zoom?: number | null;\n bbox: number[]\n bearing?: number | null;\n pitch?: number | null;\n mapStyles: unknown[]; // Json[] in Prisma, keep as unknown[] in core\n minZoom?: number | null;\n maxBounds: number[]\n appContent: (ViewerNames | `${ViewerNames}`)[]\n logoKey?: string | null;\n faviconKey?: string | null;\n maxNumberOfUsers?: number | null;\n languages: (Language | `${Language}`)[];\n country?: string | null;\n suspended: boolean;\n locationSiteId?: number | null;\n locationBuildingId?: number | null;\n}\n\nexport interface BuildingOnOrganizations {\n buildingId: number;\n organizationId: number;\n}\n\nexport interface Comment {\n id: number;\n authorId: number;\n organizationId: number;\n text: string;\n longitude?: number | null;\n latitude?: number | null;\n elevation?: number | null;\n visible: boolean;\n viewer: ViewerNames | `${ViewerNames}`;\n x?: number | null;\n y?: number | null;\n z?: number | null;\n createdAt: Date;\n updatedAt: Date;\n replyToId?: number | null;\n buildingId?: number | null;\n image?: string | null;\n}\n\nexport interface Sensor {\n id: number;\n data: string;\n dataFormat: SensorDataFormat | `${SensorDataFormat}`;\n updateFrequency: number;\n name: string;\n longitude?: number | null;\n latitude?: number | null;\n elevation?: number | null;\n visible: boolean;\n viewer: ViewerNames | `${ViewerNames}`;\n x?: number | null;\n y?: number | null;\n z?: number | null;\n createdAt: Date;\n updatedAt: Date;\n url?: string | null;\n tags: string[];\n maxThreshold?: number | null;\n minThreshold?: number | null;\n typeId?: number | null;\n organizationId: number;\n buildingId?: number | null;\n authorId: number;\n}\n\nexport interface SensorType {\n id: number;\n name: SensorTypes | `${SensorTypes}`;\n icon: string;\n minValue: number;\n maxValue: number;\n minColour: string;\n midColour: string;\n maxColour: string;\n}\n\n/** A drawn building outline: a WGS84 GeoJSON Polygon, outer ring first, each ring closed. */\nexport interface BuildingGeometry {\n type: 'Polygon'\n coordinates: [number, number][][]\n}\n\nexport interface Building {\n id: number\n buildingEmail?: string\n buildingPhoneNumber?: string\n buildingAddress?: string\n buildingStreetNumber?: string\n buildingStreetName?: string\n buildingStreetType?: string\n buildingStreetDirection?: string\n buildingCountrySubdivision?: string\n buildingMunicipality?: string\n buildingPostalCode?: string\n buildingType: string[]\n buildingLongitude?: number\n buildingLatitude?: number\n rotation?: number\n buildingElevation?: number\n buildingEasting?: number\n buildingNorthing?: number\n buildingEPSG?: number\n buildingName?: string\n buildingNotes?: string\n buildingWebsite?: string\n buildingHeatingIncluded?: boolean\n buildingHydroIncluded?: boolean\n buildingProviderContactEmail?: string\n buildingProviderContactName?: string\n buildingProviderContactPhone?: string\n buildingProviderName?: string\n buildingProviderType?: string\n buildingProviderWebsite?: string\n buildingOccupantType: (BuildingOccupantType | `${BuildingOccupantType}`)[]\n buildingStoreyNum?: number\n buildingTotalSqft?: number\n buildingUnits1B?: boolean\n buildingUnits1BNum?: number\n buildingUnits1BSqft: number[]\n buildingUnits2B?: boolean\n buildingUnits2BNum?: number\n buildingUnits2BSqft: number[]\n buildingUnits3B?: boolean\n buildingUnits3BNum?: number\n buildingUnits3BSqft: number[]\n buildingUnits4B?: boolean\n buildingUnits4BNum?: number\n buildingUnits4BSqft: number[]\n buildingUnits5B?: boolean\n buildingUnits5BNum?: number\n buildingUnits5BSqft: number[]\n buildingUnits6B?: boolean\n buildingUnits6BNum?: number\n buildingUnits6BSqft: number[]\n buildingUnitsB?: boolean\n buildingUnitsBNum?: number\n buildingUnitsBSqft: number[]\n buildingUnitsMarketRent?: boolean\n buildingUnitsMarketRentNum?: number\n buildingUnitsMarketRentSqft: number[]\n buildingUnitsModified?: boolean\n buildingUnitsModifiedNum?: number\n buildingUnitsModifiedSqft: number[]\n buildingUnitsRoom?: boolean\n buildingUnitsRoomNum?: number\n buildingUnitsRoomSqft: number[]\n buildingUnitsSubsidized?: boolean\n buildingUnitsSubsidizedNum?: number\n buildingUnitsSubsidizedSqft: number[]\n buildingUnitsBelowMarketRent?: boolean\n buildingUnitsBelowMarketRentNum?: number\n buildingUnitsBelowMarketRentSqft: number[]\n buildingUnitsRentGearedToIncome?: boolean\n buildingUnitsRentGearedToIncomeNum?: number\n buildingUnitsRentGearedToIncomeSqft: number[]\n buildingUnitsTotal?: number\n buildingUtilitiesIncluded?: boolean\n buildingYearBuilt?: number\n buildingAnchorAddress?: string\n buildingGeometryStyle?: BuildingGeometryStyle | `${BuildingGeometryStyle}`\n buildingCommonSpace?: boolean\n buildingAirQuality?: number\n buildingAirQualityAssessmentDate?: Date\n buildingAnnualConsumption?: number\n buildingAssessedValue?: number\n buildingBuilderName?: string\n buildingAdditionalInformation?: string\n buildingAssessmentCondition?: BuildingAssessmentConditions | `${BuildingAssessmentConditions}`\n buildingAssessmentDate?: Date\n buildingAssessmentDescription?: string\n buildingCity?: string\n buildingCounty?: string\n buildingOrthogonalHeight?: number\n buildingOsmId?: string\n buildingOsmType?: string\n buildingProjectPhase?: BuildingProjectPhase | `${BuildingProjectPhase}`\n buildingProjectType?: BuildingProjectType | `${BuildingProjectType}`\n buildingSourceEui?: number\n buildingWardName?: string\n buildingWardNumber?: number\n buildingManagementType?: BuildingManagementType | `${BuildingManagementType}`\n buildingManagementName?: string\n buildingManagementContactName?: string\n buildingManagementWebsite?: string\n buildingManagementPhoneNumber?: string\n buildingCensusTract?: number\n buildingCertifications?: string\n buildingClimateVulnerabilities?: string\n buildingComfort?: string\n buildingCompletedDate?: Date\n buildingDryerAvailable?: boolean\n buildingElevatorAvailable?: boolean\n buildingEnergyAdditionalInformation?: string\n buildingHeatingEnergySources: (BuildingHeatingEnergySource | `${BuildingHeatingEnergySource}`)[]\n buildingHeatingMetric?: number\n buildingHeatingInstallationYear?: number\n buildingCoolingEnergySources: (BuildingCoolingEnergySource | `${BuildingCoolingEnergySource}`)[]\n buildingCoolingMetric?: number\n buildingCoolingInstallationYear?: number\n buildingHotWaterSystemsEnergySources: (BuildingHotWaterEnergySource | `${BuildingHotWaterEnergySource}`)[]\n buildingHotWaterSystemsMetric?: number\n buildingHotWaterSystemsInstallationYear?: number\n buildingEnvironmentalAdditionalInformation?: string\n buildingEstimatedConstructionCost?: number\n buildingEstimatedEndDate?: Date\n buildingEstimatedStartDate?: Date\n buildingEstimatedTotalCost?: number\n buildingFederalContribution?: number\n buildingFundingAdditionalInformation?: string\n buildingFundingSources?: string\n buildingGrants?: number\n buildingHvacEfficiency?: string\n buildingElectricityServiceSize?: BuildingElectricityServiceSize | `${BuildingElectricityServiceSize}`\n buildingElectricityServiceLocation?: BuildingElectricityServiceLocation | `${BuildingElectricityServiceLocation}`\n buildingElectricityServicePanelSize?: number\n buildingElectricityServiceUtilityConnection?: string\n buildingElectricityServiceUpgradeHistory?: string\n buildingIntensityGhgEmissions?: number\n buildingLifecycleExpenses?: number\n buildingMaintenanceAdditionalInformation?: string\n buildingMaterials?: string\n buildingOperatingExpenses?: number\n buildingOwnership?: string\n buildingParkingAvailable?: boolean\n buildingPermitIssuedDate?: Date\n buildingPermitNumber?: number\n previousUpdates?: string\n buildingPriorityRetrofits?: string\n buildingProgramLoan?: number\n buildingProgramName?: string\n buildingProjectDescription?: string\n buildingProjectName?: string\n buildingProjectNumber?: number\n buildingProponentOrganization?: string\n buildingProponentType?: string\n buildingRentalMarketSurveyZone?: number\n buildingRetrofitFundingNeeds?: string\n buildingSafetyConcerns?: string\n buildingSiteEui?: number\n buildingSolarPotential?: number\n buildingStartDate?: Date\n buildingStructuralVulnerabilities?: string\n buildingSubsidies?: number\n buildingTotalContribution?: number\n buildingTotalGhgEmissions?: number\n buildingTotalRentableArea?: number\n buildingUnitAdditionalInformation?: string\n buildingValueOfFundingFlowed?: number\n buildingWasherAvailable?: boolean\n buildingWaterIncluded?: boolean\n buildingWaterUseIntensity?: number\n buildingZoning?: string\n featureId?: string | null\n buildingGeometry?: BuildingGeometry | null\n buildingParentSiteId?: number | null\n}\n\nexport interface DbFile {\n id: number\n name: string\n type: string\n url?: string | null\n assetId: string\n mimeType?: string | null\n extension?: string | null\n sizeBytes?: number | null\n uploadedAt: string\n description?: string | null\n tag?: string | null\n position?: Position\n /** @deprecated Use `fileTransformX`; kept until the column is dropped. */\n x?: number | null\n /** @deprecated Use `fileTransformY`. */\n y?: number | null\n /** @deprecated Use `fileTransformZ`. */\n z?: number | null\n lat?: number | null\n lng?: number | null\n elevation?: number | null\n rotation?: number | null\n /** @deprecated Use `fileRotationY`. */\n bimRotation?: number | null\n /** @deprecated Use the `fileTransform*`, `fileRotation*`, `fileScale` and `fileSourceUp` fields. */\n pointCloudTransform?: unknown\n /** @deprecated Use `fileScale`. */\n scale?: number | null\n isVisible?: boolean\n lazFileKey?: string | null\n potreeFolderKey?: string | null\n potreeMetadataFileKey?: string | null\n pointCloudUploaded?: boolean | null\n pointCloudPotreeConverted?: boolean | null\n bucket?: string | null\n fileTransformX?: number | null\n fileTransformY?: number | null\n fileTransformZ?: number | null\n fileRotationX?: number | null\n fileRotationY?: number | null\n fileRotationZ?: number | null\n fileScale?: number | null\n fileSourceUp?: SourceUpAxis | null\n fileProjectedCRS?: string | null\n sourceProj4Def?: string | null\n mapConversionEastings?: number | null\n mapConversionNorthings?: number | null\n mapConversionOrthogonalHeight?: number | null\n mapConversionXAxisAbscissa?: number | null\n mapConversionXAxisOrdinate?: number | null\n mapConversionScale?: number | null\n pointCloudProjection?: string | null\n georeferenceSource?: GeoreferenceSource | null\n datasetProvider?: DatasetProvider | null\n datasetSource?: string | null\n countrySubdivision?: string | null\n municipality?: string | null\n fileCommentId?: number | null\n fileOrganizationId: number\n attachedFilesBuildingId?: number | null\n buildingCodeComplianceBuildingId?: number | null\n environmentalComplianceBuildingId?: number | null\n occupancyCertificateBuildingId?: number | null\n permitsIssuedBuildingId?: number | null\n systemAssessmentsBuildingId?: number | null\n zoningComplianceBuildingId?: number | null\n certificationsFileBuildingId?: number | null\n energyCodeComplianceBuildingId?: number | null\n fireSafetyBuildingId?: number | null\n maintenanceRecordsBuildingId?: number | null\n proximityToServicesBuildingId?: number | null\n regionalEnergyTrendsBuildingId?: number | null\n BCABuildingId?: number | null\n contractorReportsBuildingId?: number | null\n engineeringAssessmentsBuildingId?: number | null\n airQualityReportsBuildingId?: number | null\n waterQualityReportsBuildingId?: number | null\n DSRsBuildingId?: number | null\n energyAssessmentReportsBuildingId?: number | null\n attachedFilesSiteId?: number | null\n energyCodeComplianceSiteId?: number | null\n certificationCertificatesSiteId?: number | null\n environmentalComplianceSiteId?: number | null\n maintenanceRecordsSiteId?: number | null\n fireSafetySiteId?: number | null\n fireCertSiteId?: number | null\n zoningComplianceSiteId?: number | null\n buildingPermitSiteId?: number | null\n insuranceClaimsSiteId?: number | null\n buildingPermitsIssuedSiteId?: number | null\n}\n\nexport interface Site {\n id: number\n siteName?: string\n siteAddress?: string\n siteCountrySubdivision?: string\n siteMunicipality?: string\n siteCity?: string\n sitePostalCode?: string\n siteCounty?: string\n siteWard?: string\n siteLongitude?: number\n siteLatitude?: number\n siteEnergyUsage?: SiteEnergySource | `${SiteEnergySource}`\n siteAnnualConsumption?: number\n siteEnergyDemand?: number\n siteSourceEui?: number\n siteEui?: number\n siteSolarPotential?: number\n siteRenewableEnergy?: string\n siteEnergyAdditionalInformation?: string\n siteTotalGhgEmissions?: number\n siteIntensityGhgEmissions?: number\n siteCertifications?: string\n siteWaterUseData?: number\n siteEnvironmentalAdditionalInformation?: string\n siteLifecycleExpenses?: number\n siteOperatingExpenses?: number\n siteFundingSources?: string\n siteGrants?: number\n siteSubsidies?: number\n siteProponentOrganization?: string\n siteProgramLoan?: number\n siteProponentType?: string\n siteProgramName?: string\n siteTotalContribution?: number\n siteValueOfFundingFlowed?: number\n siteFundingAdditionalInformation?: string\n siteAssessmentCondition?: SiteAssessmentConditions | `${SiteAssessmentConditions}`\n siteAssessmentDate?: Date\n siteAssessmentDescription?: string\n siteMaintenanceAdditionalInformation?: string\n siteClimateVulnerabilities?: string\n siteSafetyConcerns?: string\n siteInsuranceProvider?: string\n siteInsuranceCosts?: number\n siteLandUse?: SiteLandUse | `${SiteLandUse}`\n siteLandUseSubtype?: string\n siteTotalArea?: number\n siteTotalBuiltArea?: number\n siteTotalAvailableArea?: number\n siteYearBuilt?: Date\n siteZoning?: string\n siteOwnership?: string\n siteProviderName?: string\n siteProviderType?: string\n siteProviderWebsite?: string\n siteProviderContactName?: string\n siteProviderContactPhone?: string\n siteProviderContactEmail?: string\n siteWebsite?: string\n siteNotes?: string\n siteProjectName?: string\n siteProjectNumber?: number\n siteProjectPhase?: SiteProjectPhase | `${SiteProjectPhase}`\n siteProjectType?: SiteProjectType | `${SiteProjectType}`\n siteEstimatedStartDate?: Date\n siteEstimatedEndDate?: Date\n siteStartDate?: Date\n siteCompletedDate?: Date\n sitePriorityRetrofits?: string\n siteProjectDescription?: string\n sitePreviousUpdates?: string\n siteBuilderName?: string\n sitePermitNumber?: number\n sitePermitIssuedDate?: Date\n siteEstimatedTotalCost?: number\n siteEstimatedConstructionCost?: number\n siteRetrofitFundingNeeds?: string\n siteFederalContribution?: number\n siteAssessedValue?: number\n siteOrganizationId: number\n}\n\nexport interface OpenDataPortal {\n id: number\n name: string\n group: DatasetGroup | `${DatasetGroup}`\n portalUrl?: string\n dataManagementSystem?: DataManagementSystem | `${DataManagementSystem}`\n apiUrl?: string\n countrySubdivision?: string\n municipality?: string\n country?: string\n live?: boolean\n}\n\nexport interface Infrastructure {\n id: number\n featureId?: string\n infrastructureName?: string\n infrastructureType?: InfrastructureType | `${InfrastructureType}`\n infrastructureEmail?: string\n infrastructureCountrySubdivision?: string\n infrastructureMunicipality?: string\n infrastructureCity?: string\n infrastructureCounty?: string\n infrastructurePhoneNumber?: string\n infrastructureAddress?: string\n infrastructureStreetNumber?: string\n infrastructureStreetName?: string\n infrastructureStreetType?: string\n infrastructureStreetDirection?: string\n infrastructurePostalCode?: string\n infrastructureDescription?: string\n infrastructureDatasetId?: string\n infrastructureExternalId?: string // Mapped from ID.identifier\n infrastructureScope?: string // Mapped from ID.scope\n infrastructureProjectName?: string // Context from Part 0 Project\n infrastructureFacilityId?: string // Context from Part 0 Facility\n infrastructureState?: InfrastructureState | `${InfrastructureState}`\n infrastructureStatus?: string // Generic status string or CodeList URI\n infrastructureValidFrom?: Date\n infrastructureValidTo?: Date\n infrastructureGeometryId?: number // Reference to geometry in our Files table\n infrastructureGeometryType?: GeometryType | `${GeometryType}`\n infrastructureEPSG?: number\n infrastructureLongitude?: number\n infrastructureLatitude?: number\n infrastructureRotation?: number\n infrastructureElevation?: number\n infrastructureEasting?: number\n infrastructureNorthing?: number\n infrastructureNotes?: string\n infrastructureWebsite?: string // Coordinate Reference System\n linearMeasure?: number\n linearMeasureUom?: string // Unit of measure (e.g., \"m\", \"km\")\n linearStartValue?: number\n linearDefaultLRM?: string\n linearLRMType?: LinearReferencingType | `${LinearReferencingType}`\n linearHasStationEquation?: boolean\n linearRestartValue?: number // Value after the station equation\n linearIsAlignment?: boolean\n linearAlignmentType?: string // e.g., \"Centerline\", \"LeftRail\", \"RightCurb\"\n infrastructureMaterial?: string\n infrastructureLayerType?: string\n linearHasCrossSection?: boolean\n linearCrossSectionArea?: number\n linearCrossSectionAreaUom?: string\n linearMaxLateralOffset?: number // Furthest distance from centerline\n linearVerticalOffset?: number\n infrastructureSurfaceType?: SurfaceType | `${SurfaceType}`\n infrastructureTinId?: string // Reference to TIN geometry ID\n infrastructureSurfaceName?: string\n infrastructureSurveyDocumentId?: string\n infrastructureSurveyDate?: Date\n ifcGlobalId?: string\n ifcDomain?: IfcInfrastructureDomain | `${IfcInfrastructureDomain}`\n ifcRoadType?: IfcRoadType | `${IfcRoadType}`\n ifcLaneCount?: number\n ifcDesignSpeed?: number\n ifcRailType?: IfcRailType | `${IfcRailType}`\n ifcTrackGauge?: number\n ifcCant?: number\n ifcTrackComponentType?: IfcTrackComponentType | `${IfcTrackComponentType}`\n ifcBridgePartType?: IfcBridgePartType | `${IfcBridgePartType}`\n ifcBridgeClearance?: number\n ifcLoadRating?: number\n ifcGeotechType?: IfcGeotechType | `${IfcGeotechType}`\n ifcWaterDepth?: number\n ifcSignalType?: IfcSignalType | `${IfcSignalType}`\n ifcSensorType?: IfcSensorType | `${IfcSensorType}`\n ifcUtilityType?: IfcUtilityType | `${IfcUtilityType}`\n ifcUtilityDiameter?: number\n ifcVoltage?: number // For power lines\n ifcEarthworksType?: IfcEarthworksType | `${IfcEarthworksType}`\n ifcSlopeRatio?: number // e.g., 2:1 slope\n infrastructureParentId?: string // Recursive ID for nested parts (e.g. Bridge Span inside Bridge)\n ifcFacilityPartType?: IfcFacilityPartType | `${IfcFacilityPartType}`\n cityGmlLod?: CityGmlLod | `${CityGmlLod}`\n cityGmlFunction?: CityGmlFunction | `${CityGmlFunction}`\n cityGmlUsage?: CityGmlUsage | `${CityGmlUsage}`\n cityGmlRelativeToTerrain?: string\n cityGmlIsTrafficSpace?: boolean\n cityGmlTrafficGranularity?: string\n cityGmlVegetationType?: CityGmlVegetationType | `${CityGmlVegetationType}`\n cityGmlFurnitureType?: CityGmlFurnitureType | `${CityGmlFurnitureType}`\n cityGmlCrownDiameter?: number\n cityGmlName?: string\n cityGmlCondition?: CityGmlCondition | `${CityGmlCondition}`\n cityGmlConstructionDate?: Date\n cityGmlDemolitionDate?: Date\n cityGmlMeasuredHeight?: number\n cityGmlHeightRef?: CityGmlElevationRef | `${CityGmlElevationRef}`\n cityGmlSurfaceMaterial?: CityGmlSurfaceMaterial | `${CityGmlSurfaceMaterial}`\n cityGmlTrafficFunction?: CityGmlTrafficSurfaceFunction | `${CityGmlTrafficSurfaceFunction}`\n cityGmlIsAuxiliary?: boolean\n organizationId: number\n}"],"mappings":"AAOO,IAAK,uBAAL,kBAAKA,0BAAL;AAA4B,EAAAA,sBAAA,YAAS;AAAU,EAAAA,sBAAA,cAAW;AAAY,EAAAA,sBAAA,aAAU;AAAW,EAAAA,sBAAA,qBAAkB;AAAmB,EAAAA,sBAAA,qBAAkB;AAAmB,EAAAA,sBAAA,qBAAkB;AAAmB,EAAAA,sBAAA,qBAAkB;AAAmB,EAAAA,sBAAA,yBAAsB;AAAuB,EAAAA,sBAAA,WAAQ;AAAS,EAAAA,sBAAA,oBAAiB;AAAkB,EAAAA,sBAAA,qBAAkB;AAAmB,EAAAA,sBAAA,aAAU;AAAW,EAAAA,sBAAA,6BAA0B;AAA2B,EAAAA,sBAAA,gBAAa;AAAvc,SAAAA;AAAA,GAAA;AACL,IAAK,wBAAL,kBAAKC,2BAAL;AAA6B,EAAAA,uBAAA,aAAU;AAAW,EAAAA,uBAAA,YAAS;AAAU,EAAAA,uBAAA,eAAY;AAA5E,SAAAA;AAAA,GAAA;AACL,I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A6B,EAAAA,uBAAA,UAAO;AAAQ,EAAAA,uBAAA,WAAQ;AAAS,EAAAA,uBAAA,WAAQ;AAAS,EAAAA,uBAAA,WAAQ;AAAjF,SAAAA;AAAA,GAAA;AACL,IAAK,mBAAL,kBAAKC,sBAAL;AAAwB,EAAAA,kBAAA,YAAS;AAAU,EAAAA,kBAAA,uBAAoB;AAAqB,EAAAA,kBAAA,cAAW;AAAY,EAAAA,kBAAA,gBAAa;AAAc,EAAAA,kBAAA,UAAO;AAAxI,SAAAA;AAAA,GAAA;AACL,IAAK,sBAAL,kBAAKC,yBAAL;AAA2B,EAAAA,qBAAA,YAAS;AAAU,EAAAA,qBAAA,YAAS;AAAU,EAAAA,qBAAA,WAAQ;AAAS,EAAAA,qBAAA,SAAM;AAAnF,SAAAA;AAAA,GAAA;AACL,IAAK,yBAAL,kBAAKC,4BAAL;AAA8B,EAAAA,wBAAA,aAAU;AAAW,EAAAA,wBAAA,cAAW;AAAY,EAAAA,wBAAA,YAAS;AAAU,EAAAA,wBAAA,UAAO;AAAQ,EAAAA,wBAAA,WAAQ;AAAS,EAAAA,wBAAA,kBAAe;AAAvI,SAAAA;AAAA,GAAA;AACL,IAAK,gCAAL,kBAAKC,mCAAL;AAAqC,EAAAA,+BAAA,iBAAc;AAAe,EAAAA,+BAAA,eAAY;AAAa,EAAAA,+BAAA,cAAW;AAAY,EAAAA,+BAAA,gBAAa;AAAc,EAAAA,+BAAA,eAAY;AAAa,EAAAA,+BAAA,mBAAgB;AAAiB,EAAAA,+BAAA,gBAAa;AAA/M,SAAAA;AAAA,GAAA;AACL,IAAK,WAAL,kBAAKC,cAAL;AAAgB,EAAAA,UAAA,QAAK;AAAM,EAAAA,UAAA,QAAK;AAAM,EAAAA,UAAA,QAAK;AAAtC,SAAAA;AAAA,GAAA;","names":["BuildingOccupantType","BuildingGeometryStyle","BuildingAssessmentConditions","BuildingProjectPhase","BuildingProjectType","BuildingManagementType","BuildingEnergySource","BuildingHeatingEnergySource","BuildingCoolingEnergySource","BuildingHotWaterEnergySource","BuildingElectricityServiceSize","BuildingElectricityServiceLocation","SiteEnergySource","SiteAssessmentConditions","SiteLandUse","SiteProjectPhase","SiteProjectType","DatasetGroup","DatasetProvider","SourceUpAxis","GeoreferenceSource","DataManagementSystem","ViewerNames","SensorTypes","SensorDataFormat","InfrastructureType","InfrastructureState","LinearSide","LinearReferencingType","GeometryType","SurfaceType","IfcInfrastructureDomain","IfcRoadType","IfcRailType","IfcTrackComponentType","IfcBridgePartType","IfcGeotechType","IfcSignalType","IfcSensorType","IfcUtilityType","IfcEarthworksType","IfcFacilityPartType","CityGmlLod","CityGmlFunction","CityGmlUsage","CityGmlFurnitureType","CityGmlVegetationType","CityGmlCondition","CityGmlElevationRef","CityGmlSurfaceMaterial","CityGmlTrafficSurfaceFunction","Language"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/core/types/dbTypes.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport { CountrySubdivision } from './datasetTypes';\n\nimport type { Position } from './global'\n\nexport enum BuildingOccupantType { Adults = 'Adults', Families = 'Families', Seniors = 'Seniors', Seniors_50_Plus = 'Seniors_50_Plus', Seniors_55_Plus = 'Seniors_55_Plus', Seniors_65_Plus = 'Seniors_65_Plus', Seniors_60_Plus = 'Seniors_60_Plus', Indigenous_Families = 'Indigenous_Families', Youth = 'Youth', Adults_16_Plus = 'Adults_16_Plus', Adults_16_To_24 = 'Adults_16_To_24', Singles = 'Singles', Families_Single_Parents = 'Families_Single_Parents', Indigenous = 'Indigenous' }\nexport enum BuildingGeometryStyle { Complex = 'Complex', Simple = 'Simple', Apartment = 'Apartment' }\nexport enum BuildingAssessmentConditions { Excellent = 'Excellent', Good = 'Good', Fair = 'Fair', Poor = 'Poor' }\nexport enum BuildingProjectPhase { Inception_Phase = 'Inception_Phase', Conceptualization_Phase = 'Conceptualization_Phase', Criteria_Definition_Phase = 'Criteria_Definition_Phase', Design_Phase = 'Design_Phase', Coordination_Phase = 'Coordination_Phase', Implementation_Phase = 'Implementation_Phase', Handover_Phase = 'Handover_Phase', Operations_Phase = 'Operations_Phase' }\nexport enum BuildingProjectType { Modification = 'Modification', New_Build = 'New_Build', Renovation = 'Renovation', Repair = 'Repair', Operation_Maintenance = 'Operation_Maintenance', Retrofit = 'Retrofit' }\nexport enum BuildingManagementType { Internal = 'Internal', External = 'External', Municipal = 'Municipal', Private = 'Private' }\nexport enum BuildingEnergySource { Gas = 'Gas', Propane = 'Propane', Electric_BB = 'Electric_BB', Oil = 'Oil', Electric = 'Electric', Natural_Gas = 'Natural_Gas', Solar = 'Solar', Wind = 'Wind', Geothermal = 'Geothermal', District_Heating = 'District_Heating' }\nexport enum BuildingHeatingEnergySource { Gas = 'Gas', Propane = 'Propane', Electric_BB = 'Electric_BB', Oil = 'Oil', Electric = 'Electric', Natural_Gas = 'Natural_Gas', Solar = 'Solar', Wind = 'Wind', Geothermal = 'Geothermal', District_Heating = 'District_Heating' }\nexport enum BuildingCoolingEnergySource { Electric = 'Electric', Wind = 'Wind', Geothermal = 'Geothermal', District_Cooling = 'District_Cooling', Solar = 'Solar' }\nexport enum BuildingHotWaterEnergySource { Electric = 'Electric', Natural_Gas = 'Natural_Gas', Propane = 'Propane', Oil = 'Oil', Solar = 'Solar', Wind = 'Wind' }\nexport enum BuildingElectricityServiceSize { Size_60 = 'Size_60', Size_100 = 'Size_100', Size_200 = 'Size_200' }\nexport enum BuildingElectricityServiceLocation { Overhead = 'Overhead', Underhead = 'Underhead' }\n\nexport enum SiteEnergySource { Gas = 'Gas', Propane = 'Propane', Electric_BB = 'Electric_BB', Oil = 'Oil', Electric = 'Electric', Natural_Gas = 'Natural_Gas', Solar = 'Solar', Wind = 'Wind', Geothermal = 'Geothermal', District_Heating = 'District_Heating' }\nexport enum SiteAssessmentConditions { Excellent = 'Excellent', Good = 'Good', Fair = 'Fair', Poor = 'Poor' }\nexport enum SiteLandUse { Residential = 'Residential', Industry_And_Business = 'Industry_And_Business', Mixed_Use = 'Mixed_Use', Special_Function_Area = 'Special_Function_Area', Monument = 'Monument', Dump = 'Dump', Mining = 'Mining', Park = 'Park', Cemetery = 'Cemetery', Sports_Leisure_and_Recreation = 'Sports_Leisure_and_Recreation', Open_Pit_Quarry = 'Open_Pit_Quarry', Road = 'Road', Railway = 'Railway', Airfield = 'Airfield', Shipping = 'Shipping', Track = 'Track', Square = 'Square', Grassland = 'Grassland', Agriculture = 'Agriculture', Forest = 'Forest', Grove = 'Grove', Heath = 'Heath', Moor = 'Moor', Marsh = 'Marsh', Untilled_Land = 'Untilled_Land', River = 'River', Standing_Waterbody = 'Standing_Waterbody', Harbour = 'Harbour', Sea = 'Sea' }\nexport enum SiteProjectPhase { Inception_Phase = 'Inception_Phase', Conceptualization_Phase = 'Conceptualization_Phase', Criteria_Definition_Phase = 'Criteria_Definition_Phase', Design_Phase = 'Design_Phase', Coordination_Phase = 'Coordination_Phase', Implementation_Phase = 'Implementation_Phase', Handover_Phase = 'Handover_Phase', Operations_Phase = 'Operations_Phase' }\nexport enum SiteProjectType { Modification = 'Modification', New_Build = 'New_Build', Renovation = 'Renovation', Repair = 'Repair', Operation_Maintenance = 'Operation_Maintenance', Retrofit = 'Retrofit' }\nexport enum DatasetGroup { Organizational = 'Organizational', Municipal = 'Municipal', National = 'National', Provincial = 'Provincial' }\nexport enum DatasetProvider { evergreen = 'evergreen' }\nexport enum SourceUpAxis { y = 'y', z = 'z' }\nexport enum GeoreferenceSource { ifc = 'ifc', lasHeader = 'lasHeader', manual = 'manual' }\nexport enum DataManagementSystem { Ckan = 'Ckan', Arcgis = 'Arcgis', Opendatasoft = 'Opendatasoft', Socrata = 'Socrata', Other = 'Other' }\nexport enum ViewerNames { auth = 'auth', map = 'map', bim = 'bim', buildings = 'buildings', sites = 'sites', files = 'files', land = 'land', infrastructure = 'infrastructure', plugins = 'plugins', settings = 'settings', users = 'users' }\n/**\n * A built-in viewer or a plugin page, as `plugin:<pluginId>:<pageId>`. Widened rather than\n * adding enum members: `ViewerNames` mirrors the Prisma `appContent` enum.\n */\nexport type ViewerKey = ViewerNames | `plugin:${string}`\n\nexport enum SensorTypes { Temperature = 'Temperature', Light = 'Light', Humidity = 'Humidity', Energy_Consumption = 'Energy_Consumption', Movement = 'Movement', Air_Quality = 'Air_Quality', Atmospheric_Pressure = 'Atmospheric_Pressure', Irradiance = 'Irradiance', Flow = 'Flow', State = 'State', Noise_Level = 'Noise_Level' }\nexport enum SensorDataFormat { Csv = 'Csv', Json = 'Json' }\n\nexport enum InfrastructureType { LandFeature = 'LandFeature', Facility = 'Facility', Project = 'Project', Alignment = 'Alignment', Road = 'Road', Railway = 'Railway', Survey = 'Survey', LandDivision = 'LandDivision', Condominium = 'Condominium', Other = 'Other' }\nexport enum InfrastructureState { Existing = 'Existing', Proposed = 'Proposed', Planned = 'Planned', UnderConstruction = 'UnderConstruction', Abandoned = 'Abandoned', Demolished = 'Demolished' }\nexport enum LinearSide { Left = 'Left', Right = 'Right', Center = 'Center', Both = 'Both', Neither = 'Neither', Unspecified = 'Unspecified' }\nexport enum LinearReferencingType { Absolute = 'Absolute', Relative = 'Relative', Interpolative = 'Interpolative' }\nexport enum GeometryType { Point = 'Point', LineString = 'LineString', PolyfaceMesh = 'PolyfaceMesh', Curve = 'Curve' }\nexport enum SurfaceType { TIN = 'TIN', Grid = 'Grid', Breaklines = 'Breaklines' }\nexport enum IfcInfrastructureDomain { IfcRoad = 'IfcRoad', IfcRailway = 'IfcRailway', IfcBridge = 'IfcBridge', IfcMarineFacility = 'IfcMarineFacility', IfcWaterway = 'IfcWaterway', IfcGeotechnicalAssembly = 'IfcGeotechnicalAssembly', }\nexport enum IfcRoadType { Highway = 'Highway', Street = 'Street', Interchange = 'Interchange', BicycleWay = 'BicycleWay', Footway = 'Footway', NotDefined = 'NotDefined' }\nexport enum IfcRailType { HeavyRail = 'HeavyRail', LightRail = 'LightRail', Subway = 'Subway', Tram = 'Tram', Monorail = 'Monorail', RackRail = 'RackRail' }\nexport enum IfcTrackComponentType { Track = 'Track', Sleeper = 'Sleeper', Ballast = 'Ballast', Frog = 'Frog', Sleepers = 'Sleepers', Block = 'Block' }\nexport enum IfcBridgePartType { Abutment = 'Abutment', Deck = 'Deck', Pier = 'Pier', Pylon = 'Pylon', Superstructure = 'Superstructure', Substructure = 'Substructure' }\nexport enum IfcGeotechType { Borehole = 'Borehole', Earthwork = 'Earthwork', RockTunnel = 'RockTunnel' }\nexport enum IfcSignalType { TrafficLight = 'TrafficLight', RailSignal = 'RailSignal', Sign = 'Sign', Panel = 'Panel' }\nexport enum IfcSensorType { TrafficSensor = 'TrafficSensor', WeatherSensor = 'WeatherSensor', SecurityCamera = 'SecurityCamera' }\nexport enum IfcUtilityType { PowerLine = 'PowerLine', Telecom = 'Telecom', Stormwater = 'Stormwater', Sewage = 'Sewage', Gas = 'Gas', DuctBank = 'DuctBank' }\nexport enum IfcEarthworksType { Cut = 'Cut', Fill = 'Fill', Embankment = 'Embankment', Subgrade = 'Subgrade' }\nexport enum IfcFacilityPartType { Segment = 'Segment', Junction = 'Junction', LevelCrossing = 'LevelCrossing', Terminal = 'Terminal' }\nexport enum CityGmlLod { LOD0 = 'LOD0', LOD1 = 'LOD1', LOD2 = 'LOD2', LOD3 = 'LOD3', LOD4 = 'LOD4' }\nexport enum CityGmlFunction { Traffic = 'Traffic', WaterBody = 'WaterBody', SolitaryVegetation = 'SolitaryVegetation', PlantCover = 'PlantCover', CityFurniture = 'CityFurniture', LandUse = 'LandUse' }\nexport enum CityGmlUsage { Public = 'Public', Private = 'Private', Industrial = 'Industrial', Commercial = 'Commercial', Government = 'Government', Military = 'Military' }\nexport enum CityGmlFurnitureType { TrafficLight = 'TrafficLight', TrafficSign = 'TrafficSign', StreetLamp = 'StreetLamp', BusStop = 'BusStop', Bench = 'Bench', WasteBin = 'WasteBin', Bollard = 'Bollard' }\nexport enum CityGmlVegetationType { Tree = 'Tree', Shrub = 'Shrub', Hedge = 'Hedge', Grass = 'Grass' }\nexport enum CityGmlCondition { Intact = 'Intact', UnderConstruction = 'UnderConstruction', Declined = 'Declined', Demolished = 'Demolished', Ruin = 'Ruin' }\nexport enum CityGmlElevationRef { Bottom = 'Bottom', Ground = 'Ground', Eaves = 'Eaves', Top = 'Top' }\nexport enum CityGmlSurfaceMaterial { Asphalt = 'Asphalt', Concrete = 'Concrete', Gravel = 'Gravel', Soil = 'Soil', Grass = 'Grass', PavingStones = 'PavingStones' }\nexport enum CityGmlTrafficSurfaceFunction { DrivingLane = 'DrivingLane', CycleLane = 'CycleLane', Sidewalk = 'Sidewalk', ParkingBay = 'ParkingBay', Crosswalk = 'Crosswalk', TrafficIsland = 'TrafficIsland', Embankment = 'Embankment' }\nexport enum Language { En = 'En', Fr = 'Fr', Es = 'Es' }\n\n\nexport interface User {\n id: number;\n name: string;\n password: string;\n email: string;\n emailVerified?: Date | null;\n imageFileId?: number | null;\n createdAt: Date;\n updatedAt: Date;\n organizationId?: number | null;\n roleId: number;\n}\n\nexport interface Role {\n id: number;\n name: string;\n permissions: unknown[]; // Prisma Json[]; keep as unknown[] in core\n orgId: number;\n}\n\nexport type Permission = {\n action: string;\n subject: string;\n description?: string;\n};\n\nexport interface Account {\n id: number;\n type: string;\n provider: string;\n providerAccountId: string;\n refresh_token?: string | null;\n access_token?: string | null;\n expires_at?: number | null;\n token_type?: string | null;\n scope?: string | null;\n id_token?: string | null;\n session_state?: string | null;\n createdAt: Date;\n updatedAt: Date;\n userId: number;\n}\n\nexport interface Organization {\n id: number;\n name: string;\n title?: string | null;\n description?: string | null;\n geocoder: boolean;\n mainColor?: string | null;\n secondaryColor?: string | null;\n locationId?: string | null;\n countrySubdivision?: string | null; // CA-ON, US-NY, etc.\n municipality?: string | null;\n postalCode?: string | null;\n lat?: number | null;\n long?: number | null;\n zoom?: number | null;\n bbox: number[]\n bearing?: number | null;\n pitch?: number | null;\n mapStyles: unknown[]; // Json[] in Prisma, keep as unknown[] in core\n minZoom?: number | null;\n maxBounds: number[]\n appContent: (ViewerNames | `${ViewerNames}`)[]\n logoKey?: string | null;\n faviconKey?: string | null;\n maxNumberOfUsers?: number | null;\n languages: (Language | `${Language}`)[];\n country?: string | null;\n suspended: boolean;\n locationSiteId?: number | null;\n locationBuildingId?: number | null;\n}\n\nexport interface BuildingOnOrganizations {\n buildingId: number;\n organizationId: number;\n}\n\nexport interface Comment {\n id: number;\n authorId: number;\n organizationId: number;\n text: string;\n longitude?: number | null;\n latitude?: number | null;\n elevation?: number | null;\n visible: boolean;\n viewer: ViewerNames | `${ViewerNames}`;\n x?: number | null;\n y?: number | null;\n z?: number | null;\n createdAt: Date;\n updatedAt: Date;\n replyToId?: number | null;\n buildingId?: number | null;\n image?: string | null;\n}\n\nexport interface Sensor {\n id: number;\n data: string;\n dataFormat: SensorDataFormat | `${SensorDataFormat}`;\n updateFrequency: number;\n name: string;\n longitude?: number | null;\n latitude?: number | null;\n elevation?: number | null;\n visible: boolean;\n viewer: ViewerNames | `${ViewerNames}`;\n x?: number | null;\n y?: number | null;\n z?: number | null;\n createdAt: Date;\n updatedAt: Date;\n url?: string | null;\n tags: string[];\n maxThreshold?: number | null;\n minThreshold?: number | null;\n typeId?: number | null;\n organizationId: number;\n buildingId?: number | null;\n authorId: number;\n}\n\nexport interface SensorType {\n id: number;\n name: SensorTypes | `${SensorTypes}`;\n icon: string;\n minValue: number;\n maxValue: number;\n minColour: string;\n midColour: string;\n maxColour: string;\n}\n\n/** A drawn building outline: a WGS84 GeoJSON Polygon, outer ring first, each ring closed. */\nexport interface BuildingGeometry {\n type: 'Polygon'\n coordinates: [number, number][][]\n}\n\nexport type BuildingAssociations = { files: number; sensors: number; comments: number; isDefaultLocation: boolean }\n\nexport type BuildingRemoval = { buildingId: number; buildingDeleted: boolean; transferredTo: number | null } & BuildingAssociations\n\nexport interface Building {\n id: number\n buildingEmail?: string\n buildingPhoneNumber?: string\n buildingAddress?: string\n buildingStreetNumber?: string\n buildingStreetName?: string\n buildingStreetType?: string\n buildingStreetDirection?: string\n buildingCountrySubdivision?: string\n buildingMunicipality?: string\n buildingPostalCode?: string\n buildingType: string[]\n buildingLongitude?: number\n buildingLatitude?: number\n rotation?: number\n buildingElevation?: number\n buildingEasting?: number\n buildingNorthing?: number\n buildingEPSG?: number\n buildingName?: string\n buildingNotes?: string\n buildingWebsite?: string\n buildingHeatingIncluded?: boolean\n buildingHydroIncluded?: boolean\n buildingProviderContactEmail?: string\n buildingProviderContactName?: string\n buildingProviderContactPhone?: string\n buildingProviderName?: string\n buildingProviderType?: string\n buildingProviderWebsite?: string\n buildingOccupantType: (BuildingOccupantType | `${BuildingOccupantType}`)[]\n buildingStoreyNum?: number\n buildingTotalSqft?: number\n buildingUnits1B?: boolean\n buildingUnits1BNum?: number\n buildingUnits1BSqft: number[]\n buildingUnits2B?: boolean\n buildingUnits2BNum?: number\n buildingUnits2BSqft: number[]\n buildingUnits3B?: boolean\n buildingUnits3BNum?: number\n buildingUnits3BSqft: number[]\n buildingUnits4B?: boolean\n buildingUnits4BNum?: number\n buildingUnits4BSqft: number[]\n buildingUnits5B?: boolean\n buildingUnits5BNum?: number\n buildingUnits5BSqft: number[]\n buildingUnits6B?: boolean\n buildingUnits6BNum?: number\n buildingUnits6BSqft: number[]\n buildingUnitsB?: boolean\n buildingUnitsBNum?: number\n buildingUnitsBSqft: number[]\n buildingUnitsMarketRent?: boolean\n buildingUnitsMarketRentNum?: number\n buildingUnitsMarketRentSqft: number[]\n buildingUnitsModified?: boolean\n buildingUnitsModifiedNum?: number\n buildingUnitsModifiedSqft: number[]\n buildingUnitsRoom?: boolean\n buildingUnitsRoomNum?: number\n buildingUnitsRoomSqft: number[]\n buildingUnitsSubsidized?: boolean\n buildingUnitsSubsidizedNum?: number\n buildingUnitsSubsidizedSqft: number[]\n buildingUnitsBelowMarketRent?: boolean\n buildingUnitsBelowMarketRentNum?: number\n buildingUnitsBelowMarketRentSqft: number[]\n buildingUnitsRentGearedToIncome?: boolean\n buildingUnitsRentGearedToIncomeNum?: number\n buildingUnitsRentGearedToIncomeSqft: number[]\n buildingUnitsTotal?: number\n buildingUtilitiesIncluded?: boolean\n buildingYearBuilt?: number\n buildingAnchorAddress?: string\n buildingGeometryStyle?: BuildingGeometryStyle | `${BuildingGeometryStyle}`\n buildingCommonSpace?: boolean\n buildingAirQuality?: number\n buildingAirQualityAssessmentDate?: Date\n buildingAnnualConsumption?: number\n buildingAssessedValue?: number\n buildingBuilderName?: string\n buildingAdditionalInformation?: string\n buildingAssessmentCondition?: BuildingAssessmentConditions | `${BuildingAssessmentConditions}`\n buildingAssessmentDate?: Date\n buildingAssessmentDescription?: string\n buildingCity?: string\n buildingCounty?: string\n buildingOrthogonalHeight?: number\n buildingOsmId?: string\n buildingOsmType?: string\n buildingProjectPhase?: BuildingProjectPhase | `${BuildingProjectPhase}`\n buildingProjectType?: BuildingProjectType | `${BuildingProjectType}`\n buildingSourceEui?: number\n buildingWardName?: string\n buildingWardNumber?: number\n buildingManagementType?: BuildingManagementType | `${BuildingManagementType}`\n buildingManagementName?: string\n buildingManagementContactName?: string\n buildingManagementWebsite?: string\n buildingManagementPhoneNumber?: string\n buildingCensusTract?: number\n buildingCertifications?: string\n buildingClimateVulnerabilities?: string\n buildingComfort?: string\n buildingCompletedDate?: Date\n buildingDryerAvailable?: boolean\n buildingElevatorAvailable?: boolean\n buildingEnergyAdditionalInformation?: string\n buildingHeatingEnergySources: (BuildingHeatingEnergySource | `${BuildingHeatingEnergySource}`)[]\n buildingHeatingMetric?: number\n buildingHeatingInstallationYear?: number\n buildingCoolingEnergySources: (BuildingCoolingEnergySource | `${BuildingCoolingEnergySource}`)[]\n buildingCoolingMetric?: number\n buildingCoolingInstallationYear?: number\n buildingHotWaterSystemsEnergySources: (BuildingHotWaterEnergySource | `${BuildingHotWaterEnergySource}`)[]\n buildingHotWaterSystemsMetric?: number\n buildingHotWaterSystemsInstallationYear?: number\n buildingEnvironmentalAdditionalInformation?: string\n buildingEstimatedConstructionCost?: number\n buildingEstimatedEndDate?: Date\n buildingEstimatedStartDate?: Date\n buildingEstimatedTotalCost?: number\n buildingFederalContribution?: number\n buildingFundingAdditionalInformation?: string\n buildingFundingSources?: string\n buildingGrants?: number\n buildingHvacEfficiency?: string\n buildingElectricityServiceSize?: BuildingElectricityServiceSize | `${BuildingElectricityServiceSize}`\n buildingElectricityServiceLocation?: BuildingElectricityServiceLocation | `${BuildingElectricityServiceLocation}`\n buildingElectricityServicePanelSize?: number\n buildingElectricityServiceUtilityConnection?: string\n buildingElectricityServiceUpgradeHistory?: string\n buildingIntensityGhgEmissions?: number\n buildingLifecycleExpenses?: number\n buildingMaintenanceAdditionalInformation?: string\n buildingMaterials?: string\n buildingOperatingExpenses?: number\n buildingOwnership?: string\n buildingParkingAvailable?: boolean\n buildingPermitIssuedDate?: Date\n buildingPermitNumber?: number\n previousUpdates?: string\n buildingPriorityRetrofits?: string\n buildingProgramLoan?: number\n buildingProgramName?: string\n buildingProjectDescription?: string\n buildingProjectName?: string\n buildingProjectNumber?: number\n buildingProponentOrganization?: string\n buildingProponentType?: string\n buildingRentalMarketSurveyZone?: number\n buildingRetrofitFundingNeeds?: string\n buildingSafetyConcerns?: string\n buildingSiteEui?: number\n buildingSolarPotential?: number\n buildingStartDate?: Date\n buildingStructuralVulnerabilities?: string\n buildingSubsidies?: number\n buildingTotalContribution?: number\n buildingTotalGhgEmissions?: number\n buildingTotalRentableArea?: number\n buildingUnitAdditionalInformation?: string\n buildingValueOfFundingFlowed?: number\n buildingWasherAvailable?: boolean\n buildingWaterIncluded?: boolean\n buildingWaterUseIntensity?: number\n buildingZoning?: string\n featureId?: string | null\n buildingGeometry?: BuildingGeometry | null\n buildingParentSiteId?: number | null\n}\n\nexport interface DbFile {\n id: number\n name: string\n type: string\n url?: string | null\n assetId: string\n mimeType?: string | null\n extension?: string | null\n sizeBytes?: number | null\n uploadedAt: string\n description?: string | null\n tag?: string | null\n position?: Position\n /** @deprecated Use `fileTransformX`; kept until the column is dropped. */\n x?: number | null\n /** @deprecated Use `fileTransformY`. */\n y?: number | null\n /** @deprecated Use `fileTransformZ`. */\n z?: number | null\n lat?: number | null\n lng?: number | null\n elevation?: number | null\n rotation?: number | null\n /** @deprecated Use `fileRotationY`. */\n bimRotation?: number | null\n /** @deprecated Use the `fileTransform*`, `fileRotation*`, `fileScale` and `fileSourceUp` fields. */\n pointCloudTransform?: unknown\n /** @deprecated Use `fileScale`. */\n scale?: number | null\n isVisible?: boolean\n lazFileKey?: string | null\n potreeFolderKey?: string | null\n potreeMetadataFileKey?: string | null\n pointCloudUploaded?: boolean | null\n pointCloudPotreeConverted?: boolean | null\n bucket?: string | null\n fileTransformX?: number | null\n fileTransformY?: number | null\n fileTransformZ?: number | null\n fileRotationX?: number | null\n fileRotationY?: number | null\n fileRotationZ?: number | null\n fileScale?: number | null\n fileSourceUp?: SourceUpAxis | null\n fileProjectedCRS?: string | null\n sourceProj4Def?: string | null\n mapConversionEastings?: number | null\n mapConversionNorthings?: number | null\n mapConversionOrthogonalHeight?: number | null\n mapConversionXAxisAbscissa?: number | null\n mapConversionXAxisOrdinate?: number | null\n mapConversionScale?: number | null\n pointCloudProjection?: string | null\n georeferenceSource?: GeoreferenceSource | null\n datasetProvider?: DatasetProvider | null\n datasetSource?: string | null\n countrySubdivision?: string | null\n municipality?: string | null\n fileCommentId?: number | null\n fileOrganizationId: number\n attachedFilesBuildingId?: number | null\n buildingCodeComplianceBuildingId?: number | null\n environmentalComplianceBuildingId?: number | null\n occupancyCertificateBuildingId?: number | null\n permitsIssuedBuildingId?: number | null\n systemAssessmentsBuildingId?: number | null\n zoningComplianceBuildingId?: number | null\n certificationsFileBuildingId?: number | null\n energyCodeComplianceBuildingId?: number | null\n fireSafetyBuildingId?: number | null\n maintenanceRecordsBuildingId?: number | null\n proximityToServicesBuildingId?: number | null\n regionalEnergyTrendsBuildingId?: number | null\n BCABuildingId?: number | null\n contractorReportsBuildingId?: number | null\n engineeringAssessmentsBuildingId?: number | null\n airQualityReportsBuildingId?: number | null\n waterQualityReportsBuildingId?: number | null\n DSRsBuildingId?: number | null\n energyAssessmentReportsBuildingId?: number | null\n attachedFilesSiteId?: number | null\n energyCodeComplianceSiteId?: number | null\n certificationCertificatesSiteId?: number | null\n environmentalComplianceSiteId?: number | null\n maintenanceRecordsSiteId?: number | null\n fireSafetySiteId?: number | null\n fireCertSiteId?: number | null\n zoningComplianceSiteId?: number | null\n buildingPermitSiteId?: number | null\n insuranceClaimsSiteId?: number | null\n buildingPermitsIssuedSiteId?: number | null\n}\n\nexport interface Site {\n id: number\n siteName?: string\n siteAddress?: string\n siteCountrySubdivision?: string\n siteMunicipality?: string\n siteCity?: string\n sitePostalCode?: string\n siteCounty?: string\n siteWard?: string\n siteLongitude?: number\n siteLatitude?: number\n siteEnergyUsage?: SiteEnergySource | `${SiteEnergySource}`\n siteAnnualConsumption?: number\n siteEnergyDemand?: number\n siteSourceEui?: number\n siteEui?: number\n siteSolarPotential?: number\n siteRenewableEnergy?: string\n siteEnergyAdditionalInformation?: string\n siteTotalGhgEmissions?: number\n siteIntensityGhgEmissions?: number\n siteCertifications?: string\n siteWaterUseData?: number\n siteEnvironmentalAdditionalInformation?: string\n siteLifecycleExpenses?: number\n siteOperatingExpenses?: number\n siteFundingSources?: string\n siteGrants?: number\n siteSubsidies?: number\n siteProponentOrganization?: string\n siteProgramLoan?: number\n siteProponentType?: string\n siteProgramName?: string\n siteTotalContribution?: number\n siteValueOfFundingFlowed?: number\n siteFundingAdditionalInformation?: string\n siteAssessmentCondition?: SiteAssessmentConditions | `${SiteAssessmentConditions}`\n siteAssessmentDate?: Date\n siteAssessmentDescription?: string\n siteMaintenanceAdditionalInformation?: string\n siteClimateVulnerabilities?: string\n siteSafetyConcerns?: string\n siteInsuranceProvider?: string\n siteInsuranceCosts?: number\n siteLandUse?: SiteLandUse | `${SiteLandUse}`\n siteLandUseSubtype?: string\n siteTotalArea?: number\n siteTotalBuiltArea?: number\n siteTotalAvailableArea?: number\n siteYearBuilt?: Date\n siteZoning?: string\n siteOwnership?: string\n siteProviderName?: string\n siteProviderType?: string\n siteProviderWebsite?: string\n siteProviderContactName?: string\n siteProviderContactPhone?: string\n siteProviderContactEmail?: string\n siteWebsite?: string\n siteNotes?: string\n siteProjectName?: string\n siteProjectNumber?: number\n siteProjectPhase?: SiteProjectPhase | `${SiteProjectPhase}`\n siteProjectType?: SiteProjectType | `${SiteProjectType}`\n siteEstimatedStartDate?: Date\n siteEstimatedEndDate?: Date\n siteStartDate?: Date\n siteCompletedDate?: Date\n sitePriorityRetrofits?: string\n siteProjectDescription?: string\n sitePreviousUpdates?: string\n siteBuilderName?: string\n sitePermitNumber?: number\n sitePermitIssuedDate?: Date\n siteEstimatedTotalCost?: number\n siteEstimatedConstructionCost?: number\n siteRetrofitFundingNeeds?: string\n siteFederalContribution?: number\n siteAssessedValue?: number\n siteOrganizationId: number\n}\n\nexport interface OpenDataPortal {\n id: number\n name: string\n group: DatasetGroup | `${DatasetGroup}`\n portalUrl?: string\n dataManagementSystem?: DataManagementSystem | `${DataManagementSystem}`\n apiUrl?: string\n countrySubdivision?: string\n municipality?: string\n country?: string\n live?: boolean\n}\n\nexport interface Infrastructure {\n id: number\n featureId?: string\n infrastructureName?: string\n infrastructureType?: InfrastructureType | `${InfrastructureType}`\n infrastructureEmail?: string\n infrastructureCountrySubdivision?: string\n infrastructureMunicipality?: string\n infrastructureCity?: string\n infrastructureCounty?: string\n infrastructurePhoneNumber?: string\n infrastructureAddress?: string\n infrastructureStreetNumber?: string\n infrastructureStreetName?: string\n infrastructureStreetType?: string\n infrastructureStreetDirection?: string\n infrastructurePostalCode?: string\n infrastructureDescription?: string\n infrastructureDatasetId?: string\n infrastructureExternalId?: string // Mapped from ID.identifier\n infrastructureScope?: string // Mapped from ID.scope\n infrastructureProjectName?: string // Context from Part 0 Project\n infrastructureFacilityId?: string // Context from Part 0 Facility\n infrastructureState?: InfrastructureState | `${InfrastructureState}`\n infrastructureStatus?: string // Generic status string or CodeList URI\n infrastructureValidFrom?: Date\n infrastructureValidTo?: Date\n infrastructureGeometryId?: number // Reference to geometry in our Files table\n infrastructureGeometryType?: GeometryType | `${GeometryType}`\n infrastructureEPSG?: number\n infrastructureLongitude?: number\n infrastructureLatitude?: number\n infrastructureRotation?: number\n infrastructureElevation?: number\n infrastructureEasting?: number\n infrastructureNorthing?: number\n infrastructureNotes?: string\n infrastructureWebsite?: string // Coordinate Reference System\n linearMeasure?: number\n linearMeasureUom?: string // Unit of measure (e.g., \"m\", \"km\")\n linearStartValue?: number\n linearDefaultLRM?: string\n linearLRMType?: LinearReferencingType | `${LinearReferencingType}`\n linearHasStationEquation?: boolean\n linearRestartValue?: number // Value after the station equation\n linearIsAlignment?: boolean\n linearAlignmentType?: string // e.g., \"Centerline\", \"LeftRail\", \"RightCurb\"\n infrastructureMaterial?: string\n infrastructureLayerType?: string\n linearHasCrossSection?: boolean\n linearCrossSectionArea?: number\n linearCrossSectionAreaUom?: string\n linearMaxLateralOffset?: number // Furthest distance from centerline\n linearVerticalOffset?: number\n infrastructureSurfaceType?: SurfaceType | `${SurfaceType}`\n infrastructureTinId?: string // Reference to TIN geometry ID\n infrastructureSurfaceName?: string\n infrastructureSurveyDocumentId?: string\n infrastructureSurveyDate?: Date\n ifcGlobalId?: string\n ifcDomain?: IfcInfrastructureDomain | `${IfcInfrastructureDomain}`\n ifcRoadType?: IfcRoadType | `${IfcRoadType}`\n ifcLaneCount?: number\n ifcDesignSpeed?: number\n ifcRailType?: IfcRailType | `${IfcRailType}`\n ifcTrackGauge?: number\n ifcCant?: number\n ifcTrackComponentType?: IfcTrackComponentType | `${IfcTrackComponentType}`\n ifcBridgePartType?: IfcBridgePartType | `${IfcBridgePartType}`\n ifcBridgeClearance?: number\n ifcLoadRating?: number\n ifcGeotechType?: IfcGeotechType | `${IfcGeotechType}`\n ifcWaterDepth?: number\n ifcSignalType?: IfcSignalType | `${IfcSignalType}`\n ifcSensorType?: IfcSensorType | `${IfcSensorType}`\n ifcUtilityType?: IfcUtilityType | `${IfcUtilityType}`\n ifcUtilityDiameter?: number\n ifcVoltage?: number // For power lines\n ifcEarthworksType?: IfcEarthworksType | `${IfcEarthworksType}`\n ifcSlopeRatio?: number // e.g., 2:1 slope\n infrastructureParentId?: string // Recursive ID for nested parts (e.g. Bridge Span inside Bridge)\n ifcFacilityPartType?: IfcFacilityPartType | `${IfcFacilityPartType}`\n cityGmlLod?: CityGmlLod | `${CityGmlLod}`\n cityGmlFunction?: CityGmlFunction | `${CityGmlFunction}`\n cityGmlUsage?: CityGmlUsage | `${CityGmlUsage}`\n cityGmlRelativeToTerrain?: string\n cityGmlIsTrafficSpace?: boolean\n cityGmlTrafficGranularity?: string\n cityGmlVegetationType?: CityGmlVegetationType | `${CityGmlVegetationType}`\n cityGmlFurnitureType?: CityGmlFurnitureType | `${CityGmlFurnitureType}`\n cityGmlCrownDiameter?: number\n cityGmlName?: string\n cityGmlCondition?: CityGmlCondition | `${CityGmlCondition}`\n cityGmlConstructionDate?: Date\n cityGmlDemolitionDate?: Date\n cityGmlMeasuredHeight?: number\n cityGmlHeightRef?: CityGmlElevationRef | `${CityGmlElevationRef}`\n cityGmlSurfaceMaterial?: CityGmlSurfaceMaterial | `${CityGmlSurfaceMaterial}`\n cityGmlTrafficFunction?: CityGmlTrafficSurfaceFunction | `${CityGmlTrafficSurfaceFunction}`\n cityGmlIsAuxiliary?: boolean\n organizationId: number\n}"],"mappings":"AAOO,IAAK,uBAAL,kBAAKA,0BAAL;AAA4B,EAAAA,sBAAA,YAAS;AAAU,EAAAA,sBAAA,cAAW;AAAY,EAAAA,sBAAA,aAAU;AAAW,EAAAA,sBAAA,qBAAkB;AAAmB,EAAAA,sBAAA,qBAAkB;AAAmB,EAAAA,sBAAA,qBAAkB;AAAmB,EAAAA,sBAAA,qBAAkB;AAAmB,EAAAA,sBAAA,yBAAsB;AAAuB,EAAAA,sBAAA,WAAQ;AAAS,EAAAA,sBAAA,oBAAiB;AAAkB,EAAAA,sBAAA,qBAAkB;AAAmB,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AACL,IAAK,WAAL,kBAAKC,cAAL;AAAgB,EAAAA,UAAA,QAAK;AAAM,EAAAA,UAAA,QAAK;AAAM,EAAAA,UAAA,QAAK;AAAtC,SAAAA;AAAA,GAAA;","names":["BuildingOccupantType","BuildingGeometryStyle","BuildingAssessmentConditions","BuildingProjectPhase","BuildingProjectType","BuildingManagementType","BuildingEnergySource","BuildingHeatingEnergySource","BuildingCoolingEnergySource","BuildingHotWaterEnergySource","BuildingElectricityServiceSize","BuildingElectricityServiceLocation","SiteEnergySource","SiteAssessmentConditions","SiteLandUse","SiteProjectPhase","SiteProjectType","DatasetGroup","DatasetProvider","SourceUpAxis","GeoreferenceSource","DataManagementSystem","ViewerNames","SensorTypes","SensorDataFormat","InfrastructureType","InfrastructureState","LinearSide","LinearReferencingType","GeometryType","SurfaceType","IfcInfrastructureDomain","IfcRoadType","IfcRailType","IfcTrackComponentType","IfcBridgePartType","IfcGeotechType","IfcSignalType","IfcSensorType","IfcUtilityType","IfcEarthworksType","IfcFacilityPartType","CityGmlLod","CityGmlFunction","CityGmlUsage","CityGmlFurnitureType","CityGmlVegetationType","CityGmlCondition","CityGmlElevationRef","CityGmlSurfaceMaterial","CityGmlTrafficSurfaceFunction","Language"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { SearchParams, DataTypes } from './global';
|
|
2
2
|
export { DataTypes as DataTypesNames } from './global';
|
|
3
3
|
export type { BoundingBox } from './map';
|
|
4
|
-
export type { User, Role, Organization, Comment, Sensor, SensorType, Building, DbFile, Site, OpenDataPortal, Infrastructure, Permission, } from './dbTypes';
|
|
4
|
+
export type { User, Role, Organization, Comment, Sensor, SensorType, Building, BuildingAssociations, BuildingRemoval, DbFile, Site, OpenDataPortal, Infrastructure, Permission, } from './dbTypes';
|
|
5
5
|
export { ViewerNames, SensorTypes, SensorDataFormat, DatasetGroup, DatasetProvider, GeoreferenceSource, Language, SourceUpAxis, } from './dbTypes';
|
|
6
6
|
export type { Dataset, DatasetViewport, LayerGeometryType } from './datasetTypes';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,UAAU,CAAA;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACxC,YAAY,EACV,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,cAAc,EACd,cAAc,EACd,UAAU,GACX,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,YAAY,GACb,MAAM,WAAW,CAAA;AAClB,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,UAAU,CAAA;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACxC,YAAY,EACV,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,MAAM,EACN,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,MAAM,EACN,IAAI,EACJ,cAAc,EACd,cAAc,EACd,UAAU,GACX,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,YAAY,GACb,MAAM,WAAW,CAAA;AAClB,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/core/types/index.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nexport type { SearchParams, DataTypes } from './global'\nexport { DataTypes as DataTypesNames } from './global'\nexport type { BoundingBox } from './map'\nexport type {\n User,\n Role,\n Organization,\n Comment,\n Sensor,\n SensorType,\n Building,\n DbFile,\n Site,\n OpenDataPortal,\n Infrastructure,\n Permission,\n} from './dbTypes'\nexport {\n ViewerNames,\n SensorTypes,\n SensorDataFormat,\n DatasetGroup,\n DatasetProvider,\n GeoreferenceSource,\n Language,\n SourceUpAxis,\n} from './dbTypes'\nexport type { Dataset, DatasetViewport, LayerGeometryType } from './datasetTypes'\n"],"mappings":"AAIA,SAAsB,iBAAsB;
|
|
1
|
+
{"version":3,"sources":["../../../src/core/types/index.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nexport type { SearchParams, DataTypes } from './global'\nexport { DataTypes as DataTypesNames } from './global'\nexport type { BoundingBox } from './map'\nexport type {\n User,\n Role,\n Organization,\n Comment,\n Sensor,\n SensorType,\n Building,\n BuildingAssociations,\n BuildingRemoval,\n DbFile,\n Site,\n OpenDataPortal,\n Infrastructure,\n Permission,\n} from './dbTypes'\nexport {\n ViewerNames,\n SensorTypes,\n SensorDataFormat,\n DatasetGroup,\n DatasetProvider,\n GeoreferenceSource,\n Language,\n SourceUpAxis,\n} from './dbTypes'\nexport type { Dataset, DatasetViewport, LayerGeometryType } from './datasetTypes'\n"],"mappings":"AAIA,SAAsB,iBAAsB;AAkB5C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Building } from '../types/dbTypes';
|
|
2
|
+
/** The building's name, else its address; undefined when it has neither, so callers pick the fallback. */
|
|
3
|
+
export declare const buildingDisplayName: (building: Pick<Building, "buildingName" | "buildingAddress"> | undefined) => string;
|
|
4
|
+
//# sourceMappingURL=buildingDisplayName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildingDisplayName.d.ts","sourceRoot":"","sources":["../../../src/core/utils/buildingDisplayName.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEhD,0GAA0G;AAC1G,eAAO,MAAM,mBAAmB,GAAI,UAAU,IAAI,CAAC,QAAQ,EAAE,cAAc,GAAG,iBAAiB,CAAC,GAAG,SAAS,WAC1C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/core/utils/buildingDisplayName.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport type { Building } from '../types/dbTypes'\n\n/** The building's name, else its address; undefined when it has neither, so callers pick the fallback. */\nexport const buildingDisplayName = (building: Pick<Building, 'buildingName' | 'buildingAddress'> | undefined) =>\n building?.buildingName || building?.buildingAddress || undefined\n"],"mappings":"AAMO,MAAM,sBAAsB,CAAC,cAClC,qCAAU,kBAAgB,qCAAU,oBAAmB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escapeGuard.d.ts","sourceRoot":"","sources":["../../../src/core/utils/escapeGuard.ts"],"names":[],"mappings":"AAOA,wGAAwG;AACxG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAGhE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { isEditableTarget } from "./utils";
|
|
2
|
+
const OPEN_OVERLAY_SELECTOR = '[role="dialog"], [role="menu"], [data-radix-popper-content-wrapper]';
|
|
3
|
+
function shouldIgnoreEscape(event) {
|
|
4
|
+
if (event.defaultPrevented || isEditableTarget(event.target)) return true;
|
|
5
|
+
return document.querySelector(OPEN_OVERLAY_SELECTOR) !== null;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
shouldIgnoreEscape
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=escapeGuard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/core/utils/escapeGuard.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport { isEditableTarget } from './utils'\n\nconst OPEN_OVERLAY_SELECTOR = '[role=\"dialog\"], [role=\"menu\"], [data-radix-popper-content-wrapper]'\n\n/** True when a page-level Escape belongs to a text field or an open dialog, menu or popover instead. */\nexport function shouldIgnoreEscape(event: KeyboardEvent): boolean {\n if (event.defaultPrevented || isEditableTarget(event.target)) return true\n return document.querySelector(OPEN_OVERLAY_SELECTOR) !== null\n}\n"],"mappings":"AAGA,SAAS,wBAAwB;AAEjC,MAAM,wBAAwB;AAGvB,SAAS,mBAAmB,OAA+B;AAChE,MAAI,MAAM,oBAAoB,iBAAiB,MAAM,MAAM,EAAG,QAAO;AACrE,SAAO,SAAS,cAAc,qBAAqB,MAAM;AAC3D;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const WGS84 = "EPSG:4326";
|
|
2
|
+
export interface CrsOption {
|
|
3
|
+
code: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
/** Registers the Canadian projected systems proj4 does not ship, so their EPSG codes resolve. */
|
|
7
|
+
export declare function registerBundledCrs(): void;
|
|
8
|
+
export declare const CRS_OPTIONS: CrsOption[];
|
|
9
|
+
//# sourceMappingURL=crsDefinitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crsDefinitions.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/geo/crsDefinitions.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,cAAc,CAAA;AAEhC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAkCD,iGAAiG;AACjG,wBAAgB,kBAAkB,IAAI,IAAI,CAIzC;AAID,eAAO,MAAM,WAAW,EAAE,SAAS,EAIlC,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import proj4 from "proj4";
|
|
2
|
+
const WGS84 = "EPSG:4326";
|
|
3
|
+
const UTM_ZONES = Array.from({ length: 16 }, (_, index) => index + 7);
|
|
4
|
+
const CSRS_UTM_CODES = {
|
|
5
|
+
7: 3154,
|
|
6
|
+
8: 3155,
|
|
7
|
+
9: 3156,
|
|
8
|
+
10: 3157,
|
|
9
|
+
11: 2955,
|
|
10
|
+
12: 2956,
|
|
11
|
+
13: 2957,
|
|
12
|
+
14: 3158,
|
|
13
|
+
15: 3159,
|
|
14
|
+
16: 3160,
|
|
15
|
+
17: 2958,
|
|
16
|
+
18: 2959,
|
|
17
|
+
19: 2960,
|
|
18
|
+
20: 2961,
|
|
19
|
+
21: 2962
|
|
20
|
+
};
|
|
21
|
+
const CSRS_MTM_CODES = { 3: 2945, 4: 2946, 5: 2947, 6: 2948, 7: 2949, 8: 2950, 9: 2951, 10: 2952 };
|
|
22
|
+
const CSRS_ELLIPSOID = "+ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs";
|
|
23
|
+
const mtmCentralMeridian = (zone) => -(49.5 + 3 * zone);
|
|
24
|
+
function buildDefinitions() {
|
|
25
|
+
const nad83Utm = UTM_ZONES.map((zone) => ({
|
|
26
|
+
code: `EPSG:${26900 + zone}`,
|
|
27
|
+
label: `NAD83 / UTM zone ${zone}N`,
|
|
28
|
+
def: `+proj=utm +zone=${zone} +datum=NAD83 +units=m +no_defs`
|
|
29
|
+
}));
|
|
30
|
+
const csrsUtm = Object.entries(CSRS_UTM_CODES).map(([zone, epsg]) => ({
|
|
31
|
+
code: `EPSG:${epsg}`,
|
|
32
|
+
label: `NAD83(CSRS) / UTM zone ${zone}N`,
|
|
33
|
+
def: `+proj=utm +zone=${zone} ${CSRS_ELLIPSOID}`
|
|
34
|
+
}));
|
|
35
|
+
const csrsMtm = Object.entries(CSRS_MTM_CODES).map(([zone, epsg]) => ({
|
|
36
|
+
code: `EPSG:${epsg}`,
|
|
37
|
+
label: `NAD83(CSRS) / MTM zone ${zone}`,
|
|
38
|
+
def: `+proj=tmerc +lat_0=0 +lon_0=${mtmCentralMeridian(Number(zone))} +k=0.9999 +x_0=304800 +y_0=0 ${CSRS_ELLIPSOID}`
|
|
39
|
+
}));
|
|
40
|
+
return [...nad83Utm, ...csrsUtm, ...csrsMtm];
|
|
41
|
+
}
|
|
42
|
+
const BUNDLED = buildDefinitions();
|
|
43
|
+
let registered = false;
|
|
44
|
+
function registerBundledCrs() {
|
|
45
|
+
if (registered) return;
|
|
46
|
+
for (const { code, def } of BUNDLED) proj4.defs(code, def);
|
|
47
|
+
registered = true;
|
|
48
|
+
}
|
|
49
|
+
const WGS84_UTM_OPTIONS = UTM_ZONES.map((zone) => ({ code: `EPSG:${32600 + zone}`, label: `WGS 84 / UTM zone ${zone}N` }));
|
|
50
|
+
const CRS_OPTIONS = [
|
|
51
|
+
{ code: WGS84, label: "WGS 84 (latitude / longitude)" },
|
|
52
|
+
...BUNDLED.map(({ code, label }) => ({ code, label })),
|
|
53
|
+
...WGS84_UTM_OPTIONS
|
|
54
|
+
];
|
|
55
|
+
export {
|
|
56
|
+
CRS_OPTIONS,
|
|
57
|
+
WGS84,
|
|
58
|
+
registerBundledCrs
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=crsDefinitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/core/utils/geo/crsDefinitions.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport proj4 from 'proj4'\n\nexport const WGS84 = 'EPSG:4326'\n\nexport interface CrsOption {\n code: string\n label: string\n}\n\nconst UTM_ZONES = Array.from({ length: 16 }, (_, index) => index + 7)\nconst CSRS_UTM_CODES: Record<number, number> = {\n 7: 3154, 8: 3155, 9: 3156, 10: 3157, 11: 2955, 12: 2956, 13: 2957, 14: 3158,\n 15: 3159, 16: 3160, 17: 2958, 18: 2959, 19: 2960, 20: 2961, 21: 2962,\n}\nconst CSRS_MTM_CODES: Record<number, number> = { 3: 2945, 4: 2946, 5: 2947, 6: 2948, 7: 2949, 8: 2950, 9: 2951, 10: 2952 }\n\nconst CSRS_ELLIPSOID = '+ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs'\nconst mtmCentralMeridian = (zone: number) => -(49.5 + 3 * zone)\n\nfunction buildDefinitions(): Array<CrsOption & { def: string }> {\n const nad83Utm = UTM_ZONES.map(zone => ({\n code: `EPSG:${26900 + zone}`,\n label: `NAD83 / UTM zone ${zone}N`,\n def: `+proj=utm +zone=${zone} +datum=NAD83 +units=m +no_defs`,\n }))\n const csrsUtm = Object.entries(CSRS_UTM_CODES).map(([zone, epsg]) => ({\n code: `EPSG:${epsg}`,\n label: `NAD83(CSRS) / UTM zone ${zone}N`,\n def: `+proj=utm +zone=${zone} ${CSRS_ELLIPSOID}`,\n }))\n const csrsMtm = Object.entries(CSRS_MTM_CODES).map(([zone, epsg]) => ({\n code: `EPSG:${epsg}`,\n label: `NAD83(CSRS) / MTM zone ${zone}`,\n def: `+proj=tmerc +lat_0=0 +lon_0=${mtmCentralMeridian(Number(zone))} +k=0.9999 +x_0=304800 +y_0=0 ${CSRS_ELLIPSOID}`,\n }))\n return [...nad83Utm, ...csrsUtm, ...csrsMtm]\n}\n\nconst BUNDLED = buildDefinitions()\nlet registered = false\n\n/** Registers the Canadian projected systems proj4 does not ship, so their EPSG codes resolve. */\nexport function registerBundledCrs(): void {\n if (registered) return\n for (const { code, def } of BUNDLED) proj4.defs(code, def)\n registered = true\n}\n\nconst WGS84_UTM_OPTIONS: CrsOption[] = UTM_ZONES.map(zone => ({ code: `EPSG:${32600 + zone}`, label: `WGS 84 / UTM zone ${zone}N` }))\n\nexport const CRS_OPTIONS: CrsOption[] = [\n { code: WGS84, label: 'WGS 84 (latitude / longitude)' },\n ...BUNDLED.map(({ code, label }) => ({ code, label })),\n ...WGS84_UTM_OPTIONS,\n]\n"],"mappings":"AAGA,OAAO,WAAW;AAEX,MAAM,QAAQ;AAOrB,MAAM,YAAY,MAAM,KAAK,EAAE,QAAQ,GAAG,GAAG,CAAC,GAAG,UAAU,QAAQ,CAAC;AACpE,MAAM,iBAAyC;AAAA,EAC7C,GAAG;AAAA,EAAM,GAAG;AAAA,EAAM,GAAG;AAAA,EAAM,IAAI;AAAA,EAAM,IAAI;AAAA,EAAM,IAAI;AAAA,EAAM,IAAI;AAAA,EAAM,IAAI;AAAA,EACvE,IAAI;AAAA,EAAM,IAAI;AAAA,EAAM,IAAI;AAAA,EAAM,IAAI;AAAA,EAAM,IAAI;AAAA,EAAM,IAAI;AAAA,EAAM,IAAI;AAClE;AACA,MAAM,iBAAyC,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI,KAAK;AAEzH,MAAM,iBAAiB;AACvB,MAAM,qBAAqB,CAAC,SAAiB,EAAE,OAAO,IAAI;AAE1D,SAAS,mBAAuD;AAC9D,QAAM,WAAW,UAAU,IAAI,WAAS;AAAA,IACtC,MAAM,QAAQ,QAAQ,IAAI;AAAA,IAC1B,OAAO,oBAAoB,IAAI;AAAA,IAC/B,KAAK,mBAAmB,IAAI;AAAA,EAC9B,EAAE;AACF,QAAM,UAAU,OAAO,QAAQ,cAAc,EAAE,IAAI,CAAC,CAAC,MAAM,IAAI,OAAO;AAAA,IACpE,MAAM,QAAQ,IAAI;AAAA,IAClB,OAAO,0BAA0B,IAAI;AAAA,IACrC,KAAK,mBAAmB,IAAI,IAAI,cAAc;AAAA,EAChD,EAAE;AACF,QAAM,UAAU,OAAO,QAAQ,cAAc,EAAE,IAAI,CAAC,CAAC,MAAM,IAAI,OAAO;AAAA,IACpE,MAAM,QAAQ,IAAI;AAAA,IAClB,OAAO,0BAA0B,IAAI;AAAA,IACrC,KAAK,+BAA+B,mBAAmB,OAAO,IAAI,CAAC,CAAC,iCAAiC,cAAc;AAAA,EACrH,EAAE;AACF,SAAO,CAAC,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO;AAC7C;AAEA,MAAM,UAAU,iBAAiB;AACjC,IAAI,aAAa;AAGV,SAAS,qBAA2B;AACzC,MAAI,WAAY;AAChB,aAAW,EAAE,MAAM,IAAI,KAAK,QAAS,OAAM,KAAK,MAAM,GAAG;AACzD,eAAa;AACf;AAEA,MAAM,oBAAiC,UAAU,IAAI,WAAS,EAAE,MAAM,QAAQ,QAAQ,IAAI,IAAI,OAAO,qBAAqB,IAAI,IAAI,EAAE;AAE7H,MAAM,cAA2B;AAAA,EACtC,EAAE,MAAM,OAAO,OAAO,gCAAgC;AAAA,EACtD,GAAG,QAAQ,IAAI,CAAC,EAAE,MAAM,MAAM,OAAO,EAAE,MAAM,MAAM,EAAE;AAAA,EACrD,GAAG;AACL;","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DbFile } from '../../types/dbTypes';
|
|
2
|
+
export type GeoreferenceColumns = Pick<DbFile, 'fileProjectedCRS' | 'sourceProj4Def' | 'mapConversionEastings' | 'mapConversionNorthings' | 'mapConversionOrthogonalHeight' | 'mapConversionXAxisAbscissa' | 'mapConversionXAxisOrdinate' | 'mapConversionScale' | 'georeferenceSource'>;
|
|
3
|
+
/** Where the source puts the file on the map; the height is kept as a reference, never applied. */
|
|
4
|
+
export interface SourcePlacement {
|
|
5
|
+
lng: number;
|
|
6
|
+
lat: number;
|
|
7
|
+
rotation: number;
|
|
8
|
+
sourceHeight: number | null;
|
|
9
|
+
}
|
|
10
|
+
export interface ManualGeoreferenceInput {
|
|
11
|
+
crs: string;
|
|
12
|
+
proj4Def?: string;
|
|
13
|
+
easting: number;
|
|
14
|
+
northing: number;
|
|
15
|
+
height?: number | null;
|
|
16
|
+
rotation?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare function hasGeoreference(file: GeoreferenceColumns): boolean;
|
|
19
|
+
export declare function georeferenceToPlacement(file: GeoreferenceColumns): SourcePlacement | null;
|
|
20
|
+
export declare function isOverridden(file: GeoreferenceColumns & Pick<DbFile, 'lat' | 'lng' | 'rotation'>): boolean;
|
|
21
|
+
/** Stored in the same columns an IfcMapConversion fills; `rotation` is a map bearing in degrees. */
|
|
22
|
+
export declare function manualGeoreference({ crs, proj4Def, easting, northing, height, rotation }: ManualGeoreferenceInput): GeoreferenceColumns;
|
|
23
|
+
export declare function sourcePlacementPatch(file: GeoreferenceColumns): Pick<DbFile, 'lat' | 'lng' | 'rotation'> | null;
|
|
24
|
+
//# sourceMappingURL=georeference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"georeference.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/geo/georeference.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,MAAM,EACzC,kBAAkB,GAClB,gBAAgB,GAChB,uBAAuB,GACvB,wBAAwB,GACxB,+BAA+B,GAC/B,4BAA4B,GAC5B,4BAA4B,GAC5B,oBAAoB,GACpB,oBAAoB,CAAC,CAAA;AAEzB,mGAAmG;AACnG,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAeD,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAElE;AA0BD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,mBAAmB,GAAG,eAAe,GAAG,IAAI,CAUzF;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,UAAU,CAAC,GAAG,OAAO,CAO1G;AAED,oGAAoG;AACpG,wBAAgB,kBAAkB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAY,EAAE,EAAE,uBAAuB,GAAG,mBAAmB,CAgB3I;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,UAAU,CAAC,GAAG,IAAI,CAG/G"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import proj4 from "proj4";
|
|
2
|
+
import { GeoreferenceSource } from "../../types/dbTypes";
|
|
3
|
+
import { registerBundledCrs, WGS84 } from "./crsDefinitions";
|
|
4
|
+
import { UnknownCrsError } from "./reprojectGeometry";
|
|
5
|
+
const NORTH_PROBE_DEGREES = 1e-4;
|
|
6
|
+
const POSITION_TOLERANCE_DEGREES = 1e-7;
|
|
7
|
+
const ROTATION_TOLERANCE_DEGREES = 0.01;
|
|
8
|
+
const RIGHT_ANGLE = Math.PI / 2;
|
|
9
|
+
const toDegrees = (radians) => radians * 180 / Math.PI;
|
|
10
|
+
const toRadians = (degrees) => degrees * Math.PI / 180;
|
|
11
|
+
const normalizeDegrees = (degrees) => (degrees % 360 + 360) % 360;
|
|
12
|
+
function sourceCrsOf(file) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
return ((_a = file.sourceProj4Def) == null ? void 0 : _a.trim()) || ((_b = file.fileProjectedCRS) == null ? void 0 : _b.trim()) || WGS84;
|
|
15
|
+
}
|
|
16
|
+
function hasGeoreference(file) {
|
|
17
|
+
return file.mapConversionEastings != null && file.mapConversionNorthings != null;
|
|
18
|
+
}
|
|
19
|
+
function converterFor(crs) {
|
|
20
|
+
registerBundledCrs();
|
|
21
|
+
try {
|
|
22
|
+
return proj4(crs, WGS84);
|
|
23
|
+
} catch (e) {
|
|
24
|
+
throw new UnknownCrsError(`Unknown coordinate system "${crs}"`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function trueNorthGridAngle(converter, easting, northing) {
|
|
28
|
+
const [lng, lat] = converter.forward([easting, northing]);
|
|
29
|
+
const [x, y] = converter.inverse([lng, lat + NORTH_PROBE_DEGREES]);
|
|
30
|
+
return Math.atan2(y - northing, x - easting);
|
|
31
|
+
}
|
|
32
|
+
function projectToLonLat(crs, easting, northing) {
|
|
33
|
+
if (crs === WGS84) return { lng: easting, lat: northing, northAngle: RIGHT_ANGLE };
|
|
34
|
+
const converter = converterFor(crs);
|
|
35
|
+
const [lng, lat] = converter.forward([easting, northing]);
|
|
36
|
+
return { lng, lat, northAngle: trueNorthGridAngle(converter, easting, northing) };
|
|
37
|
+
}
|
|
38
|
+
function georeferenceToPlacement(file) {
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
if (!hasGeoreference(file)) return null;
|
|
41
|
+
const { lng, lat, northAngle } = projectToLonLat(
|
|
42
|
+
sourceCrsOf(file),
|
|
43
|
+
file.mapConversionEastings,
|
|
44
|
+
file.mapConversionNorthings
|
|
45
|
+
);
|
|
46
|
+
const xAxisAngle = Math.atan2((_a = file.mapConversionXAxisOrdinate) != null ? _a : 0, (_b = file.mapConversionXAxisAbscissa) != null ? _b : 1);
|
|
47
|
+
const rotation = normalizeDegrees(toDegrees(northAngle - xAxisAngle - RIGHT_ANGLE));
|
|
48
|
+
return { lng, lat, rotation, sourceHeight: (_c = file.mapConversionOrthogonalHeight) != null ? _c : null };
|
|
49
|
+
}
|
|
50
|
+
function isOverridden(file) {
|
|
51
|
+
var _a;
|
|
52
|
+
const source = georeferenceToPlacement(file);
|
|
53
|
+
if (!source || file.lat == null || file.lng == null) return false;
|
|
54
|
+
const rotationDelta = Math.abs(normalizeDegrees(((_a = file.rotation) != null ? _a : 0) - source.rotation + 180) - 180);
|
|
55
|
+
return Math.abs(file.lat - source.lat) > POSITION_TOLERANCE_DEGREES || Math.abs(file.lng - source.lng) > POSITION_TOLERANCE_DEGREES || rotationDelta > ROTATION_TOLERANCE_DEGREES;
|
|
56
|
+
}
|
|
57
|
+
function manualGeoreference({ crs, proj4Def, easting, northing, height, rotation = 0 }) {
|
|
58
|
+
const sourceProj4Def = (proj4Def == null ? void 0 : proj4Def.trim()) || null;
|
|
59
|
+
const fileProjectedCRS = crs.trim() || null;
|
|
60
|
+
const { northAngle } = projectToLonLat(sourceCrsOf({ fileProjectedCRS, sourceProj4Def }), easting, northing);
|
|
61
|
+
const xAxisAngle = northAngle - RIGHT_ANGLE - toRadians(rotation);
|
|
62
|
+
return {
|
|
63
|
+
fileProjectedCRS,
|
|
64
|
+
sourceProj4Def,
|
|
65
|
+
mapConversionEastings: easting,
|
|
66
|
+
mapConversionNorthings: northing,
|
|
67
|
+
mapConversionOrthogonalHeight: height != null ? height : null,
|
|
68
|
+
mapConversionXAxisAbscissa: Math.cos(xAxisAngle),
|
|
69
|
+
mapConversionXAxisOrdinate: Math.sin(xAxisAngle),
|
|
70
|
+
mapConversionScale: 1,
|
|
71
|
+
georeferenceSource: GeoreferenceSource.manual
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function sourcePlacementPatch(file) {
|
|
75
|
+
const source = georeferenceToPlacement(file);
|
|
76
|
+
return source ? { lat: source.lat, lng: source.lng, rotation: source.rotation } : null;
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
georeferenceToPlacement,
|
|
80
|
+
hasGeoreference,
|
|
81
|
+
isOverridden,
|
|
82
|
+
manualGeoreference,
|
|
83
|
+
sourcePlacementPatch
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=georeference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/core/utils/geo/georeference.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport proj4 from 'proj4'\n\nimport { GeoreferenceSource } from '../../types/dbTypes'\n\nimport { registerBundledCrs, WGS84 } from './crsDefinitions'\nimport { UnknownCrsError } from './reprojectGeometry'\n\nimport type { DbFile } from '../../types/dbTypes'\n\nexport type GeoreferenceColumns = Pick<DbFile,\n | 'fileProjectedCRS'\n | 'sourceProj4Def'\n | 'mapConversionEastings'\n | 'mapConversionNorthings'\n | 'mapConversionOrthogonalHeight'\n | 'mapConversionXAxisAbscissa'\n | 'mapConversionXAxisOrdinate'\n | 'mapConversionScale'\n | 'georeferenceSource'>\n\n/** Where the source puts the file on the map; the height is kept as a reference, never applied. */\nexport interface SourcePlacement {\n lng: number\n lat: number\n rotation: number\n sourceHeight: number | null\n}\n\nexport interface ManualGeoreferenceInput {\n crs: string\n proj4Def?: string\n easting: number\n northing: number\n height?: number | null\n rotation?: number\n}\n\nconst NORTH_PROBE_DEGREES = 1e-4\nconst POSITION_TOLERANCE_DEGREES = 1e-7\nconst ROTATION_TOLERANCE_DEGREES = 0.01\nconst RIGHT_ANGLE = Math.PI / 2\n\nconst toDegrees = (radians: number) => radians * 180 / Math.PI\nconst toRadians = (degrees: number) => degrees * Math.PI / 180\nconst normalizeDegrees = (degrees: number) => ((degrees % 360) + 360) % 360\n\nfunction sourceCrsOf(file: GeoreferenceColumns): string {\n return file.sourceProj4Def?.trim() || file.fileProjectedCRS?.trim() || WGS84\n}\n\nexport function hasGeoreference(file: GeoreferenceColumns): boolean {\n return file.mapConversionEastings != null && file.mapConversionNorthings != null\n}\n\nfunction converterFor(crs: string): proj4.Converter {\n registerBundledCrs()\n try {\n return proj4(crs, WGS84)\n }\n catch {\n throw new UnknownCrsError(`Unknown coordinate system \"${crs}\"`)\n }\n}\n\n// True north's angle CCW from grid east; it drifts from 90° away from the projection's central meridian.\nfunction trueNorthGridAngle(converter: proj4.Converter, easting: number, northing: number): number {\n const [lng, lat] = converter.forward([easting, northing])\n const [x, y] = converter.inverse([lng, lat + NORTH_PROBE_DEGREES])\n return Math.atan2(y - northing, x - easting)\n}\n\nfunction projectToLonLat(crs: string, easting: number, northing: number) {\n if (crs === WGS84) return { lng: easting, lat: northing, northAngle: RIGHT_ANGLE }\n const converter = converterFor(crs)\n const [lng, lat] = converter.forward([easting, northing])\n return { lng, lat, northAngle: trueNorthGridAngle(converter, easting, northing) }\n}\n\nexport function georeferenceToPlacement(file: GeoreferenceColumns): SourcePlacement | null {\n if (!hasGeoreference(file)) return null\n const { lng, lat, northAngle } = projectToLonLat(\n sourceCrsOf(file),\n file.mapConversionEastings as number,\n file.mapConversionNorthings as number,\n )\n const xAxisAngle = Math.atan2(file.mapConversionXAxisOrdinate ?? 0, file.mapConversionXAxisAbscissa ?? 1)\n const rotation = normalizeDegrees(toDegrees(northAngle - xAxisAngle - RIGHT_ANGLE))\n return { lng, lat, rotation, sourceHeight: file.mapConversionOrthogonalHeight ?? null }\n}\n\nexport function isOverridden(file: GeoreferenceColumns & Pick<DbFile, 'lat' | 'lng' | 'rotation'>): boolean {\n const source = georeferenceToPlacement(file)\n if (!source || file.lat == null || file.lng == null) return false\n const rotationDelta = Math.abs(normalizeDegrees((file.rotation ?? 0) - source.rotation + 180) - 180)\n return Math.abs(file.lat - source.lat) > POSITION_TOLERANCE_DEGREES\n || Math.abs(file.lng - source.lng) > POSITION_TOLERANCE_DEGREES\n || rotationDelta > ROTATION_TOLERANCE_DEGREES\n}\n\n/** Stored in the same columns an IfcMapConversion fills; `rotation` is a map bearing in degrees. */\nexport function manualGeoreference({ crs, proj4Def, easting, northing, height, rotation = 0 }: ManualGeoreferenceInput): GeoreferenceColumns {\n const sourceProj4Def = proj4Def?.trim() || null\n const fileProjectedCRS = crs.trim() || null\n const { northAngle } = projectToLonLat(sourceCrsOf({ fileProjectedCRS, sourceProj4Def }), easting, northing)\n const xAxisAngle = northAngle - RIGHT_ANGLE - toRadians(rotation)\n return {\n fileProjectedCRS,\n sourceProj4Def,\n mapConversionEastings: easting,\n mapConversionNorthings: northing,\n mapConversionOrthogonalHeight: height ?? null,\n mapConversionXAxisAbscissa: Math.cos(xAxisAngle),\n mapConversionXAxisOrdinate: Math.sin(xAxisAngle),\n mapConversionScale: 1,\n georeferenceSource: GeoreferenceSource.manual,\n }\n}\n\nexport function sourcePlacementPatch(file: GeoreferenceColumns): Pick<DbFile, 'lat' | 'lng' | 'rotation'> | null {\n const source = georeferenceToPlacement(file)\n return source ? { lat: source.lat, lng: source.lng, rotation: source.rotation } : null\n}\n"],"mappings":"AAGA,OAAO,WAAW;AAElB,SAAS,0BAA0B;AAEnC,SAAS,oBAAoB,aAAa;AAC1C,SAAS,uBAAuB;AAgChC,MAAM,sBAAsB;AAC5B,MAAM,6BAA6B;AACnC,MAAM,6BAA6B;AACnC,MAAM,cAAc,KAAK,KAAK;AAE9B,MAAM,YAAY,CAAC,YAAoB,UAAU,MAAM,KAAK;AAC5D,MAAM,YAAY,CAAC,YAAoB,UAAU,KAAK,KAAK;AAC3D,MAAM,mBAAmB,CAAC,aAAsB,UAAU,MAAO,OAAO;AAExE,SAAS,YAAY,MAAmC;AAjDxD;AAkDE,WAAO,UAAK,mBAAL,mBAAqB,aAAU,UAAK,qBAAL,mBAAuB,WAAU;AACzE;AAEO,SAAS,gBAAgB,MAAoC;AA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IAAI;AAC3C,MAAI,CAAC,UAAU,KAAK,OAAO,QAAQ,KAAK,OAAO,KAAM,QAAO;AAC5D,QAAM,gBAAgB,KAAK,IAAI,mBAAkB,UAAK,aAAL,YAAiB,KAAK,OAAO,WAAW,GAAG,IAAI,GAAG;AACnG,SAAO,KAAK,IAAI,KAAK,MAAM,OAAO,GAAG,IAAI,8BACpC,KAAK,IAAI,KAAK,MAAM,OAAO,GAAG,IAAI,8BAClC,gBAAgB;AACvB;AAGO,SAAS,mBAAmB,EAAE,KAAK,UAAU,SAAS,UAAU,QAAQ,WAAW,EAAE,GAAiD;AAC3I,QAAM,kBAAiB,qCAAU,WAAU;AAC3C,QAAM,mBAAmB,IAAI,KAAK,KAAK;AACvC,QAAM,EAAE,WAAW,IAAI,gBAAgB,YAAY,EAAE,kBAAkB,eAAe,CAAC,GAAG,SAAS,QAAQ;AAC3G,QAAM,aAAa,aAAa,cAAc,UAAU,QAAQ;AAChE,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,uBAAuB;AAAA,IACvB,wBAAwB;AAAA,IACxB,+BAA+B,0BAAU;AAAA,IACzC,4BAA4B,KAAK,IAAI,UAAU;AAAA,IAC/C,4BAA4B,KAAK,IAAI,UAAU;AAAA,IAC/C,oBAAoB;AAAA,IACpB,oBAAoB,mBAAmB;AAAA,EACzC;AACF;AAEO,SAAS,qBAAqB,MAA4E;AAC/G,QAAM,SAAS,wBAAwB,IAAI;AAC3C,SAAO,SAAS,EAAE,KAAK,OAAO,KAAK,KAAK,OAAO,KAAK,UAAU,OAAO,SAAS,IAAI;AACpF;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reprojectGeometry.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/geo/reprojectGeometry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reprojectGeometry.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/geo/reprojectGeometry.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAGvC,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,QAAQ,EAAE,QAAQ,KAAK,QAAQ,CAAA;AAExD,qBAAa,eAAgB,SAAQ,KAAK;CAAG;AAM7C,8HAA8H;AAC9H,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,SAAS,GAAG,SAAS,CAUzF;AAkBD,iHAAiH;AACjH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,cAAc,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,CAAC,GAAG,IAAI,CAGrG"}
|
|
@@ -18,9 +18,9 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import proj4 from "proj4";
|
|
21
|
+
import { WGS84 as LON_LAT } from "./crsDefinitions";
|
|
21
22
|
class UnknownCrsError extends Error {
|
|
22
23
|
}
|
|
23
|
-
const LON_LAT = "EPSG:4326";
|
|
24
24
|
function roundTo6(value) {
|
|
25
25
|
return Math.round(value * 1e6) / 1e6;
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/core/utils/geo/reprojectGeometry.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport proj4 from 'proj4'\n\nimport type { SimpleGeometry } from './wktToGeometry'\nimport type { Position } from 'geojson'\nimport type { Converter } from 'proj4'\n\nexport interface SourceCrs {\n sourceCrs?: string\n sourceProj4Def?: string\n}\n\nexport type Projector = (position: Position) => Position\n\nexport class UnknownCrsError extends Error {}\n\
|
|
1
|
+
{"version":3,"sources":["../../../../src/core/utils/geo/reprojectGeometry.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport proj4 from 'proj4'\n\nimport { WGS84 as LON_LAT } from './crsDefinitions'\n\nimport type { SimpleGeometry } from './wktToGeometry'\nimport type { Position } from 'geojson'\nimport type { Converter } from 'proj4'\n\nexport interface SourceCrs {\n sourceCrs?: string\n sourceProj4Def?: string\n}\n\nexport type Projector = (position: Position) => Position\n\nexport class UnknownCrsError extends Error {}\n\nfunction roundTo6(value: number): number {\n return Math.round(value * 1e6) / 1e6\n}\n\n/** Builds a projector to lon/lat; `sourceProj4Def` wins over `sourceCrs`, and neither means the data is already EPSG:4326. */\nexport function createLonLatProjector({ sourceCrs, sourceProj4Def }: SourceCrs): Projector {\n const source = sourceProj4Def?.trim() || sourceCrs?.trim() || LON_LAT\n let converter: Converter\n try {\n converter = proj4(source, LON_LAT)\n }\n catch {\n throw new UnknownCrsError(`Unknown coordinate system \"${source}\"`)\n }\n return ([x, y]) => converter.forward([x, y]).map(roundTo6)\n}\n\nfunction isPosition(value: unknown[]): value is Position {\n return typeof value[0] === 'number'\n}\n\nfunction mapPositions(value: unknown[], project: Projector): unknown[] {\n return isPosition(value) ? project(value) : value.map(child => mapPositions(child as unknown[], project))\n}\n\nfunction isLonLat([lon, lat]: Position): boolean {\n return Number.isFinite(lon) && Number.isFinite(lat) && Math.abs(lon) <= 180 && Math.abs(lat) <= 90\n}\n\nfunction allPositions(value: unknown[]): Position[] {\n return isPosition(value) ? [value] : value.flatMap(child => allPositions(child as unknown[]))\n}\n\n/** Reprojects a geometry, or returns null when any position lands outside lon/lat range (a wrong source CRS). */\nexport function reprojectGeometry<G extends SimpleGeometry>(geometry: G, project: Projector): G | null {\n const coordinates = mapPositions(geometry.coordinates as unknown[], project)\n return allPositions(coordinates).every(isLonLat) ? { ...geometry, coordinates } as G : null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React from 'react';
|
|
2
|
-
import type { CompareItem } from '../../../store';
|
|
3
|
-
import type { Building, Site, User } from '../../../types/dbTypes';
|
|
4
|
-
type HeaderButtonsProps = {
|
|
5
|
-
headerTitle: string;
|
|
6
|
-
currentViewer: string;
|
|
7
|
-
compareItems: CompareItem[];
|
|
8
|
-
setCompareItems?: React.Dispatch<React.SetStateAction<CompareItem[]>>;
|
|
9
|
-
comparing: boolean;
|
|
10
|
-
setComparing: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
|
-
newItemName: string;
|
|
12
|
-
setNewItemName: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
-
filteredData?: Array<Building | Site>;
|
|
14
|
-
users?: User[];
|
|
15
|
-
geocodeEarthApiKey?: string;
|
|
16
|
-
geocoderUrl?: string;
|
|
17
|
-
};
|
|
18
|
-
export default function HeaderButtons({ headerTitle, currentViewer, compareItems, setCompareItems, comparing, setComparing, newItemName, setNewItemName, filteredData, users, geocodeEarthApiKey, geocoderUrl, }: HeaderButtonsProps): React.JSX.Element;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=HeaderButtons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderButtons.d.ts","sourceRoot":"","sources":["../../../../../src/core/components/viewers/Data/HeaderButtons.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAqB9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AASlE,KAAK,kBAAkB,GAAG;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA;IACrE,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IAC3D,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;IAC5D,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAA;IACrC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,WAAW,EACX,aAAa,EACb,YAAY,EACZ,eAAe,EACf,SAAS,EACT,YAAY,EACZ,WAAW,EACX,cAAc,EACd,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,WAAW,GACZ,EAAE,kBAAkB,qBAuOpB"}
|