@rxdrag/rxcms-models 0.2.7 → 0.2.10
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/MediaQueryOptions.d.ts +14 -0
- package/dist/classes/PageQueryOptions.d.ts +3 -0
- package/dist/classes/ThemeQueryOptions.d.ts +3 -0
- package/dist/classes/index.d.ts +0 -1
- package/dist/entries/index.d.ts +0 -1
- package/dist/fields/MediaFields.d.ts +8 -0
- package/dist/fields/PageFields.d.ts +2 -1
- package/dist/fields/ThemeFields.d.ts +2 -1
- package/dist/fields/index.d.ts +0 -1
- package/dist/index.mjs +480 -435
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/Media.d.ts +10 -0
- package/dist/interfaces/MediaBoolExp.d.ts +6 -0
- package/dist/interfaces/MediaInput.d.ts +6 -0
- package/dist/interfaces/Page.d.ts +2 -0
- package/dist/interfaces/PageBoolExp.d.ts +2 -0
- package/dist/interfaces/PageInput.d.ts +2 -0
- package/dist/interfaces/Theme.d.ts +2 -0
- package/dist/interfaces/ThemeBoolExp.d.ts +2 -0
- package/dist/interfaces/ThemeInput.d.ts +3 -0
- package/dist/interfaces/index.d.ts +6 -5
- package/package.json +4 -4
- package/dist/classes/WebsiteMetaQueryOptions.d.ts +0 -7
- package/dist/entries/websiteMetaEntry.d.ts +0 -2
- package/dist/fields/WebsiteMetaFields.d.ts +0 -5
- package/dist/interfaces/WebsiteMeta.d.ts +0 -5
- package/dist/interfaces/WebsiteMetaBoolExp.d.ts +0 -7
- package/dist/interfaces/WebsiteMetaDistinctExp.d.ts +0 -4
- package/dist/interfaces/WebsiteMetaInput.d.ts +0 -6
- package/dist/interfaces/WebsiteMetaOrderBy.d.ts +0 -4
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { MediaType } from './MediaType';
|
|
2
2
|
import { FileRef } from './FileRef';
|
|
3
3
|
import { MediaFolder } from './MediaFolder';
|
|
4
|
+
import { Post } from './Post';
|
|
4
5
|
import { User } from './User';
|
|
5
6
|
import { Product } from './Product';
|
|
7
|
+
import { Page } from './Page';
|
|
6
8
|
import { ProductCategory } from './ProductCategory';
|
|
7
9
|
import { MediaAddon } from './MediaAddon';
|
|
8
10
|
import { AttachmentAddon } from './AttachmentAddon';
|
|
@@ -22,11 +24,19 @@ export interface Media extends CustomizeMedia {
|
|
|
22
24
|
updatedAt?: Date;
|
|
23
25
|
mediaType?: MediaType;
|
|
24
26
|
folder?: MediaFolder;
|
|
27
|
+
coverOf?: Post[];
|
|
25
28
|
avatarOfUser?: User;
|
|
26
29
|
usedByProducts?: (Product & MediaAddon)[];
|
|
30
|
+
ogMetaOfPage?: Page[];
|
|
31
|
+
ogMetaOfProduct?: Product[];
|
|
32
|
+
ogMetaOfPost?: Post[];
|
|
27
33
|
attachmentOf?: (Product & AttachmentAddon)[];
|
|
28
34
|
meidaOfProduct?: ProductCategory[];
|
|
35
|
+
coverOfAggregate?: Aggregate;
|
|
29
36
|
usedByProductsAggregate?: Aggregate;
|
|
37
|
+
ogMetaOfPageAggregate?: Aggregate;
|
|
38
|
+
ogMetaOfProductAggregate?: Aggregate;
|
|
39
|
+
ogMetaOfPostAggregate?: Aggregate;
|
|
30
40
|
attachmentOfAggregate?: Aggregate;
|
|
31
41
|
meidaOfProductAggregate?: Aggregate;
|
|
32
42
|
}
|
|
@@ -6,8 +6,10 @@ import { NumberComparisonExp } from './NumberComparisonExp';
|
|
|
6
6
|
import { DateTimeComparisonExp } from './DateTimeComparisonExp';
|
|
7
7
|
import { EnumComparisonExp } from './EnumComparisonExp';
|
|
8
8
|
import { MediaFolderBoolExp } from './MediaFolderBoolExp';
|
|
9
|
+
import { PostBoolExp } from './PostBoolExp';
|
|
9
10
|
import { UserBoolExp } from './UserBoolExp';
|
|
10
11
|
import { ProductBoolExp } from './ProductBoolExp';
|
|
12
|
+
import { PageBoolExp } from './PageBoolExp';
|
|
11
13
|
import { ProductCategoryBoolExp } from './ProductCategoryBoolExp';
|
|
12
14
|
export interface MediaBoolExp extends CustomizeMediaBoolExp {
|
|
13
15
|
_and?: MediaBoolExp[];
|
|
@@ -23,8 +25,12 @@ export interface MediaBoolExp extends CustomizeMediaBoolExp {
|
|
|
23
25
|
updatedAt?: DateTimeComparisonExp;
|
|
24
26
|
mediaType?: EnumComparisonExp<MediaType>;
|
|
25
27
|
folder?: MediaFolderBoolExp;
|
|
28
|
+
coverOf?: PostBoolExp;
|
|
26
29
|
avatarOfUser?: UserBoolExp;
|
|
27
30
|
usedByProducts?: ProductBoolExp;
|
|
31
|
+
ogMetaOfPage?: PageBoolExp;
|
|
32
|
+
ogMetaOfProduct?: ProductBoolExp;
|
|
33
|
+
ogMetaOfPost?: PostBoolExp;
|
|
28
34
|
attachmentOf?: ProductBoolExp;
|
|
29
35
|
meidaOfProduct?: ProductCategoryBoolExp;
|
|
30
36
|
}
|
|
@@ -2,8 +2,10 @@ import { Media } from './Media';
|
|
|
2
2
|
import { MediaType } from './MediaType';
|
|
3
3
|
import { FileRef } from './FileRef';
|
|
4
4
|
import { MediaFolderInput } from './MediaFolderInput';
|
|
5
|
+
import { PostInput } from './PostInput';
|
|
5
6
|
import { UserInput } from './UserInput';
|
|
6
7
|
import { ProductInput } from './ProductInput';
|
|
8
|
+
import { PageInput } from './PageInput';
|
|
7
9
|
import { ProductCategoryInput } from './ProductCategoryInput';
|
|
8
10
|
import { MediaAddon } from './MediaAddon';
|
|
9
11
|
import { AttachmentAddon } from './AttachmentAddon';
|
|
@@ -22,8 +24,12 @@ export interface MediaInput extends CustomizeMedia {
|
|
|
22
24
|
updatedAt?: Date;
|
|
23
25
|
mediaType?: MediaType;
|
|
24
26
|
folder?: SetHasOne<MediaFolderInput>;
|
|
27
|
+
coverOf?: SetHasMany<PostInput>;
|
|
25
28
|
avatarOfUser?: SetHasOne<UserInput>;
|
|
26
29
|
usedByProducts?: SetHasMany<ProductInput & MediaAddon>;
|
|
30
|
+
ogMetaOfPage?: SetHasMany<PageInput>;
|
|
31
|
+
ogMetaOfProduct?: SetHasMany<ProductInput>;
|
|
32
|
+
ogMetaOfPost?: SetHasMany<PostInput>;
|
|
27
33
|
attachmentOf?: SetHasMany<ProductInput & AttachmentAddon>;
|
|
28
34
|
meidaOfProduct?: SetHasMany<ProductCategoryInput>;
|
|
29
35
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Media } from './Media';
|
|
2
|
+
import { Website } from './Website';
|
|
2
3
|
import { WebsiteContent } from './WebsiteContent';
|
|
3
4
|
export declare const PageEntityName = "Page";
|
|
4
5
|
export declare const PageEntityLabel = "";
|
|
@@ -12,4 +13,5 @@ export interface Page extends WebsiteContent {
|
|
|
12
13
|
remark?: string;
|
|
13
14
|
langAbbr?: string;
|
|
14
15
|
ogImage?: Media;
|
|
16
|
+
homeOf?: Website;
|
|
15
17
|
}
|
|
@@ -2,6 +2,7 @@ import { WebsiteContentBoolExp } from './WebsiteContentBoolExp';
|
|
|
2
2
|
import { IdComparisonExp } from './IdComparisonExp';
|
|
3
3
|
import { StringComparisonExp } from './StringComparisonExp';
|
|
4
4
|
import { MediaBoolExp } from './MediaBoolExp';
|
|
5
|
+
import { WebsiteBoolExp } from './WebsiteBoolExp';
|
|
5
6
|
export interface PageBoolExp extends WebsiteContentBoolExp {
|
|
6
7
|
_and?: PageBoolExp[];
|
|
7
8
|
_or?: PageBoolExp[];
|
|
@@ -12,4 +13,5 @@ export interface PageBoolExp extends WebsiteContentBoolExp {
|
|
|
12
13
|
remark?: StringComparisonExp;
|
|
13
14
|
langAbbr?: StringComparisonExp;
|
|
14
15
|
ogImage?: MediaBoolExp;
|
|
16
|
+
homeOf?: WebsiteBoolExp;
|
|
15
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Page } from './Page';
|
|
2
2
|
import { MediaInput } from './MediaInput';
|
|
3
|
+
import { WebsiteInput } from './WebsiteInput';
|
|
3
4
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
4
5
|
import { WebsiteContent } from './WebsiteContent';
|
|
5
6
|
export interface PageInput extends WebsiteContent {
|
|
@@ -12,6 +13,7 @@ export interface PageInput extends WebsiteContent {
|
|
|
12
13
|
remark?: string;
|
|
13
14
|
langAbbr?: string;
|
|
14
15
|
ogImage?: SetHasOne<MediaInput>;
|
|
16
|
+
homeOf?: SetHasOne<WebsiteInput>;
|
|
15
17
|
}
|
|
16
18
|
export declare const pageToInputCascade: (entity: Page) => PageInput;
|
|
17
19
|
export declare const pageToInput: (entity: Page) => PageInput;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ThemeSettings } from './ThemeSettings';
|
|
2
2
|
import { Template } from './Template';
|
|
3
3
|
import { TemplateCategory } from './TemplateCategory';
|
|
4
|
+
import { Website } from './Website';
|
|
4
5
|
import { Aggregate } from './Aggregate';
|
|
5
6
|
import { WebsitePart } from './WebsitePart';
|
|
6
7
|
export declare const ThemeEntityName = "Theme";
|
|
@@ -12,6 +13,7 @@ export interface Theme extends WebsitePart {
|
|
|
12
13
|
settings?: ThemeSettings;
|
|
13
14
|
templates?: Template[];
|
|
14
15
|
themlateCategories?: TemplateCategory[];
|
|
16
|
+
selectedBy?: Website;
|
|
15
17
|
templatesAggregate?: Aggregate;
|
|
16
18
|
themlateCategoriesAggregate?: Aggregate;
|
|
17
19
|
}
|
|
@@ -3,6 +3,7 @@ import { IdComparisonExp } from './IdComparisonExp';
|
|
|
3
3
|
import { StringComparisonExp } from './StringComparisonExp';
|
|
4
4
|
import { TemplateBoolExp } from './TemplateBoolExp';
|
|
5
5
|
import { TemplateCategoryBoolExp } from './TemplateCategoryBoolExp';
|
|
6
|
+
import { WebsiteBoolExp } from './WebsiteBoolExp';
|
|
6
7
|
export interface ThemeBoolExp extends WebsitePartBoolExp {
|
|
7
8
|
_and?: ThemeBoolExp[];
|
|
8
9
|
_or?: ThemeBoolExp[];
|
|
@@ -13,4 +14,5 @@ export interface ThemeBoolExp extends WebsitePartBoolExp {
|
|
|
13
14
|
settings?: unknown;
|
|
14
15
|
templates?: TemplateBoolExp;
|
|
15
16
|
themlateCategories?: TemplateCategoryBoolExp;
|
|
17
|
+
selectedBy?: WebsiteBoolExp;
|
|
16
18
|
}
|
|
@@ -2,7 +2,9 @@ import { Theme } from './Theme';
|
|
|
2
2
|
import { ThemeSettings } from './ThemeSettings';
|
|
3
3
|
import { TemplateInput } from './TemplateInput';
|
|
4
4
|
import { TemplateCategoryInput } from './TemplateCategoryInput';
|
|
5
|
+
import { WebsiteInput } from './WebsiteInput';
|
|
5
6
|
import { SetHasMany } from '@rxdrag/entify-hooks';
|
|
7
|
+
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
6
8
|
import { WebsitePart } from './WebsitePart';
|
|
7
9
|
export interface ThemeInput extends WebsitePart {
|
|
8
10
|
id?: string;
|
|
@@ -11,6 +13,7 @@ export interface ThemeInput extends WebsitePart {
|
|
|
11
13
|
settings?: ThemeSettings;
|
|
12
14
|
templates?: SetHasMany<TemplateInput>;
|
|
13
15
|
themlateCategories?: SetHasMany<TemplateCategoryInput>;
|
|
16
|
+
selectedBy?: SetHasOne<WebsiteInput>;
|
|
14
17
|
}
|
|
15
18
|
export declare const themeToInputCascade: (entity: Theme) => ThemeInput;
|
|
16
19
|
export declare const themeToInput: (entity: Theme) => ThemeInput;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export * from './IdComparisonExp';
|
|
2
|
+
export * from './BooleanComparisonExp';
|
|
3
|
+
export * from './DateTimeComparisonExp';
|
|
4
|
+
export * from './StringComparisonExp';
|
|
5
|
+
export * from './NumberComparisonExp';
|
|
6
|
+
export * from './EnumComparisonExp';
|
|
1
7
|
export * from './User';
|
|
2
8
|
export * from './UserInput';
|
|
3
9
|
export * from './UserBoolExp';
|
|
@@ -55,11 +61,6 @@ export * from './EnquiryInput';
|
|
|
55
61
|
export * from './EnquiryBoolExp';
|
|
56
62
|
export * from './EnquiryOrderBy';
|
|
57
63
|
export * from './EnquiryDistinctExp';
|
|
58
|
-
export * from './WebsiteMeta';
|
|
59
|
-
export * from './WebsiteMetaInput';
|
|
60
|
-
export * from './WebsiteMetaBoolExp';
|
|
61
|
-
export * from './WebsiteMetaOrderBy';
|
|
62
|
-
export * from './WebsiteMetaDistinctExp';
|
|
63
64
|
export * from './WebsiteSettings';
|
|
64
65
|
export * from './WebsiteSettingsInput';
|
|
65
66
|
export * from './WebsiteSettingsBoolExp';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/rxcms-models",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
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/
|
|
16
|
-
"@rxdrag/
|
|
15
|
+
"@rxdrag/tsconfig": "0.1.1",
|
|
16
|
+
"@rxdrag/eslint-config-custom": "0.1.1"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"swr": "^2.2.4",
|
|
20
|
-
"@rxdrag/entify-hooks": "0.1.
|
|
20
|
+
"@rxdrag/entify-hooks": "0.1.4"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"lint": "eslint . --ext .ts,tsx",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IQueryArgs } from "@rxdrag/entify-hooks";
|
|
2
|
-
import { QueryOptions } from "./QueryOptions";
|
|
3
|
-
import { WebsiteMeta, WebsiteMetaBoolExp, WebsiteMetaDistinctExp, WebsiteMetaOrderBy } from "../interfaces";
|
|
4
|
-
export declare class WebsiteMetaQueryOptions extends QueryOptions<WebsiteMeta, WebsiteMetaBoolExp, WebsiteMetaOrderBy, WebsiteMetaDistinctExp> {
|
|
5
|
-
constructor(fields?: (keyof WebsiteMeta)[], queryArgs?: IQueryArgs<WebsiteMetaBoolExp, WebsiteMetaOrderBy, WebsiteMetaDistinctExp>);
|
|
6
|
-
id(): this;
|
|
7
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WebsiteMeta } from './WebsiteMeta';
|
|
2
|
-
export interface WebsiteMetaInput {
|
|
3
|
-
id?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const websiteMetaToInputCascade: (entity: WebsiteMeta) => WebsiteMetaInput;
|
|
6
|
-
export declare const websiteMetaToInput: (entity: WebsiteMeta) => WebsiteMetaInput;
|