import firebase from 'firebase/compat/app'; import ICreatedBy from '../Operations/ICreatedBy'; import IUser from '../User/IUser'; import IUpdate from '../Operations/IUpdate'; export default interface IOrg { readonly id: string; readonly name: string; readonly slug: string; readonly version: string; readonly small_logo?: string; readonly api_keys: IAPIKey[]; readonly updates: IUpdate[]; readonly created_at: ICreatedBy['created_at']; readonly created_by: ICreatedBy['created_by']; } export interface IAPIKey { readonly key: string; readonly rights: APIKeyRight[]; readonly uuid: string; readonly delivered_by: firebase.firestore.DocumentReference | string; } export declare enum APIKeyRight { ADMIN = 0, READ = 1, WRITE = 2, CREATE = 3, UPDATE = 4, DELETE = 5 }