@@ -11,6 +11,7 @@ export interface Config {
11
11
users : UserAuthOperations ;
12
12
} ;
13
13
collections : {
14
+ users : User ;
14
15
posts : Post ;
15
16
categories : Category ;
16
17
'hidden-posts' : HiddenPost ;
@@ -28,12 +29,14 @@ export interface Config {
28
29
'depth-joins-1' : DepthJoins1 ;
29
30
'depth-joins-2' : DepthJoins2 ;
30
31
'depth-joins-3' : DepthJoins3 ;
31
- users : User ;
32
32
'payload-locked-documents' : PayloadLockedDocument ;
33
33
'payload-preferences' : PayloadPreference ;
34
34
'payload-migrations' : PayloadMigration ;
35
35
} ;
36
36
collectionsJoins : {
37
+ users : {
38
+ posts : 'posts' ;
39
+ } ;
37
40
categories : {
38
41
relatedPosts : 'posts' ;
39
42
hasManyPosts : 'posts' ;
@@ -78,6 +81,7 @@ export interface Config {
78
81
} ;
79
82
} ;
80
83
collectionsSelect : {
84
+ users : UsersSelect < false > | UsersSelect < true > ;
81
85
posts : PostsSelect < false > | PostsSelect < true > ;
82
86
categories : CategoriesSelect < false > | CategoriesSelect < true > ;
83
87
'hidden-posts' : HiddenPostsSelect < false > | HiddenPostsSelect < true > ;
@@ -95,7 +99,6 @@ export interface Config {
95
99
'depth-joins-1' : DepthJoins1Select < false > | DepthJoins1Select < true > ;
96
100
'depth-joins-2' : DepthJoins2Select < false > | DepthJoins2Select < true > ;
97
101
'depth-joins-3' : DepthJoins3Select < false > | DepthJoins3Select < true > ;
98
- users : UsersSelect < false > | UsersSelect < true > ;
99
102
'payload-locked-documents' : PayloadLockedDocumentsSelect < false > | PayloadLockedDocumentsSelect < true > ;
100
103
'payload-preferences' : PayloadPreferencesSelect < false > | PayloadPreferencesSelect < true > ;
101
104
'payload-migrations' : PayloadMigrationsSelect < false > | PayloadMigrationsSelect < true > ;
@@ -132,13 +135,35 @@ export interface UserAuthOperations {
132
135
password : string ;
133
136
} ;
134
137
}
138
+ /**
139
+ * This interface was referenced by `Config`'s JSON-Schema
140
+ * via the `definition` "users".
141
+ */
142
+ export interface User {
143
+ id : string ;
144
+ posts ?: {
145
+ docs ?: ( string | Post ) [ ] | null ;
146
+ hasNextPage ?: boolean | null ;
147
+ } | null ;
148
+ updatedAt : string ;
149
+ createdAt : string ;
150
+ email : string ;
151
+ resetPasswordToken ?: string | null ;
152
+ resetPasswordExpiration ?: string | null ;
153
+ salt ?: string | null ;
154
+ hash ?: string | null ;
155
+ loginAttempts ?: number | null ;
156
+ lockUntil ?: string | null ;
157
+ password ?: string | null ;
158
+ }
135
159
/**
136
160
* This interface was referenced by `Config`'s JSON-Schema
137
161
* via the `definition` "posts".
138
162
*/
139
163
export interface Post {
140
164
id : string ;
141
165
title ?: string | null ;
166
+ author ?: ( string | null ) | User ;
142
167
/**
143
168
* Hides posts for the `filtered` join field in categories
144
169
*/
@@ -335,23 +360,6 @@ export interface Singular {
335
360
updatedAt : string ;
336
361
createdAt : string ;
337
362
}
338
- /**
339
- * This interface was referenced by `Config`'s JSON-Schema
340
- * via the `definition` "users".
341
- */
342
- export interface User {
343
- id : string ;
344
- updatedAt : string ;
345
- createdAt : string ;
346
- email : string ;
347
- resetPasswordToken ?: string | null ;
348
- resetPasswordExpiration ?: string | null ;
349
- salt ?: string | null ;
350
- hash ?: string | null ;
351
- loginAttempts ?: number | null ;
352
- lockUntil ?: string | null ;
353
- password ?: string | null ;
354
- }
355
363
/**
356
364
* This interface was referenced by `Config`'s JSON-Schema
357
365
* via the `definition` "versions".
@@ -518,6 +526,10 @@ export interface DepthJoins3 {
518
526
export interface PayloadLockedDocument {
519
527
id : string ;
520
528
document ?:
529
+ | ( {
530
+ relationTo : 'users' ;
531
+ value : string | User ;
532
+ } | null )
521
533
| ( {
522
534
relationTo : 'posts' ;
523
535
value : string | Post ;
@@ -585,10 +597,6 @@ export interface PayloadLockedDocument {
585
597
| ( {
586
598
relationTo : 'depth-joins-3' ;
587
599
value : string | DepthJoins3 ;
588
- } | null )
589
- | ( {
590
- relationTo : 'users' ;
591
- value : string | User ;
592
600
} | null ) ;
593
601
globalSlug ?: string | null ;
594
602
user : {
@@ -632,12 +640,29 @@ export interface PayloadMigration {
632
640
updatedAt : string ;
633
641
createdAt : string ;
634
642
}
643
+ /**
644
+ * This interface was referenced by `Config`'s JSON-Schema
645
+ * via the `definition` "users_select".
646
+ */
647
+ export interface UsersSelect < T extends boolean = true > {
648
+ posts ?: T ;
649
+ updatedAt ?: T ;
650
+ createdAt ?: T ;
651
+ email ?: T ;
652
+ resetPasswordToken ?: T ;
653
+ resetPasswordExpiration ?: T ;
654
+ salt ?: T ;
655
+ hash ?: T ;
656
+ loginAttempts ?: T ;
657
+ lockUntil ?: T ;
658
+ }
635
659
/**
636
660
* This interface was referenced by `Config`'s JSON-Schema
637
661
* via the `definition` "posts_select".
638
662
*/
639
663
export interface PostsSelect < T extends boolean = true > {
640
664
title ?: T ;
665
+ author ?: T ;
641
666
isFiltered ?: T ;
642
667
restrictedField ?: T ;
643
668
upload ?: T ;
@@ -868,21 +893,6 @@ export interface DepthJoins3Select<T extends boolean = true> {
868
893
updatedAt ?: T ;
869
894
createdAt ?: T ;
870
895
}
871
- /**
872
- * This interface was referenced by `Config`'s JSON-Schema
873
- * via the `definition` "users_select".
874
- */
875
- export interface UsersSelect < T extends boolean = true > {
876
- updatedAt ?: T ;
877
- createdAt ?: T ;
878
- email ?: T ;
879
- resetPasswordToken ?: T ;
880
- resetPasswordExpiration ?: T ;
881
- salt ?: T ;
882
- hash ?: T ;
883
- loginAttempts ?: T ;
884
- lockUntil ?: T ;
885
- }
886
896
/**
887
897
* This interface was referenced by `Config`'s JSON-Schema
888
898
* via the `definition` "payload-locked-documents_select".
0 commit comments