@rxdrag/rxcms-models 0.3.50 → 0.3.52
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 +5 -0
- package/dist/classes/SearchIndexQueryOptions.d.ts +24 -0
- package/dist/classes/WebsiteQueryOptions.d.ts +5 -0
- package/dist/classes/index.d.ts +1 -0
- package/dist/entries/index.d.ts +1 -0
- package/dist/entries/searchIndexEntry.d.ts +2 -0
- package/dist/fields/MediaFields.d.ts +3 -1
- package/dist/fields/SearchIndexFields.d.ts +18 -0
- package/dist/fields/WebsiteFields.d.ts +3 -1
- package/dist/fields/index.d.ts +1 -0
- package/dist/index.mjs +186 -12
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/Media.d.ts +3 -0
- package/dist/interfaces/MediaBoolExp.d.ts +2 -0
- package/dist/interfaces/MediaInput.d.ts +2 -0
- package/dist/interfaces/SearchIndex.d.ts +22 -0
- package/dist/interfaces/SearchIndexBoolExp.d.ts +27 -0
- package/dist/interfaces/SearchIndexDistinctExp.d.ts +15 -0
- package/dist/interfaces/SearchIndexInput.d.ts +24 -0
- package/dist/interfaces/SearchIndexOrderBy.d.ts +15 -0
- package/dist/interfaces/SourceType.d.ts +10 -0
- package/dist/interfaces/StringComparisonExp.d.ts +1 -0
- package/dist/interfaces/Website.d.ts +3 -0
- package/dist/interfaces/WebsiteBoolExp.d.ts +2 -0
- package/dist/interfaces/WebsiteInput.d.ts +2 -0
- package/dist/interfaces/index.d.ts +6 -0
- package/package.json +2 -2
|
@@ -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
|
+
}
|
|
@@ -15,6 +15,7 @@ import { Theme } from './Theme';
|
|
|
15
15
|
import { AnalyticsConfig } from './AnalyticsConfig';
|
|
16
16
|
import { WebsiteSettings } from './WebsiteSettings';
|
|
17
17
|
import { ChangeLog } from './ChangeLog';
|
|
18
|
+
import { SearchIndex } from './SearchIndex';
|
|
18
19
|
import { Aggregate } from './Aggregate';
|
|
19
20
|
export declare const WebsiteEntityName = "Website";
|
|
20
21
|
export declare const WebsiteEntityLabel = "\u7AD9\u70B9";
|
|
@@ -73,6 +74,7 @@ export interface Website {
|
|
|
73
74
|
analyticsConfig?: AnalyticsConfig;
|
|
74
75
|
settings?: WebsiteSettings;
|
|
75
76
|
changelogs?: ChangeLog[];
|
|
77
|
+
searchIndexes?: SearchIndex[];
|
|
76
78
|
usersAggregate?: Aggregate;
|
|
77
79
|
partsOfMediaFolderAggregate?: Aggregate;
|
|
78
80
|
partsOfEnquiryAggregate?: Aggregate;
|
|
@@ -87,4 +89,5 @@ export interface Website {
|
|
|
87
89
|
langsAggregate?: Aggregate;
|
|
88
90
|
themesAggregate?: Aggregate;
|
|
89
91
|
changelogsAggregate?: Aggregate;
|
|
92
|
+
searchIndexesAggregate?: Aggregate;
|
|
90
93
|
}
|
|
@@ -18,6 +18,7 @@ import { ThemeBoolExp } from './ThemeBoolExp';
|
|
|
18
18
|
import { AnalyticsConfigBoolExp } from './AnalyticsConfigBoolExp';
|
|
19
19
|
import { WebsiteSettingsBoolExp } from './WebsiteSettingsBoolExp';
|
|
20
20
|
import { ChangeLogBoolExp } from './ChangeLogBoolExp';
|
|
21
|
+
import { SearchIndexBoolExp } from './SearchIndexBoolExp';
|
|
21
22
|
/**
|
|
22
23
|
* 站点
|
|
23
24
|
* 网站实体
|
|
@@ -55,4 +56,5 @@ export interface WebsiteBoolExp {
|
|
|
55
56
|
analyticsConfig?: AnalyticsConfigBoolExp;
|
|
56
57
|
settings?: WebsiteSettingsBoolExp;
|
|
57
58
|
changelogs?: ChangeLogBoolExp;
|
|
59
|
+
searchIndexes?: SearchIndexBoolExp;
|
|
58
60
|
}
|
|
@@ -16,6 +16,7 @@ import { ThemeInput } from './ThemeInput';
|
|
|
16
16
|
import { AnalyticsConfigInput } from './AnalyticsConfigInput';
|
|
17
17
|
import { WebsiteSettingsInput } from './WebsiteSettingsInput';
|
|
18
18
|
import { ChangeLogInput } from './ChangeLogInput';
|
|
19
|
+
import { SearchIndexInput } from './SearchIndexInput';
|
|
19
20
|
import { SetHasMany } from '@rxdrag/entify-hooks';
|
|
20
21
|
import { SetHasOne } from '@rxdrag/entify-hooks';
|
|
21
22
|
/**
|
|
@@ -73,6 +74,7 @@ export interface WebsiteInput {
|
|
|
73
74
|
analyticsConfig?: SetHasOne<AnalyticsConfigInput>;
|
|
74
75
|
settings?: SetHasOne<WebsiteSettingsInput>;
|
|
75
76
|
changelogs?: SetHasMany<ChangeLogInput>;
|
|
77
|
+
searchIndexes?: SetHasMany<SearchIndexInput>;
|
|
76
78
|
}
|
|
77
79
|
export declare const websiteToInputCascade: (entity: Website) => WebsiteInput;
|
|
78
80
|
export declare const websiteToInput: (entity: Website) => WebsiteInput;
|
|
@@ -226,3 +226,9 @@ export * from './ChangeLogInput';
|
|
|
226
226
|
export * from './ChangeLogBoolExp';
|
|
227
227
|
export * from './ChangeLogOrderBy';
|
|
228
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.
|
|
3
|
+
"version": "0.3.52",
|
|
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.44"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"lint": "eslint . --ext .ts,tsx",
|