@rxdrag/rxcms-models 0.3.32 → 0.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/ComponentCategoryQueryOptions.d.ts +19 -0
- package/dist/classes/FrontComponentQueryOptions.d.ts +22 -0
- package/dist/classes/ThemeQueryOptions.d.ts +12 -0
- package/dist/classes/UserQueryOptions.d.ts +1 -1
- package/dist/classes/index.d.ts +2 -0
- package/dist/entries/componentCategoryEntry.d.ts +2 -0
- package/dist/entries/frontComponentEntry.d.ts +2 -0
- package/dist/entries/index.d.ts +2 -0
- package/dist/fields/ComponentCategoryFields.d.ts +12 -0
- package/dist/fields/FrontComponentFields.d.ts +16 -0
- package/dist/fields/ThemeFields.d.ts +6 -0
- package/dist/fields/UserFields.d.ts +1 -1
- package/dist/fields/index.d.ts +2 -0
- package/dist/index.mjs +286 -9
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/ComponentCategory.d.ts +15 -0
- package/dist/interfaces/ComponentCategoryBoolExp.d.ts +18 -0
- package/dist/interfaces/ComponentCategoryDistinctExp.d.ts +8 -0
- package/dist/interfaces/ComponentCategoryInput.d.ts +16 -0
- package/dist/interfaces/ComponentCategoryOrderBy.d.ts +8 -0
- package/dist/interfaces/ComponentType.d.ts +32 -8
- package/dist/interfaces/ExtendField.d.ts +1 -0
- package/dist/interfaces/FrontComponent.d.ts +19 -0
- package/dist/interfaces/FrontComponentBoolExp.d.ts +24 -0
- package/dist/interfaces/FrontComponentDistinctExp.d.ts +13 -0
- package/dist/interfaces/FrontComponentInput.d.ts +21 -0
- package/dist/interfaces/FrontComponentOrderBy.d.ts +13 -0
- package/dist/interfaces/PropsFields.d.ts +8 -0
- package/dist/interfaces/Theme.d.ts +8 -0
- package/dist/interfaces/ThemeBoolExp.d.ts +6 -0
- package/dist/interfaces/ThemeDistinctExp.d.ts +2 -0
- package/dist/interfaces/ThemeInput.d.ts +6 -0
- package/dist/interfaces/ThemeOrderBy.d.ts +2 -0
- package/dist/interfaces/UserDistinctExp.d.ts +1 -1
- package/dist/interfaces/WebsiteUser.d.ts +1 -1
- package/dist/interfaces/WebsiteUserBoolExp.d.ts +1 -1
- package/dist/interfaces/WebsiteUserDistinctExp.d.ts +1 -1
- package/dist/interfaces/WebsiteUserOrderBy.d.ts +1 -1
- package/dist/interfaces/index.d.ts +12 -0
- package/package.json +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FrontComponent } from './FrontComponent';
|
|
2
|
+
import { Theme } from './Theme';
|
|
3
|
+
import { Aggregate } from './Aggregate';
|
|
4
|
+
export declare const ComponentCategoryEntityName = "ComponentCategory";
|
|
5
|
+
export declare const ComponentCategoryEntityLabel = "";
|
|
6
|
+
export interface ComponentCategory {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
seqValue?: number;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
createdAt?: Date;
|
|
12
|
+
components?: FrontComponent[];
|
|
13
|
+
theme?: Theme;
|
|
14
|
+
componentsAggregate?: Aggregate;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IdComparisonExp } from './IdComparisonExp';
|
|
2
|
+
import { StringComparisonExp } from './StringComparisonExp';
|
|
3
|
+
import { NumberComparisonExp } from './NumberComparisonExp';
|
|
4
|
+
import { DateTimeComparisonExp } from './DateTimeComparisonExp';
|
|
5
|
+
import { FrontComponentBoolExp } from './FrontComponentBoolExp';
|
|
6
|
+
import { ThemeBoolExp } from './ThemeBoolExp';
|
|
7
|
+
export interface ComponentCategoryBoolExp {
|
|
8
|
+
_and?: ComponentCategoryBoolExp[];
|
|
9
|
+
_or?: ComponentCategoryBoolExp[];
|
|
10
|
+
_not?: ComponentCategoryBoolExp;
|
|
11
|
+
id?: IdComparisonExp;
|
|
12
|
+
name?: StringComparisonExp;
|
|
13
|
+
seqValue?: NumberComparisonExp;
|
|
14
|
+
updatedAt?: DateTimeComparisonExp;
|
|
15
|
+
createdAt?: DateTimeComparisonExp;
|
|
16
|
+
components?: FrontComponentBoolExp;
|
|
17
|
+
theme?: ThemeBoolExp;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentCategory } from './ComponentCategory';
|
|
2
|
+
import { FrontComponentInput } from './FrontComponentInput';
|
|
3
|
+
import { ThemeInput } from './ThemeInput';
|
|
4
|
+
import { SetHasMany } from '@rxdrag/entify-hooks';
|
|
5
|
+
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
6
|
+
export interface ComponentCategoryInput {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
seqValue?: number;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
createdAt?: Date;
|
|
12
|
+
components?: SetHasMany<FrontComponentInput>;
|
|
13
|
+
theme?: SetHasOne<ThemeInput>;
|
|
14
|
+
}
|
|
15
|
+
export declare const componentCategoryToInputCascade: (entity: ComponentCategory) => ComponentCategoryInput;
|
|
16
|
+
export declare const componentCategoryToInput: (entity: ComponentCategory) => ComponentCategoryInput;
|
|
@@ -1,34 +1,58 @@
|
|
|
1
1
|
export declare enum ComponentType {
|
|
2
2
|
/**
|
|
3
|
-
* label:
|
|
3
|
+
* label: 输入框
|
|
4
4
|
*/
|
|
5
5
|
Input = "Input",
|
|
6
6
|
/**
|
|
7
|
-
* label:
|
|
7
|
+
* label: 多行输入框
|
|
8
8
|
*/
|
|
9
9
|
Textarea = "Textarea",
|
|
10
10
|
/**
|
|
11
|
-
* label:
|
|
11
|
+
* label: 下拉选择
|
|
12
12
|
*/
|
|
13
13
|
Select = "Select",
|
|
14
14
|
/**
|
|
15
|
-
* label:
|
|
15
|
+
* label: 复选框
|
|
16
16
|
*/
|
|
17
17
|
Checkbox = "Checkbox",
|
|
18
18
|
/**
|
|
19
|
-
* label:
|
|
19
|
+
* label: 单选
|
|
20
20
|
*/
|
|
21
21
|
Radio = "Radio",
|
|
22
22
|
/**
|
|
23
|
-
* label:
|
|
23
|
+
* label: 日期
|
|
24
24
|
*/
|
|
25
25
|
DatePicker = "DatePicker",
|
|
26
26
|
/**
|
|
27
|
-
* label:
|
|
27
|
+
* label: 开关
|
|
28
28
|
*/
|
|
29
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",
|
|
30
54
|
/**
|
|
31
55
|
* label: undefined
|
|
32
56
|
*/
|
|
33
|
-
|
|
57
|
+
LinkTarget = "LinkTarget"
|
|
34
58
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PropsFields } from './PropsFields';
|
|
2
|
+
import { ComponentCategory } from './ComponentCategory';
|
|
3
|
+
import { Theme } from './Theme';
|
|
4
|
+
export declare const FrontComponentEntityName = "FrontComponent";
|
|
5
|
+
export declare const FrontComponentEntityLabel = "";
|
|
6
|
+
export interface FrontComponent {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
seqValue?: number;
|
|
11
|
+
content?: any;
|
|
12
|
+
props?: PropsFields;
|
|
13
|
+
testConfig?: any;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
createdAt?: Date;
|
|
16
|
+
droppable?: boolean;
|
|
17
|
+
category?: ComponentCategory;
|
|
18
|
+
theme?: Theme;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IdComparisonExp } from './IdComparisonExp';
|
|
2
|
+
import { StringComparisonExp } from './StringComparisonExp';
|
|
3
|
+
import { NumberComparisonExp } from './NumberComparisonExp';
|
|
4
|
+
import { DateTimeComparisonExp } from './DateTimeComparisonExp';
|
|
5
|
+
import { BooleanComparisonExp } from './BooleanComparisonExp';
|
|
6
|
+
import { ComponentCategoryBoolExp } from './ComponentCategoryBoolExp';
|
|
7
|
+
import { ThemeBoolExp } from './ThemeBoolExp';
|
|
8
|
+
export interface FrontComponentBoolExp {
|
|
9
|
+
_and?: FrontComponentBoolExp[];
|
|
10
|
+
_or?: FrontComponentBoolExp[];
|
|
11
|
+
_not?: FrontComponentBoolExp;
|
|
12
|
+
id?: IdComparisonExp;
|
|
13
|
+
name?: StringComparisonExp;
|
|
14
|
+
title?: StringComparisonExp;
|
|
15
|
+
seqValue?: NumberComparisonExp;
|
|
16
|
+
content?: unknown;
|
|
17
|
+
props?: unknown;
|
|
18
|
+
testConfig?: unknown;
|
|
19
|
+
updatedAt?: DateTimeComparisonExp;
|
|
20
|
+
createdAt?: DateTimeComparisonExp;
|
|
21
|
+
droppable?: BooleanComparisonExp;
|
|
22
|
+
category?: ComponentCategoryBoolExp;
|
|
23
|
+
theme?: ThemeBoolExp;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum FrontComponentDistinctEnum {
|
|
2
|
+
id = "id",
|
|
3
|
+
name = "name",
|
|
4
|
+
title = "title",
|
|
5
|
+
seqValue = "seqValue",
|
|
6
|
+
content = "content",
|
|
7
|
+
props = "props",
|
|
8
|
+
testConfig = "testConfig",
|
|
9
|
+
updatedAt = "updatedAt",
|
|
10
|
+
createdAt = "createdAt",
|
|
11
|
+
droppable = "droppable"
|
|
12
|
+
}
|
|
13
|
+
export type FrontComponentDistinctExp = FrontComponentDistinctEnum;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FrontComponent } from './FrontComponent';
|
|
2
|
+
import { PropsFields } from './PropsFields';
|
|
3
|
+
import { ComponentCategoryInput } from './ComponentCategoryInput';
|
|
4
|
+
import { ThemeInput } from './ThemeInput';
|
|
5
|
+
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
6
|
+
export interface FrontComponentInput {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
seqValue?: number;
|
|
11
|
+
content?: any;
|
|
12
|
+
props?: PropsFields;
|
|
13
|
+
testConfig?: any;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
createdAt?: Date;
|
|
16
|
+
droppable?: boolean;
|
|
17
|
+
category?: SetHasOne<ComponentCategoryInput>;
|
|
18
|
+
theme?: SetHasOne<ThemeInput>;
|
|
19
|
+
}
|
|
20
|
+
export declare const frontComponentToInputCascade: (entity: FrontComponent) => FrontComponentInput;
|
|
21
|
+
export declare const frontComponentToInput: (entity: FrontComponent) => FrontComponentInput;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OrderBy } from '@rxdrag/entify-hooks';
|
|
2
|
+
export interface FrontComponentOrderBy {
|
|
3
|
+
id?: OrderBy;
|
|
4
|
+
name?: OrderBy;
|
|
5
|
+
title?: OrderBy;
|
|
6
|
+
seqValue?: OrderBy;
|
|
7
|
+
content?: OrderBy;
|
|
8
|
+
props?: OrderBy;
|
|
9
|
+
testConfig?: OrderBy;
|
|
10
|
+
updatedAt?: OrderBy;
|
|
11
|
+
createdAt?: OrderBy;
|
|
12
|
+
droppable?: OrderBy;
|
|
13
|
+
}
|
|
@@ -3,6 +3,8 @@ import { Template } from './Template';
|
|
|
3
3
|
import { TemplateCategory } from './TemplateCategory';
|
|
4
4
|
import { Lang } from './Lang';
|
|
5
5
|
import { Media } from './Media';
|
|
6
|
+
import { FrontComponent } from './FrontComponent';
|
|
7
|
+
import { ComponentCategory } from './ComponentCategory';
|
|
6
8
|
import { Website } from './Website';
|
|
7
9
|
import { Aggregate } from './Aggregate';
|
|
8
10
|
import { WebsitePart } from './WebsitePart';
|
|
@@ -14,12 +16,18 @@ export interface Theme extends WebsitePart {
|
|
|
14
16
|
styles?: any;
|
|
15
17
|
settings?: ThemeSettings;
|
|
16
18
|
description?: string;
|
|
19
|
+
tailwindConfig?: string;
|
|
20
|
+
css?: string;
|
|
17
21
|
templates?: Template[];
|
|
18
22
|
themlateCategories?: TemplateCategory[];
|
|
19
23
|
lang?: Lang;
|
|
20
24
|
cover?: Media;
|
|
25
|
+
components?: FrontComponent[];
|
|
26
|
+
componentCategories?: ComponentCategory[];
|
|
21
27
|
selectedBy?: Website;
|
|
22
28
|
website?: Website;
|
|
23
29
|
templatesAggregate?: Aggregate;
|
|
24
30
|
themlateCategoriesAggregate?: Aggregate;
|
|
31
|
+
componentsAggregate?: Aggregate;
|
|
32
|
+
componentCategoriesAggregate?: Aggregate;
|
|
25
33
|
}
|
|
@@ -5,6 +5,8 @@ import { TemplateBoolExp } from './TemplateBoolExp';
|
|
|
5
5
|
import { TemplateCategoryBoolExp } from './TemplateCategoryBoolExp';
|
|
6
6
|
import { LangBoolExp } from './LangBoolExp';
|
|
7
7
|
import { MediaBoolExp } from './MediaBoolExp';
|
|
8
|
+
import { FrontComponentBoolExp } from './FrontComponentBoolExp';
|
|
9
|
+
import { ComponentCategoryBoolExp } from './ComponentCategoryBoolExp';
|
|
8
10
|
import { WebsiteBoolExp } from './WebsiteBoolExp';
|
|
9
11
|
export interface ThemeBoolExp extends WebsitePartBoolExp {
|
|
10
12
|
_and?: ThemeBoolExp[];
|
|
@@ -15,10 +17,14 @@ export interface ThemeBoolExp extends WebsitePartBoolExp {
|
|
|
15
17
|
styles?: unknown;
|
|
16
18
|
settings?: unknown;
|
|
17
19
|
description?: StringComparisonExp;
|
|
20
|
+
tailwindConfig?: StringComparisonExp;
|
|
21
|
+
css?: StringComparisonExp;
|
|
18
22
|
templates?: TemplateBoolExp;
|
|
19
23
|
themlateCategories?: TemplateCategoryBoolExp;
|
|
20
24
|
lang?: LangBoolExp;
|
|
21
25
|
cover?: MediaBoolExp;
|
|
26
|
+
components?: FrontComponentBoolExp;
|
|
27
|
+
componentCategories?: ComponentCategoryBoolExp;
|
|
22
28
|
selectedBy?: WebsiteBoolExp;
|
|
23
29
|
website?: WebsiteBoolExp;
|
|
24
30
|
}
|
|
@@ -4,6 +4,8 @@ import { TemplateInput } from './TemplateInput';
|
|
|
4
4
|
import { TemplateCategoryInput } from './TemplateCategoryInput';
|
|
5
5
|
import { LangInput } from './LangInput';
|
|
6
6
|
import { MediaInput } from './MediaInput';
|
|
7
|
+
import { FrontComponentInput } from './FrontComponentInput';
|
|
8
|
+
import { ComponentCategoryInput } from './ComponentCategoryInput';
|
|
7
9
|
import { WebsiteInput } from './WebsiteInput';
|
|
8
10
|
import { SetHasMany } from '@rxdrag/entify-hooks';
|
|
9
11
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
@@ -14,10 +16,14 @@ export interface ThemeInput extends WebsitePart {
|
|
|
14
16
|
styles?: any;
|
|
15
17
|
settings?: ThemeSettings;
|
|
16
18
|
description?: string;
|
|
19
|
+
tailwindConfig?: string;
|
|
20
|
+
css?: string;
|
|
17
21
|
templates?: SetHasMany<TemplateInput>;
|
|
18
22
|
themlateCategories?: SetHasMany<TemplateCategoryInput>;
|
|
19
23
|
lang?: SetHasOne<LangInput>;
|
|
20
24
|
cover?: SetHasOne<MediaInput>;
|
|
25
|
+
components?: SetHasMany<FrontComponentInput>;
|
|
26
|
+
componentCategories?: SetHasMany<ComponentCategoryInput>;
|
|
21
27
|
selectedBy?: SetHasOne<WebsiteInput>;
|
|
22
28
|
website?: SetHasOne<WebsiteInput>;
|
|
23
29
|
}
|
|
@@ -8,7 +8,7 @@ export interface WebsiteUserBoolExp extends PersonBoolExp {
|
|
|
8
8
|
_or?: WebsiteUserBoolExp[];
|
|
9
9
|
_not?: WebsiteUserBoolExp;
|
|
10
10
|
id?: IdComparisonExp;
|
|
11
|
-
|
|
11
|
+
position?: StringComparisonExp;
|
|
12
12
|
profile?: unknown;
|
|
13
13
|
userType?: EnumComparisonExp<UserType>;
|
|
14
14
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './FileRef';
|
|
1
2
|
export * from './IdComparisonExp';
|
|
2
3
|
export * from './BooleanComparisonExp';
|
|
3
4
|
export * from './DateTimeComparisonExp';
|
|
@@ -178,3 +179,14 @@ export * from './ProductRelatedPivotInput';
|
|
|
178
179
|
export * from './ProductRelatedPivotBoolExp';
|
|
179
180
|
export * from './ProductRelatedPivotOrderBy';
|
|
180
181
|
export * from './ProductRelatedPivotDistinctExp';
|
|
182
|
+
export * from './FrontComponent';
|
|
183
|
+
export * from './FrontComponentInput';
|
|
184
|
+
export * from './FrontComponentBoolExp';
|
|
185
|
+
export * from './FrontComponentOrderBy';
|
|
186
|
+
export * from './FrontComponentDistinctExp';
|
|
187
|
+
export * from './ComponentCategory';
|
|
188
|
+
export * from './ComponentCategoryInput';
|
|
189
|
+
export * from './ComponentCategoryBoolExp';
|
|
190
|
+
export * from './ComponentCategoryOrderBy';
|
|
191
|
+
export * from './ComponentCategoryDistinctExp';
|
|
192
|
+
export * from './PropsFields';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/rxcms-models",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.34",
|
|
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.
|
|
20
|
+
"@rxdrag/entify-hooks": "0.2.28"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"lint": "eslint . --ext .ts,tsx",
|