@@ -67,17 +67,19 @@ export interface Config {
67
67
} ;
68
68
blocks : { } ;
69
69
collections : {
70
- pages : Page ;
71
70
media : Media ;
71
+ pages : Page ;
72
+ posts : Post ;
72
73
users : User ;
73
74
"payload-locked-documents" : PayloadLockedDocument ;
74
75
"payload-preferences" : PayloadPreference ;
75
76
"payload-migrations" : PayloadMigration ;
76
77
} ;
77
78
collectionsJoins : { } ;
78
79
collectionsSelect : {
79
- pages : PagesSelect < false > | PagesSelect < true > ;
80
80
media : MediaSelect < false > | MediaSelect < true > ;
81
+ pages : PagesSelect < false > | PagesSelect < true > ;
82
+ posts : PostsSelect < false > | PostsSelect < true > ;
81
83
users : UsersSelect < false > | UsersSelect < true > ;
82
84
"payload-locked-documents" :
83
85
| PayloadLockedDocumentsSelect < false >
@@ -125,69 +127,14 @@ export interface UserAuthOperations {
125
127
password : string ;
126
128
} ;
127
129
}
128
- /**
129
- * This interface was referenced by `Config`'s JSON-Schema
130
- * via the `definition` "pages".
131
- */
132
- export interface Page {
133
- id : string ;
134
- title : string ;
135
- fullTitle ?: string | null ;
136
- slug ?: string | null ;
137
- blocks ?:
138
- | {
139
- title : string ;
140
- content : {
141
- root : {
142
- type : string ;
143
- children : {
144
- type : string ;
145
- version : number ;
146
- [ k : string ] : unknown ;
147
- } [ ] ;
148
- direction : ( "ltr" | "rtl" ) | null ;
149
- format :
150
- | "left"
151
- | "start"
152
- | "center"
153
- | "right"
154
- | "end"
155
- | "justify"
156
- | "" ;
157
- indent : number ;
158
- version : number ;
159
- } ;
160
- [ k : string ] : unknown ;
161
- } ;
162
- id ?: string | null ;
163
- blockName ?: string | null ;
164
- blockType : "test" ;
165
- } [ ]
166
- | null ;
167
- parent ?: ( string | null ) | Page ;
168
- breadcrumbs ?:
169
- | {
170
- doc ?: ( string | null ) | Page ;
171
- url ?: string | null ;
172
- label ?: string | null ;
173
- id ?: string | null ;
174
- } [ ]
175
- | null ;
176
- meta ?: {
177
- title ?: string | null ;
178
- description ?: string | null ;
179
- } ;
180
- updatedAt : string ;
181
- createdAt : string ;
182
- _status ?: ( "draft" | "published" ) | null ;
183
- }
184
130
/**
185
131
* This interface was referenced by `Config`'s JSON-Schema
186
132
* via the `definition` "media".
187
133
*/
188
134
export interface Media {
189
135
id : string ;
190
136
alt : string ;
137
+ createdBy ?: ( string | null ) | User ;
191
138
updatedAt : string ;
192
139
createdAt : string ;
193
140
url ?: string | null ;
@@ -266,6 +213,7 @@ export interface User {
266
213
id : string ;
267
214
firstName : string ;
268
215
lastName : string ;
216
+ role : "administrator" | "editor" | "author" ;
269
217
updatedAt : string ;
270
218
createdAt : string ;
271
219
email : string ;
@@ -277,20 +225,93 @@ export interface User {
277
225
lockUntil ?: string | null ;
278
226
password ?: string | null ;
279
227
}
228
+ /**
229
+ * This interface was referenced by `Config`'s JSON-Schema
230
+ * via the `definition` "pages".
231
+ */
232
+ export interface Page {
233
+ id : string ;
234
+ title : string ;
235
+ fullTitle ?: string | null ;
236
+ slug ?: string | null ;
237
+ blocks ?:
238
+ | {
239
+ title : string ;
240
+ content : {
241
+ root : {
242
+ type : string ;
243
+ children : {
244
+ type : string ;
245
+ version : number ;
246
+ [ k : string ] : unknown ;
247
+ } [ ] ;
248
+ direction : ( "ltr" | "rtl" ) | null ;
249
+ format :
250
+ | "left"
251
+ | "start"
252
+ | "center"
253
+ | "right"
254
+ | "end"
255
+ | "justify"
256
+ | "" ;
257
+ indent : number ;
258
+ version : number ;
259
+ } ;
260
+ [ k : string ] : unknown ;
261
+ } ;
262
+ id ?: string | null ;
263
+ blockName ?: string | null ;
264
+ blockType : "test" ;
265
+ } [ ]
266
+ | null ;
267
+ parent ?: ( string | null ) | Page ;
268
+ breadcrumbs ?:
269
+ | {
270
+ doc ?: ( string | null ) | Page ;
271
+ url ?: string | null ;
272
+ label ?: string | null ;
273
+ id ?: string | null ;
274
+ } [ ]
275
+ | null ;
276
+ meta ?: {
277
+ title ?: string | null ;
278
+ description ?: string | null ;
279
+ } ;
280
+ updatedAt : string ;
281
+ createdAt : string ;
282
+ _status ?: ( "draft" | "published" ) | null ;
283
+ }
284
+ /**
285
+ * This interface was referenced by `Config`'s JSON-Schema
286
+ * via the `definition` "posts".
287
+ */
288
+ export interface Post {
289
+ id : string ;
290
+ title : string ;
291
+ slug ?: string | null ;
292
+ createdBy ?: ( string | null ) | User ;
293
+ updatedAt : string ;
294
+ createdAt : string ;
295
+ _status ?: ( "draft" | "published" ) | null ;
296
+ }
280
297
/**
281
298
* This interface was referenced by `Config`'s JSON-Schema
282
299
* via the `definition` "payload-locked-documents".
283
300
*/
284
301
export interface PayloadLockedDocument {
285
302
id : string ;
286
303
document ?:
304
+ | ( {
305
+ relationTo : "media" ;
306
+ value : string | Media ;
307
+ } | null )
287
308
| ( {
288
309
relationTo : "pages" ;
289
310
value : string | Page ;
290
311
} | null )
291
312
| ( {
292
- relationTo : "media " ;
293
- value : string | Media ;
313
+ relationTo : "posts " ;
314
+ value : string | Post ;
294
315
} | null )
295
316
| ( {
296
317
relationTo : "users" ;
@@ -338,51 +359,13 @@ export interface PayloadMigration {
338
359
updatedAt : string ;
339
360
createdAt : string ;
340
361
}
341
- /**
342
- * This interface was referenced by `Config`'s JSON-Schema
343
- * via the `definition` "pages_select".
344
- */
345
- export interface PagesSelect < T extends boolean = true > {
346
- title ?: T ;
347
- fullTitle ?: T ;
348
- slug ?: T ;
349
- blocks ?:
350
- | T
351
- | {
352
- test ?:
353
- | T
354
- | {
355
- title ?: T ;
356
- content ?: T ;
357
- id ?: T ;
358
- blockName ?: T ;
359
- } ;
360
- } ;
361
- parent ?: T ;
362
- breadcrumbs ?:
363
- | T
364
- | {
365
- doc ?: T ;
366
- url ?: T ;
367
- label ?: T ;
368
- id ?: T ;
369
- } ;
370
- meta ?:
371
- | T
372
- | {
373
- title ?: T ;
374
- description ?: T ;
375
- } ;
376
- updatedAt ?: T ;
377
- createdAt ?: T ;
378
- _status ?: T ;
379
- }
380
362
/**
381
363
* This interface was referenced by `Config`'s JSON-Schema
382
364
* via the `definition` "media_select".
383
365
*/
384
366
export interface MediaSelect < T extends boolean = true > {
385
367
alt ?: T ;
368
+ createdBy ?: T ;
386
369
updatedAt ?: T ;
387
370
createdAt ?: T ;
388
371
url ?: T ;
@@ -469,13 +452,65 @@ export interface MediaSelect<T extends boolean = true> {
469
452
} ;
470
453
} ;
471
454
}
455
+ /**
456
+ * This interface was referenced by `Config`'s JSON-Schema
457
+ * via the `definition` "pages_select".
458
+ */
459
+ export interface PagesSelect < T extends boolean = true > {
460
+ title ?: T ;
461
+ fullTitle ?: T ;
462
+ slug ?: T ;
463
+ blocks ?:
464
+ | T
465
+ | {
466
+ test ?:
467
+ | T
468
+ | {
469
+ title ?: T ;
470
+ content ?: T ;
471
+ id ?: T ;
472
+ blockName ?: T ;
473
+ } ;
474
+ } ;
475
+ parent ?: T ;
476
+ breadcrumbs ?:
477
+ | T
478
+ | {
479
+ doc ?: T ;
480
+ url ?: T ;
481
+ label ?: T ;
482
+ id ?: T ;
483
+ } ;
484
+ meta ?:
485
+ | T
486
+ | {
487
+ title ?: T ;
488
+ description ?: T ;
489
+ } ;
490
+ updatedAt ?: T ;
491
+ createdAt ?: T ;
492
+ _status ?: T ;
493
+ }
494
+ /**
495
+ * This interface was referenced by `Config`'s JSON-Schema
496
+ * via the `definition` "posts_select".
497
+ */
498
+ export interface PostsSelect < T extends boolean = true > {
499
+ title ?: T ;
500
+ slug ?: T ;
501
+ createdBy ?: T ;
502
+ updatedAt ?: T ;
503
+ createdAt ?: T ;
504
+ _status ?: T ;
505
+ }
472
506
/**
473
507
* This interface was referenced by `Config`'s JSON-Schema
474
508
* via the `definition` "users_select".
475
509
*/
476
510
export interface UsersSelect < T extends boolean = true > {
477
511
firstName ?: T ;
478
512
lastName ?: T ;
513
+ role ?: T ;
479
514
updatedAt ?: T ;
480
515
createdAt ?: T ;
481
516
email ?: T ;
0 commit comments