| 196 | } |
| 197 | |
| 198 | export interface IModelService { |
| 199 | name: string; |
| 200 | instance: Model; |
| 201 | relations: IRelation[]; |
| 202 | columns: IColumn[]; |
| 203 | columnNames: string[]; |
| 204 | hooks: ModelHooks; |
| 205 | events: ModelHooks; |
| 206 | isRecursive: boolean; |
| 207 | children: IModelService[]; |
| 208 | queryLimits: IQueryLimitConfig[]; |
| 209 | serialize: SerializationFunction | null; |
| 210 | |
| 211 | setColumns(columns: IColumn[]): void; |
| 212 | setExtensions( |
| 213 | type: Extensions, |
| 214 | hookFunctionType: HookFunctionTypes, |
| 215 | data: PhaseFunction, |
| 216 | ): void; |
| 217 | setQueryLimits(limits: IQueryLimitConfig[]): void; |
| 218 | setSerialization(callback: SerializationFunction): void; |
| 219 | setCacheConfiguration(handler: string, cache: ICacheConfiguration): void; |
| 220 | getCacheConfiguration(handler: HandlerTypes): ICacheConfiguration | null; |
| 221 | setAsRecursive(): void; |
| 222 | } |
| 223 | |
| 224 | export interface IRelation { |
| 225 | type: Relationships; |
no outgoing calls
no test coverage detected