@rxdrag/rxcms-models 0.2.12 → 0.2.14

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.
Files changed (150) hide show
  1. package/dist/classes/CustomerQueryOptions.d.ts +6 -13
  2. package/dist/classes/EnquiryQueryOptions.d.ts +6 -13
  3. package/dist/classes/LangQueryOptions.d.ts +76 -12
  4. package/dist/classes/MailQueryOptions.d.ts +20 -0
  5. package/dist/classes/MediaFolderQueryOptions.d.ts +6 -13
  6. package/dist/classes/MediaQueryOptions.d.ts +6 -4
  7. package/dist/classes/PageQueryOptions.d.ts +7 -12
  8. package/dist/classes/PostCategoryQueryOptions.d.ts +8 -13
  9. package/dist/classes/PostQueryOptions.d.ts +8 -14
  10. package/dist/classes/ProductCategoryQueryOptions.d.ts +8 -13
  11. package/dist/classes/ProductQueryOptions.d.ts +8 -14
  12. package/dist/classes/SpamFilterRuleQueryOptions.d.ts +6 -7
  13. package/dist/classes/TagQueryOptions.d.ts +6 -13
  14. package/dist/classes/TemplateCategoryQueryOptions.d.ts +6 -13
  15. package/dist/classes/TemplateQueryOptions.d.ts +6 -13
  16. package/dist/classes/ThemeQueryOptions.d.ts +4 -12
  17. package/dist/classes/WebsiteQueryOptions.d.ts +72 -0
  18. package/dist/classes/WebsiteSettingsQueryOptions.d.ts +6 -13
  19. package/dist/classes/index.d.ts +1 -0
  20. package/dist/entries/index.d.ts +1 -0
  21. package/dist/entries/mailEntry.d.ts +2 -0
  22. package/dist/fields/CustomerFields.d.ts +3 -14
  23. package/dist/fields/EnquiryFields.d.ts +4 -15
  24. package/dist/fields/LangFields.d.ts +31 -12
  25. package/dist/fields/MailFields.d.ts +18 -0
  26. package/dist/fields/MediaFields.d.ts +4 -6
  27. package/dist/fields/MediaFolderFields.d.ts +4 -15
  28. package/dist/fields/PageFields.d.ts +6 -13
  29. package/dist/fields/PostCategoryFields.d.ts +5 -14
  30. package/dist/fields/PostFields.d.ts +5 -15
  31. package/dist/fields/ProductCategoryFields.d.ts +5 -14
  32. package/dist/fields/ProductFields.d.ts +5 -15
  33. package/dist/fields/SpamFilterRuleFields.d.ts +3 -8
  34. package/dist/fields/TagFields.d.ts +4 -15
  35. package/dist/fields/TemplateCategoryFields.d.ts +4 -15
  36. package/dist/fields/TemplateFields.d.ts +4 -15
  37. package/dist/fields/ThemeFields.d.ts +4 -14
  38. package/dist/fields/WebsiteFields.d.ts +33 -2
  39. package/dist/fields/WebsiteSettingsFields.d.ts +3 -14
  40. package/dist/fields/index.d.ts +1 -0
  41. package/dist/index.mjs +1882 -1370
  42. package/dist/index.mjs.map +1 -1
  43. package/dist/interfaces/Customer.d.ts +4 -0
  44. package/dist/interfaces/CustomerBoolExp.d.ts +4 -0
  45. package/dist/interfaces/CustomerDistinctExp.d.ts +0 -13
  46. package/dist/interfaces/CustomerInput.d.ts +5 -0
  47. package/dist/interfaces/Enquiry.d.ts +4 -0
  48. package/dist/interfaces/EnquiryBoolExp.d.ts +4 -0
  49. package/dist/interfaces/EnquiryDistinctExp.d.ts +1 -14
  50. package/dist/interfaces/EnquiryInput.d.ts +4 -0
  51. package/dist/interfaces/Lang.d.ts +48 -3
  52. package/dist/interfaces/LangBoolExp.d.ts +32 -3
  53. package/dist/interfaces/LangDistinctExp.d.ts +2 -14
  54. package/dist/interfaces/LangInput.d.ts +33 -3
  55. package/dist/interfaces/LangOrderBy.d.ts +2 -3
  56. package/dist/interfaces/Mail.d.ts +18 -0
  57. package/dist/interfaces/MailBoolExp.d.ts +22 -0
  58. package/dist/interfaces/MailDistinctExp.d.ts +17 -0
  59. package/dist/interfaces/MailInput.d.ts +19 -0
  60. package/dist/interfaces/MailOrderBy.d.ts +17 -0
  61. package/dist/interfaces/MailType.d.ts +18 -0
  62. package/dist/interfaces/Media.d.ts +6 -2
  63. package/dist/interfaces/MediaBoolExp.d.ts +6 -2
  64. package/dist/interfaces/MediaDistinctExp.d.ts +3 -7
  65. package/dist/interfaces/MediaFolder.d.ts +4 -0
  66. package/dist/interfaces/MediaFolderBoolExp.d.ts +4 -0
  67. package/dist/interfaces/MediaFolderDistinctExp.d.ts +1 -14
  68. package/dist/interfaces/MediaFolderInput.d.ts +4 -0
  69. package/dist/interfaces/MediaInput.d.ts +6 -2
  70. package/dist/interfaces/MediaOrderBy.d.ts +2 -2
  71. package/dist/interfaces/Page.d.ts +3 -2
  72. package/dist/interfaces/PageBoolExp.d.ts +3 -2
  73. package/dist/interfaces/PageDistinctExp.d.ts +3 -12
  74. package/dist/interfaces/PageInput.d.ts +3 -2
  75. package/dist/interfaces/PageOrderBy.d.ts +0 -2
  76. package/dist/interfaces/Post.d.ts +4 -0
  77. package/dist/interfaces/PostBoolExp.d.ts +4 -0
  78. package/dist/interfaces/PostCategory.d.ts +6 -1
  79. package/dist/interfaces/PostCategoryBoolExp.d.ts +6 -1
  80. package/dist/interfaces/PostCategoryDistinctExp.d.ts +4 -14
  81. package/dist/interfaces/PostCategoryInput.d.ts +6 -1
  82. package/dist/interfaces/PostCategoryOrderBy.d.ts +2 -1
  83. package/dist/interfaces/PostDistinctExp.d.ts +2 -14
  84. package/dist/interfaces/PostInput.d.ts +4 -0
  85. package/dist/interfaces/Product.d.ts +4 -0
  86. package/dist/interfaces/ProductBoolExp.d.ts +4 -0
  87. package/dist/interfaces/ProductCategory.d.ts +6 -1
  88. package/dist/interfaces/ProductCategoryBoolExp.d.ts +6 -1
  89. package/dist/interfaces/ProductCategoryDistinctExp.d.ts +4 -14
  90. package/dist/interfaces/ProductCategoryInput.d.ts +6 -1
  91. package/dist/interfaces/ProductCategoryOrderBy.d.ts +2 -1
  92. package/dist/interfaces/ProductDistinctExp.d.ts +2 -14
  93. package/dist/interfaces/ProductInput.d.ts +4 -0
  94. package/dist/interfaces/PublishableDistinctExp.d.ts +2 -14
  95. package/dist/interfaces/Slugable.d.ts +5 -0
  96. package/dist/interfaces/SlugableBoolExp.d.ts +10 -0
  97. package/dist/interfaces/SlugableDistinctExp.d.ts +6 -0
  98. package/dist/interfaces/SlugableOrderBy.d.ts +6 -0
  99. package/dist/interfaces/SpamFilterRule.d.ts +4 -0
  100. package/dist/interfaces/SpamFilterRuleBoolExp.d.ts +4 -0
  101. package/dist/interfaces/SpamFilterRuleDistinctExp.d.ts +1 -8
  102. package/dist/interfaces/SpamFilterRuleInput.d.ts +5 -0
  103. package/dist/interfaces/Tag.d.ts +4 -0
  104. package/dist/interfaces/TagBoolExp.d.ts +4 -0
  105. package/dist/interfaces/TagDistinctExp.d.ts +1 -14
  106. package/dist/interfaces/TagInput.d.ts +5 -0
  107. package/dist/interfaces/Template.d.ts +4 -0
  108. package/dist/interfaces/TemplateBoolExp.d.ts +4 -0
  109. package/dist/interfaces/TemplateCategory.d.ts +4 -0
  110. package/dist/interfaces/TemplateCategoryBoolExp.d.ts +4 -0
  111. package/dist/interfaces/TemplateCategoryDistinctExp.d.ts +1 -14
  112. package/dist/interfaces/TemplateCategoryInput.d.ts +4 -0
  113. package/dist/interfaces/TemplateDistinctExp.d.ts +1 -14
  114. package/dist/interfaces/TemplateInput.d.ts +4 -0
  115. package/dist/interfaces/Theme.d.ts +4 -0
  116. package/dist/interfaces/ThemeBoolExp.d.ts +4 -0
  117. package/dist/interfaces/ThemeDistinctExp.d.ts +1 -13
  118. package/dist/interfaces/ThemeInput.d.ts +4 -0
  119. package/dist/interfaces/ThemeOrderBy.d.ts +1 -0
  120. package/dist/interfaces/Website.d.ts +44 -0
  121. package/dist/interfaces/WebsiteBoolExp.d.ts +29 -0
  122. package/dist/interfaces/WebsiteContent.d.ts +2 -2
  123. package/dist/interfaces/WebsiteContentBoolExp.d.ts +2 -2
  124. package/dist/interfaces/WebsiteContentDistinctExp.d.ts +4 -16
  125. package/dist/interfaces/WebsiteContentOrderBy.d.ts +2 -2
  126. package/dist/interfaces/WebsiteDistinctExp.d.ts +2 -1
  127. package/dist/interfaces/WebsiteInput.d.ts +29 -0
  128. package/dist/interfaces/WebsiteOrderBy.d.ts +1 -0
  129. package/dist/interfaces/WebsitePart.d.ts +3 -5
  130. package/dist/interfaces/WebsitePartBoolExp.d.ts +4 -6
  131. package/dist/interfaces/WebsitePartDistinctExp.d.ts +2 -16
  132. package/dist/interfaces/WebsitePartOrderBy.d.ts +3 -5
  133. package/dist/interfaces/WebsiteSettings.d.ts +4 -0
  134. package/dist/interfaces/WebsiteSettingsBoolExp.d.ts +4 -0
  135. package/dist/interfaces/WebsiteSettingsDistinctExp.d.ts +1 -14
  136. package/dist/interfaces/WebsiteSettingsInput.d.ts +5 -0
  137. package/dist/interfaces/index.d.ts +10 -12
  138. package/package.json +2 -2
  139. package/dist/interfaces/BaseEntity.d.ts +0 -15
  140. package/dist/interfaces/BaseEntityBoolExp.d.ts +0 -12
  141. package/dist/interfaces/BaseEntityDistinctExp.d.ts +0 -16
  142. package/dist/interfaces/BaseEntityOrderBy.d.ts +0 -16
  143. package/dist/interfaces/CustomizeMedia.d.ts +0 -7
  144. package/dist/interfaces/CustomizeMediaBoolExp.d.ts +0 -9
  145. package/dist/interfaces/CustomizeMediaDistinctExp.d.ts +0 -8
  146. package/dist/interfaces/CustomizeMediaOrderBy.d.ts +0 -8
  147. package/dist/interfaces/MultiLangable.d.ts +0 -4
  148. package/dist/interfaces/MultiLangableBoolExp.d.ts +0 -9
  149. package/dist/interfaces/MultiLangableDistinctExp.d.ts +0 -5
  150. package/dist/interfaces/MultiLangableOrderBy.d.ts +0 -5
@@ -2,6 +2,7 @@ import { Media } from './Media';
2
2
  import { MediaType } from './MediaType';
3
3
  import { FileRef } from './FileRef';
4
4
  import { MediaFolderInput } from './MediaFolderInput';
5
+ import { LangInput } from './LangInput';
5
6
  import { PostInput } from './PostInput';
6
7
  import { UserInput } from './UserInput';
7
8
  import { PageInput } from './PageInput';
@@ -9,10 +10,11 @@ import { ProductInput } from './ProductInput';
9
10
  import { ProductCategoryInput } from './ProductCategoryInput';
10
11
  import { MediaOnProductInput } from './MediaOnProductInput';
11
12
  import { AttachmentOnProductInput } from './AttachmentOnProductInput';
13
+ import { WebsiteInput } from './WebsiteInput';
12
14
  import { SetHasMany } from '@rxdrag/entify-hooks';
13
15
  import { SetHasOne } from '@rxdrag/entify-hooks';
14
- import { CustomizeMedia } from './CustomizeMedia';
15
- export interface MediaInput extends CustomizeMedia {
16
+ import { WebsitePart } from './WebsitePart';
17
+ export interface MediaInput extends WebsitePart {
16
18
  id?: string;
17
19
  name?: string;
18
20
  size?: number;
@@ -24,6 +26,7 @@ export interface MediaInput extends CustomizeMedia {
24
26
  updatedAt?: Date;
25
27
  mediaType?: MediaType;
26
28
  folder?: SetHasOne<MediaFolderInput>;
29
+ lang?: SetHasOne<LangInput>;
27
30
  coverOf?: SetHasMany<PostInput>;
28
31
  avatarOfUser?: SetHasOne<UserInput>;
29
32
  ogMetaOfPage?: SetHasMany<PageInput>;
@@ -32,6 +35,7 @@ export interface MediaInput extends CustomizeMedia {
32
35
  meidaOfProduct?: SetHasMany<ProductCategoryInput>;
33
36
  productMediaPivots?: SetHasMany<MediaOnProductInput>;
34
37
  productAttacPivots?: SetHasMany<AttachmentOnProductInput>;
38
+ website?: SetHasOne<WebsiteInput>;
35
39
  }
36
40
  export declare const mediaToInputCascade: (entity: Media) => MediaInput;
37
41
  export declare const mediaToInput: (entity: Media) => MediaInput;
@@ -1,6 +1,6 @@
1
1
  import { OrderBy } from '@rxdrag/entify-hooks';
2
- import { CustomizeMediaOrderBy } from './CustomizeMediaOrderBy';
3
- export interface MediaOrderBy extends CustomizeMediaOrderBy {
2
+ import { WebsitePartOrderBy } from './WebsitePartOrderBy';
3
+ export interface MediaOrderBy extends WebsitePartOrderBy {
4
4
  id?: OrderBy;
5
5
  name?: OrderBy;
6
6
  size?: OrderBy;
@@ -1,4 +1,5 @@
1
1
  import { Media } from './Media';
2
+ import { Lang } from './Lang';
2
3
  import { Website } from './Website';
3
4
  import { WebsiteContent } from './WebsiteContent';
4
5
  export declare const PageEntityName = "Page";
@@ -6,12 +7,12 @@ export declare const PageEntityLabel = "";
6
7
  export interface Page extends WebsiteContent {
7
8
  id?: string;
8
9
  title?: string;
9
- content?: any;
10
10
  /**
11
11
  * 备注
12
12
  */
13
13
  remark?: string;
14
- langAbbr?: string;
15
14
  ogImage?: Media;
15
+ lang?: Lang;
16
16
  homeOf?: Website;
17
+ website?: Website;
17
18
  }
@@ -2,6 +2,7 @@ import { WebsiteContentBoolExp } from './WebsiteContentBoolExp';
2
2
  import { IdComparisonExp } from './IdComparisonExp';
3
3
  import { StringComparisonExp } from './StringComparisonExp';
4
4
  import { MediaBoolExp } from './MediaBoolExp';
5
+ import { LangBoolExp } from './LangBoolExp';
5
6
  import { WebsiteBoolExp } from './WebsiteBoolExp';
6
7
  export interface PageBoolExp extends WebsiteContentBoolExp {
7
8
  _and?: PageBoolExp[];
@@ -9,9 +10,9 @@ export interface PageBoolExp extends WebsiteContentBoolExp {
9
10
  _not?: PageBoolExp;
10
11
  id?: IdComparisonExp;
11
12
  title?: StringComparisonExp;
12
- content?: unknown;
13
13
  remark?: StringComparisonExp;
14
- langAbbr?: StringComparisonExp;
15
14
  ogImage?: MediaBoolExp;
15
+ lang?: LangBoolExp;
16
16
  homeOf?: WebsiteBoolExp;
17
+ website?: WebsiteBoolExp;
17
18
  }
@@ -2,23 +2,13 @@ import { WebsiteContentDistinctExp } from './WebsiteContentDistinctExp';
2
2
  export declare enum PageDistinctEnum {
3
3
  id = "id",
4
4
  title = "title",
5
- content = "content",
6
5
  /**
7
6
  * 备注
8
7
  */
9
8
  remark = "remark",
10
- langAbbr = "langAbbr",
9
+ content = "content",
11
10
  extends = "extends",
12
- websiteId = "websiteId",
13
- slug = "slug",
14
- description = "description",
15
- /**
16
- * 创建时间
17
- */
18
11
  createdAt = "createdAt",
19
- /**
20
- * 更新时间
21
- */
22
12
  updatedAt = "updatedAt",
23
13
  seoTitle = "seoTitle",
24
14
  seoKeywords = "seoKeywords",
@@ -33,6 +23,7 @@ export declare enum PageDistinctEnum {
33
23
  xTitle = "xTitle",
34
24
  xDescription = "xDescription",
35
25
  xUrl = "xUrl",
36
- lang = "lang"
26
+ slug = "slug",
27
+ description = "description"
37
28
  }
38
29
  export type PageDistinctExp = PageDistinctEnum | WebsiteContentDistinctExp;
@@ -1,19 +1,20 @@
1
1
  import { Page } from './Page';
2
2
  import { MediaInput } from './MediaInput';
3
+ import { LangInput } from './LangInput';
3
4
  import { WebsiteInput } from './WebsiteInput';
4
5
  import { SetHasOne } from '@rxdrag/entify-hooks';
5
6
  import { WebsiteContent } from './WebsiteContent';
6
7
  export interface PageInput extends WebsiteContent {
7
8
  id?: string;
8
9
  title?: string;
9
- content?: any;
10
10
  /**
11
11
  * 备注
12
12
  */
13
13
  remark?: string;
14
- langAbbr?: string;
15
14
  ogImage?: SetHasOne<MediaInput>;
15
+ lang?: SetHasOne<LangInput>;
16
16
  homeOf?: SetHasOne<WebsiteInput>;
17
+ website?: SetHasOne<WebsiteInput>;
17
18
  }
18
19
  export declare const pageToInputCascade: (entity: Page) => PageInput;
19
20
  export declare const pageToInput: (entity: Page) => PageInput;
@@ -3,10 +3,8 @@ import { WebsiteContentOrderBy } from './WebsiteContentOrderBy';
3
3
  export interface PageOrderBy extends WebsiteContentOrderBy {
4
4
  id?: OrderBy;
5
5
  title?: OrderBy;
6
- content?: OrderBy;
7
6
  /**
8
7
  * 备注
9
8
  */
10
9
  remark?: OrderBy;
11
- langAbbr?: OrderBy;
12
10
  }
@@ -1,7 +1,9 @@
1
1
  import { Tag } from './Tag';
2
2
  import { User } from './User';
3
3
  import { Media } from './Media';
4
+ import { Lang } from './Lang';
4
5
  import { PostCategory } from './PostCategory';
6
+ import { Website } from './Website';
5
7
  import { Aggregate } from './Aggregate';
6
8
  import { Publishable } from './Publishable';
7
9
  export declare const PostEntityName = "Post";
@@ -23,7 +25,9 @@ export interface Post extends Publishable {
23
25
  cover?: Media;
24
26
  ogImage?: Media;
25
27
  draftOf?: Post;
28
+ lang?: Lang;
26
29
  category?: PostCategory;
27
30
  draft?: Post;
31
+ website?: Website;
28
32
  tagsAggregate?: Aggregate;
29
33
  }
@@ -6,7 +6,9 @@ import { StringComparisonExp } from './StringComparisonExp';
6
6
  import { TagBoolExp } from './TagBoolExp';
7
7
  import { UserBoolExp } from './UserBoolExp';
8
8
  import { MediaBoolExp } from './MediaBoolExp';
9
+ import { LangBoolExp } from './LangBoolExp';
9
10
  import { PostCategoryBoolExp } from './PostCategoryBoolExp';
11
+ import { WebsiteBoolExp } from './WebsiteBoolExp';
10
12
  /**
11
13
  * 文章
12
14
  *
@@ -24,6 +26,8 @@ export interface PostBoolExp extends PublishableBoolExp {
24
26
  cover?: MediaBoolExp;
25
27
  ogImage?: MediaBoolExp;
26
28
  draftOf?: PostBoolExp;
29
+ lang?: LangBoolExp;
27
30
  category?: PostCategoryBoolExp;
28
31
  draft?: PostBoolExp;
32
+ website?: WebsiteBoolExp;
29
33
  }
@@ -1,19 +1,24 @@
1
1
  import { Post } from './Post';
2
+ import { Lang } from './Lang';
3
+ import { Website } from './Website';
2
4
  import { Aggregate } from './Aggregate';
3
5
  import { WebsitePart } from './WebsitePart';
6
+ import { Slugable } from './Slugable';
4
7
  export declare const PostCategoryEntityName = "PostCategory";
5
8
  export declare const PostCategoryEntityLabel = "\u6587\u7AE0\u5206\u7C7B";
6
9
  /**
7
10
  * 文章分类
8
11
  *
9
12
  */
10
- export interface PostCategory extends WebsitePart {
13
+ export interface PostCategory extends WebsitePart, Slugable {
11
14
  id?: string;
12
15
  name?: string;
13
16
  seqValue?: number;
14
17
  children?: PostCategory[];
15
18
  posts?: Post[];
19
+ lang?: Lang;
16
20
  parent?: PostCategory;
21
+ website?: Website;
17
22
  childrenAggregate?: Aggregate;
18
23
  postsAggregate?: Aggregate;
19
24
  }
@@ -1,13 +1,16 @@
1
1
  import { WebsitePartBoolExp } from './WebsitePartBoolExp';
2
+ import { SlugableBoolExp } from './SlugableBoolExp';
2
3
  import { IdComparisonExp } from './IdComparisonExp';
3
4
  import { StringComparisonExp } from './StringComparisonExp';
4
5
  import { NumberComparisonExp } from './NumberComparisonExp';
5
6
  import { PostBoolExp } from './PostBoolExp';
7
+ import { LangBoolExp } from './LangBoolExp';
8
+ import { WebsiteBoolExp } from './WebsiteBoolExp';
6
9
  /**
7
10
  * 文章分类
8
11
  *
9
12
  */
10
- export interface PostCategoryBoolExp extends WebsitePartBoolExp {
13
+ export interface PostCategoryBoolExp extends WebsitePartBoolExp, SlugableBoolExp {
11
14
  _and?: PostCategoryBoolExp[];
12
15
  _or?: PostCategoryBoolExp[];
13
16
  _not?: PostCategoryBoolExp;
@@ -16,5 +19,7 @@ export interface PostCategoryBoolExp extends WebsitePartBoolExp {
16
19
  seqValue?: NumberComparisonExp;
17
20
  children?: PostCategoryBoolExp;
18
21
  posts?: PostBoolExp;
22
+ lang?: LangBoolExp;
19
23
  parent?: PostCategoryBoolExp;
24
+ website?: WebsiteBoolExp;
20
25
  }
@@ -1,22 +1,12 @@
1
1
  import { WebsitePartDistinctExp } from './WebsitePartDistinctExp';
2
+ import { SlugableDistinctExp } from './SlugableDistinctExp';
2
3
  export declare enum PostCategoryDistinctEnum {
3
4
  id = "id",
4
5
  name = "name",
5
6
  seqValue = "seqValue",
6
- websiteId = "websiteId",
7
- slug = "slug",
8
- description = "description",
9
- /**
10
- * 创建时间
11
- */
12
7
  createdAt = "createdAt",
13
- /**
14
- * 更新时间
15
- */
16
8
  updatedAt = "updatedAt",
17
- /**
18
- * 备注
19
- */
20
- remark = "remark"
9
+ slug = "slug",
10
+ description = "description"
21
11
  }
22
- export type PostCategoryDistinctExp = PostCategoryDistinctEnum | WebsitePartDistinctExp;
12
+ export type PostCategoryDistinctExp = PostCategoryDistinctEnum | WebsitePartDistinctExp | SlugableDistinctExp;
@@ -1,19 +1,24 @@
1
1
  import { PostCategory } from './PostCategory';
2
2
  import { PostInput } from './PostInput';
3
+ import { LangInput } from './LangInput';
4
+ import { WebsiteInput } from './WebsiteInput';
3
5
  import { SetHasMany } from '@rxdrag/entify-hooks';
4
6
  import { SetHasOne } from '@rxdrag/entify-hooks';
5
7
  import { WebsitePart } from './WebsitePart';
8
+ import { Slugable } from './Slugable';
6
9
  /**
7
10
  * 文章分类
8
11
  *
9
12
  */
10
- export interface PostCategoryInput extends WebsitePart {
13
+ export interface PostCategoryInput extends WebsitePart, Slugable {
11
14
  id?: string;
12
15
  name?: string;
13
16
  seqValue?: number;
14
17
  children?: SetHasMany<PostCategoryInput>;
15
18
  posts?: SetHasMany<PostInput>;
19
+ lang?: SetHasOne<LangInput>;
16
20
  parent?: SetHasOne<PostCategoryInput>;
21
+ website?: SetHasOne<WebsiteInput>;
17
22
  }
18
23
  export declare const postCategoryToInputCascade: (entity: PostCategory) => PostCategoryInput;
19
24
  export declare const postCategoryToInput: (entity: PostCategory) => PostCategoryInput;
@@ -1,10 +1,11 @@
1
1
  import { OrderBy } from '@rxdrag/entify-hooks';
2
2
  import { WebsitePartOrderBy } from './WebsitePartOrderBy';
3
+ import { SlugableOrderBy } from './SlugableOrderBy';
3
4
  /**
4
5
  * 文章分类
5
6
  *
6
7
  */
7
- export interface PostCategoryOrderBy extends WebsitePartOrderBy {
8
+ export interface PostCategoryOrderBy extends WebsitePartOrderBy, SlugableOrderBy {
8
9
  id?: OrderBy;
9
10
  name?: OrderBy;
10
11
  seqValue?: OrderBy;
@@ -12,21 +12,8 @@ export declare enum PostDistinctEnum {
12
12
  title = "title",
13
13
  content = "content",
14
14
  extends = "extends",
15
- websiteId = "websiteId",
16
- slug = "slug",
17
- description = "description",
18
- /**
19
- * 创建时间
20
- */
21
15
  createdAt = "createdAt",
22
- /**
23
- * 更新时间
24
- */
25
16
  updatedAt = "updatedAt",
26
- /**
27
- * 备注
28
- */
29
- remark = "remark",
30
17
  seoTitle = "seoTitle",
31
18
  seoKeywords = "seoKeywords",
32
19
  seoDescription = "seoDescription",
@@ -40,6 +27,7 @@ export declare enum PostDistinctEnum {
40
27
  xTitle = "xTitle",
41
28
  xDescription = "xDescription",
42
29
  xUrl = "xUrl",
43
- lang = "lang"
30
+ slug = "slug",
31
+ description = "description"
44
32
  }
45
33
  export type PostDistinctExp = PostDistinctEnum | PublishableDistinctExp;
@@ -2,7 +2,9 @@ import { Post } from './Post';
2
2
  import { TagInput } from './TagInput';
3
3
  import { UserInput } from './UserInput';
4
4
  import { MediaInput } from './MediaInput';
5
+ import { LangInput } from './LangInput';
5
6
  import { PostCategoryInput } from './PostCategoryInput';
7
+ import { WebsiteInput } from './WebsiteInput';
6
8
  import { SetHasMany } from '@rxdrag/entify-hooks';
7
9
  import { SetHasOne } from '@rxdrag/entify-hooks';
8
10
  import { Publishable } from './Publishable';
@@ -23,8 +25,10 @@ export interface PostInput extends Publishable {
23
25
  cover?: SetHasOne<MediaInput>;
24
26
  ogImage?: SetHasOne<MediaInput>;
25
27
  draftOf?: SetHasOne<PostInput>;
28
+ lang?: SetHasOne<LangInput>;
26
29
  category?: SetHasOne<PostCategoryInput>;
27
30
  draft?: SetHasOne<PostInput>;
31
+ website?: SetHasOne<WebsiteInput>;
28
32
  }
29
33
  export declare const postToInputCascade: (entity: Post) => PostInput;
30
34
  export declare const postToInput: (entity: Post) => PostInput;
@@ -3,7 +3,9 @@ import { Tag } from './Tag';
3
3
  import { Media } from './Media';
4
4
  import { MediaOnProduct } from './MediaOnProduct';
5
5
  import { AttachmentOnProduct } from './AttachmentOnProduct';
6
+ import { Lang } from './Lang';
6
7
  import { User } from './User';
8
+ import { Website } from './Website';
7
9
  import { Aggregate } from './Aggregate';
8
10
  import { Publishable } from './Publishable';
9
11
  export declare const ProductEntityName = "Product";
@@ -31,8 +33,10 @@ export interface Product extends Publishable {
31
33
  draftOf?: Product;
32
34
  mediaPivots?: MediaOnProduct[];
33
35
  attachmentPivots?: AttachmentOnProduct[];
36
+ lang?: Lang;
34
37
  creator?: User;
35
38
  draft?: Product;
39
+ website?: Website;
36
40
  tagsAggregate?: Aggregate;
37
41
  mediaPivotsAggregate?: Aggregate;
38
42
  attachmentPivotsAggregate?: Aggregate;
@@ -8,7 +8,9 @@ import { TagBoolExp } from './TagBoolExp';
8
8
  import { MediaBoolExp } from './MediaBoolExp';
9
9
  import { MediaOnProductBoolExp } from './MediaOnProductBoolExp';
10
10
  import { AttachmentOnProductBoolExp } from './AttachmentOnProductBoolExp';
11
+ import { LangBoolExp } from './LangBoolExp';
11
12
  import { UserBoolExp } from './UserBoolExp';
13
+ import { WebsiteBoolExp } from './WebsiteBoolExp';
12
14
  export interface ProductBoolExp extends PublishableBoolExp {
13
15
  _and?: ProductBoolExp[];
14
16
  _or?: ProductBoolExp[];
@@ -29,6 +31,8 @@ export interface ProductBoolExp extends PublishableBoolExp {
29
31
  draftOf?: ProductBoolExp;
30
32
  mediaPivots?: MediaOnProductBoolExp;
31
33
  attachmentPivots?: AttachmentOnProductBoolExp;
34
+ lang?: LangBoolExp;
32
35
  creator?: UserBoolExp;
33
36
  draft?: ProductBoolExp;
37
+ website?: WebsiteBoolExp;
34
38
  }
@@ -1,17 +1,22 @@
1
1
  import { Media } from './Media';
2
+ import { Lang } from './Lang';
2
3
  import { Product } from './Product';
4
+ import { Website } from './Website';
3
5
  import { Aggregate } from './Aggregate';
4
6
  import { WebsitePart } from './WebsitePart';
7
+ import { Slugable } from './Slugable';
5
8
  export declare const ProductCategoryEntityName = "ProductCategory";
6
9
  export declare const ProductCategoryEntityLabel = "";
7
- export interface ProductCategory extends WebsitePart {
10
+ export interface ProductCategory extends WebsitePart, Slugable {
8
11
  id?: string;
9
12
  name?: string;
10
13
  seqValue?: number;
11
14
  children?: ProductCategory[];
12
15
  media?: Media;
16
+ lang?: Lang;
13
17
  parent?: ProductCategory;
14
18
  products?: Product[];
19
+ website?: Website;
15
20
  childrenAggregate?: Aggregate;
16
21
  productsAggregate?: Aggregate;
17
22
  }
@@ -1,10 +1,13 @@
1
1
  import { WebsitePartBoolExp } from './WebsitePartBoolExp';
2
+ import { SlugableBoolExp } from './SlugableBoolExp';
2
3
  import { IdComparisonExp } from './IdComparisonExp';
3
4
  import { StringComparisonExp } from './StringComparisonExp';
4
5
  import { NumberComparisonExp } from './NumberComparisonExp';
5
6
  import { MediaBoolExp } from './MediaBoolExp';
7
+ import { LangBoolExp } from './LangBoolExp';
6
8
  import { ProductBoolExp } from './ProductBoolExp';
7
- export interface ProductCategoryBoolExp extends WebsitePartBoolExp {
9
+ import { WebsiteBoolExp } from './WebsiteBoolExp';
10
+ export interface ProductCategoryBoolExp extends WebsitePartBoolExp, SlugableBoolExp {
8
11
  _and?: ProductCategoryBoolExp[];
9
12
  _or?: ProductCategoryBoolExp[];
10
13
  _not?: ProductCategoryBoolExp;
@@ -13,6 +16,8 @@ export interface ProductCategoryBoolExp extends WebsitePartBoolExp {
13
16
  seqValue?: NumberComparisonExp;
14
17
  children?: ProductCategoryBoolExp;
15
18
  media?: MediaBoolExp;
19
+ lang?: LangBoolExp;
16
20
  parent?: ProductCategoryBoolExp;
17
21
  products?: ProductBoolExp;
22
+ website?: WebsiteBoolExp;
18
23
  }
@@ -1,22 +1,12 @@
1
1
  import { WebsitePartDistinctExp } from './WebsitePartDistinctExp';
2
+ import { SlugableDistinctExp } from './SlugableDistinctExp';
2
3
  export declare enum ProductCategoryDistinctEnum {
3
4
  id = "id",
4
5
  name = "name",
5
6
  seqValue = "seqValue",
6
- websiteId = "websiteId",
7
- slug = "slug",
8
- description = "description",
9
- /**
10
- * 创建时间
11
- */
12
7
  createdAt = "createdAt",
13
- /**
14
- * 更新时间
15
- */
16
8
  updatedAt = "updatedAt",
17
- /**
18
- * 备注
19
- */
20
- remark = "remark"
9
+ slug = "slug",
10
+ description = "description"
21
11
  }
22
- export type ProductCategoryDistinctExp = ProductCategoryDistinctEnum | WebsitePartDistinctExp;
12
+ export type ProductCategoryDistinctExp = ProductCategoryDistinctEnum | WebsitePartDistinctExp | SlugableDistinctExp;
@@ -1,17 +1,22 @@
1
1
  import { ProductCategory } from './ProductCategory';
2
2
  import { MediaInput } from './MediaInput';
3
+ import { LangInput } from './LangInput';
3
4
  import { ProductInput } from './ProductInput';
5
+ import { WebsiteInput } from './WebsiteInput';
4
6
  import { SetHasMany } from '@rxdrag/entify-hooks';
5
7
  import { SetHasOne } from '@rxdrag/entify-hooks';
6
8
  import { WebsitePart } from './WebsitePart';
7
- export interface ProductCategoryInput extends WebsitePart {
9
+ import { Slugable } from './Slugable';
10
+ export interface ProductCategoryInput extends WebsitePart, Slugable {
8
11
  id?: string;
9
12
  name?: string;
10
13
  seqValue?: number;
11
14
  children?: SetHasMany<ProductCategoryInput>;
12
15
  media?: SetHasOne<MediaInput>;
16
+ lang?: SetHasOne<LangInput>;
13
17
  parent?: SetHasOne<ProductCategoryInput>;
14
18
  products?: SetHasMany<ProductInput>;
19
+ website?: SetHasOne<WebsiteInput>;
15
20
  }
16
21
  export declare const productCategoryToInputCascade: (entity: ProductCategory) => ProductCategoryInput;
17
22
  export declare const productCategoryToInput: (entity: ProductCategory) => ProductCategoryInput;
@@ -1,6 +1,7 @@
1
1
  import { OrderBy } from '@rxdrag/entify-hooks';
2
2
  import { WebsitePartOrderBy } from './WebsitePartOrderBy';
3
- export interface ProductCategoryOrderBy extends WebsitePartOrderBy {
3
+ import { SlugableOrderBy } from './SlugableOrderBy';
4
+ export interface ProductCategoryOrderBy extends WebsitePartOrderBy, SlugableOrderBy {
4
5
  id?: OrderBy;
5
6
  name?: OrderBy;
6
7
  seqValue?: OrderBy;
@@ -21,21 +21,8 @@ export declare enum ProductDistinctEnum {
21
21
  title = "title",
22
22
  content = "content",
23
23
  extends = "extends",
24
- websiteId = "websiteId",
25
- slug = "slug",
26
- description = "description",
27
- /**
28
- * 创建时间
29
- */
30
24
  createdAt = "createdAt",
31
- /**
32
- * 更新时间
33
- */
34
25
  updatedAt = "updatedAt",
35
- /**
36
- * 备注
37
- */
38
- remark = "remark",
39
26
  seoTitle = "seoTitle",
40
27
  seoKeywords = "seoKeywords",
41
28
  seoDescription = "seoDescription",
@@ -49,6 +36,7 @@ export declare enum ProductDistinctEnum {
49
36
  xTitle = "xTitle",
50
37
  xDescription = "xDescription",
51
38
  xUrl = "xUrl",
52
- lang = "lang"
39
+ slug = "slug",
40
+ description = "description"
53
41
  }
54
42
  export type ProductDistinctExp = ProductDistinctEnum | PublishableDistinctExp;
@@ -4,7 +4,9 @@ import { TagInput } from './TagInput';
4
4
  import { MediaInput } from './MediaInput';
5
5
  import { MediaOnProductInput } from './MediaOnProductInput';
6
6
  import { AttachmentOnProductInput } from './AttachmentOnProductInput';
7
+ import { LangInput } from './LangInput';
7
8
  import { UserInput } from './UserInput';
9
+ import { WebsiteInput } from './WebsiteInput';
8
10
  import { SetHasMany } from '@rxdrag/entify-hooks';
9
11
  import { SetHasOne } from '@rxdrag/entify-hooks';
10
12
  import { Publishable } from './Publishable';
@@ -31,8 +33,10 @@ export interface ProductInput extends Publishable {
31
33
  draftOf?: SetHasOne<ProductInput>;
32
34
  mediaPivots?: SetHasMany<MediaOnProductInput>;
33
35
  attachmentPivots?: SetHasMany<AttachmentOnProductInput>;
36
+ lang?: SetHasOne<LangInput>;
34
37
  creator?: SetHasOne<UserInput>;
35
38
  draft?: SetHasOne<ProductInput>;
39
+ website?: SetHasOne<WebsiteInput>;
36
40
  }
37
41
  export declare const productToInputCascade: (entity: Product) => ProductInput;
38
42
  export declare const productToInput: (entity: Product) => ProductInput;
@@ -6,21 +6,8 @@ export declare enum PublishableDistinctEnum {
6
6
  title = "title",
7
7
  content = "content",
8
8
  extends = "extends",
9
- websiteId = "websiteId",
10
- slug = "slug",
11
- description = "description",
12
- /**
13
- * 创建时间
14
- */
15
9
  createdAt = "createdAt",
16
- /**
17
- * 更新时间
18
- */
19
10
  updatedAt = "updatedAt",
20
- /**
21
- * 备注
22
- */
23
- remark = "remark",
24
11
  seoTitle = "seoTitle",
25
12
  seoKeywords = "seoKeywords",
26
13
  seoDescription = "seoDescription",
@@ -34,6 +21,7 @@ export declare enum PublishableDistinctEnum {
34
21
  xTitle = "xTitle",
35
22
  xDescription = "xDescription",
36
23
  xUrl = "xUrl",
37
- lang = "lang"
24
+ slug = "slug",
25
+ description = "description"
38
26
  }
39
27
  export type PublishableDistinctExp = PublishableDistinctEnum | WebsiteContentDistinctExp;
@@ -0,0 +1,5 @@
1
+ export interface Slugable {
2
+ id?: string;
3
+ slug?: string;
4
+ description?: string;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { IdComparisonExp } from './IdComparisonExp';
2
+ import { StringComparisonExp } from './StringComparisonExp';
3
+ export interface SlugableBoolExp {
4
+ _and?: SlugableBoolExp[];
5
+ _or?: SlugableBoolExp[];
6
+ _not?: SlugableBoolExp;
7
+ id?: IdComparisonExp;
8
+ slug?: StringComparisonExp;
9
+ description?: StringComparisonExp;
10
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum SlugableDistinctEnum {
2
+ id = "id",
3
+ slug = "slug",
4
+ description = "description"
5
+ }
6
+ export type SlugableDistinctExp = SlugableDistinctEnum;
@@ -0,0 +1,6 @@
1
+ import { OrderBy } from '@rxdrag/entify-hooks';
2
+ export interface SlugableOrderBy {
3
+ id?: OrderBy;
4
+ slug?: OrderBy;
5
+ description?: OrderBy;
6
+ }
@@ -1,3 +1,5 @@
1
+ import { Lang } from './Lang';
2
+ import { Website } from './Website';
1
3
  import { WebsitePart } from './WebsitePart';
2
4
  export declare const SpamFilterRuleEntityName = "SpamFilterRule";
3
5
  export declare const SpamFilterRuleEntityLabel = "\u5783\u573E\u8FC7\u6EE4\u89C4\u5219";
@@ -12,4 +14,6 @@ export interface SpamFilterRule extends WebsitePart {
12
14
  keywords?: string;
13
15
  createdAt?: Date;
14
16
  updatedAt?: Date;
17
+ lang?: Lang;
18
+ website?: Website;
15
19
  }