@rxdrag/rxcms-models 0.3.49 → 0.3.51

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 (42) hide show
  1. package/dist/classes/ChangeLogQueryOptions.d.ts +13 -0
  2. package/dist/classes/EnquiryQueryOptions.d.ts +1 -0
  3. package/dist/classes/MediaQueryOptions.d.ts +5 -0
  4. package/dist/classes/SearchIndexQueryOptions.d.ts +24 -0
  5. package/dist/classes/WebsiteQueryOptions.d.ts +10 -0
  6. package/dist/classes/index.d.ts +2 -0
  7. package/dist/entries/changeLogEntry.d.ts +2 -0
  8. package/dist/entries/index.d.ts +2 -0
  9. package/dist/entries/searchIndexEntry.d.ts +2 -0
  10. package/dist/fields/ChangeLogFields.d.ts +9 -0
  11. package/dist/fields/EnquiryFields.d.ts +1 -0
  12. package/dist/fields/MediaFields.d.ts +3 -1
  13. package/dist/fields/SearchIndexFields.d.ts +18 -0
  14. package/dist/fields/WebsiteFields.d.ts +5 -1
  15. package/dist/fields/index.d.ts +2 -0
  16. package/dist/index.mjs +284 -12
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/interfaces/ChangeLog.d.ts +10 -0
  19. package/dist/interfaces/ChangeLogBoolExp.d.ts +14 -0
  20. package/dist/interfaces/ChangeLogDistinctExp.d.ts +7 -0
  21. package/dist/interfaces/ChangeLogInput.d.ts +12 -0
  22. package/dist/interfaces/ChangeLogOrderBy.d.ts +7 -0
  23. package/dist/interfaces/Enquiry.d.ts +1 -0
  24. package/dist/interfaces/EnquiryBoolExp.d.ts +1 -0
  25. package/dist/interfaces/EnquiryDistinctExp.d.ts +1 -0
  26. package/dist/interfaces/EnquiryInput.d.ts +1 -0
  27. package/dist/interfaces/EnquiryOrderBy.d.ts +1 -0
  28. package/dist/interfaces/Media.d.ts +3 -0
  29. package/dist/interfaces/MediaBoolExp.d.ts +2 -0
  30. package/dist/interfaces/MediaInput.d.ts +2 -0
  31. package/dist/interfaces/SearchIndex.d.ts +22 -0
  32. package/dist/interfaces/SearchIndexBoolExp.d.ts +27 -0
  33. package/dist/interfaces/SearchIndexDistinctExp.d.ts +15 -0
  34. package/dist/interfaces/SearchIndexInput.d.ts +24 -0
  35. package/dist/interfaces/SearchIndexOrderBy.d.ts +15 -0
  36. package/dist/interfaces/SourceType.d.ts +10 -0
  37. package/dist/interfaces/StringComparisonExp.d.ts +1 -0
  38. package/dist/interfaces/Website.d.ts +6 -0
  39. package/dist/interfaces/WebsiteBoolExp.d.ts +4 -0
  40. package/dist/interfaces/WebsiteInput.d.ts +4 -0
  41. package/dist/interfaces/index.d.ts +11 -0
  42. package/package.json +3 -3
@@ -0,0 +1,10 @@
1
+ import { Website } from './Website';
2
+ export declare const ChangeLogEntityName = "ChangeLog";
3
+ export declare const ChangeLogEntityLabel = "";
4
+ export interface ChangeLog {
5
+ id?: string | null;
6
+ title?: string;
7
+ description?: string;
8
+ createdAt?: Date;
9
+ website?: Website;
10
+ }
@@ -0,0 +1,14 @@
1
+ import { IdComparisonExp } from './IdComparisonExp';
2
+ import { StringComparisonExp } from './StringComparisonExp';
3
+ import { DateTimeComparisonExp } from './DateTimeComparisonExp';
4
+ import { WebsiteBoolExp } from './WebsiteBoolExp';
5
+ export interface ChangeLogBoolExp {
6
+ _and?: ChangeLogBoolExp[];
7
+ _or?: ChangeLogBoolExp[];
8
+ _not?: ChangeLogBoolExp;
9
+ id?: IdComparisonExp;
10
+ title?: StringComparisonExp;
11
+ description?: StringComparisonExp;
12
+ createdAt?: DateTimeComparisonExp;
13
+ website?: WebsiteBoolExp;
14
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum ChangeLogDistinctEnum {
2
+ id = "id",
3
+ title = "title",
4
+ description = "description",
5
+ createdAt = "createdAt"
6
+ }
7
+ export type ChangeLogDistinctExp = ChangeLogDistinctEnum;
@@ -0,0 +1,12 @@
1
+ import { ChangeLog } from './ChangeLog';
2
+ import { WebsiteInput } from './WebsiteInput';
3
+ import { SetHasOne } from '@rxdrag/entify-hooks';
4
+ export interface ChangeLogInput {
5
+ id?: string | null;
6
+ title?: string;
7
+ description?: string;
8
+ createdAt?: Date;
9
+ website?: SetHasOne<WebsiteInput>;
10
+ }
11
+ export declare const changeLogToInputCascade: (entity: ChangeLog) => ChangeLogInput;
12
+ export declare const changeLogToInput: (entity: ChangeLog) => ChangeLogInput;
@@ -0,0 +1,7 @@
1
+ import { OrderBy } from '@rxdrag/entify-hooks';
2
+ export interface ChangeLogOrderBy {
3
+ id?: OrderBy;
4
+ title?: OrderBy;
5
+ description?: OrderBy;
6
+ createdAt?: OrderBy;
7
+ }
@@ -20,6 +20,7 @@ export interface Enquiry extends WebsitePart {
20
20
  fromCta?: string;
21
21
  read?: boolean;
22
22
  spam?: boolean;
23
+ mobile?: string;
23
24
  lang?: Lang;
24
25
  customer?: Customer;
25
26
  website?: Website;
@@ -21,6 +21,7 @@ export interface EnquiryBoolExp extends WebsitePartBoolExp {
21
21
  fromCta?: StringComparisonExp;
22
22
  read?: BooleanComparisonExp;
23
23
  spam?: BooleanComparisonExp;
24
+ mobile?: StringComparisonExp;
24
25
  lang?: LangBoolExp;
25
26
  customer?: CustomerBoolExp;
26
27
  website?: WebsiteBoolExp;
@@ -15,6 +15,7 @@ export declare enum EnquiryDistinctEnum {
15
15
  fromCta = "fromCta",
16
16
  read = "read",
17
17
  spam = "spam",
18
+ mobile = "mobile",
18
19
  createdAt = "createdAt",
19
20
  updatedAt = "updatedAt",
20
21
  content = "content"
@@ -20,6 +20,7 @@ export interface EnquiryInput extends WebsitePart {
20
20
  fromCta?: string;
21
21
  read?: boolean;
22
22
  spam?: boolean;
23
+ mobile?: string;
23
24
  lang?: SetHasOne<LangInput>;
24
25
  customer?: SetHasOne<CustomerInput>;
25
26
  website?: SetHasOne<WebsiteInput>;
@@ -16,4 +16,5 @@ export interface EnquiryOrderBy extends WebsitePartOrderBy {
16
16
  fromCta?: OrderBy;
17
17
  read?: OrderBy;
18
18
  spam?: OrderBy;
19
+ mobile?: OrderBy;
19
20
  }
@@ -12,6 +12,7 @@ import { Theme } from './Theme';
12
12
  import { PostCategory } from './PostCategory';
13
13
  import { ThemeConfig } from './ThemeConfig';
14
14
  import { PageMeta } from './PageMeta';
15
+ import { SearchIndex } from './SearchIndex';
15
16
  import { Aggregate } from './Aggregate';
16
17
  import { WebsitePart } from './WebsitePart';
17
18
  export declare const MediaEntityName = "Media";
@@ -39,6 +40,7 @@ export interface Media extends WebsitePart {
39
40
  postCategory?: PostCategory;
40
41
  usedByThemConfig?: ThemeConfig[];
41
42
  pageMeta?: PageMeta[];
43
+ searchIndex?: SearchIndex[];
42
44
  coverOfAggregate?: Aggregate;
43
45
  meidaOfProductAggregate?: Aggregate;
44
46
  productMediaPivotsAggregate?: Aggregate;
@@ -46,4 +48,5 @@ export interface Media extends WebsitePart {
46
48
  coverOfThemeAggregate?: Aggregate;
47
49
  usedByThemConfigAggregate?: Aggregate;
48
50
  pageMetaAggregate?: Aggregate;
51
+ searchIndexAggregate?: Aggregate;
49
52
  }
@@ -17,6 +17,7 @@ import { ThemeBoolExp } from './ThemeBoolExp';
17
17
  import { PostCategoryBoolExp } from './PostCategoryBoolExp';
18
18
  import { ThemeConfigBoolExp } from './ThemeConfigBoolExp';
19
19
  import { PageMetaBoolExp } from './PageMetaBoolExp';
20
+ import { SearchIndexBoolExp } from './SearchIndexBoolExp';
20
21
  export interface MediaBoolExp extends WebsitePartBoolExp {
21
22
  _and?: MediaBoolExp[];
22
23
  _or?: MediaBoolExp[];
@@ -42,4 +43,5 @@ export interface MediaBoolExp extends WebsitePartBoolExp {
42
43
  postCategory?: PostCategoryBoolExp;
43
44
  usedByThemConfig?: ThemeConfigBoolExp;
44
45
  pageMeta?: PageMetaBoolExp;
46
+ searchIndex?: SearchIndexBoolExp;
45
47
  }
@@ -13,6 +13,7 @@ import { ThemeInput } from './ThemeInput';
13
13
  import { PostCategoryInput } from './PostCategoryInput';
14
14
  import { ThemeConfigInput } from './ThemeConfigInput';
15
15
  import { PageMetaInput } from './PageMetaInput';
16
+ import { SearchIndexInput } from './SearchIndexInput';
16
17
  import { SetHasMany } from '@rxdrag/entify-hooks';
17
18
  import { SetHasOne } from '@rxdrag/entify-hooks';
18
19
  import { WebsitePart } from './WebsitePart';
@@ -39,6 +40,7 @@ export interface MediaInput extends WebsitePart {
39
40
  postCategory?: SetHasOne<PostCategoryInput>;
40
41
  usedByThemConfig?: SetHasMany<ThemeConfigInput>;
41
42
  pageMeta?: SetHasMany<PageMetaInput>;
43
+ searchIndex?: SetHasMany<SearchIndexInput>;
42
44
  }
43
45
  export declare const mediaToInputCascade: (entity: Media) => MediaInput;
44
46
  export declare const mediaToInput: (entity: Media) => MediaInput;
@@ -0,0 +1,22 @@
1
+ import { SourceType } from './SourceType';
2
+ import { PublishableStatus } from './PublishableStatus';
3
+ import { Media } from './Media';
4
+ import { Website } from './Website';
5
+ export declare const SearchIndexEntityName = "SearchIndex";
6
+ export declare const SearchIndexEntityLabel = "";
7
+ export interface SearchIndex {
8
+ id?: string | null;
9
+ sourceType?: SourceType;
10
+ sourceId?: string | null;
11
+ title?: string;
12
+ content?: string;
13
+ tags?: string;
14
+ summary?: string;
15
+ updatedAt?: Date;
16
+ createdAt?: Date;
17
+ sourceSlug?: string;
18
+ sourceLang?: string;
19
+ sourceStatus?: PublishableStatus;
20
+ media?: Media;
21
+ website?: Website;
22
+ }
@@ -0,0 +1,27 @@
1
+ import { SourceType } from './SourceType';
2
+ import { PublishableStatus } from './PublishableStatus';
3
+ import { IdComparisonExp } from './IdComparisonExp';
4
+ import { EnumComparisonExp } from './EnumComparisonExp';
5
+ import { StringComparisonExp } from './StringComparisonExp';
6
+ import { DateTimeComparisonExp } from './DateTimeComparisonExp';
7
+ import { MediaBoolExp } from './MediaBoolExp';
8
+ import { WebsiteBoolExp } from './WebsiteBoolExp';
9
+ export interface SearchIndexBoolExp {
10
+ _and?: SearchIndexBoolExp[];
11
+ _or?: SearchIndexBoolExp[];
12
+ _not?: SearchIndexBoolExp;
13
+ id?: IdComparisonExp;
14
+ sourceType?: EnumComparisonExp<SourceType>;
15
+ sourceId?: IdComparisonExp;
16
+ title?: StringComparisonExp;
17
+ content?: StringComparisonExp;
18
+ tags?: StringComparisonExp;
19
+ summary?: StringComparisonExp;
20
+ updatedAt?: DateTimeComparisonExp;
21
+ createdAt?: DateTimeComparisonExp;
22
+ sourceSlug?: StringComparisonExp;
23
+ sourceLang?: StringComparisonExp;
24
+ sourceStatus?: EnumComparisonExp<PublishableStatus>;
25
+ media?: MediaBoolExp;
26
+ website?: WebsiteBoolExp;
27
+ }
@@ -0,0 +1,15 @@
1
+ export declare enum SearchIndexDistinctEnum {
2
+ id = "id",
3
+ sourceType = "sourceType",
4
+ sourceId = "sourceId",
5
+ title = "title",
6
+ content = "content",
7
+ tags = "tags",
8
+ summary = "summary",
9
+ updatedAt = "updatedAt",
10
+ createdAt = "createdAt",
11
+ sourceSlug = "sourceSlug",
12
+ sourceLang = "sourceLang",
13
+ sourceStatus = "sourceStatus"
14
+ }
15
+ export type SearchIndexDistinctExp = SearchIndexDistinctEnum;
@@ -0,0 +1,24 @@
1
+ import { SearchIndex } from './SearchIndex';
2
+ import { SourceType } from './SourceType';
3
+ import { PublishableStatus } from './PublishableStatus';
4
+ import { MediaInput } from './MediaInput';
5
+ import { WebsiteInput } from './WebsiteInput';
6
+ import { SetHasOne } from '@rxdrag/entify-hooks';
7
+ export interface SearchIndexInput {
8
+ id?: string | null;
9
+ sourceType?: SourceType;
10
+ sourceId?: string | null;
11
+ title?: string;
12
+ content?: string;
13
+ tags?: string;
14
+ summary?: string;
15
+ updatedAt?: Date;
16
+ createdAt?: Date;
17
+ sourceSlug?: string;
18
+ sourceLang?: string;
19
+ sourceStatus?: PublishableStatus;
20
+ media?: SetHasOne<MediaInput>;
21
+ website?: SetHasOne<WebsiteInput>;
22
+ }
23
+ export declare const searchIndexToInputCascade: (entity: SearchIndex) => SearchIndexInput;
24
+ export declare const searchIndexToInput: (entity: SearchIndex) => SearchIndexInput;
@@ -0,0 +1,15 @@
1
+ import { OrderBy } from '@rxdrag/entify-hooks';
2
+ export interface SearchIndexOrderBy {
3
+ id?: OrderBy;
4
+ sourceType?: OrderBy;
5
+ sourceId?: OrderBy;
6
+ title?: OrderBy;
7
+ content?: OrderBy;
8
+ tags?: OrderBy;
9
+ summary?: OrderBy;
10
+ updatedAt?: OrderBy;
11
+ createdAt?: OrderBy;
12
+ sourceSlug?: OrderBy;
13
+ sourceLang?: OrderBy;
14
+ sourceStatus?: OrderBy;
15
+ }
@@ -0,0 +1,10 @@
1
+ export declare enum SourceType {
2
+ /**
3
+ * label: undefined
4
+ */
5
+ product = "product",
6
+ /**
7
+ * label: undefined
8
+ */
9
+ post = "post"
10
+ }
@@ -12,6 +12,7 @@ export interface StringComparisonExp {
12
12
  _lte?: string;
13
13
  _gt?: string;
14
14
  _like?: string;
15
+ _match?: string;
15
16
  _isNull?: boolean;
16
17
  _isNotNull?: boolean;
17
18
  _notIn?: string[];
@@ -14,6 +14,8 @@ import { Lang } from './Lang';
14
14
  import { Theme } from './Theme';
15
15
  import { AnalyticsConfig } from './AnalyticsConfig';
16
16
  import { WebsiteSettings } from './WebsiteSettings';
17
+ import { ChangeLog } from './ChangeLog';
18
+ import { SearchIndex } from './SearchIndex';
17
19
  import { Aggregate } from './Aggregate';
18
20
  export declare const WebsiteEntityName = "Website";
19
21
  export declare const WebsiteEntityLabel = "\u7AD9\u70B9";
@@ -71,6 +73,8 @@ export interface Website {
71
73
  themes?: Theme[];
72
74
  analyticsConfig?: AnalyticsConfig;
73
75
  settings?: WebsiteSettings;
76
+ changelogs?: ChangeLog[];
77
+ searchIndexes?: SearchIndex[];
74
78
  usersAggregate?: Aggregate;
75
79
  partsOfMediaFolderAggregate?: Aggregate;
76
80
  partsOfEnquiryAggregate?: Aggregate;
@@ -84,4 +88,6 @@ export interface Website {
84
88
  partsOfMediaAggregate?: Aggregate;
85
89
  langsAggregate?: Aggregate;
86
90
  themesAggregate?: Aggregate;
91
+ changelogsAggregate?: Aggregate;
92
+ searchIndexesAggregate?: Aggregate;
87
93
  }
@@ -17,6 +17,8 @@ import { LangBoolExp } from './LangBoolExp';
17
17
  import { ThemeBoolExp } from './ThemeBoolExp';
18
18
  import { AnalyticsConfigBoolExp } from './AnalyticsConfigBoolExp';
19
19
  import { WebsiteSettingsBoolExp } from './WebsiteSettingsBoolExp';
20
+ import { ChangeLogBoolExp } from './ChangeLogBoolExp';
21
+ import { SearchIndexBoolExp } from './SearchIndexBoolExp';
20
22
  /**
21
23
  * 站点
22
24
  * 网站实体
@@ -53,4 +55,6 @@ export interface WebsiteBoolExp {
53
55
  themes?: ThemeBoolExp;
54
56
  analyticsConfig?: AnalyticsConfigBoolExp;
55
57
  settings?: WebsiteSettingsBoolExp;
58
+ changelogs?: ChangeLogBoolExp;
59
+ searchIndexes?: SearchIndexBoolExp;
56
60
  }
@@ -15,6 +15,8 @@ import { LangInput } from './LangInput';
15
15
  import { ThemeInput } from './ThemeInput';
16
16
  import { AnalyticsConfigInput } from './AnalyticsConfigInput';
17
17
  import { WebsiteSettingsInput } from './WebsiteSettingsInput';
18
+ import { ChangeLogInput } from './ChangeLogInput';
19
+ import { SearchIndexInput } from './SearchIndexInput';
18
20
  import { SetHasMany } from '@rxdrag/entify-hooks';
19
21
  import { SetHasOne } from '@rxdrag/entify-hooks';
20
22
  /**
@@ -71,6 +73,8 @@ export interface WebsiteInput {
71
73
  themes?: SetHasMany<ThemeInput>;
72
74
  analyticsConfig?: SetHasOne<AnalyticsConfigInput>;
73
75
  settings?: SetHasOne<WebsiteSettingsInput>;
76
+ changelogs?: SetHasMany<ChangeLogInput>;
77
+ searchIndexes?: SetHasMany<SearchIndexInput>;
74
78
  }
75
79
  export declare const websiteToInputCascade: (entity: Website) => WebsiteInput;
76
80
  export declare const websiteToInput: (entity: Website) => WebsiteInput;
@@ -221,3 +221,14 @@ export * from './StyleConfigBoolExp';
221
221
  export * from './StyleConfigOrderBy';
222
222
  export * from './StyleConfigDistinctExp';
223
223
  export * from './CookieConsentStrategy';
224
+ export * from './ChangeLog';
225
+ export * from './ChangeLogInput';
226
+ export * from './ChangeLogBoolExp';
227
+ export * from './ChangeLogOrderBy';
228
+ export * from './ChangeLogDistinctExp';
229
+ export * from './SearchIndex';
230
+ export * from './SearchIndexInput';
231
+ export * from './SearchIndexBoolExp';
232
+ export * from './SearchIndexOrderBy';
233
+ export * from './SearchIndexDistinctExp';
234
+ export * from './SourceType';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdrag/rxcms-models",
3
- "version": "0.3.49",
3
+ "version": "0.3.51",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [
@@ -12,8 +12,8 @@
12
12
  "devDependencies": {
13
13
  "eslint": "^7.32.0",
14
14
  "typescript": "^5",
15
- "@rxdrag/eslint-config-custom": "0.2.12",
16
- "@rxdrag/tsconfig": "0.2.0"
15
+ "@rxdrag/tsconfig": "0.2.0",
16
+ "@rxdrag/eslint-config-custom": "0.2.12"
17
17
  },
18
18
  "dependencies": {
19
19
  "swr": "^2.2.4",