fix(db-postgres): x3 and more nested blocks regression (#12770)
This commit is contained in:
@@ -84,6 +84,7 @@ export interface Config {
|
||||
'compound-indexes': CompoundIndex;
|
||||
aliases: Alias;
|
||||
'blocks-docs': BlocksDoc;
|
||||
'unique-fields': UniqueField;
|
||||
users: User;
|
||||
'payload-locked-documents': PayloadLockedDocument;
|
||||
'payload-preferences': PayloadPreference;
|
||||
@@ -108,6 +109,7 @@ export interface Config {
|
||||
'compound-indexes': CompoundIndexesSelect<false> | CompoundIndexesSelect<true>;
|
||||
aliases: AliasesSelect<false> | AliasesSelect<true>;
|
||||
'blocks-docs': BlocksDocsSelect<false> | BlocksDocsSelect<true>;
|
||||
'unique-fields': UniqueFieldsSelect<false> | UniqueFieldsSelect<true>;
|
||||
users: UsersSelect<false> | UsersSelect<true>;
|
||||
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
|
||||
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
|
||||
@@ -178,6 +180,21 @@ export interface Post {
|
||||
localized?: string | null;
|
||||
text?: string | null;
|
||||
number?: number | null;
|
||||
blocks?:
|
||||
| {
|
||||
nested?:
|
||||
| {
|
||||
nested?: unknown[] | null;
|
||||
id?: string | null;
|
||||
blockName?: string | null;
|
||||
blockType: 'block';
|
||||
}[]
|
||||
| null;
|
||||
id?: string | null;
|
||||
blockName?: string | null;
|
||||
blockType: 'block';
|
||||
}[]
|
||||
| null;
|
||||
D1?: {
|
||||
D2?: {
|
||||
D3?: {
|
||||
@@ -525,6 +542,16 @@ export interface BlocksDoc {
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "unique-fields".
|
||||
*/
|
||||
export interface UniqueField {
|
||||
id: string;
|
||||
slugField?: string | null;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "users".
|
||||
@@ -617,6 +644,10 @@ export interface PayloadLockedDocument {
|
||||
relationTo: 'blocks-docs';
|
||||
value: string | BlocksDoc;
|
||||
} | null)
|
||||
| ({
|
||||
relationTo: 'unique-fields';
|
||||
value: string | UniqueField;
|
||||
} | null)
|
||||
| ({
|
||||
relationTo: 'users';
|
||||
value: string | User;
|
||||
@@ -682,6 +713,27 @@ export interface PostsSelect<T extends boolean = true> {
|
||||
localized?: T;
|
||||
text?: T;
|
||||
number?: T;
|
||||
blocks?:
|
||||
| T
|
||||
| {
|
||||
block?:
|
||||
| T
|
||||
| {
|
||||
nested?:
|
||||
| T
|
||||
| {
|
||||
block?:
|
||||
| T
|
||||
| {
|
||||
nested?: T | {};
|
||||
id?: T;
|
||||
blockName?: T;
|
||||
};
|
||||
};
|
||||
id?: T;
|
||||
blockName?: T;
|
||||
};
|
||||
};
|
||||
D1?:
|
||||
| T
|
||||
| {
|
||||
@@ -997,6 +1049,15 @@ export interface BlocksDocsSelect<T extends boolean = true> {
|
||||
updatedAt?: T;
|
||||
createdAt?: T;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "unique-fields_select".
|
||||
*/
|
||||
export interface UniqueFieldsSelect<T extends boolean = true> {
|
||||
slugField?: T;
|
||||
updatedAt?: T;
|
||||
createdAt?: T;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "users_select".
|
||||
|
||||
Reference in New Issue
Block a user