Compare commits

...

1 Commits

Author SHA1 Message Date
Sasha
219aebbec0 setup config 2025-04-18 20:00:05 +03:00
2 changed files with 30 additions and 0 deletions

View File

@@ -471,6 +471,16 @@ export default buildConfigWithDefaults({
type: 'text',
virtual: 'post.category.title',
},
{
name: 'postCategoryID',
type: 'json',
virtual: 'post.category.id',
},
{
name: 'postID',
type: 'json',
virtual: 'post.id',
},
{
name: 'postLocalized',
type: 'text',

View File

@@ -373,6 +373,24 @@ export interface VirtualRelation {
id: string;
postTitle?: string | null;
postCategoryTitle?: string | null;
postCategoryID?:
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
postID?:
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
postLocalized?: string | null;
post?: (string | null) | Post;
updatedAt: string;
@@ -807,6 +825,8 @@ export interface PlacesSelect<T extends boolean = true> {
export interface VirtualRelationsSelect<T extends boolean = true> {
postTitle?: T;
postCategoryTitle?: T;
postCategoryID?: T;
postID?: T;
postLocalized?: T;
post?: T;
updatedAt?: T;