|
|
|
|
@@ -11,6 +11,7 @@ export interface Config {
|
|
|
|
|
users: UserAuthOperations;
|
|
|
|
|
};
|
|
|
|
|
collections: {
|
|
|
|
|
users: User;
|
|
|
|
|
posts: Post;
|
|
|
|
|
categories: Category;
|
|
|
|
|
'hidden-posts': HiddenPost;
|
|
|
|
|
@@ -28,12 +29,14 @@ export interface Config {
|
|
|
|
|
'depth-joins-1': DepthJoins1;
|
|
|
|
|
'depth-joins-2': DepthJoins2;
|
|
|
|
|
'depth-joins-3': DepthJoins3;
|
|
|
|
|
users: User;
|
|
|
|
|
'payload-locked-documents': PayloadLockedDocument;
|
|
|
|
|
'payload-preferences': PayloadPreference;
|
|
|
|
|
'payload-migrations': PayloadMigration;
|
|
|
|
|
};
|
|
|
|
|
collectionsJoins: {
|
|
|
|
|
users: {
|
|
|
|
|
posts: 'posts';
|
|
|
|
|
};
|
|
|
|
|
categories: {
|
|
|
|
|
relatedPosts: 'posts';
|
|
|
|
|
hasManyPosts: 'posts';
|
|
|
|
|
@@ -78,6 +81,7 @@ export interface Config {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
collectionsSelect: {
|
|
|
|
|
users: UsersSelect<false> | UsersSelect<true>;
|
|
|
|
|
posts: PostsSelect<false> | PostsSelect<true>;
|
|
|
|
|
categories: CategoriesSelect<false> | CategoriesSelect<true>;
|
|
|
|
|
'hidden-posts': HiddenPostsSelect<false> | HiddenPostsSelect<true>;
|
|
|
|
|
@@ -95,7 +99,6 @@ export interface Config {
|
|
|
|
|
'depth-joins-1': DepthJoins1Select<false> | DepthJoins1Select<true>;
|
|
|
|
|
'depth-joins-2': DepthJoins2Select<false> | DepthJoins2Select<true>;
|
|
|
|
|
'depth-joins-3': DepthJoins3Select<false> | DepthJoins3Select<true>;
|
|
|
|
|
users: UsersSelect<false> | UsersSelect<true>;
|
|
|
|
|
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
|
|
|
|
|
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
|
|
|
|
|
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
|
|
|
|
|
@@ -132,6 +135,27 @@ export interface UserAuthOperations {
|
|
|
|
|
password: string;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "users".
|
|
|
|
|
*/
|
|
|
|
|
export interface User {
|
|
|
|
|
id: string;
|
|
|
|
|
posts?: {
|
|
|
|
|
docs?: (string | Post)[] | null;
|
|
|
|
|
hasNextPage?: boolean | null;
|
|
|
|
|
} | null;
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
email: string;
|
|
|
|
|
resetPasswordToken?: string | null;
|
|
|
|
|
resetPasswordExpiration?: string | null;
|
|
|
|
|
salt?: string | null;
|
|
|
|
|
hash?: string | null;
|
|
|
|
|
loginAttempts?: number | null;
|
|
|
|
|
lockUntil?: string | null;
|
|
|
|
|
password?: string | null;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "posts".
|
|
|
|
|
@@ -139,6 +163,7 @@ export interface UserAuthOperations {
|
|
|
|
|
export interface Post {
|
|
|
|
|
id: string;
|
|
|
|
|
title?: string | null;
|
|
|
|
|
author?: (string | null) | User;
|
|
|
|
|
/**
|
|
|
|
|
* Hides posts for the `filtered` join field in categories
|
|
|
|
|
*/
|
|
|
|
|
@@ -335,23 +360,6 @@ export interface Singular {
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "users".
|
|
|
|
|
*/
|
|
|
|
|
export interface User {
|
|
|
|
|
id: string;
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
email: string;
|
|
|
|
|
resetPasswordToken?: string | null;
|
|
|
|
|
resetPasswordExpiration?: string | null;
|
|
|
|
|
salt?: string | null;
|
|
|
|
|
hash?: string | null;
|
|
|
|
|
loginAttempts?: number | null;
|
|
|
|
|
lockUntil?: string | null;
|
|
|
|
|
password?: string | null;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "versions".
|
|
|
|
|
@@ -518,6 +526,10 @@ export interface DepthJoins3 {
|
|
|
|
|
export interface PayloadLockedDocument {
|
|
|
|
|
id: string;
|
|
|
|
|
document?:
|
|
|
|
|
| ({
|
|
|
|
|
relationTo: 'users';
|
|
|
|
|
value: string | User;
|
|
|
|
|
} | null)
|
|
|
|
|
| ({
|
|
|
|
|
relationTo: 'posts';
|
|
|
|
|
value: string | Post;
|
|
|
|
|
@@ -585,10 +597,6 @@ export interface PayloadLockedDocument {
|
|
|
|
|
| ({
|
|
|
|
|
relationTo: 'depth-joins-3';
|
|
|
|
|
value: string | DepthJoins3;
|
|
|
|
|
} | null)
|
|
|
|
|
| ({
|
|
|
|
|
relationTo: 'users';
|
|
|
|
|
value: string | User;
|
|
|
|
|
} | null);
|
|
|
|
|
globalSlug?: string | null;
|
|
|
|
|
user: {
|
|
|
|
|
@@ -632,12 +640,29 @@ export interface PayloadMigration {
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "users_select".
|
|
|
|
|
*/
|
|
|
|
|
export interface UsersSelect<T extends boolean = true> {
|
|
|
|
|
posts?: T;
|
|
|
|
|
updatedAt?: T;
|
|
|
|
|
createdAt?: T;
|
|
|
|
|
email?: T;
|
|
|
|
|
resetPasswordToken?: T;
|
|
|
|
|
resetPasswordExpiration?: T;
|
|
|
|
|
salt?: T;
|
|
|
|
|
hash?: T;
|
|
|
|
|
loginAttempts?: T;
|
|
|
|
|
lockUntil?: T;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "posts_select".
|
|
|
|
|
*/
|
|
|
|
|
export interface PostsSelect<T extends boolean = true> {
|
|
|
|
|
title?: T;
|
|
|
|
|
author?: T;
|
|
|
|
|
isFiltered?: T;
|
|
|
|
|
restrictedField?: T;
|
|
|
|
|
upload?: T;
|
|
|
|
|
@@ -868,21 +893,6 @@ export interface DepthJoins3Select<T extends boolean = true> {
|
|
|
|
|
updatedAt?: T;
|
|
|
|
|
createdAt?: T;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "users_select".
|
|
|
|
|
*/
|
|
|
|
|
export interface UsersSelect<T extends boolean = true> {
|
|
|
|
|
updatedAt?: T;
|
|
|
|
|
createdAt?: T;
|
|
|
|
|
email?: T;
|
|
|
|
|
resetPasswordToken?: T;
|
|
|
|
|
resetPasswordExpiration?: T;
|
|
|
|
|
salt?: T;
|
|
|
|
|
hash?: T;
|
|
|
|
|
loginAttempts?: T;
|
|
|
|
|
lockUntil?: T;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "payload-locked-documents_select".
|
|
|
|
|
|