payload 3.0.0-alpha.55 → 3.0.0-alpha.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/bin.js +1 -1
  2. package/dist/auth/getAccessResults.d.ts.map +1 -1
  3. package/dist/auth/getAccessResults.js +1 -2
  4. package/dist/auth/getAccessResults.js.map +1 -1
  5. package/dist/auth/operations/local/index.d.ts +1 -1
  6. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
  7. package/dist/bin/loader/clientExtensions.d.ts.map +1 -0
  8. package/dist/bin/loader/clientExtensions.js.map +1 -0
  9. package/dist/bin/loader/compile.d.ts +5 -0
  10. package/dist/bin/loader/compile.d.ts.map +1 -0
  11. package/dist/bin/loader/compile.js +27 -0
  12. package/dist/bin/loader/compile.js.map +1 -0
  13. package/dist/bin/loader/index.d.ts.map +1 -0
  14. package/dist/bin/{register → loader}/index.js +36 -17
  15. package/dist/bin/loader/index.js.map +1 -0
  16. package/dist/bin/loader/read-default-tsconfig.d.ts.map +1 -0
  17. package/dist/bin/loader/read-default-tsconfig.js.map +1 -0
  18. package/dist/collections/config/client.d.ts +32 -30
  19. package/dist/collections/config/client.d.ts.map +1 -1
  20. package/dist/collections/config/defaults.d.ts +5 -5
  21. package/dist/collections/config/types.d.ts +3 -1
  22. package/dist/collections/config/types.d.ts.map +1 -1
  23. package/dist/collections/config/types.js.map +1 -1
  24. package/dist/collections/operations/local/index.d.ts +6 -6
  25. package/dist/database/migrations/readMigrationFiles.d.ts.map +1 -1
  26. package/dist/fields/config/client.d.ts +68 -68
  27. package/dist/fields/validations.d.ts +3 -3
  28. package/dist/translations/getLocalI18n.d.ts.map +1 -1
  29. package/dist/utilities/formatLabels.d.ts +0 -2
  30. package/dist/utilities/formatLabels.d.ts.map +1 -1
  31. package/dist/utilities/isEntityHidden.d.ts.map +1 -1
  32. package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
  33. package/package.json +2 -3
  34. package/uploads.d.ts +2 -0
  35. package/uploads.js +3 -0
  36. package/dist/bin/register/clientExtensions.d.ts.map +0 -1
  37. package/dist/bin/register/clientExtensions.js.map +0 -1
  38. package/dist/bin/register/index.d.ts.map +0 -1
  39. package/dist/bin/register/index.js.map +0 -1
  40. package/dist/bin/register/read-default-tsconfig.d.ts.map +0 -1
  41. package/dist/bin/register/read-default-tsconfig.js.map +0 -1
  42. package/dist/bin/register/register.d.ts +0 -15
  43. package/dist/bin/register/register.d.ts.map +0 -1
  44. package/dist/bin/register/register.js +0 -92
  45. package/dist/bin/register/register.js.map +0 -1
  46. package/dist/config/load.d.ts +0 -6
  47. package/dist/config/load.d.ts.map +0 -1
  48. package/dist/config/load.js +0 -31
  49. package/dist/config/load.js.map +0 -1
  50. /package/dist/bin/{register → loader}/clientExtensions.d.ts +0 -0
  51. /package/dist/bin/{register → loader}/clientExtensions.js +0 -0
  52. /package/dist/bin/{register → loader}/index.d.ts +0 -0
  53. /package/dist/bin/{register → loader}/read-default-tsconfig.d.ts +0 -0
  54. /package/dist/bin/{register → loader}/read-default-tsconfig.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/collections/config/types.ts"],"sourcesContent":["import type { GraphQLInputObjectType, GraphQLNonNull, GraphQLObjectType } from 'graphql'\nimport type { DeepRequired } from 'ts-essentials'\n\nimport type {\n CustomPreviewButton,\n CustomPublishButton,\n CustomSaveButton,\n CustomSaveDraftButton,\n} from '../../admin/types.js'\nimport type { Auth, ClientUser, IncomingAuthType } from '../../auth/types.js'\nimport type {\n Access,\n EditConfig,\n Endpoint,\n EntityDescription,\n GeneratePreviewURL,\n LivePreviewConfig,\n} from '../../config/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type { GeneratedTypes } from '../../index.js'\nimport type { PayloadRequest, RequestContext } from '../../types/index.js'\nimport type { SanitizedUploadConfig, UploadConfig } from '../../uploads/types.js'\nimport type {\n IncomingCollectionVersions,\n SanitizedCollectionVersions,\n} from '../../versions/types.js'\nimport type { AfterOperationArg, AfterOperationMap } from '../operations/utils.js'\n\nexport type HookOperationType =\n | 'autosave'\n | 'create'\n | 'delete'\n | 'forgotPassword'\n | 'login'\n | 'read'\n | 'refresh'\n | 'update'\n\ntype CreateOrUpdateOperation = Extract<HookOperationType, 'create' | 'update'>\n\nexport type BeforeOperationHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n /**\n * Hook operation being performed\n */\n operation: HookOperationType\n req: PayloadRequest\n}) => any\n\nexport type BeforeValidateHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data?: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type AfterChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n previousDoc: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n query: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type AfterReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n findMany?: boolean\n query?: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type BeforeDeleteHook = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterDeleteHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterOperationHook<T extends TypeWithID = any> = (\n arg: AfterOperationArg<T>,\n) => Promise<ReturnType<AfterOperationMap<T>[keyof AfterOperationMap<T>]>>\n\nexport type AfterErrorHook = (\n err: Error,\n res: unknown,\n context: RequestContext,\n /** The collection which this hook is being run on. This is null if the AfterError hook was be added to the payload-wide config */\n collection: SanitizedCollectionConfig | null,\n) => { response: any; status: number } | void\n\nexport type BeforeLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n user: T\n}) => any\n\nexport type AfterLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n token: string\n user: T\n}) => any\n\nexport type AfterLogoutHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n}) => any\n\nexport type AfterMeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n response: unknown\n}) => any\n\nexport type AfterRefreshHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n exp: number\n req: PayloadRequest\n token: string\n}) => any\n\nexport type AfterForgotPasswordHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n}) => any\n\nexport type CollectionAdminOptions = {\n /**\n * Custom admin components\n */\n components?: {\n AfterList?: React.ComponentType<any>[]\n AfterListTable?: React.ComponentType<any>[]\n BeforeList?: React.ComponentType<any>[]\n BeforeListTable?: React.ComponentType<any>[]\n /**\n * Components within the edit view\n */\n edit?: {\n /**\n * Replaces the \"Preview\" button\n */\n PreviewButton?: CustomPreviewButton\n /**\n * Replaces the \"Publish\" button\n * + drafts must be enabled\n */\n PublishButton?: CustomPublishButton\n /**\n * Replaces the \"Save\" button\n * + drafts must be disabled\n */\n SaveButton?: CustomSaveButton\n /**\n * Replaces the \"Save Draft\" button\n * + drafts must be enabled\n * + autosave must be disabled\n */\n SaveDraftButton?: CustomSaveDraftButton\n }\n views?: {\n /**\n * Set to a React component to replace the entire \"Edit\" view, including all nested routes.\n * Set to an object to replace or modify individual nested routes, or to add new ones.\n */\n Edit?: EditConfig\n List?:\n | {\n Component?: React.ComponentType<any>\n actions?: React.ComponentType<any>[]\n }\n | React.ComponentType<any>\n }\n }\n /**\n * Default columns to show in list view\n */\n defaultColumns?: string[]\n /**\n * Custom description for collection\n */\n description?: EntityDescription\n enableRichTextLink?: boolean\n enableRichTextRelationship?: boolean\n /**\n * Place collections into a navigational group\n * */\n group?: Record<string, string> | string\n /**\n * Exclude the collection from the admin nav and routes\n */\n hidden?: ((args: { user: ClientUser }) => boolean) | boolean\n /**\n * Hide the API URL within the Edit view\n */\n hideAPIURL?: boolean\n /**\n * Additional fields to be searched via the full text search\n */\n listSearchableFields?: string[]\n /**\n * Live preview options\n */\n livePreview?: LivePreviewConfig\n pagination?: {\n defaultLimit?: number\n limits?: number[]\n }\n /**\n * Function to generate custom preview URL\n */\n preview?: GeneratePreviewURL\n /**\n * Field to use as title in Edit view and first column in List view\n */\n useAsTitle?: string\n}\n\n/** Manage all aspects of a data collection */\nexport type CollectionConfig = {\n /**\n * Access control\n */\n access?: {\n admin?: (args?: any) => Promise<boolean> | boolean\n create?: Access\n delete?: Access\n read?: Access\n readVersions?: Access\n unlock?: Access\n update?: Access\n }\n /**\n * Collection admin options\n */\n admin?: CollectionAdminOptions\n /**\n * Collection login options\n *\n * Use `true` to enable with default options\n */\n auth?: IncomingAuthType | boolean\n /** Extension point to add your custom data. */\n custom?: Record<string, any>\n /**\n * Default field to sort by in collection list view\n */\n defaultSort?: string\n /**\n * When true, do not show the \"Duplicate\" button while editing documents within this collection and prevent `duplicate` from all APIs\n */\n disableDuplicate?: boolean\n /**\n * Custom rest api endpoints, set false to disable all rest endpoints for this collection.\n */\n endpoints?: Omit<Endpoint, 'root'>[] | false\n fields: Field[]\n /**\n * GraphQL configuration\n */\n graphQL?:\n | {\n pluralName?: string\n singularName?: string\n }\n | false\n /**\n * Hooks to modify Payload functionality\n */\n hooks?: {\n afterChange?: AfterChangeHook[]\n afterDelete?: AfterDeleteHook[]\n afterError?: AfterErrorHook\n afterForgotPassword?: AfterForgotPasswordHook[]\n afterLogin?: AfterLoginHook[]\n afterLogout?: AfterLogoutHook[]\n afterMe?: AfterMeHook[]\n afterOperation?: AfterOperationHook[]\n afterRead?: AfterReadHook[]\n afterRefresh?: AfterRefreshHook[]\n beforeChange?: BeforeChangeHook[]\n beforeDelete?: BeforeDeleteHook[]\n beforeLogin?: BeforeLoginHook[]\n beforeOperation?: BeforeOperationHook[]\n beforeRead?: BeforeReadHook[]\n beforeValidate?: BeforeValidateHook[]\n }\n /**\n * Label configuration\n */\n labels?: {\n plural?: Record<string, string> | string\n singular?: Record<string, string> | string\n }\n slug: string\n /**\n * Add `createdAt` and `updatedAt` fields\n *\n * @default true\n */\n timestamps?: boolean\n /**\n * Options used in typescript generation\n */\n typescript?: {\n /**\n * Typescript generation name given to the interface type\n */\n interface?: string\n }\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable uploads\n */\n upload?: UploadConfig | boolean\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable versioning\n */\n versions?: IncomingCollectionVersions | boolean\n}\n\nexport interface SanitizedCollectionConfig\n extends Omit<\n DeepRequired<CollectionConfig>,\n 'auth' | 'endpoints' | 'fields' | 'upload' | 'versions'\n > {\n auth: Auth\n endpoints: Endpoint[] | false\n fields: Field[]\n upload: SanitizedUploadConfig\n versions: SanitizedCollectionVersions\n}\n\nexport type Collection = {\n config: SanitizedCollectionConfig\n graphQL?: {\n JWT: GraphQLObjectType\n mutationInputType: GraphQLNonNull<any>\n paginatedType: GraphQLObjectType\n type: GraphQLObjectType\n updateMutationInputType: GraphQLNonNull<any>\n versionType: GraphQLObjectType\n whereInputType: GraphQLInputObjectType\n }\n}\n\nexport type BulkOperationResult<TSlug extends keyof GeneratedTypes['collections']> = {\n docs: GeneratedTypes['collections'][TSlug][]\n errors: {\n id: GeneratedTypes['collections'][TSlug]['id']\n message: string\n }[]\n}\n\nexport type AuthCollection = {\n config: SanitizedCollectionConfig\n}\n\nexport type TypeWithID = {\n id: number | string\n}\n\nexport type TypeWithTimestamps = {\n [key: string]: unknown\n createdAt: string\n id: number | string\n updatedAt: string\n}\n"],"names":[],"mappings":"AAobA,WAKC"}
1
+ {"version":3,"sources":["../../../src/collections/config/types.ts"],"sourcesContent":["import type { GraphQLInputObjectType, GraphQLNonNull, GraphQLObjectType } from 'graphql'\nimport type { DeepRequired } from 'ts-essentials'\n\nimport type {\n CustomPreviewButton,\n CustomPublishButton,\n CustomSaveButton,\n CustomSaveDraftButton,\n} from '../../admin/types.js'\nimport type { Auth, ClientUser, IncomingAuthType } from '../../auth/types.js'\nimport type {\n Access,\n EditConfig,\n Endpoint,\n EntityDescription,\n GeneratePreviewURL,\n LivePreviewConfig,\n} from '../../config/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type { GeneratedTypes } from '../../index.js'\nimport type { PayloadRequest, RequestContext } from '../../types/index.js'\nimport type { SanitizedUploadConfig, UploadConfig } from '../../uploads/types.js'\nimport type {\n IncomingCollectionVersions,\n SanitizedCollectionVersions,\n} from '../../versions/types.js'\nimport type { AfterOperationArg, AfterOperationMap } from '../operations/utils.js'\n\nexport type HookOperationType =\n | 'autosave'\n | 'create'\n | 'delete'\n | 'forgotPassword'\n | 'login'\n | 'read'\n | 'refresh'\n | 'update'\n\ntype CreateOrUpdateOperation = Extract<HookOperationType, 'create' | 'update'>\n\nexport type BeforeOperationHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n /**\n * Hook operation being performed\n */\n operation: HookOperationType\n req: PayloadRequest\n}) => any\n\nexport type BeforeValidateHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data?: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type AfterChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n previousDoc: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n query: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type AfterReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n findMany?: boolean\n query?: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type BeforeDeleteHook = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterDeleteHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterOperationHook<T extends TypeWithID = any> = (\n arg: AfterOperationArg<T>,\n) => Promise<ReturnType<AfterOperationMap<T>[keyof AfterOperationMap<T>]>>\n\nexport type AfterErrorHook = (\n err: Error,\n res: unknown,\n context: RequestContext,\n /** The collection which this hook is being run on. This is null if the AfterError hook was be added to the payload-wide config */\n collection: SanitizedCollectionConfig | null,\n) => { response: any; status: number } | void\n\nexport type BeforeLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n user: T\n}) => any\n\nexport type AfterLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n token: string\n user: T\n}) => any\n\nexport type AfterLogoutHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n}) => any\n\nexport type AfterMeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n response: unknown\n}) => any\n\nexport type AfterRefreshHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n exp: number\n req: PayloadRequest\n token: string\n}) => any\n\nexport type AfterForgotPasswordHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n}) => any\n\nexport type CollectionAdminOptions = {\n /**\n * Custom admin components\n */\n components?: {\n AfterList?: React.ComponentType<any>[]\n AfterListTable?: React.ComponentType<any>[]\n BeforeList?: React.ComponentType<any>[]\n BeforeListTable?: React.ComponentType<any>[]\n /**\n * Components within the edit view\n */\n edit?: {\n /**\n * Replaces the \"Preview\" button\n */\n PreviewButton?: CustomPreviewButton\n /**\n * Replaces the \"Publish\" button\n * + drafts must be enabled\n */\n PublishButton?: CustomPublishButton\n /**\n * Replaces the \"Save\" button\n * + drafts must be disabled\n */\n SaveButton?: CustomSaveButton\n /**\n * Replaces the \"Save Draft\" button\n * + drafts must be enabled\n * + autosave must be disabled\n */\n SaveDraftButton?: CustomSaveDraftButton\n }\n views?: {\n /**\n * Set to a React component to replace the entire \"Edit\" view, including all nested routes.\n * Set to an object to replace or modify individual nested routes, or to add new ones.\n */\n Edit?: EditConfig\n List?:\n | {\n Component?: React.ComponentType<any>\n actions?: React.ComponentType<any>[]\n }\n | React.ComponentType<any>\n }\n }\n /**\n * Default columns to show in list view\n */\n defaultColumns?: string[]\n /**\n * Custom description for collection\n */\n description?: EntityDescription\n enableRichTextLink?: boolean\n enableRichTextRelationship?: boolean\n /**\n * Place collections into a navigational group\n * */\n group?: Record<string, string> | string\n /**\n * Exclude the collection from the admin nav and routes\n */\n hidden?: ((args: { user: ClientUser }) => boolean) | boolean\n /**\n * Hide the API URL within the Edit view\n */\n hideAPIURL?: boolean\n /**\n * Additional fields to be searched via the full text search\n */\n listSearchableFields?: string[]\n /**\n * Live preview options\n */\n livePreview?: LivePreviewConfig\n pagination?: {\n defaultLimit?: number\n limits?: number[]\n }\n /**\n * Function to generate custom preview URL\n */\n preview?: GeneratePreviewURL\n /**\n * Field to use as title in Edit view and first column in List view\n */\n useAsTitle?: string\n}\n\n/** Manage all aspects of a data collection */\nexport type CollectionConfig = {\n /**\n * Access control\n */\n access?: {\n admin?: ({ req }: { req: PayloadRequest }) => Promise<boolean> | boolean\n create?: Access\n delete?: Access\n read?: Access\n readVersions?: Access\n unlock?: Access\n update?: Access\n }\n /**\n * Collection admin options\n */\n admin?: CollectionAdminOptions\n /**\n * Collection login options\n *\n * Use `true` to enable with default options\n */\n auth?: IncomingAuthType | boolean\n /** Extension point to add your custom data. */\n custom?: Record<string, any>\n /**\n * Default field to sort by in collection list view\n */\n defaultSort?: string\n /**\n * When true, do not show the \"Duplicate\" button while editing documents within this collection and prevent `duplicate` from all APIs\n */\n disableDuplicate?: boolean\n /**\n * Custom rest api endpoints, set false to disable all rest endpoints for this collection.\n */\n endpoints?: Omit<Endpoint, 'root'>[] | false\n fields: Field[]\n /**\n * GraphQL configuration\n */\n graphQL?:\n | {\n pluralName?: string\n singularName?: string\n }\n | false\n /**\n * Hooks to modify Payload functionality\n */\n hooks?: {\n afterChange?: AfterChangeHook[]\n afterDelete?: AfterDeleteHook[]\n afterError?: AfterErrorHook\n afterForgotPassword?: AfterForgotPasswordHook[]\n afterLogin?: AfterLoginHook[]\n afterLogout?: AfterLogoutHook[]\n afterMe?: AfterMeHook[]\n afterOperation?: AfterOperationHook[]\n afterRead?: AfterReadHook[]\n afterRefresh?: AfterRefreshHook[]\n beforeChange?: BeforeChangeHook[]\n beforeDelete?: BeforeDeleteHook[]\n beforeLogin?: BeforeLoginHook[]\n beforeOperation?: BeforeOperationHook[]\n beforeRead?: BeforeReadHook[]\n beforeValidate?: BeforeValidateHook[]\n }\n /**\n * Label configuration\n */\n labels?: {\n plural?: Record<string, string> | string\n singular?: Record<string, string> | string\n }\n slug: string\n /**\n * Add `createdAt` and `updatedAt` fields\n *\n * @default true\n */\n timestamps?: boolean\n /**\n * Options used in typescript generation\n */\n typescript?: {\n /**\n * Typescript generation name given to the interface type\n */\n interface?: string\n }\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable uploads\n */\n upload?: UploadConfig | boolean\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable versioning\n */\n versions?: IncomingCollectionVersions | boolean\n}\n\nexport interface SanitizedCollectionConfig\n extends Omit<\n DeepRequired<CollectionConfig>,\n 'auth' | 'endpoints' | 'fields' | 'upload' | 'versions'\n > {\n auth: Auth\n endpoints: Endpoint[] | false\n fields: Field[]\n upload: SanitizedUploadConfig\n versions: SanitizedCollectionVersions\n}\n\nexport type Collection = {\n config: SanitizedCollectionConfig\n graphQL?: {\n JWT: GraphQLObjectType\n mutationInputType: GraphQLNonNull<any>\n paginatedType: GraphQLObjectType\n type: GraphQLObjectType\n updateMutationInputType: GraphQLNonNull<any>\n versionType: GraphQLObjectType\n whereInputType: GraphQLInputObjectType\n }\n}\n\nexport type BulkOperationResult<TSlug extends keyof GeneratedTypes['collections']> = {\n docs: GeneratedTypes['collections'][TSlug][]\n errors: {\n id: GeneratedTypes['collections'][TSlug]['id']\n message: string\n }[]\n}\n\nexport type AuthCollection = {\n config: SanitizedCollectionConfig\n}\n\nexport type TypeWithID = {\n id: number | string\n}\n\nexport type TypeWithTimestamps = {\n [key: string]: unknown\n createdAt: string\n id: number | string\n updatedAt: string\n}\n"],"names":[],"mappings":"AAobA,WAKC"}
@@ -9,12 +9,12 @@ import restoreVersion from './restoreVersion.js';
9
9
  import update from './update.js';
10
10
  declare const _default: {
11
11
  auth: {
12
- auth: (payload: import("packages/payload/src/index.js").Payload, options: import("packages/payload/src/auth/operations/auth.js").AuthArgs) => Promise<import("packages/payload/src/auth/operations/auth.js").AuthResult>;
13
- forgotPassword: typeof import("packages/payload/src/auth/operations/local/forgotPassword.js").default;
14
- login: typeof import("packages/payload/src/auth/operations/local/login.js").default;
15
- resetPassword: typeof import("packages/payload/src/auth/operations/local/resetPassword.js").default;
16
- unlock: typeof import("packages/payload/src/auth/operations/local/unlock.js").default;
17
- verifyEmail: typeof import("packages/payload/src/auth/operations/local/verifyEmail.js").default;
12
+ auth: (payload: import("../../../index.js").Payload, options: import("../../../auth/operations/auth.js").AuthArgs) => Promise<import("../../../auth/operations/auth.js").AuthResult>;
13
+ forgotPassword: typeof import("../../../auth/operations/local/forgotPassword.js").default;
14
+ login: typeof import("../../../auth/operations/local/login.js").default;
15
+ resetPassword: typeof import("../../../auth/operations/local/resetPassword.js").default;
16
+ unlock: typeof import("../../../auth/operations/local/unlock.js").default;
17
+ verifyEmail: typeof import("../../../auth/operations/local/verifyEmail.js").default;
18
18
  };
19
19
  create: typeof create;
20
20
  deleteLocal: typeof deleteLocal;
@@ -1 +1 @@
1
- {"version":3,"file":"readMigrationFiles.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/readMigrationFiles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,eAAO,MAAM,kBAAkB;;MAI3B,QAAQ,SAAS,EAAE,CAuCtB,CAAA"}
1
+ {"version":3,"file":"readMigrationFiles.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/readMigrationFiles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,eAAO,MAAM,kBAAkB,iBAE5B;IACD,OAAO,EAAE,OAAO,CAAA;CACjB,KAAG,QAAQ,SAAS,EAAE,CAuCtB,CAAA"}
@@ -16,7 +16,7 @@ export declare const createClientFieldConfig: (f: Field) => {
16
16
  Filter?: import("react").ComponentType<any>;
17
17
  };
18
18
  condition?: import("../../fields/config/types.js").Condition<any, any>;
19
- description?: import("packages/payload/src/admin/types.js").Description;
19
+ description?: import("../../admin/types.js").Description;
20
20
  disableBulkEdit?: boolean;
21
21
  disabled?: boolean;
22
22
  hidden?: boolean;
@@ -26,7 +26,7 @@ export declare const createClientFieldConfig: (f: Field) => {
26
26
  width?: string;
27
27
  } & {
28
28
  components?: {
29
- RowLabel?: import("packages/payload/src/admin/types.js").RowLabel;
29
+ RowLabel?: import("../../admin/types.js").RowLabel;
30
30
  } & {
31
31
  Cell?: import("react").ComponentType<any>;
32
32
  Field?: import("react").ComponentType<any>;
@@ -52,7 +52,7 @@ export declare const createClientFieldConfig: (f: Field) => {
52
52
  saveToJWT?: string | boolean;
53
53
  unique?: boolean;
54
54
  validate?: import("../../fields/config/types.js").Validate<any, any, any, object>;
55
- dbName?: import("packages/payload/src/database/types.js").DBIdentifierName;
55
+ dbName?: import("../../database/types.js").DBIdentifierName;
56
56
  fields: Field[];
57
57
  interfaceName?: string;
58
58
  labels?: import("../../fields/config/types.js").Labels;
@@ -73,7 +73,7 @@ export declare const createClientFieldConfig: (f: Field) => {
73
73
  Filter?: import("react").ComponentType<any>;
74
74
  };
75
75
  condition?: import("../../fields/config/types.js").Condition<any, any>;
76
- description?: import("packages/payload/src/admin/types.js").Description;
76
+ description?: import("../../admin/types.js").Description;
77
77
  disableBulkEdit?: boolean;
78
78
  disabled?: boolean;
79
79
  hidden?: boolean;
@@ -121,7 +121,7 @@ export declare const createClientFieldConfig: (f: Field) => {
121
121
  Filter?: import("react").ComponentType<any>;
122
122
  };
123
123
  condition?: import("../../fields/config/types.js").Condition<any, any>;
124
- description?: import("packages/payload/src/admin/types.js").Description;
124
+ description?: import("../../admin/types.js").Description;
125
125
  disableBulkEdit?: boolean;
126
126
  disabled?: boolean;
127
127
  hidden?: boolean;
@@ -131,8 +131,8 @@ export declare const createClientFieldConfig: (f: Field) => {
131
131
  width?: string;
132
132
  } & {
133
133
  components?: {
134
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
135
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
134
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
135
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
136
136
  afterInput?: import("react").ComponentType<any>[];
137
137
  beforeInput?: import("react").ComponentType<any>[];
138
138
  };
@@ -188,7 +188,7 @@ export declare const createClientFieldConfig: (f: Field) => {
188
188
  Filter?: import("react").ComponentType<any>;
189
189
  };
190
190
  condition?: import("../../fields/config/types.js").Condition<any, any>;
191
- description?: import("packages/payload/src/admin/types.js").Description;
191
+ description?: import("../../admin/types.js").Description;
192
192
  disableBulkEdit?: boolean;
193
193
  disabled?: boolean;
194
194
  hidden?: boolean;
@@ -198,8 +198,8 @@ export declare const createClientFieldConfig: (f: Field) => {
198
198
  width?: string;
199
199
  } & {
200
200
  components?: {
201
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
202
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
201
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
202
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
203
203
  };
204
204
  editorOptions?: import("monaco-editor").editor.IStandaloneEditorConstructionOptions;
205
205
  language?: string;
@@ -216,7 +216,7 @@ export declare const createClientFieldConfig: (f: Field) => {
216
216
  Filter?: import("react").ComponentType<any>;
217
217
  };
218
218
  condition?: import("../../fields/config/types.js").Condition<any, any>;
219
- description?: import("packages/payload/src/admin/types.js").Description;
219
+ description?: import("../../admin/types.js").Description;
220
220
  disableBulkEdit?: boolean;
221
221
  disabled?: boolean;
222
222
  hidden?: boolean;
@@ -249,7 +249,7 @@ export declare const createClientFieldConfig: (f: Field) => {
249
249
  unique?: boolean;
250
250
  validate?: import("../../fields/config/types.js").Validate<any, any, any, object>;
251
251
  fields: Field[];
252
- label: import("packages/payload/src/admin/types.js").RowLabel;
252
+ label: import("../../admin/types.js").RowLabel;
253
253
  type: "collapsible";
254
254
  } | {
255
255
  access?: {
@@ -265,7 +265,7 @@ export declare const createClientFieldConfig: (f: Field) => {
265
265
  Filter?: import("react").ComponentType<any>;
266
266
  };
267
267
  condition?: import("../../fields/config/types.js").Condition<any, any>;
268
- description?: import("packages/payload/src/admin/types.js").Description;
268
+ description?: import("../../admin/types.js").Description;
269
269
  disableBulkEdit?: boolean;
270
270
  disabled?: boolean;
271
271
  hidden?: boolean;
@@ -275,12 +275,12 @@ export declare const createClientFieldConfig: (f: Field) => {
275
275
  width?: string;
276
276
  } & {
277
277
  components?: {
278
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
279
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
278
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
279
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
280
280
  afterInput?: import("react").ComponentType<any>[];
281
281
  beforeInput?: import("react").ComponentType<any>[];
282
282
  };
283
- date?: import("packages/payload/src/admin/types.js").ConditionalDateProps;
283
+ date?: import("../../admin/types.js").ConditionalDateProps;
284
284
  placeholder?: string | Record<string, string>;
285
285
  };
286
286
  custom?: Record<string, any>;
@@ -316,7 +316,7 @@ export declare const createClientFieldConfig: (f: Field) => {
316
316
  Filter?: import("react").ComponentType<any>;
317
317
  };
318
318
  condition?: import("../../fields/config/types.js").Condition<any, any>;
319
- description?: import("packages/payload/src/admin/types.js").Description;
319
+ description?: import("../../admin/types.js").Description;
320
320
  disableBulkEdit?: boolean;
321
321
  disabled?: boolean;
322
322
  hidden?: boolean;
@@ -327,8 +327,8 @@ export declare const createClientFieldConfig: (f: Field) => {
327
327
  } & {
328
328
  autoComplete?: string;
329
329
  components?: {
330
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
331
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
330
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
331
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
332
332
  afterInput?: import("react").ComponentType<any>[];
333
333
  beforeInput?: import("react").ComponentType<any>[];
334
334
  };
@@ -362,7 +362,7 @@ export declare const createClientFieldConfig: (f: Field) => {
362
362
  Filter?: import("react").ComponentType<any>;
363
363
  };
364
364
  condition?: import("../../fields/config/types.js").Condition<any, any>;
365
- description?: import("packages/payload/src/admin/types.js").Description;
365
+ description?: import("../../admin/types.js").Description;
366
366
  disableBulkEdit?: boolean;
367
367
  disabled?: boolean;
368
368
  hidden?: boolean;
@@ -430,7 +430,7 @@ export declare const createClientFieldConfig: (f: Field) => {
430
430
  Filter?: import("react").ComponentType<any>;
431
431
  };
432
432
  condition?: import("../../fields/config/types.js").Condition<any, any>;
433
- description?: import("packages/payload/src/admin/types.js").Description;
433
+ description?: import("../../admin/types.js").Description;
434
434
  disableBulkEdit?: boolean;
435
435
  disabled?: boolean;
436
436
  hidden?: boolean;
@@ -440,8 +440,8 @@ export declare const createClientFieldConfig: (f: Field) => {
440
440
  width?: string;
441
441
  } & {
442
442
  components?: {
443
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
444
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
443
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
444
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
445
445
  };
446
446
  editorOptions?: import("monaco-editor").editor.IStandaloneEditorConstructionOptions;
447
447
  };
@@ -460,7 +460,7 @@ export declare const createClientFieldConfig: (f: Field) => {
460
460
  Filter?: import("react").ComponentType<any>;
461
461
  };
462
462
  condition?: import("../../fields/config/types.js").Condition<any, any>;
463
- description?: import("packages/payload/src/admin/types.js").Description;
463
+ description?: import("../../admin/types.js").Description;
464
464
  disableBulkEdit?: boolean;
465
465
  disabled?: boolean;
466
466
  hidden?: boolean;
@@ -471,8 +471,8 @@ export declare const createClientFieldConfig: (f: Field) => {
471
471
  } & {
472
472
  autoComplete?: string;
473
473
  components?: {
474
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
475
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
474
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
475
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
476
476
  afterInput?: import("react").ComponentType<any>[];
477
477
  beforeInput?: import("react").ComponentType<any>[];
478
478
  };
@@ -517,7 +517,7 @@ export declare const createClientFieldConfig: (f: Field) => {
517
517
  Filter?: import("react").ComponentType<any>;
518
518
  };
519
519
  condition?: import("../../fields/config/types.js").Condition<any, any>;
520
- description?: import("packages/payload/src/admin/types.js").Description;
520
+ description?: import("../../admin/types.js").Description;
521
521
  disableBulkEdit?: boolean;
522
522
  disabled?: boolean;
523
523
  hidden?: boolean;
@@ -528,8 +528,8 @@ export declare const createClientFieldConfig: (f: Field) => {
528
528
  } & {
529
529
  autoComplete?: string;
530
530
  components?: {
531
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
532
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
531
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
532
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
533
533
  afterInput?: import("react").ComponentType<any>[];
534
534
  beforeInput?: import("react").ComponentType<any>[];
535
535
  };
@@ -574,7 +574,7 @@ export declare const createClientFieldConfig: (f: Field) => {
574
574
  Filter?: import("react").ComponentType<any>;
575
575
  };
576
576
  condition?: import("../../fields/config/types.js").Condition<any, any>;
577
- description?: import("packages/payload/src/admin/types.js").Description;
577
+ description?: import("../../admin/types.js").Description;
578
578
  disableBulkEdit?: boolean;
579
579
  disabled?: boolean;
580
580
  hidden?: boolean;
@@ -616,7 +616,7 @@ export declare const createClientFieldConfig: (f: Field) => {
616
616
  Filter?: import("react").ComponentType<any>;
617
617
  };
618
618
  condition?: import("../../fields/config/types.js").Condition<any, any>;
619
- description?: import("packages/payload/src/admin/types.js").Description;
619
+ description?: import("../../admin/types.js").Description;
620
620
  disableBulkEdit?: boolean;
621
621
  disabled?: boolean;
622
622
  hidden?: boolean;
@@ -626,8 +626,8 @@ export declare const createClientFieldConfig: (f: Field) => {
626
626
  width?: string;
627
627
  } & {
628
628
  components?: {
629
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
630
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
629
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
630
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
631
631
  };
632
632
  layout?: "horizontal" | "vertical";
633
633
  };
@@ -649,8 +649,8 @@ export declare const createClientFieldConfig: (f: Field) => {
649
649
  saveToJWT?: string | boolean;
650
650
  unique?: boolean;
651
651
  validate?: import("../../fields/config/types.js").Validate<any, any, any, object>;
652
- dbName?: import("packages/payload/src/database/types.js").DBIdentifierName;
653
- enumName?: import("packages/payload/src/database/types.js").DBIdentifierName;
652
+ dbName?: import("../../database/types.js").DBIdentifierName;
653
+ enumName?: import("../../database/types.js").DBIdentifierName;
654
654
  options: import("../../fields/config/types.js").Option[];
655
655
  type: "radio";
656
656
  } | {
@@ -667,7 +667,7 @@ export declare const createClientFieldConfig: (f: Field) => {
667
667
  Filter?: import("react").ComponentType<any>;
668
668
  };
669
669
  condition?: import("../../fields/config/types.js").Condition<any, any>;
670
- description?: import("packages/payload/src/admin/types.js").Description;
670
+ description?: import("../../admin/types.js").Description;
671
671
  disableBulkEdit?: boolean;
672
672
  disabled?: boolean;
673
673
  hidden?: boolean;
@@ -678,8 +678,8 @@ export declare const createClientFieldConfig: (f: Field) => {
678
678
  } & {
679
679
  allowCreate?: boolean;
680
680
  components?: {
681
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
682
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
681
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
682
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
683
683
  };
684
684
  isSortable?: boolean;
685
685
  } & {
@@ -728,7 +728,7 @@ export declare const createClientFieldConfig: (f: Field) => {
728
728
  Filter?: import("react").ComponentType<any>;
729
729
  };
730
730
  condition?: import("../../fields/config/types.js").Condition<any, any>;
731
- description?: import("packages/payload/src/admin/types.js").Description;
731
+ description?: import("../../admin/types.js").Description;
732
732
  disableBulkEdit?: boolean;
733
733
  disabled?: boolean;
734
734
  hidden?: boolean;
@@ -739,8 +739,8 @@ export declare const createClientFieldConfig: (f: Field) => {
739
739
  } & {
740
740
  allowCreate?: boolean;
741
741
  components?: {
742
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
743
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
742
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
743
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
744
744
  };
745
745
  isSortable?: boolean;
746
746
  } & {
@@ -789,7 +789,7 @@ export declare const createClientFieldConfig: (f: Field) => {
789
789
  Filter?: import("react").ComponentType<any>;
790
790
  };
791
791
  condition?: import("../../fields/config/types.js").Condition<any, any>;
792
- description?: import("packages/payload/src/admin/types.js").Description;
792
+ description?: import("../../admin/types.js").Description;
793
793
  disableBulkEdit?: boolean;
794
794
  disabled?: boolean;
795
795
  hidden?: boolean;
@@ -800,8 +800,8 @@ export declare const createClientFieldConfig: (f: Field) => {
800
800
  } & {
801
801
  allowCreate?: boolean;
802
802
  components?: {
803
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
804
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
803
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
804
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
805
805
  };
806
806
  isSortable?: boolean;
807
807
  } & {
@@ -848,7 +848,7 @@ export declare const createClientFieldConfig: (f: Field) => {
848
848
  Filter?: import("react").ComponentType<any>;
849
849
  };
850
850
  condition?: import("../../fields/config/types.js").Condition<any, any>;
851
- description?: import("packages/payload/src/admin/types.js").Description;
851
+ description?: import("../../admin/types.js").Description;
852
852
  disableBulkEdit?: boolean;
853
853
  disabled?: boolean;
854
854
  hidden?: boolean;
@@ -859,8 +859,8 @@ export declare const createClientFieldConfig: (f: Field) => {
859
859
  } & {
860
860
  allowCreate?: boolean;
861
861
  components?: {
862
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
863
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
862
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
863
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
864
864
  };
865
865
  isSortable?: boolean;
866
866
  } & {
@@ -907,7 +907,7 @@ export declare const createClientFieldConfig: (f: Field) => {
907
907
  Filter?: import("react").ComponentType<any>;
908
908
  };
909
909
  condition?: import("../../fields/config/types.js").Condition<any, any>;
910
- description?: import("packages/payload/src/admin/types.js").Description;
910
+ description?: import("../../admin/types.js").Description;
911
911
  disableBulkEdit?: boolean;
912
912
  disabled?: boolean;
913
913
  hidden?: boolean;
@@ -917,8 +917,8 @@ export declare const createClientFieldConfig: (f: Field) => {
917
917
  width?: string;
918
918
  } & {
919
919
  components?: {
920
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
921
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
920
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
921
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
922
922
  };
923
923
  };
924
924
  custom?: Record<string, any>;
@@ -939,7 +939,7 @@ export declare const createClientFieldConfig: (f: Field) => {
939
939
  saveToJWT?: string | boolean;
940
940
  unique?: boolean;
941
941
  validate?: import("../../fields/config/types.js").Validate<any, any, any, object>;
942
- editor?: import("packages/payload/src/admin/RichText.js").RichTextAdapter<any, any, any>;
942
+ editor?: import("../../admin/RichText.js").RichTextAdapter<any, any, any>;
943
943
  type: "richText";
944
944
  } | {
945
945
  custom?: Record<string, any>;
@@ -980,7 +980,7 @@ export declare const createClientFieldConfig: (f: Field) => {
980
980
  Filter?: import("react").ComponentType<any>;
981
981
  };
982
982
  condition?: import("../../fields/config/types.js").Condition<any, any>;
983
- description?: import("packages/payload/src/admin/types.js").Description;
983
+ description?: import("../../admin/types.js").Description;
984
984
  disableBulkEdit?: boolean;
985
985
  disabled?: boolean;
986
986
  hidden?: boolean;
@@ -990,8 +990,8 @@ export declare const createClientFieldConfig: (f: Field) => {
990
990
  width?: string;
991
991
  } & {
992
992
  components?: {
993
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
994
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
993
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
994
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
995
995
  };
996
996
  isClearable?: boolean;
997
997
  isSortable?: boolean;
@@ -1014,8 +1014,8 @@ export declare const createClientFieldConfig: (f: Field) => {
1014
1014
  saveToJWT?: string | boolean;
1015
1015
  unique?: boolean;
1016
1016
  validate?: import("../../fields/config/types.js").Validate<any, any, any, object>;
1017
- dbName?: import("packages/payload/src/database/types.js").DBIdentifierName;
1018
- enumName?: import("packages/payload/src/database/types.js").DBIdentifierName;
1017
+ dbName?: import("../../database/types.js").DBIdentifierName;
1018
+ enumName?: import("../../database/types.js").DBIdentifierName;
1019
1019
  hasMany?: boolean;
1020
1020
  options: import("../../fields/config/types.js").Option[];
1021
1021
  type: "select";
@@ -1057,7 +1057,7 @@ export declare const createClientFieldConfig: (f: Field) => {
1057
1057
  Filter?: import("react").ComponentType<any>;
1058
1058
  };
1059
1059
  condition?: import("../../fields/config/types.js").Condition<any, any>;
1060
- description?: import("packages/payload/src/admin/types.js").Description;
1060
+ description?: import("../../admin/types.js").Description;
1061
1061
  disableBulkEdit?: boolean;
1062
1062
  disabled?: boolean;
1063
1063
  hidden?: boolean;
@@ -1068,8 +1068,8 @@ export declare const createClientFieldConfig: (f: Field) => {
1068
1068
  } & {
1069
1069
  autoComplete?: string;
1070
1070
  components?: {
1071
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
1072
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
1071
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
1072
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
1073
1073
  afterInput?: import("react").ComponentType<any>[];
1074
1074
  beforeInput?: import("react").ComponentType<any>[];
1075
1075
  };
@@ -1114,7 +1114,7 @@ export declare const createClientFieldConfig: (f: Field) => {
1114
1114
  Filter?: import("react").ComponentType<any>;
1115
1115
  };
1116
1116
  condition?: import("../../fields/config/types.js").Condition<any, any>;
1117
- description?: import("packages/payload/src/admin/types.js").Description;
1117
+ description?: import("../../admin/types.js").Description;
1118
1118
  disableBulkEdit?: boolean;
1119
1119
  disabled?: boolean;
1120
1120
  hidden?: boolean;
@@ -1125,8 +1125,8 @@ export declare const createClientFieldConfig: (f: Field) => {
1125
1125
  } & {
1126
1126
  autoComplete?: string;
1127
1127
  components?: {
1128
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
1129
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
1128
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
1129
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
1130
1130
  afterInput?: import("react").ComponentType<any>[];
1131
1131
  beforeInput?: import("react").ComponentType<any>[];
1132
1132
  };
@@ -1171,7 +1171,7 @@ export declare const createClientFieldConfig: (f: Field) => {
1171
1171
  Filter?: import("react").ComponentType<any>;
1172
1172
  };
1173
1173
  condition?: import("../../fields/config/types.js").Condition<any, any>;
1174
- description?: import("packages/payload/src/admin/types.js").Description;
1174
+ description?: import("../../admin/types.js").Description;
1175
1175
  disableBulkEdit?: boolean;
1176
1176
  disabled?: boolean;
1177
1177
  hidden?: boolean;
@@ -1181,8 +1181,8 @@ export declare const createClientFieldConfig: (f: Field) => {
1181
1181
  width?: string;
1182
1182
  } & {
1183
1183
  components?: {
1184
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
1185
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
1184
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
1185
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
1186
1186
  afterInput?: import("react").ComponentType<any>[];
1187
1187
  beforeInput?: import("react").ComponentType<any>[];
1188
1188
  };
@@ -1241,7 +1241,7 @@ export declare const createClientFieldConfig: (f: Field) => {
1241
1241
  Filter?: import("react").ComponentType<any>;
1242
1242
  };
1243
1243
  condition?: import("../../fields/config/types.js").Condition<any, any>;
1244
- description?: import("packages/payload/src/admin/types.js").Description;
1244
+ description?: import("../../admin/types.js").Description;
1245
1245
  disableBulkEdit?: boolean;
1246
1246
  disabled?: boolean;
1247
1247
  hidden?: boolean;
@@ -1251,8 +1251,8 @@ export declare const createClientFieldConfig: (f: Field) => {
1251
1251
  width?: string;
1252
1252
  } & {
1253
1253
  components?: {
1254
- Error?: import("react").ComponentType<import("packages/payload/src/admin/types.js").ErrorProps>;
1255
- Label?: import("react").ComponentType<import("packages/payload/src/admin/types.js").LabelProps>;
1254
+ Error?: import("react").ComponentType<import("../../admin/types.js").ErrorProps>;
1255
+ Label?: import("react").ComponentType<import("../../admin/types.js").LabelProps>;
1256
1256
  };
1257
1257
  };
1258
1258
  custom?: Record<string, any>;
@@ -34,7 +34,7 @@ declare const _default: {
34
34
  Filter?: import("react").ComponentType<any>;
35
35
  };
36
36
  condition?: import("./config/types.js").Condition<any, any>;
37
- description?: import("packages/payload/src/admin/forms/FieldDescription.js").Description;
37
+ description?: import("../admin/types.js").Description;
38
38
  disableBulkEdit?: boolean;
39
39
  disabled?: boolean;
40
40
  hidden?: boolean;
@@ -44,8 +44,8 @@ declare const _default: {
44
44
  width?: string;
45
45
  } & {
46
46
  components?: {
47
- Error?: import("react").ComponentType<import("packages/payload/src/admin/forms/Error.js").ErrorProps>;
48
- Label?: import("react").ComponentType<import("packages/payload/src/admin/forms/Label.js").LabelProps>;
47
+ Error?: import("react").ComponentType<import("../admin/types.js").ErrorProps>;
48
+ Label?: import("react").ComponentType<import("../admin/types.js").LabelProps>;
49
49
  };
50
50
  editorOptions?: import("monaco-editor").editor.IStandaloneEditorConstructionOptions;
51
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getLocalI18n.d.ts","sourceRoot":"","sources":["../../src/translations/getLocalI18n.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEzD,eAAO,MAAM,YAAY;YAIf,eAAe;eACZ,MAAM;6CAOf,CAAA"}
1
+ {"version":3,"file":"getLocalI18n.d.ts","sourceRoot":"","sources":["../../src/translations/getLocalI18n.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEzD,eAAO,MAAM,YAAY,0BAGtB;IACD,MAAM,EAAE,eAAe,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,4CAMG,CAAA"}
@@ -1,5 +1,3 @@
1
- import pluralize from 'pluralize';
2
- declare const singular: typeof pluralize.singular;
3
1
  declare const toWords: (inputString: string, joinWords?: boolean) => string;
4
2
  declare const formatLabels: (slug: string) => {
5
3
  plural: string;
@@ -1 +1 @@
1
- {"version":3,"file":"formatLabels.d.ts","sourceRoot":"","sources":["../../src/utilities/formatLabels.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAA;AACjC,QAAA,MAAkB,QAAQ,2BAAc,CAAA;AAKxC,QAAA,MAAM,OAAO,gBAAiB,MAAM,0BAAsB,MAczD,CAAA;AAED,QAAA,MAAM,YAAY,SAAU,MAAM,KAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,MAAM,CAAA;CAWtE,CAAA;AAED,QAAA,MAAM,WAAW,SAAU,MAAM,KAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,MAAM,CAAA;CAWrE,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"formatLabels.d.ts","sourceRoot":"","sources":["../../src/utilities/formatLabels.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO,gBAAiB,MAAM,0BAAsB,MAczD,CAAA;AAED,QAAA,MAAM,YAAY,SAAU,MAAM,KAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAWtE,CAAA;AAED,QAAA,MAAM,WAAW,SAAU,MAAM,KAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAWrE,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isEntityHidden.d.ts","sourceRoot":"","sources":["../../src/utilities/isEntityHidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAExC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,eAAO,MAAM,cAAc;YAIjB,yBAAyB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC;UACzF,IAAI;aAGX,CAAA"}
1
+ {"version":3,"file":"isEntityHidden.d.ts","sourceRoot":"","sources":["../../src/utilities/isEntityHidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAExC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,eAAO,MAAM,cAAc,sBAGxB;IACD,MAAM,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAA;IAC/F,IAAI,EAAE,IAAI,CAAA;CACX,YAEA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getLatestGlobalVersion.d.ts","sourceRoot":"","sources":["../../src/versions/getLatestGlobalVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAIjF,KAAK,IAAI,GAAG;IACV,MAAM,EAAE,qBAAqB,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,GAAG,CAAC,EAAE,cAAc,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,eAAO,MAAM,sBAAsB,mDAOhC,IAAI;YAAqB,QAAQ;kBAAgB,OAAO;EAwC1D,CAAA"}
1
+ {"version":3,"file":"getLatestGlobalVersion.d.ts","sourceRoot":"","sources":["../../src/versions/getLatestGlobalVersion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAIjF,KAAK,IAAI,GAAG;IACV,MAAM,EAAE,qBAAqB,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,GAAG,CAAC,EAAE,cAAc,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,eAAO,MAAM,sBAAsB,mDAOhC,IAAI,KAAG,QAAQ;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,CAwC5D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payload",
3
- "version": "3.0.0-alpha.55",
3
+ "version": "3.0.0-alpha.57",
4
4
  "description": "Node, React and MongoDB Headless CMS and Application Framework",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -44,13 +44,12 @@
44
44
  "nodemailer": "6.9.10",
45
45
  "pino": "8.15.0",
46
46
  "pino-pretty": "10.2.0",
47
- "pirates": "^4.0.6",
48
47
  "pluralize": "8.0.0",
49
48
  "probe-image-size": "^7.2.3",
50
49
  "sanitize-filename": "1.6.3",
51
50
  "scheduler": "0.23.0",
52
51
  "scmp": "2.1.0",
53
- "@payloadcms/translations": "3.0.0-alpha.55"
52
+ "@payloadcms/translations": "3.0.0-alpha.57"
54
53
  },
55
54
  "devDependencies": {
56
55
  "@monaco-editor/react": "4.5.1",