@rxdrag/rxcms-models 0.3.33 → 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.
- package/dist/classes/ComponentCategoryQueryOptions.d.ts +19 -0
- package/dist/classes/FrontComponentQueryOptions.d.ts +23 -0
- package/dist/classes/PageQueryOptions.d.ts +1 -1
- package/dist/classes/TemplateQueryOptions.d.ts +0 -4
- package/dist/classes/ThemeQueryOptions.d.ts +12 -0
- package/dist/classes/UserQueryOptions.d.ts +1 -1
- package/dist/classes/WebsiteQueryOptions.d.ts +2 -3
- 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 +17 -0
- package/dist/fields/PageFields.d.ts +1 -1
- package/dist/fields/TemplateFields.d.ts +0 -4
- package/dist/fields/ThemeFields.d.ts +6 -0
- package/dist/fields/UserFields.d.ts +1 -1
- package/dist/fields/WebsiteFields.d.ts +0 -1
- package/dist/fields/index.d.ts +2 -0
- package/dist/index.mjs +424 -165
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/Ability.d.ts +2 -2
- package/dist/interfaces/AbilityInput.d.ts +2 -2
- package/dist/interfaces/AttachmentOnProduct.d.ts +1 -1
- package/dist/interfaces/AttachmentOnProductInput.d.ts +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/Customer.d.ts +1 -1
- package/dist/interfaces/CustomerInput.d.ts +1 -1
- package/dist/interfaces/Enquiry.d.ts +1 -1
- package/dist/interfaces/EnquiryInput.d.ts +1 -1
- package/dist/interfaces/ExtendField.d.ts +1 -0
- package/dist/interfaces/FrontComponent.d.ts +20 -0
- package/dist/interfaces/FrontComponentBoolExp.d.ts +25 -0
- package/dist/interfaces/FrontComponentDistinctExp.d.ts +14 -0
- package/dist/interfaces/FrontComponentInput.d.ts +22 -0
- package/dist/interfaces/FrontComponentOrderBy.d.ts +14 -0
- package/dist/interfaces/IdComparisonExp.d.ts +1 -1
- package/dist/interfaces/Lang.d.ts +1 -1
- package/dist/interfaces/LangInput.d.ts +1 -1
- package/dist/interfaces/Mail.d.ts +1 -1
- package/dist/interfaces/MailInput.d.ts +1 -1
- package/dist/interfaces/Media.d.ts +1 -1
- package/dist/interfaces/MediaFolder.d.ts +1 -1
- package/dist/interfaces/MediaFolderInput.d.ts +1 -1
- package/dist/interfaces/MediaInput.d.ts +1 -1
- package/dist/interfaces/MediaOnProduct.d.ts +1 -1
- package/dist/interfaces/MediaOnProductInput.d.ts +1 -1
- package/dist/interfaces/OgMeta.d.ts +1 -1
- package/dist/interfaces/Page.d.ts +3 -2
- package/dist/interfaces/PageBoolExp.d.ts +3 -1
- package/dist/interfaces/PageDistinctExp.d.ts +1 -0
- package/dist/interfaces/PageInput.d.ts +3 -2
- package/dist/interfaces/PageOrderBy.d.ts +1 -0
- package/dist/interfaces/{TemplateType.d.ts → PageType.d.ts} +16 -12
- package/dist/interfaces/Person.d.ts +1 -1
- package/dist/interfaces/Post.d.ts +1 -1
- package/dist/interfaces/PostCategory.d.ts +1 -1
- package/dist/interfaces/PostCategoryInput.d.ts +1 -1
- package/dist/interfaces/PostInput.d.ts +1 -1
- package/dist/interfaces/Product.d.ts +1 -1
- package/dist/interfaces/ProductCategory.d.ts +1 -1
- package/dist/interfaces/ProductCategoryInput.d.ts +1 -1
- package/dist/interfaces/ProductInput.d.ts +1 -1
- package/dist/interfaces/ProductRelatedPivot.d.ts +1 -1
- package/dist/interfaces/ProductRelatedPivotInput.d.ts +1 -1
- package/dist/interfaces/PropsFields.d.ts +8 -0
- package/dist/interfaces/Publishable.d.ts +1 -1
- package/dist/interfaces/Role.d.ts +1 -1
- package/dist/interfaces/RoleInput.d.ts +1 -1
- package/dist/interfaces/SeoMeta.d.ts +1 -1
- package/dist/interfaces/Slugable.d.ts +1 -1
- package/dist/interfaces/SpamFilterRule.d.ts +1 -1
- package/dist/interfaces/SpamFilterRuleInput.d.ts +1 -1
- package/dist/interfaces/Tag.d.ts +1 -1
- package/dist/interfaces/TagInput.d.ts +1 -1
- package/dist/interfaces/Template.d.ts +1 -6
- package/dist/interfaces/TemplateBoolExp.d.ts +0 -3
- package/dist/interfaces/TemplateCategory.d.ts +1 -1
- package/dist/interfaces/TemplateCategoryInput.d.ts +1 -1
- package/dist/interfaces/TemplateDistinctExp.d.ts +0 -4
- package/dist/interfaces/TemplateInput.d.ts +1 -6
- package/dist/interfaces/TemplateOrderBy.d.ts +0 -4
- package/dist/interfaces/Theme.d.ts +9 -1
- package/dist/interfaces/ThemeBoolExp.d.ts +6 -0
- package/dist/interfaces/ThemeDistinctExp.d.ts +2 -0
- package/dist/interfaces/ThemeInput.d.ts +7 -1
- package/dist/interfaces/ThemeOrderBy.d.ts +2 -0
- package/dist/interfaces/User.d.ts +1 -1
- package/dist/interfaces/UserDistinctExp.d.ts +1 -1
- package/dist/interfaces/UserInput.d.ts +1 -1
- package/dist/interfaces/Website.d.ts +4 -5
- package/dist/interfaces/WebsiteBoolExp.d.ts +1 -2
- package/dist/interfaces/WebsiteContent.d.ts +1 -1
- package/dist/interfaces/WebsiteInput.d.ts +4 -5
- package/dist/interfaces/WebsitePart.d.ts +1 -1
- package/dist/interfaces/WebsiteSettings.d.ts +1 -1
- package/dist/interfaces/WebsiteSettingsInput.d.ts +1 -1
- package/dist/interfaces/WebsiteType.d.ts +1 -1
- package/dist/interfaces/WebsiteTypeInput.d.ts +1 -1
- package/dist/interfaces/WebsiteUser.d.ts +2 -2
- 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 +13 -1
- package/package.json +3 -3
|
@@ -2,11 +2,11 @@ import { AbilityType } from './AbilityType';
|
|
|
2
2
|
export declare const AbilityEntityName = "Ability";
|
|
3
3
|
export declare const AbilityEntityLabel = "";
|
|
4
4
|
export interface Ability {
|
|
5
|
-
id?: string;
|
|
5
|
+
id?: string | null;
|
|
6
6
|
entityUuid?: string;
|
|
7
7
|
columnUuid?: string;
|
|
8
8
|
can?: boolean;
|
|
9
9
|
expression?: string;
|
|
10
10
|
abilityType?: AbilityType;
|
|
11
|
-
roleId?: string;
|
|
11
|
+
roleId?: string | null;
|
|
12
12
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Ability } from './Ability';
|
|
2
2
|
import { AbilityType } from './AbilityType';
|
|
3
3
|
export interface AbilityInput {
|
|
4
|
-
id?: string;
|
|
4
|
+
id?: string | null;
|
|
5
5
|
entityUuid?: string;
|
|
6
6
|
columnUuid?: string;
|
|
7
7
|
can?: boolean;
|
|
8
8
|
expression?: string;
|
|
9
9
|
abilityType?: AbilityType;
|
|
10
|
-
roleId?: string;
|
|
10
|
+
roleId?: string | null;
|
|
11
11
|
}
|
|
12
12
|
export declare const abilityToInputCascade: (entity: Ability) => AbilityInput;
|
|
13
13
|
export declare const abilityToInput: (entity: Ability) => AbilityInput;
|
|
@@ -3,7 +3,7 @@ import { Product } from './Product';
|
|
|
3
3
|
export declare const AttachmentOnProductEntityName = "AttachmentOnProduct";
|
|
4
4
|
export declare const AttachmentOnProductEntityLabel = "";
|
|
5
5
|
export interface AttachmentOnProduct {
|
|
6
|
-
id?: string;
|
|
6
|
+
id?: string | null;
|
|
7
7
|
seqValue?: number;
|
|
8
8
|
attachment?: Media;
|
|
9
9
|
product?: Product;
|
|
@@ -3,7 +3,7 @@ import { MediaInput } from './MediaInput';
|
|
|
3
3
|
import { ProductInput } from './ProductInput';
|
|
4
4
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
5
5
|
export interface AttachmentOnProductInput {
|
|
6
|
-
id?: string;
|
|
6
|
+
id?: string | null;
|
|
7
7
|
seqValue?: number;
|
|
8
8
|
attachment?: SetHasOne<MediaInput>;
|
|
9
9
|
product?: SetHasOne<ProductInput>;
|
|
@@ -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 | null;
|
|
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 | null;
|
|
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
|
}
|
|
@@ -7,7 +7,7 @@ import { Person } from './Person';
|
|
|
7
7
|
export declare const CustomerEntityName = "Customer";
|
|
8
8
|
export declare const CustomerEntityLabel = "";
|
|
9
9
|
export interface Customer extends WebsitePart, Person {
|
|
10
|
-
id?: string;
|
|
10
|
+
id?: string | null;
|
|
11
11
|
company?: string;
|
|
12
12
|
enquires?: Enquiry[];
|
|
13
13
|
lang?: Lang;
|
|
@@ -7,7 +7,7 @@ import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
|
7
7
|
import { WebsitePart } from './WebsitePart';
|
|
8
8
|
import { Person } from './Person';
|
|
9
9
|
export interface CustomerInput extends WebsitePart, Person {
|
|
10
|
-
id?: string;
|
|
10
|
+
id?: string | null;
|
|
11
11
|
company?: string;
|
|
12
12
|
enquires?: SetHasMany<EnquiryInput>;
|
|
13
13
|
lang?: SetHasOne<LangInput>;
|
|
@@ -5,7 +5,7 @@ import { WebsitePart } from './WebsitePart';
|
|
|
5
5
|
export declare const EnquiryEntityName = "Enquiry";
|
|
6
6
|
export declare const EnquiryEntityLabel = "";
|
|
7
7
|
export interface Enquiry extends WebsitePart {
|
|
8
|
-
id?: string;
|
|
8
|
+
id?: string | null;
|
|
9
9
|
title?: string;
|
|
10
10
|
company?: string;
|
|
11
11
|
name?: string;
|
|
@@ -5,7 +5,7 @@ import { WebsiteInput } from './WebsiteInput';
|
|
|
5
5
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
6
6
|
import { WebsitePart } from './WebsitePart';
|
|
7
7
|
export interface EnquiryInput extends WebsitePart {
|
|
8
|
-
id?: string;
|
|
8
|
+
id?: string | null;
|
|
9
9
|
title?: string;
|
|
10
10
|
company?: string;
|
|
11
11
|
name?: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 | null;
|
|
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
|
+
slots?: any;
|
|
17
|
+
droppable?: boolean;
|
|
18
|
+
category?: ComponentCategory;
|
|
19
|
+
theme?: Theme;
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
slots?: unknown;
|
|
22
|
+
droppable?: BooleanComparisonExp;
|
|
23
|
+
category?: ComponentCategoryBoolExp;
|
|
24
|
+
theme?: ThemeBoolExp;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
slots = "slots",
|
|
12
|
+
droppable = "droppable"
|
|
13
|
+
}
|
|
14
|
+
export type FrontComponentDistinctExp = FrontComponentDistinctEnum;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 | null;
|
|
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
|
+
slots?: any;
|
|
17
|
+
droppable?: boolean;
|
|
18
|
+
category?: SetHasOne<ComponentCategoryInput>;
|
|
19
|
+
theme?: SetHasOne<ThemeInput>;
|
|
20
|
+
}
|
|
21
|
+
export declare const frontComponentToInputCascade: (entity: FrontComponent) => FrontComponentInput;
|
|
22
|
+
export declare const frontComponentToInput: (entity: FrontComponent) => FrontComponentInput;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
slots?: OrderBy;
|
|
13
|
+
droppable?: OrderBy;
|
|
14
|
+
}
|
|
@@ -17,7 +17,7 @@ import { WebsitePart } from './WebsitePart';
|
|
|
17
17
|
export declare const MediaEntityName = "Media";
|
|
18
18
|
export declare const MediaEntityLabel = "";
|
|
19
19
|
export interface Media extends WebsitePart {
|
|
20
|
-
id?: string;
|
|
20
|
+
id?: string | null;
|
|
21
21
|
name?: string;
|
|
22
22
|
size?: number;
|
|
23
23
|
mimeType?: string;
|
|
@@ -17,7 +17,7 @@ import { SetHasMany } from '@rxdrag/entify-hooks';
|
|
|
17
17
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
18
18
|
import { WebsitePart } from './WebsitePart';
|
|
19
19
|
export interface MediaInput extends WebsitePart {
|
|
20
|
-
id?: string;
|
|
20
|
+
id?: string | null;
|
|
21
21
|
name?: string;
|
|
22
22
|
size?: number;
|
|
23
23
|
mimeType?: string;
|
|
@@ -3,7 +3,7 @@ import { Product } from './Product';
|
|
|
3
3
|
export declare const MediaOnProductEntityName = "MediaOnProduct";
|
|
4
4
|
export declare const MediaOnProductEntityLabel = "";
|
|
5
5
|
export interface MediaOnProduct {
|
|
6
|
-
id?: string;
|
|
6
|
+
id?: string | null;
|
|
7
7
|
altText?: string;
|
|
8
8
|
seqValue?: number;
|
|
9
9
|
media?: Media;
|
|
@@ -3,7 +3,7 @@ import { MediaInput } from './MediaInput';
|
|
|
3
3
|
import { ProductInput } from './ProductInput';
|
|
4
4
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
5
5
|
export interface MediaOnProductInput {
|
|
6
|
-
id?: string;
|
|
6
|
+
id?: string | null;
|
|
7
7
|
altText?: string;
|
|
8
8
|
seqValue?: number;
|
|
9
9
|
media?: SetHasOne<MediaInput>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PageType } from './PageType';
|
|
1
2
|
import { Media } from './Media';
|
|
2
3
|
import { Lang } from './Lang';
|
|
3
4
|
import { Website } from './Website';
|
|
@@ -5,14 +6,14 @@ import { WebsiteContent } from './WebsiteContent';
|
|
|
5
6
|
export declare const PageEntityName = "Page";
|
|
6
7
|
export declare const PageEntityLabel = "";
|
|
7
8
|
export interface Page extends WebsiteContent {
|
|
8
|
-
id?: string;
|
|
9
|
+
id?: string | null;
|
|
9
10
|
title?: string;
|
|
10
11
|
/**
|
|
11
12
|
* 备注
|
|
12
13
|
*/
|
|
13
14
|
remark?: string;
|
|
15
|
+
pageType?: PageType;
|
|
14
16
|
ogImage?: Media;
|
|
15
17
|
lang?: Lang;
|
|
16
|
-
homeOf?: Website;
|
|
17
18
|
website?: Website;
|
|
18
19
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { PageType } from './PageType';
|
|
1
2
|
import { WebsiteContentBoolExp } from './WebsiteContentBoolExp';
|
|
2
3
|
import { IdComparisonExp } from './IdComparisonExp';
|
|
3
4
|
import { StringComparisonExp } from './StringComparisonExp';
|
|
5
|
+
import { EnumComparisonExp } from './EnumComparisonExp';
|
|
4
6
|
import { MediaBoolExp } from './MediaBoolExp';
|
|
5
7
|
import { LangBoolExp } from './LangBoolExp';
|
|
6
8
|
import { WebsiteBoolExp } from './WebsiteBoolExp';
|
|
@@ -11,8 +13,8 @@ export interface PageBoolExp extends WebsiteContentBoolExp {
|
|
|
11
13
|
id?: IdComparisonExp;
|
|
12
14
|
title?: StringComparisonExp;
|
|
13
15
|
remark?: StringComparisonExp;
|
|
16
|
+
pageType?: EnumComparisonExp<PageType>;
|
|
14
17
|
ogImage?: MediaBoolExp;
|
|
15
18
|
lang?: LangBoolExp;
|
|
16
|
-
homeOf?: WebsiteBoolExp;
|
|
17
19
|
website?: WebsiteBoolExp;
|
|
18
20
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { Page } from './Page';
|
|
2
|
+
import { PageType } from './PageType';
|
|
2
3
|
import { MediaInput } from './MediaInput';
|
|
3
4
|
import { LangInput } from './LangInput';
|
|
4
5
|
import { WebsiteInput } from './WebsiteInput';
|
|
5
6
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
6
7
|
import { WebsiteContent } from './WebsiteContent';
|
|
7
8
|
export interface PageInput extends WebsiteContent {
|
|
8
|
-
id?: string;
|
|
9
|
+
id?: string | null;
|
|
9
10
|
title?: string;
|
|
10
11
|
/**
|
|
11
12
|
* 备注
|
|
12
13
|
*/
|
|
13
14
|
remark?: string;
|
|
15
|
+
pageType?: PageType;
|
|
14
16
|
ogImage?: SetHasOne<MediaInput>;
|
|
15
17
|
lang?: SetHasOne<LangInput>;
|
|
16
|
-
homeOf?: SetHasOne<WebsiteInput>;
|
|
17
18
|
website?: SetHasOne<WebsiteInput>;
|
|
18
19
|
}
|
|
19
20
|
export declare const pageToInputCascade: (entity: Page) => PageInput;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
2
|
-
/**
|
|
3
|
-
* label: 区块
|
|
4
|
-
*/
|
|
5
|
-
Block = "Block",
|
|
1
|
+
export declare enum PageType {
|
|
6
2
|
/**
|
|
7
3
|
* label: 文章分类
|
|
8
4
|
*/
|
|
@@ -12,23 +8,31 @@ export declare enum TemplateType {
|
|
|
12
8
|
*/
|
|
13
9
|
Post = "Post",
|
|
14
10
|
/**
|
|
15
|
-
* label:
|
|
11
|
+
* label: 产品分类
|
|
16
12
|
*/
|
|
17
13
|
ProductCategory = "ProductCategory",
|
|
18
14
|
/**
|
|
19
15
|
* label: 产品
|
|
20
16
|
*/
|
|
21
17
|
Product = "Product",
|
|
22
|
-
/**
|
|
23
|
-
* label: 页面
|
|
24
|
-
*/
|
|
25
|
-
Page = "Page",
|
|
26
18
|
/**
|
|
27
19
|
* label: 框架
|
|
28
20
|
*/
|
|
29
21
|
Frame = "Frame",
|
|
30
22
|
/**
|
|
31
|
-
* label:
|
|
23
|
+
* label: 搜索列表
|
|
24
|
+
*/
|
|
25
|
+
SearchList = "SearchList",
|
|
26
|
+
/**
|
|
27
|
+
* label: 个人简介
|
|
28
|
+
*/
|
|
29
|
+
Profile = "Profile",
|
|
30
|
+
/**
|
|
31
|
+
* label: 首页
|
|
32
|
+
*/
|
|
33
|
+
Home = "Home",
|
|
34
|
+
/**
|
|
35
|
+
* label: 自定义页
|
|
32
36
|
*/
|
|
33
|
-
|
|
37
|
+
Customized = "Customized"
|
|
34
38
|
}
|
|
@@ -12,7 +12,7 @@ import { Publishable } from './Publishable';
|
|
|
12
12
|
export declare const ProductEntityName = "Product";
|
|
13
13
|
export declare const ProductEntityLabel = "";
|
|
14
14
|
export interface Product extends Publishable {
|
|
15
|
-
id?: string;
|
|
15
|
+
id?: string | null;
|
|
16
16
|
published?: boolean;
|
|
17
17
|
featured?: boolean;
|
|
18
18
|
showInNavMenu?: boolean;
|