fix(next, payload): enable relationship & upload version tracking when localization enabled (#7508)
This commit is contained in:
@@ -24,12 +24,16 @@ export interface Config {
|
||||
videos: Video;
|
||||
podcasts: Podcast;
|
||||
'mixed-media': MixedMedia;
|
||||
'versioned-relationship-field': VersionedRelationshipField;
|
||||
users: User;
|
||||
'payload-preferences': PayloadPreference;
|
||||
'payload-migrations': PayloadMigration;
|
||||
};
|
||||
db: {
|
||||
defaultIDType: string;
|
||||
};
|
||||
globals: {};
|
||||
locale: null;
|
||||
locale: 'en';
|
||||
user: User & {
|
||||
collection: 'users';
|
||||
};
|
||||
@@ -37,15 +41,20 @@ export interface Config {
|
||||
export interface UserAuthOperations {
|
||||
forgotPassword: {
|
||||
email: string;
|
||||
password: string;
|
||||
};
|
||||
login: {
|
||||
password: string;
|
||||
email: string;
|
||||
password: string;
|
||||
};
|
||||
registerFirstUser: {
|
||||
email: string;
|
||||
password: string;
|
||||
};
|
||||
unlock: {
|
||||
email: string;
|
||||
password: string;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
@@ -252,6 +261,22 @@ export interface MixedMedia {
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "versioned-relationship-field".
|
||||
*/
|
||||
export interface VersionedRelationshipField {
|
||||
id: string;
|
||||
title: string;
|
||||
relationshipField?:
|
||||
| {
|
||||
relationTo: 'collection-1';
|
||||
value: string | Collection1;
|
||||
}[]
|
||||
| null;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
/**
|
||||
* This interface was referenced by `Config`'s JSON-Schema
|
||||
* via the `definition` "users".
|
||||
|
||||
Reference in New Issue
Block a user