@rxdrag/rxcms-models 0.3.41 → 0.3.43
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.
- package/dist/classes/PageQueryOptions.d.ts +1 -0
- package/dist/classes/QueryOptions.d.ts +5 -5
- package/dist/classes/WebsiteFrameQueryOptions.d.ts +1 -0
- package/dist/fields/PageFields.d.ts +1 -0
- package/dist/fields/WebsiteFrameFields.d.ts +1 -0
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/Page.d.ts +1 -0
- package/dist/interfaces/PageBoolExp.d.ts +1 -0
- package/dist/interfaces/PageDistinctExp.d.ts +1 -0
- package/dist/interfaces/PageInput.d.ts +1 -0
- package/dist/interfaces/PageOrderBy.d.ts +1 -0
- package/dist/interfaces/PageType.d.ts +5 -1
- package/dist/interfaces/WebsiteFrame.d.ts +1 -0
- package/dist/interfaces/WebsiteFrameBoolExp.d.ts +1 -0
- package/dist/interfaces/WebsiteFrameDistinctExp.d.ts +1 -0
- package/dist/interfaces/WebsiteFrameInput.d.ts +1 -0
- package/dist/interfaces/WebsiteFrameOrderBy.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { Aggregates, Associations, IAggregate, IEntity, IGqlQueryOptions, IQueryArgs, IQueryOptions, ObjectFields } from "@rxdrag/entify-hooks/src/interfaces";
|
|
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
|
}
|
|
@@ -10,6 +10,7 @@ export declare class WebsiteFrameQueryOptions extends QueryOptions<WebsiteFrame,
|
|
|
10
10
|
id(): this;
|
|
11
11
|
content(): this;
|
|
12
12
|
settings(): this;
|
|
13
|
+
dataSource(): this;
|
|
13
14
|
createdAt(): this;
|
|
14
15
|
updatedAt(): this;
|
|
15
16
|
lang(options?: LangQueryOptions | (keyof Lang)[]): this;
|
package/dist/index.mjs
CHANGED
|
@@ -1027,6 +1027,7 @@ var PageDistinctEnum = /* @__PURE__ */ ((PageDistinctEnum2) => {
|
|
|
1027
1027
|
PageDistinctEnum2["title"] = "title";
|
|
1028
1028
|
PageDistinctEnum2["remark"] = "remark";
|
|
1029
1029
|
PageDistinctEnum2["pageType"] = "pageType";
|
|
1030
|
+
PageDistinctEnum2["dataSource"] = "dataSource";
|
|
1030
1031
|
PageDistinctEnum2["content"] = "content";
|
|
1031
1032
|
PageDistinctEnum2["extends"] = "extends";
|
|
1032
1033
|
PageDistinctEnum2["createdAt"] = "createdAt";
|
|
@@ -1387,6 +1388,7 @@ var PageType = /* @__PURE__ */ ((PageType2) => {
|
|
|
1387
1388
|
PageType2["Customized"] = "Customized";
|
|
1388
1389
|
PageType2["Page404"] = "Page404";
|
|
1389
1390
|
PageType2["PageError"] = "PageError";
|
|
1391
|
+
PageType2["Thanks"] = "Thanks";
|
|
1390
1392
|
return PageType2;
|
|
1391
1393
|
})(PageType || {});
|
|
1392
1394
|
const ProductCategoryEntityName = "ProductCategory";
|
|
@@ -1497,6 +1499,7 @@ var WebsiteFrameDistinctEnum = /* @__PURE__ */ ((WebsiteFrameDistinctEnum2) => {
|
|
|
1497
1499
|
WebsiteFrameDistinctEnum2["id"] = "id";
|
|
1498
1500
|
WebsiteFrameDistinctEnum2["content"] = "content";
|
|
1499
1501
|
WebsiteFrameDistinctEnum2["settings"] = "settings";
|
|
1502
|
+
WebsiteFrameDistinctEnum2["dataSource"] = "dataSource";
|
|
1500
1503
|
WebsiteFrameDistinctEnum2["createdAt"] = "createdAt";
|
|
1501
1504
|
WebsiteFrameDistinctEnum2["updatedAt"] = "updatedAt";
|
|
1502
1505
|
return WebsiteFrameDistinctEnum2;
|
|
@@ -2176,6 +2179,10 @@ class PageQueryOptions extends QueryOptions {
|
|
|
2176
2179
|
this.addField("pageType");
|
|
2177
2180
|
return this;
|
|
2178
2181
|
}
|
|
2182
|
+
dataSource() {
|
|
2183
|
+
this.addField("dataSource");
|
|
2184
|
+
return this;
|
|
2185
|
+
}
|
|
2179
2186
|
content() {
|
|
2180
2187
|
this.addField("content");
|
|
2181
2188
|
return this;
|
|
@@ -3118,6 +3125,10 @@ class WebsiteFrameQueryOptions extends QueryOptions {
|
|
|
3118
3125
|
this.addField("settings");
|
|
3119
3126
|
return this;
|
|
3120
3127
|
}
|
|
3128
|
+
dataSource() {
|
|
3129
|
+
this.addField("dataSource");
|
|
3130
|
+
return this;
|
|
3131
|
+
}
|
|
3121
3132
|
createdAt() {
|
|
3122
3133
|
this.addField("createdAt");
|
|
3123
3134
|
return this;
|
|
@@ -4720,6 +4731,7 @@ var PageFields = /* @__PURE__ */ ((PageFields2) => {
|
|
|
4720
4731
|
PageFields2["title"] = "title";
|
|
4721
4732
|
PageFields2["remark"] = "remark";
|
|
4722
4733
|
PageFields2["pageType"] = "pageType";
|
|
4734
|
+
PageFields2["dataSource"] = "dataSource";
|
|
4723
4735
|
PageFields2["content"] = "content";
|
|
4724
4736
|
PageFields2["extends"] = "extends";
|
|
4725
4737
|
PageFields2["createdAt"] = "createdAt";
|
|
@@ -5141,6 +5153,7 @@ var WebsiteFrameFields = /* @__PURE__ */ ((WebsiteFrameFields2) => {
|
|
|
5141
5153
|
WebsiteFrameFields2["id"] = "id";
|
|
5142
5154
|
WebsiteFrameFields2["content"] = "content";
|
|
5143
5155
|
WebsiteFrameFields2["settings"] = "settings";
|
|
5156
|
+
WebsiteFrameFields2["dataSource"] = "dataSource";
|
|
5144
5157
|
WebsiteFrameFields2["createdAt"] = "createdAt";
|
|
5145
5158
|
WebsiteFrameFields2["updatedAt"] = "updatedAt";
|
|
5146
5159
|
return WebsiteFrameFields2;
|