@rxdrag/rxcms-models 0.3.46 → 0.3.47

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 (90) hide show
  1. package/dist/classes/ComponentCategoryQueryOptions.d.ts +1 -0
  2. package/dist/classes/FrontComponentQueryOptions.d.ts +1 -0
  3. package/dist/classes/PostQueryOptions.d.ts +0 -2
  4. package/dist/classes/ProductQueryOptions.d.ts +1 -9
  5. package/dist/classes/RoleQueryOptions.d.ts +1 -0
  6. package/dist/classes/SectionTemplateQueryOptions.d.ts +19 -0
  7. package/dist/classes/StyleConfigQueryOptions.d.ts +18 -0
  8. package/dist/classes/TemplateCategoryQueryOptions.d.ts +20 -0
  9. package/dist/classes/ThemeCategoryQueryOptions.d.ts +17 -0
  10. package/dist/classes/ThemeQueryOptions.d.ts +20 -5
  11. package/dist/classes/index.d.ts +4 -1
  12. package/dist/entries/index.d.ts +4 -1
  13. package/dist/entries/sectionTemplateEntry.d.ts +2 -0
  14. package/dist/entries/styleConfigEntry.d.ts +2 -0
  15. package/dist/entries/templateCategoryEntry.d.ts +2 -0
  16. package/dist/entries/themeCategoryEntry.d.ts +2 -0
  17. package/dist/fields/ComponentCategoryFields.d.ts +2 -1
  18. package/dist/fields/FrontComponentFields.d.ts +2 -1
  19. package/dist/fields/PostFields.d.ts +0 -2
  20. package/dist/fields/ProductFields.d.ts +2 -7
  21. package/dist/fields/RoleFields.d.ts +1 -0
  22. package/dist/fields/SectionTemplateFields.d.ts +13 -0
  23. package/dist/fields/StyleConfigFields.d.ts +14 -0
  24. package/dist/fields/TemplateCategoryFields.d.ts +13 -0
  25. package/dist/fields/ThemeCategoryFields.d.ts +12 -0
  26. package/dist/fields/ThemeFields.d.ts +12 -7
  27. package/dist/fields/index.d.ts +4 -1
  28. package/dist/index.mjs +526 -205
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/interfaces/AbilityType.d.ts +5 -1
  31. package/dist/interfaces/ComponentCategory.d.ts +1 -0
  32. package/dist/interfaces/ComponentCategoryBoolExp.d.ts +2 -0
  33. package/dist/interfaces/ComponentCategoryDistinctExp.d.ts +2 -1
  34. package/dist/interfaces/ComponentCategoryInput.d.ts +1 -0
  35. package/dist/interfaces/ComponentCategoryOrderBy.d.ts +1 -0
  36. package/dist/interfaces/ExtendField.d.ts +1 -2
  37. package/dist/interfaces/FrontComponent.d.ts +1 -0
  38. package/dist/interfaces/FrontComponentBoolExp.d.ts +1 -0
  39. package/dist/interfaces/FrontComponentDistinctExp.d.ts +2 -1
  40. package/dist/interfaces/FrontComponentInput.d.ts +1 -0
  41. package/dist/interfaces/FrontComponentOrderBy.d.ts +1 -0
  42. package/dist/interfaces/Post.d.ts +0 -2
  43. package/dist/interfaces/PostBoolExp.d.ts +0 -2
  44. package/dist/interfaces/PostInput.d.ts +0 -2
  45. package/dist/interfaces/Product.d.ts +1 -7
  46. package/dist/interfaces/ProductBoolExp.d.ts +1 -5
  47. package/dist/interfaces/ProductDistinctExp.d.ts +1 -0
  48. package/dist/interfaces/ProductInput.d.ts +1 -5
  49. package/dist/interfaces/ProductOrderBy.d.ts +1 -0
  50. package/dist/interfaces/Role.d.ts +1 -0
  51. package/dist/interfaces/RoleBoolExp.d.ts +1 -0
  52. package/dist/interfaces/RoleDistinctExp.d.ts +1 -0
  53. package/dist/interfaces/RoleInput.d.ts +1 -0
  54. package/dist/interfaces/RoleOrderBy.d.ts +1 -0
  55. package/dist/interfaces/SectionTemplate.d.ts +15 -0
  56. package/dist/interfaces/SectionTemplateBoolExp.d.ts +20 -0
  57. package/dist/interfaces/SectionTemplateDistinctExp.d.ts +10 -0
  58. package/dist/interfaces/SectionTemplateInput.d.ts +17 -0
  59. package/dist/interfaces/SectionTemplateOrderBy.d.ts +10 -0
  60. package/dist/interfaces/StyleConfig.d.ts +15 -0
  61. package/dist/interfaces/StyleConfigBoolExp.d.ts +20 -0
  62. package/dist/interfaces/StyleConfigDistinctExp.d.ts +12 -0
  63. package/dist/interfaces/StyleConfigInput.d.ts +17 -0
  64. package/dist/interfaces/StyleConfigOrderBy.d.ts +12 -0
  65. package/dist/interfaces/TemplateCategory.d.ts +16 -0
  66. package/dist/interfaces/TemplateCategoryBoolExp.d.ts +19 -0
  67. package/dist/interfaces/TemplateCategoryDistinctExp.d.ts +9 -0
  68. package/dist/interfaces/TemplateCategoryInput.d.ts +17 -0
  69. package/dist/interfaces/TemplateCategoryOrderBy.d.ts +9 -0
  70. package/dist/interfaces/Theme.d.ts +14 -5
  71. package/dist/interfaces/ThemeBoolExp.d.ts +12 -4
  72. package/dist/interfaces/ThemeCategory.d.ts +14 -0
  73. package/dist/interfaces/ThemeCategoryBoolExp.d.ts +17 -0
  74. package/dist/interfaces/ThemeCategoryDistinctExp.d.ts +9 -0
  75. package/dist/interfaces/ThemeCategoryInput.d.ts +14 -0
  76. package/dist/interfaces/ThemeCategoryOrderBy.d.ts +9 -0
  77. package/dist/interfaces/ThemeDistinctExp.d.ts +5 -6
  78. package/dist/interfaces/ThemeInput.d.ts +12 -5
  79. package/dist/interfaces/ThemeOrderBy.d.ts +4 -5
  80. package/dist/interfaces/index.d.ts +20 -6
  81. package/package.json +2 -2
  82. package/dist/classes/ProductRelatedPivotQueryOptions.d.ts +0 -12
  83. package/dist/entries/productRelatedPivotEntry.d.ts +0 -2
  84. package/dist/fields/ProductRelatedPivotFields.d.ts +0 -8
  85. package/dist/interfaces/ComponentType.d.ts +0 -58
  86. package/dist/interfaces/ProductRelatedPivot.d.ts +0 -9
  87. package/dist/interfaces/ProductRelatedPivotBoolExp.d.ts +0 -12
  88. package/dist/interfaces/ProductRelatedPivotDistinctExp.d.ts +0 -5
  89. package/dist/interfaces/ProductRelatedPivotInput.d.ts +0 -11
  90. package/dist/interfaces/ProductRelatedPivotOrderBy.d.ts +0 -5
@@ -0,0 +1,14 @@
1
+ import { Theme } from './Theme';
2
+ import { Aggregate } from './Aggregate';
3
+ export declare const ThemeCategoryEntityName = "ThemeCategory";
4
+ export declare const ThemeCategoryEntityLabel = "";
5
+ export interface ThemeCategory {
6
+ id?: string | null;
7
+ name?: string;
8
+ description?: string;
9
+ seqValue?: number;
10
+ createdAt?: Date;
11
+ updatedAt?: Date;
12
+ themes?: Theme[];
13
+ themesAggregate?: Aggregate;
14
+ }
@@ -0,0 +1,17 @@
1
+ import { IdComparisonExp } from './IdComparisonExp';
2
+ import { StringComparisonExp } from './StringComparisonExp';
3
+ import { NumberComparisonExp } from './NumberComparisonExp';
4
+ import { DateTimeComparisonExp } from './DateTimeComparisonExp';
5
+ import { ThemeBoolExp } from './ThemeBoolExp';
6
+ export interface ThemeCategoryBoolExp {
7
+ _and?: ThemeCategoryBoolExp[];
8
+ _or?: ThemeCategoryBoolExp[];
9
+ _not?: ThemeCategoryBoolExp;
10
+ id?: IdComparisonExp;
11
+ name?: StringComparisonExp;
12
+ description?: StringComparisonExp;
13
+ seqValue?: NumberComparisonExp;
14
+ createdAt?: DateTimeComparisonExp;
15
+ updatedAt?: DateTimeComparisonExp;
16
+ themes?: ThemeBoolExp;
17
+ }
@@ -0,0 +1,9 @@
1
+ export declare enum ThemeCategoryDistinctEnum {
2
+ id = "id",
3
+ name = "name",
4
+ description = "description",
5
+ seqValue = "seqValue",
6
+ createdAt = "createdAt",
7
+ updatedAt = "updatedAt"
8
+ }
9
+ export type ThemeCategoryDistinctExp = ThemeCategoryDistinctEnum;
@@ -0,0 +1,14 @@
1
+ import { ThemeCategory } from './ThemeCategory';
2
+ import { ThemeInput } from './ThemeInput';
3
+ import { SetHasMany } from '@rxdrag/entify-hooks';
4
+ export interface ThemeCategoryInput {
5
+ id?: string | null;
6
+ name?: string;
7
+ description?: string;
8
+ seqValue?: number;
9
+ createdAt?: Date;
10
+ updatedAt?: Date;
11
+ themes?: SetHasMany<ThemeInput>;
12
+ }
13
+ export declare const themeCategoryToInputCascade: (entity: ThemeCategory) => ThemeCategoryInput;
14
+ export declare const themeCategoryToInput: (entity: ThemeCategory) => ThemeCategoryInput;
@@ -0,0 +1,9 @@
1
+ import { OrderBy } from '@rxdrag/entify-hooks';
2
+ export interface ThemeCategoryOrderBy {
3
+ id?: OrderBy;
4
+ name?: OrderBy;
5
+ description?: OrderBy;
6
+ seqValue?: OrderBy;
7
+ createdAt?: OrderBy;
8
+ updatedAt?: OrderBy;
9
+ }
@@ -1,20 +1,19 @@
1
1
  export declare enum ThemeDistinctEnum {
2
2
  id = "id",
3
3
  name = "name",
4
- styles = "styles",
5
4
  settings = "settings",
6
5
  description = "description",
7
- tailwindConfig = "tailwindConfig",
8
- css = "css",
9
6
  /**
10
7
  * 是否在主题市场
11
8
  */
12
9
  isInMarket = "isInMarket",
13
10
  /**
14
- * 对应市场主题ID
11
+ * 对应市场母主题ID
15
12
  */
16
- themeVersionId = "themeVersionId",
13
+ parentThemeId = "parentThemeId",
17
14
  createdAt = "createdAt",
18
- updatedAt = "updatedAt"
15
+ updatedAt = "updatedAt",
16
+ status = "status",
17
+ seqValue = "seqValue"
19
18
  }
20
19
  export type ThemeDistinctExp = ThemeDistinctEnum;
@@ -6,36 +6,43 @@ import { ComponentCategoryInput } from './ComponentCategoryInput';
6
6
  import { PageInput } from './PageInput';
7
7
  import { LangInput } from './LangInput';
8
8
  import { ThemeConfigInput } from './ThemeConfigInput';
9
+ import { SectionTemplateInput } from './SectionTemplateInput';
10
+ import { TemplateCategoryInput } from './TemplateCategoryInput';
11
+ import { StyleConfigInput } from './StyleConfigInput';
9
12
  import { ThemeVersionInput } from './ThemeVersionInput';
10
13
  import { WebsiteInput } from './WebsiteInput';
14
+ import { ThemeCategoryInput } from './ThemeCategoryInput';
11
15
  import { SetHasMany } from '@rxdrag/entify-hooks';
12
16
  import { SetHasOne } from '@rxdrag/entify-hooks';
13
17
  export interface ThemeInput {
14
18
  id?: string | null;
15
19
  name?: string;
16
- styles?: any;
17
20
  settings?: ThemeSettings;
18
21
  description?: string;
19
- tailwindConfig?: string;
20
- css?: string;
21
22
  /**
22
23
  * 是否在主题市场
23
24
  */
24
25
  isInMarket?: boolean;
25
26
  /**
26
- * 对应市场主题ID
27
+ * 对应市场母主题ID
27
28
  */
28
- themeVersionId?: string | null;
29
+ parentThemeId?: string | null;
29
30
  createdAt?: Date;
30
31
  updatedAt?: Date;
32
+ status?: string;
33
+ seqValue?: number;
31
34
  cover?: SetHasOne<MediaInput>;
32
35
  components?: SetHasMany<FrontComponentInput>;
33
36
  componentCategories?: SetHasMany<ComponentCategoryInput>;
34
37
  pages?: SetHasMany<PageInput>;
35
38
  lang?: SetHasOne<LangInput>;
36
39
  config?: SetHasOne<ThemeConfigInput>;
40
+ templates?: SetHasMany<SectionTemplateInput>;
41
+ templateCategories?: SetHasMany<TemplateCategoryInput>;
42
+ styleConfig?: SetHasOne<StyleConfigInput>;
37
43
  marketVersion?: SetHasOne<ThemeVersionInput>;
38
44
  website?: SetHasOne<WebsiteInput>;
45
+ category?: SetHasOne<ThemeCategoryInput>;
39
46
  }
40
47
  export declare const themeToInputCascade: (entity: Theme) => ThemeInput;
41
48
  export declare const themeToInput: (entity: Theme) => ThemeInput;
@@ -2,19 +2,18 @@ import { OrderBy } from '@rxdrag/entify-hooks';
2
2
  export interface ThemeOrderBy {
3
3
  id?: OrderBy;
4
4
  name?: OrderBy;
5
- styles?: OrderBy;
6
5
  settings?: OrderBy;
7
6
  description?: OrderBy;
8
- tailwindConfig?: OrderBy;
9
- css?: OrderBy;
10
7
  /**
11
8
  * 是否在主题市场
12
9
  */
13
10
  isInMarket?: OrderBy;
14
11
  /**
15
- * 对应市场主题ID
12
+ * 对应市场母主题ID
16
13
  */
17
- themeVersionId?: OrderBy;
14
+ parentThemeId?: OrderBy;
18
15
  createdAt?: OrderBy;
19
16
  updatedAt?: OrderBy;
17
+ status?: OrderBy;
18
+ seqValue?: OrderBy;
20
19
  }
@@ -132,7 +132,6 @@ export * from './ProductSettings';
132
132
  export * from './PostSettings';
133
133
  export * from './FormSettings';
134
134
  export * from './ExtendFieldType';
135
- export * from './ComponentType';
136
135
  export * from './ExtendField';
137
136
  export * from './SmtpConfig';
138
137
  export * from './SpamFilterRule';
@@ -156,11 +155,6 @@ export * from './Slugable';
156
155
  export * from './SlugableBoolExp';
157
156
  export * from './SlugableOrderBy';
158
157
  export * from './SlugableDistinctExp';
159
- export * from './ProductRelatedPivot';
160
- export * from './ProductRelatedPivotInput';
161
- export * from './ProductRelatedPivotBoolExp';
162
- export * from './ProductRelatedPivotOrderBy';
163
- export * from './ProductRelatedPivotDistinctExp';
164
158
  export * from './FrontComponent';
165
159
  export * from './FrontComponentInput';
166
160
  export * from './FrontComponentBoolExp';
@@ -206,3 +200,23 @@ export * from './PageMetaInput';
206
200
  export * from './PageMetaBoolExp';
207
201
  export * from './PageMetaOrderBy';
208
202
  export * from './PageMetaDistinctExp';
203
+ export * from './SectionTemplate';
204
+ export * from './SectionTemplateInput';
205
+ export * from './SectionTemplateBoolExp';
206
+ export * from './SectionTemplateOrderBy';
207
+ export * from './SectionTemplateDistinctExp';
208
+ export * from './ThemeCategory';
209
+ export * from './ThemeCategoryInput';
210
+ export * from './ThemeCategoryBoolExp';
211
+ export * from './ThemeCategoryOrderBy';
212
+ export * from './ThemeCategoryDistinctExp';
213
+ export * from './TemplateCategory';
214
+ export * from './TemplateCategoryInput';
215
+ export * from './TemplateCategoryBoolExp';
216
+ export * from './TemplateCategoryOrderBy';
217
+ export * from './TemplateCategoryDistinctExp';
218
+ export * from './StyleConfig';
219
+ export * from './StyleConfigInput';
220
+ export * from './StyleConfigBoolExp';
221
+ export * from './StyleConfigOrderBy';
222
+ export * from './StyleConfigDistinctExp';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdrag/rxcms-models",
3
- "version": "0.3.46",
3
+ "version": "0.3.47",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "swr": "^2.2.4",
20
- "@rxdrag/entify-hooks": "0.2.40"
20
+ "@rxdrag/entify-hooks": "0.2.41"
21
21
  },
22
22
  "scripts": {
23
23
  "lint": "eslint . --ext .ts,tsx",
@@ -1,12 +0,0 @@
1
- import { IQueryArgs } from "@rxdrag/entify-hooks";
2
- import { QueryOptions } from "./QueryOptions";
3
- import { ProductRelatedPivot, ProductRelatedPivotBoolExp, ProductRelatedPivotDistinctExp, ProductRelatedPivotOrderBy } from "../interfaces";
4
- import { ProductQueryOptions } from './ProductQueryOptions';
5
- import { Product } from '../interfaces';
6
- export declare class ProductRelatedPivotQueryOptions extends QueryOptions<ProductRelatedPivot, ProductRelatedPivotBoolExp, ProductRelatedPivotOrderBy, ProductRelatedPivotDistinctExp> {
7
- constructor(fields?: (keyof ProductRelatedPivot)[], queryArgs?: IQueryArgs<ProductRelatedPivotBoolExp, ProductRelatedPivotOrderBy, ProductRelatedPivotDistinctExp>);
8
- id(): this;
9
- seqValue(): this;
10
- target(options?: ProductQueryOptions | (keyof Product)[]): this;
11
- source(options?: ProductQueryOptions | (keyof Product)[]): this;
12
- }
@@ -1,2 +0,0 @@
1
- import { EntityEntry } from "@rxdrag/entify-hooks";
2
- export declare const productRelatedPivotEntry: EntityEntry;
@@ -1,8 +0,0 @@
1
- export declare enum ProductRelatedPivotFields {
2
- id = "id",
3
- seqValue = "seqValue"
4
- }
5
- export declare enum ProductRelatedPivotAssciations {
6
- target = "target",
7
- source = "source"
8
- }
@@ -1,58 +0,0 @@
1
- export declare enum ComponentType {
2
- /**
3
- * label: 输入框
4
- */
5
- Input = "Input",
6
- /**
7
- * label: 多行输入框
8
- */
9
- Textarea = "Textarea",
10
- /**
11
- * label: 下拉选择
12
- */
13
- Select = "Select",
14
- /**
15
- * label: 复选框
16
- */
17
- Checkbox = "Checkbox",
18
- /**
19
- * label: 单选
20
- */
21
- Radio = "Radio",
22
- /**
23
- * label: 日期
24
- */
25
- DatePicker = "DatePicker",
26
- /**
27
- * label: 开关
28
- */
29
- Switch = "Switch",
30
- /**
31
- * label: 富文本
32
- */
33
- RichText = "RichText",
34
- /**
35
- * label: 图片选择器
36
- */
37
- ImageSelect = "ImageSelect",
38
- /**
39
- * label: 产品选择器
40
- */
41
- ProductSelect = "ProductSelect",
42
- /**
43
- * label: 视频选择器
44
- */
45
- VideoSelect = "VideoSelect",
46
- /**
47
- * label: 数字输入
48
- */
49
- NumberInput = "NumberInput",
50
- /**
51
- * label: undefined
52
- */
53
- ColorPicker = "ColorPicker",
54
- /**
55
- * label: undefined
56
- */
57
- LinkTarget = "LinkTarget"
58
- }
@@ -1,9 +0,0 @@
1
- import { Product } from './Product';
2
- export declare const ProductRelatedPivotEntityName = "ProductRelatedPivot";
3
- export declare const ProductRelatedPivotEntityLabel = "";
4
- export interface ProductRelatedPivot {
5
- id?: string | null;
6
- seqValue?: number;
7
- target?: Product;
8
- source?: Product;
9
- }
@@ -1,12 +0,0 @@
1
- import { IdComparisonExp } from './IdComparisonExp';
2
- import { NumberComparisonExp } from './NumberComparisonExp';
3
- import { ProductBoolExp } from './ProductBoolExp';
4
- export interface ProductRelatedPivotBoolExp {
5
- _and?: ProductRelatedPivotBoolExp[];
6
- _or?: ProductRelatedPivotBoolExp[];
7
- _not?: ProductRelatedPivotBoolExp;
8
- id?: IdComparisonExp;
9
- seqValue?: NumberComparisonExp;
10
- target?: ProductBoolExp;
11
- source?: ProductBoolExp;
12
- }
@@ -1,5 +0,0 @@
1
- export declare enum ProductRelatedPivotDistinctEnum {
2
- id = "id",
3
- seqValue = "seqValue"
4
- }
5
- export type ProductRelatedPivotDistinctExp = ProductRelatedPivotDistinctEnum;
@@ -1,11 +0,0 @@
1
- import { ProductRelatedPivot } from './ProductRelatedPivot';
2
- import { ProductInput } from './ProductInput';
3
- import { SetHasOne } from '@rxdrag/entify-hooks';
4
- export interface ProductRelatedPivotInput {
5
- id?: string | null;
6
- seqValue?: number;
7
- target?: SetHasOne<ProductInput>;
8
- source?: SetHasOne<ProductInput>;
9
- }
10
- export declare const productRelatedPivotToInputCascade: (entity: ProductRelatedPivot) => ProductRelatedPivotInput;
11
- export declare const productRelatedPivotToInput: (entity: ProductRelatedPivot) => ProductRelatedPivotInput;
@@ -1,5 +0,0 @@
1
- import { OrderBy } from '@rxdrag/entify-hooks';
2
- export interface ProductRelatedPivotOrderBy {
3
- id?: OrderBy;
4
- seqValue?: OrderBy;
5
- }