@rxdrag/rxcms-models 0.1.4 → 0.2.1
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/AbilityQueryOptions.d.ts +13 -0
- package/dist/classes/CustomerQueryOptions.d.ts +48 -0
- package/dist/classes/EnquiryQueryOptions.d.ts +36 -0
- package/dist/classes/LangQueryOptions.d.ts +36 -0
- package/dist/classes/MediaFolderQueryOptions.d.ts +30 -0
- package/dist/classes/MediaQueryOptions.d.ts +34 -0
- package/dist/classes/PageQueryOptions.d.ts +44 -0
- package/dist/classes/PostCategoryQueryOptions.d.ts +30 -0
- package/dist/classes/PostQueryOptions.d.ts +68 -0
- package/dist/classes/ProductCategoryQueryOptions.d.ts +30 -0
- package/dist/classes/ProductQueryOptions.d.ts +77 -0
- package/dist/classes/QueryOptions.d.ts +27 -0
- package/dist/classes/RoleQueryOptions.d.ts +16 -0
- package/dist/classes/SlugQueryOptions.d.ts +30 -0
- package/dist/classes/TagQueryOptions.d.ts +35 -0
- package/dist/classes/TemplateCategoryQueryOptions.d.ts +30 -0
- package/dist/classes/TemplateQueryOptions.d.ts +33 -0
- package/dist/classes/ThemeQueryOptions.d.ts +33 -0
- package/dist/classes/UserQueryOptions.d.ts +69 -0
- package/dist/classes/WebsiteMetaQueryOptions.d.ts +7 -0
- package/dist/classes/WebsiteQueryOptions.d.ts +50 -0
- package/dist/classes/WebsiteSettingsQueryOptions.d.ts +32 -0
- package/dist/classes/WebsiteTypeQueryOptions.d.ts +33 -0
- package/dist/classes/index.d.ts +24 -0
- package/dist/classes/metainfo.d.ts +2 -0
- package/dist/fields/AbilityFields.d.ts +2 -0
- package/dist/fields/CustomerFields.d.ts +3 -1
- package/dist/fields/EnquiryFields.d.ts +3 -1
- package/dist/fields/LangFields.d.ts +2 -0
- package/dist/fields/MediaFields.d.ts +6 -2
- package/dist/fields/MediaFolderFields.d.ts +3 -1
- package/dist/fields/PageFields.d.ts +10 -3
- package/dist/fields/PostCategoryFields.d.ts +3 -1
- package/dist/fields/PostFields.d.ts +9 -2
- package/dist/fields/ProductCategoryFields.d.ts +3 -1
- package/dist/fields/ProductFields.d.ts +17 -2
- package/dist/fields/RoleFields.d.ts +3 -1
- package/dist/fields/SlugFields.d.ts +3 -1
- package/dist/fields/TagFields.d.ts +3 -1
- package/dist/fields/TemplateCategoryFields.d.ts +3 -1
- package/dist/fields/TemplateFields.d.ts +3 -1
- package/dist/fields/ThemeFields.d.ts +3 -1
- package/dist/fields/UserFields.d.ts +3 -1
- package/dist/fields/WebsiteFields.d.ts +3 -1
- package/dist/fields/WebsiteMetaFields.d.ts +2 -0
- package/dist/fields/WebsiteSettingsFields.d.ts +2 -0
- package/dist/fields/WebsiteTypeFields.d.ts +3 -1
- package/dist/fields/index.d.ts +0 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2439 -242
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/BaseEntityOrderBy.d.ts +1 -1
- package/dist/interfaces/CustomizeMediaOrderBy.d.ts +1 -1
- package/dist/interfaces/Media.d.ts +2 -0
- package/dist/interfaces/MediaAddonOrderBy.d.ts +5 -0
- package/dist/interfaces/MediaBoolExp.d.ts +1 -0
- package/dist/interfaces/MediaInput.d.ts +1 -0
- package/dist/interfaces/MultiLangableOrderBy.d.ts +1 -1
- package/dist/interfaces/OgMeta.d.ts +5 -1
- package/dist/interfaces/OgMetaBoolExp.d.ts +5 -1
- package/dist/interfaces/OgMetaDistinctExp.d.ts +6 -2
- package/dist/interfaces/OgMetaOrderBy.d.ts +6 -2
- package/dist/interfaces/Page.d.ts +2 -0
- package/dist/interfaces/PageBoolExp.d.ts +2 -0
- package/dist/interfaces/PageDistinctExp.d.ts +5 -1
- package/dist/interfaces/PageInput.d.ts +2 -0
- package/dist/interfaces/PersonOrderBy.d.ts +1 -1
- package/dist/interfaces/Post.d.ts +1 -0
- package/dist/interfaces/PostBoolExp.d.ts +1 -0
- package/dist/interfaces/PostDistinctExp.d.ts +5 -1
- package/dist/interfaces/PostInput.d.ts +1 -0
- package/dist/interfaces/Product.d.ts +9 -0
- package/dist/interfaces/ProductBoolExp.d.ts +5 -0
- package/dist/interfaces/ProductDistinctExp.d.ts +11 -1
- package/dist/interfaces/ProductInput.d.ts +8 -0
- package/dist/interfaces/ProductOrderBy.d.ts +6 -0
- package/dist/interfaces/PublishableDistinctExp.d.ts +5 -1
- package/dist/interfaces/PublishableOrderBy.d.ts +1 -1
- package/dist/interfaces/SeoMetaOrderBy.d.ts +1 -1
- package/dist/interfaces/WebsiteContentDistinctExp.d.ts +5 -1
- package/dist/interfaces/WebsiteContentOrderBy.d.ts +1 -1
- package/dist/interfaces/WebsitePartOrderBy.d.ts +1 -1
- package/dist/interfaces/WebsiteUserOrderBy.d.ts +1 -1
- package/package.json +2 -2
- package/dist/fields/BaseEntityFields.d.ts +0 -15
- package/dist/fields/CustomizeMediaFields.d.ts +0 -7
- package/dist/fields/MultiLangableFields.d.ts +0 -4
- package/dist/fields/OgMetaFields.d.ts +0 -9
- package/dist/fields/PersonFields.d.ts +0 -26
- package/dist/fields/PublishableFields.d.ts +0 -35
- package/dist/fields/SeoMetaFields.d.ts +0 -6
- package/dist/fields/WebsiteContentFields.d.ts +0 -29
- package/dist/fields/WebsitePartFields.d.ts +0 -16
- package/dist/fields/WebsiteUserFields.d.ts +0 -35
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Ability, AbilityBoolExp, AbilityDistinctExp, AbilityOrderBy } from "../interfaces";
|
|
4
|
+
export declare class AbilityQueryOptions extends QueryOptions<Ability, AbilityBoolExp, AbilityOrderBy, AbilityDistinctExp> {
|
|
5
|
+
constructor(fields?: (keyof Ability)[], queryArgs?: IQueryArgs<AbilityBoolExp, AbilityOrderBy, AbilityDistinctExp>);
|
|
6
|
+
id(): this;
|
|
7
|
+
entityUuid(): this;
|
|
8
|
+
columnUuid(): this;
|
|
9
|
+
can(): this;
|
|
10
|
+
expression(): this;
|
|
11
|
+
abilityType(): this;
|
|
12
|
+
roleId(): this;
|
|
13
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Customer, CustomerBoolExp, CustomerDistinctExp, CustomerOrderBy } from "../interfaces";
|
|
4
|
+
import { EnquiryQueryOptions } from './EnquiryQueryOptions';
|
|
5
|
+
import { Enquiry } from '../interfaces';
|
|
6
|
+
import { EnquiryBoolExp } from '../interfaces';
|
|
7
|
+
export declare class CustomerQueryOptions extends QueryOptions<Customer, CustomerBoolExp, CustomerOrderBy, CustomerDistinctExp> {
|
|
8
|
+
constructor(fields?: (keyof Customer)[], queryArgs?: IQueryArgs<CustomerBoolExp, CustomerOrderBy, CustomerDistinctExp>);
|
|
9
|
+
id(): this;
|
|
10
|
+
websiteId(): this;
|
|
11
|
+
/**
|
|
12
|
+
* 创建时间
|
|
13
|
+
*/
|
|
14
|
+
createdAt(): this;
|
|
15
|
+
/**
|
|
16
|
+
* 更新时间
|
|
17
|
+
*/
|
|
18
|
+
updatedAt(): this;
|
|
19
|
+
/**
|
|
20
|
+
* 备注
|
|
21
|
+
*/
|
|
22
|
+
remark(): this;
|
|
23
|
+
/**
|
|
24
|
+
* 邮箱
|
|
25
|
+
*/
|
|
26
|
+
email(): this;
|
|
27
|
+
/**
|
|
28
|
+
* 电话
|
|
29
|
+
*/
|
|
30
|
+
tel(): this;
|
|
31
|
+
/**
|
|
32
|
+
* 电话2
|
|
33
|
+
*/
|
|
34
|
+
tel2(): this;
|
|
35
|
+
name(): this;
|
|
36
|
+
mobile(): this;
|
|
37
|
+
whatsApp(): this;
|
|
38
|
+
linkedIn(): this;
|
|
39
|
+
twitter(): this;
|
|
40
|
+
facebook(): this;
|
|
41
|
+
instagram(): this;
|
|
42
|
+
/**
|
|
43
|
+
* 简介
|
|
44
|
+
*/
|
|
45
|
+
summary(): this;
|
|
46
|
+
enquires(options?: EnquiryQueryOptions | (keyof Enquiry)[]): this;
|
|
47
|
+
enquiresAggregate(aggregate: IAggregate<EnquiryBoolExp>): this;
|
|
48
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Enquiry, EnquiryBoolExp, EnquiryDistinctExp, EnquiryOrderBy } from "../interfaces";
|
|
4
|
+
import { CustomerQueryOptions } from './CustomerQueryOptions';
|
|
5
|
+
import { Customer } from '../interfaces';
|
|
6
|
+
export declare class EnquiryQueryOptions extends QueryOptions<Enquiry, EnquiryBoolExp, EnquiryOrderBy, EnquiryDistinctExp> {
|
|
7
|
+
constructor(fields?: (keyof Enquiry)[], queryArgs?: IQueryArgs<EnquiryBoolExp, EnquiryOrderBy, EnquiryDistinctExp>);
|
|
8
|
+
id(): this;
|
|
9
|
+
title(): this;
|
|
10
|
+
company(): this;
|
|
11
|
+
name(): this;
|
|
12
|
+
email(): this;
|
|
13
|
+
message(): this;
|
|
14
|
+
fromUrl(): this;
|
|
15
|
+
formIp(): this;
|
|
16
|
+
userAgent(): this;
|
|
17
|
+
/**
|
|
18
|
+
* 来源cta
|
|
19
|
+
*/
|
|
20
|
+
fromCta(): this;
|
|
21
|
+
read(): this;
|
|
22
|
+
websiteId(): this;
|
|
23
|
+
/**
|
|
24
|
+
* 创建时间
|
|
25
|
+
*/
|
|
26
|
+
createdAt(): this;
|
|
27
|
+
/**
|
|
28
|
+
* 更新时间
|
|
29
|
+
*/
|
|
30
|
+
updatedAt(): this;
|
|
31
|
+
/**
|
|
32
|
+
* 备注
|
|
33
|
+
*/
|
|
34
|
+
remark(): this;
|
|
35
|
+
customer(options?: CustomerQueryOptions | (keyof Customer)[]): this;
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Lang, LangBoolExp, LangDistinctExp, LangOrderBy } from "../interfaces";
|
|
4
|
+
export declare class LangQueryOptions extends QueryOptions<Lang, LangBoolExp, LangOrderBy, LangDistinctExp> {
|
|
5
|
+
constructor(fields?: (keyof Lang)[], queryArgs?: IQueryArgs<LangBoolExp, LangOrderBy, LangDistinctExp>);
|
|
6
|
+
id(): this;
|
|
7
|
+
/**
|
|
8
|
+
* 缩写
|
|
9
|
+
*/
|
|
10
|
+
abbr(): this;
|
|
11
|
+
/**
|
|
12
|
+
* 英文名称
|
|
13
|
+
*/
|
|
14
|
+
enName(): this;
|
|
15
|
+
/**
|
|
16
|
+
* 本地名称
|
|
17
|
+
*/
|
|
18
|
+
localName(): this;
|
|
19
|
+
/**
|
|
20
|
+
* 国旗图标
|
|
21
|
+
*/
|
|
22
|
+
icon(): this;
|
|
23
|
+
/**
|
|
24
|
+
* 备注
|
|
25
|
+
*/
|
|
26
|
+
remark(): this;
|
|
27
|
+
websiteId(): this;
|
|
28
|
+
/**
|
|
29
|
+
* 创建时间
|
|
30
|
+
*/
|
|
31
|
+
createdAt(): this;
|
|
32
|
+
/**
|
|
33
|
+
* 更新时间
|
|
34
|
+
*/
|
|
35
|
+
updatedAt(): this;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { MediaFolder, MediaFolderBoolExp, MediaFolderDistinctExp, MediaFolderOrderBy } from "../interfaces";
|
|
4
|
+
import { MediaQueryOptions } from './MediaQueryOptions';
|
|
5
|
+
import { Media } from '../interfaces';
|
|
6
|
+
import { MediaBoolExp } from '../interfaces';
|
|
7
|
+
export declare class MediaFolderQueryOptions extends QueryOptions<MediaFolder, MediaFolderBoolExp, MediaFolderOrderBy, MediaFolderDistinctExp> {
|
|
8
|
+
constructor(fields?: (keyof MediaFolder)[], queryArgs?: IQueryArgs<MediaFolderBoolExp, MediaFolderOrderBy, MediaFolderDistinctExp>);
|
|
9
|
+
id(): this;
|
|
10
|
+
name(): this;
|
|
11
|
+
seqValue(): this;
|
|
12
|
+
websiteId(): this;
|
|
13
|
+
/**
|
|
14
|
+
* 创建时间
|
|
15
|
+
*/
|
|
16
|
+
createdAt(): this;
|
|
17
|
+
/**
|
|
18
|
+
* 更新时间
|
|
19
|
+
*/
|
|
20
|
+
updatedAt(): this;
|
|
21
|
+
/**
|
|
22
|
+
* 备注
|
|
23
|
+
*/
|
|
24
|
+
remark(): this;
|
|
25
|
+
children(options?: MediaFolderQueryOptions | (keyof MediaFolder)[]): this;
|
|
26
|
+
childrenAggregate(aggregate: IAggregate<MediaFolderBoolExp>): this;
|
|
27
|
+
parent(options?: MediaFolderQueryOptions | (keyof MediaFolder)[]): this;
|
|
28
|
+
medias(options?: MediaQueryOptions | (keyof Media)[]): this;
|
|
29
|
+
mediasAggregate(aggregate: IAggregate<MediaBoolExp>): this;
|
|
30
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Media, MediaBoolExp, MediaDistinctExp, MediaOrderBy, MediaAddon } from "../interfaces";
|
|
4
|
+
import { MediaAddonOrderBy } from "../interfaces/MediaAddonOrderBy";
|
|
5
|
+
import { MediaFolderQueryOptions } from './MediaFolderQueryOptions';
|
|
6
|
+
import { MediaFolder } from '../interfaces';
|
|
7
|
+
import { UserQueryOptions } from './UserQueryOptions';
|
|
8
|
+
import { User } from '../interfaces';
|
|
9
|
+
import { ProductQueryOptions } from './ProductQueryOptions';
|
|
10
|
+
import { Product } from '../interfaces';
|
|
11
|
+
import { ProductBoolExp } from '../interfaces';
|
|
12
|
+
export declare class MediaQueryOptions extends QueryOptions<(Media & MediaAddon), MediaBoolExp, (MediaOrderBy & MediaAddonOrderBy), MediaDistinctExp> {
|
|
13
|
+
constructor(fields?: (keyof (Media & MediaAddon))[], queryArgs?: IQueryArgs<MediaBoolExp, (MediaOrderBy & MediaAddonOrderBy), MediaDistinctExp>);
|
|
14
|
+
id(): this;
|
|
15
|
+
name(): this;
|
|
16
|
+
size(): this;
|
|
17
|
+
mimeType(): this;
|
|
18
|
+
extName(): this;
|
|
19
|
+
file(fields: string[]): this;
|
|
20
|
+
description(): this;
|
|
21
|
+
createdAt(): this;
|
|
22
|
+
updatedAt(): this;
|
|
23
|
+
mediaType(): this;
|
|
24
|
+
/**
|
|
25
|
+
* 网站Id
|
|
26
|
+
*/
|
|
27
|
+
websiteId(): this;
|
|
28
|
+
folder(options?: MediaFolderQueryOptions | (keyof MediaFolder)[]): this;
|
|
29
|
+
avatarOfUser(options?: UserQueryOptions | (keyof User)[]): this;
|
|
30
|
+
usedByProducts(options?: ProductQueryOptions | (keyof Product)[]): this;
|
|
31
|
+
usedByProductsAggregate(aggregate: IAggregate<ProductBoolExp>): this;
|
|
32
|
+
attachmentOf(options?: ProductQueryOptions | (keyof Product)[]): this;
|
|
33
|
+
attachmentOfAggregate(aggregate: IAggregate<ProductBoolExp>): this;
|
|
34
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Page, PageBoolExp, PageDistinctExp, PageOrderBy } from "../interfaces";
|
|
4
|
+
import { SlugQueryOptions } from './SlugQueryOptions';
|
|
5
|
+
import { Slug } from '../interfaces';
|
|
6
|
+
import { MediaQueryOptions } from './MediaQueryOptions';
|
|
7
|
+
import { Media } from '../interfaces';
|
|
8
|
+
export declare class PageQueryOptions extends QueryOptions<Page, PageBoolExp, PageOrderBy, PageDistinctExp> {
|
|
9
|
+
constructor(fields?: (keyof Page)[], queryArgs?: IQueryArgs<PageBoolExp, PageOrderBy, PageDistinctExp>);
|
|
10
|
+
id(): this;
|
|
11
|
+
title(): this;
|
|
12
|
+
content(): this;
|
|
13
|
+
/**
|
|
14
|
+
* 备注
|
|
15
|
+
*/
|
|
16
|
+
remark(): this;
|
|
17
|
+
langAbbr(): this;
|
|
18
|
+
extends(): this;
|
|
19
|
+
websiteId(): this;
|
|
20
|
+
/**
|
|
21
|
+
* 创建时间
|
|
22
|
+
*/
|
|
23
|
+
createdAt(): this;
|
|
24
|
+
/**
|
|
25
|
+
* 更新时间
|
|
26
|
+
*/
|
|
27
|
+
updatedAt(): this;
|
|
28
|
+
seoTitle(): this;
|
|
29
|
+
seoKeywords(): this;
|
|
30
|
+
seoDescription(): this;
|
|
31
|
+
ogTitle(): this;
|
|
32
|
+
ogDescription(): this;
|
|
33
|
+
ogUrl(): this;
|
|
34
|
+
ogSiteName(): this;
|
|
35
|
+
ogType(): this;
|
|
36
|
+
xCard(): this;
|
|
37
|
+
xSite(): this;
|
|
38
|
+
xTitle(): this;
|
|
39
|
+
xDescription(): this;
|
|
40
|
+
xUrl(): this;
|
|
41
|
+
lang(): this;
|
|
42
|
+
slug(options?: SlugQueryOptions | (keyof Slug)[]): this;
|
|
43
|
+
ogImage(options?: MediaQueryOptions | (keyof Media)[]): this;
|
|
44
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { PostCategory, PostCategoryBoolExp, PostCategoryDistinctExp, PostCategoryOrderBy } from "../interfaces";
|
|
4
|
+
import { PostQueryOptions } from './PostQueryOptions';
|
|
5
|
+
import { Post } from '../interfaces';
|
|
6
|
+
import { PostBoolExp } from '../interfaces';
|
|
7
|
+
export declare class PostCategoryQueryOptions extends QueryOptions<PostCategory, PostCategoryBoolExp, PostCategoryOrderBy, PostCategoryDistinctExp> {
|
|
8
|
+
constructor(fields?: (keyof PostCategory)[], queryArgs?: IQueryArgs<PostCategoryBoolExp, PostCategoryOrderBy, PostCategoryDistinctExp>);
|
|
9
|
+
id(): this;
|
|
10
|
+
name(): this;
|
|
11
|
+
seqValue(): this;
|
|
12
|
+
websiteId(): this;
|
|
13
|
+
/**
|
|
14
|
+
* 创建时间
|
|
15
|
+
*/
|
|
16
|
+
createdAt(): this;
|
|
17
|
+
/**
|
|
18
|
+
* 更新时间
|
|
19
|
+
*/
|
|
20
|
+
updatedAt(): this;
|
|
21
|
+
/**
|
|
22
|
+
* 备注
|
|
23
|
+
*/
|
|
24
|
+
remark(): this;
|
|
25
|
+
children(options?: PostCategoryQueryOptions | (keyof PostCategory)[]): this;
|
|
26
|
+
childrenAggregate(aggregate: IAggregate<PostCategoryBoolExp>): this;
|
|
27
|
+
posts(options?: PostQueryOptions | (keyof Post)[]): this;
|
|
28
|
+
postsAggregate(aggregate: IAggregate<PostBoolExp>): this;
|
|
29
|
+
parent(options?: PostCategoryQueryOptions | (keyof PostCategory)[]): this;
|
|
30
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Post, PostBoolExp, PostDistinctExp, PostOrderBy } from "../interfaces";
|
|
4
|
+
import { SlugQueryOptions } from './SlugQueryOptions';
|
|
5
|
+
import { Slug } from '../interfaces';
|
|
6
|
+
import { TagQueryOptions } from './TagQueryOptions';
|
|
7
|
+
import { Tag } from '../interfaces';
|
|
8
|
+
import { TagBoolExp } from '../interfaces';
|
|
9
|
+
import { UserQueryOptions } from './UserQueryOptions';
|
|
10
|
+
import { User } from '../interfaces';
|
|
11
|
+
import { MediaQueryOptions } from './MediaQueryOptions';
|
|
12
|
+
import { Media } from '../interfaces';
|
|
13
|
+
import { PostCategoryQueryOptions } from './PostCategoryQueryOptions';
|
|
14
|
+
import { PostCategory } from '../interfaces';
|
|
15
|
+
export declare class PostQueryOptions extends QueryOptions<Post, PostBoolExp, PostOrderBy, PostDistinctExp> {
|
|
16
|
+
constructor(fields?: (keyof Post)[], queryArgs?: IQueryArgs<PostBoolExp, PostOrderBy, PostDistinctExp>);
|
|
17
|
+
id(): this;
|
|
18
|
+
seqValue(): this;
|
|
19
|
+
/**
|
|
20
|
+
* 置顶
|
|
21
|
+
*/
|
|
22
|
+
pinToTop(): this;
|
|
23
|
+
authorEmail(): this;
|
|
24
|
+
summary(): this;
|
|
25
|
+
/**
|
|
26
|
+
* 发布的内容
|
|
27
|
+
*/
|
|
28
|
+
publishedContent(): this;
|
|
29
|
+
publishedAt(): this;
|
|
30
|
+
status(): this;
|
|
31
|
+
title(): this;
|
|
32
|
+
content(): this;
|
|
33
|
+
extends(): this;
|
|
34
|
+
websiteId(): this;
|
|
35
|
+
/**
|
|
36
|
+
* 创建时间
|
|
37
|
+
*/
|
|
38
|
+
createdAt(): this;
|
|
39
|
+
/**
|
|
40
|
+
* 更新时间
|
|
41
|
+
*/
|
|
42
|
+
updatedAt(): this;
|
|
43
|
+
/**
|
|
44
|
+
* 备注
|
|
45
|
+
*/
|
|
46
|
+
remark(): this;
|
|
47
|
+
seoTitle(): this;
|
|
48
|
+
seoKeywords(): this;
|
|
49
|
+
seoDescription(): this;
|
|
50
|
+
ogTitle(): this;
|
|
51
|
+
ogDescription(): this;
|
|
52
|
+
ogUrl(): this;
|
|
53
|
+
ogSiteName(): this;
|
|
54
|
+
ogType(): this;
|
|
55
|
+
xCard(): this;
|
|
56
|
+
xSite(): this;
|
|
57
|
+
xTitle(): this;
|
|
58
|
+
xDescription(): this;
|
|
59
|
+
xUrl(): this;
|
|
60
|
+
lang(): this;
|
|
61
|
+
slug(options?: SlugQueryOptions | (keyof Slug)[]): this;
|
|
62
|
+
tags(options?: TagQueryOptions | (keyof Tag)[]): this;
|
|
63
|
+
tagsAggregate(aggregate: IAggregate<TagBoolExp>): this;
|
|
64
|
+
author(options?: UserQueryOptions | (keyof User)[]): this;
|
|
65
|
+
cover(options?: MediaQueryOptions | (keyof Media)[]): this;
|
|
66
|
+
ogImage(options?: MediaQueryOptions | (keyof Media)[]): this;
|
|
67
|
+
category(options?: PostCategoryQueryOptions | (keyof PostCategory)[]): this;
|
|
68
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { ProductCategory, ProductCategoryBoolExp, ProductCategoryDistinctExp, ProductCategoryOrderBy } from "../interfaces";
|
|
4
|
+
import { ProductQueryOptions } from './ProductQueryOptions';
|
|
5
|
+
import { Product } from '../interfaces';
|
|
6
|
+
import { ProductBoolExp } from '../interfaces';
|
|
7
|
+
export declare class ProductCategoryQueryOptions extends QueryOptions<ProductCategory, ProductCategoryBoolExp, ProductCategoryOrderBy, ProductCategoryDistinctExp> {
|
|
8
|
+
constructor(fields?: (keyof ProductCategory)[], queryArgs?: IQueryArgs<ProductCategoryBoolExp, ProductCategoryOrderBy, ProductCategoryDistinctExp>);
|
|
9
|
+
id(): this;
|
|
10
|
+
name(): this;
|
|
11
|
+
seqValue(): this;
|
|
12
|
+
websiteId(): this;
|
|
13
|
+
/**
|
|
14
|
+
* 创建时间
|
|
15
|
+
*/
|
|
16
|
+
createdAt(): this;
|
|
17
|
+
/**
|
|
18
|
+
* 更新时间
|
|
19
|
+
*/
|
|
20
|
+
updatedAt(): this;
|
|
21
|
+
/**
|
|
22
|
+
* 备注
|
|
23
|
+
*/
|
|
24
|
+
remark(): this;
|
|
25
|
+
children(options?: ProductCategoryQueryOptions | (keyof ProductCategory)[]): this;
|
|
26
|
+
childrenAggregate(aggregate: IAggregate<ProductCategoryBoolExp>): this;
|
|
27
|
+
parent(options?: ProductCategoryQueryOptions | (keyof ProductCategory)[]): this;
|
|
28
|
+
products(options?: ProductQueryOptions | (keyof Product)[]): this;
|
|
29
|
+
productsAggregate(aggregate: IAggregate<ProductBoolExp>): this;
|
|
30
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Product, ProductBoolExp, ProductDistinctExp, ProductOrderBy, MediaAddon } from "../interfaces";
|
|
4
|
+
import { MediaAddonOrderBy } from "../interfaces/MediaAddonOrderBy";
|
|
5
|
+
import { ProductCategoryQueryOptions } from './ProductCategoryQueryOptions';
|
|
6
|
+
import { ProductCategory } from '../interfaces';
|
|
7
|
+
import { MediaQueryOptions } from './MediaQueryOptions';
|
|
8
|
+
import { Media } from '../interfaces';
|
|
9
|
+
import { MediaBoolExp } from '../interfaces';
|
|
10
|
+
import { SlugQueryOptions } from './SlugQueryOptions';
|
|
11
|
+
import { Slug } from '../interfaces';
|
|
12
|
+
import { TagQueryOptions } from './TagQueryOptions';
|
|
13
|
+
import { Tag } from '../interfaces';
|
|
14
|
+
import { TagBoolExp } from '../interfaces';
|
|
15
|
+
import { UserQueryOptions } from './UserQueryOptions';
|
|
16
|
+
import { User } from '../interfaces';
|
|
17
|
+
export declare class ProductQueryOptions extends QueryOptions<(Product & MediaAddon), ProductBoolExp, (ProductOrderBy & MediaAddonOrderBy), ProductDistinctExp> {
|
|
18
|
+
constructor(fields?: (keyof (Product & MediaAddon))[], queryArgs?: IQueryArgs<ProductBoolExp, (ProductOrderBy & MediaAddonOrderBy), ProductDistinctExp>);
|
|
19
|
+
id(): this;
|
|
20
|
+
published(): this;
|
|
21
|
+
summary(): this;
|
|
22
|
+
featured(): this;
|
|
23
|
+
showInNavMenu(): this;
|
|
24
|
+
seqValue(): this;
|
|
25
|
+
/**
|
|
26
|
+
* 特色
|
|
27
|
+
*/
|
|
28
|
+
features(): this;
|
|
29
|
+
content2(): this;
|
|
30
|
+
content3(): this;
|
|
31
|
+
/**
|
|
32
|
+
* 发布的内容
|
|
33
|
+
*/
|
|
34
|
+
publishedContent(): this;
|
|
35
|
+
publishedAt(): this;
|
|
36
|
+
status(): this;
|
|
37
|
+
title(): this;
|
|
38
|
+
content(): this;
|
|
39
|
+
extends(): this;
|
|
40
|
+
websiteId(): this;
|
|
41
|
+
/**
|
|
42
|
+
* 创建时间
|
|
43
|
+
*/
|
|
44
|
+
createdAt(): this;
|
|
45
|
+
/**
|
|
46
|
+
* 更新时间
|
|
47
|
+
*/
|
|
48
|
+
updatedAt(): this;
|
|
49
|
+
/**
|
|
50
|
+
* 备注
|
|
51
|
+
*/
|
|
52
|
+
remark(): this;
|
|
53
|
+
seoTitle(): this;
|
|
54
|
+
seoKeywords(): this;
|
|
55
|
+
seoDescription(): this;
|
|
56
|
+
ogTitle(): this;
|
|
57
|
+
ogDescription(): this;
|
|
58
|
+
ogUrl(): this;
|
|
59
|
+
ogSiteName(): this;
|
|
60
|
+
ogType(): this;
|
|
61
|
+
xCard(): this;
|
|
62
|
+
xSite(): this;
|
|
63
|
+
xTitle(): this;
|
|
64
|
+
xDescription(): this;
|
|
65
|
+
xUrl(): this;
|
|
66
|
+
lang(): this;
|
|
67
|
+
category(options?: ProductCategoryQueryOptions | (keyof ProductCategory)[]): this;
|
|
68
|
+
medias(options?: MediaQueryOptions | (keyof Media)[]): this;
|
|
69
|
+
mediasAggregate(aggregate: IAggregate<MediaBoolExp>): this;
|
|
70
|
+
slug(options?: SlugQueryOptions | (keyof Slug)[]): this;
|
|
71
|
+
tags(options?: TagQueryOptions | (keyof Tag)[]): this;
|
|
72
|
+
tagsAggregate(aggregate: IAggregate<TagBoolExp>): this;
|
|
73
|
+
ogImage(options?: MediaQueryOptions | (keyof Media)[]): this;
|
|
74
|
+
attachments(options?: MediaQueryOptions | (keyof Media)[]): this;
|
|
75
|
+
attachmentsAggregate(aggregate: IAggregate<MediaBoolExp>): this;
|
|
76
|
+
creator(options?: UserQueryOptions | (keyof User)[]): this;
|
|
77
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Aggregates, Associations, IAggregate, IEntity, IGqlQueryOptions, IQueryArgs, IQueryOptions, ObjectFields } from "@rxdrag/entify-hooks/src/interfaces";
|
|
2
|
+
export declare class QueryOptions<T extends IEntity = IEntity, WhereExp = unknown, OrderBy = unknown, DistinctExp = unknown> implements IQueryOptions<T, WhereExp, OrderBy, DistinctExp> {
|
|
3
|
+
entityName: string;
|
|
4
|
+
protected _fields: (keyof T)[];
|
|
5
|
+
protected _associations: Associations;
|
|
6
|
+
protected _objectFields: ObjectFields;
|
|
7
|
+
protected _aggregates: Aggregates;
|
|
8
|
+
protected _queryArgs?: IQueryArgs<WhereExp, OrderBy, DistinctExp>;
|
|
9
|
+
protected _noQuery?: boolean;
|
|
10
|
+
constructor(entityName: string, fields?: (keyof T)[], queryArgs?: IQueryArgs<WhereExp, OrderBy, DistinctExp>);
|
|
11
|
+
getFields: () => (keyof T)[];
|
|
12
|
+
getObjectFields: () => ObjectFields;
|
|
13
|
+
getAssociations: () => Associations;
|
|
14
|
+
getAggegates: () => Aggregates | undefined;
|
|
15
|
+
setAssociations: (association?: Associations) => this;
|
|
16
|
+
getQueryArgs: () => IQueryArgs<WhereExp, OrderBy, DistinctExp> | undefined;
|
|
17
|
+
getNoQuery: () => boolean | undefined;
|
|
18
|
+
addField: (...fields: (keyof T)[]) => this;
|
|
19
|
+
addAssociation: (name: string, entityName: string, association?: IQueryOptions<any>) => this;
|
|
20
|
+
addObjectField: (name: string, fields: string[]) => this;
|
|
21
|
+
addAggregate: (name: string, aggregate: IAggregate) => this;
|
|
22
|
+
setQueryArgs: (queryArgs?: IQueryArgs<WhereExp, OrderBy, DistinctExp>) => this;
|
|
23
|
+
setNoQuery: (noQuery?: boolean) => this;
|
|
24
|
+
setFields: (fields: (keyof T)[]) => this;
|
|
25
|
+
toGqlOptions: () => IGqlQueryOptions<T, WhereExp, OrderBy, DistinctExp>;
|
|
26
|
+
private queryOptionsToGql;
|
|
27
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Role, RoleBoolExp, RoleDistinctExp, RoleOrderBy } from "../interfaces";
|
|
4
|
+
import { UserQueryOptions } from './UserQueryOptions';
|
|
5
|
+
import { User } from '../interfaces';
|
|
6
|
+
import { UserBoolExp } from '../interfaces';
|
|
7
|
+
export declare class RoleQueryOptions extends QueryOptions<Role, RoleBoolExp, RoleOrderBy, RoleDistinctExp> {
|
|
8
|
+
constructor(fields?: (keyof Role)[], queryArgs?: IQueryArgs<RoleBoolExp, RoleOrderBy, RoleDistinctExp>);
|
|
9
|
+
id(): this;
|
|
10
|
+
name(): this;
|
|
11
|
+
description(): this;
|
|
12
|
+
createdAt(): this;
|
|
13
|
+
updatedAt(): this;
|
|
14
|
+
users(options?: UserQueryOptions | (keyof User)[]): this;
|
|
15
|
+
usersAggregate(aggregate: IAggregate<UserBoolExp>): this;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Slug, SlugBoolExp, SlugDistinctExp, SlugOrderBy } from "../interfaces";
|
|
4
|
+
import { PostQueryOptions } from './PostQueryOptions';
|
|
5
|
+
import { Post } from '../interfaces';
|
|
6
|
+
import { ProductQueryOptions } from './ProductQueryOptions';
|
|
7
|
+
import { Product } from '../interfaces';
|
|
8
|
+
import { PageQueryOptions } from './PageQueryOptions';
|
|
9
|
+
import { Page } from '../interfaces';
|
|
10
|
+
export declare class SlugQueryOptions extends QueryOptions<Slug, SlugBoolExp, SlugOrderBy, SlugDistinctExp> {
|
|
11
|
+
constructor(fields?: (keyof Slug)[], queryArgs?: IQueryArgs<SlugBoolExp, SlugOrderBy, SlugDistinctExp>);
|
|
12
|
+
id(): this;
|
|
13
|
+
uniqueName(): this;
|
|
14
|
+
websiteId(): this;
|
|
15
|
+
/**
|
|
16
|
+
* 创建时间
|
|
17
|
+
*/
|
|
18
|
+
createdAt(): this;
|
|
19
|
+
/**
|
|
20
|
+
* 更新时间
|
|
21
|
+
*/
|
|
22
|
+
updatedAt(): this;
|
|
23
|
+
/**
|
|
24
|
+
* 备注
|
|
25
|
+
*/
|
|
26
|
+
remark(): this;
|
|
27
|
+
post(options?: PostQueryOptions | (keyof Post)[]): this;
|
|
28
|
+
product(options?: ProductQueryOptions | (keyof Product)[]): this;
|
|
29
|
+
page(options?: PageQueryOptions | (keyof Page)[]): this;
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Tag, TagBoolExp, TagDistinctExp, TagOrderBy } from "../interfaces";
|
|
4
|
+
import { PostQueryOptions } from './PostQueryOptions';
|
|
5
|
+
import { Post } from '../interfaces';
|
|
6
|
+
import { PostBoolExp } from '../interfaces';
|
|
7
|
+
import { ProductQueryOptions } from './ProductQueryOptions';
|
|
8
|
+
import { Product } from '../interfaces';
|
|
9
|
+
import { ProductBoolExp } from '../interfaces';
|
|
10
|
+
export declare class TagQueryOptions extends QueryOptions<Tag, TagBoolExp, TagOrderBy, TagDistinctExp> {
|
|
11
|
+
constructor(fields?: (keyof Tag)[], queryArgs?: IQueryArgs<TagBoolExp, TagOrderBy, TagDistinctExp>);
|
|
12
|
+
id(): this;
|
|
13
|
+
/**
|
|
14
|
+
* 名称
|
|
15
|
+
*/
|
|
16
|
+
name(): this;
|
|
17
|
+
color(): this;
|
|
18
|
+
websiteId(): this;
|
|
19
|
+
/**
|
|
20
|
+
* 创建时间
|
|
21
|
+
*/
|
|
22
|
+
createdAt(): this;
|
|
23
|
+
/**
|
|
24
|
+
* 更新时间
|
|
25
|
+
*/
|
|
26
|
+
updatedAt(): this;
|
|
27
|
+
/**
|
|
28
|
+
* 备注
|
|
29
|
+
*/
|
|
30
|
+
remark(): this;
|
|
31
|
+
posts(options?: PostQueryOptions | (keyof Post)[]): this;
|
|
32
|
+
postsAggregate(aggregate: IAggregate<PostBoolExp>): this;
|
|
33
|
+
products(options?: ProductQueryOptions | (keyof Product)[]): this;
|
|
34
|
+
productsAggregate(aggregate: IAggregate<ProductBoolExp>): this;
|
|
35
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { TemplateCategory, TemplateCategoryBoolExp, TemplateCategoryDistinctExp, TemplateCategoryOrderBy } from "../interfaces";
|
|
4
|
+
import { TemplateQueryOptions } from './TemplateQueryOptions';
|
|
5
|
+
import { Template } from '../interfaces';
|
|
6
|
+
import { TemplateBoolExp } from '../interfaces';
|
|
7
|
+
import { ThemeQueryOptions } from './ThemeQueryOptions';
|
|
8
|
+
import { Theme } from '../interfaces';
|
|
9
|
+
export declare class TemplateCategoryQueryOptions extends QueryOptions<TemplateCategory, TemplateCategoryBoolExp, TemplateCategoryOrderBy, TemplateCategoryDistinctExp> {
|
|
10
|
+
constructor(fields?: (keyof TemplateCategory)[], queryArgs?: IQueryArgs<TemplateCategoryBoolExp, TemplateCategoryOrderBy, TemplateCategoryDistinctExp>);
|
|
11
|
+
id(): this;
|
|
12
|
+
name(): this;
|
|
13
|
+
seqValue(): this;
|
|
14
|
+
websiteId(): this;
|
|
15
|
+
/**
|
|
16
|
+
* 创建时间
|
|
17
|
+
*/
|
|
18
|
+
createdAt(): this;
|
|
19
|
+
/**
|
|
20
|
+
* 更新时间
|
|
21
|
+
*/
|
|
22
|
+
updatedAt(): this;
|
|
23
|
+
/**
|
|
24
|
+
* 备注
|
|
25
|
+
*/
|
|
26
|
+
remark(): this;
|
|
27
|
+
templates(options?: TemplateQueryOptions | (keyof Template)[]): this;
|
|
28
|
+
templatesAggregate(aggregate: IAggregate<TemplateBoolExp>): this;
|
|
29
|
+
theme(options?: ThemeQueryOptions | (keyof Theme)[]): this;
|
|
30
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Template, TemplateBoolExp, TemplateDistinctExp, TemplateOrderBy } from "../interfaces";
|
|
4
|
+
import { TemplateCategoryQueryOptions } from './TemplateCategoryQueryOptions';
|
|
5
|
+
import { TemplateCategory } from '../interfaces';
|
|
6
|
+
import { ThemeQueryOptions } from './ThemeQueryOptions';
|
|
7
|
+
import { Theme } from '../interfaces';
|
|
8
|
+
export declare class TemplateQueryOptions extends QueryOptions<Template, TemplateBoolExp, TemplateOrderBy, TemplateDistinctExp> {
|
|
9
|
+
constructor(fields?: (keyof Template)[], queryArgs?: IQueryArgs<TemplateBoolExp, TemplateOrderBy, TemplateDistinctExp>);
|
|
10
|
+
id(): this;
|
|
11
|
+
name(): this;
|
|
12
|
+
seqValue(): this;
|
|
13
|
+
content(): this;
|
|
14
|
+
/**
|
|
15
|
+
* 模板类型
|
|
16
|
+
*/
|
|
17
|
+
templateType(): this;
|
|
18
|
+
websiteId(): this;
|
|
19
|
+
/**
|
|
20
|
+
* 创建时间
|
|
21
|
+
*/
|
|
22
|
+
createdAt(): this;
|
|
23
|
+
/**
|
|
24
|
+
* 更新时间
|
|
25
|
+
*/
|
|
26
|
+
updatedAt(): this;
|
|
27
|
+
/**
|
|
28
|
+
* 备注
|
|
29
|
+
*/
|
|
30
|
+
remark(): this;
|
|
31
|
+
category(options?: TemplateCategoryQueryOptions | (keyof TemplateCategory)[]): this;
|
|
32
|
+
theme(options?: ThemeQueryOptions | (keyof Theme)[]): this;
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IAggregate, IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { QueryOptions } from "./QueryOptions";
|
|
3
|
+
import { Theme, ThemeBoolExp, ThemeDistinctExp, ThemeOrderBy } from "../interfaces";
|
|
4
|
+
import { TemplateQueryOptions } from './TemplateQueryOptions';
|
|
5
|
+
import { Template } from '../interfaces';
|
|
6
|
+
import { TemplateBoolExp } from '../interfaces';
|
|
7
|
+
import { TemplateCategoryQueryOptions } from './TemplateCategoryQueryOptions';
|
|
8
|
+
import { TemplateCategory } from '../interfaces';
|
|
9
|
+
import { TemplateCategoryBoolExp } from '../interfaces';
|
|
10
|
+
export declare class ThemeQueryOptions extends QueryOptions<Theme, ThemeBoolExp, ThemeOrderBy, ThemeDistinctExp> {
|
|
11
|
+
constructor(fields?: (keyof Theme)[], queryArgs?: IQueryArgs<ThemeBoolExp, ThemeOrderBy, ThemeDistinctExp>);
|
|
12
|
+
id(): this;
|
|
13
|
+
name(): this;
|
|
14
|
+
styles(): this;
|
|
15
|
+
settings(): this;
|
|
16
|
+
websiteId(): this;
|
|
17
|
+
/**
|
|
18
|
+
* 创建时间
|
|
19
|
+
*/
|
|
20
|
+
createdAt(): this;
|
|
21
|
+
/**
|
|
22
|
+
* 更新时间
|
|
23
|
+
*/
|
|
24
|
+
updatedAt(): this;
|
|
25
|
+
/**
|
|
26
|
+
* 备注
|
|
27
|
+
*/
|
|
28
|
+
remark(): this;
|
|
29
|
+
templates(options?: TemplateQueryOptions | (keyof Template)[]): this;
|
|
30
|
+
templatesAggregate(aggregate: IAggregate<TemplateBoolExp>): this;
|
|
31
|
+
themlateCategories(options?: TemplateCategoryQueryOptions | (keyof TemplateCategory)[]): this;
|
|
32
|
+
themlateCategoriesAggregate(aggregate: IAggregate<TemplateCategoryBoolExp>): this;
|
|
33
|
+
}
|