import type { Building, DbFile, Site, OpenDataPortal, DatasetGroup, User, Role, Organization, Comment, Sensor, Infrastructure, SensorType } from '../../../core/types/dbTypes'; import type { PluginInstallation, PluginRecord, PluginUserSetting } from '../../../core/types/plugins'; export interface ApiAdapter { getBuildings(): Promise; getBuilding(id: number): Promise; getBuildingsByOsm(osmId: number): Promise; getBuildingsByFeatureId(featureId: string): Promise; getBuildingOsmIds(): Promise; updateBuilding(id: number, patch: Partial): Promise; createBuilding(input: { buildingData: Partial; organizationId: string; }): Promise; listFiles(): Promise; listFile(id: number): Promise; updateFile(id: number, patch: Partial): Promise; listFilesByBuilding(buildingId: number, opts?: { tag?: string; }): Promise; listFilesBySite(siteId: number, opts?: { tag?: string; }): Promise; uploadFileToBuilding(buildingId: number, input: Partial): Promise; uploadFileToSite(siteId: number, input: Partial): Promise; uploadFileToUser(userId: number, input: Partial): Promise; deleteFile(fileId: number): Promise; listOpenDataPortals(): Promise; getOpenDataPortal(id: number): Promise; createOpenDataPortal(input: Partial): Promise; listOpenDataPortalsByMunicipality(municipality: string): Promise; listOpenDataPortalsByMunicipalityAndCountrySubdivision(municipality: string, countrySubdivision: string): Promise; listOpenDataPortalsByCountrySubdivision(countrySubdivision: string): Promise; listOpenDataPortalsByGroup(group: DatasetGroup): Promise; listOpenDataPortalsByName(name: string): Promise; listSites(): Promise; getSite(id: string): Promise; updateSite(id: string, patch: Partial & { siteBuildings?: { connect?: { id: number; }[]; disconnect?: { id: number; }[]; }; }): Promise; createSite(input: Partial): Promise; deleteSite(id: string | number): Promise; getUsers(): Promise; getUser(id: string): Promise; updateUser(id: string, patch: Partial): Promise; deleteUser(id: string): Promise; verifyUserPassword(id: string, password: string): Promise; changeUserPassword(id: string, oldPassword: string, newPassword: string): Promise; createUser(input: { userData: Partial; }): Promise; getUserRole(id: string): Promise; updateUserRole(userId: string, roleId: number): Promise; getOrganization(id: string): Promise; updateOrganization(id: string, patch: Partial): Promise; getOrganizationByName(name: string): Promise; getOrganizationRoles(orgId: string): Promise; getComments(): Promise; getCommentsByBuilding(buildingId: number): Promise; getComment(id: number): Promise; updateComment(id: number, patch: Partial): Promise; deleteComment(id: number): Promise; createComment(input: { commentData: Partial; }): Promise; getCommentsByAuthor(authorId: number): Promise; getSensors(): Promise; getSensorsByBuilding(buildingId: number): Promise; getSensor(id: number): Promise; updateSensor(id: number, patch: Partial): Promise; deleteSensor(id: number): Promise; createSensor(input: { sensorData: Partial; }): Promise; getSensorsByAuthor(authorId: number): Promise; getSensorTypes(): Promise; getSensorType(id: number): Promise; updateSensorType(id: number, sensorTypeData: Partial): Promise; deleteSensorType(id: number): Promise; createSensorType(input: { sensorTypeData: Partial; }): Promise; listPluginInstallations(): Promise; upsertPluginInstallation(pluginId: string, patch: Partial): Promise; deletePluginInstallation(pluginId: string): Promise; listPluginUserSettings(): Promise; upsertPluginUserSetting(pluginId: string, patch: Partial): Promise; listPluginRecords(pluginId: string, collection: string): Promise; putPluginRecord(pluginId: string, collection: string, key: string, data: unknown): Promise; deletePluginRecord(pluginId: string, collection: string, key: string): Promise; listInfrastructure(): Promise; getInfrastructure(id: number): Promise; updateInfrastructure(id: number, patch: Partial): Promise; createInfrastructure(input: Partial): Promise; deleteInfrastructure(id: number): Promise; } //# sourceMappingURL=apiAdapter.d.ts.map