@@ -12,17 +12,29 @@ export interface Config {
1212 } ;
1313 collections : {
1414 users : User ;
15- "payload-locked-documents" : PayloadLockedDocument ;
16- "payload-preferences" : PayloadPreference ;
17- "payload-migrations" : PayloadMigration ;
15+ 'payload-locked-documents' : PayloadLockedDocument ;
16+ 'payload-preferences' : PayloadPreference ;
17+ 'payload-migrations' : PayloadMigration ;
18+ } ;
19+ collectionsJoins : { } ;
20+ collectionsSelect : {
21+ users : UsersSelect < false > | UsersSelect < true > ;
22+ 'payload-locked-documents' : PayloadLockedDocumentsSelect < false > | PayloadLockedDocumentsSelect < true > ;
23+ 'payload-preferences' : PayloadPreferencesSelect < false > | PayloadPreferencesSelect < true > ;
24+ 'payload-migrations' : PayloadMigrationsSelect < false > | PayloadMigrationsSelect < true > ;
1825 } ;
1926 db : {
2027 defaultIDType : number ;
2128 } ;
2229 globals : { } ;
30+ globalsSelect : { } ;
2331 locale : null ;
2432 user : User & {
25- collection : "users" ;
33+ collection : 'users' ;
34+ } ;
35+ jobs : {
36+ tasks : unknown ;
37+ workflows : unknown ;
2638 } ;
2739}
2840export interface UserAuthOperations {
@@ -61,12 +73,12 @@ export interface User {
6173export interface PayloadLockedDocument {
6274 id : number ;
6375 document ?: {
64- relationTo : " users" ;
76+ relationTo : ' users' ;
6577 value : number | User ;
6678 } | null ;
6779 globalSlug ?: string | null ;
6880 user : {
69- relationTo : " users" ;
81+ relationTo : ' users' ;
7082 value : number | User ;
7183 } ;
7284 updatedAt : string ;
@@ -79,7 +91,7 @@ export interface PayloadLockedDocument {
7991export interface PayloadPreference {
8092 id : number ;
8193 user : {
82- relationTo : " users" ;
94+ relationTo : ' users' ;
8395 value : number | User ;
8496 } ;
8597 key ?: string | null ;
@@ -106,6 +118,48 @@ export interface PayloadMigration {
106118 updatedAt : string ;
107119 createdAt : string ;
108120}
121+ /**
122+ * This interface was referenced by `Config`'s JSON-Schema
123+ * via the `definition` "users_select".
124+ */
125+ export interface UsersSelect < T extends boolean = true > {
126+ email ?: T ;
127+ sub ?: T ;
128+ updatedAt ?: T ;
129+ createdAt ?: T ;
130+ }
131+ /**
132+ * This interface was referenced by `Config`'s JSON-Schema
133+ * via the `definition` "payload-locked-documents_select".
134+ */
135+ export interface PayloadLockedDocumentsSelect < T extends boolean = true > {
136+ document ?: T ;
137+ globalSlug ?: T ;
138+ user ?: T ;
139+ updatedAt ?: T ;
140+ createdAt ?: T ;
141+ }
142+ /**
143+ * This interface was referenced by `Config`'s JSON-Schema
144+ * via the `definition` "payload-preferences_select".
145+ */
146+ export interface PayloadPreferencesSelect < T extends boolean = true > {
147+ user ?: T ;
148+ key ?: T ;
149+ value ?: T ;
150+ updatedAt ?: T ;
151+ createdAt ?: T ;
152+ }
153+ /**
154+ * This interface was referenced by `Config`'s JSON-Schema
155+ * via the `definition` "payload-migrations_select".
156+ */
157+ export interface PayloadMigrationsSelect < T extends boolean = true > {
158+ name ?: T ;
159+ batch ?: T ;
160+ updatedAt ?: T ;
161+ createdAt ?: T ;
162+ }
109163/**
110164 * This interface was referenced by `Config`'s JSON-Schema
111165 * via the `definition` "auth".
@@ -114,6 +168,7 @@ export interface Auth {
114168 [ k : string ] : unknown ;
115169}
116170
117- declare module "payload" {
171+
172+ declare module 'payload' {
118173 export interface GeneratedTypes extends Config { }
119- }
174+ }
0 commit comments