@rxdrag/rxcms-models 0.3.34 → 0.3.35

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 (86) hide show
  1. package/dist/classes/FrontComponentQueryOptions.d.ts +1 -0
  2. package/dist/classes/PageQueryOptions.d.ts +1 -1
  3. package/dist/classes/TemplateQueryOptions.d.ts +0 -4
  4. package/dist/classes/WebsiteQueryOptions.d.ts +2 -3
  5. package/dist/fields/FrontComponentFields.d.ts +1 -0
  6. package/dist/fields/PageFields.d.ts +1 -1
  7. package/dist/fields/TemplateFields.d.ts +0 -4
  8. package/dist/fields/WebsiteFields.d.ts +0 -1
  9. package/dist/index.mjs +161 -179
  10. package/dist/index.mjs.map +1 -1
  11. package/dist/interfaces/Ability.d.ts +2 -2
  12. package/dist/interfaces/AbilityInput.d.ts +2 -2
  13. package/dist/interfaces/AttachmentOnProduct.d.ts +1 -1
  14. package/dist/interfaces/AttachmentOnProductInput.d.ts +1 -1
  15. package/dist/interfaces/ComponentCategory.d.ts +1 -1
  16. package/dist/interfaces/ComponentCategoryInput.d.ts +1 -1
  17. package/dist/interfaces/Customer.d.ts +1 -1
  18. package/dist/interfaces/CustomerInput.d.ts +1 -1
  19. package/dist/interfaces/Enquiry.d.ts +1 -1
  20. package/dist/interfaces/EnquiryInput.d.ts +1 -1
  21. package/dist/interfaces/FrontComponent.d.ts +2 -1
  22. package/dist/interfaces/FrontComponentBoolExp.d.ts +1 -0
  23. package/dist/interfaces/FrontComponentDistinctExp.d.ts +1 -0
  24. package/dist/interfaces/FrontComponentInput.d.ts +2 -1
  25. package/dist/interfaces/FrontComponentOrderBy.d.ts +1 -0
  26. package/dist/interfaces/IdComparisonExp.d.ts +1 -1
  27. package/dist/interfaces/Lang.d.ts +1 -1
  28. package/dist/interfaces/LangInput.d.ts +1 -1
  29. package/dist/interfaces/Mail.d.ts +1 -1
  30. package/dist/interfaces/MailInput.d.ts +1 -1
  31. package/dist/interfaces/Media.d.ts +1 -1
  32. package/dist/interfaces/MediaFolder.d.ts +1 -1
  33. package/dist/interfaces/MediaFolderInput.d.ts +1 -1
  34. package/dist/interfaces/MediaInput.d.ts +1 -1
  35. package/dist/interfaces/MediaOnProduct.d.ts +1 -1
  36. package/dist/interfaces/MediaOnProductInput.d.ts +1 -1
  37. package/dist/interfaces/OgMeta.d.ts +1 -1
  38. package/dist/interfaces/Page.d.ts +3 -2
  39. package/dist/interfaces/PageBoolExp.d.ts +3 -1
  40. package/dist/interfaces/PageDistinctExp.d.ts +1 -0
  41. package/dist/interfaces/PageInput.d.ts +3 -2
  42. package/dist/interfaces/PageOrderBy.d.ts +1 -0
  43. package/dist/interfaces/{TemplateType.d.ts → PageType.d.ts} +16 -12
  44. package/dist/interfaces/Person.d.ts +1 -1
  45. package/dist/interfaces/Post.d.ts +1 -1
  46. package/dist/interfaces/PostCategory.d.ts +1 -1
  47. package/dist/interfaces/PostCategoryInput.d.ts +1 -1
  48. package/dist/interfaces/PostInput.d.ts +1 -1
  49. package/dist/interfaces/Product.d.ts +1 -1
  50. package/dist/interfaces/ProductCategory.d.ts +1 -1
  51. package/dist/interfaces/ProductCategoryInput.d.ts +1 -1
  52. package/dist/interfaces/ProductInput.d.ts +1 -1
  53. package/dist/interfaces/ProductRelatedPivot.d.ts +1 -1
  54. package/dist/interfaces/ProductRelatedPivotInput.d.ts +1 -1
  55. package/dist/interfaces/Publishable.d.ts +1 -1
  56. package/dist/interfaces/Role.d.ts +1 -1
  57. package/dist/interfaces/RoleInput.d.ts +1 -1
  58. package/dist/interfaces/SeoMeta.d.ts +1 -1
  59. package/dist/interfaces/Slugable.d.ts +1 -1
  60. package/dist/interfaces/SpamFilterRule.d.ts +1 -1
  61. package/dist/interfaces/SpamFilterRuleInput.d.ts +1 -1
  62. package/dist/interfaces/Tag.d.ts +1 -1
  63. package/dist/interfaces/TagInput.d.ts +1 -1
  64. package/dist/interfaces/Template.d.ts +1 -6
  65. package/dist/interfaces/TemplateBoolExp.d.ts +0 -3
  66. package/dist/interfaces/TemplateCategory.d.ts +1 -1
  67. package/dist/interfaces/TemplateCategoryInput.d.ts +1 -1
  68. package/dist/interfaces/TemplateDistinctExp.d.ts +0 -4
  69. package/dist/interfaces/TemplateInput.d.ts +1 -6
  70. package/dist/interfaces/TemplateOrderBy.d.ts +0 -4
  71. package/dist/interfaces/Theme.d.ts +1 -1
  72. package/dist/interfaces/ThemeInput.d.ts +1 -1
  73. package/dist/interfaces/User.d.ts +1 -1
  74. package/dist/interfaces/UserInput.d.ts +1 -1
  75. package/dist/interfaces/Website.d.ts +4 -5
  76. package/dist/interfaces/WebsiteBoolExp.d.ts +1 -2
  77. package/dist/interfaces/WebsiteContent.d.ts +1 -1
  78. package/dist/interfaces/WebsiteInput.d.ts +4 -5
  79. package/dist/interfaces/WebsitePart.d.ts +1 -1
  80. package/dist/interfaces/WebsiteSettings.d.ts +1 -1
  81. package/dist/interfaces/WebsiteSettingsInput.d.ts +1 -1
  82. package/dist/interfaces/WebsiteType.d.ts +1 -1
  83. package/dist/interfaces/WebsiteTypeInput.d.ts +1 -1
  84. package/dist/interfaces/WebsiteUser.d.ts +1 -1
  85. package/dist/interfaces/index.d.ts +1 -1
  86. package/package.json +3 -3
@@ -1,9 +1,7 @@
1
- import { TemplateType } from './TemplateType';
2
1
  import { WebsitePartBoolExp } from './WebsitePartBoolExp';
3
2
  import { IdComparisonExp } from './IdComparisonExp';
4
3
  import { StringComparisonExp } from './StringComparisonExp';
5
4
  import { NumberComparisonExp } from './NumberComparisonExp';
6
- import { EnumComparisonExp } from './EnumComparisonExp';
7
5
  import { LangBoolExp } from './LangBoolExp';
8
6
  import { TemplateCategoryBoolExp } from './TemplateCategoryBoolExp';
9
7
  import { ThemeBoolExp } from './ThemeBoolExp';
@@ -16,7 +14,6 @@ export interface TemplateBoolExp extends WebsitePartBoolExp {
16
14
  name?: StringComparisonExp;
17
15
  seqValue?: NumberComparisonExp;
18
16
  content?: unknown;
19
- templateType?: EnumComparisonExp<TemplateType>;
20
17
  lang?: LangBoolExp;
21
18
  category?: TemplateCategoryBoolExp;
22
19
  theme?: ThemeBoolExp;
@@ -7,7 +7,7 @@ import { WebsitePart } from './WebsitePart';
7
7
  export declare const TemplateCategoryEntityName = "TemplateCategory";
8
8
  export declare const TemplateCategoryEntityLabel = "";
9
9
  export interface TemplateCategory extends WebsitePart {
10
- id?: string;
10
+ id?: string | null;
11
11
  name?: string;
12
12
  seqValue?: number;
13
13
  templates?: Template[];
@@ -7,7 +7,7 @@ import { SetHasMany } from '@rxdrag/entify-hooks';
7
7
  import { SetHasOne } from '@rxdrag/entify-hooks';
8
8
  import { WebsitePart } from './WebsitePart';
9
9
  export interface TemplateCategoryInput extends WebsitePart {
10
- id?: string;
10
+ id?: string | null;
11
11
  name?: string;
12
12
  seqValue?: number;
13
13
  templates?: SetHasMany<TemplateInput>;
@@ -4,10 +4,6 @@ export declare enum TemplateDistinctEnum {
4
4
  name = "name",
5
5
  seqValue = "seqValue",
6
6
  content = "content",
7
- /**
8
- * 模板类型
9
- */
10
- templateType = "templateType",
11
7
  createdAt = "createdAt",
12
8
  updatedAt = "updatedAt"
13
9
  }
@@ -1,5 +1,4 @@
1
1
  import { Template } from './Template';
2
- import { TemplateType } from './TemplateType';
3
2
  import { LangInput } from './LangInput';
4
3
  import { TemplateCategoryInput } from './TemplateCategoryInput';
5
4
  import { ThemeInput } from './ThemeInput';
@@ -7,14 +6,10 @@ import { WebsiteInput } from './WebsiteInput';
7
6
  import { SetHasOne } from '@rxdrag/entify-hooks';
8
7
  import { WebsitePart } from './WebsitePart';
9
8
  export interface TemplateInput extends WebsitePart {
10
- id?: string;
9
+ id?: string | null;
11
10
  name?: string;
12
11
  seqValue?: number;
13
12
  content?: any;
14
- /**
15
- * 模板类型
16
- */
17
- templateType?: TemplateType;
18
13
  lang?: SetHasOne<LangInput>;
19
14
  category?: SetHasOne<TemplateCategoryInput>;
20
15
  theme?: SetHasOne<ThemeInput>;
@@ -5,8 +5,4 @@ export interface TemplateOrderBy extends WebsitePartOrderBy {
5
5
  name?: OrderBy;
6
6
  seqValue?: OrderBy;
7
7
  content?: OrderBy;
8
- /**
9
- * 模板类型
10
- */
11
- templateType?: OrderBy;
12
8
  }
@@ -11,7 +11,7 @@ import { WebsitePart } from './WebsitePart';
11
11
  export declare const ThemeEntityName = "Theme";
12
12
  export declare const ThemeEntityLabel = "";
13
13
  export interface Theme extends WebsitePart {
14
- id?: string;
14
+ id?: string | null;
15
15
  name?: string;
16
16
  styles?: any;
17
17
  settings?: ThemeSettings;
@@ -11,7 +11,7 @@ import { SetHasMany } from '@rxdrag/entify-hooks';
11
11
  import { SetHasOne } from '@rxdrag/entify-hooks';
12
12
  import { WebsitePart } from './WebsitePart';
13
13
  export interface ThemeInput extends WebsitePart {
14
- id?: string;
14
+ id?: string | null;
15
15
  name?: string;
16
16
  styles?: any;
17
17
  settings?: ThemeSettings;
@@ -8,7 +8,7 @@ import { WebsiteUser } from './WebsiteUser';
8
8
  export declare const UserEntityName = "User";
9
9
  export declare const UserEntityLabel = "";
10
10
  export interface User extends WebsiteUser {
11
- id?: string;
11
+ id?: string | null;
12
12
  loginName?: string;
13
13
  name?: string;
14
14
  mobileNumber?: string;
@@ -8,7 +8,7 @@ import { SetHasMany } from '@rxdrag/entify-hooks';
8
8
  import { SetHasOne } from '@rxdrag/entify-hooks';
9
9
  import { WebsiteUser } from './WebsiteUser';
10
10
  export interface UserInput extends WebsiteUser {
11
- id?: string;
11
+ id?: string | null;
12
12
  loginName?: string;
13
13
  name?: string;
14
14
  mobileNumber?: string;
@@ -1,12 +1,12 @@
1
1
  import { WebsiteType } from './WebsiteType';
2
2
  import { Theme } from './Theme';
3
- import { Page } from './Page';
4
3
  import { User } from './User';
5
4
  import { WebsiteSettings } from './WebsiteSettings';
6
5
  import { Template } from './Template';
7
6
  import { TemplateCategory } from './TemplateCategory';
8
7
  import { MediaFolder } from './MediaFolder';
9
8
  import { Enquiry } from './Enquiry';
9
+ import { Page } from './Page';
10
10
  import { Product } from './Product';
11
11
  import { Post } from './Post';
12
12
  import { PostCategory } from './PostCategory';
@@ -23,7 +23,7 @@ export declare const WebsiteEntityLabel = "\u7AD9\u70B9";
23
23
  * 网站实体
24
24
  */
25
25
  export interface Website {
26
- id?: string;
26
+ id?: string | null;
27
27
  /**
28
28
  * 站点名称
29
29
  */
@@ -35,7 +35,7 @@ export interface Website {
35
35
  /**
36
36
  * 创建者ID
37
37
  */
38
- createdBy?: string;
38
+ createdBy?: string | null;
39
39
  /**
40
40
  * 创建时间
41
41
  */
@@ -51,11 +51,10 @@ export interface Website {
51
51
  /**
52
52
  * 更新者ID
53
53
  */
54
- updatedBy?: string;
54
+ updatedBy?: string | null;
55
55
  description?: string;
56
56
  websiteType?: WebsiteType;
57
57
  selectedTheme?: Theme;
58
- homePage?: Page;
59
58
  owner?: User;
60
59
  users?: User[];
61
60
  partsOfWebsiteSettings?: WebsiteSettings[];
@@ -3,13 +3,13 @@ import { StringComparisonExp } from './StringComparisonExp';
3
3
  import { DateTimeComparisonExp } from './DateTimeComparisonExp';
4
4
  import { WebsiteTypeBoolExp } from './WebsiteTypeBoolExp';
5
5
  import { ThemeBoolExp } from './ThemeBoolExp';
6
- import { PageBoolExp } from './PageBoolExp';
7
6
  import { UserBoolExp } from './UserBoolExp';
8
7
  import { WebsiteSettingsBoolExp } from './WebsiteSettingsBoolExp';
9
8
  import { TemplateBoolExp } from './TemplateBoolExp';
10
9
  import { TemplateCategoryBoolExp } from './TemplateCategoryBoolExp';
11
10
  import { MediaFolderBoolExp } from './MediaFolderBoolExp';
12
11
  import { EnquiryBoolExp } from './EnquiryBoolExp';
12
+ import { PageBoolExp } from './PageBoolExp';
13
13
  import { ProductBoolExp } from './ProductBoolExp';
14
14
  import { PostBoolExp } from './PostBoolExp';
15
15
  import { PostCategoryBoolExp } from './PostCategoryBoolExp';
@@ -37,7 +37,6 @@ export interface WebsiteBoolExp {
37
37
  description?: StringComparisonExp;
38
38
  websiteType?: WebsiteTypeBoolExp;
39
39
  selectedTheme?: ThemeBoolExp;
40
- homePage?: PageBoolExp;
41
40
  owner?: UserBoolExp;
42
41
  users?: UserBoolExp;
43
42
  partsOfWebsiteSettings?: WebsiteSettingsBoolExp;
@@ -7,7 +7,7 @@ import { Slugable } from './Slugable';
7
7
  * 页面、产品、文章等被搜索引擎检索的内容
8
8
  */
9
9
  export interface WebsiteContent extends WebsitePart, SeoMeta, OgMeta, Slugable {
10
- id?: string;
10
+ id?: string | null;
11
11
  title?: string;
12
12
  content?: any;
13
13
  extends?: any;
@@ -1,13 +1,13 @@
1
1
  import { Website } from './Website';
2
2
  import { WebsiteTypeInput } from './WebsiteTypeInput';
3
3
  import { ThemeInput } from './ThemeInput';
4
- import { PageInput } from './PageInput';
5
4
  import { UserInput } from './UserInput';
6
5
  import { WebsiteSettingsInput } from './WebsiteSettingsInput';
7
6
  import { TemplateInput } from './TemplateInput';
8
7
  import { TemplateCategoryInput } from './TemplateCategoryInput';
9
8
  import { MediaFolderInput } from './MediaFolderInput';
10
9
  import { EnquiryInput } from './EnquiryInput';
10
+ import { PageInput } from './PageInput';
11
11
  import { ProductInput } from './ProductInput';
12
12
  import { PostInput } from './PostInput';
13
13
  import { PostCategoryInput } from './PostCategoryInput';
@@ -23,7 +23,7 @@ import { SetHasOne } from '@rxdrag/entify-hooks';
23
23
  * 网站实体
24
24
  */
25
25
  export interface WebsiteInput {
26
- id?: string;
26
+ id?: string | null;
27
27
  /**
28
28
  * 站点名称
29
29
  */
@@ -35,7 +35,7 @@ export interface WebsiteInput {
35
35
  /**
36
36
  * 创建者ID
37
37
  */
38
- createdBy?: string;
38
+ createdBy?: string | null;
39
39
  /**
40
40
  * 创建时间
41
41
  */
@@ -51,11 +51,10 @@ export interface WebsiteInput {
51
51
  /**
52
52
  * 更新者ID
53
53
  */
54
- updatedBy?: string;
54
+ updatedBy?: string | null;
55
55
  description?: string;
56
56
  websiteType?: SetHasOne<WebsiteTypeInput>;
57
57
  selectedTheme?: SetHasOne<ThemeInput>;
58
- homePage?: SetHasOne<PageInput>;
59
58
  owner?: SetHasOne<UserInput>;
60
59
  users?: SetHasMany<UserInput>;
61
60
  partsOfWebsiteSettings?: SetHasMany<WebsiteSettingsInput>;
@@ -1,5 +1,5 @@
1
1
  export interface WebsitePart {
2
- id?: string;
2
+ id?: string | null;
3
3
  createdAt?: Date;
4
4
  updatedAt?: Date;
5
5
  }
@@ -7,7 +7,7 @@ import { WebsitePart } from './WebsitePart';
7
7
  export declare const WebsiteSettingsEntityName = "WebsiteSettings";
8
8
  export declare const WebsiteSettingsEntityLabel = "";
9
9
  export interface WebsiteSettings extends WebsitePart {
10
- id?: string;
10
+ id?: string | null;
11
11
  /**
12
12
  * 邮件配置
13
13
  */
@@ -7,7 +7,7 @@ import { WebsiteInput } from './WebsiteInput';
7
7
  import { SetHasOne } from '@rxdrag/entify-hooks';
8
8
  import { WebsitePart } from './WebsitePart';
9
9
  export interface WebsiteSettingsInput extends WebsitePart {
10
- id?: string;
10
+ id?: string | null;
11
11
  /**
12
12
  * 邮件配置
13
13
  */
@@ -8,7 +8,7 @@ export declare const WebsiteTypeEntityLabel = "\u7AD9\u70B9\u7C7B\u578B";
8
8
  *
9
9
  */
10
10
  export interface WebsiteType {
11
- id?: string;
11
+ id?: string | null;
12
12
  /**
13
13
  * 网站类型名称
14
14
  */
@@ -7,7 +7,7 @@ import { SetHasMany } from '@rxdrag/entify-hooks';
7
7
  *
8
8
  */
9
9
  export interface WebsiteTypeInput {
10
- id?: string;
10
+ id?: string | null;
11
11
  /**
12
12
  * 网站类型名称
13
13
  */
@@ -1,7 +1,7 @@
1
1
  import { UserType } from './UserType';
2
2
  import { Person } from './Person';
3
3
  export interface WebsiteUser extends Person {
4
- id?: string;
4
+ id?: string | null;
5
5
  /**
6
6
  * 职位
7
7
  */
@@ -139,7 +139,7 @@ export * from './WebsiteUserBoolExp';
139
139
  export * from './WebsiteUserOrderBy';
140
140
  export * from './WebsiteUserDistinctExp';
141
141
  export * from './UserType';
142
- export * from './TemplateType';
142
+ export * from './PageType';
143
143
  export * from './ProductCategory';
144
144
  export * from './ProductCategoryInput';
145
145
  export * from './ProductCategoryBoolExp';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdrag/rxcms-models",
3
- "version": "0.3.34",
3
+ "version": "0.3.35",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [
@@ -12,12 +12,12 @@
12
12
  "devDependencies": {
13
13
  "eslint": "^7.32.0",
14
14
  "typescript": "^5",
15
- "@rxdrag/eslint-config-custom": "0.2.0",
15
+ "@rxdrag/eslint-config-custom": "0.2.1",
16
16
  "@rxdrag/tsconfig": "0.2.0"
17
17
  },
18
18
  "dependencies": {
19
19
  "swr": "^2.2.4",
20
- "@rxdrag/entify-hooks": "0.2.28"
20
+ "@rxdrag/entify-hooks": "0.2.29"
21
21
  },
22
22
  "scripts": {
23
23
  "lint": "eslint . --ext .ts,tsx",