@collabdt/core 0.11.2 → 0.12.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/ui/FilesManager/src/FileItemComponent.js.map +1 -1
- package/dist/core/components/ui/uploadFile.d.ts +3 -2
- package/dist/core/components/ui/uploadFile.d.ts.map +1 -1
- package/dist/core/components/ui/uploadFile.js +8 -7
- package/dist/core/components/ui/uploadFile.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/src/usePlaceableFileRows.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/usePlaceableFileRows.js +12 -13
- package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/usePlaceableFileRows.js.map +1 -1
- package/dist/core/components/viewers/bim/src/Splats/splatPlacementStore.d.ts +3 -3
- package/dist/core/components/viewers/bim/src/Splats/splatPlacementStore.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/Splats/splatPlacementStore.js +2 -18
- package/dist/core/components/viewers/bim/src/Splats/splatPlacementStore.js.map +1 -1
- package/dist/core/components/viewers/bim/src/lib/applyModelPlacement.d.ts +1 -1
- package/dist/core/components/viewers/bim/src/lib/applyModelPlacement.d.ts.map +1 -1
- package/dist/core/components/viewers/bim/src/lib/applyModelPlacement.js +2 -2
- package/dist/core/components/viewers/bim/src/lib/applyModelPlacement.js.map +1 -1
- package/dist/core/components/viewers/bim/src/lib/useViewerLocation.d.ts +1 -1
- package/dist/core/components/viewers/bim/src/lib/useViewerLocation.js.map +1 -1
- package/dist/core/components/viewers/map/datasets/src/minioDatasets.d.ts.map +1 -1
- package/dist/core/components/viewers/map/datasets/src/minioDatasets.js +16 -8
- package/dist/core/components/viewers/map/datasets/src/minioDatasets.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/FileModelLayer/FileModelLayer.js +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/FileModelLayer/FileModelLayer.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/utils/CustomModelLayer.js +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/utils/CustomModelLayer.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.js +12 -23
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.js.map +1 -1
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/useDatasetFeatures.d.ts +23 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/useDatasetFeatures.d.ts.map +1 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/useDatasetFeatures.js +67 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/useDatasetFeatures.js.map +1 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/useViewportDatasetToast.d.ts +4 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/useViewportDatasetToast.d.ts.map +1 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/useViewportDatasetToast.js +24 -0
- package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/useViewportDatasetToast.js.map +1 -0
- package/dist/core/components/viewers/map/src/Placement/MapPlacementHost.js +1 -1
- package/dist/core/components/viewers/map/src/Placement/MapPlacementHost.js.map +1 -1
- package/dist/core/components/viewers/map/src/Placement/mapPlacementGeo.d.ts +1 -1
- package/dist/core/components/viewers/map/src/Placement/mapPlacementGeo.d.ts.map +1 -1
- package/dist/core/components/viewers/map/src/Placement/mapPlacementGeo.js +2 -2
- package/dist/core/components/viewers/map/src/Placement/mapPlacementGeo.js.map +1 -1
- package/dist/core/components/viewers/map/src/Placement/mapPlacementTarget.js +1 -1
- package/dist/core/components/viewers/map/src/Placement/mapPlacementTarget.js.map +1 -1
- package/dist/core/components/viewers/map/src/Placement/useMapPlacementTarget.js +1 -1
- package/dist/core/components/viewers/map/src/Placement/useMapPlacementTarget.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 +3 -26
- package/dist/core/components/viewers/shared/intake/useFileIntake.js.map +1 -1
- package/dist/core/components/viewers/shared/placement/fileTransform.d.ts +9 -0
- package/dist/core/components/viewers/shared/placement/fileTransform.d.ts.map +1 -0
- package/dist/core/components/viewers/shared/placement/fileTransform.js +32 -0
- package/dist/core/components/viewers/shared/placement/fileTransform.js.map +1 -0
- package/dist/core/components/viewers/shared/placement/objectTarget.js +2 -2
- package/dist/core/components/viewers/shared/placement/objectTarget.js.map +1 -1
- package/dist/core/components/viewers/shared/pointcloud/pointCloudPlacementStore.d.ts +2 -3
- package/dist/core/components/viewers/shared/pointcloud/pointCloudPlacementStore.d.ts.map +1 -1
- package/dist/core/components/viewers/shared/pointcloud/pointCloudPlacementStore.js +4 -14
- package/dist/core/components/viewers/shared/pointcloud/pointCloudPlacementStore.js.map +1 -1
- package/dist/core/i18n/messages/en.json +4 -0
- package/dist/core/i18n/messages/es.json +4 -0
- package/dist/core/i18n/messages/fr.json +4 -0
- package/dist/core/types/datasetTypes.d.ts +5 -0
- package/dist/core/types/datasetTypes.d.ts.map +1 -1
- package/dist/core/types/dbTypes.d.ts +40 -0
- package/dist/core/types/dbTypes.d.ts.map +1 -1
- package/dist/core/types/dbTypes.js +18 -0
- package/dist/core/types/dbTypes.js.map +1 -1
- package/dist/core/types/index.d.ts +2 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/index.js +7 -1
- package/dist/core/types/index.js.map +1 -1
- package/dist/core/utils/geo/reprojectGeometry.d.ts +14 -0
- package/dist/core/utils/geo/reprojectGeometry.d.ts.map +1 -0
- package/dist/core/utils/geo/reprojectGeometry.js +58 -0
- package/dist/core/utils/geo/reprojectGeometry.js.map +1 -0
- package/dist/core/utils/geo/wktToGeometry.d.ts +5 -0
- package/dist/core/utils/geo/wktToGeometry.d.ts.map +1 -0
- package/dist/core/utils/geo/wktToGeometry.js +34 -0
- package/dist/core/utils/geo/wktToGeometry.js.map +1 -0
- package/package.json +1 -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 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', extensions = 'extensions', 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 x?: number | null\n y?: number | null\n z?: number | null\n lat?: number | null\n lng?: number | null\n elevation?: number | null\n rotation?: number | null\n bimRotation?: number | null\n pointCloudTransform?: unknown\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 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,EAAA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le","BuildingAssessmentConditions","BuildingProjectPhase","BuildingProjectType","BuildingManagementType","BuildingEnergySource","BuildingHeatingEnergySource","BuildingCoolingEnergySource","BuildingHotWaterEnergySource","BuildingElectricityServiceSize","BuildingElectricityServiceLocation","SiteEnergySource","SiteAssessmentConditions","SiteLandUse","SiteProjectPhase","SiteProjectType","DatasetGroup","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', extensions = 'extensions', 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,s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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"]}
|
|
@@ -2,6 +2,6 @@ export type { SearchParams, DataTypes } from './global';
|
|
|
2
2
|
export { DataTypes as DataTypesNames } from './global';
|
|
3
3
|
export type { BoundingBox } from './map';
|
|
4
4
|
export type { User, Role, Organization, Comment, Sensor, SensorType, Building, DbFile, Site, OpenDataPortal, Infrastructure, Permission, } from './dbTypes';
|
|
5
|
-
export { ViewerNames, SensorTypes, SensorDataFormat, DatasetGroup, Language, } from './dbTypes';
|
|
6
|
-
export type { Dataset, LayerGeometryType } from './datasetTypes';
|
|
5
|
+
export { ViewerNames, SensorTypes, SensorDataFormat, DatasetGroup, DatasetProvider, GeoreferenceSource, Language, SourceUpAxis, } from './dbTypes';
|
|
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,QAAQ,
|
|
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"}
|
package/dist/core/types/index.js
CHANGED
|
@@ -4,14 +4,20 @@ import {
|
|
|
4
4
|
SensorTypes,
|
|
5
5
|
SensorDataFormat,
|
|
6
6
|
DatasetGroup,
|
|
7
|
-
|
|
7
|
+
DatasetProvider,
|
|
8
|
+
GeoreferenceSource,
|
|
9
|
+
Language,
|
|
10
|
+
SourceUpAxis
|
|
8
11
|
} from "./dbTypes";
|
|
9
12
|
export {
|
|
10
13
|
DataTypes as DataTypesNames,
|
|
11
14
|
DatasetGroup,
|
|
15
|
+
DatasetProvider,
|
|
16
|
+
GeoreferenceSource,
|
|
12
17
|
Language,
|
|
13
18
|
SensorDataFormat,
|
|
14
19
|
SensorTypes,
|
|
20
|
+
SourceUpAxis,
|
|
15
21
|
ViewerNames
|
|
16
22
|
};
|
|
17
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -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 Language,\n} from './dbTypes'\nexport type { Dataset, LayerGeometryType } from './datasetTypes'\n"],"mappings":"AAIA,SAAsB,iBAAsB;AAgB5C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
|
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;AAgB5C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SimpleGeometry } from './wktToGeometry';
|
|
2
|
+
import type { Position } from 'geojson';
|
|
3
|
+
export interface SourceCrs {
|
|
4
|
+
sourceCrs?: string;
|
|
5
|
+
sourceProj4Def?: string;
|
|
6
|
+
}
|
|
7
|
+
export type Projector = (position: Position) => Position;
|
|
8
|
+
export declare class UnknownCrsError extends Error {
|
|
9
|
+
}
|
|
10
|
+
/** Builds a projector to lon/lat; `sourceProj4Def` wins over `sourceCrs`, and neither means the data is already EPSG:4326. */
|
|
11
|
+
export declare function createLonLatProjector({ sourceCrs, sourceProj4Def }: SourceCrs): Projector;
|
|
12
|
+
/** Reprojects a geometry, or returns null when any position lands outside lon/lat range (a wrong source CRS). */
|
|
13
|
+
export declare function reprojectGeometry<G extends SimpleGeometry>(geometry: G, project: Projector): G | null;
|
|
14
|
+
//# sourceMappingURL=reprojectGeometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reprojectGeometry.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/geo/reprojectGeometry.ts"],"names":[],"mappings":"AAKA,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;AAQ7C,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"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import proj4 from "proj4";
|
|
21
|
+
class UnknownCrsError extends Error {
|
|
22
|
+
}
|
|
23
|
+
const LON_LAT = "EPSG:4326";
|
|
24
|
+
function roundTo6(value) {
|
|
25
|
+
return Math.round(value * 1e6) / 1e6;
|
|
26
|
+
}
|
|
27
|
+
function createLonLatProjector({ sourceCrs, sourceProj4Def }) {
|
|
28
|
+
const source = (sourceProj4Def == null ? void 0 : sourceProj4Def.trim()) || (sourceCrs == null ? void 0 : sourceCrs.trim()) || LON_LAT;
|
|
29
|
+
let converter;
|
|
30
|
+
try {
|
|
31
|
+
converter = proj4(source, LON_LAT);
|
|
32
|
+
} catch (e) {
|
|
33
|
+
throw new UnknownCrsError(`Unknown coordinate system "${source}"`);
|
|
34
|
+
}
|
|
35
|
+
return ([x, y]) => converter.forward([x, y]).map(roundTo6);
|
|
36
|
+
}
|
|
37
|
+
function isPosition(value) {
|
|
38
|
+
return typeof value[0] === "number";
|
|
39
|
+
}
|
|
40
|
+
function mapPositions(value, project) {
|
|
41
|
+
return isPosition(value) ? project(value) : value.map((child) => mapPositions(child, project));
|
|
42
|
+
}
|
|
43
|
+
function isLonLat([lon, lat]) {
|
|
44
|
+
return Number.isFinite(lon) && Number.isFinite(lat) && Math.abs(lon) <= 180 && Math.abs(lat) <= 90;
|
|
45
|
+
}
|
|
46
|
+
function allPositions(value) {
|
|
47
|
+
return isPosition(value) ? [value] : value.flatMap((child) => allPositions(child));
|
|
48
|
+
}
|
|
49
|
+
function reprojectGeometry(geometry, project) {
|
|
50
|
+
const coordinates = mapPositions(geometry.coordinates, project);
|
|
51
|
+
return allPositions(coordinates).every(isLonLat) ? __spreadProps(__spreadValues({}, geometry), { coordinates }) : null;
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
UnknownCrsError,
|
|
55
|
+
createLonLatProjector,
|
|
56
|
+
reprojectGeometry
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=reprojectGeometry.js.map
|
|
@@ -0,0 +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\nconst LON_LAT = 'EPSG:4326'\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\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAGA,OAAO,WAAW;AAaX,MAAM,wBAAwB,MAAM;AAAC;AAE5C,MAAM,UAAU;AAEhB,SAAS,SAAS,OAAuB;AACvC,SAAO,KAAK,MAAM,QAAQ,GAAG,IAAI;AACnC;AAGO,SAAS,sBAAsB,EAAE,WAAW,eAAe,GAAyB;AACzF,QAAM,UAAS,iDAAgB,YAAU,uCAAW,WAAU;AAC9D,MAAI;AACJ,MAAI;AACF,gBAAY,MAAM,QAAQ,OAAO;AAAA,EACnC,SACM;AACJ,UAAM,IAAI,gBAAgB,8BAA8B,MAAM,GAAG;AAAA,EACnE;AACA,SAAO,CAAC,CAAC,GAAG,CAAC,MAAM,UAAU,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,QAAQ;AAC3D;AAEA,SAAS,WAAW,OAAqC;AACvD,SAAO,OAAO,MAAM,CAAC,MAAM;AAC7B;AAEA,SAAS,aAAa,OAAkB,SAA+B;AACrE,SAAO,WAAW,KAAK,IAAI,QAAQ,KAAK,IAAI,MAAM,IAAI,WAAS,aAAa,OAAoB,OAAO,CAAC;AAC1G;AAEA,SAAS,SAAS,CAAC,KAAK,GAAG,GAAsB;AAC/C,SAAO,OAAO,SAAS,GAAG,KAAK,OAAO,SAAS,GAAG,KAAK,KAAK,IAAI,GAAG,KAAK,OAAO,KAAK,IAAI,GAAG,KAAK;AAClG;AAEA,SAAS,aAAa,OAA8B;AAClD,SAAO,WAAW,KAAK,IAAI,CAAC,KAAK,IAAI,MAAM,QAAQ,WAAS,aAAa,KAAkB,CAAC;AAC9F;AAGO,SAAS,kBAA4C,UAAa,SAA8B;AACrG,QAAM,cAAc,aAAa,SAAS,aAA0B,OAAO;AAC3E,SAAO,aAAa,WAAW,EAAE,MAAM,QAAQ,IAAI,iCAAK,WAAL,EAAe,YAAY,KAAS;AACzF;","names":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Geometry, GeometryCollection } from 'geojson';
|
|
2
|
+
export type SimpleGeometry = Exclude<Geometry, GeometryCollection>;
|
|
3
|
+
/** Parses 2D WKT (Z/M ordinates dropped) into GeoJSON; returns null for EMPTY, collections or malformed text. */
|
|
4
|
+
export declare function wktToGeometry(wkt: string): SimpleGeometry | null;
|
|
5
|
+
//# sourceMappingURL=wktToGeometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wktToGeometry.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/geo/wktToGeometry.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAY,MAAM,SAAS,CAAA;AAErE,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAA;AAoBlE,iHAAiH;AACjH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAiBhE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const GEOJSON_TYPES = {
|
|
2
|
+
POINT: "Point",
|
|
3
|
+
LINESTRING: "LineString",
|
|
4
|
+
POLYGON: "Polygon",
|
|
5
|
+
MULTIPOINT: "MultiPoint",
|
|
6
|
+
MULTILINESTRING: "MultiLineString",
|
|
7
|
+
MULTIPOLYGON: "MultiPolygon"
|
|
8
|
+
};
|
|
9
|
+
const NUMBER = String.raw`[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?`;
|
|
10
|
+
const POSITION = new RegExp(`(${NUMBER})\\s+(${NUMBER})(?:\\s+${NUMBER})*`, "g");
|
|
11
|
+
const TAGGED_TEXT = /^\s*([A-Za-z]+)(?:\s+(?:ZM|Z|M))?\s*(\([\s\S]*\))\s*$/;
|
|
12
|
+
function toNestedArrays(body) {
|
|
13
|
+
const json = body.replace(POSITION, "[$1,$2]").replaceAll("(", "[").replaceAll(")", "]");
|
|
14
|
+
return JSON.parse(json);
|
|
15
|
+
}
|
|
16
|
+
function wktToGeometry(wkt) {
|
|
17
|
+
const match = TAGGED_TEXT.exec(wkt);
|
|
18
|
+
const type = match ? GEOJSON_TYPES[match[1].toUpperCase()] : void 0;
|
|
19
|
+
if (!match || !type) return null;
|
|
20
|
+
let nested;
|
|
21
|
+
try {
|
|
22
|
+
nested = toNestedArrays(match[2]);
|
|
23
|
+
} catch (e) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
if (!Array.isArray(nested) || nested.length === 0) return null;
|
|
27
|
+
if (type === "Point") return { type, coordinates: nested[0] };
|
|
28
|
+
if (type === "MultiPoint") return { type, coordinates: nested.map((p) => Array.isArray(p[0]) ? p[0] : p) };
|
|
29
|
+
return { type, coordinates: nested };
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
wktToGeometry
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=wktToGeometry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/core/utils/geo/wktToGeometry.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport type { Geometry, GeometryCollection, Position } from 'geojson'\n\nexport type SimpleGeometry = Exclude<Geometry, GeometryCollection>\n\nconst GEOJSON_TYPES: Record<string, SimpleGeometry['type']> = {\n POINT: 'Point',\n LINESTRING: 'LineString',\n POLYGON: 'Polygon',\n MULTIPOINT: 'MultiPoint',\n MULTILINESTRING: 'MultiLineString',\n MULTIPOLYGON: 'MultiPolygon',\n}\n\nconst NUMBER = String.raw`[-+]?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][-+]?\\d+)?`\nconst POSITION = new RegExp(`(${NUMBER})\\\\s+(${NUMBER})(?:\\\\s+${NUMBER})*`, 'g')\nconst TAGGED_TEXT = /^\\s*([A-Za-z]+)(?:\\s+(?:ZM|Z|M))?\\s*(\\([\\s\\S]*\\))\\s*$/\n\nfunction toNestedArrays(body: string): unknown {\n const json = body.replace(POSITION, '[$1,$2]').replaceAll('(', '[').replaceAll(')', ']')\n return JSON.parse(json)\n}\n\n/** Parses 2D WKT (Z/M ordinates dropped) into GeoJSON; returns null for EMPTY, collections or malformed text. */\nexport function wktToGeometry(wkt: string): SimpleGeometry | null {\n const match = TAGGED_TEXT.exec(wkt)\n const type = match ? GEOJSON_TYPES[match[1].toUpperCase()] : undefined\n if (!match || !type) return null\n\n let nested: unknown\n try {\n nested = toNestedArrays(match[2])\n }\n catch {\n return null\n }\n if (!Array.isArray(nested) || nested.length === 0) return null\n\n if (type === 'Point') return { type, coordinates: nested[0] as Position }\n if (type === 'MultiPoint') return { type, coordinates: (nested as (Position | Position[])[]).map(p => (Array.isArray(p[0]) ? p[0] : p) as Position) }\n return { type, coordinates: nested } as SimpleGeometry\n}\n"],"mappings":"AAOA,MAAM,gBAAwD;AAAA,EAC5D,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,cAAc;AAChB;AAEA,MAAM,SAAS,OAAO;AACtB,MAAM,WAAW,IAAI,OAAO,IAAI,MAAM,SAAS,MAAM,WAAW,MAAM,MAAM,GAAG;AAC/E,MAAM,cAAc;AAEpB,SAAS,eAAe,MAAuB;AAC7C,QAAM,OAAO,KAAK,QAAQ,UAAU,SAAS,EAAE,WAAW,KAAK,GAAG,EAAE,WAAW,KAAK,GAAG;AACvF,SAAO,KAAK,MAAM,IAAI;AACxB;AAGO,SAAS,cAAc,KAAoC;AAChE,QAAM,QAAQ,YAAY,KAAK,GAAG;AAClC,QAAM,OAAO,QAAQ,cAAc,MAAM,CAAC,EAAE,YAAY,CAAC,IAAI;AAC7D,MAAI,CAAC,SAAS,CAAC,KAAM,QAAO;AAE5B,MAAI;AACJ,MAAI;AACF,aAAS,eAAe,MAAM,CAAC,CAAC;AAAA,EAClC,SACM;AACJ,WAAO;AAAA,EACT;AACA,MAAI,CAAC,MAAM,QAAQ,MAAM,KAAK,OAAO,WAAW,EAAG,QAAO;AAE1D,MAAI,SAAS,QAAS,QAAO,EAAE,MAAM,aAAa,OAAO,CAAC,EAAc;AACxE,MAAI,SAAS,aAAc,QAAO,EAAE,MAAM,aAAc,OAAqC,IAAI,OAAM,MAAM,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAc,EAAE;AACpJ,SAAO,EAAE,MAAM,aAAa,OAAO;AACrC;","names":[]}
|