import type { Document } from 'mongoose'; import { Core, Dto } from '../../common'; import { AppChangeLog } from './change-log.interface'; import { AppType, GrantType, Scope, Status } from '../../../enums'; export interface App extends Core { cid: string; type: AppType; name: string; status: Status; scopes: Scope[]; grant_types: GrantType[]; access_token_ttl: number; refresh_token_ttl: number; url?: string; logo?: string; site?: string; slogan?: string; redirect_uris?: string[]; change_logs: AppChangeLog[]; } export type AppInterface = App; export type AppDto = Dto> & { change_logs?: Dto[]; }; export type AppDoc = App & Document;