payload 3.0.0-beta.31 → 3.0.0-beta.32
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.
- package/dist/admin/RichText.d.ts +3 -3
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- package/dist/admin/elements/WithServerSideProps.d.ts +6 -3
- package/dist/admin/elements/WithServerSideProps.d.ts.map +1 -1
- package/dist/admin/elements/WithServerSideProps.js.map +1 -1
- package/dist/admin/types.d.ts +1 -1
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/auth/types.d.ts +1 -1
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/types.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +9 -2
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +9 -2
- package/dist/config/schema.js.map +1 -1
- package/dist/config/types.d.ts +37 -15
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +7 -1
- package/dist/config/types.js.map +1 -1
- package/dist/exports/types.d.ts.map +1 -1
- package/dist/exports/types.js.map +1 -1
- package/dist/fields/config/client.d.ts +78 -78
- package/dist/fields/config/types.d.ts +24 -24
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
package/dist/config/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/config/types.ts"],"sourcesContent":["import type { DefaultTranslationsObject, I18nOptions, TFunction } from '@payloadcms/translations'\nimport type { Options as ExpressFileUploadOptions } from 'express-fileupload'\nimport type GraphQL from 'graphql'\nimport type { Metadata as NextMetadata } from 'next'\nimport type { DestinationStream, LoggerOptions, P } from 'pino'\nimport type React from 'react'\nimport type { default as sharp } from 'sharp'\nimport type { DeepRequired } from 'ts-essentials'\n\nimport type { RichTextAdapterProvider } from '../admin/RichText.js'\nimport type { DocumentTab, RichTextAdapter } from '../admin/types.js'\nimport type { AdminView, ServerSideEditViewProps } from '../admin/views/types.js'\nimport type { User } from '../auth/types.js'\nimport type {\n AfterErrorHook,\n Collection,\n CollectionConfig,\n SanitizedCollectionConfig,\n} from '../collections/config/types.js'\nimport type { DatabaseAdapterResult } from '../database/types.js'\nimport type { EmailAdapter, SendEmailOptions } from '../email/types.js'\nimport type { GlobalConfig, Globals, SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { Payload } from '../index.js'\nimport type { PayloadRequest, PayloadRequestWithData, Where } from '../types/index.js'\nimport type { PayloadLogger } from '../utilities/logger.js'\n\nexport type BinScriptConfig = {\n key: string\n scriptPath: string\n}\n\nexport type BinScript = (config: SanitizedConfig) => Promise<void> | void\n\ntype Prettify<T> = {\n [K in keyof T]: T[K]\n} & NonNullable<unknown>\n\n// eslint-disable-next-line no-use-before-define\nexport type Plugin = (config: Config) => Config | Promise<Config>\n\nexport type LivePreviewConfig = {\n /**\n Device breakpoints to use for the `iframe` of the Live Preview window.\n Options are displayed in the Live Preview toolbar.\n The `responsive` breakpoint is included by default.\n */\n breakpoints?: {\n height: number | string\n label: string\n name: string\n width: number | string\n }[]\n /**\n The URL of the frontend application. This will be rendered within an `iframe` as its `src`.\n Payload will send a `window.postMessage()` to this URL with the document data in real-time.\n The frontend application is responsible for receiving the message and updating the UI accordingly.\n Use the `useLivePreview` hook to get started in React applications.\n */\n url?:\n | ((args: {\n collectionConfig?: SanitizedCollectionConfig\n data: Record<string, any>\n globalConfig?: SanitizedGlobalConfig\n locale: Locale\n payload: Payload\n }) => Promise<string> | string)\n | string\n}\n\nexport type ServerOnlyLivePreviewProperties = keyof Pick<LivePreviewConfig, 'url'>\n\ntype GeneratePreviewURLOptions = {\n locale: string\n req: PayloadRequestWithData\n token: null | string\n}\n\nexport type GeneratePreviewURL = (\n doc: Record<string, unknown>,\n options: GeneratePreviewURLOptions,\n) => Promise<null | string> | null | string\n\nexport type GraphQLInfo = {\n Mutation: {\n fields: Record<string, any>\n name: string\n }\n Query: {\n fields: Record<string, any>\n name: string\n }\n collections: {\n [slug: number | string | symbol]: Collection\n }\n globals: Globals\n types: {\n arrayTypes: Record<string, GraphQL.GraphQLType>\n blockInputTypes: Record<string, GraphQL.GraphQLInputObjectType>\n blockTypes: Record<string, GraphQL.GraphQLObjectType>\n fallbackLocaleInputType?: GraphQL.GraphQLEnumType | GraphQL.GraphQLScalarType\n groupTypes: Record<string, GraphQL.GraphQLObjectType>\n localeInputType?: GraphQL.GraphQLEnumType | GraphQL.GraphQLScalarType\n tabTypes: Record<string, GraphQL.GraphQLObjectType>\n }\n}\nexport type GraphQLExtension = (\n graphQL: typeof GraphQL,\n context: {\n config: SanitizedConfig\n } & GraphQLInfo,\n) => Record<string, unknown>\n\nexport type InitOptions = {\n /**\n * Sometimes, with the local API, you might need to pass a config file directly, for example, serverless on Vercel\n * The passed config should match the config file, and if it doesn't, there could be mismatches between the admin UI\n * and the backend functionality\n */\n config: Promise<SanitizedConfig> | SanitizedConfig\n /**\n * Disable connect to the database on init\n */\n disableDBConnect?: boolean\n\n /**\n * Disable running of the `onInit` function\n */\n disableOnInit?: boolean\n\n /**\n * A previously instantiated logger instance. Must conform to the PayloadLogger interface which uses Pino\n * This allows you to bring your own logger instance and let payload use it\n */\n logger?: PayloadLogger\n\n loggerDestination?: DestinationStream\n\n /**\n * Specify options for the built-in Pino logger that Payload uses for internal logging.\n *\n * See Pino Docs for options: https://getpino.io/#/docs/api?id=options\n */\n loggerOptions?: LoggerOptions\n /**\n * A function that is called immediately following startup that receives the Payload instance as it's only argument.\n */\n onInit?: (payload: Payload) => Promise<void> | void\n}\n\n/**\n * This result is calculated on the server\n * and then sent to the client allowing the dashboard to show accessible data and actions.\n *\n * If the result is `true`, the user has access.\n * If the result is an object, it is interpreted as a MongoDB query.\n *\n * @example `{ createdBy: { equals: id } }`\n *\n * @example `{ tenant: { in: tenantIds } }`\n *\n * @see https://payloadcms.com/docs/access-control/overview\n */\nexport type AccessResult = Where | boolean\n\nexport type AccessArgs<T = any, U = any> = {\n /**\n * The relevant resource that is being accessed.\n *\n * `data` is null when a list is requested\n */\n data?: T\n /** ID of the resource being accessed */\n id?: number | string\n /** If true, the request is for a static file */\n isReadingStaticFile?: boolean\n /** The original request that requires an access check */\n req: PayloadRequestWithData<U>\n}\n\n/**\n * Access function runs on the server\n * and is sent to the client allowing the dashboard to show accessible data and actions.\n *\n * @see https://payloadcms.com/docs/access-control/overview\n */\nexport type Access<T = any, U = any> = (\n args: AccessArgs<T, U>,\n) => AccessResult | Promise<AccessResult>\n\n/** Web Request/Response model, but the the req has more payload specific properties added to it. */\nexport type PayloadHandler = (req: PayloadRequest) => Promise<Response> | Response\n\n/**\n * Docs: https://payloadcms.com/docs/rest-api/overview#custom-endpoints\n */\nexport type Endpoint<U = User> = {\n /** Extension point to add your custom data. */\n custom?: Record<string, any>\n\n /**\n * Middleware that will be called when the path/method matches\n *\n * Compatible with Web Request/Response Model\n */\n handler: PayloadHandler\n /** HTTP method (or \"all\") */\n method: 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put'\n /**\n * Pattern that should match the path of the incoming request\n *\n * Compatible with the Express router\n */\n path: string\n /**\n * Please add \"root\" routes under the /api folder in the Payload Project.\n * https://nextjs.org/docs/app/api-reference/file-conventions/route\n *\n * @deprecated in 3.0\n */\n root?: never\n}\n\nexport type EditViewComponent = React.ComponentType<ServerSideEditViewProps>\n\nexport type EditViewConfig =\n | {\n /**\n * Add a new Edit view to the admin panel\n * i.e. you can render a custom view that has no tab, if desired\n * Or override a specific properties of an existing one\n * i.e. you can customize the `Default` view tab label, if desired\n */\n Tab?: DocumentTab\n path?: string\n }\n | {\n Component: EditViewComponent\n path: string\n }\n | {\n actions?: CustomComponent[]\n }\n\n/**\n * Override existing views\n * i.e. Dashboard, Account, API, LivePreview, etc.\n * Path is not available here\n * All Tab properties become optional\n * i.e. you can change just the label, if desired\n */\nexport type EditView = EditViewComponent | EditViewConfig\n\nexport type ServerProps = {\n payload: Payload\n}\n\nexport const serverProps: (keyof ServerProps)[] = ['payload']\n\nexport type CustomComponent<T extends any = any> = React.ComponentType<T & ServerProps>\n\nexport type Locale = {\n /**\n * value of supported locale\n * @example \"en\"\n */\n code: string\n /**\n * Code of another locale to use when reading documents with fallback, if not specified defaultLocale is used\n */\n fallbackLocale?: string\n /**\n * label of supported locale\n * @example \"English\"\n */\n label: Record<string, string> | string\n /**\n * if true, defaults textAligmnent on text fields to RTL\n */\n rtl?: boolean\n}\n\nexport type BaseLocalizationConfig = {\n /**\n * Locale for users that have not expressed their preference for a specific locale\n * @example `\"en\"`\n */\n defaultLocale: string\n /** Set to `true` to let missing values in localised fields fall back to the values in `defaultLocale` */\n fallback?: boolean\n}\n\nexport type LocalizationConfigWithNoLabels = Prettify<\n BaseLocalizationConfig & {\n /**\n * List of supported locales\n * @example `[\"en\", \"es\", \"fr\", \"nl\", \"de\", \"jp\"]`\n */\n locales: string[]\n }\n>\n\nexport type LocalizationConfigWithLabels = Prettify<\n BaseLocalizationConfig & {\n /**\n * List of supported locales with labels\n * @example {\n * label: 'English',\n * value: 'en',\n * rtl: false\n * }\n */\n locales: Locale[]\n }\n>\n\nexport type SanitizedLocalizationConfig = Prettify<\n LocalizationConfigWithLabels & {\n /**\n * List of supported locales\n * @example `[\"en\", \"es\", \"fr\", \"nl\", \"de\", \"jp\"]`\n */\n localeCodes: string[]\n }\n>\n\n/**\n * @see https://payloadcms.com/docs/configuration/localization#localization\n */\nexport type LocalizationConfig = Prettify<\n LocalizationConfigWithLabels | LocalizationConfigWithNoLabels\n>\n\nexport type LabelFunction = ({ t }: { t: TFunction }) => string\n\nexport type SharpDependency = (\n input?:\n | ArrayBuffer\n | Buffer\n | Float32Array\n | Float64Array\n | Int8Array\n | Int16Array\n | Int32Array\n | Uint8Array\n | Uint8ClampedArray\n | Uint16Array\n | Uint32Array\n | string,\n options?: sharp.SharpOptions,\n) => sharp.Sharp\n\n/**\n * This is the central configuration\n *\n * @see https://payloadcms.com/docs/configuration/overview\n */\nexport type Config = {\n /** Configure admin dashboard */\n admin?: {\n /** Automatically log in as a user when visiting the admin dashboard. */\n autoLogin?:\n | {\n /**\n * The email address of the user to login as\n *\n */\n email: string\n /** The password of the user to login as */\n password: string\n /**\n * If set to true, the login credentials will be prefilled but the user will still need to click the login button.\n *\n * @default false\n */\n prefillOnly?: boolean\n }\n | false\n /** Set account profile picture. Options: gravatar, default or a custom React component. */\n avatar?: 'default' | 'gravatar' | React.ComponentType<any>\n\n /**\n * Add extra and/or replace built-in components with custom components\n *\n * @see https://payloadcms.com/docs/admin/components\n */\n components?: {\n /**\n * Replace the navigation with a custom component\n */\n Nav?: CustomComponent\n /**\n * Add custom components to the top right of the Admin Panel\n */\n actions?: CustomComponent[]\n /**\n * Add custom components after the collection overview\n */\n afterDashboard?: CustomComponent[]\n /**\n * Add custom components after the email/password field\n */\n afterLogin?: CustomComponent[]\n /**\n * Add custom components after the navigation links\n */\n afterNavLinks?: CustomComponent[]\n /**\n * Add custom components before the collection overview\n */\n beforeDashboard?: CustomComponent[]\n /**\n * Add custom components before the email/password field\n */\n beforeLogin?: CustomComponent[]\n /**\n * Add custom components before the navigation links\n */\n beforeNavLinks?: CustomComponent[]\n /** Replace graphical components */\n graphics?: {\n /** Replace the icon in the navigation */\n Icon?: CustomComponent\n /** Replace the logo on the login page */\n Logo?: CustomComponent\n }\n /** Replace logout related components */\n logout?: {\n /** Replace the logout button */\n Button?: CustomComponent\n }\n /**\n * Wrap the admin dashboard in custom context providers\n */\n providers?: React.ComponentType<{ children?: React.ReactNode }>[]\n /**\n * Replace or modify top-level admin routes, or add new ones:\n * + `Account` - `/admin/account`\n * + `Dashboard` - `/admin`\n * + `:path` - `/admin/:path`\n */\n views?: {\n /** Add custom admin views */\n [key: string]: AdminView\n /** Replace the account screen */\n Account?: AdminView\n /** Replace the admin homepage */\n Dashboard?: AdminView\n }\n }\n /** Extension point to add your custom data. Available in server and client. */\n custom?: Record<string, any>\n /** Global date format that will be used for all dates in the Admin panel. Any valid date-fns format pattern can be used. */\n dateFormat?: string\n /** If set to true, the entire Admin panel will be disabled. */\n disable?: boolean\n /** The route the user will be redirected to after being inactive for too long. */\n inactivityRoute?: string\n livePreview?: LivePreviewConfig & {\n collections?: string[]\n globals?: string[]\n }\n /** The route for the logout page. */\n logoutRoute?: string\n /** Base meta data to use for the Admin Panel. Included properties are titleSuffix, ogImage, and favicon. */\n meta?: {\n /**\n * An array of Next.js metadata objects that represent icons to be used by devices and browsers.\n *\n * For example browser tabs, phone home screens, and search engine results.\n * @reference https://nextjs.org/docs/app/api-reference/functions/generate-metadata#icons\n */\n icons?: NextMetadata['icons']\n /**\n * Public path to an image\n *\n * This image may be displayed as preview when the link is shared on social media\n */\n ogImage?: string\n /**\n * String to append to the <title> of admin pages\n * @example `\" - My Brand\"`\n */\n titleSuffix?: string\n }\n /** The slug of a Collection that you want be used to log in to the Admin dashboard. */\n user?: string\n }\n /** Custom Payload bin scripts can be injected via the config. */\n bin?: BinScriptConfig[]\n /**\n * Manage the datamodel of your application\n *\n * @see https://payloadcms.com/docs/configuration/collections#collection-configs\n */\n collections?: CollectionConfig[]\n /**\n * Replace the built-in components with custom ones\n */\n components?: { [key: string]: (() => JSX.Element) | JSX.Element }\n /**\n * Prefix a string to all cookies that Payload sets.\n *\n * @default \"payload\"\n */\n cookiePrefix?: string\n /** Either a whitelist array of URLS to allow CORS requests from, or a wildcard string ('*') to accept incoming requests from any domain. */\n cors?: '*' | string[]\n /** A whitelist array of URLs to allow Payload cookies to be accepted from as a form of CSRF protection. */\n csrf?: string[]\n\n /** Extension point to add your custom data. Server only. */\n custom?: Record<string, any>\n\n /** Pass in a database adapter for use on this project. */\n db: DatabaseAdapterResult\n /** Enable to expose more detailed error information. */\n debug?: boolean\n /**\n * If a user does not specify `depth` while requesting a resource, this depth will be used.\n *\n * @see https://payloadcms.com/docs/getting-started/concepts#depth\n *\n * @default 2\n */\n defaultDepth?: number\n /**\n * The maximum allowed depth to be permitted application-wide. This setting helps prevent against malicious queries.\n *\n * @default 40000\n */\n defaultMaxTextLength?: number\n /** Default richtext editor to use for richText fields */\n editor: RichTextAdapterProvider<any, any, any>\n /**\n * Email Adapter\n *\n * @see https://payloadcms.com/docs/email/overview\n */\n email?: EmailAdapter | Promise<EmailAdapter>\n /** Custom REST endpoints */\n endpoints?: Endpoint[]\n /**\n * @see https://payloadcms.com/docs/configuration/globals#global-configs\n */\n globals?: GlobalConfig[]\n /**\n * Manage the GraphQL API\n *\n * You can add your own GraphQL queries and mutations to Payload, making use of all the types that Payload has defined for you.\n *\n * @see https://payloadcms.com/docs/graphql/overview\n */\n graphQL?: {\n disable?: boolean\n disablePlaygroundInProduction?: boolean\n maxComplexity?: number\n /**\n * Function that returns an object containing keys to custom GraphQL mutations\n *\n * @see https://payloadcms.com/docs/graphql/extending\n */\n mutations?: GraphQLExtension\n /**\n * Function that returns an object containing keys to custom GraphQL queries\n *\n * @see https://payloadcms.com/docs/graphql/extending\n */\n queries?: GraphQLExtension\n /**\n * Filepath to write the generated schema to\n */\n schemaOutputFile?: string\n }\n /**\n * Tap into Payload-wide hooks.\n *\n * @see https://payloadcms.com/docs/hooks/overview\n */\n hooks?: {\n afterError?: AfterErrorHook\n }\n /** i18n config settings */\n i18n?: I18nOptions<{} | DefaultTranslationsObject> // loosen the type here to allow for custom translations\n /** Automatically index all sortable top-level fields in the database to improve sort performance and add database compatibility for Azure Cosmos and similar. */\n indexSortableFields?: boolean\n /**\n * Translate your content to different languages/locales.\n *\n * @default false // disable localization\n */\n localization?: LocalizationConfig | false\n /**\n * The maximum allowed depth to be permitted application-wide. This setting helps prevent against malicious queries.\n *\n * @see https://payloadcms.com/docs/getting-started/concepts#depth\n *\n * @default 10\n */\n maxDepth?: number\n /** A function that is called immediately following startup that receives the Payload instance as its only argument. */\n onInit?: (payload: Payload) => Promise<void> | void\n /**\n * An array of Payload plugins.\n *\n * @see https://payloadcms.com/docs/plugins/overview\n */\n plugins?: Plugin[]\n /** Control the routing structure that Payload binds itself to. */\n routes?: {\n /** @default \"/admin\" */\n admin?: string\n /** @default \"/api\" */\n api?: string\n /** @default \"/graphql\" */\n graphQL?: string\n /** @default \"/graphql-playground\" */\n graphQLPlayground?: string\n }\n /** Secure string that Payload will use for any encryption workflows */\n secret: string\n /**\n * Define the absolute URL of your app including the protocol, for example `https://example.org`.\n * No paths allowed, only protocol, domain and (optionally) port.\n *\n * @see https://payloadcms.com/docs/configuration/overview#options\n */\n serverURL?: string\n /**\n * Pass in a local copy of Sharp if you'd like to use it.\n *\n */\n sharp?: SharpDependency\n /** Send anonymous telemetry data about general usage. */\n telemetry?: boolean\n /** Control how typescript interfaces are generated from your collections. */\n typescript?: {\n /** Disable declare block in generated types file */\n declare?:\n | {\n /**\n * @internal internal use only to allow for multiple declarations within a monorepo and suppress the \"Duplicate identifier GeneratedTypes\" error\n *\n * Adds a @ts-ignore flag above the GeneratedTypes interface declaration\n *\n * @default false\n */\n ignoreTSError?: boolean\n }\n | false\n /** Filename to write the generated types to */\n outputFile?: string\n }\n /**\n * Customize the handling of incoming file uploads for collections that have uploads enabled.\n */\n upload?: ExpressFileUploadOptions\n}\n\nexport type SanitizedConfig = Omit<\n DeepRequired<Config>,\n 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'localization' | 'upload'\n> & {\n collections: SanitizedCollectionConfig[]\n /** Default richtext editor to use for richText fields */\n editor: RichTextAdapter<any, any, any>\n endpoints: Endpoint[]\n globals: SanitizedGlobalConfig[]\n i18n: Required<I18nOptions>\n localization: SanitizedLocalizationConfig | false\n paths: {\n config: string\n configDir: string\n rawConfig: string\n }\n upload: ExpressFileUploadOptions & {\n /**\n * Deduped list of adapters used in the project\n */\n adapters: string[]\n }\n}\n\nexport type EditConfig =\n | (\n | {\n /**\n * Replace or modify individual nested routes, or add new ones:\n * + `Default` - `/admin/collections/:collection/:id`\n * + `API` - `/admin/collections/:collection/:id/api`\n * + `LivePreview` - `/admin/collections/:collection/:id/preview`\n * + `References` - `/admin/collections/:collection/:id/references`\n * + `Relationships` - `/admin/collections/:collection/:id/relationships`\n * + `Versions` - `/admin/collections/:collection/:id/versions`\n * + `Version` - `/admin/collections/:collection/:id/versions/:version`\n * + `CustomView` - `/admin/collections/:collection/:id/:path`\n */\n API?: EditViewComponent | Partial<EditViewConfig>\n Default?: EditViewComponent | Partial<EditViewConfig>\n LivePreview?: EditViewComponent | Partial<EditViewConfig>\n Version?: EditViewComponent | Partial<EditViewConfig>\n Versions?: EditViewComponent | Partial<EditViewConfig>\n // TODO: uncomment these as they are built\n // References?: EditView\n // Relationships?: EditView\n }\n | {\n [key: string]: EditViewConfig\n }\n )\n | EditViewComponent\n\nexport type EntityDescriptionComponent = CustomComponent\n\nexport type EntityDescriptionFunction = ({ t }: { t: TFunction }) => string\n\nexport type EntityDescription = EntityDescriptionFunction | Record<string, string> | string\n\nexport type { EmailAdapter, SendEmailOptions }\n"],"names":["serverProps"],"rangeMappings":";;","mappings":"AAgQA,OAAO,MAAMA,cAAqC;IAAC;CAAU,CAAA"}
|
|
1
|
+
{"version":3,"sources":["../../src/config/types.ts"],"sourcesContent":["import type {\n DefaultTranslationsObject,\n I18nClient,\n I18nOptions,\n TFunction,\n} from '@payloadcms/translations'\nimport type { Options as ExpressFileUploadOptions } from 'express-fileupload'\nimport type GraphQL from 'graphql'\nimport type { Metadata as NextMetadata } from 'next'\nimport type { DestinationStream, LoggerOptions } from 'pino'\nimport type React from 'react'\nimport type { default as sharp } from 'sharp'\nimport type { DeepRequired } from 'ts-essentials'\n\nimport type { RichTextAdapterProvider } from '../admin/RichText.js'\nimport type { DocumentTab, RichTextAdapter } from '../admin/types.js'\nimport type { AdminView, ServerSideEditViewProps } from '../admin/views/types.js'\nimport type { Permissions } from '../auth/index.js'\nimport type {\n AfterErrorHook,\n Collection,\n CollectionConfig,\n SanitizedCollectionConfig,\n} from '../collections/config/types.js'\nimport type { DatabaseAdapterResult } from '../database/types.js'\nimport type { EmailAdapter, SendEmailOptions } from '../email/types.js'\nimport type { GlobalConfig, Globals, SanitizedGlobalConfig } from '../globals/config/types.js'\nimport type { GeneratedTypes, Payload } from '../index.js'\nimport type { PayloadRequest, PayloadRequestWithData, Where } from '../types/index.js'\nimport type { PayloadLogger } from '../utilities/logger.js'\n\nexport type BinScriptConfig = {\n key: string\n scriptPath: string\n}\n\nexport type BinScript = (config: SanitizedConfig) => Promise<void> | void\n\ntype Prettify<T> = {\n [K in keyof T]: T[K]\n} & NonNullable<unknown>\n\n// eslint-disable-next-line no-use-before-define\nexport type Plugin = (config: Config) => Config | Promise<Config>\n\nexport type LivePreviewConfig = {\n /**\n Device breakpoints to use for the `iframe` of the Live Preview window.\n Options are displayed in the Live Preview toolbar.\n The `responsive` breakpoint is included by default.\n */\n breakpoints?: {\n height: number | string\n label: string\n name: string\n width: number | string\n }[]\n /**\n The URL of the frontend application. This will be rendered within an `iframe` as its `src`.\n Payload will send a `window.postMessage()` to this URL with the document data in real-time.\n The frontend application is responsible for receiving the message and updating the UI accordingly.\n Use the `useLivePreview` hook to get started in React applications.\n */\n url?:\n | ((args: {\n collectionConfig?: SanitizedCollectionConfig\n data: Record<string, any>\n globalConfig?: SanitizedGlobalConfig\n locale: Locale\n payload: Payload\n }) => Promise<string> | string)\n | string\n}\n\nexport type ServerOnlyLivePreviewProperties = keyof Pick<LivePreviewConfig, 'url'>\n\ntype GeneratePreviewURLOptions = {\n locale: string\n req: PayloadRequestWithData\n token: null | string\n}\n\nexport type GeneratePreviewURL = (\n doc: Record<string, unknown>,\n options: GeneratePreviewURLOptions,\n) => Promise<null | string> | null | string\n\nexport type GraphQLInfo = {\n Mutation: {\n fields: Record<string, any>\n name: string\n }\n Query: {\n fields: Record<string, any>\n name: string\n }\n collections: {\n [slug: number | string | symbol]: Collection\n }\n globals: Globals\n types: {\n arrayTypes: Record<string, GraphQL.GraphQLType>\n blockInputTypes: Record<string, GraphQL.GraphQLInputObjectType>\n blockTypes: Record<string, GraphQL.GraphQLObjectType>\n fallbackLocaleInputType?: GraphQL.GraphQLEnumType | GraphQL.GraphQLScalarType\n groupTypes: Record<string, GraphQL.GraphQLObjectType>\n localeInputType?: GraphQL.GraphQLEnumType | GraphQL.GraphQLScalarType\n tabTypes: Record<string, GraphQL.GraphQLObjectType>\n }\n}\nexport type GraphQLExtension = (\n graphQL: typeof GraphQL,\n context: {\n config: SanitizedConfig\n } & GraphQLInfo,\n) => Record<string, unknown>\n\nexport type InitOptions = {\n /**\n * Sometimes, with the local API, you might need to pass a config file directly, for example, serverless on Vercel\n * The passed config should match the config file, and if it doesn't, there could be mismatches between the admin UI\n * and the backend functionality\n */\n config: Promise<SanitizedConfig> | SanitizedConfig\n /**\n * Disable connect to the database on init\n */\n disableDBConnect?: boolean\n\n /**\n * Disable running of the `onInit` function\n */\n disableOnInit?: boolean\n\n /**\n * A previously instantiated logger instance. Must conform to the PayloadLogger interface which uses Pino\n * This allows you to bring your own logger instance and let payload use it\n */\n logger?: PayloadLogger\n\n loggerDestination?: DestinationStream\n\n /**\n * Specify options for the built-in Pino logger that Payload uses for internal logging.\n *\n * See Pino Docs for options: https://getpino.io/#/docs/api?id=options\n */\n loggerOptions?: LoggerOptions\n /**\n * A function that is called immediately following startup that receives the Payload instance as it's only argument.\n */\n onInit?: (payload: Payload) => Promise<void> | void\n}\n\n/**\n * This result is calculated on the server\n * and then sent to the client allowing the dashboard to show accessible data and actions.\n *\n * If the result is `true`, the user has access.\n * If the result is an object, it is interpreted as a MongoDB query.\n *\n * @example `{ createdBy: { equals: id } }`\n *\n * @example `{ tenant: { in: tenantIds } }`\n *\n * @see https://payloadcms.com/docs/access-control/overview\n */\nexport type AccessResult = Where | boolean\n\nexport type AccessArgs<TData = any> = {\n /**\n * The relevant resource that is being accessed.\n *\n * `data` is null when a list is requested\n */\n data?: TData\n /** ID of the resource being accessed */\n id?: number | string\n /** If true, the request is for a static file */\n isReadingStaticFile?: boolean\n /** The original request that requires an access check */\n req: PayloadRequestWithData\n}\n\n/**\n * Access function runs on the server\n * and is sent to the client allowing the dashboard to show accessible data and actions.\n *\n * @see https://payloadcms.com/docs/access-control/overview\n */\nexport type Access<TData = any> = (args: AccessArgs<TData>) => AccessResult | Promise<AccessResult>\n\n/** Web Request/Response model, but the req has more payload specific properties added to it. */\nexport type PayloadHandler = (req: PayloadRequest) => Promise<Response> | Response\n\n/**\n * Docs: https://payloadcms.com/docs/rest-api/overview#custom-endpoints\n */\nexport type Endpoint = {\n /** Extension point to add your custom data. */\n custom?: Record<string, any>\n\n /**\n * Middleware that will be called when the path/method matches\n *\n * Compatible with Web Request/Response Model\n */\n handler: PayloadHandler\n /** HTTP method (or \"all\") */\n method: 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put'\n /**\n * Pattern that should match the path of the incoming request\n *\n * Compatible with the Express router\n */\n path: string\n /**\n * Please add \"root\" routes under the /api folder in the Payload Project.\n * https://nextjs.org/docs/app/api-reference/file-conventions/route\n *\n * @deprecated in 3.0\n */\n root?: never\n}\n\nexport type EditViewComponent = React.ComponentType<ServerSideEditViewProps>\n\nexport type EditViewConfig =\n | {\n /**\n * Add a new Edit view to the admin panel\n * i.e. you can render a custom view that has no tab, if desired\n * Or override a specific properties of an existing one\n * i.e. you can customize the `Default` view tab label, if desired\n */\n Tab?: DocumentTab\n path?: string\n }\n | {\n Component: EditViewComponent\n path: string\n }\n | {\n actions?: CustomComponent[]\n }\n\n/**\n * Override existing views\n * i.e. Dashboard, Account, API, LivePreview, etc.\n * Path is not available here\n * All Tab properties become optional\n * i.e. you can change just the label, if desired\n */\nexport type EditView = EditViewComponent | EditViewConfig\n\nexport type ServerProps = {\n i18n: I18nClient\n locale?: Locale\n params?: { [key: string]: string | string[] | undefined }\n payload: Payload\n permissions?: Permissions\n searchParams?: { [key: string]: string | string[] | undefined }\n user?: GeneratedTypes['user']\n}\n\nexport const serverProps: (keyof ServerProps)[] = [\n 'payload',\n 'i18n',\n 'locale',\n 'params',\n 'permissions',\n 'searchParams',\n 'permissions',\n]\n\nexport type CustomComponent<TAdditionalProps extends any = any> = React.ComponentType<\n TAdditionalProps & Partial<ServerProps>\n>\n\nexport type Locale = {\n /**\n * value of supported locale\n * @example \"en\"\n */\n code: string\n /**\n * Code of another locale to use when reading documents with fallback, if not specified defaultLocale is used\n */\n fallbackLocale?: string\n /**\n * label of supported locale\n * @example \"English\"\n */\n label: Record<string, string> | string\n /**\n * if true, defaults textAligmnent on text fields to RTL\n */\n rtl?: boolean\n}\n\nexport type BaseLocalizationConfig = {\n /**\n * Locale for users that have not expressed their preference for a specific locale\n * @example `\"en\"`\n */\n defaultLocale: string\n /** Set to `true` to let missing values in localised fields fall back to the values in `defaultLocale` */\n fallback?: boolean\n}\n\nexport type LocalizationConfigWithNoLabels = Prettify<\n BaseLocalizationConfig & {\n /**\n * List of supported locales\n * @example `[\"en\", \"es\", \"fr\", \"nl\", \"de\", \"jp\"]`\n */\n locales: string[]\n }\n>\n\nexport type LocalizationConfigWithLabels = Prettify<\n BaseLocalizationConfig & {\n /**\n * List of supported locales with labels\n * @example {\n * label: 'English',\n * value: 'en',\n * rtl: false\n * }\n */\n locales: Locale[]\n }\n>\n\nexport type SanitizedLocalizationConfig = Prettify<\n LocalizationConfigWithLabels & {\n /**\n * List of supported locales\n * @example `[\"en\", \"es\", \"fr\", \"nl\", \"de\", \"jp\"]`\n */\n localeCodes: string[]\n }\n>\n\n/**\n * @see https://payloadcms.com/docs/configuration/localization#localization\n */\nexport type LocalizationConfig = Prettify<\n LocalizationConfigWithLabels | LocalizationConfigWithNoLabels\n>\n\nexport type LabelFunction = ({ t }: { t: TFunction }) => string\n\nexport type SharpDependency = (\n input?:\n | ArrayBuffer\n | Buffer\n | Float32Array\n | Float64Array\n | Int8Array\n | Int16Array\n | Int32Array\n | Uint8Array\n | Uint8ClampedArray\n | Uint16Array\n | Uint32Array\n | string,\n options?: sharp.SharpOptions,\n) => sharp.Sharp\n\n/**\n * This is the central configuration\n *\n * @see https://payloadcms.com/docs/configuration/overview\n */\nexport type Config = {\n /** Configure admin dashboard */\n admin?: {\n /** Automatically log in as a user when visiting the admin dashboard. */\n autoLogin?:\n | {\n /**\n * The email address of the user to login as\n *\n */\n email: string\n /** The password of the user to login as */\n password: string\n /**\n * If set to true, the login credentials will be prefilled but the user will still need to click the login button.\n *\n * @default false\n */\n prefillOnly?: boolean\n }\n | false\n /** Set account profile picture. Options: gravatar, default or a custom React component. */\n avatar?: 'default' | 'gravatar' | React.ComponentType<any>\n\n /**\n * Add extra and/or replace built-in components with custom components\n *\n * @see https://payloadcms.com/docs/admin/components\n */\n components?: {\n /**\n * Replace the navigation with a custom component\n */\n Nav?: CustomComponent\n /**\n * Add custom components to the top right of the Admin Panel\n */\n actions?: CustomComponent[]\n /**\n * Add custom components after the collection overview\n */\n afterDashboard?: CustomComponent[]\n /**\n * Add custom components after the email/password field\n */\n afterLogin?: CustomComponent[]\n /**\n * Add custom components after the navigation links\n */\n afterNavLinks?: CustomComponent[]\n /**\n * Add custom components before the collection overview\n */\n beforeDashboard?: CustomComponent[]\n /**\n * Add custom components before the email/password field\n */\n beforeLogin?: CustomComponent[]\n /**\n * Add custom components before the navigation links\n */\n beforeNavLinks?: CustomComponent[]\n /** Replace graphical components */\n graphics?: {\n /** Replace the icon in the navigation */\n Icon?: CustomComponent\n /** Replace the logo on the login page */\n Logo?: CustomComponent\n }\n /** Replace logout related components */\n logout?: {\n /** Replace the logout button */\n Button?: CustomComponent\n }\n /**\n * Wrap the admin dashboard in custom context providers\n */\n providers?: React.ComponentType<{ children?: React.ReactNode }>[]\n /**\n * Replace or modify top-level admin routes, or add new ones:\n * + `Account` - `/admin/account`\n * + `Dashboard` - `/admin`\n * + `:path` - `/admin/:path`\n */\n views?: {\n /** Add custom admin views */\n [key: string]: AdminView\n /** Replace the account screen */\n Account?: AdminView\n /** Replace the admin homepage */\n Dashboard?: AdminView\n }\n }\n /** Extension point to add your custom data. Available in server and client. */\n custom?: Record<string, any>\n /** Global date format that will be used for all dates in the Admin panel. Any valid date-fns format pattern can be used. */\n dateFormat?: string\n /** If set to true, the entire Admin panel will be disabled. */\n disable?: boolean\n livePreview?: LivePreviewConfig & {\n collections?: string[]\n globals?: string[]\n }\n /** Base meta data to use for the Admin Panel. Included properties are titleSuffix, ogImage, and favicon. */\n meta?: {\n /**\n * An array of Next.js metadata objects that represent icons to be used by devices and browsers.\n *\n * For example browser tabs, phone home screens, and search engine results.\n * @reference https://nextjs.org/docs/app/api-reference/functions/generate-metadata#icons\n */\n icons?: NextMetadata['icons']\n /**\n * Public path to an image\n *\n * This image may be displayed as preview when the link is shared on social media\n */\n ogImage?: string\n /**\n * String to append to the <title> of admin pages\n * @example `\" - My Brand\"`\n */\n titleSuffix?: string\n }\n routes?: {\n /** The route for the account page. */\n account?: string\n /** The route for the create first user page. */\n createFirstUser?: string\n /** The route for the forgot password page. */\n forgot?: string\n /** The route the user will be redirected to after being inactive for too long. */\n inactivity?: string\n /** The route for the login page. */\n login?: string\n /** The route for the logout page. */\n logout?: string\n /** The route for the unauthorized page. */\n unauthorized?: string\n }\n /** The slug of a Collection that you want to be used to log in to the Admin dashboard. */\n user?: string\n }\n /** Custom Payload bin scripts can be injected via the config. */\n bin?: BinScriptConfig[]\n /**\n * Manage the datamodel of your application\n *\n * @see https://payloadcms.com/docs/configuration/collections#collection-configs\n */\n collections?: CollectionConfig[]\n /**\n * Replace the built-in components with custom ones\n */\n components?: { [key: string]: (() => JSX.Element) | JSX.Element }\n /**\n * Prefix a string to all cookies that Payload sets.\n *\n * @default \"payload\"\n */\n cookiePrefix?: string\n /** Either a whitelist array of URLS to allow CORS requests from, or a wildcard string ('*') to accept incoming requests from any domain. */\n cors?: '*' | string[]\n /** A whitelist array of URLs to allow Payload cookies to be accepted from as a form of CSRF protection. */\n csrf?: string[]\n\n /** Extension point to add your custom data. Server only. */\n custom?: Record<string, any>\n\n /** Pass in a database adapter for use on this project. */\n db: DatabaseAdapterResult\n /** Enable to expose more detailed error information. */\n debug?: boolean\n /**\n * If a user does not specify `depth` while requesting a resource, this depth will be used.\n *\n * @see https://payloadcms.com/docs/getting-started/concepts#depth\n *\n * @default 2\n */\n defaultDepth?: number\n /**\n * The maximum allowed depth to be permitted application-wide. This setting helps prevent against malicious queries.\n *\n * @default 40000\n */\n defaultMaxTextLength?: number\n /** Default richtext editor to use for richText fields */\n editor: RichTextAdapterProvider<any, any, any>\n /**\n * Email Adapter\n *\n * @see https://payloadcms.com/docs/email/overview\n */\n email?: EmailAdapter | Promise<EmailAdapter>\n /** Custom REST endpoints */\n endpoints?: Endpoint[]\n /**\n * @see https://payloadcms.com/docs/configuration/globals#global-configs\n */\n globals?: GlobalConfig[]\n /**\n * Manage the GraphQL API\n *\n * You can add your own GraphQL queries and mutations to Payload, making use of all the types that Payload has defined for you.\n *\n * @see https://payloadcms.com/docs/graphql/overview\n */\n graphQL?: {\n disable?: boolean\n disablePlaygroundInProduction?: boolean\n maxComplexity?: number\n /**\n * Function that returns an object containing keys to custom GraphQL mutations\n *\n * @see https://payloadcms.com/docs/graphql/extending\n */\n mutations?: GraphQLExtension\n /**\n * Function that returns an object containing keys to custom GraphQL queries\n *\n * @see https://payloadcms.com/docs/graphql/extending\n */\n queries?: GraphQLExtension\n /**\n * Filepath to write the generated schema to\n */\n schemaOutputFile?: string\n }\n /**\n * Tap into Payload-wide hooks.\n *\n * @see https://payloadcms.com/docs/hooks/overview\n */\n hooks?: {\n afterError?: AfterErrorHook\n }\n /** i18n config settings */\n i18n?: I18nOptions<{} | DefaultTranslationsObject> // loosen the type here to allow for custom translations\n /** Automatically index all sortable top-level fields in the database to improve sort performance and add database compatibility for Azure Cosmos and similar. */\n indexSortableFields?: boolean\n /**\n * Translate your content to different languages/locales.\n *\n * @default false // disable localization\n */\n localization?: LocalizationConfig | false\n /**\n * The maximum allowed depth to be permitted application-wide. This setting helps prevent against malicious queries.\n *\n * @see https://payloadcms.com/docs/getting-started/concepts#depth\n *\n * @default 10\n */\n maxDepth?: number\n /** A function that is called immediately following startup that receives the Payload instance as its only argument. */\n onInit?: (payload: Payload) => Promise<void> | void\n /**\n * An array of Payload plugins.\n *\n * @see https://payloadcms.com/docs/plugins/overview\n */\n plugins?: Plugin[]\n /** Control the routing structure that Payload binds itself to. */\n routes?: {\n /** @default \"/admin\" */\n admin?: string\n /** @default \"/api\" */\n api?: string\n /** @default \"/graphql\" */\n graphQL?: string\n /** @default \"/graphql-playground\" */\n graphQLPlayground?: string\n }\n /** Secure string that Payload will use for any encryption workflows */\n secret: string\n /**\n * Define the absolute URL of your app including the protocol, for example `https://example.org`.\n * No paths allowed, only protocol, domain and (optionally) port.\n *\n * @see https://payloadcms.com/docs/configuration/overview#options\n */\n serverURL?: string\n /**\n * Pass in a local copy of Sharp if you'd like to use it.\n *\n */\n sharp?: SharpDependency\n /** Send anonymous telemetry data about general usage. */\n telemetry?: boolean\n /** Control how typescript interfaces are generated from your collections. */\n typescript?: {\n /** Disable declare block in generated types file */\n declare?:\n | {\n /**\n * @internal internal use only to allow for multiple declarations within a monorepo and suppress the \"Duplicate identifier GeneratedTypes\" error\n *\n * Adds a @ts-ignore flag above the GeneratedTypes interface declaration\n *\n * @default false\n */\n ignoreTSError?: boolean\n }\n | false\n /** Filename to write the generated types to */\n outputFile?: string\n }\n /**\n * Customize the handling of incoming file uploads for collections that have uploads enabled.\n */\n upload?: ExpressFileUploadOptions\n}\n\nexport type SanitizedConfig = Omit<\n DeepRequired<Config>,\n 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'localization' | 'upload'\n> & {\n collections: SanitizedCollectionConfig[]\n /** Default richtext editor to use for richText fields */\n editor: RichTextAdapter<any, any, any>\n endpoints: Endpoint[]\n globals: SanitizedGlobalConfig[]\n i18n: Required<I18nOptions>\n localization: SanitizedLocalizationConfig | false\n paths: {\n config: string\n configDir: string\n rawConfig: string\n }\n upload: ExpressFileUploadOptions & {\n /**\n * Deduped list of adapters used in the project\n */\n adapters: string[]\n }\n}\n\nexport type EditConfig =\n | (\n | {\n /**\n * Replace or modify individual nested routes, or add new ones:\n * + `Default` - `/admin/collections/:collection/:id`\n * + `API` - `/admin/collections/:collection/:id/api`\n * + `LivePreview` - `/admin/collections/:collection/:id/preview`\n * + `References` - `/admin/collections/:collection/:id/references`\n * + `Relationships` - `/admin/collections/:collection/:id/relationships`\n * + `Versions` - `/admin/collections/:collection/:id/versions`\n * + `Version` - `/admin/collections/:collection/:id/versions/:version`\n * + `CustomView` - `/admin/collections/:collection/:id/:path`\n */\n API?: EditViewComponent | Partial<EditViewConfig>\n Default?: EditViewComponent | Partial<EditViewConfig>\n LivePreview?: EditViewComponent | Partial<EditViewConfig>\n Version?: EditViewComponent | Partial<EditViewConfig>\n Versions?: EditViewComponent | Partial<EditViewConfig>\n // TODO: uncomment these as they are built\n // References?: EditView\n // Relationships?: EditView\n }\n | {\n [key: string]: EditViewConfig\n }\n )\n | EditViewComponent\n\nexport type EntityDescriptionComponent = CustomComponent\n\nexport type EntityDescriptionFunction = ({ t }: { t: TFunction }) => string\n\nexport type EntityDescription = EntityDescriptionFunction | Record<string, string> | string\n\nexport type { EmailAdapter, SendEmailOptions }\n"],"names":["serverProps"],"rangeMappings":";;;;;;;;","mappings":"AAyQA,OAAO,MAAMA,cAAqC;IAChD;IACA;IACA;IACA;IACA;IACA;IACA;CACD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/exports/types.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,mBAAmB,mBAAmB,CAAA;AACtC,mBAAmB,qBAAqB,CAAA;AAExC,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/exports/types.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,mBAAmB,mBAAmB,CAAA;AACtC,mBAAmB,qBAAqB,CAAA;AAExC,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAC7E,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,YAAY,EAAE,YAAY,IAAI,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAE9F,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,GAChB,MAAM,yBAAyB,CAAA;AAEhC,YAAY,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAE/E,YAAY,EACV,eAAe,IAAI,yBAAyB,EAC5C,eAAe,IAAI,yBAAyB,EAC5C,cAAc,IAAI,wBAAwB,EAC1C,uBAAuB,IAAI,iCAAiC,EAC5D,cAAc,IAAI,wBAAwB,EAC1C,kBAAkB,IAAI,4BAA4B,EAClD,aAAa,IAAI,uBAAuB,EACxC,gBAAgB,IAAI,0BAA0B,EAC9C,gBAAgB,IAAI,0BAA0B,EAC9C,eAAe,IAAI,yBAAyB,EAC5C,mBAAmB,IAAI,6BAA6B,EACpD,cAAc,IAAI,wBAAwB,EAC1C,kBAAkB,IAAI,4BAA4B,EAClD,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,UAAU,EACV,kBAAkB,GACnB,MAAM,kCAAkC,CAAA;AACzC,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,YAAY,EACV,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,yBAAyB,EACzB,eAAe,GAChB,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,YAAY,EACV,UAAU,EACV,KAAK,EACL,UAAU,EACV,aAAa,EACb,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,UAAU,EACV,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,aAAa,EACb,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,QAAQ,EACR,sBAAsB,EACtB,WAAW,EACX,MAAM,EACN,YAAY,EACZ,UAAU,EACV,4BAA4B,EAC5B,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,uBAAuB,EACvB,GAAG,EACH,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,OAAO,EACP,UAAU,EACV,WAAW,EACX,QAAQ,EACR,eAAe,EACf,iBAAiB,GAClB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,wBAAwB,GACzB,MAAM,6BAA6B,CAAA;AAEpC,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAEvE,YAAY,EACV,eAAe,IAAI,qBAAqB,EACxC,aAAa,IAAI,mBAAmB,EACpC,gBAAgB,IAAI,sBAAsB,EAC1C,cAAc,IAAI,oBAAoB,EACtC,kBAAkB,IAAI,wBAAwB,EAC9C,YAAY,EACZ,qBAAqB,GACtB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/exports/types.ts"],"sourcesContent":["export * from './../types/index.js'\nexport type * from '../admin/types.js'\nexport type * from '../uploads/types.js'\n\nexport type { DocumentPermissions, FieldPermissions } from '../auth/index.js'\
|
|
1
|
+
{"version":3,"sources":["../../src/exports/types.ts"],"sourcesContent":["export * from './../types/index.js'\nexport type * from '../admin/types.js'\nexport type * from '../uploads/types.js'\n\nexport type { DocumentPermissions, FieldPermissions } from '../auth/index.js'\nexport type { MeOperationResult } from '../auth/operations/me.js'\n\nexport type { EmailAdapter as PayloadEmailAdapter, SendEmailOptions } from '../email/types.js'\n\nexport type {\n CollapsedPreferences,\n DocumentPreferences,\n FieldsPreferences,\n InsideFieldsPreferences,\n PreferenceRequest,\n PreferenceUpdateRequest,\n TabsPreferences,\n} from '../preferences/types.js'\n\nexport type { ClientCollectionConfig } from './../collections/config/client.js'\n\nexport type {\n AfterChangeHook as CollectionAfterChangeHook,\n AfterDeleteHook as CollectionAfterDeleteHook,\n AfterErrorHook as CollectionAfterErrorHook,\n AfterForgotPasswordHook as CollectionAfterForgotPasswordHook,\n AfterLoginHook as CollectionAfterLoginHook,\n AfterOperationHook as CollectionAfterOperationHook,\n AfterReadHook as CollectionAfterReadHook,\n BeforeChangeHook as CollectionBeforeChangeHook,\n BeforeDeleteHook as CollectionBeforeDeleteHook,\n BeforeLoginHook as CollectionBeforeLoginHook,\n BeforeOperationHook as CollectionBeforeOperationHook,\n BeforeReadHook as CollectionBeforeReadHook,\n BeforeValidateHook as CollectionBeforeValidateHook,\n Collection,\n CollectionConfig,\n SanitizedCollectionConfig,\n TypeWithID,\n TypeWithTimestamps,\n} from './../collections/config/types.js'\nexport type { ClientConfig } from './../config/client.js'\nexport type {\n Access,\n AccessArgs,\n EditViewComponent,\n EntityDescription,\n EntityDescriptionComponent,\n EntityDescriptionFunction,\n SanitizedConfig,\n} from './../config/types.js'\nexport type { ClientFieldConfig } from './../fields/config/client.js'\n\nexport type {\n ArrayField,\n Block,\n BlockField,\n CheckboxField,\n ClientValidate,\n CodeField,\n CollapsibleField,\n Condition,\n DateField,\n EmailField,\n Field,\n FieldAccess,\n FieldAffectingData,\n FieldBase,\n FieldHook,\n FieldHookArgs,\n FieldPresentationalOnly,\n FieldWithMany,\n FieldWithMaxDepth,\n FieldWithPath,\n FieldWithSubFields,\n FilterOptions,\n FilterOptionsProps,\n GroupField,\n HookName,\n JSONField,\n Labels,\n NamedTab,\n NonPresentationalField,\n NumberField,\n Option,\n OptionObject,\n PointField,\n PolymorphicRelationshipField,\n RadioField,\n RelationshipField,\n RelationshipValue,\n RichTextField,\n RowAdmin,\n RowField,\n SelectField,\n SingleRelationshipField,\n Tab,\n TabAsField,\n TabsAdmin,\n TabsField,\n TextField,\n TextareaField,\n UIField,\n UnnamedTab,\n UploadField,\n Validate,\n ValidateOptions,\n ValueWithRelation,\n} from './../fields/config/types.js'\n\nexport {\n fieldAffectsData,\n fieldHasMaxDepth,\n fieldHasSubFields,\n fieldIsArrayType,\n fieldIsBlockType,\n fieldIsGroupType,\n fieldIsLocalized,\n fieldIsPresentationalOnly,\n fieldSupportsMany,\n optionIsObject,\n optionIsValue,\n optionsAreObjects,\n tabHasName,\n valueIsValueWithRelation,\n} from './../fields/config/types.js'\n\nexport type { ClientGlobalConfig } from './../globals/config/client.js'\n\nexport type {\n AfterChangeHook as GlobalAfterChangeHook,\n AfterReadHook as GlobalAfterReadHook,\n BeforeChangeHook as GlobalBeforeChangeHook,\n BeforeReadHook as GlobalBeforeReadHook,\n BeforeValidateHook as GlobalBeforeValidateHook,\n GlobalConfig,\n SanitizedGlobalConfig,\n} from './../globals/config/types.js'\nexport { validOperators } from './../types/constants.js'\n"],"names":["fieldAffectsData","fieldHasMaxDepth","fieldHasSubFields","fieldIsArrayType","fieldIsBlockType","fieldIsGroupType","fieldIsLocalized","fieldIsPresentationalOnly","fieldSupportsMany","optionIsObject","optionIsValue","optionsAreObjects","tabHasName","valueIsValueWithRelation","validOperators"],"rangeMappings":";;","mappings":"AAAA,cAAc,sBAAqB;AA8GnC,SACEA,gBAAgB,EAChBC,gBAAgB,EAChBC,iBAAiB,EACjBC,gBAAgB,EAChBC,gBAAgB,EAChBC,gBAAgB,EAChBC,gBAAgB,EAChBC,yBAAyB,EACzBC,iBAAiB,EACjBC,cAAc,EACdC,aAAa,EACbC,iBAAiB,EACjBC,UAAU,EACVC,wBAAwB,QACnB,8BAA6B;AAapC,SAASC,cAAc,QAAQ,0BAAyB"}
|
|
@@ -9,9 +9,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
9
9
|
t: TFunction;
|
|
10
10
|
}) => {
|
|
11
11
|
access?: {
|
|
12
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
13
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
14
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
12
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
13
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
14
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
15
15
|
};
|
|
16
16
|
admin?: {
|
|
17
17
|
className?: string;
|
|
@@ -72,9 +72,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
72
72
|
type: "array";
|
|
73
73
|
} | {
|
|
74
74
|
access?: {
|
|
75
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
76
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
77
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
75
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
76
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
77
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
78
78
|
};
|
|
79
79
|
admin?: {
|
|
80
80
|
className?: string;
|
|
@@ -125,9 +125,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
125
125
|
type: "blocks";
|
|
126
126
|
} | {
|
|
127
127
|
access?: {
|
|
128
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
129
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
130
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
128
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
129
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
130
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
131
131
|
};
|
|
132
132
|
admin?: {
|
|
133
133
|
className?: string;
|
|
@@ -187,9 +187,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
187
187
|
};
|
|
188
188
|
name: string;
|
|
189
189
|
access?: {
|
|
190
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
191
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
192
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
190
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
191
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
192
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
193
193
|
};
|
|
194
194
|
defaultValue?: any;
|
|
195
195
|
hidden?: boolean;
|
|
@@ -272,9 +272,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
272
272
|
beforeValidate?: import("../../fields/config/types.js").FieldHook<any, any, any>[];
|
|
273
273
|
};
|
|
274
274
|
access?: {
|
|
275
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
276
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
277
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
275
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
276
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
277
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
278
278
|
};
|
|
279
279
|
defaultValue?: any;
|
|
280
280
|
hidden?: boolean;
|
|
@@ -320,9 +320,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
320
320
|
beforeValidate?: import("../../fields/config/types.js").FieldHook<any, any, any>[];
|
|
321
321
|
};
|
|
322
322
|
access?: {
|
|
323
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
324
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
325
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
323
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
324
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
325
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
326
326
|
};
|
|
327
327
|
defaultValue?: any;
|
|
328
328
|
hidden?: boolean;
|
|
@@ -337,9 +337,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
337
337
|
label: Required<string | false | import("../../config/types.js").LabelFunction | Record<string, string>>;
|
|
338
338
|
} | {
|
|
339
339
|
access?: {
|
|
340
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
341
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
342
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
340
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
341
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
342
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
343
343
|
};
|
|
344
344
|
admin?: {
|
|
345
345
|
className?: string;
|
|
@@ -392,9 +392,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
392
392
|
type: "date";
|
|
393
393
|
} | {
|
|
394
394
|
access?: {
|
|
395
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
396
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
397
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
395
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
396
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
397
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
398
398
|
};
|
|
399
399
|
admin?: {
|
|
400
400
|
className?: string;
|
|
@@ -479,9 +479,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
479
479
|
};
|
|
480
480
|
name: string;
|
|
481
481
|
access?: {
|
|
482
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
483
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
484
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
482
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
483
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
484
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
485
485
|
};
|
|
486
486
|
defaultValue?: any;
|
|
487
487
|
hidden?: boolean;
|
|
@@ -505,9 +505,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
505
505
|
};
|
|
506
506
|
name: string;
|
|
507
507
|
access?: {
|
|
508
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
509
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
510
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
508
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
509
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
510
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
511
511
|
};
|
|
512
512
|
defaultValue?: any;
|
|
513
513
|
hidden?: boolean;
|
|
@@ -549,9 +549,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
549
549
|
type: "json";
|
|
550
550
|
} | {
|
|
551
551
|
access?: {
|
|
552
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
553
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
554
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
552
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
553
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
554
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
555
555
|
};
|
|
556
556
|
admin?: {
|
|
557
557
|
className?: string;
|
|
@@ -610,9 +610,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
610
610
|
minRows?: number;
|
|
611
611
|
} | {
|
|
612
612
|
access?: {
|
|
613
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
614
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
615
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
613
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
614
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
615
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
616
616
|
};
|
|
617
617
|
admin?: {
|
|
618
618
|
className?: string;
|
|
@@ -671,9 +671,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
671
671
|
minRows?: undefined;
|
|
672
672
|
} | {
|
|
673
673
|
access?: {
|
|
674
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
675
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
676
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
674
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
675
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
676
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
677
677
|
};
|
|
678
678
|
admin?: {
|
|
679
679
|
className?: string;
|
|
@@ -717,9 +717,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
717
717
|
type: "point";
|
|
718
718
|
} | {
|
|
719
719
|
access?: {
|
|
720
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
721
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
722
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
720
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
721
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
722
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
723
723
|
};
|
|
724
724
|
admin?: {
|
|
725
725
|
className?: string;
|
|
@@ -772,9 +772,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
772
772
|
type: "radio";
|
|
773
773
|
} | {
|
|
774
774
|
access?: {
|
|
775
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
776
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
777
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
775
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
776
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
777
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
778
778
|
};
|
|
779
779
|
admin?: {
|
|
780
780
|
className?: string;
|
|
@@ -837,9 +837,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
837
837
|
relationTo: string[];
|
|
838
838
|
} | {
|
|
839
839
|
access?: {
|
|
840
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
841
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
842
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
840
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
841
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
842
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
843
843
|
};
|
|
844
844
|
admin?: {
|
|
845
845
|
className?: string;
|
|
@@ -902,9 +902,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
902
902
|
relationTo: string[];
|
|
903
903
|
} | {
|
|
904
904
|
access?: {
|
|
905
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
906
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
907
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
905
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
906
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
907
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
908
908
|
};
|
|
909
909
|
admin?: {
|
|
910
910
|
className?: string;
|
|
@@ -965,9 +965,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
965
965
|
relationTo: string;
|
|
966
966
|
} | {
|
|
967
967
|
access?: {
|
|
968
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
969
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
970
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
968
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
969
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
970
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
971
971
|
};
|
|
972
972
|
admin?: {
|
|
973
973
|
className?: string;
|
|
@@ -1028,9 +1028,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
1028
1028
|
relationTo: string;
|
|
1029
1029
|
} | {
|
|
1030
1030
|
access?: {
|
|
1031
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1032
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1033
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1031
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1032
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1033
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1034
1034
|
};
|
|
1035
1035
|
admin?: {
|
|
1036
1036
|
className?: string;
|
|
@@ -1089,9 +1089,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
1089
1089
|
beforeValidate?: import("../../fields/config/types.js").FieldHook<any, any, any>[];
|
|
1090
1090
|
};
|
|
1091
1091
|
access?: {
|
|
1092
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1093
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1094
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1092
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1093
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1094
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1095
1095
|
};
|
|
1096
1096
|
defaultValue?: any;
|
|
1097
1097
|
hidden?: boolean;
|
|
@@ -1106,9 +1106,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
1106
1106
|
type: "row";
|
|
1107
1107
|
} | {
|
|
1108
1108
|
access?: {
|
|
1109
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1110
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1111
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1109
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1110
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1111
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1112
1112
|
};
|
|
1113
1113
|
admin?: {
|
|
1114
1114
|
className?: string;
|
|
@@ -1171,9 +1171,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
1171
1171
|
beforeValidate?: import("../../fields/config/types.js").FieldHook<any, any, any>[];
|
|
1172
1172
|
};
|
|
1173
1173
|
access?: {
|
|
1174
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1175
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1176
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1174
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1175
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1176
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1177
1177
|
};
|
|
1178
1178
|
defaultValue?: any;
|
|
1179
1179
|
hidden?: boolean;
|
|
@@ -1187,9 +1187,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
1187
1187
|
type: "tabs";
|
|
1188
1188
|
} | {
|
|
1189
1189
|
access?: {
|
|
1190
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1191
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1192
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1190
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1191
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1192
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1193
1193
|
};
|
|
1194
1194
|
admin?: {
|
|
1195
1195
|
className?: string;
|
|
@@ -1248,9 +1248,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
1248
1248
|
minRows?: number;
|
|
1249
1249
|
} | {
|
|
1250
1250
|
access?: {
|
|
1251
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1252
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1253
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1251
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1252
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1253
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1254
1254
|
};
|
|
1255
1255
|
admin?: {
|
|
1256
1256
|
className?: string;
|
|
@@ -1309,9 +1309,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
1309
1309
|
minRows?: undefined;
|
|
1310
1310
|
} | {
|
|
1311
1311
|
access?: {
|
|
1312
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1313
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1314
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1312
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1313
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1314
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1315
1315
|
};
|
|
1316
1316
|
admin?: {
|
|
1317
1317
|
className?: string;
|
|
@@ -1386,9 +1386,9 @@ export declare const createClientFieldConfig: ({ field: incomingField, t, }: {
|
|
|
1386
1386
|
type: "ui";
|
|
1387
1387
|
} | {
|
|
1388
1388
|
access?: {
|
|
1389
|
-
create?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1390
|
-
read?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1391
|
-
update?: import("../../fields/config/types.js").FieldAccess<any, any
|
|
1389
|
+
create?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1390
|
+
read?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1391
|
+
update?: import("../../fields/config/types.js").FieldAccess<any, any>;
|
|
1392
1392
|
};
|
|
1393
1393
|
admin?: {
|
|
1394
1394
|
className?: string;
|