@rxdrag/rxcms-models 0.2.2 → 0.2.4

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 (112) hide show
  1. package/dist/classes/CustomerQueryOptions.d.ts +3 -0
  2. package/dist/classes/EnquiryQueryOptions.d.ts +3 -0
  3. package/dist/classes/LangQueryOptions.d.ts +2 -0
  4. package/dist/classes/MediaFolderQueryOptions.d.ts +2 -0
  5. package/dist/classes/MediaQueryOptions.d.ts +9 -3
  6. package/dist/classes/PageQueryOptions.d.ts +2 -3
  7. package/dist/classes/PostCategoryQueryOptions.d.ts +2 -0
  8. package/dist/classes/PostQueryOptions.d.ts +4 -8
  9. package/dist/classes/ProductCategoryQueryOptions.d.ts +5 -0
  10. package/dist/classes/ProductQueryOptions.d.ts +11 -9
  11. package/dist/classes/SpamFilterRuleQueryOptions.d.ts +19 -0
  12. package/dist/classes/TagQueryOptions.d.ts +2 -0
  13. package/dist/classes/TemplateCategoryQueryOptions.d.ts +2 -0
  14. package/dist/classes/TemplateQueryOptions.d.ts +2 -0
  15. package/dist/classes/ThemeQueryOptions.d.ts +2 -0
  16. package/dist/classes/WebsiteSettingsQueryOptions.d.ts +21 -0
  17. package/dist/classes/index.d.ts +1 -1
  18. package/dist/entries/index.d.ts +1 -1
  19. package/dist/entries/spamFilterRuleEntry.d.ts +2 -0
  20. package/dist/fields/CustomerFields.d.ts +3 -0
  21. package/dist/fields/EnquiryFields.d.ts +3 -0
  22. package/dist/fields/LangFields.d.ts +2 -0
  23. package/dist/fields/MediaFields.d.ts +3 -1
  24. package/dist/fields/MediaFolderFields.d.ts +2 -0
  25. package/dist/fields/PageFields.d.ts +2 -1
  26. package/dist/fields/PostCategoryFields.d.ts +2 -0
  27. package/dist/fields/PostFields.d.ts +5 -7
  28. package/dist/fields/ProductCategoryFields.d.ts +3 -0
  29. package/dist/fields/ProductFields.d.ts +8 -5
  30. package/dist/fields/SpamFilterRuleFields.d.ts +17 -0
  31. package/dist/fields/TagFields.d.ts +2 -0
  32. package/dist/fields/TemplateCategoryFields.d.ts +2 -0
  33. package/dist/fields/TemplateFields.d.ts +2 -0
  34. package/dist/fields/ThemeFields.d.ts +2 -0
  35. package/dist/fields/WebsiteSettingsFields.d.ts +21 -0
  36. package/dist/fields/index.d.ts +1 -1
  37. package/dist/index.mjs +730 -339
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/interfaces/AttachmentAddon.d.ts +3 -0
  40. package/dist/interfaces/AttachmentAddonOrderBy.d.ts +4 -0
  41. package/dist/interfaces/BooleanComparisonExp.d.ts +1 -0
  42. package/dist/interfaces/Customer.d.ts +1 -0
  43. package/dist/interfaces/CustomerBoolExp.d.ts +2 -0
  44. package/dist/interfaces/CustomerDistinctExp.d.ts +3 -0
  45. package/dist/interfaces/CustomerInput.d.ts +1 -0
  46. package/dist/interfaces/CustomerOrderBy.d.ts +1 -0
  47. package/dist/interfaces/Enquiry.d.ts +1 -0
  48. package/dist/interfaces/EnquiryBoolExp.d.ts +1 -0
  49. package/dist/interfaces/EnquiryDistinctExp.d.ts +3 -0
  50. package/dist/interfaces/EnquiryInput.d.ts +1 -0
  51. package/dist/interfaces/EnquiryOrderBy.d.ts +1 -0
  52. package/dist/interfaces/LangDistinctExp.d.ts +2 -0
  53. package/dist/interfaces/Media.d.ts +5 -1
  54. package/dist/interfaces/MediaBoolExp.d.ts +2 -0
  55. package/dist/interfaces/MediaFolderDistinctExp.d.ts +2 -0
  56. package/dist/interfaces/MediaInput.d.ts +4 -1
  57. package/dist/interfaces/Page.d.ts +0 -2
  58. package/dist/interfaces/PageBoolExp.d.ts +0 -2
  59. package/dist/interfaces/PageDistinctExp.d.ts +2 -0
  60. package/dist/interfaces/PageInput.d.ts +0 -2
  61. package/dist/interfaces/Post.d.ts +2 -3
  62. package/dist/interfaces/PostBoolExp.d.ts +2 -3
  63. package/dist/interfaces/PostCategoryDistinctExp.d.ts +2 -0
  64. package/dist/interfaces/PostDistinctExp.d.ts +2 -5
  65. package/dist/interfaces/PostInput.d.ts +2 -3
  66. package/dist/interfaces/PostOrderBy.d.ts +0 -1
  67. package/dist/interfaces/Product.d.ts +9 -4
  68. package/dist/interfaces/ProductBoolExp.d.ts +5 -4
  69. package/dist/interfaces/ProductCategory.d.ts +2 -0
  70. package/dist/interfaces/ProductCategoryBoolExp.d.ts +2 -0
  71. package/dist/interfaces/ProductCategoryDistinctExp.d.ts +2 -0
  72. package/dist/interfaces/ProductCategoryInput.d.ts +2 -0
  73. package/dist/interfaces/ProductDistinctExp.d.ts +5 -3
  74. package/dist/interfaces/ProductInput.d.ts +9 -4
  75. package/dist/interfaces/ProductOrderBy.d.ts +5 -1
  76. package/dist/interfaces/Publishable.d.ts +4 -4
  77. package/dist/interfaces/PublishableBoolExp.d.ts +4 -1
  78. package/dist/interfaces/PublishableDistinctExp.d.ts +2 -4
  79. package/dist/interfaces/PublishableOrderBy.d.ts +4 -4
  80. package/dist/interfaces/SmtpConfig.d.ts +36 -0
  81. package/dist/interfaces/SpamFilterRule.d.ts +15 -0
  82. package/dist/interfaces/SpamFilterRuleBoolExp.d.ts +19 -0
  83. package/dist/interfaces/SpamFilterRuleDistinctExp.d.ts +17 -0
  84. package/dist/interfaces/SpamFilterRuleInput.d.ts +16 -0
  85. package/dist/interfaces/SpamFilterRuleOrderBy.d.ts +14 -0
  86. package/dist/interfaces/TagDistinctExp.d.ts +2 -0
  87. package/dist/interfaces/TemplateCategoryDistinctExp.d.ts +2 -0
  88. package/dist/interfaces/TemplateDistinctExp.d.ts +2 -0
  89. package/dist/interfaces/ThemeBoolExp.d.ts +1 -2
  90. package/dist/interfaces/ThemeDistinctExp.d.ts +2 -0
  91. package/dist/interfaces/WebsiteContentDistinctExp.d.ts +2 -0
  92. package/dist/interfaces/WebsitePart.d.ts +2 -0
  93. package/dist/interfaces/WebsitePartBoolExp.d.ts +2 -0
  94. package/dist/interfaces/WebsitePartDistinctExp.d.ts +2 -0
  95. package/dist/interfaces/WebsitePartOrderBy.d.ts +2 -0
  96. package/dist/interfaces/WebsiteSettings.d.ts +21 -1
  97. package/dist/interfaces/WebsiteSettingsBoolExp.d.ts +9 -1
  98. package/dist/interfaces/WebsiteSettingsDistinctExp.d.ts +21 -0
  99. package/dist/interfaces/WebsiteSettingsInput.d.ts +21 -1
  100. package/dist/interfaces/WebsiteSettingsOrderBy.d.ts +19 -0
  101. package/dist/interfaces/WebsiteUser.d.ts +1 -1
  102. package/dist/interfaces/WebsiteUserBoolExp.d.ts +1 -1
  103. package/dist/interfaces/index.d.ts +37 -5
  104. package/package.json +2 -2
  105. package/dist/classes/SlugQueryOptions.d.ts +0 -30
  106. package/dist/entries/slugEntry.d.ts +0 -2
  107. package/dist/fields/SlugFields.d.ts +0 -22
  108. package/dist/interfaces/Slug.d.ts +0 -13
  109. package/dist/interfaces/SlugBoolExp.d.ts +0 -16
  110. package/dist/interfaces/SlugDistinctExp.d.ts +0 -19
  111. package/dist/interfaces/SlugInput.d.ts +0 -15
  112. package/dist/interfaces/SlugOrderBy.d.ts +0 -6
@@ -0,0 +1,3 @@
1
+ export interface AttachmentAddon {
2
+ seqValue?: number;
3
+ }
@@ -0,0 +1,4 @@
1
+ import { OrderBy } from '@rxdrag/entify-hooks';
2
+ export interface AttachmentAddonOrderBy {
3
+ seqValue?: OrderBy;
4
+ }
@@ -2,4 +2,5 @@ export interface BooleanComparisonExp {
2
2
  _isNotNull?: boolean;
3
3
  _isNull?: boolean;
4
4
  _eq?: boolean;
5
+ _notEq?: boolean;
5
6
  }
@@ -6,6 +6,7 @@ export declare const CustomerEntityName = "Customer";
6
6
  export declare const CustomerEntityLabel = "";
7
7
  export interface Customer extends WebsitePart, Person {
8
8
  id?: string;
9
+ company?: string;
9
10
  enquires?: Enquiry[];
10
11
  enquiresAggregate?: Aggregate;
11
12
  }
@@ -1,11 +1,13 @@
1
1
  import { WebsitePartBoolExp } from './WebsitePartBoolExp';
2
2
  import { PersonBoolExp } from './PersonBoolExp';
3
3
  import { IdComparisonExp } from './IdComparisonExp';
4
+ import { StringComparisonExp } from './StringComparisonExp';
4
5
  import { EnquiryBoolExp } from './EnquiryBoolExp';
5
6
  export interface CustomerBoolExp extends WebsitePartBoolExp, PersonBoolExp {
6
7
  _and?: CustomerBoolExp[];
7
8
  _or?: CustomerBoolExp[];
8
9
  _not?: CustomerBoolExp;
9
10
  id?: IdComparisonExp;
11
+ company?: StringComparisonExp;
10
12
  enquires?: EnquiryBoolExp;
11
13
  }
@@ -2,7 +2,10 @@ import { WebsitePartDistinctExp } from './WebsitePartDistinctExp';
2
2
  import { PersonDistinctExp } from './PersonDistinctExp';
3
3
  export declare enum CustomerDistinctEnum {
4
4
  id = "id",
5
+ company = "company",
5
6
  websiteId = "websiteId",
7
+ slug = "slug",
8
+ description = "description",
6
9
  /**
7
10
  * 创建时间
8
11
  */
@@ -5,6 +5,7 @@ import { WebsitePart } from './WebsitePart';
5
5
  import { Person } from './Person';
6
6
  export interface CustomerInput extends WebsitePart, Person {
7
7
  id?: string;
8
+ company?: string;
8
9
  enquires?: SetHasMany<EnquiryInput>;
9
10
  }
10
11
  export declare const customerToInputCascade: (entity: Customer) => CustomerInput;
@@ -3,4 +3,5 @@ import { WebsitePartOrderBy } from './WebsitePartOrderBy';
3
3
  import { PersonOrderBy } from './PersonOrderBy';
4
4
  export interface CustomerOrderBy extends WebsitePartOrderBy, PersonOrderBy {
5
5
  id?: OrderBy;
6
+ company?: OrderBy;
6
7
  }
@@ -17,5 +17,6 @@ export interface Enquiry extends WebsitePart {
17
17
  */
18
18
  fromCta?: string;
19
19
  read?: boolean;
20
+ spam?: boolean;
20
21
  customer?: Customer;
21
22
  }
@@ -18,5 +18,6 @@ export interface EnquiryBoolExp extends WebsitePartBoolExp {
18
18
  userAgent?: StringComparisonExp;
19
19
  fromCta?: StringComparisonExp;
20
20
  read?: BooleanComparisonExp;
21
+ spam?: BooleanComparisonExp;
21
22
  customer?: CustomerBoolExp;
22
23
  }
@@ -14,7 +14,10 @@ export declare enum EnquiryDistinctEnum {
14
14
  */
15
15
  fromCta = "fromCta",
16
16
  read = "read",
17
+ spam = "spam",
17
18
  websiteId = "websiteId",
19
+ slug = "slug",
20
+ description = "description",
18
21
  /**
19
22
  * 创建时间
20
23
  */
@@ -17,6 +17,7 @@ export interface EnquiryInput extends WebsitePart {
17
17
  */
18
18
  fromCta?: string;
19
19
  read?: boolean;
20
+ spam?: boolean;
20
21
  customer?: SetHasOne<CustomerInput>;
21
22
  }
22
23
  export declare const enquiryToInputCascade: (entity: Enquiry) => EnquiryInput;
@@ -15,4 +15,5 @@ export interface EnquiryOrderBy extends WebsitePartOrderBy {
15
15
  */
16
16
  fromCta?: OrderBy;
17
17
  read?: OrderBy;
18
+ spam?: OrderBy;
18
19
  }
@@ -22,6 +22,8 @@ export declare enum LangDistinctEnum {
22
22
  */
23
23
  remark = "remark",
24
24
  websiteId = "websiteId",
25
+ slug = "slug",
26
+ description = "description",
25
27
  /**
26
28
  * 创建时间
27
29
  */
@@ -3,7 +3,9 @@ import { FileRef } from './FileRef';
3
3
  import { MediaFolder } from './MediaFolder';
4
4
  import { User } from './User';
5
5
  import { Product } from './Product';
6
+ import { ProductCategory } from './ProductCategory';
6
7
  import { MediaAddon } from './MediaAddon';
8
+ import { AttachmentAddon } from './AttachmentAddon';
7
9
  import { Aggregate } from './Aggregate';
8
10
  import { CustomizeMedia } from './CustomizeMedia';
9
11
  export declare const MediaEntityName = "Media";
@@ -22,7 +24,9 @@ export interface Media extends CustomizeMedia {
22
24
  folder?: MediaFolder;
23
25
  avatarOfUser?: User;
24
26
  usedByProducts?: (Product & MediaAddon)[];
25
- attachmentOf?: Product[];
27
+ attachmentOf?: (Product & AttachmentAddon)[];
28
+ meidaOfProduct?: ProductCategory[];
26
29
  usedByProductsAggregate?: Aggregate;
27
30
  attachmentOfAggregate?: Aggregate;
31
+ meidaOfProductAggregate?: Aggregate;
28
32
  }
@@ -8,6 +8,7 @@ import { EnumComparisonExp } from './EnumComparisonExp';
8
8
  import { MediaFolderBoolExp } from './MediaFolderBoolExp';
9
9
  import { UserBoolExp } from './UserBoolExp';
10
10
  import { ProductBoolExp } from './ProductBoolExp';
11
+ import { ProductCategoryBoolExp } from './ProductCategoryBoolExp';
11
12
  export interface MediaBoolExp extends CustomizeMediaBoolExp {
12
13
  _and?: MediaBoolExp[];
13
14
  _or?: MediaBoolExp[];
@@ -25,4 +26,5 @@ export interface MediaBoolExp extends CustomizeMediaBoolExp {
25
26
  avatarOfUser?: UserBoolExp;
26
27
  usedByProducts?: ProductBoolExp;
27
28
  attachmentOf?: ProductBoolExp;
29
+ meidaOfProduct?: ProductCategoryBoolExp;
28
30
  }
@@ -4,6 +4,8 @@ export declare enum MediaFolderDistinctEnum {
4
4
  name = "name",
5
5
  seqValue = "seqValue",
6
6
  websiteId = "websiteId",
7
+ slug = "slug",
8
+ description = "description",
7
9
  /**
8
10
  * 创建时间
9
11
  */
@@ -4,7 +4,9 @@ import { FileRef } from './FileRef';
4
4
  import { MediaFolderInput } from './MediaFolderInput';
5
5
  import { UserInput } from './UserInput';
6
6
  import { ProductInput } from './ProductInput';
7
+ import { ProductCategoryInput } from './ProductCategoryInput';
7
8
  import { MediaAddon } from './MediaAddon';
9
+ import { AttachmentAddon } from './AttachmentAddon';
8
10
  import { SetHasMany } from '@rxdrag/entify-hooks';
9
11
  import { SetHasOne } from '@rxdrag/entify-hooks';
10
12
  import { CustomizeMedia } from './CustomizeMedia';
@@ -22,7 +24,8 @@ export interface MediaInput extends CustomizeMedia {
22
24
  folder?: SetHasOne<MediaFolderInput>;
23
25
  avatarOfUser?: SetHasOne<UserInput>;
24
26
  usedByProducts?: SetHasMany<ProductInput & MediaAddon>;
25
- attachmentOf?: SetHasMany<ProductInput>;
27
+ attachmentOf?: SetHasMany<ProductInput & AttachmentAddon>;
28
+ meidaOfProduct?: SetHasMany<ProductCategoryInput>;
26
29
  }
27
30
  export declare const mediaToInputCascade: (entity: Media) => MediaInput;
28
31
  export declare const mediaToInput: (entity: Media) => MediaInput;
@@ -1,4 +1,3 @@
1
- import { Slug } from './Slug';
2
1
  import { Media } from './Media';
3
2
  import { WebsiteContent } from './WebsiteContent';
4
3
  export declare const PageEntityName = "Page";
@@ -12,6 +11,5 @@ export interface Page extends WebsiteContent {
12
11
  */
13
12
  remark?: string;
14
13
  langAbbr?: string;
15
- slug?: Slug;
16
14
  ogImage?: Media;
17
15
  }
@@ -1,7 +1,6 @@
1
1
  import { WebsiteContentBoolExp } from './WebsiteContentBoolExp';
2
2
  import { IdComparisonExp } from './IdComparisonExp';
3
3
  import { StringComparisonExp } from './StringComparisonExp';
4
- import { SlugBoolExp } from './SlugBoolExp';
5
4
  import { MediaBoolExp } from './MediaBoolExp';
6
5
  export interface PageBoolExp extends WebsiteContentBoolExp {
7
6
  _and?: PageBoolExp[];
@@ -12,6 +11,5 @@ export interface PageBoolExp extends WebsiteContentBoolExp {
12
11
  content?: unknown;
13
12
  remark?: StringComparisonExp;
14
13
  langAbbr?: StringComparisonExp;
15
- slug?: SlugBoolExp;
16
14
  ogImage?: MediaBoolExp;
17
15
  }
@@ -10,6 +10,8 @@ export declare enum PageDistinctEnum {
10
10
  langAbbr = "langAbbr",
11
11
  extends = "extends",
12
12
  websiteId = "websiteId",
13
+ slug = "slug",
14
+ description = "description",
13
15
  /**
14
16
  * 创建时间
15
17
  */
@@ -1,5 +1,4 @@
1
1
  import { Page } from './Page';
2
- import { SlugInput } from './SlugInput';
3
2
  import { MediaInput } from './MediaInput';
4
3
  import { SetHasOne } from '@rxdrag/entify-hooks';
5
4
  import { WebsiteContent } from './WebsiteContent';
@@ -12,7 +11,6 @@ export interface PageInput extends WebsiteContent {
12
11
  */
13
12
  remark?: string;
14
13
  langAbbr?: string;
15
- slug?: SetHasOne<SlugInput>;
16
14
  ogImage?: SetHasOne<MediaInput>;
17
15
  }
18
16
  export declare const pageToInputCascade: (entity: Page) => PageInput;
@@ -1,4 +1,3 @@
1
- import { Slug } from './Slug';
2
1
  import { Tag } from './Tag';
3
2
  import { User } from './User';
4
3
  import { Media } from './Media';
@@ -19,12 +18,12 @@ export interface Post extends Publishable {
19
18
  */
20
19
  pinToTop?: boolean;
21
20
  authorEmail?: string;
22
- summary?: string;
23
- slug?: Slug;
24
21
  tags?: Tag[];
25
22
  author?: User;
26
23
  cover?: Media;
27
24
  ogImage?: Media;
25
+ draftOf?: Post;
28
26
  category?: PostCategory;
27
+ draft?: Post;
29
28
  tagsAggregate?: Aggregate;
30
29
  }
@@ -3,7 +3,6 @@ import { IdComparisonExp } from './IdComparisonExp';
3
3
  import { NumberComparisonExp } from './NumberComparisonExp';
4
4
  import { BooleanComparisonExp } from './BooleanComparisonExp';
5
5
  import { StringComparisonExp } from './StringComparisonExp';
6
- import { SlugBoolExp } from './SlugBoolExp';
7
6
  import { TagBoolExp } from './TagBoolExp';
8
7
  import { UserBoolExp } from './UserBoolExp';
9
8
  import { MediaBoolExp } from './MediaBoolExp';
@@ -20,11 +19,11 @@ export interface PostBoolExp extends PublishableBoolExp {
20
19
  seqValue?: NumberComparisonExp;
21
20
  pinToTop?: BooleanComparisonExp;
22
21
  authorEmail?: StringComparisonExp;
23
- summary?: StringComparisonExp;
24
- slug?: SlugBoolExp;
25
22
  tags?: TagBoolExp;
26
23
  author?: UserBoolExp;
27
24
  cover?: MediaBoolExp;
28
25
  ogImage?: MediaBoolExp;
26
+ draftOf?: PostBoolExp;
29
27
  category?: PostCategoryBoolExp;
28
+ draft?: PostBoolExp;
30
29
  }
@@ -4,6 +4,8 @@ export declare enum PostCategoryDistinctEnum {
4
4
  name = "name",
5
5
  seqValue = "seqValue",
6
6
  websiteId = "websiteId",
7
+ slug = "slug",
8
+ description = "description",
7
9
  /**
8
10
  * 创建时间
9
11
  */
@@ -7,17 +7,14 @@ export declare enum PostDistinctEnum {
7
7
  */
8
8
  pinToTop = "pinToTop",
9
9
  authorEmail = "authorEmail",
10
- summary = "summary",
11
- /**
12
- * 发布的内容
13
- */
14
- publishedContent = "publishedContent",
15
10
  publishedAt = "publishedAt",
16
11
  status = "status",
17
12
  title = "title",
18
13
  content = "content",
19
14
  extends = "extends",
20
15
  websiteId = "websiteId",
16
+ slug = "slug",
17
+ description = "description",
21
18
  /**
22
19
  * 创建时间
23
20
  */
@@ -1,5 +1,4 @@
1
1
  import { Post } from './Post';
2
- import { SlugInput } from './SlugInput';
3
2
  import { TagInput } from './TagInput';
4
3
  import { UserInput } from './UserInput';
5
4
  import { MediaInput } from './MediaInput';
@@ -19,13 +18,13 @@ export interface PostInput extends Publishable {
19
18
  */
20
19
  pinToTop?: boolean;
21
20
  authorEmail?: string;
22
- summary?: string;
23
- slug?: SetHasOne<SlugInput>;
24
21
  tags?: SetHasMany<TagInput>;
25
22
  author?: SetHasOne<UserInput>;
26
23
  cover?: SetHasOne<MediaInput>;
27
24
  ogImage?: SetHasOne<MediaInput>;
25
+ draftOf?: SetHasOne<PostInput>;
28
26
  category?: SetHasOne<PostCategoryInput>;
27
+ draft?: SetHasOne<PostInput>;
29
28
  }
30
29
  export declare const postToInputCascade: (entity: Post) => PostInput;
31
30
  export declare const postToInput: (entity: Post) => PostInput;
@@ -12,5 +12,4 @@ export interface PostOrderBy extends PublishableOrderBy {
12
12
  */
13
13
  pinToTop?: OrderBy;
14
14
  authorEmail?: OrderBy;
15
- summary?: OrderBy;
16
15
  }
@@ -1,9 +1,9 @@
1
1
  import { ProductCategory } from './ProductCategory';
2
2
  import { Media } from './Media';
3
- import { Slug } from './Slug';
4
3
  import { Tag } from './Tag';
5
4
  import { User } from './User';
6
5
  import { MediaAddon } from './MediaAddon';
6
+ import { AttachmentAddon } from './AttachmentAddon';
7
7
  import { Aggregate } from './Aggregate';
8
8
  import { Publishable } from './Publishable';
9
9
  export declare const ProductEntityName = "Product";
@@ -11,7 +11,6 @@ export declare const ProductEntityLabel = "";
11
11
  export interface Product extends Publishable {
12
12
  id?: string;
13
13
  published?: boolean;
14
- summary?: string;
15
14
  featured?: boolean;
16
15
  showInNavMenu?: boolean;
17
16
  seqValue?: number;
@@ -21,13 +20,19 @@ export interface Product extends Publishable {
21
20
  features?: string;
22
21
  content2?: any;
23
22
  content3?: any;
23
+ shortTitle?: string;
24
+ /**
25
+ * 第三方视频url
26
+ */
27
+ externalVideoUrl?: string;
24
28
  category?: ProductCategory;
25
29
  medias?: (Media & MediaAddon)[];
26
- slug?: Slug;
27
30
  tags?: Tag[];
28
31
  ogImage?: Media;
29
- attachments?: Media[];
32
+ attachments?: (Media & AttachmentAddon)[];
33
+ draftOf?: Product;
30
34
  creator?: User;
35
+ draft?: Product;
31
36
  mediasAggregate?: Aggregate;
32
37
  tagsAggregate?: Aggregate;
33
38
  attachmentsAggregate?: Aggregate;
@@ -1,11 +1,10 @@
1
1
  import { PublishableBoolExp } from './PublishableBoolExp';
2
2
  import { IdComparisonExp } from './IdComparisonExp';
3
3
  import { BooleanComparisonExp } from './BooleanComparisonExp';
4
- import { StringComparisonExp } from './StringComparisonExp';
5
4
  import { NumberComparisonExp } from './NumberComparisonExp';
5
+ import { StringComparisonExp } from './StringComparisonExp';
6
6
  import { ProductCategoryBoolExp } from './ProductCategoryBoolExp';
7
7
  import { MediaBoolExp } from './MediaBoolExp';
8
- import { SlugBoolExp } from './SlugBoolExp';
9
8
  import { TagBoolExp } from './TagBoolExp';
10
9
  import { UserBoolExp } from './UserBoolExp';
11
10
  export interface ProductBoolExp extends PublishableBoolExp {
@@ -14,18 +13,20 @@ export interface ProductBoolExp extends PublishableBoolExp {
14
13
  _not?: ProductBoolExp;
15
14
  id?: IdComparisonExp;
16
15
  published?: BooleanComparisonExp;
17
- summary?: StringComparisonExp;
18
16
  featured?: BooleanComparisonExp;
19
17
  showInNavMenu?: BooleanComparisonExp;
20
18
  seqValue?: NumberComparisonExp;
21
19
  features?: StringComparisonExp;
22
20
  content2?: unknown;
23
21
  content3?: unknown;
22
+ shortTitle?: StringComparisonExp;
23
+ externalVideoUrl?: StringComparisonExp;
24
24
  category?: ProductCategoryBoolExp;
25
25
  medias?: MediaBoolExp;
26
- slug?: SlugBoolExp;
27
26
  tags?: TagBoolExp;
28
27
  ogImage?: MediaBoolExp;
29
28
  attachments?: MediaBoolExp;
29
+ draftOf?: ProductBoolExp;
30
30
  creator?: UserBoolExp;
31
+ draft?: ProductBoolExp;
31
32
  }
@@ -1,3 +1,4 @@
1
+ import { Media } from './Media';
1
2
  import { Product } from './Product';
2
3
  import { Aggregate } from './Aggregate';
3
4
  import { WebsitePart } from './WebsitePart';
@@ -8,6 +9,7 @@ export interface ProductCategory extends WebsitePart {
8
9
  name?: string;
9
10
  seqValue?: number;
10
11
  children?: ProductCategory[];
12
+ media?: Media;
11
13
  parent?: ProductCategory;
12
14
  products?: Product[];
13
15
  childrenAggregate?: Aggregate;
@@ -2,6 +2,7 @@ import { WebsitePartBoolExp } from './WebsitePartBoolExp';
2
2
  import { IdComparisonExp } from './IdComparisonExp';
3
3
  import { StringComparisonExp } from './StringComparisonExp';
4
4
  import { NumberComparisonExp } from './NumberComparisonExp';
5
+ import { MediaBoolExp } from './MediaBoolExp';
5
6
  import { ProductBoolExp } from './ProductBoolExp';
6
7
  export interface ProductCategoryBoolExp extends WebsitePartBoolExp {
7
8
  _and?: ProductCategoryBoolExp[];
@@ -11,6 +12,7 @@ export interface ProductCategoryBoolExp extends WebsitePartBoolExp {
11
12
  name?: StringComparisonExp;
12
13
  seqValue?: NumberComparisonExp;
13
14
  children?: ProductCategoryBoolExp;
15
+ media?: MediaBoolExp;
14
16
  parent?: ProductCategoryBoolExp;
15
17
  products?: ProductBoolExp;
16
18
  }
@@ -4,6 +4,8 @@ export declare enum ProductCategoryDistinctEnum {
4
4
  name = "name",
5
5
  seqValue = "seqValue",
6
6
  websiteId = "websiteId",
7
+ slug = "slug",
8
+ description = "description",
7
9
  /**
8
10
  * 创建时间
9
11
  */
@@ -1,4 +1,5 @@
1
1
  import { ProductCategory } from './ProductCategory';
2
+ import { MediaInput } from './MediaInput';
2
3
  import { ProductInput } from './ProductInput';
3
4
  import { SetHasMany } from '@rxdrag/entify-hooks';
4
5
  import { SetHasOne } from '@rxdrag/entify-hooks';
@@ -8,6 +9,7 @@ export interface ProductCategoryInput extends WebsitePart {
8
9
  name?: string;
9
10
  seqValue?: number;
10
11
  children?: SetHasMany<ProductCategoryInput>;
12
+ media?: SetHasOne<MediaInput>;
11
13
  parent?: SetHasOne<ProductCategoryInput>;
12
14
  products?: SetHasMany<ProductInput>;
13
15
  }
@@ -2,7 +2,6 @@ import { PublishableDistinctExp } from './PublishableDistinctExp';
2
2
  export declare enum ProductDistinctEnum {
3
3
  id = "id",
4
4
  published = "published",
5
- summary = "summary",
6
5
  featured = "featured",
7
6
  showInNavMenu = "showInNavMenu",
8
7
  seqValue = "seqValue",
@@ -12,16 +11,19 @@ export declare enum ProductDistinctEnum {
12
11
  features = "features",
13
12
  content2 = "content2",
14
13
  content3 = "content3",
14
+ shortTitle = "shortTitle",
15
15
  /**
16
- * 发布的内容
16
+ * 第三方视频url
17
17
  */
18
- publishedContent = "publishedContent",
18
+ externalVideoUrl = "externalVideoUrl",
19
19
  publishedAt = "publishedAt",
20
20
  status = "status",
21
21
  title = "title",
22
22
  content = "content",
23
23
  extends = "extends",
24
24
  websiteId = "websiteId",
25
+ slug = "slug",
26
+ description = "description",
25
27
  /**
26
28
  * 创建时间
27
29
  */
@@ -1,17 +1,16 @@
1
1
  import { Product } from './Product';
2
2
  import { ProductCategoryInput } from './ProductCategoryInput';
3
3
  import { MediaInput } from './MediaInput';
4
- import { SlugInput } from './SlugInput';
5
4
  import { TagInput } from './TagInput';
6
5
  import { UserInput } from './UserInput';
7
6
  import { MediaAddon } from './MediaAddon';
7
+ import { AttachmentAddon } from './AttachmentAddon';
8
8
  import { SetHasMany } from '@rxdrag/entify-hooks';
9
9
  import { SetHasOne } from '@rxdrag/entify-hooks';
10
10
  import { Publishable } from './Publishable';
11
11
  export interface ProductInput extends Publishable {
12
12
  id?: string;
13
13
  published?: boolean;
14
- summary?: string;
15
14
  featured?: boolean;
16
15
  showInNavMenu?: boolean;
17
16
  seqValue?: number;
@@ -21,13 +20,19 @@ export interface ProductInput extends Publishable {
21
20
  features?: string;
22
21
  content2?: any;
23
22
  content3?: any;
23
+ shortTitle?: string;
24
+ /**
25
+ * 第三方视频url
26
+ */
27
+ externalVideoUrl?: string;
24
28
  category?: SetHasOne<ProductCategoryInput>;
25
29
  medias?: SetHasMany<MediaInput & MediaAddon>;
26
- slug?: SetHasOne<SlugInput>;
27
30
  tags?: SetHasMany<TagInput>;
28
31
  ogImage?: SetHasOne<MediaInput>;
29
- attachments?: SetHasMany<MediaInput>;
32
+ attachments?: SetHasMany<MediaInput & AttachmentAddon>;
33
+ draftOf?: SetHasOne<ProductInput>;
30
34
  creator?: SetHasOne<UserInput>;
35
+ draft?: SetHasOne<ProductInput>;
31
36
  }
32
37
  export declare const productToInputCascade: (entity: Product) => ProductInput;
33
38
  export declare const productToInput: (entity: Product) => ProductInput;
@@ -3,7 +3,6 @@ import { PublishableOrderBy } from './PublishableOrderBy';
3
3
  export interface ProductOrderBy extends PublishableOrderBy {
4
4
  id?: OrderBy;
5
5
  published?: OrderBy;
6
- summary?: OrderBy;
7
6
  featured?: OrderBy;
8
7
  showInNavMenu?: OrderBy;
9
8
  seqValue?: OrderBy;
@@ -13,4 +12,9 @@ export interface ProductOrderBy extends PublishableOrderBy {
13
12
  features?: OrderBy;
14
13
  content2?: OrderBy;
15
14
  content3?: OrderBy;
15
+ shortTitle?: OrderBy;
16
+ /**
17
+ * 第三方视频url
18
+ */
19
+ externalVideoUrl?: OrderBy;
16
20
  }
@@ -1,11 +1,11 @@
1
1
  import { PublishableStatus } from './PublishableStatus';
2
2
  import { WebsiteContent } from './WebsiteContent';
3
+ /**
4
+ * Publishable
5
+ * 草稿发布是一个 复制的过程
6
+ */
3
7
  export interface Publishable extends WebsiteContent {
4
8
  id?: string;
5
- /**
6
- * 发布的内容
7
- */
8
- publishedContent?: any;
9
9
  publishedAt?: Date;
10
10
  status?: PublishableStatus;
11
11
  }
@@ -3,12 +3,15 @@ import { WebsiteContentBoolExp } from './WebsiteContentBoolExp';
3
3
  import { IdComparisonExp } from './IdComparisonExp';
4
4
  import { DateTimeComparisonExp } from './DateTimeComparisonExp';
5
5
  import { EnumComparisonExp } from './EnumComparisonExp';
6
+ /**
7
+ * Publishable
8
+ * 草稿发布是一个 复制的过程
9
+ */
6
10
  export interface PublishableBoolExp extends WebsiteContentBoolExp {
7
11
  _and?: PublishableBoolExp[];
8
12
  _or?: PublishableBoolExp[];
9
13
  _not?: PublishableBoolExp;
10
14
  id?: IdComparisonExp;
11
- publishedContent?: unknown;
12
15
  publishedAt?: DateTimeComparisonExp;
13
16
  status?: EnumComparisonExp<PublishableStatus>;
14
17
  }
@@ -1,16 +1,14 @@
1
1
  import { WebsiteContentDistinctExp } from './WebsiteContentDistinctExp';
2
2
  export declare enum PublishableDistinctEnum {
3
3
  id = "id",
4
- /**
5
- * 发布的内容
6
- */
7
- publishedContent = "publishedContent",
8
4
  publishedAt = "publishedAt",
9
5
  status = "status",
10
6
  title = "title",
11
7
  content = "content",
12
8
  extends = "extends",
13
9
  websiteId = "websiteId",
10
+ slug = "slug",
11
+ description = "description",
14
12
  /**
15
13
  * 创建时间
16
14
  */
@@ -1,11 +1,11 @@
1
1
  import { OrderBy } from '@rxdrag/entify-hooks';
2
2
  import { WebsiteContentOrderBy } from './WebsiteContentOrderBy';
3
+ /**
4
+ * Publishable
5
+ * 草稿发布是一个 复制的过程
6
+ */
3
7
  export interface PublishableOrderBy extends WebsiteContentOrderBy {
4
8
  id?: OrderBy;
5
- /**
6
- * 发布的内容
7
- */
8
- publishedContent?: OrderBy;
9
9
  publishedAt?: OrderBy;
10
10
  status?: OrderBy;
11
11
  }