@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.
@@ -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.7",
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/eslint-config-custom": "0.1.1",
16
- "@rxdrag/tsconfig": "0.1.1"
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.2"
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,2 +0,0 @@
1
- import { EntityEntry } from "@rxdrag/entify-hooks";
2
- export declare const websiteMetaEntry: EntityEntry;
@@ -1,5 +0,0 @@
1
- export declare enum WebsiteMetaFields {
2
- id = "id"
3
- }
4
- export declare enum WebsiteMetaAssciations {
5
- }
@@ -1,5 +0,0 @@
1
- export declare const WebsiteMetaEntityName = "WebsiteMeta";
2
- export declare const WebsiteMetaEntityLabel = "";
3
- export interface WebsiteMeta {
4
- id?: string;
5
- }
@@ -1,7 +0,0 @@
1
- import { IdComparisonExp } from './IdComparisonExp';
2
- export interface WebsiteMetaBoolExp {
3
- _and?: WebsiteMetaBoolExp[];
4
- _or?: WebsiteMetaBoolExp[];
5
- _not?: WebsiteMetaBoolExp;
6
- id?: IdComparisonExp;
7
- }
@@ -1,4 +0,0 @@
1
- export declare enum WebsiteMetaDistinctEnum {
2
- id = "id"
3
- }
4
- export type WebsiteMetaDistinctExp = WebsiteMetaDistinctEnum;
@@ -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;
@@ -1,4 +0,0 @@
1
- import { OrderBy } from '@rxdrag/entify-hooks';
2
- export interface WebsiteMetaOrderBy {
3
- id?: OrderBy;
4
- }