@rxdrag/rxcms-models 0.3.64 → 0.3.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { Aggregates, Associations, IAggregate, IEntity, IGqlQueryOptions, IQueryArgs, IQueryOptions, ObjectFields } from "@rxdrag/entify-lib";
|
|
2
2
|
export declare class QueryOptions<T extends IEntity = IEntity, WhereExp = unknown, OrderBy = unknown, DistinctExp = unknown> implements IQueryOptions<T, WhereExp, OrderBy, DistinctExp> {
|
|
3
3
|
entityName: string;
|
|
4
|
-
protected _fields:
|
|
4
|
+
protected _fields: string[];
|
|
5
5
|
protected _associations: Associations;
|
|
6
6
|
protected _objectFields: ObjectFields;
|
|
7
7
|
protected _aggregates: Aggregates;
|
|
8
8
|
protected _queryArgs?: IQueryArgs<WhereExp, OrderBy, DistinctExp>;
|
|
9
9
|
protected _noQuery?: boolean;
|
|
10
|
-
constructor(entityName: string, fields?:
|
|
11
|
-
getFields: () =>
|
|
10
|
+
constructor(entityName: string, fields?: string[], queryArgs?: IQueryArgs<WhereExp, OrderBy, DistinctExp>);
|
|
11
|
+
getFields: () => string[];
|
|
12
12
|
getObjectFields: () => ObjectFields;
|
|
13
13
|
getAssociations: () => Associations;
|
|
14
14
|
getAggegates: () => Aggregates | undefined;
|
|
15
15
|
setAssociations: (association?: Associations) => this;
|
|
16
16
|
getQueryArgs: () => IQueryArgs<WhereExp, OrderBy, DistinctExp> | undefined;
|
|
17
17
|
getNoQuery: () => boolean | undefined;
|
|
18
|
-
addField: (...fields:
|
|
18
|
+
addField: (...fields: string[]) => this;
|
|
19
19
|
addAssociation: (name: string, entityName: string, association?: IQueryOptions<any>) => this;
|
|
20
20
|
addObjectField: (name: string, fields: string[]) => this;
|
|
21
21
|
addAggregate: (name: string, aggregate: IAggregate) => this;
|
|
22
22
|
setQueryArgs: (queryArgs?: IQueryArgs<WhereExp, OrderBy, DistinctExp>) => this;
|
|
23
23
|
setNoQuery: (noQuery?: boolean) => this;
|
|
24
|
-
setFields: (fields:
|
|
24
|
+
setFields: (fields: string[]) => this;
|
|
25
25
|
toGqlOptions: () => IGqlQueryOptions<T, WhereExp, OrderBy, DistinctExp>;
|
|
26
26
|
private queryOptionsToGql;
|
|
27
27
|
}
|