Files
payload/test/fields-relationship/payload-types.ts
2023-09-01 14:45:41 -04:00

181 lines
4.0 KiB
TypeScript

/* tslint: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 {}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "fields-relationship".
*/
export interface FieldsRelationship {
id: string
relationship?: string | RelationOne
relationshipHasMany?: string[] | RelationOne[]
relationshipMultiple?:
| {
value: string | RelationOne
relationTo: 'relation-one'
}
| {
value: string | RelationTwo
relationTo: 'relation-two'
}
relationshipHasManyMultiple?:
| (
| {
value: string
relationTo: 'relation-one'
}
| {
value: string
relationTo: 'relation-two'
}
)[]
| (
| {
value: RelationOne
relationTo: 'relation-one'
}
| {
value: RelationTwo
relationTo: 'relation-two'
}
)[]
relationshipRestricted?: string | RelationRestricted
relationshipWithTitle?: string | RelationWithTitle
relationshipFiltered?: string | RelationOne
relationshipManyFiltered?:
| (
| {
value: string
relationTo: 'relation-with-title'
}
| {
value: string
relationTo: 'relation-one'
}
)[]
| (
| {
value: RelationWithTitle
relationTo: 'relation-with-title'
}
| {
value: RelationOne
relationTo: 'relation-one'
}
)[]
filter?: string
createdAt: string
updatedAt: string
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-one".
*/
export interface RelationOne {
id: string
name?: string
createdAt: string
updatedAt: string
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-two".
*/
export interface RelationTwo {
id: string
name?: string
createdAt: string
updatedAt: string
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-restricted".
*/
export interface RelationRestricted {
id: string
name?: string
createdAt: string
updatedAt: string
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-with-title".
*/
export interface RelationWithTitle {
id: string
name?: string
createdAt: string
updatedAt: string
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-updated-externally".
*/
export interface RelationUpdatedExternally {
id: string
relationPrePopulate?: string | Collection1
relationHasMany?: string[] | Collection1[]
relationToManyHasMany?:
| (
| {
value: string
relationTo: 'collection-1'
}
| {
value: string
relationTo: 'collection-2'
}
)[]
| (
| {
value: Collection1
relationTo: 'collection-1'
}
| {
value: Collection2
relationTo: 'collection-2'
}
)[]
createdAt: string
updatedAt: string
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "collection-1".
*/
export interface Collection1 {
id: string
name?: string
createdAt: string
updatedAt: string
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "collection-2".
*/
export interface Collection2 {
id: string
name?: string
createdAt: string
updatedAt: string
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users".
*/
export interface User {
id: string
email?: string
resetPasswordToken?: string
resetPasswordExpiration?: string
loginAttempts?: number
lockUntil?: string
createdAt: string
updatedAt: string
}