UNPKG

@statezero/core

Version:

The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate

48 lines (47 loc) 1.43 kB
/** * Model-specific QuerySet implementation */ export class DeepModelLevel1QuerySet extends QuerySet<any> { constructor(ModelClass: ModelConstructor, config?: { nodes?: QueryNode[] | undefined; orderBy?: { field: string; direction: "asc" | "desc"; }[] | undefined; fields?: Set<string> | undefined; aggregations?: Aggregation[] | undefined; initialQueryset?: string | undefined; serializerOptions?: SerializerOptions; materialized?: boolean | undefined; } | undefined, parent?: null); } /** * Model-specific Manager implementation */ export class DeepModelLevel1Manager extends Manager { constructor(ModelClass: any); } /** * Implementation of the DeepModelLevel1 model */ export class DeepModelLevel1 extends Model { static configKey: string; static modelName: string; static primaryKeyField: string; static objects: DeepModelLevel1Manager; static fields: string[]; static schema: any; static relationshipFields: Map<string, { ModelClass: () => Function | null; relationshipType: string; }>; constructor(data: any); /** * Define property getters and setters for all model fields * @private */ private _defineProperties; } import { QuerySet } from '../../../../src'; import { Manager } from '../../../../src'; import { Model } from '../../../../src';