@collabdt/core 0.12.2 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/core/components/AppSidebarContent.js +2 -2
  2. package/dist/core/components/AppSidebarContent.js.map +1 -1
  3. package/dist/core/components/organizationConfig/src/organizationConfigContent.d.ts.map +1 -1
  4. package/dist/core/components/organizationConfig/src/organizationConfigContent.js +5 -11
  5. package/dist/core/components/organizationConfig/src/organizationConfigContent.js.map +1 -1
  6. package/dist/core/components/viewers/Data/DataMenu.js +1 -1
  7. package/dist/core/components/viewers/Data/DataMenu.js.map +1 -1
  8. package/dist/core/components/viewers/Data/HeaderButtons.js +1 -1
  9. package/dist/core/components/viewers/Data/HeaderButtons.js.map +1 -1
  10. package/dist/core/components/viewers/Data/utils/viewerConfig.js +1 -1
  11. package/dist/core/components/viewers/Data/utils/viewerConfig.js.map +1 -1
  12. package/dist/core/components/viewers/Viewer.js +1 -1
  13. package/dist/core/components/viewers/Viewer.js.map +1 -1
  14. package/dist/core/components/viewers/plugins/PluginsManager.d.ts +6 -9
  15. package/dist/core/components/viewers/plugins/PluginsManager.d.ts.map +1 -1
  16. package/dist/core/components/viewers/plugins/PluginsManager.js +321 -122
  17. package/dist/core/components/viewers/plugins/PluginsManager.js.map +1 -1
  18. package/dist/core/components/viewers/plugins/src/PluginDetails.d.ts +22 -0
  19. package/dist/core/components/viewers/plugins/src/PluginDetails.d.ts.map +1 -0
  20. package/dist/core/components/viewers/plugins/src/PluginDetails.js +204 -0
  21. package/dist/core/components/viewers/plugins/src/PluginDetails.js.map +1 -0
  22. package/dist/core/components/viewers/plugins/src/PluginQuickControls.d.ts +25 -0
  23. package/dist/core/components/viewers/plugins/src/PluginQuickControls.d.ts.map +1 -0
  24. package/dist/core/components/viewers/plugins/src/PluginQuickControls.js +79 -0
  25. package/dist/core/components/viewers/plugins/src/PluginQuickControls.js.map +1 -0
  26. package/dist/core/components/viewers/plugins/src/PluginRow.d.ts +28 -0
  27. package/dist/core/components/viewers/plugins/src/PluginRow.d.ts.map +1 -0
  28. package/dist/core/components/viewers/plugins/src/PluginRow.js +141 -0
  29. package/dist/core/components/viewers/plugins/src/PluginRow.js.map +1 -0
  30. package/dist/core/components/viewers/plugins/src/RegistryAccessList.d.ts +9 -0
  31. package/dist/core/components/viewers/plugins/src/RegistryAccessList.d.ts.map +1 -0
  32. package/dist/core/components/viewers/plugins/src/RegistryAccessList.js +96 -0
  33. package/dist/core/components/viewers/plugins/src/RegistryAccessList.js.map +1 -0
  34. package/dist/core/components/viewers/plugins/src/RegistryDetails.d.ts +19 -0
  35. package/dist/core/components/viewers/plugins/src/RegistryDetails.d.ts.map +1 -0
  36. package/dist/core/components/viewers/plugins/src/RegistryDetails.js +171 -0
  37. package/dist/core/components/viewers/plugins/src/RegistryDetails.js.map +1 -0
  38. package/dist/core/components/viewers/plugins/src/RegistryImport.d.ts +7 -0
  39. package/dist/core/components/viewers/plugins/src/RegistryImport.d.ts.map +1 -0
  40. package/dist/core/components/viewers/plugins/src/RegistryImport.js +88 -0
  41. package/dist/core/components/viewers/plugins/src/RegistryImport.js.map +1 -0
  42. package/dist/core/components/viewers/plugins/src/RegistryPublishStrip.d.ts +14 -0
  43. package/dist/core/components/viewers/plugins/src/RegistryPublishStrip.d.ts.map +1 -0
  44. package/dist/core/components/viewers/plugins/src/RegistryPublishStrip.js +74 -0
  45. package/dist/core/components/viewers/plugins/src/RegistryPublishStrip.js.map +1 -0
  46. package/dist/core/components/viewers/plugins/src/RegistryToolbar.d.ts +12 -0
  47. package/dist/core/components/viewers/plugins/src/RegistryToolbar.d.ts.map +1 -0
  48. package/dist/core/components/viewers/plugins/src/RegistryToolbar.js +41 -0
  49. package/dist/core/components/viewers/plugins/src/RegistryToolbar.js.map +1 -0
  50. package/dist/core/components/viewers/plugins/src/VisibleToPicker.d.ts +10 -0
  51. package/dist/core/components/viewers/plugins/src/VisibleToPicker.d.ts.map +1 -0
  52. package/dist/core/components/viewers/plugins/src/VisibleToPicker.js +82 -0
  53. package/dist/core/components/viewers/plugins/src/VisibleToPicker.js.map +1 -0
  54. package/dist/core/components/viewers/plugins/src/pluginColumns.d.ts +12 -0
  55. package/dist/core/components/viewers/plugins/src/pluginColumns.d.ts.map +1 -0
  56. package/dist/core/components/viewers/plugins/src/pluginColumns.js +47 -0
  57. package/dist/core/components/viewers/plugins/src/pluginColumns.js.map +1 -0
  58. package/dist/core/components/viewers/plugins/src/pluginRows.d.ts +29 -0
  59. package/dist/core/components/viewers/plugins/src/pluginRows.d.ts.map +1 -0
  60. package/dist/core/components/viewers/plugins/src/pluginRows.js +66 -0
  61. package/dist/core/components/viewers/plugins/src/pluginRows.js.map +1 -0
  62. package/dist/core/components/viewers/plugins/src/pluginStatus.d.ts +6 -5
  63. package/dist/core/components/viewers/plugins/src/pluginStatus.d.ts.map +1 -1
  64. package/dist/core/components/viewers/plugins/src/pluginStatus.js +8 -1
  65. package/dist/core/components/viewers/plugins/src/pluginStatus.js.map +1 -1
  66. package/dist/core/components/viewers/plugins/src/publishState.d.ts +22 -0
  67. package/dist/core/components/viewers/plugins/src/publishState.d.ts.map +1 -0
  68. package/dist/core/components/viewers/plugins/src/publishState.js +19 -0
  69. package/dist/core/components/viewers/plugins/src/publishState.js.map +1 -0
  70. package/dist/core/components/viewers/plugins/src/registryErrorMessage.d.ts +3 -0
  71. package/dist/core/components/viewers/plugins/src/registryErrorMessage.d.ts.map +1 -0
  72. package/dist/core/components/viewers/plugins/src/registryErrorMessage.js +11 -0
  73. package/dist/core/components/viewers/plugins/src/registryErrorMessage.js.map +1 -0
  74. package/dist/core/components/viewers/plugins/src/sharedPluginChanges.d.ts +15 -0
  75. package/dist/core/components/viewers/plugins/src/sharedPluginChanges.d.ts.map +1 -0
  76. package/dist/core/components/viewers/plugins/src/sharedPluginChanges.js +24 -0
  77. package/dist/core/components/viewers/plugins/src/sharedPluginChanges.js.map +1 -0
  78. package/dist/core/components/viewers/plugins/src/sortPluginRows.d.ts +15 -0
  79. package/dist/core/components/viewers/plugins/src/sortPluginRows.d.ts.map +1 -0
  80. package/dist/core/components/viewers/plugins/src/sortPluginRows.js +45 -0
  81. package/dist/core/components/viewers/plugins/src/sortPluginRows.js.map +1 -0
  82. package/dist/core/components/viewers/plugins/src/useFittedColumns.d.ts +5 -0
  83. package/dist/core/components/viewers/plugins/src/useFittedColumns.d.ts.map +1 -0
  84. package/dist/core/components/viewers/plugins/src/useFittedColumns.js +27 -0
  85. package/dist/core/components/viewers/plugins/src/useFittedColumns.js.map +1 -0
  86. package/dist/core/components/viewers/plugins/src/useMountedPlugins.d.ts +6 -2
  87. package/dist/core/components/viewers/plugins/src/useMountedPlugins.d.ts.map +1 -1
  88. package/dist/core/components/viewers/plugins/src/useMountedPlugins.js +8 -2
  89. package/dist/core/components/viewers/plugins/src/useMountedPlugins.js.map +1 -1
  90. package/dist/core/components/viewers/plugins/src/usePluginsData.d.ts.map +1 -1
  91. package/dist/core/components/viewers/plugins/src/usePluginsData.js +10 -5
  92. package/dist/core/components/viewers/plugins/src/usePluginsData.js.map +1 -1
  93. package/dist/core/components/viewers/plugins/src/useRegistryPlugins.d.ts +15 -0
  94. package/dist/core/components/viewers/plugins/src/useRegistryPlugins.d.ts.map +1 -0
  95. package/dist/core/components/viewers/plugins/src/useRegistryPlugins.js +105 -0
  96. package/dist/core/components/viewers/plugins/src/useRegistryPlugins.js.map +1 -0
  97. package/dist/core/components/viewers/plugins/types.d.ts +87 -0
  98. package/dist/core/components/viewers/plugins/types.d.ts.map +1 -1
  99. package/dist/core/components/viewers/viewerAccess.d.ts.map +1 -1
  100. package/dist/core/components/viewers/viewerAccess.js +2 -0
  101. package/dist/core/components/viewers/viewerAccess.js.map +1 -1
  102. package/dist/core/hooks/plugins/createPluginHooks.d.ts +2 -10
  103. package/dist/core/hooks/plugins/createPluginHooks.d.ts.map +1 -1
  104. package/dist/core/hooks/plugins/createPluginHooks.js +1 -2
  105. package/dist/core/hooks/plugins/createPluginHooks.js.map +1 -1
  106. package/dist/core/i18n/messages/en.json +130 -19
  107. package/dist/core/i18n/messages/es.json +130 -19
  108. package/dist/core/i18n/messages/fr.json +130 -19
  109. package/dist/core/plugins/sdk/semver.d.ts +7 -0
  110. package/dist/core/plugins/sdk/semver.d.ts.map +1 -0
  111. package/dist/core/plugins/sdk/semver.js +52 -0
  112. package/dist/core/plugins/sdk/semver.js.map +1 -0
  113. package/dist/core/types/dbTypes.d.ts +1 -1
  114. package/dist/core/types/dbTypes.d.ts.map +1 -1
  115. package/dist/core/types/dbTypes.js +1 -1
  116. package/dist/core/types/dbTypes.js.map +1 -1
  117. package/dist/core/utils/appContent.d.ts +4 -7
  118. package/dist/core/utils/appContent.d.ts.map +1 -1
  119. package/dist/core/utils/appContent.js +8 -3
  120. package/dist/core/utils/appContent.js.map +1 -1
  121. package/package.json +1 -1
  122. package/dist/core/components/viewers/plugins/src/PluginCard.d.ts +0 -14
  123. package/dist/core/components/viewers/plugins/src/PluginCard.d.ts.map +0 -1
  124. package/dist/core/components/viewers/plugins/src/PluginCard.js +0 -234
  125. package/dist/core/components/viewers/plugins/src/PluginCard.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', 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,y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AAAA,+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 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,sBA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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,13 +1,10 @@
1
1
  import { ViewerNames } from '../types/dbTypes';
2
2
  import type { Organization } from '../types/dbTypes';
3
+ /** Viewers every organization has, whatever its `appContent` says, so they are never stored in it. */
4
+ export declare const ALWAYS_AVAILABLE_VIEWERS: readonly ViewerNames[];
3
5
  /**
4
- * The viewers an organization has switched on.
5
- *
6
- * An empty `appContent` means "not configured", which grants everything rather than nothing, so
7
- * an organization that never set the field keeps the full app. The map is always included.
8
- *
9
- * Shared so every entry point into a viewer agrees: the sidebar and the map popover's tool row
10
- * were drifting, and a tool that navigates somewhere the sidebar hides is a dead end.
6
+ * The viewers an organization can reach. An empty `appContent` means "not configured" and grants
7
+ * every optional viewer; the always-available ones are included either way.
11
8
  */
12
9
  export declare function resolveAppContent(organization?: Organization | null): ViewerNames[];
13
10
  /** Whether an organization can reach a viewer at all. */
@@ -1 +1 @@
1
- {"version":3,"file":"appContent.d.ts","sourceRoot":"","sources":["../../../src/core/utils/appContent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAYpD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,GAAG,WAAW,EAAE,CAInF;AAED,yDAAyD;AACzD,wBAAgB,aAAa,CAC3B,YAAY,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS,EAC7C,MAAM,EAAE,WAAW,GAClB,OAAO,CAET"}
1
+ {"version":3,"file":"appContent.d.ts","sourceRoot":"","sources":["../../../src/core/utils/appContent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,sGAAsG;AACtG,eAAO,MAAM,wBAAwB,EAAE,SAAS,WAAW,EAI1D,CAAA;AAUD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,GAAG,WAAW,EAAE,CAInF;AAED,yDAAyD;AACzD,wBAAgB,aAAa,CAC3B,YAAY,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS,EAC7C,MAAM,EAAE,WAAW,GAClB,OAAO,CAET"}
@@ -1,6 +1,10 @@
1
1
  import { ViewerNames } from "../types/dbTypes";
2
+ const ALWAYS_AVAILABLE_VIEWERS = [
3
+ ViewerNames.map,
4
+ ViewerNames.plugins,
5
+ ViewerNames.settings
6
+ ];
2
7
  const OPTIONAL_VIEWERS = [
3
- ViewerNames.extensions,
4
8
  ViewerNames.bim,
5
9
  ViewerNames.sites,
6
10
  ViewerNames.infrastructure,
@@ -10,13 +14,14 @@ const OPTIONAL_VIEWERS = [
10
14
  function resolveAppContent(organization) {
11
15
  var _a;
12
16
  const configured = (_a = organization == null ? void 0 : organization.appContent) != null ? _a : [];
13
- if (configured.length === 0) return [ViewerNames.map, ...OPTIONAL_VIEWERS];
14
- return [ViewerNames.map, ...configured];
17
+ const optional = configured.length === 0 ? OPTIONAL_VIEWERS : configured;
18
+ return [.../* @__PURE__ */ new Set([...ALWAYS_AVAILABLE_VIEWERS, ...optional])];
15
19
  }
16
20
  function hasAppContent(organization, viewer) {
17
21
  return resolveAppContent(organization).includes(viewer);
18
22
  }
19
23
  export {
24
+ ALWAYS_AVAILABLE_VIEWERS,
20
25
  hasAppContent,
21
26
  resolveAppContent
22
27
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/core/utils/appContent.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport { ViewerNames } from '../types/dbTypes'\n\nimport type { Organization } from '../types/dbTypes'\n\n/** Everything an organization can switch on. The map is always available and is not listed. */\nconst OPTIONAL_VIEWERS: ViewerNames[] = [\n ViewerNames.extensions,\n ViewerNames.bim,\n ViewerNames.sites,\n ViewerNames.infrastructure,\n ViewerNames.buildings,\n ViewerNames.files,\n]\n\n/**\n * The viewers an organization has switched on.\n *\n * An empty `appContent` means \"not configured\", which grants everything rather than nothing, so\n * an organization that never set the field keeps the full app. The map is always included.\n *\n * Shared so every entry point into a viewer agrees: the sidebar and the map popover's tool row\n * were drifting, and a tool that navigates somewhere the sidebar hides is a dead end.\n */\nexport function resolveAppContent(organization?: Organization | null): ViewerNames[] {\n const configured = organization?.appContent ?? []\n if (configured.length === 0) return [ViewerNames.map, ...OPTIONAL_VIEWERS]\n return [ViewerNames.map, ...(configured as ViewerNames[])]\n}\n\n/** Whether an organization can reach a viewer at all. */\nexport function hasAppContent(\n organization: Organization | null | undefined,\n viewer: ViewerNames,\n): boolean {\n return resolveAppContent(organization).includes(viewer)\n}\n"],"mappings":"AAGA,SAAS,mBAAmB;AAK5B,MAAM,mBAAkC;AAAA,EACtC,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AACd;AAWO,SAAS,kBAAkB,cAAmD;AA1BrF;AA2BE,QAAM,cAAa,kDAAc,eAAd,YAA4B,CAAC;AAChD,MAAI,WAAW,WAAW,EAAG,QAAO,CAAC,YAAY,KAAK,GAAG,gBAAgB;AACzE,SAAO,CAAC,YAAY,KAAK,GAAI,UAA4B;AAC3D;AAGO,SAAS,cACd,cACA,QACS;AACT,SAAO,kBAAkB,YAAY,EAAE,SAAS,MAAM;AACxD;","names":[]}
1
+ {"version":3,"sources":["../../../src/core/utils/appContent.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport { ViewerNames } from '../types/dbTypes'\n\nimport type { Organization } from '../types/dbTypes'\n\n/** Viewers every organization has, whatever its `appContent` says, so they are never stored in it. */\nexport const ALWAYS_AVAILABLE_VIEWERS: readonly ViewerNames[] = [\n ViewerNames.map,\n ViewerNames.plugins,\n ViewerNames.settings,\n]\n\nconst OPTIONAL_VIEWERS: ViewerNames[] = [\n ViewerNames.bim,\n ViewerNames.sites,\n ViewerNames.infrastructure,\n ViewerNames.buildings,\n ViewerNames.files,\n]\n\n/**\n * The viewers an organization can reach. An empty `appContent` means \"not configured\" and grants\n * every optional viewer; the always-available ones are included either way.\n */\nexport function resolveAppContent(organization?: Organization | null): ViewerNames[] {\n const configured = organization?.appContent ?? []\n const optional = configured.length === 0 ? OPTIONAL_VIEWERS : (configured as ViewerNames[])\n return [...new Set([...ALWAYS_AVAILABLE_VIEWERS, ...optional])]\n}\n\n/** Whether an organization can reach a viewer at all. */\nexport function hasAppContent(\n organization: Organization | null | undefined,\n viewer: ViewerNames,\n): boolean {\n return resolveAppContent(organization).includes(viewer)\n}\n"],"mappings":"AAGA,SAAS,mBAAmB;AAKrB,MAAM,2BAAmD;AAAA,EAC9D,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AACd;AAEA,MAAM,mBAAkC;AAAA,EACtC,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AACd;AAMO,SAAS,kBAAkB,cAAmD;AA1BrF;AA2BE,QAAM,cAAa,kDAAc,eAAd,YAA4B,CAAC;AAChD,QAAM,WAAW,WAAW,WAAW,IAAI,mBAAoB;AAC/D,SAAO,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,0BAA0B,GAAG,QAAQ,CAAC,CAAC;AAChE;AAGO,SAAS,cACd,cACA,QACS;AACT,SAAO,kBAAkB,YAAY,EAAE,SAAS,MAAM;AACxD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collabdt/core",
3
- "version": "0.12.2",
3
+ "version": "0.13.1",
4
4
  "description": "CDT Core contains all the core technology for your CDT platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import type { PluginListing, PluginsAbility } from '../types';
3
- interface Props {
4
- listing: PluginListing;
5
- ability: PluginsAbility;
6
- onSetInstalled: (installed: boolean) => void;
7
- onSetOrgEnabled: (enabled: boolean) => void;
8
- onSetAllowUserOverride: (allow: boolean) => void;
9
- onSetUserEnabled: (enabled: boolean) => void;
10
- onCopyError: () => void;
11
- }
12
- export declare function PluginCard({ listing, ability, onSetInstalled, onSetOrgEnabled, onSetAllowUserOverride, onSetUserEnabled, onCopyError, }: Props): React.JSX.Element;
13
- export {};
14
- //# sourceMappingURL=PluginCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PluginCard.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/viewers/plugins/src/PluginCard.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAkC7D,UAAU,KAAK;IACb,OAAO,EAAE,aAAa,CAAA;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,cAAc,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5C,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC3C,sBAAsB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAChD,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5C,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB;AAED,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,OAAO,EACP,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,WAAW,GACZ,EAAE,KAAK,qBAoKP"}
@@ -1,234 +0,0 @@
1
- 'use client'
2
-
3
- "use client";
4
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
- import * as LR from "lucide-react";
6
- import { useTranslations } from "next-intl";
7
- import { resolvePluginIcon } from "../../../../plugins/host/pluginIcon";
8
- import { usePluginMessage } from "../../../../plugins/sdk/messages";
9
- import { cn } from "../../../../utils/utils";
10
- import { Badge } from "../../../ui/Badge";
11
- import { Button } from "../../../ui/Button";
12
- import { Separator } from "../../../ui/Separator";
13
- import { Switch } from "../../../ui/Switch";
14
- import { effectiveStatus } from "./pluginStatus";
15
- const STATUS_STYLE = {
16
- running: {
17
- icon: LR.CheckCircle2,
18
- className: "border-green-600/40 bg-green-600/10 text-green-700 dark:text-green-400"
19
- },
20
- off: {
21
- icon: LR.CircleSlash,
22
- className: "border-muted-foreground/40 bg-muted text-muted-foreground"
23
- },
24
- error: {
25
- icon: LR.AlertTriangle,
26
- className: "border-destructive/40 bg-destructive/10 text-destructive"
27
- },
28
- available: {
29
- icon: LR.PackagePlus,
30
- className: "border-sky-600/40 bg-sky-600/10 text-sky-700 dark:text-sky-400"
31
- }
32
- };
33
- const CAPABILITY_ICON = {
34
- "map.tools": LR.Map,
35
- "viewer.legends": LR.SquareMenu,
36
- "map.layers": LR.Layers,
37
- "bim.tools": LR.Box,
38
- "data.pages": LR.Table2,
39
- "viewer.tabs": LR.PanelLeft,
40
- "ui.dialogs": LR.SquareStack
41
- };
42
- function PluginCard({
43
- listing,
44
- ability,
45
- onSetInstalled,
46
- onSetOrgEnabled,
47
- onSetAllowUserOverride,
48
- onSetUserEnabled,
49
- onCopyError
50
- }) {
51
- var _a, _b, _c, _d;
52
- const t = useTranslations("PluginsPage");
53
- const { manifest } = listing;
54
- const status = effectiveStatus(listing);
55
- const Icon = resolvePluginIcon((_a = manifest.icon) != null ? _a : "Puzzle");
56
- const name = usePluginMessage(manifest.slug, "name", manifest.name);
57
- const description = usePluginMessage(manifest.slug, "description", (_b = manifest.description) != null ? _b : "");
58
- const isAdmin = ability.canConfigureOrg || ability.canInstall;
59
- const userMayChoose = listing.allowUserOverride && ability.canChooseForSelf && status !== "error";
60
- const userEnabled = (_c = listing.userEnabled) != null ? _c : listing.orgEnabled;
61
- return /* @__PURE__ */ jsxs(
62
- "article",
63
- {
64
- className: "grid gap-4 rounded-xl border bg-background p-5 md:grid-cols-[minmax(0,1fr)_auto]",
65
- "data-testid": `plugin-${manifest.slug}`,
66
- children: [
67
- /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
68
- /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
69
- /* @__PURE__ */ jsx(
70
- Icon,
71
- {
72
- "aria-hidden": true,
73
- className: "h-5 w-5 shrink-0 text-muted-foreground",
74
- "data-testid": `plugin-icon-${manifest.slug}`
75
- }
76
- ),
77
- /* @__PURE__ */ jsx("h2", { className: "text-lg text-foreground", children: name }),
78
- /* @__PURE__ */ jsx(StatusBadge, { status }),
79
- listing.bundled && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "font-normal text-muted-foreground", children: t("bundled") })
80
- ] }),
81
- /* @__PURE__ */ jsxs("p", { className: "mt-1 text-sm text-muted-foreground", children: [
82
- /* @__PURE__ */ jsx("code", { children: manifest.slug }),
83
- /* @__PURE__ */ jsx("span", { className: "mx-1.5 opacity-40", children: "\xB7" }),
84
- /* @__PURE__ */ jsxs("span", { className: "tabular-nums", children: [
85
- "v",
86
- manifest.version
87
- ] }),
88
- /* @__PURE__ */ jsx("span", { className: "mx-1.5 opacity-40", children: "\xB7" }),
89
- manifest.author || t("unknownAuthor")
90
- ] }),
91
- description && /* @__PURE__ */ jsx("p", { className: "mt-2 max-w-[60ch] text-sm", children: description }),
92
- /* @__PURE__ */ jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-1.5", children: [
93
- /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: t("capabilities") }),
94
- manifest.capabilities.map((capability) => /* @__PURE__ */ jsx(CapabilityBadge, { capability }, capability))
95
- ] }),
96
- status === "error" && listing.error && /* @__PURE__ */ jsxs("div", { className: "mt-3 rounded-xl border border-destructive/50 bg-destructive/5 p-3", children: [
97
- /* @__PURE__ */ jsxs("p", { className: "flex items-center gap-1.5 text-sm font-medium text-destructive", children: [
98
- /* @__PURE__ */ jsx(LR.AlertTriangle, { className: "h-4 w-4 shrink-0" }),
99
- t("errorHeading")
100
- ] }),
101
- /* @__PURE__ */ jsx("p", { className: "mt-1.5 overflow-x-auto text-xs", children: /* @__PURE__ */ jsx("code", { children: listing.error }) }),
102
- /* @__PURE__ */ jsx("p", { className: "mt-1.5 text-xs text-muted-foreground", children: t("errorHint") })
103
- ] }),
104
- status === "available" && /* @__PURE__ */ jsxs("div", { className: "mt-3 rounded-xl border border-dashed p-3", children: [
105
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: t("trustHeading") }),
106
- /* @__PURE__ */ jsxs("ul", { className: "mt-1.5 list-disc pl-4 text-xs text-muted-foreground", children: [
107
- listing.mountPath && /* @__PURE__ */ jsx("li", { children: t("trustMount", { path: listing.mountPath }) }),
108
- /* @__PURE__ */ jsx("li", { children: ((_d = manifest.requiredPermissions) == null ? void 0 : _d.length) ? t("trustPermissions", { permissions: manifest.requiredPermissions.join(", ") }) : t("trustNoPermissions") }),
109
- /* @__PURE__ */ jsx("li", { children: t("trustWarning") })
110
- ] })
111
- ] })
112
- ] }),
113
- /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-col gap-2.5 md:w-[270px]", children: status === "available" ? ability.canInstall && /* @__PURE__ */ jsxs(Button, { size: "sm", onClick: () => onSetInstalled(true), children: [
114
- /* @__PURE__ */ jsx(LR.PackagePlus, { className: "mr-1.5 h-4 w-4" }),
115
- t("addToOrg")
116
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
117
- isAdmin ? /* @__PURE__ */ jsxs(ControlGroup, { label: t("orgGroup"), who: t("orgGroupWho"), children: [
118
- ability.canInstall && /* @__PURE__ */ jsx(ControlRow, { label: t("orgInstalled"), children: /* @__PURE__ */ jsx(
119
- Switch,
120
- {
121
- checked: listing.installed,
122
- onCheckedChange: onSetInstalled,
123
- "aria-label": t("orgInstalled")
124
- }
125
- ) }),
126
- ability.canConfigureOrg && /* @__PURE__ */ jsxs(Fragment, { children: [
127
- /* @__PURE__ */ jsx(ControlRow, { label: t("orgEnabled"), children: /* @__PURE__ */ jsx(
128
- Switch,
129
- {
130
- checked: listing.orgEnabled,
131
- onCheckedChange: onSetOrgEnabled,
132
- "aria-label": t("orgEnabled")
133
- }
134
- ) }),
135
- /* @__PURE__ */ jsx(
136
- ControlRow,
137
- {
138
- label: t("orgAllowOverride"),
139
- hint: listing.allowUserOverride ? t("orgAllowOverrideOnHint") : t("orgAllowOverrideOffHint"),
140
- children: /* @__PURE__ */ jsx(
141
- Switch,
142
- {
143
- checked: listing.allowUserOverride,
144
- onCheckedChange: onSetAllowUserOverride,
145
- "aria-label": t("orgAllowOverride")
146
- }
147
- )
148
- }
149
- )
150
- ] })
151
- ] }) : /* @__PURE__ */ jsx(ControlGroup, { label: t("orgGroup"), children: /* @__PURE__ */ jsx("p", { className: "py-1 text-sm text-muted-foreground", children: orgSummary(listing, t) }) }),
152
- /* @__PURE__ */ jsx(ControlGroup, { label: t("userGroup"), children: status === "error" ? /* @__PURE__ */ jsx(Note, { icon: LR.Minus, text: t("userNothingToRun") }) : userMayChoose ? /* @__PURE__ */ jsx(ControlRow, { label: t("userRun"), children: /* @__PURE__ */ jsx(
153
- Switch,
154
- {
155
- checked: userEnabled,
156
- onCheckedChange: onSetUserEnabled,
157
- "aria-label": t("userRun")
158
- }
159
- ) }) : !ability.canChooseForSelf ? (
160
- // Not the admin lock below: nothing is locked, this reader just may
161
- // not change what runs.
162
- /* @__PURE__ */ jsx(Note, { icon: LR.Eye, text: t("userReadOnly") })
163
- ) : /* @__PURE__ */ jsx(Note, { icon: LR.Lock, text: listing.orgEnabled ? t("userLockedOn") : t("userLockedOff") }) }),
164
- status === "error" && /* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", onClick: onCopyError, children: t("copyError") })
165
- ] }) })
166
- ]
167
- }
168
- );
169
- }
170
- function StatusBadge({ status }) {
171
- const t = useTranslations("PluginsPage");
172
- const { icon: Icon, className } = STATUS_STYLE[status];
173
- const label = {
174
- running: t("statusRunning"),
175
- off: t("statusOff"),
176
- error: t("statusError"),
177
- available: t("statusAvailable")
178
- };
179
- return /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: cn("gap-1 font-medium", className), children: [
180
- /* @__PURE__ */ jsx(Icon, { className: "h-3.5 w-3.5" }),
181
- label[status]
182
- ] });
183
- }
184
- function CapabilityBadge({ capability }) {
185
- var _a;
186
- const Icon = (_a = CAPABILITY_ICON[capability]) != null ? _a : LR.Puzzle;
187
- return /* @__PURE__ */ jsxs(Badge, { variant: "secondary", className: "gap-1 font-normal", children: [
188
- /* @__PURE__ */ jsx(Icon, { className: "h-3.5 w-3.5" }),
189
- /* @__PURE__ */ jsx("code", { children: capability })
190
- ] });
191
- }
192
- function ControlGroup({
193
- label,
194
- who,
195
- children
196
- }) {
197
- return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border bg-muted/30 px-3 py-2.5", children: [
198
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
199
- label,
200
- who && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "bg-background px-1.5 py-0 text-[10px] font-normal", children: who })
201
- ] }),
202
- /* @__PURE__ */ jsx(Separator, { className: "my-2" }),
203
- children
204
- ] });
205
- }
206
- function ControlRow({
207
- label,
208
- hint,
209
- children
210
- }) {
211
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 py-1.5 [&+&]:border-t [&+&]:border-border/60", children: [
212
- /* @__PURE__ */ jsxs("span", { className: "text-sm leading-tight", children: [
213
- label,
214
- hint && /* @__PURE__ */ jsx("small", { className: "mt-0.5 block text-xs text-muted-foreground", children: hint })
215
- ] }),
216
- children
217
- ] });
218
- }
219
- function Note({ icon: Icon, text }) {
220
- return /* @__PURE__ */ jsxs("p", { className: "flex items-start gap-1.5 py-1 text-sm text-muted-foreground", children: [
221
- /* @__PURE__ */ jsx(Icon, { className: "mt-0.5 h-4 w-4 shrink-0" }),
222
- /* @__PURE__ */ jsx("span", { children: text })
223
- ] });
224
- }
225
- function orgSummary(listing, t) {
226
- if (!listing.allowUserOverride) {
227
- return listing.orgEnabled ? t("orgReadOnlyForced") : t("orgReadOnlyBlocked");
228
- }
229
- return listing.orgEnabled ? t("orgReadOnlyOnOptional") : t("orgReadOnlyOffOptional");
230
- }
231
- export {
232
- PluginCard
233
- };
234
- //# sourceMappingURL=PluginCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../../src/core/components/viewers/plugins/src/PluginCard.tsx"],"sourcesContent":["'use client'\n\n// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport * as LR from 'lucide-react'\nimport { useTranslations } from 'next-intl'\nimport * as React from 'react'\n\nimport { resolvePluginIcon } from '../../../../plugins/host/pluginIcon'\nimport { usePluginMessage } from '../../../../plugins/sdk/messages'\nimport { cn } from '../../../../utils/utils'\nimport { Badge } from '../../../ui/Badge'\nimport { Button } from '../../../ui/Button'\nimport { Separator } from '../../../ui/Separator'\nimport { Switch } from '../../../ui/Switch'\n\nimport { effectiveStatus } from './pluginStatus'\n\nimport type { PluginListing, PluginsAbility } from '../types'\nimport type { LucideIcon } from 'lucide-react'\n\n// Icon and colour both, so status survives a quick scan and colour-blindness.\nconst STATUS_STYLE: Record<PluginListing['status'], { icon: LucideIcon; className: string }> = {\n running: {\n icon: LR.CheckCircle2,\n className: 'border-green-600/40 bg-green-600/10 text-green-700 dark:text-green-400',\n },\n off: {\n icon: LR.CircleSlash,\n className: 'border-muted-foreground/40 bg-muted text-muted-foreground',\n },\n error: {\n icon: LR.AlertTriangle,\n className: 'border-destructive/40 bg-destructive/10 text-destructive',\n },\n available: {\n icon: LR.PackagePlus,\n className: 'border-sky-600/40 bg-sky-600/10 text-sky-700 dark:text-sky-400',\n },\n}\n\n// Which surface a capability contributes to: an icon reads faster than the dotted key.\nconst CAPABILITY_ICON: Record<string, LucideIcon> = {\n 'map.tools': LR.Map,\n 'viewer.legends': LR.SquareMenu,\n 'map.layers': LR.Layers,\n 'bim.tools': LR.Box,\n 'data.pages': LR.Table2,\n 'viewer.tabs': LR.PanelLeft,\n 'ui.dialogs': LR.SquareStack,\n}\n\ninterface Props {\n listing: PluginListing\n ability: PluginsAbility\n onSetInstalled: (installed: boolean) => void\n onSetOrgEnabled: (enabled: boolean) => void\n onSetAllowUserOverride: (allow: boolean) => void\n onSetUserEnabled: (enabled: boolean) => void\n onCopyError: () => void\n}\n\nexport function PluginCard({\n listing,\n ability,\n onSetInstalled,\n onSetOrgEnabled,\n onSetAllowUserOverride,\n onSetUserEnabled,\n onCopyError,\n}: Props) {\n const t = useTranslations('PluginsPage')\n const { manifest } = listing\n // From the switches, not the host: otherwise turning a plugin off leaves the badge\n // reading \"Running\".\n const status = effectiveStatus(listing)\n\n const Icon = resolvePluginIcon(manifest.icon ?? 'Puzzle')\n\n // The plugin's catalog when it ships one, its manifest when it does not — never a\n // raw message key.\n const name = usePluginMessage(manifest.slug, 'name', manifest.name)\n const description = usePluginMessage(manifest.slug, 'description', manifest.description ?? '')\n\n const isAdmin = ability.canConfigureOrg || ability.canInstall\n const userMayChoose = listing.allowUserOverride && ability.canChooseForSelf && status !== 'error'\n const userEnabled = listing.userEnabled ?? listing.orgEnabled\n\n return (\n <article\n className=\"grid gap-4 rounded-xl border bg-background p-5 md:grid-cols-[minmax(0,1fr)_auto]\"\n data-testid={`plugin-${manifest.slug}`}\n >\n <div className=\"min-w-0\">\n <div className=\"flex flex-wrap items-center gap-2\">\n <Icon\n aria-hidden\n className=\"h-5 w-5 shrink-0 text-muted-foreground\"\n data-testid={`plugin-icon-${manifest.slug}`}\n />\n <h2 className=\"text-lg text-foreground\">{name}</h2>\n <StatusBadge status={status} />\n {listing.bundled && (\n <Badge variant=\"outline\" className=\"font-normal text-muted-foreground\">\n {t('bundled')}\n </Badge>\n )}\n </div>\n\n <p className=\"mt-1 text-sm text-muted-foreground\">\n <code>{manifest.slug}</code>\n <span className=\"mx-1.5 opacity-40\">·</span>\n <span className=\"tabular-nums\">v{manifest.version}</span>\n <span className=\"mx-1.5 opacity-40\">·</span>\n {manifest.author || t('unknownAuthor')}\n </p>\n\n {description && <p className=\"mt-2 max-w-[60ch] text-sm\">{description}</p>}\n\n <div className=\"mt-3 flex flex-wrap items-center gap-1.5\">\n <span className=\"text-xs text-muted-foreground\">{t('capabilities')}</span>\n {manifest.capabilities.map(capability => (\n <CapabilityBadge key={capability} capability={capability} />\n ))}\n </div>\n\n {status === 'error' && listing.error && (\n <div className=\"mt-3 rounded-xl border border-destructive/50 bg-destructive/5 p-3\">\n <p className=\"flex items-center gap-1.5 text-sm font-medium text-destructive\">\n <LR.AlertTriangle className=\"h-4 w-4 shrink-0\" />\n {t('errorHeading')}\n </p>\n <p className=\"mt-1.5 overflow-x-auto text-xs\"><code>{listing.error}</code></p>\n <p className=\"mt-1.5 text-xs text-muted-foreground\">{t('errorHint')}</p>\n </div>\n )}\n\n {status === 'available' && (\n <div className=\"mt-3 rounded-xl border border-dashed p-3\">\n <p className=\"text-sm font-medium\">{t('trustHeading')}</p>\n <ul className=\"mt-1.5 list-disc pl-4 text-xs text-muted-foreground\">\n {listing.mountPath && <li>{t('trustMount', { path: listing.mountPath })}</li>}\n <li>\n {manifest.requiredPermissions?.length\n ? t('trustPermissions', { permissions: manifest.requiredPermissions.join(', ') })\n : t('trustNoPermissions')}\n </li>\n <li>{t('trustWarning')}</li>\n </ul>\n </div>\n )}\n </div>\n\n <div className=\"flex min-w-0 flex-col gap-2.5 md:w-[270px]\">\n {status === 'available' ? (\n ability.canInstall && (\n <Button size=\"sm\" onClick={() => onSetInstalled(true)}>\n <LR.PackagePlus className=\"mr-1.5 h-4 w-4\" />\n {t('addToOrg')}\n </Button>\n )\n ) : (\n <>\n {isAdmin ? (\n <ControlGroup label={t('orgGroup')} who={t('orgGroupWho')}>\n {ability.canInstall && (\n <ControlRow label={t('orgInstalled')}>\n <Switch\n checked={listing.installed}\n onCheckedChange={onSetInstalled}\n aria-label={t('orgInstalled')}\n />\n </ControlRow>\n )}\n {ability.canConfigureOrg && (\n <>\n <ControlRow label={t('orgEnabled')}>\n <Switch\n checked={listing.orgEnabled}\n onCheckedChange={onSetOrgEnabled}\n aria-label={t('orgEnabled')}\n />\n </ControlRow>\n <ControlRow\n label={t('orgAllowOverride')}\n hint={listing.allowUserOverride\n ? t('orgAllowOverrideOnHint')\n : t('orgAllowOverrideOffHint')}\n >\n <Switch\n checked={listing.allowUserOverride}\n onCheckedChange={onSetAllowUserOverride}\n aria-label={t('orgAllowOverride')}\n />\n </ControlRow>\n </>\n )}\n </ControlGroup>\n ) : (\n <ControlGroup label={t('orgGroup')}>\n <p className=\"py-1 text-sm text-muted-foreground\">{orgSummary(listing, t)}</p>\n </ControlGroup>\n )}\n\n <ControlGroup label={t('userGroup')}>\n {status === 'error' ? (\n <Note icon={LR.Minus} text={t('userNothingToRun')} />\n ) : userMayChoose ? (\n <ControlRow label={t('userRun')}>\n <Switch\n checked={userEnabled}\n onCheckedChange={onSetUserEnabled}\n aria-label={t('userRun')}\n />\n </ControlRow>\n ) : !ability.canChooseForSelf ? (\n // Not the admin lock below: nothing is locked, this reader just may\n // not change what runs.\n <Note icon={LR.Eye} text={t('userReadOnly')} />\n ) : (\n <Note icon={LR.Lock} text={listing.orgEnabled ? t('userLockedOn') : t('userLockedOff')} />\n )}\n </ControlGroup>\n\n {status === 'error' && (\n <Button size=\"sm\" variant=\"outline\" onClick={onCopyError}>\n {t('copyError')}\n </Button>\n )}\n </>\n )}\n </div>\n </article>\n )\n}\n\nfunction StatusBadge({ status }: { status: PluginListing['status'] }) {\n const t = useTranslations('PluginsPage')\n const { icon: Icon, className } = STATUS_STYLE[status]\n\n const label: Record<PluginListing['status'], string> = {\n running: t('statusRunning'),\n off: t('statusOff'),\n error: t('statusError'),\n available: t('statusAvailable'),\n }\n\n return (\n <Badge variant=\"outline\" className={cn('gap-1 font-medium', className)}>\n <Icon className=\"h-3.5 w-3.5\" />\n {label[status]}\n </Badge>\n )\n}\n\nfunction CapabilityBadge({ capability }: { capability: string }) {\n const Icon = CAPABILITY_ICON[capability] ?? LR.Puzzle\n\n return (\n <Badge variant=\"secondary\" className=\"gap-1 font-normal\">\n <Icon className=\"h-3.5 w-3.5\" />\n <code>{capability}</code>\n </Badge>\n )\n}\n\n// A bordered, faintly-tinted box so the controls read as a panel rather than loose\n// text, borrowing the muted token the app uses for inset surfaces.\nfunction ControlGroup({\n label,\n who,\n children,\n}: {\n label: string\n who?: string\n children: React.ReactNode\n}) {\n return (\n <div className=\"rounded-xl border bg-muted/30 px-3 py-2.5\">\n <div className=\"flex items-center gap-1.5 text-xs text-muted-foreground\">\n {label}\n {who && (\n <Badge variant=\"outline\" className=\"bg-background px-1.5 py-0 text-[10px] font-normal\">\n {who}\n </Badge>\n )}\n </div>\n <Separator className=\"my-2\" />\n {children}\n </div>\n )\n}\n\n/** Rows inside a group are separated, so three switches do not run together. */\nfunction ControlRow({\n label,\n hint,\n children,\n}: {\n label: string\n hint?: string\n children: React.ReactNode\n}) {\n return (\n <div className=\"flex items-center justify-between gap-3 py-1.5 [&+&]:border-t [&+&]:border-border/60\">\n <span className=\"text-sm leading-tight\">\n {label}\n {hint && <small className=\"mt-0.5 block text-xs text-muted-foreground\">{hint}</small>}\n </span>\n {children}\n </div>\n )\n}\n\nfunction Note({ icon: Icon, text }: { icon: LucideIcon; text: string }) {\n return (\n <p className=\"flex items-start gap-1.5 py-1 text-sm text-muted-foreground\">\n <Icon className=\"mt-0.5 h-4 w-4 shrink-0\" />\n <span>{text}</span>\n </p>\n )\n}\n\n/** What a non-admin is told about the organization's decision. */\nfunction orgSummary(\n listing: PluginListing,\n t: ReturnType<typeof useTranslations<'PluginsPage'>>,\n): string {\n if (!listing.allowUserOverride) {\n return listing.orgEnabled ? t('orgReadOnlyForced') : t('orgReadOnlyBlocked')\n }\n return listing.orgEnabled ? t('orgReadOnlyOnOptional') : t('orgReadOnlyOffOptional')\n}\n"],"mappings":";AA+FQ,SAiFU,UAhFR,KADF;AA1FR,YAAY,QAAQ;AACpB,SAAS,uBAAuB;AAGhC,SAAS,yBAAyB;AAClC,SAAS,wBAAwB;AACjC,SAAS,UAAU;AACnB,SAAS,aAAa;AACtB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,cAAc;AAEvB,S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