@@ -84,6 +84,7 @@ export interface Config {
8484 'compound-indexes' : CompoundIndex ;
8585 aliases : Alias ;
8686 'blocks-docs' : BlocksDoc ;
87+ 'unique-fields' : UniqueField ;
8788 users : User ;
8889 'payload-locked-documents' : PayloadLockedDocument ;
8990 'payload-preferences' : PayloadPreference ;
@@ -108,6 +109,7 @@ export interface Config {
108109 'compound-indexes' : CompoundIndexesSelect < false > | CompoundIndexesSelect < true > ;
109110 aliases : AliasesSelect < false > | AliasesSelect < true > ;
110111 'blocks-docs' : BlocksDocsSelect < false > | BlocksDocsSelect < true > ;
112+ 'unique-fields' : UniqueFieldsSelect < false > | UniqueFieldsSelect < true > ;
111113 users : UsersSelect < false > | UsersSelect < true > ;
112114 'payload-locked-documents' : PayloadLockedDocumentsSelect < false > | PayloadLockedDocumentsSelect < true > ;
113115 'payload-preferences' : PayloadPreferencesSelect < false > | PayloadPreferencesSelect < true > ;
@@ -178,6 +180,21 @@ export interface Post {
178180 localized ?: string | null ;
179181 text ?: string | null ;
180182 number ?: number | null ;
183+ blocks ?:
184+ | {
185+ nested ?:
186+ | {
187+ nested ?: unknown [ ] | null ;
188+ id ?: string | null ;
189+ blockName ?: string | null ;
190+ blockType : 'block' ;
191+ } [ ]
192+ | null ;
193+ id ?: string | null ;
194+ blockName ?: string | null ;
195+ blockType : 'block' ;
196+ } [ ]
197+ | null ;
181198 D1 ?: {
182199 D2 ?: {
183200 D3 ?: {
@@ -525,6 +542,16 @@ export interface BlocksDoc {
525542 updatedAt : string ;
526543 createdAt : string ;
527544}
545+ /**
546+ * This interface was referenced by `Config`'s JSON-Schema
547+ * via the `definition` "unique-fields".
548+ */
549+ export interface UniqueField {
550+ id : string ;
551+ slugField ?: string | null ;
552+ updatedAt : string ;
553+ createdAt : string ;
554+ }
528555/**
529556 * This interface was referenced by `Config`'s JSON-Schema
530557 * via the `definition` "users".
@@ -617,6 +644,10 @@ export interface PayloadLockedDocument {
617644 relationTo : 'blocks-docs' ;
618645 value : string | BlocksDoc ;
619646 } | null )
647+ | ( {
648+ relationTo : 'unique-fields' ;
649+ value : string | UniqueField ;
650+ } | null )
620651 | ( {
621652 relationTo : 'users' ;
622653 value : string | User ;
@@ -682,6 +713,27 @@ export interface PostsSelect<T extends boolean = true> {
682713 localized ?: T ;
683714 text ?: T ;
684715 number ?: T ;
716+ blocks ?:
717+ | T
718+ | {
719+ block ?:
720+ | T
721+ | {
722+ nested ?:
723+ | T
724+ | {
725+ block ?:
726+ | T
727+ | {
728+ nested ?: T | { } ;
729+ id ?: T ;
730+ blockName ?: T ;
731+ } ;
732+ } ;
733+ id ?: T ;
734+ blockName ?: T ;
735+ } ;
736+ } ;
685737 D1 ?:
686738 | T
687739 | {
@@ -997,6 +1049,15 @@ export interface BlocksDocsSelect<T extends boolean = true> {
9971049 updatedAt ?: T ;
9981050 createdAt ?: T ;
9991051}
1052+ /**
1053+ * This interface was referenced by `Config`'s JSON-Schema
1054+ * via the `definition` "unique-fields_select".
1055+ */
1056+ export interface UniqueFieldsSelect < T extends boolean = true > {
1057+ slugField ?: T ;
1058+ updatedAt ?: T ;
1059+ createdAt ?: T ;
1060+ }
10001061/**
10011062 * This interface was referenced by `Config`'s JSON-Schema
10021063 * via the `definition` "users_select".
0 commit comments