Field paths within hooks are not correct. For example, an unnamed tab containing a group field and nested text field should have the path: - `myGroupField.myTextField` However, within hooks that path is formatted as: - `_index-1.myGroupField.myTextField` The leading index shown above should not exist, as this field is considered top-level since it is located within an unnamed tab. This discrepancy is only evident through the APIs themselves, such as when creating a request with invalid data and reading the validation errors in the response. Form state contains proper field paths, which is ultimately why this issue was never caught. This is because within the admin panel we merge the API response with the current form state, obscuring the underlying issue. This becomes especially obvious in #10580, where we no longer initialize validation errors within form state until the form has been submitted, and instead rely solely on the API response for the initial error state. Here's comprehensive example of how field paths _should_ be formatted: ``` { // ... fields: [ { // path: 'topLevelNamedField' // schemaPath: 'topLevelNamedField' // indexPath: '' name: 'topLevelNamedField', type: 'text', }, { // path: 'array' // schemaPath: 'array' // indexPath: '' name: 'array', type: 'array', fields: [ { // path: 'array.[n].fieldWithinArray' // schemaPath: 'array.fieldWithinArray' // indexPath: '' name: 'fieldWithinArray', type: 'text', }, { // path: 'array.[n].nestedArray' // schemaPath: 'array.nestedArray' // indexPath: '' name: 'nestedArray', type: 'array', fields: [ { // path: 'array.[n].nestedArray.[n].fieldWithinNestedArray' // schemaPath: 'array.nestedArray.fieldWithinNestedArray' // indexPath: '' name: 'fieldWithinNestedArray', type: 'text', }, ], }, { // path: 'array.[n]._index-2' // schemaPath: 'array._index-2' // indexPath: '2' type: 'row', fields: [ { // path: 'array.[n].fieldWithinRowWithinArray' // schemaPath: 'array._index-2.fieldWithinRowWithinArray' // indexPath: '' name: 'fieldWithinRowWithinArray', type: 'text', }, ], }, ], }, { // path: '_index-2' // schemaPath: '_index-2' // indexPath: '2' type: 'row', fields: [ { // path: 'fieldWithinRow' // schemaPath: '_index-2.fieldWithinRow' // indexPath: '' name: 'fieldWithinRow', type: 'text', }, ], }, { // path: '_index-3' // schemaPath: '_index-3' // indexPath: '3' type: 'tabs', tabs: [ { // path: '_index-3-0' // schemaPath: '_index-3-0' // indexPath: '3-0' label: 'Unnamed Tab', fields: [ { // path: 'fieldWithinUnnamedTab' // schemaPath: '_index-3-0.fieldWithinUnnamedTab' // indexPath: '' name: 'fieldWithinUnnamedTab', type: 'text', }, { // path: '_index-3-0-1' // schemaPath: '_index-3-0-1' // indexPath: '3-0-1' type: 'tabs', tabs: [ { // path: '_index-3-0-1-0' // schemaPath: '_index-3-0-1-0' // indexPath: '3-0-1-0' label: 'Nested Unnamed Tab', fields: [ { // path: 'fieldWithinNestedUnnamedTab' // schemaPath: '_index-3-0-1-0.fieldWithinNestedUnnamedTab' // indexPath: '' name: 'fieldWithinNestedUnnamedTab', type: 'text', }, ], }, ], }, ], }, { // path: 'namedTab' // schemaPath: '_index-3.namedTab' // indexPath: '' label: 'Named Tab', name: 'namedTab', fields: [ { // path: 'namedTab.fieldWithinNamedTab' // schemaPath: '_index-3.namedTab.fieldWithinNamedTab' // indexPath: '' name: 'fieldWithinNamedTab', type: 'text', }, ], }, ], }, ] } ```
778 lines
17 KiB
TypeScript
778 lines
17 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* This file was automatically generated by Payload.
|
|
* DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
|
|
* and re-run `payload generate:types` to regenerate this file.
|
|
*/
|
|
|
|
export interface Config {
|
|
auth: {
|
|
users: UserAuthOperations;
|
|
};
|
|
collections: {
|
|
posts: Post;
|
|
'error-on-unnamed-fields': ErrorOnUnnamedField;
|
|
'default-values': DefaultValue;
|
|
'relation-a': RelationA;
|
|
'relation-b': RelationB;
|
|
'pg-migrations': PgMigration;
|
|
'custom-schema': CustomSchema;
|
|
places: Place;
|
|
'fields-persistance': FieldsPersistance;
|
|
'custom-ids': CustomId;
|
|
'fake-custom-ids': FakeCustomId;
|
|
'relationships-migration': RelationshipsMigration;
|
|
users: User;
|
|
'payload-locked-documents': PayloadLockedDocument;
|
|
'payload-preferences': PayloadPreference;
|
|
'payload-migrations': PayloadMigration;
|
|
};
|
|
collectionsJoins: {};
|
|
collectionsSelect: {
|
|
posts: PostsSelect<false> | PostsSelect<true>;
|
|
'error-on-unnamed-fields': ErrorOnUnnamedFieldsSelect<false> | ErrorOnUnnamedFieldsSelect<true>;
|
|
'default-values': DefaultValuesSelect<false> | DefaultValuesSelect<true>;
|
|
'relation-a': RelationASelect<false> | RelationASelect<true>;
|
|
'relation-b': RelationBSelect<false> | RelationBSelect<true>;
|
|
'pg-migrations': PgMigrationsSelect<false> | PgMigrationsSelect<true>;
|
|
'custom-schema': CustomSchemaSelect<false> | CustomSchemaSelect<true>;
|
|
places: PlacesSelect<false> | PlacesSelect<true>;
|
|
'fields-persistance': FieldsPersistanceSelect<false> | FieldsPersistanceSelect<true>;
|
|
'custom-ids': CustomIdsSelect<false> | CustomIdsSelect<true>;
|
|
'fake-custom-ids': FakeCustomIdsSelect<false> | FakeCustomIdsSelect<true>;
|
|
'relationships-migration': RelationshipsMigrationSelect<false> | RelationshipsMigrationSelect<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>;
|
|
};
|
|
db: {
|
|
defaultIDType: string;
|
|
};
|
|
globals: {
|
|
global: Global;
|
|
};
|
|
globalsSelect: {
|
|
global: GlobalSelect<false> | GlobalSelect<true>;
|
|
};
|
|
locale: 'en' | 'es';
|
|
user: User & {
|
|
collection: 'users';
|
|
};
|
|
jobs: {
|
|
tasks: unknown;
|
|
workflows: unknown;
|
|
};
|
|
}
|
|
export interface UserAuthOperations {
|
|
forgotPassword: {
|
|
email: string;
|
|
password: string;
|
|
};
|
|
login: {
|
|
email: string;
|
|
password: string;
|
|
};
|
|
registerFirstUser: {
|
|
email: string;
|
|
password: string;
|
|
};
|
|
unlock: {
|
|
email: string;
|
|
password: string;
|
|
};
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "posts".
|
|
*/
|
|
export interface Post {
|
|
id: string;
|
|
title: string;
|
|
D1?: {
|
|
D2?: {
|
|
D3?: {
|
|
D4?: string | null;
|
|
};
|
|
};
|
|
};
|
|
hasTransaction?: boolean | null;
|
|
throwAfterChange?: boolean | null;
|
|
arrayWithIDs?:
|
|
| {
|
|
text?: string | null;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
blocksWithIDs?:
|
|
| {
|
|
text?: string | null;
|
|
id?: string | null;
|
|
blockName?: string | null;
|
|
blockType: 'block';
|
|
}[]
|
|
| null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "error-on-unnamed-fields".
|
|
*/
|
|
export interface ErrorOnUnnamedField {
|
|
id: string;
|
|
groupWithinUnnamedTab: {
|
|
text: string;
|
|
};
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "default-values".
|
|
*/
|
|
export interface DefaultValue {
|
|
id: string;
|
|
title?: string | null;
|
|
defaultValue?: string | null;
|
|
array?:
|
|
| {
|
|
defaultValue?: string | null;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
group?: {
|
|
defaultValue?: string | null;
|
|
};
|
|
select?: ('option0' | 'option1' | 'default') | null;
|
|
/**
|
|
* @minItems 2
|
|
* @maxItems 2
|
|
*/
|
|
point?: [number, number] | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "relation-a".
|
|
*/
|
|
export interface RelationA {
|
|
id: string;
|
|
title?: string | null;
|
|
richText?: {
|
|
root: {
|
|
type: string;
|
|
children: {
|
|
type: string;
|
|
version: number;
|
|
[k: string]: unknown;
|
|
}[];
|
|
direction: ('ltr' | 'rtl') | null;
|
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
|
indent: number;
|
|
version: number;
|
|
};
|
|
[k: string]: unknown;
|
|
} | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "relation-b".
|
|
*/
|
|
export interface RelationB {
|
|
id: string;
|
|
title?: string | null;
|
|
relationship?: (string | null) | RelationA;
|
|
richText?: {
|
|
root: {
|
|
type: string;
|
|
children: {
|
|
type: string;
|
|
version: number;
|
|
[k: string]: unknown;
|
|
}[];
|
|
direction: ('ltr' | 'rtl') | null;
|
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
|
indent: number;
|
|
version: number;
|
|
};
|
|
[k: string]: unknown;
|
|
} | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "pg-migrations".
|
|
*/
|
|
export interface PgMigration {
|
|
id: string;
|
|
relation1?: (string | null) | RelationA;
|
|
myArray?:
|
|
| {
|
|
relation2?: (string | null) | RelationB;
|
|
mySubArray?:
|
|
| {
|
|
relation3?: (string | null) | RelationB;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
myGroup?: {
|
|
relation4?: (string | null) | RelationB;
|
|
};
|
|
myBlocks?:
|
|
| {
|
|
relation5?: (string | null) | RelationA;
|
|
relation6?: (string | null) | RelationB;
|
|
id?: string | null;
|
|
blockName?: string | null;
|
|
blockType: 'myBlock';
|
|
}[]
|
|
| null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "custom-schema".
|
|
*/
|
|
export interface CustomSchema {
|
|
id: string;
|
|
text?: string | null;
|
|
localizedText?: string | null;
|
|
relationship?: (string | RelationA)[] | null;
|
|
select?: ('a' | 'b' | 'c')[] | null;
|
|
radio?: ('a' | 'b' | 'c') | null;
|
|
array?:
|
|
| {
|
|
text?: string | null;
|
|
localizedText?: string | null;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
blocks?:
|
|
| {
|
|
text?: string | null;
|
|
localizedText?: string | null;
|
|
id?: string | null;
|
|
blockName?: string | null;
|
|
blockType: 'block';
|
|
}[]
|
|
| null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
_status?: ('draft' | 'published') | null;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "places".
|
|
*/
|
|
export interface Place {
|
|
id: string;
|
|
country?: string | null;
|
|
city?: string | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "fields-persistance".
|
|
*/
|
|
export interface FieldsPersistance {
|
|
id: string;
|
|
text?: string | null;
|
|
textHooked?: string | null;
|
|
array?:
|
|
| {
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
textWithinRow?: string | null;
|
|
textWithinCollapsible?: string | null;
|
|
textWithinTabs?: string | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "custom-ids".
|
|
*/
|
|
export interface CustomId {
|
|
id: string;
|
|
title?: string | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
_status?: ('draft' | 'published') | null;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "fake-custom-ids".
|
|
*/
|
|
export interface FakeCustomId {
|
|
id: string;
|
|
title?: string | null;
|
|
group?: {
|
|
id?: string | null;
|
|
};
|
|
myTab?: {
|
|
id?: string | null;
|
|
};
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "relationships-migration".
|
|
*/
|
|
export interface RelationshipsMigration {
|
|
id: string;
|
|
relationship?: (string | null) | DefaultValue;
|
|
relationship_2?: {
|
|
relationTo: 'default-values';
|
|
value: string | DefaultValue;
|
|
} | null;
|
|
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` "payload-locked-documents".
|
|
*/
|
|
export interface PayloadLockedDocument {
|
|
id: string;
|
|
document?:
|
|
| ({
|
|
relationTo: 'posts';
|
|
value: string | Post;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'error-on-unnamed-fields';
|
|
value: string | ErrorOnUnnamedField;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'default-values';
|
|
value: string | DefaultValue;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'relation-a';
|
|
value: string | RelationA;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'relation-b';
|
|
value: string | RelationB;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'pg-migrations';
|
|
value: string | PgMigration;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'custom-schema';
|
|
value: string | CustomSchema;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'places';
|
|
value: string | Place;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'fields-persistance';
|
|
value: string | FieldsPersistance;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'custom-ids';
|
|
value: string | CustomId;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'fake-custom-ids';
|
|
value: string | FakeCustomId;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'relationships-migration';
|
|
value: string | RelationshipsMigration;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'users';
|
|
value: string | User;
|
|
} | null);
|
|
globalSlug?: string | null;
|
|
user: {
|
|
relationTo: 'users';
|
|
value: string | User;
|
|
};
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-preferences".
|
|
*/
|
|
export interface PayloadPreference {
|
|
id: string;
|
|
user: {
|
|
relationTo: 'users';
|
|
value: string | User;
|
|
};
|
|
key?: string | null;
|
|
value?:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-migrations".
|
|
*/
|
|
export interface PayloadMigration {
|
|
id: string;
|
|
name?: string | null;
|
|
batch?: number | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "posts_select".
|
|
*/
|
|
export interface PostsSelect<T extends boolean = true> {
|
|
title?: T;
|
|
D1?:
|
|
| T
|
|
| {
|
|
D2?:
|
|
| T
|
|
| {
|
|
D3?:
|
|
| T
|
|
| {
|
|
D4?: T;
|
|
};
|
|
};
|
|
};
|
|
hasTransaction?: T;
|
|
throwAfterChange?: T;
|
|
arrayWithIDs?:
|
|
| T
|
|
| {
|
|
text?: T;
|
|
id?: T;
|
|
};
|
|
blocksWithIDs?:
|
|
| T
|
|
| {
|
|
block?:
|
|
| T
|
|
| {
|
|
text?: T;
|
|
id?: T;
|
|
blockName?: T;
|
|
};
|
|
};
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "error-on-unnamed-fields_select".
|
|
*/
|
|
export interface ErrorOnUnnamedFieldsSelect<T extends boolean = true> {
|
|
groupWithinUnnamedTab?:
|
|
| T
|
|
| {
|
|
text?: T;
|
|
};
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "default-values_select".
|
|
*/
|
|
export interface DefaultValuesSelect<T extends boolean = true> {
|
|
title?: T;
|
|
defaultValue?: T;
|
|
array?:
|
|
| T
|
|
| {
|
|
defaultValue?: T;
|
|
id?: T;
|
|
};
|
|
group?:
|
|
| T
|
|
| {
|
|
defaultValue?: T;
|
|
};
|
|
select?: T;
|
|
point?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "relation-a_select".
|
|
*/
|
|
export interface RelationASelect<T extends boolean = true> {
|
|
title?: T;
|
|
richText?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "relation-b_select".
|
|
*/
|
|
export interface RelationBSelect<T extends boolean = true> {
|
|
title?: T;
|
|
relationship?: T;
|
|
richText?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "pg-migrations_select".
|
|
*/
|
|
export interface PgMigrationsSelect<T extends boolean = true> {
|
|
relation1?: T;
|
|
myArray?:
|
|
| T
|
|
| {
|
|
relation2?: T;
|
|
mySubArray?:
|
|
| T
|
|
| {
|
|
relation3?: T;
|
|
id?: T;
|
|
};
|
|
id?: T;
|
|
};
|
|
myGroup?:
|
|
| T
|
|
| {
|
|
relation4?: T;
|
|
};
|
|
myBlocks?:
|
|
| T
|
|
| {
|
|
myBlock?:
|
|
| T
|
|
| {
|
|
relation5?: T;
|
|
relation6?: T;
|
|
id?: T;
|
|
blockName?: T;
|
|
};
|
|
};
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "custom-schema_select".
|
|
*/
|
|
export interface CustomSchemaSelect<T extends boolean = true> {
|
|
text?: T;
|
|
localizedText?: T;
|
|
relationship?: T;
|
|
select?: T;
|
|
radio?: T;
|
|
array?:
|
|
| T
|
|
| {
|
|
text?: T;
|
|
localizedText?: T;
|
|
id?: T;
|
|
};
|
|
blocks?:
|
|
| T
|
|
| {
|
|
block?:
|
|
| T
|
|
| {
|
|
text?: T;
|
|
localizedText?: T;
|
|
id?: T;
|
|
blockName?: T;
|
|
};
|
|
};
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
_status?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "places_select".
|
|
*/
|
|
export interface PlacesSelect<T extends boolean = true> {
|
|
country?: T;
|
|
city?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "fields-persistance_select".
|
|
*/
|
|
export interface FieldsPersistanceSelect<T extends boolean = true> {
|
|
text?: T;
|
|
textHooked?: T;
|
|
array?:
|
|
| T
|
|
| {
|
|
id?: T;
|
|
};
|
|
textWithinRow?: T;
|
|
textWithinCollapsible?: T;
|
|
textWithinTabs?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "custom-ids_select".
|
|
*/
|
|
export interface CustomIdsSelect<T extends boolean = true> {
|
|
id?: T;
|
|
title?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
_status?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "fake-custom-ids_select".
|
|
*/
|
|
export interface FakeCustomIdsSelect<T extends boolean = true> {
|
|
title?: T;
|
|
group?:
|
|
| T
|
|
| {
|
|
id?: T;
|
|
};
|
|
myTab?:
|
|
| T
|
|
| {
|
|
id?: T;
|
|
};
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "relationships-migration_select".
|
|
*/
|
|
export interface RelationshipsMigrationSelect<T extends boolean = true> {
|
|
relationship?: T;
|
|
relationship_2?: T;
|
|
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".
|
|
*/
|
|
export interface PayloadLockedDocumentsSelect<T extends boolean = true> {
|
|
document?: T;
|
|
globalSlug?: T;
|
|
user?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-preferences_select".
|
|
*/
|
|
export interface PayloadPreferencesSelect<T extends boolean = true> {
|
|
user?: T;
|
|
key?: T;
|
|
value?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-migrations_select".
|
|
*/
|
|
export interface PayloadMigrationsSelect<T extends boolean = true> {
|
|
name?: T;
|
|
batch?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "global".
|
|
*/
|
|
export interface Global {
|
|
id: string;
|
|
text?: string | null;
|
|
updatedAt?: string | null;
|
|
createdAt?: string | null;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "global_select".
|
|
*/
|
|
export interface GlobalSelect<T extends boolean = true> {
|
|
text?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
globalType?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "auth".
|
|
*/
|
|
export interface Auth {
|
|
[k: string]: unknown;
|
|
}
|
|
|
|
|
|
declare module 'payload' {
|
|
// @ts-ignore
|
|
export interface GeneratedTypes extends Config {}
|
|
} |