payload 4.0.0-internal.e16cf59 → 4.0.0-internal.e55ccef
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/LICENSE.md +1 -1
- package/bin.js +11 -0
- package/dist/__testing__/predefinedMigration.d.ts +4 -3
- package/dist/__testing__/predefinedMigration.d.ts.map +1 -1
- package/dist/admin/RichText.d.ts +4 -17
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- package/dist/admin/adapters/cookies.d.ts +21 -0
- package/dist/admin/adapters/cookies.d.ts.map +1 -0
- package/dist/admin/adapters/cookies.js +3 -0
- package/dist/admin/adapters/cookies.js.map +1 -0
- package/dist/admin/adapters/devReload.d.ts +9 -0
- package/dist/admin/adapters/devReload.d.ts.map +1 -0
- package/dist/admin/adapters/devReload.js +6 -0
- package/dist/admin/adapters/devReload.js.map +1 -0
- package/dist/admin/adapters/index.d.ts +7 -0
- package/dist/admin/adapters/index.d.ts.map +1 -0
- package/dist/admin/adapters/index.js +3 -0
- package/dist/admin/adapters/index.js.map +1 -0
- package/dist/admin/adapters/render.d.ts +16 -0
- package/dist/admin/adapters/render.d.ts.map +1 -0
- package/dist/admin/adapters/render.js +7 -0
- package/dist/admin/adapters/render.js.map +1 -0
- package/dist/admin/adapters/router.d.ts +64 -0
- package/dist/admin/adapters/router.d.ts.map +1 -0
- package/dist/admin/adapters/router.js +3 -0
- package/dist/admin/adapters/router.js.map +1 -0
- package/dist/admin/adapters/server.d.ts +23 -0
- package/dist/admin/adapters/server.d.ts.map +1 -0
- package/dist/admin/adapters/server.js +6 -0
- package/dist/admin/adapters/server.js.map +1 -0
- package/dist/admin/adapters/views.d.ts +36 -0
- package/dist/admin/adapters/views.d.ts.map +1 -0
- package/dist/admin/adapters/views.js +7 -0
- package/dist/admin/adapters/views.js.map +1 -0
- package/dist/admin/elements/Table.d.ts +1 -0
- package/dist/admin/elements/Table.d.ts.map +1 -1
- package/dist/admin/elements/Table.js.map +1 -1
- package/dist/admin/fields/Row.d.ts +2 -2
- package/dist/admin/fields/Row.d.ts.map +1 -1
- package/dist/admin/fields/Row.js.map +1 -1
- package/dist/admin/forms/Description.d.ts +2 -2
- package/dist/admin/forms/Description.d.ts.map +1 -1
- package/dist/admin/forms/Description.js.map +1 -1
- package/dist/admin/forms/Field.d.ts +10 -5
- package/dist/admin/forms/Field.d.ts.map +1 -1
- package/dist/admin/forms/Field.js.map +1 -1
- package/dist/admin/functions/index.d.ts +10 -1
- package/dist/admin/functions/index.d.ts.map +1 -1
- package/dist/admin/functions/index.js.map +1 -1
- package/dist/admin/types.d.ts +3 -2
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/admin/views/dashboard.d.ts +7 -0
- package/dist/admin/views/dashboard.d.ts.map +1 -1
- package/dist/admin/views/dashboard.js.map +1 -1
- package/dist/admin/views/document.d.ts +5 -3
- package/dist/admin/views/document.d.ts.map +1 -1
- package/dist/admin/views/document.js.map +1 -1
- package/dist/admin/views/hierarchyList.d.ts +1 -0
- package/dist/admin/views/hierarchyList.d.ts.map +1 -1
- package/dist/admin/views/hierarchyList.js.map +1 -1
- package/dist/admin/views/list.d.ts +10 -1
- package/dist/admin/views/list.d.ts.map +1 -1
- package/dist/admin/views/list.js.map +1 -1
- package/dist/auth/baseFields/apiKey.d.ts +10 -2
- package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
- package/dist/auth/baseFields/apiKey.js +35 -24
- package/dist/auth/baseFields/apiKey.js.map +1 -1
- package/dist/auth/cookies.d.ts +2 -2
- package/dist/auth/cookies.d.ts.map +1 -1
- package/dist/auth/defaultAccess.d.ts +1 -1
- package/dist/auth/defaultAccess.d.ts.map +1 -1
- package/dist/auth/defaultAccess.js +1 -1
- package/dist/auth/defaultAccess.js.map +1 -1
- package/dist/auth/defaultUser.d.ts.map +1 -1
- package/dist/auth/defaultUser.js +2 -1
- package/dist/auth/defaultUser.js.map +1 -1
- package/dist/auth/extractJWT.d.ts +1 -1
- package/dist/auth/getAuthFields.js +2 -2
- package/dist/auth/getAuthFields.js.map +1 -1
- package/dist/auth/getFieldsToSign.d.ts +1 -1
- package/dist/auth/getLoginOptions.d.ts +1 -1
- package/dist/auth/operations/auth.d.ts +2 -2
- package/dist/auth/operations/auth.d.ts.map +1 -1
- package/dist/auth/operations/auth.js.map +1 -1
- package/dist/auth/operations/login.d.ts +2 -1
- package/dist/auth/operations/login.d.ts.map +1 -1
- package/dist/auth/operations/login.js.map +1 -1
- package/dist/auth/operations/me.d.ts +2 -2
- package/dist/auth/operations/me.d.ts.map +1 -1
- package/dist/auth/operations/me.js.map +1 -1
- package/dist/auth/operations/refresh.d.ts.map +1 -1
- package/dist/auth/operations/refresh.js +9 -3
- package/dist/auth/operations/refresh.js.map +1 -1
- package/dist/auth/operations/resetPassword.d.ts.map +1 -1
- package/dist/auth/operations/resetPassword.js.map +1 -1
- package/dist/auth/sendVerificationEmail.d.ts +2 -2
- package/dist/auth/sendVerificationEmail.d.ts.map +1 -1
- package/dist/auth/sendVerificationEmail.js +1 -1
- package/dist/auth/sendVerificationEmail.js.map +1 -1
- package/dist/auth/sessions.d.ts +4 -5
- package/dist/auth/sessions.d.ts.map +1 -1
- package/dist/auth/sessions.js +5 -3
- package/dist/auth/sessions.js.map +1 -1
- package/dist/auth/strategies/apiKey.d.ts.map +1 -1
- package/dist/auth/strategies/apiKey.js +6 -17
- package/dist/auth/strategies/apiKey.js.map +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.d.ts +2 -2
- package/dist/auth/strategies/local/incrementLoginAttempts.d.ts.map +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.js +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.js.map +1 -1
- package/dist/auth/types.d.ts +25 -21
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/types.js.map +1 -1
- package/dist/bin/build.d.ts +49 -0
- package/dist/bin/build.d.ts.map +1 -0
- package/dist/bin/build.js +226 -0
- package/dist/bin/build.js.map +1 -0
- package/dist/bin/build.spec.js +594 -0
- package/dist/bin/build.spec.js.map +1 -0
- package/dist/bin/frameworkConventions.d.ts +8 -0
- package/dist/bin/frameworkConventions.d.ts.map +1 -0
- package/dist/bin/frameworkConventions.js +8 -0
- package/dist/bin/frameworkConventions.js.map +1 -0
- package/dist/bin/generateImportMap/index.d.ts.map +1 -1
- package/dist/bin/generateImportMap/index.js +8 -5
- package/dist/bin/generateImportMap/index.js.map +1 -1
- package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateCollections.js +11 -0
- package/dist/bin/generateImportMap/iterateCollections.js.map +1 -1
- package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateConfig.js +12 -0
- package/dist/bin/generateImportMap/iterateConfig.js.map +1 -1
- package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateFields.js +4 -1
- package/dist/bin/generateImportMap/iterateFields.js.map +1 -1
- package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.d.ts +5 -1
- package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +1 -1
- package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js +33 -18
- package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js.map +1 -1
- package/dist/bin/generateTypes.d.ts +3 -2
- package/dist/bin/generateTypes.d.ts.map +1 -1
- package/dist/bin/generateTypes.js +11 -1
- package/dist/bin/generateTypes.js.map +1 -1
- package/dist/bin/index.d.ts.map +1 -1
- package/dist/bin/index.js +9 -0
- package/dist/bin/index.js.map +1 -1
- package/dist/bin/loadEnv.d.ts +3 -1
- package/dist/bin/loadEnv.d.ts.map +1 -1
- package/dist/bin/loadEnv.js +40 -10
- package/dist/bin/loadEnv.js.map +1 -1
- package/dist/collections/config/client.d.ts +3 -3
- package/dist/collections/config/client.d.ts.map +1 -1
- package/dist/collections/config/client.js +1 -0
- package/dist/collections/config/client.js.map +1 -1
- package/dist/collections/config/defaults.d.ts +0 -4
- package/dist/collections/config/defaults.d.ts.map +1 -1
- package/dist/collections/config/defaults.js +2 -17
- package/dist/collections/config/defaults.js.map +1 -1
- package/dist/collections/config/defaults.spec.js +47 -0
- package/dist/collections/config/defaults.spec.js.map +1 -0
- package/dist/collections/config/sanitize.d.ts +10 -1
- package/dist/collections/config/sanitize.d.ts.map +1 -1
- package/dist/collections/config/sanitize.js +1 -11
- package/dist/collections/config/sanitize.js.map +1 -1
- package/dist/collections/config/types.d.ts +13 -9
- package/dist/collections/config/types.d.ts.map +1 -1
- package/dist/collections/config/types.js.map +1 -1
- package/dist/collections/dataloader.d.ts +1 -1
- package/dist/collections/endpoints/create.d.ts.map +1 -1
- package/dist/collections/endpoints/create.js +0 -2
- package/dist/collections/endpoints/create.js.map +1 -1
- package/dist/collections/endpoints/updateByID.d.ts.map +1 -1
- package/dist/collections/endpoints/updateByID.js +1 -2
- package/dist/collections/endpoints/updateByID.js.map +1 -1
- package/dist/collections/operations/count.d.ts.map +1 -1
- package/dist/collections/operations/count.js +1 -0
- package/dist/collections/operations/count.js.map +1 -1
- package/dist/collections/operations/create.d.ts +0 -1
- package/dist/collections/operations/create.d.ts.map +1 -1
- package/dist/collections/operations/create.js +15 -6
- package/dist/collections/operations/create.js.map +1 -1
- package/dist/collections/operations/delete.d.ts.map +1 -1
- package/dist/collections/operations/delete.js +3 -0
- package/dist/collections/operations/delete.js.map +1 -1
- package/dist/collections/operations/findDistinct.d.ts.map +1 -1
- package/dist/collections/operations/findDistinct.js +1 -0
- package/dist/collections/operations/findDistinct.js.map +1 -1
- package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
- package/dist/collections/operations/local/count.d.ts +3 -3
- package/dist/collections/operations/local/count.d.ts.map +1 -1
- package/dist/collections/operations/local/count.js.map +1 -1
- package/dist/collections/operations/local/countVersions.d.ts +3 -3
- package/dist/collections/operations/local/countVersions.d.ts.map +1 -1
- package/dist/collections/operations/local/countVersions.js.map +1 -1
- package/dist/collections/operations/local/create.d.ts +3 -3
- package/dist/collections/operations/local/create.d.ts.map +1 -1
- package/dist/collections/operations/local/create.js.map +1 -1
- package/dist/collections/operations/local/delete.d.ts +3 -3
- package/dist/collections/operations/local/delete.d.ts.map +1 -1
- package/dist/collections/operations/local/delete.js.map +1 -1
- package/dist/collections/operations/local/duplicate.d.ts +3 -3
- package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
- package/dist/collections/operations/local/duplicate.js.map +1 -1
- package/dist/collections/operations/local/find.d.ts +3 -3
- package/dist/collections/operations/local/find.d.ts.map +1 -1
- package/dist/collections/operations/local/find.js.map +1 -1
- package/dist/collections/operations/local/findByID.d.ts +3 -3
- package/dist/collections/operations/local/findByID.d.ts.map +1 -1
- package/dist/collections/operations/local/findByID.js.map +1 -1
- package/dist/collections/operations/local/findDistinct.d.ts +2 -2
- package/dist/collections/operations/local/findDistinct.d.ts.map +1 -1
- package/dist/collections/operations/local/findDistinct.js.map +1 -1
- package/dist/collections/operations/local/findVersionByID.d.ts +3 -3
- package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
- package/dist/collections/operations/local/findVersionByID.js.map +1 -1
- package/dist/collections/operations/local/findVersions.d.ts +3 -3
- package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
- package/dist/collections/operations/local/findVersions.js.map +1 -1
- package/dist/collections/operations/local/restoreVersion.d.ts +3 -3
- package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
- package/dist/collections/operations/local/restoreVersion.js.map +1 -1
- package/dist/collections/operations/local/update.d.ts +7 -11
- package/dist/collections/operations/local/update.d.ts.map +1 -1
- package/dist/collections/operations/local/update.js +1 -2
- package/dist/collections/operations/local/update.js.map +1 -1
- package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
- package/dist/collections/operations/update.d.ts +0 -1
- package/dist/collections/operations/update.d.ts.map +1 -1
- package/dist/collections/operations/update.js +8 -4
- package/dist/collections/operations/update.js.map +1 -1
- package/dist/collections/operations/updateByID.d.ts +0 -1
- package/dist/collections/operations/updateByID.d.ts.map +1 -1
- package/dist/collections/operations/updateByID.js +1 -5
- package/dist/collections/operations/updateByID.js.map +1 -1
- package/dist/collections/operations/utilities/buildAfterOperation.d.ts +1 -1
- package/dist/collections/operations/utilities/buildAfterOperation.d.ts.map +1 -1
- package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.d.ts +9 -0
- package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.d.ts.map +1 -0
- package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.js +170 -0
- package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.js.map +1 -0
- package/dist/collections/operations/utilities/types.d.ts +20 -29
- package/dist/collections/operations/utilities/types.d.ts.map +1 -1
- package/dist/collections/operations/utilities/types.js.map +1 -1
- package/dist/collections/operations/utilities/update.d.ts +1 -2
- package/dist/collections/operations/utilities/update.d.ts.map +1 -1
- package/dist/collections/operations/utilities/update.js +64 -65
- package/dist/collections/operations/utilities/update.js.map +1 -1
- package/dist/config/build.d.ts.map +1 -1
- package/dist/config/build.js +8 -0
- package/dist/config/build.js.map +1 -1
- package/dist/config/client.d.ts +3 -3
- package/dist/config/client.d.ts.map +1 -1
- package/dist/config/client.js +2 -1
- package/dist/config/client.js.map +1 -1
- package/dist/config/defaults.d.ts +0 -4
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +0 -78
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/definePlugin.d.ts +10 -10
- package/dist/config/definePlugin.d.ts.map +1 -1
- package/dist/config/definePlugin.js +7 -11
- package/dist/config/definePlugin.js.map +1 -1
- package/dist/config/orderable/fractional-indexing.d.ts +23 -23
- package/dist/config/orderable/fractional-indexing.d.ts.map +1 -1
- package/dist/config/orderable/index.d.ts.map +1 -1
- package/dist/config/orderable/index.js +23 -0
- package/dist/config/orderable/index.js.map +1 -1
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/config/sanitize.js +139 -27
- package/dist/config/sanitize.js.map +1 -1
- package/dist/config/types.d.ts +126 -38
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +2 -0
- package/dist/config/types.js.map +1 -1
- package/dist/database/getLocalizedPaths.d.ts.map +1 -1
- package/dist/database/getLocalizedPaths.js +1 -1
- package/dist/database/getLocalizedPaths.js.map +1 -1
- package/dist/database/migrations/migrationsCollection.d.ts.map +1 -1
- package/dist/database/migrations/migrationsCollection.js +2 -1
- package/dist/database/migrations/migrationsCollection.js.map +1 -1
- package/dist/database/types.d.ts +1 -5
- package/dist/database/types.d.ts.map +1 -1
- package/dist/database/types.js.map +1 -1
- package/dist/errors/APIError.d.ts.map +1 -1
- package/dist/errors/AuthenticationError.d.ts.map +1 -1
- package/dist/errors/DuplicateCollection.d.ts.map +1 -1
- package/dist/errors/DuplicateFieldName.d.ts.map +1 -1
- package/dist/errors/DuplicateGlobal.d.ts.map +1 -1
- package/dist/errors/ErrorDeletingFile.d.ts.map +1 -1
- package/dist/errors/FileRetrievalError.d.ts.map +1 -1
- package/dist/errors/FileUploadError.d.ts.map +1 -1
- package/dist/errors/Forbidden.d.ts.map +1 -1
- package/dist/errors/InvalidConfiguration.d.ts.map +1 -1
- package/dist/errors/InvalidFieldJoin.d.ts.map +1 -1
- package/dist/errors/InvalidFieldName.d.ts.map +1 -1
- package/dist/errors/InvalidFieldRelationship.d.ts.map +1 -1
- package/dist/errors/InvalidSchema.d.ts.map +1 -1
- package/dist/errors/Locked.d.ts.map +1 -1
- package/dist/errors/LockedAuth.d.ts.map +1 -1
- package/dist/errors/MissingCollectionLabel.d.ts.map +1 -1
- package/dist/errors/MissingEditorProp.d.ts.map +1 -1
- package/dist/errors/MissingFieldInputOptions.d.ts.map +1 -1
- package/dist/errors/MissingFieldType.d.ts.map +1 -1
- package/dist/errors/MissingFile.d.ts.map +1 -1
- package/dist/errors/NotFound.d.ts.map +1 -1
- package/dist/errors/QueryError.d.ts.map +1 -1
- package/dist/errors/ReservedFieldName.d.ts.map +1 -1
- package/dist/errors/TimestampsRequired.d.ts.map +1 -1
- package/dist/errors/UnauthorizedError.d.ts.map +1 -1
- package/dist/errors/UnverifiedEmail.d.ts.map +1 -1
- package/dist/errors/ValidationError.d.ts +1 -0
- package/dist/errors/ValidationError.d.ts.map +1 -1
- package/dist/errors/ValidationError.js.map +1 -1
- package/dist/exports/internal.d.ts +2 -0
- package/dist/exports/internal.d.ts.map +1 -1
- package/dist/exports/internal.js +2 -0
- package/dist/exports/internal.js.map +1 -1
- package/dist/exports/migrations.d.ts +5 -13
- package/dist/exports/migrations.d.ts.map +1 -1
- package/dist/exports/migrations.js +5 -13
- package/dist/exports/migrations.js.map +1 -1
- package/dist/exports/shared.d.ts +24 -2
- package/dist/exports/shared.d.ts.map +1 -1
- package/dist/exports/shared.js +23 -1
- package/dist/exports/shared.js.map +1 -1
- package/dist/fields/baseFields/slug/countVersions.d.ts.map +1 -1
- package/dist/fields/baseFields/slug/countVersions.js +6 -8
- package/dist/fields/baseFields/slug/countVersions.js.map +1 -1
- package/dist/fields/baseFields/slug/generateSlug.d.ts +14 -7
- package/dist/fields/baseFields/slug/generateSlug.d.ts.map +1 -1
- package/dist/fields/baseFields/slug/generateSlug.js +53 -73
- package/dist/fields/baseFields/slug/generateSlug.js.map +1 -1
- package/dist/fields/baseFields/slug/types.d.ts +14 -0
- package/dist/fields/baseFields/slug/types.d.ts.map +1 -0
- package/dist/fields/baseFields/slug/types.js +6 -0
- package/dist/fields/baseFields/slug/types.js.map +1 -0
- package/dist/fields/config/client.d.ts +6 -6
- package/dist/fields/config/client.d.ts.map +1 -1
- package/dist/fields/config/client.js +14 -14
- package/dist/fields/config/client.js.map +1 -1
- package/dist/fields/config/sanitize.d.ts.map +1 -1
- package/dist/fields/config/sanitize.js +41 -14
- package/dist/fields/config/sanitize.js.map +1 -1
- package/dist/fields/config/types.d.ts +80 -76
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js +1 -1
- package/dist/fields/config/types.js.map +1 -1
- package/dist/fields/hooks/afterChange/promise.js +1 -1
- package/dist/fields/hooks/afterChange/promise.js.map +1 -1
- package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/promise.js +13 -3
- package/dist/fields/hooks/afterRead/promise.js.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.js +3 -3
- package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
- package/dist/fields/hooks/beforeDuplicate/promise.js +2 -2
- package/dist/fields/hooks/beforeDuplicate/promise.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.js +16 -5
- package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/stripNullRows.d.ts +10 -0
- package/dist/fields/hooks/beforeValidate/stripNullRows.d.ts.map +1 -0
- package/dist/fields/hooks/beforeValidate/stripNullRows.js +18 -0
- package/dist/fields/hooks/beforeValidate/stripNullRows.js.map +1 -0
- package/dist/fields/setDefaultBeforeDuplicate.js +1 -0
- package/dist/fields/setDefaultBeforeDuplicate.js.map +1 -1
- package/dist/fields/sortableFieldTypes.d.ts.map +1 -1
- package/dist/fields/sortableFieldTypes.js +1 -0
- package/dist/fields/sortableFieldTypes.js.map +1 -1
- package/dist/fields/validations.d.ts +4 -1
- package/dist/fields/validations.d.ts.map +1 -1
- package/dist/fields/validations.js +12 -4
- package/dist/fields/validations.js.map +1 -1
- package/dist/globals/config/client.d.ts +4 -4
- package/dist/globals/config/sanitize.d.ts +6 -1
- package/dist/globals/config/sanitize.d.ts.map +1 -1
- package/dist/globals/config/sanitize.js +2 -6
- package/dist/globals/config/sanitize.js.map +1 -1
- package/dist/globals/config/sanitize.spec.js +43 -0
- package/dist/globals/config/sanitize.spec.js.map +1 -0
- package/dist/globals/endpoints/update.d.ts.map +1 -1
- package/dist/globals/endpoints/update.js +0 -2
- package/dist/globals/endpoints/update.js.map +1 -1
- package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/local/countVersions.d.ts +3 -3
- package/dist/globals/operations/local/countVersions.d.ts.map +1 -1
- package/dist/globals/operations/local/countVersions.js.map +1 -1
- package/dist/globals/operations/local/findOne.d.ts +3 -3
- package/dist/globals/operations/local/findOne.d.ts.map +1 -1
- package/dist/globals/operations/local/findOne.js.map +1 -1
- package/dist/globals/operations/local/findVersionByID.d.ts +3 -3
- package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/local/findVersionByID.js.map +1 -1
- package/dist/globals/operations/local/findVersions.d.ts +3 -3
- package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
- package/dist/globals/operations/local/findVersions.js.map +1 -1
- package/dist/globals/operations/local/restoreVersion.d.ts +3 -3
- package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
- package/dist/globals/operations/local/restoreVersion.js.map +1 -1
- package/dist/globals/operations/local/update.d.ts +7 -9
- package/dist/globals/operations/local/update.d.ts.map +1 -1
- package/dist/globals/operations/local/update.js +1 -2
- package/dist/globals/operations/local/update.js.map +1 -1
- package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
- package/dist/globals/operations/update.d.ts +0 -1
- package/dist/globals/operations/update.d.ts.map +1 -1
- package/dist/globals/operations/update.js +52 -58
- package/dist/globals/operations/update.js.map +1 -1
- package/dist/hierarchy/resolveHierarchyCollections.js +1 -1
- package/dist/hierarchy/resolveHierarchyCollections.js.map +1 -1
- package/dist/hierarchy/sanitizeHierarchyCollection.d.ts.map +1 -1
- package/dist/hierarchy/sanitizeHierarchyCollection.js +3 -1
- package/dist/hierarchy/sanitizeHierarchyCollection.js.map +1 -1
- package/dist/hierarchy/types.d.ts +8 -1
- package/dist/hierarchy/types.d.ts.map +1 -1
- package/dist/hierarchy/types.js.map +1 -1
- package/dist/index.bundled.d.ts +864 -468
- package/dist/index.d.ts +82 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +55 -37
- package/dist/index.js.map +1 -1
- package/dist/kv/adapters/DatabaseKVAdapter.d.ts.map +1 -1
- package/dist/kv/adapters/DatabaseKVAdapter.js +1 -0
- package/dist/kv/adapters/DatabaseKVAdapter.js.map +1 -1
- package/dist/kv/adapters/InMemoryKVAdapter.d.ts.map +1 -1
- package/dist/locked-documents/config.d.ts.map +1 -1
- package/dist/locked-documents/config.js +2 -1
- package/dist/locked-documents/config.js.map +1 -1
- package/dist/preferences/config.d.ts.map +1 -1
- package/dist/preferences/config.js +2 -1
- package/dist/preferences/config.js.map +1 -1
- package/dist/preferences/keys.d.ts +8 -4
- package/dist/preferences/keys.d.ts.map +1 -1
- package/dist/preferences/keys.js +4 -1
- package/dist/preferences/keys.js.map +1 -1
- package/dist/preferences/types.d.ts +15 -0
- package/dist/preferences/types.d.ts.map +1 -1
- package/dist/preferences/types.js +3 -1
- package/dist/preferences/types.js.map +1 -1
- package/dist/query-presets/config.d.ts.map +1 -1
- package/dist/query-presets/config.js +77 -37
- package/dist/query-presets/config.js.map +1 -1
- package/dist/query-presets/constraints.d.ts.map +1 -1
- package/dist/query-presets/constraints.js +3 -2
- package/dist/query-presets/constraints.js.map +1 -1
- package/dist/query-presets/types.d.ts +1 -1
- package/dist/query-presets/types.d.ts.map +1 -1
- package/dist/queues/config/collection.d.ts.map +1 -1
- package/dist/queues/config/collection.js +2 -1
- package/dist/queues/config/collection.js.map +1 -1
- package/dist/queues/config/generateJobsJSONSchemas.d.ts +1 -1
- package/dist/queues/config/generateJobsJSONSchemas.d.ts.map +1 -1
- package/dist/queues/config/generateJobsJSONSchemas.js +33 -12
- package/dist/queues/config/generateJobsJSONSchemas.js.map +1 -1
- package/dist/queues/config/global.d.ts.map +1 -1
- package/dist/queues/config/global.js +2 -1
- package/dist/queues/config/global.js.map +1 -1
- package/dist/queues/errors/index.d.ts.map +1 -1
- package/dist/queues/localAPI.d.ts +8 -8
- package/dist/queues/localAPI.d.ts.map +1 -1
- package/dist/queues/operations/runJobs/runJob/importHandlerPath.d.ts +1 -1
- package/dist/queues/operations/runJobs/runJob/importHandlerPath.d.ts.map +1 -1
- package/dist/queues/utilities/getCurrentDate.d.ts.map +1 -1
- package/dist/types/constants.d.ts +2 -2
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/index.d.ts +18 -8
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/uploads/cropImage.d.ts.map +1 -1
- package/dist/uploads/endpoints/getFileFromURL.d.ts.map +1 -1
- package/dist/uploads/endpoints/getFileFromURL.js +9 -5
- package/dist/uploads/endpoints/getFileFromURL.js.map +1 -1
- package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts.map +1 -1
- package/dist/uploads/fetchAPI-multipart/processMultipart.js +4 -0
- package/dist/uploads/fetchAPI-multipart/processMultipart.js.map +1 -1
- package/dist/uploads/generateFileData.d.ts +2 -1
- package/dist/uploads/generateFileData.d.ts.map +1 -1
- package/dist/uploads/generateFileData.js +5 -2
- package/dist/uploads/generateFileData.js.map +1 -1
- package/dist/uploads/getBaseFields.d.ts.map +1 -1
- package/dist/uploads/getBaseFields.js +7 -19
- package/dist/uploads/getBaseFields.js.map +1 -1
- package/dist/uploads/getFileByPath.d.ts +1 -1
- package/dist/uploads/image-resizing/getImageResizeAction.d.ts +1 -1
- package/dist/uploads/matchMimeType.d.ts +8 -0
- package/dist/uploads/matchMimeType.d.ts.map +1 -0
- package/dist/uploads/matchMimeType.js +19 -0
- package/dist/uploads/matchMimeType.js.map +1 -0
- package/dist/uploads/matchMimeType.spec.js +66 -0
- package/dist/uploads/matchMimeType.spec.js.map +1 -0
- package/dist/uploads/safeFetch.d.ts +1 -1
- package/dist/uploads/safeFetch.d.ts.map +1 -1
- package/dist/uploads/safeFetch.js +11 -5
- package/dist/uploads/safeFetch.js.map +1 -1
- package/dist/uploads/types.d.ts +33 -29
- package/dist/uploads/types.d.ts.map +1 -1
- package/dist/uploads/types.js.map +1 -1
- package/dist/utilities/addDataAndFileToRequest.d.ts.map +1 -1
- package/dist/utilities/addDataAndFileToRequest.js +6 -0
- package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
- package/dist/utilities/appendDateTimezoneSelectFields.js +2 -2
- package/dist/utilities/appendDateTimezoneSelectFields.js.map +1 -1
- package/dist/utilities/configToJSONSchema.d.ts +68 -16
- package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
- package/dist/utilities/configToJSONSchema.js +312 -117
- package/dist/utilities/configToJSONSchema.js.map +1 -1
- package/dist/utilities/configToJSONSchema.spec.js +656 -85
- package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
- package/dist/utilities/createLocalReq.d.ts +2 -2
- package/dist/utilities/createLocalReq.d.ts.map +1 -1
- package/dist/utilities/createLocalReq.js.map +1 -1
- package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
- package/dist/utilities/createPayloadRequest.js +1 -0
- package/dist/utilities/createPayloadRequest.js.map +1 -1
- package/dist/utilities/deepCopyObject.d.ts.map +1 -1
- package/dist/utilities/deepCopyObject.js +8 -0
- package/dist/utilities/deepCopyObject.js.map +1 -1
- package/dist/utilities/dependencies/dependencyChecker.js +1 -1
- package/dist/utilities/dependencies/dependencyChecker.js.map +1 -1
- package/dist/utilities/dependencies/getDependencies.d.ts.map +1 -1
- package/dist/utilities/dependencies/getDependencies.js +5 -5
- package/dist/utilities/dependencies/getDependencies.js.map +1 -1
- package/dist/utilities/dynamicImport.js +1 -1
- package/dist/utilities/dynamicImport.js.map +1 -1
- package/dist/utilities/filterDataToSelectedLocales.d.ts.map +1 -1
- package/dist/utilities/filterDataToSelectedLocales.js +5 -12
- package/dist/utilities/filterDataToSelectedLocales.js.map +1 -1
- package/dist/utilities/filterDataToSelectedLocales.spec.js +1 -2
- package/dist/utilities/filterDataToSelectedLocales.spec.js.map +1 -1
- package/dist/utilities/flattenAllFields.d.ts.map +1 -1
- package/dist/utilities/flattenAllFields.js +7 -22
- package/dist/utilities/flattenAllFields.js.map +1 -1
- package/dist/utilities/formatErrors.d.ts.map +1 -1
- package/dist/utilities/formatErrors.js +3 -1
- package/dist/utilities/formatErrors.js.map +1 -1
- package/dist/utilities/getDataByPath.d.ts.map +1 -1
- package/dist/utilities/getEntityPermissions/getEntityPermissions.d.ts.map +1 -1
- package/dist/utilities/getEntityPermissions/getEntityPermissions.js +2 -0
- package/dist/utilities/getEntityPermissions/getEntityPermissions.js.map +1 -1
- package/dist/utilities/getEntityPermissions/populateFieldPermissions.d.ts +7 -1
- package/dist/utilities/getEntityPermissions/populateFieldPermissions.d.ts.map +1 -1
- package/dist/utilities/getEntityPermissions/populateFieldPermissions.js +24 -7
- package/dist/utilities/getEntityPermissions/populateFieldPermissions.js.map +1 -1
- package/dist/utilities/getFieldByPath.d.ts.map +1 -1
- package/dist/utilities/getFieldByPath.js +1 -1
- package/dist/utilities/getFieldByPath.js.map +1 -1
- package/dist/utilities/getRequestLanguage.d.ts +2 -2
- package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
- package/dist/utilities/getRequestLanguage.js.map +1 -1
- package/dist/utilities/getRequestOrigin.d.ts +2 -2
- package/dist/utilities/getVersionsConfig.d.ts +1 -1
- package/dist/utilities/getVersionsConfig.js.map +1 -1
- package/dist/utilities/handleEndpoints.d.ts.map +1 -1
- package/dist/utilities/handleEndpoints.js +7 -4
- package/dist/utilities/handleEndpoints.js.map +1 -1
- package/dist/utilities/isEntityHidden.d.ts +2 -2
- package/dist/utilities/isURLAllowed.d.ts.map +1 -1
- package/dist/utilities/isURLAllowed.js +9 -3
- package/dist/utilities/isURLAllowed.js.map +1 -1
- package/dist/utilities/isURLAllowed.spec.js +78 -0
- package/dist/utilities/isURLAllowed.spec.js.map +1 -0
- package/dist/utilities/isValidID.d.ts +1 -1
- package/dist/utilities/logger.d.ts +1 -1
- package/dist/utilities/mergeLocalizedData.d.ts +14 -4
- package/dist/utilities/mergeLocalizedData.d.ts.map +1 -1
- package/dist/utilities/mergeLocalizedData.js +54 -46
- package/dist/utilities/mergeLocalizedData.js.map +1 -1
- package/dist/utilities/mergeLocalizedData.spec.js +23 -23
- package/dist/utilities/mergeLocalizedData.spec.js.map +1 -1
- package/dist/utilities/miniChalk.d.ts.map +1 -1
- package/dist/utilities/parseCookies.d.ts +1 -1
- package/dist/utilities/parseParams/index.d.ts +2 -5
- package/dist/utilities/parseParams/index.d.ts.map +1 -1
- package/dist/utilities/parseParams/index.js.map +1 -1
- package/dist/utilities/parseParams/index.spec.js +0 -9
- package/dist/utilities/parseParams/index.spec.js.map +1 -1
- package/dist/utilities/resolveSelect.d.ts.map +1 -1
- package/dist/utilities/telemetry/conf/index.d.ts.map +1 -1
- package/dist/utilities/telemetry/events/adminInit.d.ts.map +1 -1
- package/dist/utilities/telemetry/events/adminInit.js +2 -3
- package/dist/utilities/telemetry/events/adminInit.js.map +1 -1
- package/dist/utilities/telemetry/events/serverInit.d.ts.map +1 -1
- package/dist/utilities/telemetry/events/serverInit.js +2 -3
- package/dist/utilities/telemetry/events/serverInit.js.map +1 -1
- package/dist/utilities/telemetry/index.d.ts +15 -4
- package/dist/utilities/telemetry/index.d.ts.map +1 -1
- package/dist/utilities/telemetry/index.js +6 -1
- package/dist/utilities/telemetry/index.js.map +1 -1
- package/dist/utilities/telemetry/index.spec.js +43 -0
- package/dist/utilities/telemetry/index.spec.js.map +1 -0
- package/dist/utilities/transformColumnPreferences.js +4 -2
- package/dist/utilities/transformColumnPreferences.js.map +1 -1
- package/dist/utilities/traverseFields.d.ts.map +1 -1
- package/dist/utilities/traverseFields.js +2 -4
- package/dist/utilities/traverseFields.js.map +1 -1
- package/dist/utilities/traverseForLocalizedFields.d.ts.map +1 -1
- package/dist/utilities/traverseForLocalizedFields.js +3 -0
- package/dist/utilities/traverseForLocalizedFields.js.map +1 -1
- package/dist/versions/baseFields.d.ts +1 -2
- package/dist/versions/baseFields.d.ts.map +1 -1
- package/dist/versions/baseFields.js +0 -13
- package/dist/versions/baseFields.js.map +1 -1
- package/dist/versions/buildCollectionFields.d.ts.map +1 -1
- package/dist/versions/buildCollectionFields.js +0 -2
- package/dist/versions/buildCollectionFields.js.map +1 -1
- package/dist/versions/buildGlobalFields.d.ts.map +1 -1
- package/dist/versions/buildGlobalFields.js +0 -2
- package/dist/versions/buildGlobalFields.js.map +1 -1
- package/dist/versions/buildSingleLocalePublishData.d.ts +32 -0
- package/dist/versions/buildSingleLocalePublishData.d.ts.map +1 -0
- package/dist/versions/buildSingleLocalePublishData.js +37 -0
- package/dist/versions/buildSingleLocalePublishData.js.map +1 -0
- package/dist/versions/defaults.d.ts.map +1 -1
- package/dist/versions/getLatestCollectionVersion.d.ts.map +1 -1
- package/dist/versions/payloadPackageList.d.ts.map +1 -1
- package/dist/versions/payloadPackageList.js +0 -1
- package/dist/versions/payloadPackageList.js.map +1 -1
- package/dist/versions/saveVersion.d.ts +0 -2
- package/dist/versions/saveVersion.d.ts.map +1 -1
- package/dist/versions/saveVersion.js +12 -17
- package/dist/versions/saveVersion.js.map +1 -1
- package/dist/versions/schedule/job.d.ts.map +1 -1
- package/dist/versions/schedule/job.js +6 -10
- package/dist/versions/schedule/job.js.map +1 -1
- package/dist/versions/types.d.ts +2 -15
- package/dist/versions/types.d.ts.map +1 -1
- package/dist/versions/types.js.map +1 -1
- package/package.json +23 -20
- package/dist/database/migrations/templates/localizeStatus.d.ts +0 -10
- package/dist/database/migrations/templates/localizeStatus.d.ts.map +0 -1
- package/dist/database/migrations/templates/localizeStatus.js +0 -54
- package/dist/database/migrations/templates/localizeStatus.js.map +0 -1
- package/dist/fields/baseFields/slug/index.d.ts +0 -89
- package/dist/fields/baseFields/slug/index.d.ts.map +0 -1
- package/dist/fields/baseFields/slug/index.js +0 -81
- package/dist/fields/baseFields/slug/index.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/index.d.ts +0 -12
- package/dist/versions/migrations/localizeStatus/index.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/index.js +0 -33
- package/dist/versions/migrations/localizeStatus/index.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/down.d.ts +0 -9
- package/dist/versions/migrations/localizeStatus/mongo/down.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/down.js +0 -112
- package/dist/versions/migrations/localizeStatus/mongo/down.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/index.d.ts +0 -8
- package/dist/versions/migrations/localizeStatus/mongo/index.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/index.js +0 -8
- package/dist/versions/migrations/localizeStatus/mongo/index.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/up.d.ts +0 -9
- package/dist/versions/migrations/localizeStatus/mongo/up.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/up.js +0 -220
- package/dist/versions/migrations/localizeStatus/mongo/up.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/down.d.ts +0 -11
- package/dist/versions/migrations/localizeStatus/sql/down.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/down.js +0 -213
- package/dist/versions/migrations/localizeStatus/sql/down.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/index.d.ts +0 -8
- package/dist/versions/migrations/localizeStatus/sql/index.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/index.js +0 -8
- package/dist/versions/migrations/localizeStatus/sql/index.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.d.ts +0 -13
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.js +0 -51
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.d.ts +0 -13
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.js +0 -54
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/up.d.ts +0 -11
- package/dist/versions/migrations/localizeStatus/sql/up.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/up.js +0 -277
- package/dist/versions/migrations/localizeStatus/sql/up.js.map +0 -1
- package/dist/versions/saveSnapshot.d.ts +0 -18
- package/dist/versions/saveSnapshot.d.ts.map +0 -1
- package/dist/versions/saveSnapshot.js +0 -38
- package/dist/versions/saveSnapshot.js.map +0 -1
package/dist/index.bundled.d.ts
CHANGED
|
@@ -15,11 +15,10 @@ import { ParsedArgs } from 'minimist';
|
|
|
15
15
|
import { lookup } from 'dns';
|
|
16
16
|
import deepMerge from 'deepmerge';
|
|
17
17
|
export { default as deepMerge } from 'deepmerge';
|
|
18
|
-
import { ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adapters/request-cookies.js';
|
|
19
18
|
import { PinoPretty } from 'pino-pretty';
|
|
20
19
|
import { DatePickerProps } from 'react-datepicker';
|
|
21
20
|
|
|
22
|
-
declare const clientTranslationKeys: ("authentication:account" | "authentication:accountOfCurrentUser" | "authentication:accountVerified" | "authentication:alreadyActivated" | "authentication:alreadyLoggedIn" | "authentication:apiKey" | "authentication:authenticated" | "authentication:backToLogin" | "authentication:beginCreateFirstUser" | "authentication:changePassword" | "authentication:checkYourEmailForPasswordReset" | "authentication:confirmGeneration" | "authentication:confirmPassword" | "authentication:createFirstUser" | "authentication:emailNotValid" | "authentication:emailOrUsername" | "authentication:emailSent" | "authentication:emailVerified" | "authentication:enableAPIKey" | "authentication:failedToUnlock" | "authentication:forceUnlock" | "authentication:forgotPassword" | "authentication:forgotPasswordEmailInstructions" | "authentication:forgotPasswordUsernameInstructions" | "authentication:usernameNotValid" | "authentication:forgotPasswordQuestion" | "authentication:generate" | "authentication:generateNewAPIKey" | "authentication:generatingNewAPIKeyWillInvalidate" | "authentication:logBackIn" | "authentication:loggedIn" | "authentication:loggedInChangePassword" | "authentication:loggedOutInactivity" | "authentication:loggedOutSuccessfully" | "authentication:loggingOut" | "authentication:login" | "authentication:logOut" | "authentication:logout" | "authentication:logoutSuccessful" | "authentication:logoutUser" | "authentication:newAPIKeyGenerated" | "authentication:newPassword" | "authentication:passed" | "authentication:passwordResetSuccessfully" | "authentication:resetPassword" | "authentication:stayLoggedIn" | "authentication:successfullyRegisteredFirstUser" | "authentication:successfullyUnlocked" | "authentication:tokenRefreshSuccessful" | "authentication:unableToVerify" | "authentication:username" | "authentication:verified" | "authentication:verifiedSuccessfully" | "authentication:verify" | "authentication:verifyUser" | "authentication:youAreInactive" | "dashboard:addButton" | "dashboard:addWidget" | "dashboard:deleteWidget" | "dashboard:discardConfirmLabel" | "dashboard:discardMessage" | "dashboard:discardTitle" | "dashboard:editDashboard" | "dashboard:editingDashboard" | "dashboard:noItems" | "dashboard:resetLayout" | "dashboard:searchWidgets" | "error:autosaving" | "error:correctInvalidFields" | "error:deletingTitle" | "error:documentNotFound" | "error:emailOrPasswordIncorrect" | "error:failedToResetLayout" | "error:failedToSaveLayout" | "error:insufficientClipboardPermissions" | "error:invalidClipboardData" | "error:invalidFileType" | "error:invalidRequestArgs" | "error:loadingDocument" | "error:logoutFailed" | "error:noMatchedField" | "error:notAllowedToAccessPage" | "error:notAllowedToPerformAction" | "error:previewing" | "error:problemUploadingFile" | "error:restoringTitle" | "error:revertingDocument" | "error:tokenNotProvided" | "error:unableToCopy" | "error:unableToDeleteCount" | "error:unableToReindexCollection" | "error:unableToUpdateCount" | "error:unauthorized" | "error:unauthorizedAdmin" | "error:unknown" | "error:unPublishingDocument" | "error:unspecific" | "error:unverifiedEmail" | "error:userEmailAlreadyRegistered" | "error:usernameAlreadyRegistered" | "error:usernameOrPasswordIncorrect" | "fields:blocks" | "fields:addLabel" | "fields:addLink" | "fields:addNew" | "fields:addNewLabel" | "fields:addRelationship" | "fields:addUpload" | "fields:block" | "fields:blockType" | "fields:chooseBetweenCustomTextOrDocument" | "fields:chooseDocumentToLink" | "fields:chooseFromExisting" | "fields:collapseAll" | "fields:customURL" | "fields:editLink" | "fields:editRelationship" | "fields:enterURL" | "fields:hidePassword" | "fields:internalLink" | "fields:itemsAndMore" | "fields:labelRelationship" | "fields:latitude" | "fields:linkedTo" | "fields:linkType" | "fields:longitude" | "fields:openInNewTab" | "fields:passwordsDoNotMatch" | "fields:removeRelationship" | "fields:removeUpload" | "fields:saveChanges" | "fields:searchForBlock" | "fields:searchForLanguage" | "fields:selectFieldsToEdit" | "fields:showAll" | "fields:showPassword" | "fields:swapRelationship" | "fields:swapUpload" | "fields:textToDisplay" | "fields:toggleBlock" | "fields:uploadNewLabel" | "general:items" | "general:of" | "general:language" | "general:dashboard" | "general:error" | "general:username" | "general:notFound" | "general:unauthorized" | "general:newLabel" | "general:saveChanges" | "general:name" | "general:aboutToDelete" | "general:aboutToPermanentlyDelete" | "general:aboutToPermanentlyDeleteTrash" | "general:aboutToRestore" | "general:aboutToRestoreAsDraft" | "general:aboutToRestoreAsDraftCount" | "general:aboutToRestoreCount" | "general:aboutToTrash" | "general:aboutToTrashCount" | "general:accepts" | "general:addBelow" | "general:addFilter" | "general:adminTheme" | "general:all" | "general:allCollections" | "general:allLocales" | "general:and" | "general:anotherUser" | "general:anotherUserTakenOver" | "general:applyChanges" | "general:ascending" | "general:automatic" | "general:backToDashboard" | "general:by" | "general:cancel" | "general:changesNotSaved" | "general:clear" | "general:clearAll" | "general:close" | "general:collapse" | "general:collection" | "general:collections" | "general:columns" | "general:columnToSort" | "general:confirm" | "general:confirmCopy" | "general:confirmDeletion" | "general:confirmDuplication" | "general:confirmMove" | "general:confirmReindex" | "general:confirmReindexAll" | "general:confirmReindexDescription" | "general:confirmReindexDescriptionAll" | "general:confirmRestoration" | "general:copied" | "general:copy" | "general:copyField" | "general:copying" | "general:copyRow" | "general:copyWarning" | "general:create" | "general:created" | "general:createdAt" | "general:createNew" | "general:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:custom" | "general:dark" | "general:decrement" | "general:delete" | "general:deleted" | "general:deletedAt" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleteLabel" | "general:deletePermanently" | "general:deleting" | "general:depth" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documentIsTrashed" | "general:documentLocked" | "general:documentModified" | "general:documentOutOfDate" | "general:documents" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editedSince" | "general:editing" | "general:editingTakenOver" | "general:editLabel" | "general:email" | "general:emailAddress" | "general:emptyTrash" | "general:emptyTrashLabel" | "general:enterANumber" | "general:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:export" | "general:fallbackToDefaultLocale" | "general:false" | "general:filter" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:import" | "general:increment" | "general:isEditing" | "general:item" | "general:lastModified" | "general:layout" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:loadMore" | "general:locale" | "general:locales" | "general:lock" | "general:menu" | "general:moreOptions" | "general:move" | "general:moveConfirm" | "general:moveCount" | "general:moveDown" | "general:moveUp" | "general:moving" | "general:movingCount" | "general:next" | "general:no" | "general:noDateSelected" | "general:noFiltersSet" | "general:noLabel" | "general:none" | "general:noOptions" | "general:noResults" | "general:noResultsDescription" | "general:noResultsFound" | "general:nothingFound" | "general:noTrashResults" | "general:noUpcomingEventsScheduled" | "general:noValue" | "general:only" | "general:open" | "general:openInNewWindow" | "general:or" | "general:order" | "general:overwriteExistingData" | "general:pageNotFound" | "general:password" | "general:pasteField" | "general:pasteRow" | "general:payloadSettings" | "general:permanentlyDelete" | "general:permanentlyDeletedCountSuccessfully" | "general:perPage" | "general:previous" | "general:reindex" | "general:reindexingAll" | "general:reloadDocument" | "general:remove" | "general:rename" | "general:reset" | "general:resetPreferences" | "general:resetPreferencesDescription" | "general:resettingPreferences" | "general:restore" | "general:restoreAsPublished" | "general:restoredCountSuccessfully" | "general:restoring" | "general:retry" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:schedulePublishFor" | "general:searchBy" | "general:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:showAllLabel" | "general:sorryNotFound" | "general:sort" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:successfullyReindexed" | "general:takeOver" | "general:thisLanguage" | "general:time" | "general:timezone" | "general:titleDeleted" | "general:titleRestored" | "general:titleTrashed" | "general:trash" | "general:trashedCountSuccessfully" | "general:true" | "general:unlock" | "general:unsavedChanges" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:upcomingEvents" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedLabelSuccessfully" | "general:updatedSuccessfully" | "general:updateForEveryone" | "general:updating" | "general:uploading" | "general:uploadingBulk" | "general:user" | "general:users" | "general:value" | "general:viewing" | "general:viewReadOnly" | "general:welcome" | "general:yes" | "hierarchy:noResults" | "hierarchy:itemsMovedTo" | "hierarchy:itemsMovedToRoot" | "hierarchy:moveItemsToRootConfirmation" | "hierarchy:moveToRoot" | "hierarchy:noParent" | "hierarchy:searchLabel" | "localization:cannotCopySameLocale" | "localization:copyFrom" | "localization:copyFromTo" | "localization:copyTo" | "localization:copyToLocale" | "localization:localeToPublish" | "localization:selectedLocales" | "localization:selectLocaleToCopy" | "localization:selectLocaleToDuplicate" | "operators:contains" | "operators:equals" | "operators:exists" | "operators:intersects" | "operators:near" | "operators:within" | "operators:isGreaterThan" | "operators:isGreaterThanOrEqualTo" | "operators:isIn" | "operators:isLessThan" | "operators:isLessThanOrEqualTo" | "operators:isLike" | "operators:isNotEqualTo" | "operators:isNotIn" | "operators:isNotLike" | "upload:addFile" | "upload:addFiles" | "upload:bulkUpload" | "upload:crop" | "upload:cropToolDescription" | "upload:download" | "upload:dragAndDrop" | "upload:editImage" | "upload:fileName" | "upload:fileSize" | "upload:filesToUpload" | "upload:fileToUpload" | "upload:focalPoint" | "upload:focalPointDescription" | "upload:height" | "upload:noFile" | "upload:pasteURL" | "upload:previewSizes" | "upload:selectCollectionToBrowse" | "upload:selectFile" | "upload:setCropArea" | "upload:setFocalPoint" | "upload:sizes" | "upload:sizesFor" | "upload:width" | "validation:username" | "validation:emailAddress" | "validation:enterNumber" | "validation:fieldHasNo" | "validation:greaterThanMax" | "validation:invalidBlock" | "validation:invalidBlocks" | "validation:invalidInput" | "validation:invalidSelection" | "validation:invalidSelections" | "validation:latitudeOutOfBounds" | "validation:lessThanMin" | "validation:limitReached" | "validation:longerThanMin" | "validation:longitudeOutOfBounds" | "validation:notValidDate" | "validation:required" | "validation:requiresAtLeast" | "validation:requiresNoMoreThan" | "validation:requiresTwoNumbers" | "validation:shorterThanMax" | "validation:timezoneRequired" | "validation:trueOrFalse" | "validation:validUploadID" | "version:version" | "version:aboutToRestore" | "version:restoring" | "version:type" | "version:aboutToPublishSelection" | "version:aboutToRestoreGlobal" | "version:aboutToRevertToPublished" | "version:aboutToUnpublish" | "version:aboutToUnpublishIn" | "version:aboutToUnpublishSelection" | "version:autosave" | "version:autosavedSuccessfully" | "version:autosavedVersion" | "version:changed" | "version:compareVersions" | "version:comparingAgainst" | "version:confirmPublish" | "version:confirmRevertToSaved" | "version:confirmUnpublish" | "version:confirmVersionRestoration" | "version:currentDraft" | "version:currentlyPublished" | "version:currentlyViewing" | "version:currentPublishedVersion" | "version:draft" | "version:draftHasPublishedVersion" | "version:draftSavedSuccessfully" | "version:lastSavedAgo" | "version:modifiedOnly" | "version:moreVersions" | "version:noFurtherVersionsFound" | "version:noLabelGroup" | "version:noRowsFound" | "version:noRowsSelected" | "version:preview" | "version:previouslyDraft" | "version:previouslyPublished" | "version:previousVersion" | "version:problemRestoringVersion" | "version:publish" | "version:publishAllLocales" | "version:publishChanges" | "version:published" | "version:publishIn" | "version:publishing" | "version:restoreAsDraft" | "version:restoredSuccessfully" | "version:restoreThisVersion" | "version:reverting" | "version:revertToPublished" | "version:revertUnsuccessful" | "version:saveDraft" | "version:scheduledSuccessfully" | "version:schedulePublish" | "version:selectLocales" | "version:selectVersionToCompare" | "version:showLocales" | "version:specificVersion" | "version:status" | "version:unpublish" | "version:unpublished" | "version:unpublishedSuccessfully" | "version:unpublishIn" | "version:unpublishing" | "version:versionAgo" | "version:versionID" | "version:versions" | "version:viewingVersion" | "version:viewingVersionGlobal" | "version:viewingVersions" | "version:viewingVersionsGlobal" | "general:aboutToDeleteCount" | "general:editingLabel" | "version:changedFieldsCount")[];
|
|
21
|
+
declare const clientTranslationKeys: ("localization:cannotCopySameLocale" | "localization:copyFrom" | "localization:copyFromTo" | "localization:copyTo" | "localization:copyToLocale" | "localization:localeToPublish" | "localization:selectedLocales" | "localization:selectLocaleToCopy" | "localization:selectLocaleToDuplicate" | "upload:addFile" | "upload:addFiles" | "upload:bulkUpload" | "upload:crop" | "upload:cropToolDescription" | "upload:download" | "upload:dragAndDrop" | "upload:editImage" | "upload:fileName" | "upload:fileSize" | "upload:filesToUpload" | "upload:fileToUpload" | "upload:focalPoint" | "upload:focalPointDescription" | "upload:fromURL" | "upload:height" | "upload:linkToFile" | "upload:noFile" | "upload:pasteURL" | "upload:previewSizes" | "upload:renameFile" | "upload:replaceFile" | "upload:selectCollectionToBrowse" | "upload:selectFile" | "upload:setCropArea" | "upload:setFocalPoint" | "upload:sizes" | "upload:sizesFor" | "upload:width" | "fields:blocks" | "fields:addLabel" | "fields:addLink" | "fields:addNew" | "fields:addNewLabel" | "fields:addRelationship" | "fields:addUpload" | "fields:block" | "fields:blockName" | "fields:blockType" | "fields:chooseBetweenCustomTextOrDocument" | "fields:chooseDocumentToLink" | "fields:chooseFromExisting" | "fields:collapseAll" | "fields:customURL" | "fields:editLink" | "fields:editRelationship" | "fields:enterURL" | "fields:hidePassword" | "fields:internalLink" | "fields:itemsAndMore" | "fields:labelRelationship" | "fields:latitude" | "fields:linkedTo" | "fields:linkType" | "fields:longitude" | "fields:openInNewTab" | "fields:passwordsDoNotMatch" | "fields:removeRelationship" | "fields:removeUpload" | "fields:saveChanges" | "fields:searchForBlock" | "fields:searchForLanguage" | "fields:selectFieldsToEdit" | "fields:showAll" | "fields:showPassword" | "fields:swapRelationship" | "fields:swapUpload" | "fields:textToDisplay" | "fields:toggleBlock" | "fields:uploadNewLabel" | "authentication:forgotPassword" | "authentication:verify" | "authentication:account" | "authentication:accountOfCurrentUser" | "authentication:accountVerified" | "authentication:alreadyActivated" | "authentication:alreadyLoggedIn" | "authentication:apiKey" | "authentication:authenticated" | "authentication:backToLogin" | "authentication:beginCreateFirstUser" | "authentication:changePassword" | "authentication:checkYourEmailForPasswordReset" | "authentication:confirmGeneration" | "authentication:confirmPassword" | "authentication:createFirstUser" | "authentication:createUser" | "authentication:emailNotValid" | "authentication:emailOrUsername" | "authentication:emailSent" | "authentication:emailVerified" | "authentication:emailVerifiedRedirecting" | "authentication:enableAPIKey" | "authentication:failedToUnlock" | "authentication:forceUnlock" | "authentication:forgotPasswordEmailInstructions" | "authentication:forgotPasswordUsernameInstructions" | "authentication:usernameNotValid" | "authentication:forgotPasswordQuestion" | "authentication:generate" | "authentication:generateNewAPIKey" | "authentication:generatingNewAPIKeyWillInvalidate" | "authentication:logBackIn" | "authentication:loggedIn" | "authentication:loggedInChangePassword" | "authentication:loggedOutInactivity" | "authentication:loggedOutSuccessfully" | "authentication:loggingOut" | "authentication:login" | "authentication:logOut" | "authentication:logout" | "authentication:logoutSuccessful" | "authentication:logoutUser" | "authentication:newAPIKeyGenerated" | "authentication:newPassword" | "authentication:notRedirected" | "authentication:passed" | "authentication:passwordResetSuccessfully" | "authentication:resetPassword" | "authentication:stayLoggedIn" | "authentication:successfullyRegisteredFirstUser" | "authentication:successfullyUnlocked" | "authentication:tokenRefreshSuccessful" | "authentication:unableToVerify" | "authentication:username" | "authentication:verified" | "authentication:verifiedSuccessfully" | "authentication:verifyUser" | "authentication:youAreInactive" | "commandPalette:createNew" | "commandPalette:hintClose" | "commandPalette:hintCreate" | "commandPalette:hintNavigate" | "commandPalette:hintSelect" | "commandPalette:noResults" | "commandPalette:placeholder" | "commandPalette:title" | "dashboard:addButton" | "dashboard:addWidget" | "dashboard:deleteWidget" | "dashboard:discardConfirmLabel" | "dashboard:discardMessage" | "dashboard:discardTitle" | "dashboard:editDashboard" | "dashboard:editingDashboard" | "dashboard:noItems" | "dashboard:resetLayout" | "dashboard:searchWidgets" | "dashboard:widgetCollectionRequired" | "dashboard:widgetConfigurationError" | "dashboard:widgetInvalidCollection" | "dashboard:widgetInvalidFilterField" | "dashboard:widgetInvalidSortField" | "dashboard:widgetLimitLabel" | "dashboard:widgetNonSortableSortField" | "dashboard:widgetQueryError" | "dashboard:widgetRecentlyViewedEmpty" | "dashboard:widgetRecentlyViewedTitle" | "dashboard:widgetSelectCollectionFirst" | "dashboard:widgetSelectSortField" | "dashboard:widgetSortDirectionLabel" | "dashboard:widgetSortFieldLabel" | "dashboard:widgetTitleFallback" | "dashboard:widgetTitleLabel" | "error:autosaving" | "error:correctInvalidFields" | "error:deletingTitle" | "error:documentNotFound" | "error:emailOrPasswordIncorrect" | "error:failedToResetLayout" | "error:failedToSaveLayout" | "error:insufficientClipboardPermissions" | "error:invalidClipboardData" | "error:invalidFileType" | "error:invalidRequestArgs" | "error:loadingDocument" | "error:logoutFailed" | "error:noMatchedField" | "error:notAllowedToAccessPage" | "error:notAllowedToPerformAction" | "error:previewing" | "error:problemUploadingFile" | "error:restoringTitle" | "error:revertingDocument" | "error:tokenNotProvided" | "error:unableToCopy" | "error:unableToDeleteCount" | "error:unableToReindexCollection" | "error:unableToUpdateCount" | "error:unauthorized" | "error:unauthorizedAdmin" | "error:unknown" | "error:unPublishingDocument" | "error:unspecific" | "error:unverifiedEmail" | "error:userEmailAlreadyRegistered" | "error:usernameAlreadyRegistered" | "error:usernameOrPasswordIncorrect" | "general:collections" | "general:globals" | "general:select" | "general:locale" | "general:user" | "general:false" | "general:none" | "general:custom" | "general:email" | "general:access" | "general:name" | "general:depth" | "general:collection" | "general:sort" | "general:filter" | "general:items" | "general:of" | "general:dashboard" | "general:error" | "general:newLabel" | "general:saveChanges" | "general:username" | "general:createNew" | "general:noResults" | "general:notFound" | "general:unauthorized" | "general:aboutToDelete" | "general:aboutToPermanentlyDelete" | "general:aboutToPermanentlyDeleteTrash" | "general:aboutToRestore" | "general:aboutToRestoreAsDraft" | "general:aboutToRestoreAsDraftCount" | "general:aboutToRestoreCount" | "general:aboutToTrash" | "general:aboutToTrashCount" | "general:accepts" | "general:addBelow" | "general:addFilter" | "general:adminTheme" | "general:all" | "general:allCollections" | "general:allLocales" | "general:and" | "general:anotherUser" | "general:anotherUserTakenOver" | "general:applyChanges" | "general:ascending" | "general:auto" | "general:automatic" | "general:backToDashboard" | "general:by" | "general:cancel" | "general:changesNotSaved" | "general:checked" | "general:clear" | "general:clearAll" | "general:close" | "general:collapse" | "general:columns" | "general:columnToSort" | "general:confirm" | "general:confirmCopy" | "general:confirmDeletion" | "general:confirmDuplication" | "general:confirmMove" | "general:confirmReindex" | "general:confirmReindexAll" | "general:confirmReindexDescription" | "general:confirmReindexDescriptionAll" | "general:confirmRestoration" | "general:copied" | "general:copy" | "general:copyField" | "general:copying" | "general:copyRow" | "general:copyWarning" | "general:create" | "general:created" | "general:createdAt" | "general:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:dark" | "general:decrement" | "general:delete" | "general:deleted" | "general:deletedAgo" | "general:deletedAt" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleteLabel" | "general:deletePermanently" | "general:deleting" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documentIsTrashed" | "general:documentLocked" | "general:documentModified" | "general:documentOutOfDate" | "general:documents" | "general:dragToReorder" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editColumns" | "general:editedSince" | "general:editing" | "general:editingTakenOver" | "general:editLabel" | "general:emailAddress" | "general:emptyTrash" | "general:emptyTrashLabel" | "general:enhancedContrastMode" | "general:enterANumber" | "general:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:expand" | "general:export" | "general:fallbackToDefaultLocale" | "general:field" | "general:filters" | "general:filterWhere" | "general:goBack" | "general:groupByLabel" | "general:hideSidebar" | "general:import" | "general:increment" | "general:isEditing" | "general:item" | "general:language" | "general:lastModified" | "general:layout" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:loadMore" | "general:locales" | "general:lock" | "general:manageLabel" | "general:menu" | "general:moreOptions" | "general:move" | "general:moveConfirm" | "general:moveCount" | "general:moveDown" | "general:moveUp" | "general:moving" | "general:movingCount" | "general:next" | "general:no" | "general:noDateSelected" | "general:noFiltersSet" | "general:noLabel" | "general:noMatchesFound" | "general:noOptions" | "general:noResultsDescription" | "general:noResultsFound" | "general:nothingFound" | "general:noTrashResults" | "general:notShownInTable" | "general:noUpcomingEventsScheduled" | "general:noValue" | "general:only" | "general:open" | "general:openInNewWindow" | "general:or" | "general:order" | "general:original" | "general:overwriteExistingData" | "general:pageNotFound" | "general:password" | "general:pasteField" | "general:pasteRow" | "general:payloadSettings" | "general:permanentlyDelete" | "general:permanentlyDeletedCountSuccessfully" | "general:perPage" | "general:perPageLabel" | "general:presets" | "general:previous" | "general:reindex" | "general:reindexingAll" | "general:reloadDocument" | "general:remove" | "general:rename" | "general:reset" | "general:resetPreferences" | "general:resetPreferencesDescription" | "general:resettingPreferences" | "general:restore" | "general:restoreAsPublished" | "general:restoredCountSuccessfully" | "general:restoring" | "general:retry" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:schedulePublishFor" | "general:searchBy" | "general:searchColumns" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:settings" | "general:showAllLabel" | "general:shownInTable" | "general:showSidebar" | "general:sorryNotFound" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:successfullyReindexed" | "general:takeOver" | "general:theme" | "general:thisLanguage" | "general:time" | "general:timezone" | "general:titleDeleted" | "general:titleRestored" | "general:titleTrashed" | "general:toggle" | "general:trash" | "general:trashedCountSuccessfully" | "general:true" | "general:unchecked" | "general:unlock" | "general:unsavedChanges" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:upcomingEvents" | "general:updatedAgo" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedLabelSuccessfully" | "general:updatedSuccessfully" | "general:updateForEveryone" | "general:updating" | "general:uploading" | "general:uploadingBulk" | "general:users" | "general:value" | "general:viewing" | "general:viewReadOnly" | "general:welcome" | "general:where" | "general:yes" | "general:aboutToDeleteCount" | "general:editingLabel" | "hierarchy:noResults" | "hierarchy:itemsMovedTo" | "hierarchy:itemsMovedToRoot" | "hierarchy:moveItemsToRootConfirmation" | "hierarchy:moveToRoot" | "hierarchy:noParent" | "hierarchy:searchLabel" | "operators:contains" | "operators:equals" | "operators:exists" | "operators:intersects" | "operators:near" | "operators:within" | "operators:isGreaterThan" | "operators:isGreaterThanOrEqualTo" | "operators:isIn" | "operators:isLessThan" | "operators:isLessThanOrEqualTo" | "operators:isLike" | "operators:isNotEqualTo" | "operators:isNotIn" | "operators:isNotLike" | "validation:required" | "validation:username" | "validation:emailAddress" | "validation:enterNumber" | "validation:fieldHasNo" | "validation:greaterThanMax" | "validation:invalidBlock" | "validation:invalidBlocks" | "validation:invalidInput" | "validation:invalidSelection" | "validation:invalidSelections" | "validation:latitudeOutOfBounds" | "validation:lessThanMin" | "validation:limitReached" | "validation:longerThanMin" | "validation:longitudeOutOfBounds" | "validation:notValidDate" | "validation:requiresAtLeast" | "validation:requiresNoMoreThan" | "validation:requiresTwoNumbers" | "validation:shorterThanMax" | "validation:timezoneRequired" | "validation:trueOrFalse" | "validation:validUploadID" | "version:type" | "version:version" | "version:aboutToRestore" | "version:restoring" | "version:aboutToPublishSelection" | "version:aboutToRestoreGlobal" | "version:aboutToRevertToPublished" | "version:aboutToUnpublish" | "version:aboutToUnpublishIn" | "version:aboutToUnpublishSelection" | "version:autosave" | "version:autosavedSuccessfully" | "version:autosavedVersion" | "version:changed" | "version:compareVersions" | "version:comparingAgainst" | "version:confirmPublish" | "version:confirmRevertToSaved" | "version:confirmUnpublish" | "version:confirmVersionRestoration" | "version:currentDraft" | "version:currentlyPublished" | "version:currentlyViewing" | "version:currentPublishedVersion" | "version:draft" | "version:draftHasPublishedVersion" | "version:draftSavedSuccessfully" | "version:lastSavedAgo" | "version:modifiedOnly" | "version:moreVersions" | "version:noFurtherVersionsFound" | "version:noLabelGroup" | "version:noRowsFound" | "version:noRowsSelected" | "version:preview" | "version:previouslyDraft" | "version:previouslyPublished" | "version:previousVersion" | "version:problemRestoringVersion" | "version:publish" | "version:publishAllLocales" | "version:publishChanges" | "version:published" | "version:publishIn" | "version:publishing" | "version:restoreAsDraft" | "version:restoredSuccessfully" | "version:restoreThisVersion" | "version:reverting" | "version:revertToPublished" | "version:revertUnsuccessful" | "version:saveDraft" | "version:scheduledSuccessfully" | "version:schedulePublish" | "version:selectLocales" | "version:selectVersionToCompare" | "version:showLocales" | "version:specificVersion" | "version:status" | "version:unpublish" | "version:unpublished" | "version:unpublishedSuccessfully" | "version:unpublishIn" | "version:unpublishing" | "version:versionAgo" | "version:versionID" | "version:versions" | "version:viewingVersion" | "version:viewingVersionGlobal" | "version:viewingVersions" | "version:viewingVersionsGlobal" | "version:changedFieldsCount")[];
|
|
23
22
|
|
|
24
23
|
declare const enTranslations: {
|
|
25
24
|
authentication: {
|
|
@@ -37,10 +36,12 @@ declare const enTranslations: {
|
|
|
37
36
|
confirmGeneration: string;
|
|
38
37
|
confirmPassword: string;
|
|
39
38
|
createFirstUser: string;
|
|
39
|
+
createUser: string;
|
|
40
40
|
emailNotValid: string;
|
|
41
41
|
emailOrUsername: string;
|
|
42
42
|
emailSent: string;
|
|
43
43
|
emailVerified: string;
|
|
44
|
+
emailVerifiedRedirecting: string;
|
|
44
45
|
enableAPIKey: string;
|
|
45
46
|
failedToUnlock: string;
|
|
46
47
|
forceUnlock: string;
|
|
@@ -70,6 +71,7 @@ declare const enTranslations: {
|
|
|
70
71
|
newAccountCreated: string;
|
|
71
72
|
newAPIKeyGenerated: string;
|
|
72
73
|
newPassword: string;
|
|
74
|
+
notRedirected: string;
|
|
73
75
|
passed: string;
|
|
74
76
|
passwordResetSuccessfully: string;
|
|
75
77
|
resetPassword: string;
|
|
@@ -82,6 +84,7 @@ declare const enTranslations: {
|
|
|
82
84
|
tokenRefreshSuccessful: string;
|
|
83
85
|
unableToVerify: string;
|
|
84
86
|
username: string;
|
|
87
|
+
verificationFailedRequestNew: string;
|
|
85
88
|
verified: string;
|
|
86
89
|
verifiedSuccessfully: string;
|
|
87
90
|
verify: string;
|
|
@@ -91,6 +94,22 @@ declare const enTranslations: {
|
|
|
91
94
|
youAreReceivingResetPassword: string;
|
|
92
95
|
youDidNotRequestPassword: string;
|
|
93
96
|
};
|
|
97
|
+
commandPalette: {
|
|
98
|
+
actions: string;
|
|
99
|
+
createNew: string;
|
|
100
|
+
favorites: string;
|
|
101
|
+
hintActions: string;
|
|
102
|
+
hintClose: string;
|
|
103
|
+
hintCreate: string;
|
|
104
|
+
hintNavigate: string;
|
|
105
|
+
hintSelect: string;
|
|
106
|
+
noResults: string;
|
|
107
|
+
pinToFavorites: string;
|
|
108
|
+
placeholder: string;
|
|
109
|
+
recentlyVisited: string;
|
|
110
|
+
removeFromFavorites: string;
|
|
111
|
+
title: string;
|
|
112
|
+
};
|
|
94
113
|
dashboard: {
|
|
95
114
|
addButton: string;
|
|
96
115
|
addWidget: string;
|
|
@@ -103,6 +122,22 @@ declare const enTranslations: {
|
|
|
103
122
|
noItems: string;
|
|
104
123
|
resetLayout: string;
|
|
105
124
|
searchWidgets: string;
|
|
125
|
+
widgetCollectionRequired: string;
|
|
126
|
+
widgetConfigurationError: string;
|
|
127
|
+
widgetInvalidCollection: string;
|
|
128
|
+
widgetInvalidFilterField: string;
|
|
129
|
+
widgetInvalidSortField: string;
|
|
130
|
+
widgetLimitLabel: string;
|
|
131
|
+
widgetNonSortableSortField: string;
|
|
132
|
+
widgetQueryError: string;
|
|
133
|
+
widgetRecentlyViewedEmpty: string;
|
|
134
|
+
widgetRecentlyViewedTitle: string;
|
|
135
|
+
widgetSelectCollectionFirst: string;
|
|
136
|
+
widgetSelectSortField: string;
|
|
137
|
+
widgetSortDirectionLabel: string;
|
|
138
|
+
widgetSortFieldLabel: string;
|
|
139
|
+
widgetTitleFallback: string;
|
|
140
|
+
widgetTitleLabel: string;
|
|
106
141
|
};
|
|
107
142
|
error: {
|
|
108
143
|
accountAlreadyActivated: string;
|
|
@@ -167,6 +202,7 @@ declare const enTranslations: {
|
|
|
167
202
|
addRelationship: string;
|
|
168
203
|
addUpload: string;
|
|
169
204
|
block: string;
|
|
205
|
+
blockName: string;
|
|
170
206
|
blocks: string;
|
|
171
207
|
blockType: string;
|
|
172
208
|
chooseBetweenCustomTextOrDocument: string;
|
|
@@ -222,6 +258,7 @@ declare const enTranslations: {
|
|
|
222
258
|
aboutToTrash: string;
|
|
223
259
|
aboutToTrashCount: string;
|
|
224
260
|
accepts: string;
|
|
261
|
+
access: string;
|
|
225
262
|
addBelow: string;
|
|
226
263
|
addFilter: string;
|
|
227
264
|
adminTheme: string;
|
|
@@ -233,11 +270,13 @@ declare const enTranslations: {
|
|
|
233
270
|
anotherUserTakenOver: string;
|
|
234
271
|
applyChanges: string;
|
|
235
272
|
ascending: string;
|
|
273
|
+
auto: string;
|
|
236
274
|
automatic: string;
|
|
237
275
|
backToDashboard: string;
|
|
238
276
|
by: string;
|
|
239
277
|
cancel: string;
|
|
240
278
|
changesNotSaved: string;
|
|
279
|
+
checked: string;
|
|
241
280
|
clear: string;
|
|
242
281
|
clearAll: string;
|
|
243
282
|
close: string;
|
|
@@ -276,6 +315,7 @@ declare const enTranslations: {
|
|
|
276
315
|
decrement: string;
|
|
277
316
|
delete: string;
|
|
278
317
|
deleted: string;
|
|
318
|
+
deletedAgo: string;
|
|
279
319
|
deletedAt: string;
|
|
280
320
|
deletedCountSuccessfully: string;
|
|
281
321
|
deletedSuccessfully: string;
|
|
@@ -291,10 +331,12 @@ declare const enTranslations: {
|
|
|
291
331
|
documentModified: string;
|
|
292
332
|
documentOutOfDate: string;
|
|
293
333
|
documents: string;
|
|
334
|
+
dragToReorder: string;
|
|
294
335
|
duplicate: string;
|
|
295
336
|
duplicateWithoutSaving: string;
|
|
296
337
|
edit: string;
|
|
297
338
|
editAll: string;
|
|
339
|
+
editColumns: string;
|
|
298
340
|
editedSince: string;
|
|
299
341
|
editing: string;
|
|
300
342
|
editingLabel_many: string;
|
|
@@ -306,20 +348,24 @@ declare const enTranslations: {
|
|
|
306
348
|
emailAddress: string;
|
|
307
349
|
emptyTrash: string;
|
|
308
350
|
emptyTrashLabel: string;
|
|
351
|
+
enhancedContrastMode: string;
|
|
309
352
|
enterANumber: string;
|
|
310
353
|
enterAValue: string;
|
|
311
354
|
error: string;
|
|
312
355
|
errors: string;
|
|
313
356
|
exitLivePreview: string;
|
|
357
|
+
expand: string;
|
|
314
358
|
export: string;
|
|
315
359
|
fallbackToDefaultLocale: string;
|
|
316
360
|
false: string;
|
|
361
|
+
field: string;
|
|
317
362
|
filter: string;
|
|
318
363
|
filters: string;
|
|
319
364
|
filterWhere: string;
|
|
320
365
|
globals: string;
|
|
321
366
|
goBack: string;
|
|
322
367
|
groupByLabel: string;
|
|
368
|
+
hideSidebar: string;
|
|
323
369
|
import: string;
|
|
324
370
|
increment: string;
|
|
325
371
|
isEditing: string;
|
|
@@ -337,6 +383,7 @@ declare const enTranslations: {
|
|
|
337
383
|
locale: string;
|
|
338
384
|
locales: string;
|
|
339
385
|
lock: string;
|
|
386
|
+
manageLabel: string;
|
|
340
387
|
menu: string;
|
|
341
388
|
moreOptions: string;
|
|
342
389
|
move: string;
|
|
@@ -353,6 +400,7 @@ declare const enTranslations: {
|
|
|
353
400
|
noDateSelected: string;
|
|
354
401
|
noFiltersSet: string;
|
|
355
402
|
noLabel: string;
|
|
403
|
+
noMatchesFound: string;
|
|
356
404
|
none: string;
|
|
357
405
|
noOptions: string;
|
|
358
406
|
noResults: string;
|
|
@@ -361,6 +409,7 @@ declare const enTranslations: {
|
|
|
361
409
|
notFound: string;
|
|
362
410
|
nothingFound: string;
|
|
363
411
|
noTrashResults: string;
|
|
412
|
+
notShownInTable: string;
|
|
364
413
|
noUpcomingEventsScheduled: string;
|
|
365
414
|
noValue: string;
|
|
366
415
|
of: string;
|
|
@@ -369,6 +418,7 @@ declare const enTranslations: {
|
|
|
369
418
|
openInNewWindow: string;
|
|
370
419
|
or: string;
|
|
371
420
|
order: string;
|
|
421
|
+
original: string;
|
|
372
422
|
overwriteExistingData: string;
|
|
373
423
|
pageNotFound: string;
|
|
374
424
|
password: string;
|
|
@@ -378,6 +428,8 @@ declare const enTranslations: {
|
|
|
378
428
|
permanentlyDelete: string;
|
|
379
429
|
permanentlyDeletedCountSuccessfully: string;
|
|
380
430
|
perPage: string;
|
|
431
|
+
perPageLabel: string;
|
|
432
|
+
presets: string;
|
|
381
433
|
previous: string;
|
|
382
434
|
reindex: string;
|
|
383
435
|
reindexingAll: string;
|
|
@@ -400,13 +452,17 @@ declare const enTranslations: {
|
|
|
400
452
|
saving: string;
|
|
401
453
|
schedulePublishFor: string;
|
|
402
454
|
searchBy: string;
|
|
455
|
+
searchColumns: string;
|
|
403
456
|
select: string;
|
|
404
457
|
selectAll: string;
|
|
405
458
|
selectAllRows: string;
|
|
406
459
|
selectedCount: string;
|
|
407
460
|
selectLabel: string;
|
|
408
461
|
selectValue: string;
|
|
462
|
+
settings: string;
|
|
409
463
|
showAllLabel: string;
|
|
464
|
+
shownInTable: string;
|
|
465
|
+
showSidebar: string;
|
|
410
466
|
sorryNotFound: string;
|
|
411
467
|
sort: string;
|
|
412
468
|
sortByLabelDirection: string;
|
|
@@ -419,21 +475,25 @@ declare const enTranslations: {
|
|
|
419
475
|
successfullyDuplicated: string;
|
|
420
476
|
successfullyReindexed: string;
|
|
421
477
|
takeOver: string;
|
|
478
|
+
theme: string;
|
|
422
479
|
thisLanguage: string;
|
|
423
480
|
time: string;
|
|
424
481
|
timezone: string;
|
|
425
482
|
titleDeleted: string;
|
|
426
483
|
titleRestored: string;
|
|
427
484
|
titleTrashed: string;
|
|
485
|
+
toggle: string;
|
|
428
486
|
trash: string;
|
|
429
487
|
trashedCountSuccessfully: string;
|
|
430
488
|
true: string;
|
|
431
489
|
unauthorized: string;
|
|
490
|
+
unchecked: string;
|
|
432
491
|
unlock: string;
|
|
433
492
|
unsavedChanges: string;
|
|
434
493
|
unsavedChangesDuplicate: string;
|
|
435
494
|
untitled: string;
|
|
436
495
|
upcomingEvents: string;
|
|
496
|
+
updatedAgo: string;
|
|
437
497
|
updatedAt: string;
|
|
438
498
|
updatedCountSuccessfully: string;
|
|
439
499
|
updatedLabelSuccessfully: string;
|
|
@@ -449,6 +509,7 @@ declare const enTranslations: {
|
|
|
449
509
|
viewing: string;
|
|
450
510
|
viewReadOnly: string;
|
|
451
511
|
welcome: string;
|
|
512
|
+
where: string;
|
|
452
513
|
yes: string;
|
|
453
514
|
};
|
|
454
515
|
hierarchy: {
|
|
@@ -504,12 +565,16 @@ declare const enTranslations: {
|
|
|
504
565
|
fileToUpload: string;
|
|
505
566
|
focalPoint: string;
|
|
506
567
|
focalPointDescription: string;
|
|
568
|
+
fromURL: string;
|
|
507
569
|
height: string;
|
|
508
570
|
lessInfo: string;
|
|
571
|
+
linkToFile: string;
|
|
509
572
|
moreInfo: string;
|
|
510
573
|
noFile: string;
|
|
511
574
|
pasteURL: string;
|
|
512
575
|
previewSizes: string;
|
|
576
|
+
renameFile: string;
|
|
577
|
+
replaceFile: string;
|
|
513
578
|
selectCollectionToBrowse: string;
|
|
514
579
|
selectFile: string;
|
|
515
580
|
setCropArea: string;
|
|
@@ -638,9 +703,6 @@ type Language<TDefaultTranslations = DefaultTranslationsObject> = {
|
|
|
638
703
|
type GenericTranslationsObject = {
|
|
639
704
|
[key: string]: GenericTranslationsObject | string;
|
|
640
705
|
};
|
|
641
|
-
type GenericLanguages = {
|
|
642
|
-
[key in AcceptedLanguages]?: GenericTranslationsObject;
|
|
643
|
-
};
|
|
644
706
|
type AcceptedLanguages = (typeof acceptedLanguages)[number];
|
|
645
707
|
type SupportedLanguages<TDefaultTranslations = DefaultTranslationsObject> = {
|
|
646
708
|
[key in AcceptedLanguages]?: Language<TDefaultTranslations>;
|
|
@@ -653,11 +715,14 @@ type NestedKeysStripped<T> = T extends object ? {
|
|
|
653
715
|
* Default nested translations object
|
|
654
716
|
*/
|
|
655
717
|
type DefaultTranslationsObject = typeof enTranslations;
|
|
718
|
+
interface CustomTranslationKeys {
|
|
719
|
+
}
|
|
720
|
+
type CustomTranslationKey = CustomTranslationKeys[keyof CustomTranslationKeys] & string;
|
|
656
721
|
/**
|
|
657
722
|
* All translation keys sanitized. E.g. 'general:aboutToDeleteCount'
|
|
658
723
|
*/
|
|
659
|
-
type DefaultTranslationKeys = NestedKeysStripped<DefaultTranslationsObject>;
|
|
660
|
-
type ClientTranslationKeys<TExtraProps = (typeof clientTranslationKeys)[number]> = TExtraProps;
|
|
724
|
+
type DefaultTranslationKeys = CustomTranslationKey | NestedKeysStripped<DefaultTranslationsObject>;
|
|
725
|
+
type ClientTranslationKeys<TExtraProps = (typeof clientTranslationKeys)[number] | CustomTranslationKey> = TExtraProps;
|
|
661
726
|
type ClientTranslationsObject = GenericTranslationsObject;
|
|
662
727
|
type TFunction<TTranslationKeys = DefaultTranslationKeys> = (key: TTranslationKeys, options?: Record<string, any>) => string;
|
|
663
728
|
type I18n<TTranslations = DefaultTranslationsObject, TTranslationKeys = DefaultTranslationKeys> = {
|
|
@@ -725,6 +790,63 @@ type OptionalKeys<Type> = Type extends object ? keyof {
|
|
|
725
790
|
|
|
726
791
|
type RequiredKeys<Type> = Type extends unknown ? Exclude<keyof Type, OptionalKeys<Type>> : never;
|
|
727
792
|
|
|
793
|
+
type CookieStore = {
|
|
794
|
+
get: (name: string) => {
|
|
795
|
+
name: string;
|
|
796
|
+
value: string;
|
|
797
|
+
} | null | undefined;
|
|
798
|
+
getAll?: () => Array<{
|
|
799
|
+
name: string;
|
|
800
|
+
value: string;
|
|
801
|
+
}>;
|
|
802
|
+
set?: (name: string, value: string, options?: CookieOptions$1) => void;
|
|
803
|
+
};
|
|
804
|
+
type CookieOptions$1 = {
|
|
805
|
+
domain?: string;
|
|
806
|
+
expires?: Date;
|
|
807
|
+
httpOnly?: boolean;
|
|
808
|
+
maxAge?: number;
|
|
809
|
+
path?: string;
|
|
810
|
+
sameSite?: 'lax' | 'none' | 'strict';
|
|
811
|
+
secure?: boolean;
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Server-side adapter passed into server functions (not React context).
|
|
816
|
+
* Abstracts framework-specific server APIs like cookies, headers, redirect.
|
|
817
|
+
*/
|
|
818
|
+
type ServerAdapter = {
|
|
819
|
+
/**
|
|
820
|
+
* Throws a Next-style "forbidden" boundary (HTTP 403 semantics). Plugins
|
|
821
|
+
* should treat this as a control-flow `never` — execution does not return.
|
|
822
|
+
*/
|
|
823
|
+
forbidden: () => never;
|
|
824
|
+
getCookies: () => CookieStore | Promise<CookieStore>;
|
|
825
|
+
getHeaders: () => Headers | Promise<Headers>;
|
|
826
|
+
notFound: () => never;
|
|
827
|
+
permanentRedirect: (path: string) => never;
|
|
828
|
+
redirect: (path: string) => never;
|
|
829
|
+
setCookie: (name: string, value: string, options?: CookieOptions$1) => Promise<void> | void;
|
|
830
|
+
/**
|
|
831
|
+
* Throws a Next-style "unauthorized" boundary (HTTP 401 semantics).
|
|
832
|
+
*/
|
|
833
|
+
unauthorized: () => never;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Pluggable component renderer.
|
|
838
|
+
* RSC-capable frameworks use the current RenderServerComponent logic.
|
|
839
|
+
* Non-RSC frameworks treat all components as client components.
|
|
840
|
+
*/
|
|
841
|
+
type ComponentRenderer = (args: {
|
|
842
|
+
readonly clientProps?: object;
|
|
843
|
+
readonly Component?: PayloadComponent | PayloadComponent[] | React$1.ComponentType | React$1.ComponentType[];
|
|
844
|
+
readonly Fallback?: React$1.ComponentType;
|
|
845
|
+
readonly importMap: ImportMap;
|
|
846
|
+
readonly key?: string;
|
|
847
|
+
readonly serverProps?: object;
|
|
848
|
+
}) => React$1.ReactNode;
|
|
849
|
+
|
|
728
850
|
/** @deprecated Use `instanceof APIError` instead of name comparison. */
|
|
729
851
|
declare const APIErrorName = "APIError";
|
|
730
852
|
declare class ExtendableError<TData extends object = {
|
|
@@ -759,6 +881,7 @@ type ValidationFieldError = {
|
|
|
759
881
|
label?: LabelFunction | StaticLabel;
|
|
760
882
|
message: string;
|
|
761
883
|
path: string;
|
|
884
|
+
tableName?: string;
|
|
762
885
|
};
|
|
763
886
|
declare class ValidationError extends APIError<{
|
|
764
887
|
collection?: string;
|
|
@@ -865,28 +988,35 @@ type SanitizedPermissions = {
|
|
|
865
988
|
[globalSlug: string]: SanitizedGlobalPermission;
|
|
866
989
|
};
|
|
867
990
|
};
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
991
|
+
/**
|
|
992
|
+
* Fields injected onto a user at authentication time. They are never stored in the database and
|
|
993
|
+
* never present on a plain document read (e.g. `payload.findByID`) - only on the authenticated
|
|
994
|
+
* user (`req.user`, login/auth/me results, auth strategies).
|
|
995
|
+
*/
|
|
996
|
+
type AuthRuntimeFields = {
|
|
997
|
+
/**
|
|
998
|
+
* The session ID of the current request. May be present on request-authenticated users when
|
|
999
|
+
* sessions are enabled.
|
|
1000
|
+
*/
|
|
1001
|
+
_sid?: string;
|
|
1002
|
+
/**
|
|
1003
|
+
* The name of the auth strategy that authenticated the request (e.g. `local-jwt`).
|
|
1004
|
+
*/
|
|
1005
|
+
_strategy?: string;
|
|
874
1006
|
};
|
|
875
1007
|
/**
|
|
876
|
-
*
|
|
1008
|
+
* Note: AuthenticatedUser still carries the write-only `password` from `User` (always `undefined` at runtime).
|
|
1009
|
+
* Stripping it cleanly isn't possible, because auth operations build the authenticated user
|
|
1010
|
+
* from a read `User` doc, so a `never`-typed `password` would break those assignments
|
|
877
1011
|
*/
|
|
878
|
-
type UntypedUser = {
|
|
879
|
-
[key: string]: any;
|
|
880
|
-
} & BaseUser;
|
|
881
1012
|
/**
|
|
882
|
-
*
|
|
883
|
-
*
|
|
1013
|
+
* The signed-in user: the read user plus the runtime auth markers (`_strategy`, `_sid`). This is
|
|
1014
|
+
* what `req.user`, `payload.auth()`, the `me` operation, auth strategies, and `useAuth().user`
|
|
1015
|
+
* return.
|
|
884
1016
|
*/
|
|
885
|
-
type
|
|
886
|
-
[key: string]: any;
|
|
887
|
-
} & BaseUser;
|
|
1017
|
+
type AuthenticatedUser = AuthRuntimeFields & User;
|
|
888
1018
|
type UserSession = {
|
|
889
|
-
createdAt
|
|
1019
|
+
createdAt?: Date | null | string;
|
|
890
1020
|
expiresAt: Date | string;
|
|
891
1021
|
id: string;
|
|
892
1022
|
};
|
|
@@ -925,10 +1055,7 @@ type AuthStrategyFunctionArgs = {
|
|
|
925
1055
|
};
|
|
926
1056
|
type AuthStrategyResult = {
|
|
927
1057
|
responseHeaders?: Headers;
|
|
928
|
-
user:
|
|
929
|
-
_strategy?: string;
|
|
930
|
-
collection?: string;
|
|
931
|
-
} & TypedUser) | null;
|
|
1058
|
+
user: AuthenticatedUser | null;
|
|
932
1059
|
};
|
|
933
1060
|
type AuthStrategyFunction = (args: AuthStrategyFunctionArgs) => AuthStrategyResult | Promise<AuthStrategyResult>;
|
|
934
1061
|
type AuthStrategy = {
|
|
@@ -1082,6 +1209,21 @@ type CollectionPreferences = {
|
|
|
1082
1209
|
preset?: DefaultDocumentIDType;
|
|
1083
1210
|
sort?: string;
|
|
1084
1211
|
};
|
|
1212
|
+
/**
|
|
1213
|
+
* A single document the user has viewed in the admin. Only identity and timestamp are stored;
|
|
1214
|
+
* display fields (title, thumbnail, etc.) are computed at render time from the live document.
|
|
1215
|
+
*/
|
|
1216
|
+
type RecentlyViewedItem = {
|
|
1217
|
+
collectionSlug: string;
|
|
1218
|
+
id: DefaultDocumentIDType;
|
|
1219
|
+
viewedAt: string;
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* The `recently-viewed` preference value: the user's recently viewed documents, most recent first.
|
|
1223
|
+
*/
|
|
1224
|
+
type RecentlyViewedPreferences = {
|
|
1225
|
+
items: RecentlyViewedItem[];
|
|
1226
|
+
};
|
|
1085
1227
|
|
|
1086
1228
|
type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
|
|
1087
1229
|
type ClientComponentProps = {
|
|
@@ -1127,11 +1269,9 @@ type FieldPaths = {
|
|
|
1127
1269
|
* Nested fields will have a path that includes the parent field names
|
|
1128
1270
|
* if they are nested within a group, array, block or named tab.
|
|
1129
1271
|
*
|
|
1130
|
-
* Collapsibles and unnamed tabs will have arbitrary paths
|
|
1272
|
+
* Collapsibles, rows and unnamed tabs will have arbitrary paths
|
|
1131
1273
|
* that look like _index-0, _index-1, etc.
|
|
1132
1274
|
*
|
|
1133
|
-
* Row fields will not have a path.
|
|
1134
|
-
*
|
|
1135
1275
|
* @example 'parentGroupField.childTextField'
|
|
1136
1276
|
*
|
|
1137
1277
|
* @default field.name
|
|
@@ -1162,9 +1302,15 @@ type ServerComponentProps = {
|
|
|
1162
1302
|
payload: Payload;
|
|
1163
1303
|
permissions: SanitizedFieldPermissions;
|
|
1164
1304
|
preferences: DocumentPreferences;
|
|
1305
|
+
/**
|
|
1306
|
+
* Adapter-injected component renderer. Server components can use this
|
|
1307
|
+
* to render other import map components without importing a
|
|
1308
|
+
* framework-specific renderer directly.
|
|
1309
|
+
*/
|
|
1310
|
+
renderComponent?: ComponentRenderer;
|
|
1165
1311
|
req: PayloadRequest;
|
|
1166
1312
|
siblingData: Data;
|
|
1167
|
-
user:
|
|
1313
|
+
user: User;
|
|
1168
1314
|
value?: unknown;
|
|
1169
1315
|
};
|
|
1170
1316
|
type ClientFieldBase<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
|
|
@@ -1249,15 +1395,6 @@ type IncomingDrafts = {
|
|
|
1249
1395
|
* To enable, set to true or pass an object with options.
|
|
1250
1396
|
*/
|
|
1251
1397
|
autosave?: Autosave | boolean;
|
|
1252
|
-
/**
|
|
1253
|
-
* Localizes the status field.
|
|
1254
|
-
*
|
|
1255
|
-
* Only effective if the experimental `experimental.localizeStatus` is enabled.
|
|
1256
|
-
*
|
|
1257
|
-
* @experimental
|
|
1258
|
-
* @default false
|
|
1259
|
-
*/
|
|
1260
|
-
localizeStatus?: boolean;
|
|
1261
1398
|
/**
|
|
1262
1399
|
* Allow for editors to schedule publish / unpublish events in the future.
|
|
1263
1400
|
*/
|
|
@@ -1276,12 +1413,8 @@ type SanitizedDrafts = {
|
|
|
1276
1413
|
*/
|
|
1277
1414
|
autosave: Autosave | false;
|
|
1278
1415
|
/**
|
|
1279
|
-
*
|
|
1280
|
-
*
|
|
1281
|
-
* Only effective if the experimental `experimental.localizeStatus` is enabled.
|
|
1282
|
-
*
|
|
1283
|
-
* @experimental
|
|
1284
|
-
* @default false
|
|
1416
|
+
* Automatically set to true when localization is configured and the collection/global
|
|
1417
|
+
* has localized fields. Controls whether `_status` is stored per-locale.
|
|
1285
1418
|
*/
|
|
1286
1419
|
localizeStatus?: boolean;
|
|
1287
1420
|
/**
|
|
@@ -1464,11 +1597,7 @@ interface BaseDatabaseAdapter {
|
|
|
1464
1597
|
* A key-value store of all sessions open (used for transactions)
|
|
1465
1598
|
*/
|
|
1466
1599
|
sessions?: {
|
|
1467
|
-
[id: string]:
|
|
1468
|
-
db: unknown;
|
|
1469
|
-
reject: () => Promise<void>;
|
|
1470
|
-
resolve: () => Promise<void>;
|
|
1471
|
-
};
|
|
1600
|
+
[id: string]: unknown;
|
|
1472
1601
|
};
|
|
1473
1602
|
/**
|
|
1474
1603
|
* Updates a global that exists. If the global doesn't exist yet, this will not work - you should use `createGlobal` instead.
|
|
@@ -2187,6 +2316,102 @@ type Globals = {
|
|
|
2187
2316
|
} | false;
|
|
2188
2317
|
};
|
|
2189
2318
|
|
|
2319
|
+
/** Read (`output`) vs write (`input`) shape: `input` is what `create`/`update` accept. */
|
|
2320
|
+
type SchemaVariant = 'input' | 'output';
|
|
2321
|
+
/**
|
|
2322
|
+
* Returns a JSON Schema Type with 'null' added if the field is not required.
|
|
2323
|
+
*/
|
|
2324
|
+
declare function withNullableJSONSchemaType(fieldType: JSONSchema4TypeName, isRequired: boolean): JSONSchema4TypeName | JSONSchema4TypeName[];
|
|
2325
|
+
type ConfigToJSONSchemaOptions = {
|
|
2326
|
+
forceInlineBlocks?: boolean;
|
|
2327
|
+
};
|
|
2328
|
+
type FieldsToJSONSchemaArgs = {
|
|
2329
|
+
/**
|
|
2330
|
+
* Used for relationship fields, to determine whether to use a string or
|
|
2331
|
+
* number type for the ID. While there is a default ID field type set by
|
|
2332
|
+
* the db adapter, they can differ on a collection-level if they have
|
|
2333
|
+
* custom ID fields.
|
|
2334
|
+
*/
|
|
2335
|
+
collectionIDFieldTypes: {
|
|
2336
|
+
[key: string]: 'number' | 'string';
|
|
2337
|
+
};
|
|
2338
|
+
config?: SanitizedConfig;
|
|
2339
|
+
fields: FlattenedField$1[];
|
|
2340
|
+
/**
|
|
2341
|
+
* If true, blocks are inlined into each `block` field instead of being
|
|
2342
|
+
* lifted to a top-level definition. Used by the MCP plugin.
|
|
2343
|
+
*/
|
|
2344
|
+
forceInlineBlocks?: boolean;
|
|
2345
|
+
i18n?: I18n;
|
|
2346
|
+
/** Allows you to define new top-level interfaces that can be re-used in the output schema. */
|
|
2347
|
+
interfaceNameDefinitions: Map<string, JSONSchema4>;
|
|
2348
|
+
/**
|
|
2349
|
+
* Allows you to append raw TS source to `payload-types.ts`. Identical
|
|
2350
|
+
* strings de-dupe naturally, so the same helper written from many fields
|
|
2351
|
+
* ends up emitted once.
|
|
2352
|
+
*/
|
|
2353
|
+
typeStringDefinitions: Set<string>;
|
|
2354
|
+
variant?: SchemaVariant;
|
|
2355
|
+
};
|
|
2356
|
+
declare function fieldsToJSONSchema({ collectionIDFieldTypes, config, fields, forceInlineBlocks, i18n, interfaceNameDefinitions, typeStringDefinitions, variant, }: FieldsToJSONSchemaArgs): {
|
|
2357
|
+
properties: {
|
|
2358
|
+
[k: string]: JSONSchema4;
|
|
2359
|
+
};
|
|
2360
|
+
required: string[];
|
|
2361
|
+
};
|
|
2362
|
+
declare function entityToJSONSchema(config: SanitizedConfig, entity: SanitizedCollectionConfig | SanitizedGlobalConfig, interfaceNameDefinitions: Map<string, JSONSchema4>, defaultIDType: 'number' | 'text', typeStringDefinitions: Set<string>, collectionIDFieldTypes?: {
|
|
2363
|
+
[key: string]: 'number' | 'string';
|
|
2364
|
+
}, i18n?: I18n, forceInlineBlocks?: boolean, variant?: SchemaVariant): JSONSchema4;
|
|
2365
|
+
/**
|
|
2366
|
+
* Like {@link entityToJSONSchema}, but returns a standalone schema for one collection or global:
|
|
2367
|
+
* the entity plus only the `$defs` it actually uses, so it resolves on its own rather than
|
|
2368
|
+
* as part of the whole config schema.
|
|
2369
|
+
*
|
|
2370
|
+
* Relationship/upload `$ref`s to other collections are left in place - the caller handles those.
|
|
2371
|
+
* (The `input` variant reduces relationships to IDs, so only rich-text node `$defs` still ref them.)
|
|
2372
|
+
*/
|
|
2373
|
+
declare function entityToStandaloneJSONSchema({ config, defaultIDType, entity, i18n, variant, }: {
|
|
2374
|
+
config: SanitizedConfig;
|
|
2375
|
+
defaultIDType: 'number' | 'text';
|
|
2376
|
+
entity: SanitizedCollectionConfig | SanitizedGlobalConfig;
|
|
2377
|
+
i18n?: I18n;
|
|
2378
|
+
variant?: SchemaVariant;
|
|
2379
|
+
}): JSONSchema4;
|
|
2380
|
+
/**
|
|
2381
|
+
* Registers a block's schema as a top-level definition and returns its name.
|
|
2382
|
+
*
|
|
2383
|
+
* The name is the block's `interfaceName`, or a PascalCase form of its slug. If a different block
|
|
2384
|
+
* already uses that name - whether it was auto-generated or an explicit `interfaceName` - this one
|
|
2385
|
+
* gets a content-hash suffix (`Hero_3F2A1B0C`) so the two don't overwrite each other. Registering
|
|
2386
|
+
* the same block shape again reuses its name.
|
|
2387
|
+
*
|
|
2388
|
+
* The `input` variant adds an `Input` suffix (`HeroInput`) - unless the read-shaped def is already
|
|
2389
|
+
* registered with byte-identical content (a block with nothing that differs between input and
|
|
2390
|
+
* output), in which case it's shared as-is rather than emitting a redundant twin.
|
|
2391
|
+
*/
|
|
2392
|
+
declare function registerBlockInterface(block: {
|
|
2393
|
+
interfaceName?: string;
|
|
2394
|
+
slug: string;
|
|
2395
|
+
}, blockSchema: JSONSchema4, interfaceNameDefinitions: Map<string, JSONSchema4>, variant?: SchemaVariant): string;
|
|
2396
|
+
/**
|
|
2397
|
+
* This is used for generating the TypeScript types (payload-types.ts) with the payload generate:types command.
|
|
2398
|
+
*/
|
|
2399
|
+
declare function configToJSONSchema(config: SanitizedConfig, defaultIDType?: 'number' | 'text', i18n?: I18n, { forceInlineBlocks }?: ConfigToJSONSchemaOptions): {
|
|
2400
|
+
jsonSchema: JSONSchema4;
|
|
2401
|
+
typeStringDefinitions: Set<string>;
|
|
2402
|
+
};
|
|
2403
|
+
|
|
2404
|
+
type Slugify<T extends TypeWithID = any> = (args: {
|
|
2405
|
+
data: T;
|
|
2406
|
+
req: PayloadRequest;
|
|
2407
|
+
valueToSlugify?: any;
|
|
2408
|
+
}) => Promise<string | undefined> | string | undefined;
|
|
2409
|
+
/**
|
|
2410
|
+
* Props the `SlugField` client component receives. The slug-specific `useAsSlug`
|
|
2411
|
+
* arrives on the client field config (it is not a server-only property).
|
|
2412
|
+
*/
|
|
2413
|
+
type SlugFieldClientProps = TextFieldClientProps;
|
|
2414
|
+
|
|
2190
2415
|
type DisabledOptions = {
|
|
2191
2416
|
bulkEdit?: boolean;
|
|
2192
2417
|
column?: boolean;
|
|
@@ -2198,6 +2423,7 @@ type DisabledOptions = {
|
|
|
2198
2423
|
type TextFieldValidation = Validate<string, unknown, unknown, TextField>;
|
|
2199
2424
|
type TextFieldManyValidation = Validate<string[], unknown, unknown, TextField>;
|
|
2200
2425
|
type TextFieldSingleValidation = Validate<string, unknown, unknown, TextField>;
|
|
2426
|
+
type SlugFieldValidation = Validate<string, unknown, unknown, SlugField>;
|
|
2201
2427
|
type PasswordFieldValidation = Validate<string, unknown, unknown, TextField>;
|
|
2202
2428
|
type ConfirmPasswordFieldValidation = Validate<string, unknown, {
|
|
2203
2429
|
password: string;
|
|
@@ -2264,6 +2490,7 @@ type PointFieldValidation = Validate<[
|
|
|
2264
2490
|
* These can be re-used in custom validations
|
|
2265
2491
|
*/
|
|
2266
2492
|
declare const validations: {
|
|
2493
|
+
slug: SlugFieldValidation;
|
|
2267
2494
|
array: ArrayFieldValidation;
|
|
2268
2495
|
blocks: BlocksFieldValidation;
|
|
2269
2496
|
checkbox: CheckboxFieldValidation;
|
|
@@ -2284,6 +2511,7 @@ declare const validations: {
|
|
|
2284
2511
|
upload: UploadFieldValidation;
|
|
2285
2512
|
};
|
|
2286
2513
|
|
|
2514
|
+
type BrowserAutoComplete = Extract<React$1.InputHTMLAttributes<HTMLInputElement>['autoComplete'], string>;
|
|
2287
2515
|
type FieldHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = {
|
|
2288
2516
|
/**
|
|
2289
2517
|
* The data of the nearest parent block. If the field is not within a block, `blockData` will be equal to `undefined`.
|
|
@@ -2352,7 +2580,7 @@ type FieldHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData =
|
|
|
2352
2580
|
value?: TValue;
|
|
2353
2581
|
};
|
|
2354
2582
|
type FieldHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: FieldHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
|
|
2355
|
-
type
|
|
2583
|
+
type SharedFieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = {
|
|
2356
2584
|
/**
|
|
2357
2585
|
* The data of the nearest parent block. If the field is not within a block, `blockData` will be equal to `undefined`.
|
|
2358
2586
|
*/
|
|
@@ -2376,6 +2604,13 @@ type FieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = {
|
|
|
2376
2604
|
*/
|
|
2377
2605
|
siblingData?: Partial<TSiblingData>;
|
|
2378
2606
|
};
|
|
2607
|
+
type FieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = ({
|
|
2608
|
+
collection: SanitizedCollectionConfig;
|
|
2609
|
+
global?: never;
|
|
2610
|
+
} & SharedFieldAccessArgs<TData, TSiblingData>) | ({
|
|
2611
|
+
collection?: never;
|
|
2612
|
+
global: SanitizedGlobalConfig;
|
|
2613
|
+
} & SharedFieldAccessArgs<TData, TSiblingData>);
|
|
2379
2614
|
type FieldAccess<TData extends TypeWithID = any, TSiblingData = any> = (args: FieldAccessArgs<TData, TSiblingData>) => boolean | Promise<boolean>;
|
|
2380
2615
|
type Condition<TData extends TypeWithID = any, TSiblingData = any> = (
|
|
2381
2616
|
/**
|
|
@@ -2570,6 +2805,18 @@ interface FieldBase {
|
|
|
2570
2805
|
beforeValidate?: FieldHook[];
|
|
2571
2806
|
};
|
|
2572
2807
|
index?: boolean;
|
|
2808
|
+
/**
|
|
2809
|
+
* Allows you to modify the base JSON schema that is generated for this field.
|
|
2810
|
+
* This JSON schema will be used to generate the TypeScript interface of this field, and to
|
|
2811
|
+
* validate the field's value in the MCP plugin.
|
|
2812
|
+
*
|
|
2813
|
+
* `variant` is `'input'` when generating the write shape (`create`/`update`) and `'output'` when
|
|
2814
|
+
* generating the read shape, so a transform can differ between the two.
|
|
2815
|
+
*/
|
|
2816
|
+
jsonSchema?: Array<(args: {
|
|
2817
|
+
jsonSchema: JSONSchema4;
|
|
2818
|
+
variant: SchemaVariant;
|
|
2819
|
+
}) => JSONSchema4>;
|
|
2573
2820
|
label?: false | LabelFunction | StaticLabel;
|
|
2574
2821
|
localized?: boolean;
|
|
2575
2822
|
/**
|
|
@@ -2581,13 +2828,6 @@ interface FieldBase {
|
|
|
2581
2828
|
name: string;
|
|
2582
2829
|
required?: boolean;
|
|
2583
2830
|
saveToJWT?: boolean | string;
|
|
2584
|
-
/**
|
|
2585
|
-
* Allows you to modify the base JSON schema that is generated during generate:types for this field.
|
|
2586
|
-
* This JSON schema will be used to generate the TypeScript interface of this field.
|
|
2587
|
-
*/
|
|
2588
|
-
typescriptSchema?: Array<(args: {
|
|
2589
|
-
jsonSchema: JSONSchema4;
|
|
2590
|
-
}) => JSONSchema4>;
|
|
2591
2831
|
unique?: boolean;
|
|
2592
2832
|
validate?: Validate;
|
|
2593
2833
|
/**
|
|
@@ -2597,34 +2837,14 @@ interface FieldBase {
|
|
|
2597
2837
|
*/
|
|
2598
2838
|
virtual?: boolean | string;
|
|
2599
2839
|
}
|
|
2600
|
-
interface FieldBaseClient {
|
|
2840
|
+
interface FieldBaseClient extends Pick<FieldBase, 'hidden' | 'index' | 'jsonSchema' | 'localized' | 'name' | 'required' | 'saveToJWT' | 'unique'> {
|
|
2601
2841
|
admin?: AdminClient;
|
|
2602
|
-
hidden?: boolean;
|
|
2603
|
-
index?: boolean;
|
|
2604
2842
|
label?: StaticLabel;
|
|
2605
|
-
localized?: boolean;
|
|
2606
|
-
/**
|
|
2607
|
-
* The name of the field. Must be alphanumeric and cannot contain ' . '
|
|
2608
|
-
*
|
|
2609
|
-
* Must not be one of reserved field names: ['__v', 'salt', 'hash', 'file']
|
|
2610
|
-
* @link https://payloadcms.com/docs/fields/overview#field-names
|
|
2611
|
-
*/
|
|
2612
|
-
name: string;
|
|
2613
|
-
required?: boolean;
|
|
2614
|
-
saveToJWT?: boolean | string;
|
|
2615
|
-
/**
|
|
2616
|
-
* Allows you to modify the base JSON schema that is generated during generate:types for this field.
|
|
2617
|
-
* This JSON schema will be used to generate the TypeScript interface of this field.
|
|
2618
|
-
*/
|
|
2619
|
-
typescriptSchema?: Array<(args: {
|
|
2620
|
-
jsonSchema: JSONSchema4;
|
|
2621
|
-
}) => JSONSchema4>;
|
|
2622
|
-
unique?: boolean;
|
|
2623
2843
|
}
|
|
2624
2844
|
type NumberField = {
|
|
2625
2845
|
admin?: {
|
|
2626
2846
|
/** Set this property to a string that will be used for browser autocomplete. */
|
|
2627
|
-
autoComplete?:
|
|
2847
|
+
autoComplete?: BrowserAutoComplete;
|
|
2628
2848
|
components?: {
|
|
2629
2849
|
afterInput?: CustomComponent[];
|
|
2630
2850
|
beforeInput?: CustomComponent[];
|
|
@@ -2663,7 +2883,7 @@ type NumberFieldClient = {
|
|
|
2663
2883
|
} & FieldBaseClient & Pick<NumberField, 'hasMany' | 'max' | 'maxRows' | 'min' | 'minRows' | 'type'>;
|
|
2664
2884
|
type TextField = {
|
|
2665
2885
|
admin?: {
|
|
2666
|
-
autoComplete?:
|
|
2886
|
+
autoComplete?: BrowserAutoComplete;
|
|
2667
2887
|
components?: {
|
|
2668
2888
|
afterInput?: CustomComponent[];
|
|
2669
2889
|
beforeInput?: CustomComponent[];
|
|
@@ -2698,7 +2918,7 @@ type TextFieldClient = {
|
|
|
2698
2918
|
} & FieldBaseClient & Pick<TextField, 'hasMany' | 'maxLength' | 'maxRows' | 'minLength' | 'minRows' | 'type'>;
|
|
2699
2919
|
type EmailField = {
|
|
2700
2920
|
admin?: {
|
|
2701
|
-
autoComplete?:
|
|
2921
|
+
autoComplete?: BrowserAutoComplete;
|
|
2702
2922
|
components?: {
|
|
2703
2923
|
afterInput?: CustomComponent[];
|
|
2704
2924
|
beforeInput?: CustomComponent[];
|
|
@@ -2713,6 +2933,29 @@ type EmailField = {
|
|
|
2713
2933
|
type EmailFieldClient = {
|
|
2714
2934
|
admin?: AdminClient & PickPreserveOptional<NonNullable<EmailField['admin']>, 'autoComplete' | 'placeholder'>;
|
|
2715
2935
|
} & FieldBaseClient & Pick<EmailField, 'type'>;
|
|
2936
|
+
type SlugField = {
|
|
2937
|
+
admin?: {
|
|
2938
|
+
components?: {
|
|
2939
|
+
afterInput?: CustomComponent[];
|
|
2940
|
+
beforeInput?: CustomComponent[];
|
|
2941
|
+
Error?: CustomComponent<TextFieldErrorClientComponent | TextFieldErrorServerComponent>;
|
|
2942
|
+
Label?: CustomComponent<TextFieldLabelClientComponent | TextFieldLabelServerComponent>;
|
|
2943
|
+
} & FieldAdmin['components'];
|
|
2944
|
+
placeholder?: Record<string, string> | string;
|
|
2945
|
+
} & FieldAdmin;
|
|
2946
|
+
/** Provide a custom slugify function. Runs on the server. */
|
|
2947
|
+
slugify?: Slugify;
|
|
2948
|
+
type: 'slug';
|
|
2949
|
+
/**
|
|
2950
|
+
* Name of the sibling field whose value the slug is generated from, e.g. `'title'`.
|
|
2951
|
+
* Required — there is no default, since a collection may not have a `title` field.
|
|
2952
|
+
*/
|
|
2953
|
+
useAsSlug: string;
|
|
2954
|
+
validate?: TextFieldSingleValidation;
|
|
2955
|
+
} & Omit<FieldBase, 'validate'>;
|
|
2956
|
+
type SlugFieldClient = {
|
|
2957
|
+
admin?: AdminClient & PickPreserveOptional<NonNullable<SlugField['admin']>, 'placeholder'>;
|
|
2958
|
+
} & FieldBaseClient & Pick<SlugField, 'type' | 'useAsSlug'>;
|
|
2716
2959
|
type TextareaField = {
|
|
2717
2960
|
admin?: {
|
|
2718
2961
|
components?: {
|
|
@@ -3279,8 +3522,8 @@ type RadioFieldClient = {
|
|
|
3279
3522
|
} & FieldBaseClient & Pick<RadioField, 'interfaceName' | 'options' | 'type'>;
|
|
3280
3523
|
type BlockFields = {
|
|
3281
3524
|
[key: string]: any;
|
|
3282
|
-
blockName?: string;
|
|
3283
|
-
blockType
|
|
3525
|
+
blockName?: null | string;
|
|
3526
|
+
blockType: string;
|
|
3284
3527
|
};
|
|
3285
3528
|
type BlockJSX = {
|
|
3286
3529
|
/**
|
|
@@ -3338,7 +3581,7 @@ type BlockJSX = {
|
|
|
3338
3581
|
}) => Record<string, any>;
|
|
3339
3582
|
openMatch?: RegExpMatchArray;
|
|
3340
3583
|
props: Record<string, any>;
|
|
3341
|
-
}) =>
|
|
3584
|
+
}) => false | MarkOptional<BlockFields, 'blockType'>;
|
|
3342
3585
|
};
|
|
3343
3586
|
type Block = {
|
|
3344
3587
|
/**
|
|
@@ -3421,11 +3664,12 @@ type Block = {
|
|
|
3421
3664
|
* @deprecated Use `admin.images` instead. Preferred aspect ratio of the image is 3:2.
|
|
3422
3665
|
*/
|
|
3423
3666
|
imageURL?: string;
|
|
3424
|
-
/**
|
|
3425
|
-
*
|
|
3426
|
-
*
|
|
3427
|
-
*
|
|
3428
|
-
*
|
|
3667
|
+
/**
|
|
3668
|
+
* Override the name of the top-level TypeScript interface and GraphQL
|
|
3669
|
+
* type generated for this block. Blocks **always** generate a top-level
|
|
3670
|
+
* interface - by default it's a PascalCase form of the slug
|
|
3671
|
+
* (`'content-block'` → `ContentBlock`). Set this to take control of the
|
|
3672
|
+
* generated name
|
|
3429
3673
|
*/
|
|
3430
3674
|
interfaceName?: string;
|
|
3431
3675
|
jsx?: BlockJSX;
|
|
@@ -3452,12 +3696,9 @@ type BlocksField = {
|
|
|
3452
3696
|
isSortable?: boolean;
|
|
3453
3697
|
} & FieldAdmin;
|
|
3454
3698
|
/**
|
|
3455
|
-
*
|
|
3456
|
-
*
|
|
3457
|
-
* @todo `blockReferences` will be merged with `blocks` in 4.0
|
|
3699
|
+
* Blocks to use in this field. Inline block configs and string slugs of blocks defined in `config.blocks` are both supported.
|
|
3458
3700
|
*/
|
|
3459
|
-
|
|
3460
|
-
blocks: Block[];
|
|
3701
|
+
blocks: (Block | BlockSlug)[];
|
|
3461
3702
|
defaultValue?: DefaultValue;
|
|
3462
3703
|
/**
|
|
3463
3704
|
* Blocks can be conditionally enabled using the `filterOptions` property on the blocks field.
|
|
@@ -3497,13 +3738,7 @@ type BlocksField = {
|
|
|
3497
3738
|
} & Omit<FieldBase, 'validate'>;
|
|
3498
3739
|
type BlocksFieldClient = {
|
|
3499
3740
|
admin?: AdminClient & Pick<BlocksField['admin'], 'initCollapsed' | 'isSortable'>;
|
|
3500
|
-
|
|
3501
|
-
* Like `blocks`, but allows you to also pass strings that are slugs of blocks defined in `config.blocks`.
|
|
3502
|
-
*
|
|
3503
|
-
* @todo `blockReferences` will be merged with `blocks` in 4.0
|
|
3504
|
-
*/
|
|
3505
|
-
blockReferences?: (ClientBlock | string)[];
|
|
3506
|
-
blocks: ClientBlock[];
|
|
3741
|
+
blocks: (ClientBlock | string)[];
|
|
3507
3742
|
labels?: LabelsClient;
|
|
3508
3743
|
} & FieldBaseClient & Pick<BlocksField, 'maxRows' | 'minRows' | 'type'>;
|
|
3509
3744
|
type PointField = {
|
|
@@ -3599,14 +3834,8 @@ type FlattenedBlock = {
|
|
|
3599
3834
|
flattenedFields: FlattenedField$1[];
|
|
3600
3835
|
} & Block;
|
|
3601
3836
|
type FlattenedBlocksField = {
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
*
|
|
3605
|
-
* @todo `blockReferences` will be merged with `blocks` in 4.0
|
|
3606
|
-
*/
|
|
3607
|
-
blockReferences?: (FlattenedBlock | string)[];
|
|
3608
|
-
blocks: FlattenedBlock[];
|
|
3609
|
-
} & Omit<BlocksField, 'blockReferences' | 'blocks'>;
|
|
3837
|
+
blocks: (FlattenedBlock | string)[];
|
|
3838
|
+
} & Omit<BlocksField, 'blocks'>;
|
|
3610
3839
|
type FlattenedGroupField = {
|
|
3611
3840
|
flattenedFields: FlattenedField$1[];
|
|
3612
3841
|
name: string;
|
|
@@ -3620,18 +3849,18 @@ type FlattenedTabAsField = {
|
|
|
3620
3849
|
type FlattenedJoinField = {
|
|
3621
3850
|
targetField: RelationshipField | UploadField;
|
|
3622
3851
|
} & JoinField;
|
|
3623
|
-
type FlattenedField$1 = CheckboxField | CodeField | DateField | EmailField | FlattenedArrayField | FlattenedBlocksField | FlattenedGroupField | FlattenedJoinField | FlattenedTabAsField | JSONField | NumberField | PointField | RadioField | RelationshipField | RichTextField | SelectField | TextareaField | TextField | UploadField;
|
|
3624
|
-
type Field = ArrayField | BlocksField | CheckboxField | CodeField | CollapsibleField | DateField | EmailField | GroupField | JoinField | JSONField | NumberField | PointField | RadioField | RelationshipField | RichTextField | RowField | SelectField | TabsField | TextareaField | TextField | UIField | UploadField;
|
|
3625
|
-
type ClientField = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | CollapsibleFieldClient | DateFieldClient | EmailFieldClient | GroupFieldClient | JoinFieldClient | JSONFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | RowFieldClient | SelectFieldClient | TabsFieldClient | TextareaFieldClient | TextFieldClient | UIFieldClient | UploadFieldClient;
|
|
3852
|
+
type FlattenedField$1 = CheckboxField | CodeField | DateField | EmailField | FlattenedArrayField | FlattenedBlocksField | FlattenedGroupField | FlattenedJoinField | FlattenedTabAsField | JSONField | NumberField | PointField | RadioField | RelationshipField | RichTextField | SelectField | SlugField | TextareaField | TextField | UploadField;
|
|
3853
|
+
type Field = ArrayField | BlocksField | CheckboxField | CodeField | CollapsibleField | DateField | EmailField | GroupField | JoinField | JSONField | NumberField | PointField | RadioField | RelationshipField | RichTextField | RowField | SelectField | SlugField | TabsField | TextareaField | TextField | UIField | UploadField;
|
|
3854
|
+
type ClientField = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | CollapsibleFieldClient | DateFieldClient | EmailFieldClient | GroupFieldClient | JoinFieldClient | JSONFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | RowFieldClient | SelectFieldClient | SlugFieldClient | TabsFieldClient | TextareaFieldClient | TextFieldClient | UIFieldClient | UploadFieldClient;
|
|
3626
3855
|
type ClientFieldProps = ArrayFieldClientProps | BlocksFieldClientProps | CheckboxFieldClientProps | CodeFieldClientProps | CollapsibleFieldClientProps | DateFieldClientProps | EmailFieldClientProps | GroupFieldClientProps | HiddenFieldProps | JoinFieldClientProps | JSONFieldClientProps | NumberFieldClientProps | PointFieldClientProps | RadioFieldClientProps | RelationshipFieldClientProps | RichTextFieldClientProps | RowFieldClientProps | SelectFieldClientProps | TabsFieldClientProps | TextareaFieldClientProps | TextFieldClientProps | UploadFieldClientProps;
|
|
3627
3856
|
type ExtractFieldTypes<T> = T extends {
|
|
3628
3857
|
type: infer U;
|
|
3629
3858
|
} ? U : never;
|
|
3630
3859
|
type FieldTypes = ExtractFieldTypes<Field>;
|
|
3631
|
-
type FieldAffectingData = ArrayField | BlocksField | CheckboxField | CodeField | DateField | EmailField | JoinField | JSONField | NamedGroupField | NumberField | PointField | RadioField | RelationshipField | RichTextField | SelectField | TabAsField | TextareaField | TextField | UploadField;
|
|
3632
|
-
type FieldAffectingDataClient = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | DateFieldClient | EmailFieldClient | JoinFieldClient | JSONFieldClient | NamedGroupFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | SelectFieldClient | TabAsFieldClient | TextareaFieldClient | TextFieldClient | UploadFieldClient;
|
|
3633
|
-
type NonPresentationalField = ArrayField | BlocksField | CheckboxField | CodeField | CollapsibleField | DateField | EmailField | JSONField | NamedGroupField | NumberField | PointField | RadioField | RelationshipField | RichTextField | RowField | SelectField | TabsField | TextareaField | TextField | UploadField;
|
|
3634
|
-
type NonPresentationalFieldClient = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | CollapsibleFieldClient | DateFieldClient | EmailFieldClient | JSONFieldClient | NamedGroupFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | RowFieldClient | SelectFieldClient | TabsFieldClient | TextareaFieldClient | TextFieldClient | UploadFieldClient;
|
|
3860
|
+
type FieldAffectingData = ArrayField | BlocksField | CheckboxField | CodeField | DateField | EmailField | JoinField | JSONField | NamedGroupField | NumberField | PointField | RadioField | RelationshipField | RichTextField | SelectField | SlugField | TabAsField | TextareaField | TextField | UploadField;
|
|
3861
|
+
type FieldAffectingDataClient = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | DateFieldClient | EmailFieldClient | JoinFieldClient | JSONFieldClient | NamedGroupFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | SelectFieldClient | SlugFieldClient | TabAsFieldClient | TextareaFieldClient | TextFieldClient | UploadFieldClient;
|
|
3862
|
+
type NonPresentationalField = ArrayField | BlocksField | CheckboxField | CodeField | CollapsibleField | DateField | EmailField | JSONField | NamedGroupField | NumberField | PointField | RadioField | RelationshipField | RichTextField | RowField | SelectField | SlugField | TabsField | TextareaField | TextField | UploadField;
|
|
3863
|
+
type NonPresentationalFieldClient = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | CollapsibleFieldClient | DateFieldClient | EmailFieldClient | JSONFieldClient | NamedGroupFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | RowFieldClient | SelectFieldClient | SlugFieldClient | TabsFieldClient | TextareaFieldClient | TextFieldClient | UploadFieldClient;
|
|
3635
3864
|
type FieldWithPath = {
|
|
3636
3865
|
path?: string;
|
|
3637
3866
|
} & Field;
|
|
@@ -3815,29 +4044,15 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
|
|
|
3815
4044
|
siblingDoc: JsonObject;
|
|
3816
4045
|
}) => void;
|
|
3817
4046
|
hooks?: RichTextHooks;
|
|
3818
|
-
/**
|
|
3819
|
-
* @deprecated - manually merge i18n translations into the config.i18n.translations object within the adapter provider instead.
|
|
3820
|
-
* This property will be removed in v4.
|
|
3821
|
-
*/
|
|
3822
|
-
i18n?: Partial<GenericLanguages>;
|
|
3823
4047
|
/**
|
|
3824
4048
|
* Return the JSON schema for the field value. The JSON schema is read by
|
|
3825
4049
|
* `json-schema-to-typescript` which is used to generate types for this richtext field
|
|
3826
4050
|
* payload-types.ts)
|
|
3827
4051
|
*/
|
|
3828
|
-
|
|
3829
|
-
collectionIDFieldTypes: {
|
|
3830
|
-
[key: string]: 'number' | 'string';
|
|
3831
|
-
};
|
|
3832
|
-
config?: SanitizedConfig;
|
|
4052
|
+
jsonSchema?: (args: {
|
|
3833
4053
|
field: RichTextField<Value, AdapterProps, ExtraFieldProperties>;
|
|
3834
|
-
i18n?: I18n;
|
|
3835
|
-
/**
|
|
3836
|
-
* Allows you to define new top-level interfaces that can be re-used in the output schema.
|
|
3837
|
-
*/
|
|
3838
|
-
interfaceNameDefinitions: Map<string, JSONSchema4>;
|
|
3839
4054
|
isRequired: boolean;
|
|
3840
|
-
}) => JSONSchema4;
|
|
4055
|
+
} & Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions' | 'variant'>) => JSONSchema4;
|
|
3841
4056
|
/**
|
|
3842
4057
|
* Provide validation function for the richText field. This function is run the same way
|
|
3843
4058
|
* as other field validation functions.
|
|
@@ -3912,14 +4127,14 @@ declare function parseCookies(headers: Request['headers']): Map<string, string>;
|
|
|
3912
4127
|
|
|
3913
4128
|
declare const extractJWT: (args: Omit<AuthStrategyFunctionArgs, "strategyName">) => null | string;
|
|
3914
4129
|
|
|
3915
|
-
type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | 'label' | '
|
|
4130
|
+
type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | 'jsonSchema' | 'label' | 'slugify' | 'validate' | keyof Pick<FieldBase, 'access' | 'custom' | 'defaultValue' | 'hooks'>;
|
|
3916
4131
|
type ServerOnlyFieldAdminProperties = keyof Pick<FieldBase['admin'], 'components' | 'condition'>;
|
|
3917
4132
|
declare const createClientBlocks: ({ blocks, defaultIDType, i18n, importMap, }: {
|
|
3918
4133
|
blocks: (Block | string)[];
|
|
3919
4134
|
defaultIDType: Payload["config"]["db"]["defaultIDType"];
|
|
3920
4135
|
i18n: I18nClient;
|
|
3921
4136
|
importMap: ImportMap;
|
|
3922
|
-
}) => (ClientBlock | string)[]
|
|
4137
|
+
}) => (ClientBlock | string)[];
|
|
3923
4138
|
declare const createClientField: ({ defaultIDType, field: incomingField, i18n, importMap, }: {
|
|
3924
4139
|
defaultIDType: Payload["config"]["db"]["defaultIDType"];
|
|
3925
4140
|
field: Field;
|
|
@@ -3957,9 +4172,15 @@ type HierarchyConfig = {
|
|
|
3957
4172
|
*/
|
|
3958
4173
|
components?: {
|
|
3959
4174
|
/**
|
|
3960
|
-
* Custom icon component for hierarchy items
|
|
4175
|
+
* Custom icon component for hierarchy items.
|
|
4176
|
+
* - 24x24 size icon.
|
|
3961
4177
|
*/
|
|
3962
4178
|
Icon?: PayloadComponent;
|
|
4179
|
+
/**
|
|
4180
|
+
* Small icon component for compact hierarchy contexts:
|
|
4181
|
+
* - 16x16 size icon.
|
|
4182
|
+
*/
|
|
4183
|
+
SmallIcon?: PayloadComponent;
|
|
3963
4184
|
};
|
|
3964
4185
|
/**
|
|
3965
4186
|
* Whether to inject a sidebar tab for this hierarchy collection
|
|
@@ -4041,6 +4262,7 @@ type SanitizedHierarchyConfig = {
|
|
|
4041
4262
|
admin: {
|
|
4042
4263
|
components: {
|
|
4043
4264
|
Icon: PayloadComponent;
|
|
4265
|
+
SmallIcon: PayloadComponent;
|
|
4044
4266
|
};
|
|
4045
4267
|
injectSidebarTab: boolean;
|
|
4046
4268
|
treeLimit: number;
|
|
@@ -4081,7 +4303,7 @@ type ClientHierarchyConfig = Omit<SanitizedHierarchyConfig, 'slugify'>;
|
|
|
4081
4303
|
|
|
4082
4304
|
type ServerOnlyCollectionProperties = keyof Pick<SanitizedCollectionConfig, 'access' | 'custom' | 'endpoints' | 'flattenedFields' | 'hooks' | 'indexes' | 'joins' | 'polymorphicJoins' | 'sanitizedIndexes' | 'select'>;
|
|
4083
4305
|
type ServerOnlyCollectionAdminProperties = keyof Pick<SanitizedCollectionConfig['admin'], 'baseFilter' | 'baseListFilter' | 'components' | 'formatDocURL' | 'hidden'>;
|
|
4084
|
-
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4306
|
+
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'admin' | 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4085
4307
|
type ClientCollectionConfig = {
|
|
4086
4308
|
admin: {
|
|
4087
4309
|
description?: StaticDescription;
|
|
@@ -4134,7 +4356,7 @@ declare const createClientGlobalConfigs: ({ defaultIDType, globals, i18n, import
|
|
|
4134
4356
|
importMap: ImportMap;
|
|
4135
4357
|
}) => ClientGlobalConfig[];
|
|
4136
4358
|
|
|
4137
|
-
type ServerOnlyRootProperties = keyof Pick<SanitizedConfig, 'bin' | 'cors' | 'csrf' | 'custom' | 'db' | 'editor' | 'email' | 'endpoints' | 'graphQL' | 'hooks' | 'i18n' | 'jobs' | 'kv' | 'logger' | 'onInit' | 'plugins' | 'queryPresets' | 'secret' | 'sharp' | 'typescript'>;
|
|
4359
|
+
type ServerOnlyRootProperties = keyof Pick<SanitizedConfig, 'bin' | 'cors' | 'csrf' | 'custom' | 'db' | 'editor' | 'email' | 'endpoints' | 'graphQL' | 'hooks' | 'i18n' | 'jobs' | 'kv' | 'logger' | 'onInit' | 'plugins' | 'queryPresets' | 'secret' | 'sharp' | 'storage' | 'typescript'>;
|
|
4138
4360
|
type ServerOnlyRootAdminProperties = keyof Pick<SanitizedConfig['admin'], 'components'>;
|
|
4139
4361
|
type ClientConfig = {
|
|
4140
4362
|
admin: {
|
|
@@ -4180,7 +4402,7 @@ type CreateClientConfigArgs = {
|
|
|
4180
4402
|
* For example, allow `true` to generate a client config for the "create first user" page
|
|
4181
4403
|
* where there is no user yet, but the config should still be complete.
|
|
4182
4404
|
*/
|
|
4183
|
-
user: true |
|
|
4405
|
+
user: true | User;
|
|
4184
4406
|
};
|
|
4185
4407
|
declare const createUnauthenticatedClientConfig: ({ clientConfig, }: {
|
|
4186
4408
|
/**
|
|
@@ -4205,11 +4427,13 @@ type EditViewProps = {
|
|
|
4205
4427
|
*/
|
|
4206
4428
|
type RenderDocumentVersionsProperties = {
|
|
4207
4429
|
/**
|
|
4208
|
-
*
|
|
4430
|
+
* Override the CreatedAt cell component rendered in the versions table.
|
|
4431
|
+
* Useful when embedding the versions list inside a drawer that should update URL params
|
|
4432
|
+
* rather than perform a full navigation.
|
|
4209
4433
|
*/
|
|
4210
|
-
|
|
4434
|
+
CreatedAtCellOverride?: (props: any) => any;
|
|
4211
4435
|
/**
|
|
4212
|
-
*
|
|
4436
|
+
* @deprecated Pass `CreatedAtCellOverride` directly instead.
|
|
4213
4437
|
* @default false
|
|
4214
4438
|
*/
|
|
4215
4439
|
useVersionDrawerCreatedAtCell?: boolean;
|
|
@@ -5276,6 +5500,40 @@ type Plugin = ((config: Config) => Config | Promise<Config>) & {
|
|
|
5276
5500
|
/** @experimental Unique identifier for cross-plugin discovery via `config.plugins`. */
|
|
5277
5501
|
slug?: string;
|
|
5278
5502
|
};
|
|
5503
|
+
/**
|
|
5504
|
+
* Configures where uploaded files are stored (S3, GCS, Azure, Vercel Blob, etc.).
|
|
5505
|
+
*
|
|
5506
|
+
* Storage adapters run **before plugins**, so upload hooks, static file handlers,
|
|
5507
|
+
* and presigned-URL endpoints are guaranteed to be in place before any plugin
|
|
5508
|
+
* modifies the config.
|
|
5509
|
+
*
|
|
5510
|
+
* Pass the return value of a storage adapter factory to `storage` in your
|
|
5511
|
+
* Payload config:
|
|
5512
|
+
*
|
|
5513
|
+
* ```ts
|
|
5514
|
+
* import { s3Storage } from '@payloadcms/storage-s3'
|
|
5515
|
+
*
|
|
5516
|
+
* export default buildConfig({
|
|
5517
|
+
* storage: [
|
|
5518
|
+
* s3Storage({
|
|
5519
|
+
* bucket: process.env.S3_BUCKET,
|
|
5520
|
+
* collections: { media: true },
|
|
5521
|
+
* config: { region: process.env.S3_REGION },
|
|
5522
|
+
* }),
|
|
5523
|
+
* ],
|
|
5524
|
+
* })
|
|
5525
|
+
* ```
|
|
5526
|
+
*
|
|
5527
|
+
* @see https://payloadcms.com/docs/uploads/storage-adapters
|
|
5528
|
+
*/
|
|
5529
|
+
interface StorageAdapter {
|
|
5530
|
+
/** Collection slugs this adapter is configured to handle. */
|
|
5531
|
+
collections: string[];
|
|
5532
|
+
/** Initializes the adapter and returns the modified config with upload hooks and handlers injected. */
|
|
5533
|
+
init: (config: Config) => Config | Promise<Config>;
|
|
5534
|
+
/** Unique identifier for this adapter (e.g. `'s3'`, `'gcs'`, `'azure'`). Surfaced in telemetry and on `payload.config.upload.adapters`. */
|
|
5535
|
+
name: string;
|
|
5536
|
+
}
|
|
5279
5537
|
/**
|
|
5280
5538
|
* A map of plugin slugs to Plugin instances, built from `config.plugins`.
|
|
5281
5539
|
* Registered slugs (via `RegisteredPlugins` module augmentation) return typed options.
|
|
@@ -5300,6 +5558,13 @@ type LivePreviewConfig = {
|
|
|
5300
5558
|
name: string;
|
|
5301
5559
|
width: number | string;
|
|
5302
5560
|
}[];
|
|
5561
|
+
/**
|
|
5562
|
+
* When `true`, Live Preview opens automatically the first time a user views a document,
|
|
5563
|
+
* before they have manually toggled it on. Once the user toggles Live Preview on or off,
|
|
5564
|
+
* their stored preference takes precedence and this setting is ignored.
|
|
5565
|
+
* @default false
|
|
5566
|
+
*/
|
|
5567
|
+
openByDefault?: boolean;
|
|
5303
5568
|
/**
|
|
5304
5569
|
* The URL of the frontend application. This will be rendered within an `iframe` as its `src`.
|
|
5305
5570
|
* Payload will send a `window.postMessage()` to this URL with the document data in real-time.
|
|
@@ -5523,8 +5788,22 @@ type ServerProps = {
|
|
|
5523
5788
|
readonly params?: Params;
|
|
5524
5789
|
readonly payload: Payload;
|
|
5525
5790
|
readonly permissions?: SanitizedPermissions;
|
|
5791
|
+
/**
|
|
5792
|
+
* Adapter-injected component renderer. Server components can use this
|
|
5793
|
+
* to render other import map components without importing a
|
|
5794
|
+
* framework-specific renderer directly.
|
|
5795
|
+
*/
|
|
5796
|
+
readonly renderComponent?: ComponentRenderer;
|
|
5526
5797
|
readonly searchParams?: Params;
|
|
5527
|
-
|
|
5798
|
+
/**
|
|
5799
|
+
* Framework-agnostic methods for server-side navigation, headers, cookies, and other server-only APIs.
|
|
5800
|
+
* Plugins should call these methods instead of importing directly from `next/navigation`, `next/headers`, etc.
|
|
5801
|
+
* These methods are populated by the given framework adapter, e.g. `@payloadcms/next`.
|
|
5802
|
+
*
|
|
5803
|
+
* Optional because non-framework contexts (jobs, scripts, tests) may not have an adapter attached.
|
|
5804
|
+
*/
|
|
5805
|
+
readonly server: ServerAdapter;
|
|
5806
|
+
readonly user?: User;
|
|
5528
5807
|
readonly viewType?: ViewTypes;
|
|
5529
5808
|
readonly visibleEntities?: VisibleEntities;
|
|
5530
5809
|
};
|
|
@@ -5554,6 +5833,12 @@ type SanitizedTimezoneConfig = {
|
|
|
5554
5833
|
supportedTimezones: Timezone[];
|
|
5555
5834
|
} & Omit<TimezonesConfig, 'supportedTimezones'>;
|
|
5556
5835
|
type CustomComponent<TAdditionalProps extends object = Record<string, any>> = PayloadComponent<ServerProps & TAdditionalProps, TAdditionalProps>;
|
|
5836
|
+
type UserMenuSettingsGroup = {
|
|
5837
|
+
group: LabelFunction | StaticLabel;
|
|
5838
|
+
items: CustomComponent[];
|
|
5839
|
+
};
|
|
5840
|
+
type UserMenuSettingsItem = CustomComponent | UserMenuSettingsGroup;
|
|
5841
|
+
declare const isUserMenuSettingsGroup: (userMenuSettingsItem: UserMenuSettingsItem) => userMenuSettingsItem is UserMenuSettingsGroup;
|
|
5557
5842
|
type Locale = {
|
|
5558
5843
|
/**
|
|
5559
5844
|
* value of supported locale
|
|
@@ -5632,7 +5917,7 @@ type SanitizedLocalizationConfig = Prettify<{
|
|
|
5632
5917
|
* @see https://payloadcms.com/docs/configuration/localization#localization
|
|
5633
5918
|
*/
|
|
5634
5919
|
type LocalizationConfig = Prettify<LocalizationConfigWithLabels | LocalizationConfigWithNoLabels>;
|
|
5635
|
-
type LabelFunction<TTranslationKeys =
|
|
5920
|
+
type LabelFunction<TTranslationKeys = ClientTranslationKeys> = (args: {
|
|
5636
5921
|
i18n: I18nClient;
|
|
5637
5922
|
t: TFunction<TTranslationKeys>;
|
|
5638
5923
|
}) => string;
|
|
@@ -5973,6 +6258,12 @@ type Config = {
|
|
|
5973
6258
|
/** Extensible tab system */
|
|
5974
6259
|
tabs?: SidebarTab[];
|
|
5975
6260
|
};
|
|
6261
|
+
/**
|
|
6262
|
+
* Add custom items to the user menu popup in the admin panel header.
|
|
6263
|
+
* These components will be rendered in the Settings sub-popup of the user menu.
|
|
6264
|
+
* When empty or absent, the Settings sub-trigger is not shown.
|
|
6265
|
+
*/
|
|
6266
|
+
userMenuSettingsItems?: UserMenuSettingsItem[];
|
|
5976
6267
|
/**
|
|
5977
6268
|
* Replace or modify top-level admin routes, or add new ones:
|
|
5978
6269
|
* + `Account` - `/admin/account`
|
|
@@ -6157,21 +6448,6 @@ type Config = {
|
|
|
6157
6448
|
* @see https://payloadcms.com/docs/configuration/collections#collection-configs
|
|
6158
6449
|
*/
|
|
6159
6450
|
collections?: CollectionConfig[];
|
|
6160
|
-
/**
|
|
6161
|
-
* Compatibility flags for prior Payload versions
|
|
6162
|
-
*/
|
|
6163
|
-
compatibility?: {
|
|
6164
|
-
/**
|
|
6165
|
-
* By default, Payload will remove the `localized: true` property
|
|
6166
|
-
* from fields if a parent field is localized. Set this property
|
|
6167
|
-
* to `true` only if you have an existing Payload database from pre-3.0
|
|
6168
|
-
* that you would like to maintain without migrating. This is only
|
|
6169
|
-
* relevant for MongoDB databases.
|
|
6170
|
-
*
|
|
6171
|
-
* @todo Remove in v4
|
|
6172
|
-
*/
|
|
6173
|
-
allowLocalizedWithinLocalized: true;
|
|
6174
|
-
};
|
|
6175
6451
|
/**
|
|
6176
6452
|
* Prefix a string to all cookies that Payload sets.
|
|
6177
6453
|
*
|
|
@@ -6212,22 +6488,6 @@ type Config = {
|
|
|
6212
6488
|
email?: EmailAdapter | Promise<EmailAdapter>;
|
|
6213
6489
|
/** Custom REST endpoints */
|
|
6214
6490
|
endpoints?: Endpoint[];
|
|
6215
|
-
/**
|
|
6216
|
-
* Experimental features may be unstable or change in future versions.
|
|
6217
|
-
*/
|
|
6218
|
-
experimental?: {
|
|
6219
|
-
/**
|
|
6220
|
-
* Enable per-locale status for documents.
|
|
6221
|
-
*
|
|
6222
|
-
* Requires:
|
|
6223
|
-
* - `localization` enabled
|
|
6224
|
-
* - `versions.drafts` enabled
|
|
6225
|
-
* - `versions.drafts.localizeStatus` set at collection or global level
|
|
6226
|
-
*
|
|
6227
|
-
* @experimental
|
|
6228
|
-
*/
|
|
6229
|
-
localizeStatus?: boolean;
|
|
6230
|
-
};
|
|
6231
6491
|
/**
|
|
6232
6492
|
* @see https://payloadcms.com/docs/configuration/globals#global-configs
|
|
6233
6493
|
*/
|
|
@@ -6489,6 +6749,20 @@ type Config = {
|
|
|
6489
6749
|
*
|
|
6490
6750
|
*/
|
|
6491
6751
|
sharp?: SharpDependency;
|
|
6752
|
+
/**
|
|
6753
|
+
* Storage adapters that handle where uploaded files are stored (S3, GCS, Azure, Vercel Blob, etc.).
|
|
6754
|
+
*
|
|
6755
|
+
* Adapters are initialized **before** `plugins`, so file handling is fully wired before any plugin
|
|
6756
|
+
* runs. Use this instead of placing storage adapter packages in `plugins`.
|
|
6757
|
+
*
|
|
6758
|
+
* Migrate existing `plugins` usage automatically with:
|
|
6759
|
+
* ```sh
|
|
6760
|
+
* npx @payloadcms/codemod --transform migrate-storage-adapters-to-config
|
|
6761
|
+
* ```
|
|
6762
|
+
*
|
|
6763
|
+
* @see https://payloadcms.com/docs/uploads/storage-adapters
|
|
6764
|
+
*/
|
|
6765
|
+
storage?: StorageAdapter[];
|
|
6492
6766
|
/** Send anonymous telemetry data about general usage. */
|
|
6493
6767
|
telemetry?: boolean;
|
|
6494
6768
|
/** Control how typescript interfaces are generated from your collections. */
|
|
@@ -6509,6 +6783,32 @@ type Config = {
|
|
|
6509
6783
|
*/
|
|
6510
6784
|
ignoreTSError?: boolean;
|
|
6511
6785
|
} | false;
|
|
6786
|
+
/**
|
|
6787
|
+
* Also generate a write-shaped input type (e.g. `PostInput`) next to each read type, describing
|
|
6788
|
+
* what `create`/`update` accept: relationships and uploads as IDs only, `id` and `defaultValue`
|
|
6789
|
+
* fields optional, and `createdAt`/`updatedAt`/virtual/join fields removed. These are
|
|
6790
|
+
* exposed on `Config['collectionsInput']` and `Config['globalsInput']`. Set `true` to turn them on.
|
|
6791
|
+
* Draft-enabled entities retain `_status` because it is a writable create/update field.
|
|
6792
|
+
*
|
|
6793
|
+
* @default false
|
|
6794
|
+
*
|
|
6795
|
+
* @remarks
|
|
6796
|
+
* Off by default. The Local API's `create`/`update` still type their `data` against the read
|
|
6797
|
+
* type, so these input types aren't used internally - they're here for you to opt into, e.g. to
|
|
6798
|
+
* type a form payload, a seed script, or an API client. `@payloadcms/plugin-mcp` also uses the
|
|
6799
|
+
* input schema, but it builds that itself at runtime, so MCP gets the accurate write schema
|
|
6800
|
+
* whether or not this flag is on.
|
|
6801
|
+
*
|
|
6802
|
+
* @todo We'd like to turn this on by default (or have the Local API use the input type
|
|
6803
|
+
* directly), but there's a catch. When you read a document with `depth > 0`, its relationships
|
|
6804
|
+
* come back as full documents rather than IDs. A strict ID-only input type would reject that and
|
|
6805
|
+
* break the common "read a doc, change a field, save it back" pattern. To enable it by default,
|
|
6806
|
+
* the input type would first need to accept a relationship as either an ID or the full document
|
|
6807
|
+
* (which is what Payload already does at runtime), while keeping `id`, `defaultValue`, and
|
|
6808
|
+
* auto-managed fields optional. Until then it stays opt-in, so we don't put a type that's
|
|
6809
|
+
* stricter than the runtime on the main write path.
|
|
6810
|
+
*/
|
|
6811
|
+
generateInputTypes?: boolean;
|
|
6512
6812
|
/** Filename to write the generated types to */
|
|
6513
6813
|
outputFile?: string;
|
|
6514
6814
|
/**
|
|
@@ -6564,8 +6864,16 @@ type Config = {
|
|
|
6564
6864
|
*/
|
|
6565
6865
|
type SanitizedConfig = {
|
|
6566
6866
|
admin: {
|
|
6867
|
+
/**
|
|
6868
|
+
* `Required` (shallow) marks the top-level dashboard props as required, mainly `defaultLayout`,
|
|
6869
|
+
* which sanitizing always fills in. Do not switch this to the `DeepRequired` used below: it
|
|
6870
|
+
* recurses into the widgets and re-expands the whole `Field` type (a large self-referencing
|
|
6871
|
+
* union), which is very expensive to check. Never run a `Field`-bearing type through
|
|
6872
|
+
* `DeepRequired`.
|
|
6873
|
+
*/
|
|
6874
|
+
dashboard: Required<NonNullable<NonNullable<Config['admin']>['dashboard']>>;
|
|
6567
6875
|
timezones: SanitizedTimezoneConfig;
|
|
6568
|
-
} & DeepRequired<Config['admin']
|
|
6876
|
+
} & DeepRequired<Omit<NonNullable<Config['admin']>, 'dashboard'>>;
|
|
6569
6877
|
blocks?: FlattenedBlock[];
|
|
6570
6878
|
collections: SanitizedCollectionConfig[];
|
|
6571
6879
|
/** Default richtext editor to use for richText fields */
|
|
@@ -6580,13 +6888,14 @@ type SanitizedConfig = {
|
|
|
6580
6888
|
configDir: string;
|
|
6581
6889
|
rawConfig: string;
|
|
6582
6890
|
};
|
|
6891
|
+
storage: StorageAdapter[];
|
|
6583
6892
|
upload: {
|
|
6584
6893
|
/**
|
|
6585
6894
|
* Deduped list of adapters used in the project
|
|
6586
6895
|
*/
|
|
6587
6896
|
adapters: string[];
|
|
6588
6897
|
} & FetchAPIFileUploadOptions;
|
|
6589
|
-
} & Omit<DeepRequired<Config>, 'admin' | 'blocks' | 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'jobs' | 'localization' | 'upload'>;
|
|
6898
|
+
} & Omit<DeepRequired<Config>, 'admin' | 'blocks' | 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'jobs' | 'localization' | 'storage' | 'upload'>;
|
|
6590
6899
|
type EditConfig = EditConfigWithoutRoot | EditConfigWithRoot;
|
|
6591
6900
|
/**
|
|
6592
6901
|
* Replace or modify _all_ nested document views and routes, including the document header, controls, and tabs. This cannot be used in conjunction with other nested views.
|
|
@@ -6698,6 +7007,7 @@ type SharedEntityViews = {
|
|
|
6698
7007
|
[key: string]: {
|
|
6699
7008
|
actions?: CustomComponent[];
|
|
6700
7009
|
Component?: PayloadComponent;
|
|
7010
|
+
NoResults?: CustomComponent;
|
|
6701
7011
|
} | AdminViewConfig | EditConfig | undefined;
|
|
6702
7012
|
/**
|
|
6703
7013
|
* Replace, modify, or add new "document" views.
|
|
@@ -6722,7 +7032,7 @@ type SharedAdminComponents = {
|
|
|
6722
7032
|
views?: SharedEntityViews;
|
|
6723
7033
|
};
|
|
6724
7034
|
type EntityDescriptionFunction = ({ t }: {
|
|
6725
|
-
t: TFunction
|
|
7035
|
+
t: TFunction<ClientTranslationKeys>;
|
|
6726
7036
|
}) => string;
|
|
6727
7037
|
type EntityDescription = EntityDescriptionFunction | Record<string, string> | string;
|
|
6728
7038
|
|
|
@@ -7063,6 +7373,7 @@ type Column = {
|
|
|
7063
7373
|
readonly CustomLabel?: React.ReactNode;
|
|
7064
7374
|
readonly field: ClientField;
|
|
7065
7375
|
readonly Heading: React.ReactNode;
|
|
7376
|
+
readonly isLinkedColumn?: boolean;
|
|
7066
7377
|
readonly renderedCells: React.ReactNode[];
|
|
7067
7378
|
};
|
|
7068
7379
|
|
|
@@ -7348,8 +7659,8 @@ type RelationshipFieldDiffServerComponent = FieldDiffServerComponent<Relationshi
|
|
|
7348
7659
|
type RelationshipFieldDiffClientComponent = FieldDiffClientComponent<RelationshipFieldClient>;
|
|
7349
7660
|
|
|
7350
7661
|
type RowFieldClientWithoutType = MarkOptional<RowFieldClient, 'type'>;
|
|
7351
|
-
type RowFieldBaseClientProps =
|
|
7352
|
-
type RowFieldClientProps =
|
|
7662
|
+
type RowFieldBaseClientProps = FieldPaths & Pick<ClientComponentProps, 'forceRender'>;
|
|
7663
|
+
type RowFieldClientProps = ClientFieldBase<RowFieldClientWithoutType> & RowFieldBaseClientProps;
|
|
7353
7664
|
type RowFieldServerProps = ServerFieldBase<RowField, RowFieldClientWithoutType>;
|
|
7354
7665
|
type RowFieldServerComponent = FieldServerComponent<RowField, RowFieldClientWithoutType>;
|
|
7355
7666
|
type RowFieldClientComponent = FieldClientComponent<RowFieldClientWithoutType, RowFieldBaseClientProps>;
|
|
@@ -7458,7 +7769,7 @@ type UploadFieldDiffClientComponent = FieldDiffClientComponent<UploadFieldClient
|
|
|
7458
7769
|
|
|
7459
7770
|
type DescriptionFunction = (args: {
|
|
7460
7771
|
i18n: I18nClient;
|
|
7461
|
-
t: TFunction
|
|
7772
|
+
t: TFunction<ClientTranslationKeys>;
|
|
7462
7773
|
}) => string;
|
|
7463
7774
|
type FieldDescriptionClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionClientProps<TFieldClient>>;
|
|
7464
7775
|
type FieldDescriptionServerComponent<TFieldServer extends Field = Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionServerProps<TFieldServer, TFieldClient>>;
|
|
@@ -7571,91 +7882,6 @@ type FieldLabelServerComponent<TFieldServer extends Field = Field, TFieldClient
|
|
|
7571
7882
|
type RowLabelComponent = CustomComponent;
|
|
7572
7883
|
type RowLabel = Record<string, string> | string;
|
|
7573
7884
|
|
|
7574
|
-
type Slugify<T extends TypeWithID = any> = (args: {
|
|
7575
|
-
data: T;
|
|
7576
|
-
req: PayloadRequest;
|
|
7577
|
-
valueToSlugify?: any;
|
|
7578
|
-
}) => Promise<string | undefined> | string | undefined;
|
|
7579
|
-
type SlugFieldArgs = {
|
|
7580
|
-
/**
|
|
7581
|
-
* Override for the `generateSlug` checkbox field name.
|
|
7582
|
-
* @default 'generateSlug'
|
|
7583
|
-
*/
|
|
7584
|
-
checkboxName?: string;
|
|
7585
|
-
/**
|
|
7586
|
-
* Disables the unique index on the field.
|
|
7587
|
-
* This is useful if instead, you want to add a compound unique index to the collection `indexes` config,
|
|
7588
|
-
* for example with the multi tenant plugin, where the slug is only unique per tenant, not globally.
|
|
7589
|
-
* @default false
|
|
7590
|
-
*/
|
|
7591
|
-
disableUnique?: boolean;
|
|
7592
|
-
/**
|
|
7593
|
-
* @deprecated use `useAsSlug` instead.
|
|
7594
|
-
*/
|
|
7595
|
-
fieldToUse?: string;
|
|
7596
|
-
/**
|
|
7597
|
-
* Enable localization for the slug field.
|
|
7598
|
-
*/
|
|
7599
|
-
localized?: TextField['localized'];
|
|
7600
|
-
/**
|
|
7601
|
-
* Override for the `slug` field name.
|
|
7602
|
-
* @default 'slug'
|
|
7603
|
-
*/
|
|
7604
|
-
name?: string;
|
|
7605
|
-
/**
|
|
7606
|
-
* A function used to override the slug field(s) at a granular level.
|
|
7607
|
-
* Passes the row field to you to manipulate beyond the exposed options.
|
|
7608
|
-
* @example
|
|
7609
|
-
* ```ts
|
|
7610
|
-
* slugField({
|
|
7611
|
-
* overrides: (field) => {
|
|
7612
|
-
* field.fields[1].label = 'Custom Slug Label'
|
|
7613
|
-
* return field
|
|
7614
|
-
* }
|
|
7615
|
-
* })
|
|
7616
|
-
* ```
|
|
7617
|
-
*/
|
|
7618
|
-
overrides?: (field: RowField) => RowField;
|
|
7619
|
-
position?: FieldAdmin['position'];
|
|
7620
|
-
/**
|
|
7621
|
-
* Whether or not the `slug` field is required.
|
|
7622
|
-
* @default true
|
|
7623
|
-
*/
|
|
7624
|
-
required?: TextField['required'];
|
|
7625
|
-
/**
|
|
7626
|
-
* Provide your own slugify function to override the default.
|
|
7627
|
-
*/
|
|
7628
|
-
slugify?: Slugify;
|
|
7629
|
-
/**
|
|
7630
|
-
* The name of the top-level field to generate the slug from, when applicable.
|
|
7631
|
-
* @default 'title'
|
|
7632
|
-
*/
|
|
7633
|
-
useAsSlug?: string;
|
|
7634
|
-
};
|
|
7635
|
-
type SlugField = (args?: SlugFieldArgs) => RowField;
|
|
7636
|
-
type SlugFieldClientPropsOnly = Pick<SlugFieldArgs, 'useAsSlug'>;
|
|
7637
|
-
/**
|
|
7638
|
-
* These are the props that the `SlugField` client component accepts.
|
|
7639
|
-
* The `SlugField` server component is responsible for passing down the `slugify` function.
|
|
7640
|
-
*/
|
|
7641
|
-
type SlugFieldClientProps = SlugFieldClientPropsOnly & TextFieldClientProps;
|
|
7642
|
-
/**
|
|
7643
|
-
* A slug is a unique, indexed, URL-friendly string that identifies a particular document, often used to construct the URL of a webpage.
|
|
7644
|
-
* The `slug` field auto-generates its value based on another field, e.g. "My Title" → "my-title".
|
|
7645
|
-
*
|
|
7646
|
-
* The slug should continue to be generated through:
|
|
7647
|
-
* 1. The `create` operation, unless the user has modified the slug manually
|
|
7648
|
-
* 2. The `update` operation, if:
|
|
7649
|
-
* a. Autosave is _not_ enabled and there is no slug
|
|
7650
|
-
* b. Autosave _is_ enabled, the doc is unpublished, and the user has not modified the slug manually
|
|
7651
|
-
*
|
|
7652
|
-
* The slug should stabilize after all above criteria have been met, because the URL is typically derived from the slug.
|
|
7653
|
-
* This is to protect modifying potentially live URLs, breaking links, etc. without explicit intent.
|
|
7654
|
-
*
|
|
7655
|
-
* @experimental This field is experimental and may change or be removed in the future. Use at your own risk.
|
|
7656
|
-
*/
|
|
7657
|
-
declare const slugField: SlugField;
|
|
7658
|
-
|
|
7659
7885
|
type ColumnsFromURL = string[];
|
|
7660
7886
|
|
|
7661
7887
|
type InitReqResult = {
|
|
@@ -7666,8 +7892,16 @@ type InitReqResult = {
|
|
|
7666
7892
|
permissions: SanitizedPermissions;
|
|
7667
7893
|
req: PayloadRequest;
|
|
7668
7894
|
};
|
|
7895
|
+
/**
|
|
7896
|
+
* Determines how server function handlers serialize their return values.
|
|
7897
|
+
* - `'rsc'`: Return React nodes (JSX) — requires RSC flight serialization (Next.js)
|
|
7898
|
+
* - `'data-only'`: Return JSON-serializable data — for non-RSC adapters (TanStack Start)
|
|
7899
|
+
*/
|
|
7900
|
+
type ServerFunctionMode = 'data-only' | 'rsc';
|
|
7669
7901
|
type DefaultServerFunctionArgs = {
|
|
7670
7902
|
importMap: ImportMap;
|
|
7903
|
+
mode?: ServerFunctionMode;
|
|
7904
|
+
renderComponent?: ComponentRenderer;
|
|
7671
7905
|
} & Pick<InitReqResult, 'cookies' | 'locale' | 'permissions' | 'req'>;
|
|
7672
7906
|
type ServerFunctionArgs = {
|
|
7673
7907
|
args: Record<string, unknown>;
|
|
@@ -7766,6 +8000,12 @@ type WidgetSlugFromWidget<TWidget extends {
|
|
|
7766
8000
|
type WidgetServerProps<TWidget extends {
|
|
7767
8001
|
data?: unknown;
|
|
7768
8002
|
} | never = never> = {
|
|
8003
|
+
/**
|
|
8004
|
+
* Adapter-injected component renderer. Widget server components can use
|
|
8005
|
+
* this to render other import map components without importing a
|
|
8006
|
+
* framework-specific renderer directly.
|
|
8007
|
+
*/
|
|
8008
|
+
renderComponent?: ComponentRenderer;
|
|
7769
8009
|
widgetData?: [TWidget] extends [never] ? Record<string, unknown> : WidgetDataFromWidget<Exclude<TWidget, never>> extends Record<string, unknown> ? WidgetDataFromWidget<Exclude<TWidget, never>> : Record<string, unknown>;
|
|
7770
8010
|
widgetSlug: [TWidget] extends [never] ? string : [WidgetSlugFromWidget<{
|
|
7771
8011
|
data?: unknown;
|
|
@@ -7776,6 +8016,7 @@ type WidgetServerProps<TWidget extends {
|
|
|
7776
8016
|
|
|
7777
8017
|
type RelatedDocumentsGrouped = {
|
|
7778
8018
|
[collectionSlug: string]: {
|
|
8019
|
+
fieldName: string;
|
|
7779
8020
|
hasMany: boolean;
|
|
7780
8021
|
label: string;
|
|
7781
8022
|
result: PaginatedDocs;
|
|
@@ -7819,6 +8060,7 @@ type ListViewSlots = {
|
|
|
7819
8060
|
BeforeListTable?: React.ReactNode;
|
|
7820
8061
|
Description?: React.ReactNode;
|
|
7821
8062
|
listMenuItems?: React.ReactNode[];
|
|
8063
|
+
NoResults?: React.ReactNode;
|
|
7822
8064
|
Table: React.ReactNode | React.ReactNode[];
|
|
7823
8065
|
};
|
|
7824
8066
|
/**
|
|
@@ -7852,9 +8094,13 @@ type ListViewClientProps = {
|
|
|
7852
8094
|
*/
|
|
7853
8095
|
hierarchyData?: HierarchyViewData;
|
|
7854
8096
|
/**
|
|
7855
|
-
* Resolved icon component for hierarchy collections
|
|
8097
|
+
* Resolved full-size icon component for hierarchy collections (used in drawer subheader)
|
|
7856
8098
|
*/
|
|
7857
8099
|
HierarchyIcon?: React.ReactNode;
|
|
8100
|
+
/**
|
|
8101
|
+
* Resolved small icon component for hierarchy collections (used in table rows)
|
|
8102
|
+
*/
|
|
8103
|
+
HierarchySmallIcon?: React.ReactNode;
|
|
7858
8104
|
/**
|
|
7859
8105
|
* @deprecated
|
|
7860
8106
|
*/
|
|
@@ -7876,6 +8122,7 @@ type ListViewSlotSharedClientProps = {
|
|
|
7876
8122
|
hasDeletePermission?: boolean;
|
|
7877
8123
|
hasTrashPermission?: boolean;
|
|
7878
8124
|
newDocumentURL: string;
|
|
8125
|
+
viewType: ViewTypes;
|
|
7879
8126
|
};
|
|
7880
8127
|
type BeforeListClientProps = ListViewSlotSharedClientProps;
|
|
7881
8128
|
type BeforeListServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
@@ -7883,6 +8130,9 @@ type BeforeListServerProps = BeforeListClientProps & BeforeListServerPropsOnly;
|
|
|
7883
8130
|
type BeforeListTableClientProps = ListViewSlotSharedClientProps;
|
|
7884
8131
|
type BeforeListTableServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
7885
8132
|
type BeforeListTableServerProps = BeforeListTableClientProps & BeforeListTableServerPropsOnly;
|
|
8133
|
+
type NoResultsClientProps = ListViewSlotSharedClientProps;
|
|
8134
|
+
type NoResultsServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
8135
|
+
type NoResultsServerProps = NoResultsClientProps & NoResultsServerPropsOnly;
|
|
7886
8136
|
type AfterListClientProps = ListViewSlotSharedClientProps;
|
|
7887
8137
|
type AfterListServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
7888
8138
|
type AfterListServerProps = AfterListClientProps & AfterListServerPropsOnly;
|
|
@@ -7965,6 +8215,7 @@ type DocumentSlots = {
|
|
|
7965
8215
|
UnpublishButton?: React$1.ReactNode;
|
|
7966
8216
|
Upload?: React$1.ReactNode;
|
|
7967
8217
|
UploadControls?: React$1.ReactNode;
|
|
8218
|
+
UploadFilePreview?: React$1.ReactNode;
|
|
7968
8219
|
};
|
|
7969
8220
|
|
|
7970
8221
|
type SchemaPath = {} & string;
|
|
@@ -7994,7 +8245,7 @@ type MeOperationResult = {
|
|
|
7994
8245
|
*/
|
|
7995
8246
|
strategy?: string;
|
|
7996
8247
|
token?: string;
|
|
7997
|
-
user?:
|
|
8248
|
+
user?: AuthenticatedUser | null;
|
|
7998
8249
|
};
|
|
7999
8250
|
type Arguments$q = {
|
|
8000
8251
|
collection: Collection;
|
|
@@ -8037,17 +8288,9 @@ type FileSize = {
|
|
|
8037
8288
|
filesize: null | number;
|
|
8038
8289
|
height: null | number;
|
|
8039
8290
|
mimeType: null | string;
|
|
8040
|
-
url
|
|
8291
|
+
url: null | string;
|
|
8041
8292
|
width: null | number;
|
|
8042
8293
|
};
|
|
8043
|
-
/**
|
|
8044
|
-
* FileSizeImproved is a more precise type, and will replace FileSize in Payload v4.
|
|
8045
|
-
* This type is for internal use only as it will be deprecated in the future.
|
|
8046
|
-
* @internal
|
|
8047
|
-
*/
|
|
8048
|
-
type FileSizeImproved = {
|
|
8049
|
-
url: null | string;
|
|
8050
|
-
} & FileSize;
|
|
8051
8294
|
type FileSizes = {
|
|
8052
8295
|
[size: string]: FileSize;
|
|
8053
8296
|
};
|
|
@@ -8090,30 +8333,21 @@ type GenerateImageName = (args: {
|
|
|
8090
8333
|
type ImageSize = {
|
|
8091
8334
|
/**
|
|
8092
8335
|
* Admin UI options that control how this image size appears in list views.
|
|
8093
|
-
*
|
|
8094
|
-
* NOTE: In Payload v4, these options (`disableGroupBy`, `disableListColumn` and `disableListFilter`)
|
|
8095
|
-
* should default to `true` so image size subfields are hidden from list columns
|
|
8096
|
-
* and filters by default, reducing noise in the admin UI.
|
|
8097
8336
|
*/
|
|
8098
8337
|
admin?: {
|
|
8099
8338
|
/**
|
|
8100
|
-
*
|
|
8101
|
-
*
|
|
8102
|
-
*
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
* If set to true, this image size will not be available
|
|
8107
|
-
* as a selectable column in the collection list view.
|
|
8108
|
-
* @default false
|
|
8109
|
-
*/
|
|
8110
|
-
disableListColumn?: boolean;
|
|
8111
|
-
/**
|
|
8112
|
-
* If set to true, this image size will not be available
|
|
8113
|
-
* as a filter option in the collection list view.
|
|
8114
|
-
* @default false
|
|
8339
|
+
* Controls visibility of this image size in the collection list view.
|
|
8340
|
+
* Defaults to hiding the image size from columns, filters, and group-by to reduce noise.
|
|
8341
|
+
*
|
|
8342
|
+
* - `column` — whether to hide this size from selectable list columns. @default false
|
|
8343
|
+
* - `filter` — whether to hide this size from filter options. @default false
|
|
8344
|
+
* - `groupBy` — whether to hide this size from group-by options. @default false
|
|
8115
8345
|
*/
|
|
8116
|
-
|
|
8346
|
+
disabled?: {
|
|
8347
|
+
column?: boolean;
|
|
8348
|
+
filter?: boolean;
|
|
8349
|
+
groupBy?: boolean;
|
|
8350
|
+
};
|
|
8117
8351
|
};
|
|
8118
8352
|
/**
|
|
8119
8353
|
* @deprecated prefer position
|
|
@@ -8151,12 +8385,33 @@ type FileAllowList = Array<{
|
|
|
8151
8385
|
extensions: string[];
|
|
8152
8386
|
mimeType: string;
|
|
8153
8387
|
}>;
|
|
8388
|
+
type UploadFilePreviewClientProps = {
|
|
8389
|
+
filename: string;
|
|
8390
|
+
filesize: number;
|
|
8391
|
+
/** Resolved URL of the file (data.url). */
|
|
8392
|
+
fileSrc: string;
|
|
8393
|
+
height?: number;
|
|
8394
|
+
mimeType: string;
|
|
8395
|
+
width?: number;
|
|
8396
|
+
};
|
|
8397
|
+
type UploadFilePreviewMap = {
|
|
8398
|
+
[mimeTypePattern: string]: PayloadComponent;
|
|
8399
|
+
};
|
|
8154
8400
|
type Admin = {
|
|
8155
8401
|
components?: {
|
|
8156
8402
|
/**
|
|
8157
8403
|
* The Controls component to extend the upload controls in the admin panel.
|
|
8158
8404
|
*/
|
|
8159
8405
|
controls?: PayloadComponent[];
|
|
8406
|
+
/**
|
|
8407
|
+
* A custom component to render in place of the default Thumbnail in the upload side panel.
|
|
8408
|
+
*
|
|
8409
|
+
* Can be a single PayloadComponent (renders for all MIME types) or a Record keyed by
|
|
8410
|
+
* MIME type patterns. Pattern resolution priority: exact match → category wildcard
|
|
8411
|
+
* (e.g. `video/*`) → universal fallback (`*`). Falls back to the default Thumbnail
|
|
8412
|
+
* when nothing matches.
|
|
8413
|
+
*/
|
|
8414
|
+
filePreview?: PayloadComponent | UploadFilePreviewMap;
|
|
8160
8415
|
};
|
|
8161
8416
|
};
|
|
8162
8417
|
type UploadConfig = {
|
|
@@ -8400,7 +8655,7 @@ declare const forgotPasswordOperation: <TSlug extends AuthCollectionSlug>(incomi
|
|
|
8400
8655
|
type LoginResult<TSlug extends AuthCollectionSlug> = {
|
|
8401
8656
|
exp?: number;
|
|
8402
8657
|
token?: string;
|
|
8403
|
-
user?: DataFromCollectionSlug<TSlug>;
|
|
8658
|
+
user?: AuthRuntimeFields & DataFromCollectionSlug<TSlug>;
|
|
8404
8659
|
};
|
|
8405
8660
|
type Arguments$n<TSlug extends AuthCollectionSlug> = {
|
|
8406
8661
|
collection: Collection;
|
|
@@ -8483,7 +8738,6 @@ type Arguments$i<TSlug extends CollectionSlug> = {
|
|
|
8483
8738
|
overwriteExistingFiles?: boolean;
|
|
8484
8739
|
populate?: PopulateType;
|
|
8485
8740
|
publishAllLocales?: boolean;
|
|
8486
|
-
publishSpecificLocale?: string;
|
|
8487
8741
|
req: PayloadRequest;
|
|
8488
8742
|
selectedLocales?: string[];
|
|
8489
8743
|
showHiddenFields?: boolean;
|
|
@@ -8761,7 +9015,7 @@ type BaseFindOptions<TSlug extends CollectionSlug, TSelect extends SelectType> =
|
|
|
8761
9015
|
/**
|
|
8762
9016
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
8763
9017
|
*/
|
|
8764
|
-
user?:
|
|
9018
|
+
user?: null | User;
|
|
8765
9019
|
/**
|
|
8766
9020
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
8767
9021
|
*/
|
|
@@ -8800,7 +9054,6 @@ type Arguments$b<TSlug extends CollectionSlug> = {
|
|
|
8800
9054
|
overwriteExistingFiles?: boolean;
|
|
8801
9055
|
populate?: PopulateType;
|
|
8802
9056
|
publishAllLocales?: boolean;
|
|
8803
|
-
publishSpecificLocale?: string;
|
|
8804
9057
|
req: PayloadRequest;
|
|
8805
9058
|
showHiddenFields?: boolean;
|
|
8806
9059
|
/**
|
|
@@ -8829,7 +9082,6 @@ type Arguments$a<TSlug extends CollectionSlug> = {
|
|
|
8829
9082
|
overwriteExistingFiles?: boolean;
|
|
8830
9083
|
populate?: PopulateType;
|
|
8831
9084
|
publishAllLocales?: boolean;
|
|
8832
|
-
publishSpecificLocale?: string;
|
|
8833
9085
|
req: PayloadRequest;
|
|
8834
9086
|
showHiddenFields?: boolean;
|
|
8835
9087
|
trash?: boolean;
|
|
@@ -8885,15 +9137,6 @@ type AfterOperationArg<TOperationGeneric extends CollectionSlug> = {
|
|
|
8885
9137
|
args: Parameters<OperationMap<TOperationGeneric>['deleteByID']>[0];
|
|
8886
9138
|
operation: 'deleteByID';
|
|
8887
9139
|
result: Awaited<ReturnType<OperationMap<TOperationGeneric>['deleteByID']>>;
|
|
8888
|
-
} | {
|
|
8889
|
-
args: Parameters<OperationMap<TOperationGeneric>['find']>[0];
|
|
8890
|
-
/**
|
|
8891
|
-
* @deprecated Use 'find' or 'findByID' operation instead
|
|
8892
|
-
*
|
|
8893
|
-
* TODO: v4 - remove this union option
|
|
8894
|
-
*/
|
|
8895
|
-
operation: 'read';
|
|
8896
|
-
result: Awaited<ReturnType<OperationMap<TOperationGeneric>['find']>>;
|
|
8897
9140
|
} | {
|
|
8898
9141
|
args: Parameters<OperationMap<TOperationGeneric>['find']>[0];
|
|
8899
9142
|
operation: 'find';
|
|
@@ -9029,6 +9272,12 @@ type BeforeOperationArg<TOperationGeneric extends CollectionSlug> = {
|
|
|
9029
9272
|
});
|
|
9030
9273
|
|
|
9031
9274
|
type DataFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollection[TSlug];
|
|
9275
|
+
/**
|
|
9276
|
+
* The ID type of a given collection (e.g. `string` or `number`), taken from its generated type.
|
|
9277
|
+
* Use this instead of the project-wide {@link DefaultDocumentIDType} when the collection slug is
|
|
9278
|
+
* known, since each collection can have its own ID type.
|
|
9279
|
+
*/
|
|
9280
|
+
type IDTypeForCollectionSlug<TSlug extends CollectionSlug> = DataFromCollectionSlug<TSlug>['id'];
|
|
9032
9281
|
type SelectFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollectionSelect[TSlug];
|
|
9033
9282
|
/**
|
|
9034
9283
|
* Collection slugs that do not have drafts enabled.
|
|
@@ -9324,6 +9573,7 @@ type CollectionAdminOptions = {
|
|
|
9324
9573
|
list?: {
|
|
9325
9574
|
actions?: CustomComponent[];
|
|
9326
9575
|
Component?: PayloadComponent;
|
|
9576
|
+
NoResults?: CustomComponent;
|
|
9327
9577
|
};
|
|
9328
9578
|
} & SharedEntityViews;
|
|
9329
9579
|
} & Omit<SharedAdminComponents, 'edit' | 'views'>;
|
|
@@ -9372,18 +9622,11 @@ type CollectionAdminOptions = {
|
|
|
9372
9622
|
* - Set to `false` to exclude the entity from the sidebar / dashboard without disabling its routes.
|
|
9373
9623
|
*/
|
|
9374
9624
|
group?: false | Record<string, string> | string;
|
|
9375
|
-
/**
|
|
9376
|
-
* @description Enable grouping by a field in the list view.
|
|
9377
|
-
* Uses `payload.findDistinct` under the hood to populate the group-by options.
|
|
9378
|
-
*
|
|
9379
|
-
* @experimental This option is currently in beta and may change in future releases. Use at your own risk.
|
|
9380
|
-
*/
|
|
9381
|
-
groupBy?: boolean;
|
|
9382
9625
|
/**
|
|
9383
9626
|
* Exclude the collection from the admin nav and routes
|
|
9384
9627
|
*/
|
|
9385
9628
|
hidden?: ((args: {
|
|
9386
|
-
user:
|
|
9629
|
+
user: PayloadRequest['user'];
|
|
9387
9630
|
}) => boolean) | boolean;
|
|
9388
9631
|
/**
|
|
9389
9632
|
* Additional fields to be searched via the full text search
|
|
@@ -9455,6 +9698,10 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
|
|
|
9455
9698
|
* Default field to sort by in collection list view
|
|
9456
9699
|
*/
|
|
9457
9700
|
defaultSort?: Sort;
|
|
9701
|
+
/**
|
|
9702
|
+
* Disable the bulk delete operation for the collection in the admin panel and the API
|
|
9703
|
+
*/
|
|
9704
|
+
disableBulkDelete?: boolean;
|
|
9458
9705
|
/**
|
|
9459
9706
|
* Disable the bulk edit operation for the collection in the admin panel and the API
|
|
9460
9707
|
*/
|
|
@@ -9732,6 +9979,11 @@ type SanitizedCompoundIndex = {
|
|
|
9732
9979
|
declare const validOperators: readonly ["equals", "contains", "not_equals", "in", "all", "not_in", "exists", "greater_than", "greater_than_equal", "less_than", "less_than_equal", "like", "not_like", "within", "intersects", "near"];
|
|
9733
9980
|
type Operator = (typeof validOperators)[number];
|
|
9734
9981
|
|
|
9982
|
+
interface PayloadRequestAPI {
|
|
9983
|
+
GraphQL: true;
|
|
9984
|
+
local: true;
|
|
9985
|
+
REST: true;
|
|
9986
|
+
}
|
|
9735
9987
|
type CustomPayloadRequestProperties = {
|
|
9736
9988
|
context: RequestContext;
|
|
9737
9989
|
/** The locale that should be used for a field when it is not translated to the requested locale */
|
|
@@ -9751,7 +10003,7 @@ type CustomPayloadRequestProperties = {
|
|
|
9751
10003
|
/**
|
|
9752
10004
|
* The context in which the request is being made
|
|
9753
10005
|
*/
|
|
9754
|
-
payloadAPI:
|
|
10006
|
+
payloadAPI: keyof PayloadRequestAPI;
|
|
9755
10007
|
/** Optimized document loader */
|
|
9756
10008
|
payloadDataLoader: {
|
|
9757
10009
|
/**
|
|
@@ -9778,6 +10030,15 @@ type CustomPayloadRequestProperties = {
|
|
|
9778
10030
|
* { collection: 'posts', id: '123' }
|
|
9779
10031
|
*/
|
|
9780
10032
|
routeParams?: Record<string, unknown>;
|
|
10033
|
+
/**
|
|
10034
|
+
* Framework abstraction for server-only navigation, cookies, and headers APIs.
|
|
10035
|
+
* Populated by the framework adapter (e.g. `@payloadcms/next`). Plugins that
|
|
10036
|
+
* have access to `req` should call methods here (`req.server.unauthorized()`,
|
|
10037
|
+
* `req.server.redirect(...)`) instead of importing from `next/navigation` or
|
|
10038
|
+
* `next/headers` directly. Optional because non-framework contexts (jobs,
|
|
10039
|
+
* scripts, tests) construct requests without a server adapter.
|
|
10040
|
+
*/
|
|
10041
|
+
server?: ServerAdapter;
|
|
9781
10042
|
/** Translate function - duplicate of i18n.t */
|
|
9782
10043
|
t: TFunction;
|
|
9783
10044
|
/**
|
|
@@ -9785,13 +10046,8 @@ type CustomPayloadRequestProperties = {
|
|
|
9785
10046
|
* Can also be used to ensure consistency when multiple operations try to create a transaction concurrently on the same request.
|
|
9786
10047
|
*/
|
|
9787
10048
|
transactionID?: number | Promise<number | string> | string;
|
|
9788
|
-
/**
|
|
9789
|
-
* Used to ensure consistency when multiple operations try to create a transaction concurrently on the same request
|
|
9790
|
-
* @deprecated This is not used anywhere, instead `transactionID` is used for the above. Will be removed in next major version.
|
|
9791
|
-
*/
|
|
9792
|
-
transactionIDPromise?: Promise<void>;
|
|
9793
10049
|
/** The signed-in user */
|
|
9794
|
-
user:
|
|
10050
|
+
user: AuthenticatedUser | null;
|
|
9795
10051
|
} & Pick<URL, 'hash' | 'host' | 'href' | 'origin' | 'pathname' | 'port' | 'protocol' | 'search' | 'searchParams'>;
|
|
9796
10052
|
type PayloadRequestData = {
|
|
9797
10053
|
/**
|
|
@@ -10011,8 +10267,17 @@ type AuthArgs = {
|
|
|
10011
10267
|
type AuthResult = {
|
|
10012
10268
|
permissions: SanitizedPermissions;
|
|
10013
10269
|
responseHeaders?: Headers;
|
|
10014
|
-
user:
|
|
10270
|
+
user: AuthenticatedUser | null;
|
|
10271
|
+
};
|
|
10272
|
+
|
|
10273
|
+
/**
|
|
10274
|
+
* Strategy for dev-mode HMR/reload detection.
|
|
10275
|
+
* Each framework adapter provides its own implementation.
|
|
10276
|
+
*/
|
|
10277
|
+
type DevReloadStrategy = {
|
|
10278
|
+
connect: (onReload: () => void) => DevReloadCleanup;
|
|
10015
10279
|
};
|
|
10280
|
+
type DevReloadCleanup = () => void;
|
|
10016
10281
|
|
|
10017
10282
|
type Options$g<TSlug extends AuthCollectionSlug> = {
|
|
10018
10283
|
collection: TSlug;
|
|
@@ -10065,6 +10330,102 @@ type Options$c<TSlug extends AuthCollectionSlug> = {
|
|
|
10065
10330
|
token: string;
|
|
10066
10331
|
};
|
|
10067
10332
|
|
|
10333
|
+
/**
|
|
10334
|
+
* Client-side router adapter to abstract away framework-specific routing implementations.
|
|
10335
|
+
* This way plugins and server components can use server-only APIs without directly importing any framework-specific modules.
|
|
10336
|
+
*
|
|
10337
|
+
* @example
|
|
10338
|
+
* ```tsx
|
|
10339
|
+
* // Next.js router adapter (simplified):
|
|
10340
|
+
* import { useRouter as useNextRouter, usePathname as useNextPathname } from 'next/navigation'
|
|
10341
|
+
*
|
|
10342
|
+
* const NextRouterAdapter: RouterAdapterComponent = ({ children }) => {
|
|
10343
|
+
* const router = useNextRouter()
|
|
10344
|
+
* const pathname = useNextPathname()
|
|
10345
|
+
*
|
|
10346
|
+
* return (
|
|
10347
|
+
* <RouterAdapterContext value={{ router, pathname, ... }}>
|
|
10348
|
+
* {children}
|
|
10349
|
+
* </RouterAdapterContext>
|
|
10350
|
+
* )
|
|
10351
|
+
* }
|
|
10352
|
+
* ```
|
|
10353
|
+
*/
|
|
10354
|
+
type RouterAdapterComponent = React$1.ComponentType<{
|
|
10355
|
+
children: React$1.ReactNode;
|
|
10356
|
+
}>;
|
|
10357
|
+
type RouterAdapterRouter = {
|
|
10358
|
+
/**
|
|
10359
|
+
* Navigate back to the previous page in the history stack.
|
|
10360
|
+
*/
|
|
10361
|
+
back: () => void;
|
|
10362
|
+
/**
|
|
10363
|
+
* Navigate to a new path.
|
|
10364
|
+
*/
|
|
10365
|
+
push: (path: string, options?: {
|
|
10366
|
+
scroll?: boolean;
|
|
10367
|
+
}) => void;
|
|
10368
|
+
/**
|
|
10369
|
+
* Refresh the current route.
|
|
10370
|
+
*/
|
|
10371
|
+
refresh: () => void;
|
|
10372
|
+
/**
|
|
10373
|
+
* Replace the current path with a new one.
|
|
10374
|
+
*/
|
|
10375
|
+
replace: (path: string, options?: {
|
|
10376
|
+
scroll?: boolean;
|
|
10377
|
+
}) => void;
|
|
10378
|
+
/**
|
|
10379
|
+
* Use this property to standardize behaviors across different router implementations.
|
|
10380
|
+
* Set it up to sync client state to the URL without triggering a second server load.
|
|
10381
|
+
*
|
|
10382
|
+
* In Next.js, calling `window.history.replaceState` directly is sufficient, as Next.js does not observe history mutations.
|
|
10383
|
+
* In TanStack Router, however, `history.replaceState` is monkeypatched to notify the router of changes.
|
|
10384
|
+
*/
|
|
10385
|
+
replaceState?: (url: string) => void;
|
|
10386
|
+
};
|
|
10387
|
+
type LinkAdapterProps = {
|
|
10388
|
+
children?: React$1.ReactNode;
|
|
10389
|
+
href: string;
|
|
10390
|
+
prefetch?: boolean;
|
|
10391
|
+
ref?: React$1.Ref<HTMLAnchorElement>;
|
|
10392
|
+
replace?: boolean;
|
|
10393
|
+
scroll?: boolean;
|
|
10394
|
+
} & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
|
|
10395
|
+
|
|
10396
|
+
/**
|
|
10397
|
+
* Signature for ui-side view metadata generators. Returns a framework-agnostic
|
|
10398
|
+
* `MetaConfig` that adapter-side code formats into framework metadata.
|
|
10399
|
+
*/
|
|
10400
|
+
type GenerateViewMetadata = (args: {
|
|
10401
|
+
config: SanitizedConfig;
|
|
10402
|
+
i18n: I18nClient;
|
|
10403
|
+
isEditing?: boolean;
|
|
10404
|
+
params?: {
|
|
10405
|
+
[key: string]: string | string[];
|
|
10406
|
+
};
|
|
10407
|
+
}) => Promise<MetaConfig>;
|
|
10408
|
+
/**
|
|
10409
|
+
* One entry in a framework's `AdminViewAdapter`. Pairs a React component with
|
|
10410
|
+
* a metadata generator. `TComponentProps` and `TMetadata` are framework-specific
|
|
10411
|
+
* (Next narrows `TMetadata` to `next`'s `Metadata` type).
|
|
10412
|
+
*/
|
|
10413
|
+
type AdminView<TComponentProps = any, TMetadata = unknown> = {
|
|
10414
|
+
Component: React$1.ComponentType<TComponentProps>;
|
|
10415
|
+
generateMetadata: (args: Parameters<GenerateViewMetadata>[0]) => Promise<TMetadata>;
|
|
10416
|
+
};
|
|
10417
|
+
/**
|
|
10418
|
+
* The canonical set of admin view keys that every framework adapter must implement.
|
|
10419
|
+
* Adding a new admin view requires adding its key here so all adapters stay in sync.
|
|
10420
|
+
*/
|
|
10421
|
+
type AdminViewKey = 'account' | 'createFirstUser' | 'dashboard' | 'forgot' | 'login' | 'logout' | 'logoutInactivity' | 'notFound' | 'reset' | 'unauthorized' | 'unauthorizedWithGutter' | 'verify';
|
|
10422
|
+
/**
|
|
10423
|
+
* Keyed map of `AdminView` — exactly one entry per `AdminViewKey`.
|
|
10424
|
+
* Framework adapters export an instance of this; missing or misspelled keys are
|
|
10425
|
+
* a type error.
|
|
10426
|
+
*/
|
|
10427
|
+
type AdminViewAdapter<TComponentProps = any, TMetadata = unknown> = Record<AdminViewKey, AdminView<TComponentProps, TMetadata>>;
|
|
10428
|
+
|
|
10068
10429
|
type CountOptions<TSlug extends CollectionSlug> = {
|
|
10069
10430
|
/**
|
|
10070
10431
|
* the Collection slug to operate against.
|
|
@@ -10108,7 +10469,7 @@ type CountOptions<TSlug extends CollectionSlug> = {
|
|
|
10108
10469
|
/**
|
|
10109
10470
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10110
10471
|
*/
|
|
10111
|
-
user?:
|
|
10472
|
+
user?: null | User;
|
|
10112
10473
|
/**
|
|
10113
10474
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10114
10475
|
*/
|
|
@@ -10194,7 +10555,7 @@ type BaseOptions$7<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10194
10555
|
/**
|
|
10195
10556
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10196
10557
|
*/
|
|
10197
|
-
user?:
|
|
10558
|
+
user?: null | User;
|
|
10198
10559
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10199
10560
|
type Options$b<TSlug extends CollectionSlug, TSelect extends SelectType> = GeneratedTypes extends {
|
|
10200
10561
|
strictDraftTypes: true;
|
|
@@ -10319,7 +10680,7 @@ type BaseOptions$6<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10319
10680
|
/**
|
|
10320
10681
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10321
10682
|
*/
|
|
10322
|
-
user?:
|
|
10683
|
+
user?: null | User;
|
|
10323
10684
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10324
10685
|
type ByIDOptions$1<TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>> = {
|
|
10325
10686
|
/**
|
|
@@ -10407,7 +10768,7 @@ type BaseOptions$5<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10407
10768
|
/**
|
|
10408
10769
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10409
10770
|
*/
|
|
10410
|
-
user?:
|
|
10771
|
+
user?: null | User;
|
|
10411
10772
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10412
10773
|
type Options$a<TSlug extends CollectionSlug, TSelect extends SelectType> = BaseOptions$5<TSlug, TSelect> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10413
10774
|
|
|
@@ -10495,7 +10856,7 @@ type BaseFindByIDOptions<TSlug extends CollectionSlug, TDisableErrors extends bo
|
|
|
10495
10856
|
/**
|
|
10496
10857
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10497
10858
|
*/
|
|
10498
|
-
user?:
|
|
10859
|
+
user?: null | User;
|
|
10499
10860
|
} & Pick<FindByIDArgs, 'flattenLocales'> & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10500
10861
|
type Options$9<TSlug extends CollectionSlug, TDisableErrors extends boolean, TSelect extends SelectType> = BaseFindByIDOptions<TSlug, TDisableErrors, TSelect> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10501
10862
|
|
|
@@ -10575,7 +10936,7 @@ type Options$8<TSlug extends CollectionSlug, TField extends keyof DataFromCollec
|
|
|
10575
10936
|
/**
|
|
10576
10937
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10577
10938
|
*/
|
|
10578
|
-
user?:
|
|
10939
|
+
user?: null | User;
|
|
10579
10940
|
/**
|
|
10580
10941
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10581
10942
|
*/
|
|
@@ -10647,7 +11008,7 @@ type BaseOptions$4<TSlug extends CollectionSlug> = {
|
|
|
10647
11008
|
/**
|
|
10648
11009
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10649
11010
|
*/
|
|
10650
|
-
user?:
|
|
11011
|
+
user?: null | User;
|
|
10651
11012
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
10652
11013
|
type Options$7<TSlug extends CollectionSlug> = BaseOptions$4<TSlug> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10653
11014
|
|
|
@@ -10729,7 +11090,7 @@ type BaseOptions$3<TSlug extends CollectionSlug> = {
|
|
|
10729
11090
|
/**
|
|
10730
11091
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10731
11092
|
*/
|
|
10732
|
-
user?:
|
|
11093
|
+
user?: null | User;
|
|
10733
11094
|
/**
|
|
10734
11095
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10735
11096
|
*/
|
|
@@ -10788,7 +11149,7 @@ type BaseOptions$2<TSlug extends CollectionSlug> = {
|
|
|
10788
11149
|
/**
|
|
10789
11150
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10790
11151
|
*/
|
|
10791
|
-
user?:
|
|
11152
|
+
user?: null | User;
|
|
10792
11153
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
10793
11154
|
type Options$5<TSlug extends CollectionSlug> = BaseOptions$2<TSlug> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10794
11155
|
|
|
@@ -10860,17 +11221,12 @@ type BaseOptions$1<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10860
11221
|
*/
|
|
10861
11222
|
populate?: PopulateType;
|
|
10862
11223
|
/**
|
|
10863
|
-
* Publish the document / documents in all locales.
|
|
11224
|
+
* Publish the document / documents in all locales. Only applies when localization is enabled
|
|
11225
|
+
* and the collection has localized fields.
|
|
10864
11226
|
*
|
|
10865
11227
|
* @default undefined
|
|
10866
11228
|
*/
|
|
10867
11229
|
publishAllLocales?: boolean;
|
|
10868
|
-
/**
|
|
10869
|
-
* Publish the document / documents with a specific locale.
|
|
10870
|
-
*
|
|
10871
|
-
* @default undefined
|
|
10872
|
-
*/
|
|
10873
|
-
publishSpecificLocale?: string;
|
|
10874
11230
|
/**
|
|
10875
11231
|
* The `PayloadRequest` object. You can pass it to thread the current [transaction](https://payloadcms.com/docs/database/transactions), user and locale to the operation.
|
|
10876
11232
|
* Recommended to pass when using the Local API from hooks, as usually you want to execute the operation within the current transaction.
|
|
@@ -10889,13 +11245,14 @@ type BaseOptions$1<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10889
11245
|
*/
|
|
10890
11246
|
trash?: boolean;
|
|
10891
11247
|
/**
|
|
10892
|
-
* Unpublish the document / documents in all locales.
|
|
11248
|
+
* Unpublish the document / documents in all locales. Only applies when localization is enabled
|
|
11249
|
+
* and the collection has localized fields.
|
|
10893
11250
|
*/
|
|
10894
11251
|
unpublishAllLocales?: boolean;
|
|
10895
11252
|
/**
|
|
10896
11253
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10897
11254
|
*/
|
|
10898
|
-
user?:
|
|
11255
|
+
user?: null | User;
|
|
10899
11256
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10900
11257
|
type ByIDOptions<TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>> = {
|
|
10901
11258
|
/**
|
|
@@ -10972,7 +11329,7 @@ type CountGlobalVersionsOptions<TSlug extends GlobalSlug> = {
|
|
|
10972
11329
|
/**
|
|
10973
11330
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10974
11331
|
*/
|
|
10975
|
-
user?:
|
|
11332
|
+
user?: null | User;
|
|
10976
11333
|
/**
|
|
10977
11334
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10978
11335
|
*/
|
|
@@ -11062,7 +11419,7 @@ type BaseFindOneOptions<TSlug extends GlobalSlug, TSelect extends SelectType> =
|
|
|
11062
11419
|
/**
|
|
11063
11420
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11064
11421
|
*/
|
|
11065
|
-
user?:
|
|
11422
|
+
user?: null | User;
|
|
11066
11423
|
} & Pick<FindOptions<string, SelectType>, 'select'> & Pick<GlobalFindOneArgs, 'flattenLocales'>;
|
|
11067
11424
|
type Options$4<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseFindOneOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11068
11425
|
|
|
@@ -11122,7 +11479,7 @@ type Options$3<TSlug extends GlobalSlug> = {
|
|
|
11122
11479
|
/**
|
|
11123
11480
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11124
11481
|
*/
|
|
11125
|
-
user?:
|
|
11482
|
+
user?: null | User;
|
|
11126
11483
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11127
11484
|
|
|
11128
11485
|
type Options$2<TSlug extends GlobalSlug> = {
|
|
@@ -11194,7 +11551,7 @@ type Options$2<TSlug extends GlobalSlug> = {
|
|
|
11194
11551
|
/**
|
|
11195
11552
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11196
11553
|
*/
|
|
11197
|
-
user?:
|
|
11554
|
+
user?: null | User;
|
|
11198
11555
|
/**
|
|
11199
11556
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
11200
11557
|
*/
|
|
@@ -11252,7 +11609,7 @@ type Options$1<TSlug extends GlobalSlug> = {
|
|
|
11252
11609
|
/**
|
|
11253
11610
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11254
11611
|
*/
|
|
11255
|
-
user?:
|
|
11612
|
+
user?: null | User;
|
|
11256
11613
|
};
|
|
11257
11614
|
|
|
11258
11615
|
type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
@@ -11296,15 +11653,12 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
|
11296
11653
|
*/
|
|
11297
11654
|
populate?: PopulateType;
|
|
11298
11655
|
/**
|
|
11299
|
-
* Publish the document / documents in all locales.
|
|
11656
|
+
* Publish the document / documents in all locales. Only applies when localization is enabled
|
|
11657
|
+
* and the global has localized fields.
|
|
11300
11658
|
*
|
|
11301
11659
|
* @default undefined
|
|
11302
11660
|
*/
|
|
11303
11661
|
publishAllLocales?: boolean;
|
|
11304
|
-
/**
|
|
11305
|
-
* Publish the document / documents with a specific locale.
|
|
11306
|
-
*/
|
|
11307
|
-
publishSpecificLocale?: TypedLocale;
|
|
11308
11662
|
/**
|
|
11309
11663
|
* The `PayloadRequest` object. You can pass it to thread the current [transaction](https://payloadcms.com/docs/database/transactions), user and locale to the operation.
|
|
11310
11664
|
* Recommended to pass when using the Local API from hooks, as usually you want to execute the operation within the current transaction.
|
|
@@ -11320,13 +11674,14 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
|
11320
11674
|
*/
|
|
11321
11675
|
slug: TSlug;
|
|
11322
11676
|
/**
|
|
11323
|
-
* Unpublish the document / documents in all locales.
|
|
11677
|
+
* Unpublish the document / documents in all locales. Only applies when localization is enabled
|
|
11678
|
+
* and the global has localized fields.
|
|
11324
11679
|
*/
|
|
11325
11680
|
unpublishAllLocales?: boolean;
|
|
11326
11681
|
/**
|
|
11327
11682
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11328
11683
|
*/
|
|
11329
|
-
user?:
|
|
11684
|
+
user?: null | User;
|
|
11330
11685
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11331
11686
|
type Options<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11332
11687
|
|
|
@@ -12103,14 +12458,21 @@ type CountVersionsOptions<TSlug extends CollectionSlug> = {
|
|
|
12103
12458
|
/**
|
|
12104
12459
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
12105
12460
|
*/
|
|
12106
|
-
user?:
|
|
12461
|
+
user?: null | User;
|
|
12107
12462
|
/**
|
|
12108
12463
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
12109
12464
|
*/
|
|
12110
12465
|
where?: Where;
|
|
12111
12466
|
};
|
|
12112
12467
|
|
|
12113
|
-
|
|
12468
|
+
type APIKeyCheckboxFieldOverride = Omit<Partial<CheckboxField>, 'name' | 'type'>;
|
|
12469
|
+
type APIKeyTextFieldOverride = Omit<Partial<TextField>, 'hasMany' | 'maxRows' | 'minRows' | 'name' | 'type' | 'validate'>;
|
|
12470
|
+
declare const createAPIKeyFields: ({ apiKeyField, apiKeyIndexField, enableAPIKeyField, includeEnableAPIKey, }?: {
|
|
12471
|
+
apiKeyField?: APIKeyTextFieldOverride;
|
|
12472
|
+
apiKeyIndexField?: APIKeyTextFieldOverride;
|
|
12473
|
+
enableAPIKeyField?: APIKeyCheckboxFieldOverride;
|
|
12474
|
+
includeEnableAPIKey?: boolean;
|
|
12475
|
+
}) => Field[];
|
|
12114
12476
|
|
|
12115
12477
|
declare const baseAuthFields: Field[];
|
|
12116
12478
|
|
|
@@ -12122,6 +12484,8 @@ declare const usernameFieldConfig: TextField;
|
|
|
12122
12484
|
|
|
12123
12485
|
declare const verificationFields: Field[];
|
|
12124
12486
|
|
|
12487
|
+
declare const defaultUserCollection: CollectionConfig;
|
|
12488
|
+
|
|
12125
12489
|
type OperationArgs = {
|
|
12126
12490
|
data?: any;
|
|
12127
12491
|
disableErrors?: boolean;
|
|
@@ -12205,7 +12569,7 @@ declare const JWTAuthentication: AuthStrategyFunction;
|
|
|
12205
12569
|
type Args$i = {
|
|
12206
12570
|
collection: SanitizedCollectionConfig;
|
|
12207
12571
|
payload: Payload;
|
|
12208
|
-
user:
|
|
12572
|
+
user: User;
|
|
12209
12573
|
};
|
|
12210
12574
|
declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$i) => Promise<void>;
|
|
12211
12575
|
|
|
@@ -12298,26 +12662,22 @@ declare const restoreVersionOperation$1: <TData extends JsonObject & TypeWithID
|
|
|
12298
12662
|
*/
|
|
12299
12663
|
declare function buildConfig(config: Config): Promise<SanitizedConfig>;
|
|
12300
12664
|
|
|
12301
|
-
|
|
12302
|
-
* @deprecated - remove in 4.0. This is error-prone, as mutating this object will affect any objects that use the defaults as a base.
|
|
12303
|
-
*/
|
|
12304
|
-
declare const defaults: Omit<Config, 'db' | 'editor' | 'secret'>;
|
|
12665
|
+
declare const addDefaultsToConfig: (config: Config) => Config;
|
|
12305
12666
|
|
|
12306
12667
|
/**
|
|
12307
12668
|
* Helper for authoring plugins with order, slug, and typed options.
|
|
12308
12669
|
* Eliminates boilerplate and ensures metadata is always set consistently.
|
|
12309
12670
|
*
|
|
12310
|
-
* The `plugin` function receives
|
|
12311
|
-
*
|
|
12671
|
+
* The `plugin` function receives `config`, `plugins` (a slug-keyed map of other
|
|
12672
|
+
* plugins), and the user-provided `options`.
|
|
12312
12673
|
*
|
|
12313
12674
|
* @experimental
|
|
12314
12675
|
*
|
|
12315
12676
|
* @example
|
|
12316
12677
|
* // With options:
|
|
12317
|
-
* export const seoPlugin = definePlugin<
|
|
12678
|
+
* export const seoPlugin = definePlugin<SEOPluginConfig>({
|
|
12318
12679
|
* slug: 'plugin-seo',
|
|
12319
|
-
*
|
|
12320
|
-
* plugin: ({ config, plugins, collections }) => ({ ...config }),
|
|
12680
|
+
* plugin: ({ config, options }) => ({ ...config }),
|
|
12321
12681
|
* })
|
|
12322
12682
|
*
|
|
12323
12683
|
* // Without options:
|
|
@@ -12332,16 +12692,17 @@ declare function definePlugin(descriptor: {
|
|
|
12332
12692
|
config: Config;
|
|
12333
12693
|
plugins: PluginsMap;
|
|
12334
12694
|
}) => Config | Promise<Config>;
|
|
12335
|
-
slug
|
|
12695
|
+
slug: string;
|
|
12336
12696
|
}): () => Plugin;
|
|
12337
|
-
declare function definePlugin<TOptions
|
|
12697
|
+
declare function definePlugin<TOptions>(descriptor: {
|
|
12338
12698
|
order?: number;
|
|
12339
12699
|
plugin: (args: {
|
|
12340
12700
|
config: Config;
|
|
12701
|
+
options: TOptions;
|
|
12341
12702
|
plugins: PluginsMap;
|
|
12342
|
-
}
|
|
12343
|
-
slug
|
|
12344
|
-
}): (options: TOptions) => Plugin;
|
|
12703
|
+
}) => Config | Promise<Config>;
|
|
12704
|
+
slug: string;
|
|
12705
|
+
}): undefined extends TOptions ? (options?: TOptions) => Plugin : (options: TOptions) => Plugin;
|
|
12345
12706
|
|
|
12346
12707
|
/**
|
|
12347
12708
|
* The body of the reorder endpoint.
|
|
@@ -12929,7 +13290,6 @@ type Args$7<TSlug extends GlobalSlug> = {
|
|
|
12929
13290
|
overrideLock?: boolean;
|
|
12930
13291
|
populate?: PopulateType;
|
|
12931
13292
|
publishAllLocales?: boolean;
|
|
12932
|
-
publishSpecificLocale?: string;
|
|
12933
13293
|
req: PayloadRequest;
|
|
12934
13294
|
showHiddenFields?: boolean;
|
|
12935
13295
|
slug: string;
|
|
@@ -13251,39 +13611,6 @@ declare const canAccessAdmin: ({ req }: {
|
|
|
13251
13611
|
*/
|
|
13252
13612
|
declare function commitTransaction(req: MarkRequired<Partial<PayloadRequest>, 'payload'>): Promise<void>;
|
|
13253
13613
|
|
|
13254
|
-
/**
|
|
13255
|
-
* Returns a JSON Schema Type with 'null' added if the field is not required.
|
|
13256
|
-
*/
|
|
13257
|
-
declare function withNullableJSONSchemaType(fieldType: JSONSchema4TypeName, isRequired: boolean): JSONSchema4TypeName | JSONSchema4TypeName[];
|
|
13258
|
-
type ConfigToJSONSchemaOptions = {
|
|
13259
|
-
forceInlineBlocks?: boolean;
|
|
13260
|
-
};
|
|
13261
|
-
declare function fieldsToJSONSchema(
|
|
13262
|
-
/**
|
|
13263
|
-
* Used for relationship fields, to determine whether to use a string or number type for the ID.
|
|
13264
|
-
* While there is a default ID field type set by the db adapter, they can differ on a collection-level
|
|
13265
|
-
* if they have custom ID fields.
|
|
13266
|
-
*/
|
|
13267
|
-
collectionIDFieldTypes: {
|
|
13268
|
-
[key: string]: 'number' | 'string';
|
|
13269
|
-
}, fields: FlattenedField$1[],
|
|
13270
|
-
/**
|
|
13271
|
-
* Allows you to define new top-level interfaces that can be re-used in the output schema.
|
|
13272
|
-
*/
|
|
13273
|
-
interfaceNameDefinitions: Map<string, JSONSchema4>, config?: SanitizedConfig, i18n?: I18n, opts?: ConfigToJSONSchemaOptions): {
|
|
13274
|
-
properties: {
|
|
13275
|
-
[k: string]: JSONSchema4;
|
|
13276
|
-
};
|
|
13277
|
-
required: string[];
|
|
13278
|
-
};
|
|
13279
|
-
declare function entityToJSONSchema(config: SanitizedConfig, entity: SanitizedCollectionConfig | SanitizedGlobalConfig, interfaceNameDefinitions: Map<string, JSONSchema4>, defaultIDType: 'number' | 'text', collectionIDFieldTypes?: {
|
|
13280
|
-
[key: string]: 'number' | 'string';
|
|
13281
|
-
}, i18n?: I18n, opts?: ConfigToJSONSchemaOptions): JSONSchema4;
|
|
13282
|
-
/**
|
|
13283
|
-
* This is used for generating the TypeScript types (payload-types.ts) with the payload generate:types command.
|
|
13284
|
-
*/
|
|
13285
|
-
declare function configToJSONSchema(config: SanitizedConfig, defaultIDType?: 'number' | 'text', i18n?: I18n, opts?: ConfigToJSONSchemaOptions): JSONSchema4;
|
|
13286
|
-
|
|
13287
13614
|
declare function createArrayFromCommaDelineated(input: string): string[];
|
|
13288
13615
|
|
|
13289
13616
|
type CreateLocalReqOptions = {
|
|
@@ -13293,7 +13620,7 @@ type CreateLocalReqOptions = {
|
|
|
13293
13620
|
locale?: string;
|
|
13294
13621
|
req?: Partial<PayloadRequest>;
|
|
13295
13622
|
urlSuffix?: string;
|
|
13296
|
-
user?:
|
|
13623
|
+
user?: User;
|
|
13297
13624
|
};
|
|
13298
13625
|
type CreateLocalReq = (options: CreateLocalReqOptions, payload: Payload) => Promise<PayloadRequest>;
|
|
13299
13626
|
declare const createLocalReq: CreateLocalReq;
|
|
@@ -13555,7 +13882,7 @@ declare const getObjectDotNotation: <T>(obj: Record<string, unknown>, path: stri
|
|
|
13555
13882
|
|
|
13556
13883
|
type GetRequestLanguageArgs = {
|
|
13557
13884
|
config: SanitizedConfig;
|
|
13558
|
-
cookies: Map<string, string
|
|
13885
|
+
cookies: CookieStore | Map<string, string>;
|
|
13559
13886
|
defaultLanguage?: AcceptedLanguages;
|
|
13560
13887
|
headers: Request['headers'];
|
|
13561
13888
|
};
|
|
@@ -13649,6 +13976,71 @@ type ParseDocumentIDArgs = {
|
|
|
13649
13976
|
};
|
|
13650
13977
|
declare function parseDocumentID({ id, collectionSlug, payload }: ParseDocumentIDArgs): string | number | undefined;
|
|
13651
13978
|
|
|
13979
|
+
type JoinParams = {
|
|
13980
|
+
[schemaPath: string]: {
|
|
13981
|
+
limit?: unknown;
|
|
13982
|
+
sort?: string;
|
|
13983
|
+
where?: unknown;
|
|
13984
|
+
} | false;
|
|
13985
|
+
} | false;
|
|
13986
|
+
/**
|
|
13987
|
+
* Convert request JoinQuery object from strings to numbers
|
|
13988
|
+
* @param joins
|
|
13989
|
+
*/
|
|
13990
|
+
declare const sanitizeJoinParams: (_joins?: JoinParams) => JoinQuery;
|
|
13991
|
+
|
|
13992
|
+
type RawParams = {
|
|
13993
|
+
[key: string]: unknown;
|
|
13994
|
+
autosave?: string;
|
|
13995
|
+
data?: string;
|
|
13996
|
+
depth?: string;
|
|
13997
|
+
draft?: string;
|
|
13998
|
+
field?: string;
|
|
13999
|
+
flattenLocales?: string;
|
|
14000
|
+
joins?: JoinParams;
|
|
14001
|
+
limit?: string;
|
|
14002
|
+
overrideLock?: string;
|
|
14003
|
+
page?: string;
|
|
14004
|
+
pagination?: string;
|
|
14005
|
+
populate?: unknown;
|
|
14006
|
+
publishAllLocales?: string;
|
|
14007
|
+
select?: unknown;
|
|
14008
|
+
selectedLocales?: string;
|
|
14009
|
+
sort?: string | string[];
|
|
14010
|
+
trash?: string;
|
|
14011
|
+
unpublishAllLocales?: string;
|
|
14012
|
+
where?: string | Where;
|
|
14013
|
+
};
|
|
14014
|
+
type ParsedParams = {
|
|
14015
|
+
autosave?: boolean;
|
|
14016
|
+
data?: Record<string, unknown>;
|
|
14017
|
+
depth?: number;
|
|
14018
|
+
draft?: boolean;
|
|
14019
|
+
field?: string;
|
|
14020
|
+
flattenLocales?: boolean;
|
|
14021
|
+
joins?: JoinQuery;
|
|
14022
|
+
limit?: number;
|
|
14023
|
+
overrideLock?: boolean;
|
|
14024
|
+
page?: number;
|
|
14025
|
+
pagination?: boolean;
|
|
14026
|
+
populate?: PopulateType;
|
|
14027
|
+
publishAllLocales?: boolean;
|
|
14028
|
+
select?: SelectType;
|
|
14029
|
+
selectedLocales?: string[];
|
|
14030
|
+
sort?: string[];
|
|
14031
|
+
trash?: boolean;
|
|
14032
|
+
unpublishAllLocales?: boolean;
|
|
14033
|
+
where?: Where;
|
|
14034
|
+
} & Record<string, unknown>;
|
|
14035
|
+
/**
|
|
14036
|
+
* Takes raw query parameters and parses them into the correct types that Payload expects.
|
|
14037
|
+
* Examples:
|
|
14038
|
+
* a. `draft` provided as a string of "true" is converted to a boolean
|
|
14039
|
+
* b. `depth` provided as a string of "0" is converted to a number
|
|
14040
|
+
* c. `sort` provided as a comma-separated string or array is converted to an array of strings
|
|
14041
|
+
*/
|
|
14042
|
+
declare const parseParams: (params: RawParams) => ParsedParams;
|
|
14043
|
+
|
|
13652
14044
|
interface Args$5 {
|
|
13653
14045
|
fallbackLocale: TypedFallbackLocale;
|
|
13654
14046
|
locale: string;
|
|
@@ -13664,19 +14056,6 @@ interface Args$5 {
|
|
|
13664
14056
|
*/
|
|
13665
14057
|
declare const sanitizeFallbackLocale: ({ fallbackLocale, locale, localization, }: Args$5) => TypedFallbackLocale;
|
|
13666
14058
|
|
|
13667
|
-
type JoinParams = {
|
|
13668
|
-
[schemaPath: string]: {
|
|
13669
|
-
limit?: unknown;
|
|
13670
|
-
sort?: string;
|
|
13671
|
-
where?: unknown;
|
|
13672
|
-
} | false;
|
|
13673
|
-
} | false;
|
|
13674
|
-
/**
|
|
13675
|
-
* Convert request JoinQuery object from strings to numbers
|
|
13676
|
-
* @param joins
|
|
13677
|
-
*/
|
|
13678
|
-
declare const sanitizeJoinParams: (_joins?: JoinParams) => JoinQuery;
|
|
13679
|
-
|
|
13680
14059
|
/**
|
|
13681
14060
|
* Sanitizes REST populate query to PopulateType
|
|
13682
14061
|
*/
|
|
@@ -13687,6 +14066,8 @@ declare const sanitizePopulateParam: (unsanitizedPopulate: unknown) => PopulateT
|
|
|
13687
14066
|
*/
|
|
13688
14067
|
declare const sanitizeSelectParam: (unsanitizedSelect: unknown) => SelectType | undefined;
|
|
13689
14068
|
|
|
14069
|
+
declare const sanitizeSortParams: (sort: unknown) => string[] | undefined;
|
|
14070
|
+
|
|
13690
14071
|
/**
|
|
13691
14072
|
* This is used for the Select API to strip out fields that are not selected.
|
|
13692
14073
|
* It will mutate the given data object and determine if your recursive function should continue to run.
|
|
@@ -13815,32 +14196,6 @@ declare const getLatestGlobalVersion: ({ slug, config, locale, payload, publishe
|
|
|
13815
14196
|
globalExists: boolean;
|
|
13816
14197
|
}>;
|
|
13817
14198
|
|
|
13818
|
-
type LocalizeStatusArgs$1 = {
|
|
13819
|
-
collectionSlug?: string;
|
|
13820
|
-
globalSlug?: string;
|
|
13821
|
-
payload: Payload;
|
|
13822
|
-
req?: any;
|
|
13823
|
-
};
|
|
13824
|
-
|
|
13825
|
-
type LocalizeStatusArgs = {
|
|
13826
|
-
collectionSlug?: string;
|
|
13827
|
-
db: any;
|
|
13828
|
-
globalSlug?: string;
|
|
13829
|
-
payload: Payload;
|
|
13830
|
-
req?: any;
|
|
13831
|
-
sql: any;
|
|
13832
|
-
};
|
|
13833
|
-
|
|
13834
|
-
type LocalizeStatusMigration = {
|
|
13835
|
-
down: (args: any) => Promise<void>;
|
|
13836
|
-
up: (args: any) => Promise<void>;
|
|
13837
|
-
};
|
|
13838
|
-
/**
|
|
13839
|
-
* Main entry point for localizeStatus migration.
|
|
13840
|
-
* Detects database type and dispatches to appropriate implementation.
|
|
13841
|
-
*/
|
|
13842
|
-
declare const localizeStatus: LocalizeStatusMigration;
|
|
13843
|
-
|
|
13844
14199
|
type Args<T extends JsonObject = JsonObject> = {
|
|
13845
14200
|
autosave?: boolean;
|
|
13846
14201
|
collection?: SanitizedCollectionConfig;
|
|
@@ -13850,11 +14205,9 @@ type Args<T extends JsonObject = JsonObject> = {
|
|
|
13850
14205
|
id?: number | string;
|
|
13851
14206
|
operation?: 'create' | 'restoreVersion' | 'update';
|
|
13852
14207
|
payload: Payload;
|
|
13853
|
-
publishSpecificLocale?: string;
|
|
13854
14208
|
req?: PayloadRequest;
|
|
13855
14209
|
returning?: boolean;
|
|
13856
14210
|
select?: SelectType;
|
|
13857
|
-
snapshot?: any;
|
|
13858
14211
|
unpublish?: boolean;
|
|
13859
14212
|
};
|
|
13860
14213
|
declare function saveVersion<TData extends JsonObject = JsonObject>(args: {
|
|
@@ -13973,7 +14326,52 @@ interface UntypedPayloadTypes {
|
|
|
13973
14326
|
};
|
|
13974
14327
|
};
|
|
13975
14328
|
locale: null | string;
|
|
13976
|
-
|
|
14329
|
+
/**
|
|
14330
|
+
* User shape used when generated types are unavailable.
|
|
14331
|
+
* Includes common document fields and fields managed by Payload auth. Custom fields and
|
|
14332
|
+
* collection features such as drafts, trash, and uploads require generated types. Runtime fields
|
|
14333
|
+
* `_strategy` and `_sid` belong to `AuthenticatedUser`.
|
|
14334
|
+
*/
|
|
14335
|
+
user: {
|
|
14336
|
+
/** Email verification token. Hidden (needs `showHiddenFields`). Only with `auth.verify`, until verified. */
|
|
14337
|
+
_verificationToken?: null | string;
|
|
14338
|
+
/** Whether the email is verified. Only with `auth.verify`. */
|
|
14339
|
+
_verified?: boolean | null;
|
|
14340
|
+
/** The user's API key. Only with `auth.useAPIKey`, once enabled for this user. */
|
|
14341
|
+
apiKey?: null | string;
|
|
14342
|
+
/** Internal lookup index for the API key. Hidden (needs `showHiddenFields`). Only with `auth.useAPIKey`. */
|
|
14343
|
+
apiKeyIndex?: null | string;
|
|
14344
|
+
/** Slug of the auth collection this user belongs to. Always present; identifies the source collection. */
|
|
14345
|
+
collection: string;
|
|
14346
|
+
/** When the user was created. Not present when timestamps are disabled. */
|
|
14347
|
+
createdAt?: string;
|
|
14348
|
+
/** The user's email. Absent if email login is disabled via `auth.loginWithUsername`. */
|
|
14349
|
+
email?: null | string;
|
|
14350
|
+
/** Whether API key auth is enabled for this user. Only with `auth.useAPIKey`. */
|
|
14351
|
+
enableAPIKey?: boolean | null;
|
|
14352
|
+
/** Hashed password. Hidden (needs `showHiddenFields`). Only with the local strategy. */
|
|
14353
|
+
hash?: null | string;
|
|
14354
|
+
/** The user's ID. Always present. */
|
|
14355
|
+
id: UntypedPayloadTypes['db']['defaultIDType'];
|
|
14356
|
+
/** Locked-until timestamp. Hidden (needs `showHiddenFields`). Only with `auth.maxLoginAttempts`, while locked. */
|
|
14357
|
+
lockUntil?: null | string;
|
|
14358
|
+
/** Failed login attempt count. Hidden (needs `showHiddenFields`). Only with `auth.maxLoginAttempts`. */
|
|
14359
|
+
loginAttempts?: null | number;
|
|
14360
|
+
/** Plain-text password. Write-only: accepted on `create`/`update`, never returned on reads. */
|
|
14361
|
+
password?: null | string;
|
|
14362
|
+
/** Reset-token expiry. Hidden (needs `showHiddenFields`). Only after `forgotPassword`, until reset. */
|
|
14363
|
+
resetPasswordExpiration?: null | string;
|
|
14364
|
+
/** Active password-reset token. Hidden (needs `showHiddenFields`). Only after `forgotPassword`, until reset. */
|
|
14365
|
+
resetPasswordToken?: null | string;
|
|
14366
|
+
/** Password salt. Hidden (needs `showHiddenFields`). Only with the local strategy. */
|
|
14367
|
+
salt?: null | string;
|
|
14368
|
+
/** Active login sessions. Only with `auth.useSessions` (the default). */
|
|
14369
|
+
sessions?: Array<UserSession> | null;
|
|
14370
|
+
/** When the user was last updated. Not present when timestamps are disabled. */
|
|
14371
|
+
updatedAt?: string;
|
|
14372
|
+
/** The user's username. Only with `auth.loginWithUsername`. */
|
|
14373
|
+
username?: null | string;
|
|
14374
|
+
};
|
|
13977
14375
|
widgets: {
|
|
13978
14376
|
[slug: string]: JsonObject;
|
|
13979
14377
|
};
|
|
@@ -14036,13 +14434,13 @@ type GlobalSlug<T extends PayloadTypesShape = PayloadTypes> = StringKeyOf<T['glo
|
|
|
14036
14434
|
type TypedLocale<T extends PayloadTypesShape = PayloadTypes> = T['locale'];
|
|
14037
14435
|
type TypedFallbackLocale = PayloadTypes['fallbackLocale'];
|
|
14038
14436
|
/**
|
|
14437
|
+
* User document type for auth-enabled collections.
|
|
14438
|
+
* Uses generated types when available and the auth-only fallback above otherwise. Generated types
|
|
14439
|
+
* include custom fields and can be a union when several collections support auth.
|
|
14039
14440
|
*
|
|
14040
|
-
*
|
|
14041
|
-
* auth-enabled collections.
|
|
14042
|
-
*
|
|
14043
|
-
* @todo rename to `User` in 4.0
|
|
14441
|
+
* Not the signed-in `req.user`, which also has `_strategy` and `_sid` - use `AuthenticatedUser`.
|
|
14044
14442
|
*/
|
|
14045
|
-
type
|
|
14443
|
+
type User = PayloadTypes['user'];
|
|
14046
14444
|
type TypedAuthOperations<T extends PayloadTypesShape = PayloadTypes> = T['auth'];
|
|
14047
14445
|
type AuthCollectionSlug<T extends PayloadTypesShape = PayloadTypes> = StringKeyOf<T['auth']>;
|
|
14048
14446
|
type TypedJobs = PayloadTypes['jobs'];
|
|
@@ -14290,15 +14688,13 @@ declare class BasePayload {
|
|
|
14290
14688
|
declare const initialized: BasePayload;
|
|
14291
14689
|
|
|
14292
14690
|
declare const reload: (config: SanitizedConfig, payload: Payload, skipImportMapGeneration?: boolean, options?: InitOptions) => Promise<void>;
|
|
14293
|
-
/**
|
|
14294
|
-
* Get a payload instance.
|
|
14295
|
-
* This function is a wrapper around new BasePayload().init() that adds the following functionality on top of that:
|
|
14296
|
-
*
|
|
14297
|
-
* - smartly caches Payload instance on the module scope. That way, we prevent unnecessarily initializing Payload over and over again
|
|
14298
|
-
* when calling getPayload multiple times or from multiple locations.
|
|
14299
|
-
* - adds HMR support and reloads the payload instance when the config changes.
|
|
14300
|
-
*/
|
|
14301
14691
|
declare const getPayload: (options: {
|
|
14692
|
+
/**
|
|
14693
|
+
* Custom dev reload strategy. If provided, replaces the default
|
|
14694
|
+
* Next.js HMR WebSocket listener. The strategy's `connect` function
|
|
14695
|
+
* receives a callback to trigger config reload.
|
|
14696
|
+
*/
|
|
14697
|
+
devReloadStrategy?: DevReloadStrategy;
|
|
14302
14698
|
/**
|
|
14303
14699
|
* A unique key to identify the payload instance. You can pass your own key if you want to cache this payload instance separately.
|
|
14304
14700
|
* This is useful if you pass a different payload config for each instance.
|
|
@@ -14335,5 +14731,5 @@ interface GlobalAdminCustom extends Record<string, any> {
|
|
|
14335
14731
|
interface GlobalAdminCustom extends Record<string, any> {
|
|
14336
14732
|
}
|
|
14337
14733
|
|
|
14338
|
-
export { APIError, APIErrorName, Action, AuthenticationError, BasePayload, DEFAULT_ALLOW_HAS_MANY, DEFAULT_HIERARCHY_TREE_LIMIT, DatabaseKVAdapter, DiffMethod, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, EntityType, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, HIERARCHY_DEFAULT_LOCALE, HIERARCHY_SLUG_PATH_FIELD, HIERARCHY_TITLE_PATH_FIELD, InMemoryKVAdapter, InvalidConfiguration, InvalidFieldName, InvalidFieldRelationship, JWTAuthentication, JobCancelledError, Locked, LockedAuth, MissingCollectionLabel, MissingEditorProp, MissingFieldInputOptions, MissingFieldType, MissingFile, NotFound, QueryError, UnauthorizedError, UnverifiedEmail, ValidationError, ValidationErrorName, _internal_jobSystemGlobals, _internal_resetJobSystemGlobals, _internal_safeFetchGlobal, accessOperation, addDataAndFileToRequest, addLocalesToRequestFromData, traverseFields$4 as afterChangeTraverseFields, promise as afterReadPromise, traverseFields$3 as afterReadTraverseFields, appendVersionToQueryKey,
|
|
14339
|
-
export type { Access, AccessArgs, AccessResult, AdminClient, AdminComponent, AdminDependencies, AdminFunction, AdminViewClientProps, AdminViewComponent, AdminViewConfig, AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, AfterErrorHook$1 as AfterErrorHook, AfterErrorHookArgs, AfterErrorResult, AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, AllOperations, AllowList, Ancestor, ApplyDisableErrors, ArrayField, ArrayFieldClient, ArrayFieldClientComponent, ArrayFieldClientProps, ArrayFieldDescriptionClientComponent, ArrayFieldDescriptionServerComponent, ArrayFieldDiffClientComponent, ArrayFieldDiffServerComponent, ArrayFieldErrorClientComponent, ArrayFieldErrorServerComponent, ArrayFieldLabelClientComponent, ArrayFieldLabelServerComponent, ArrayFieldServerComponent, ArrayFieldServerProps, ArrayFieldValidation, Auth, AuthCollection, AuthCollectionSlug, AuthOperations, AuthOperationsFromCollectionSlug, AuthStrategy, AuthStrategyFunction, AuthStrategyFunctionArgs, AuthStrategyResult, BaseDatabaseAdapter, BaseFilter, BaseJob, BaseListFilter, BaseLocalizationConfig, BaseValidateOptions, BaseVersionField, BeforeDocumentControlsClientProps, BeforeDocumentControlsServerProps, BeforeDocumentControlsServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, BeginTransaction, BinScript, BinScriptConfig, Block, BlockJSX, BlockPermissions, BlockRowLabelClientComponent, BlockRowLabelServerComponent, BlockSlug, BlocksField, BlocksFieldClient, BlocksFieldClientComponent, BlocksFieldClientProps, BlocksFieldDescriptionClientComponent, BlocksFieldDescriptionServerComponent, BlocksFieldDiffClientComponent, BlocksFieldDiffServerComponent, BlocksFieldErrorClientComponent, BlocksFieldErrorServerComponent, BlocksFieldLabelClientComponent, BlocksFieldLabelServerComponent, BlocksFieldServerComponent, BlocksFieldServerProps, BlocksFieldValidation, BlocksPermissions, BuildFormStateArgs, BuildTableStateArgs, BulkOperationResult, CORSConfig, CheckboxField, CheckboxFieldClient, CheckboxFieldClientComponent, CheckboxFieldClientProps, CheckboxFieldDescriptionClientComponent, CheckboxFieldDescriptionServerComponent, CheckboxFieldDiffClientComponent, CheckboxFieldDiffServerComponent, CheckboxFieldErrorClientComponent, CheckboxFieldErrorServerComponent, CheckboxFieldLabelClientComponent, CheckboxFieldLabelServerComponent, CheckboxFieldServerComponent, CheckboxFieldServerProps, CheckboxFieldValidation, ClientBlock, ClientCollectionConfig, ClientComponentProps, ClientConfig, ClientField, ClientFieldBase, ClientFieldProps, ClientFieldSchemaMap, ClientFieldWithOptionalType, ClientGlobalConfig, DocumentViewClientProps as ClientSideEditViewProps, ClientTab, ClientUser, ClientWidget, CodeField, CodeFieldClient, CodeFieldClientComponent, CodeFieldClientProps, CodeFieldDescriptionClientComponent, CodeFieldDescriptionServerComponent, CodeFieldDiffClientComponent, CodeFieldDiffServerComponent, CodeFieldErrorClientComponent, CodeFieldErrorServerComponent, CodeFieldLabelClientComponent, CodeFieldLabelServerComponent, CodeFieldServerComponent, CodeFieldServerProps, CodeFieldValidation, CollapsedPreferences, CollapsibleField, CollapsibleFieldClient, CollapsibleFieldClientComponent, CollapsibleFieldClientProps, CollapsibleFieldDescriptionClientComponent, CollapsibleFieldDescriptionServerComponent, CollapsibleFieldDiffClientComponent, CollapsibleFieldDiffServerComponent, CollapsibleFieldErrorClientComponent, CollapsibleFieldErrorServerComponent, CollapsibleFieldLabelClientComponent, CollapsibleFieldLabelServerComponent, CollapsibleFieldServerComponent, CollapsibleFieldServerProps, Collection, CollectionAdminCustom, CollectionAdminOptions, AfterChangeHook as CollectionAfterChangeHook, AfterDeleteHook as CollectionAfterDeleteHook, AfterErrorHook as CollectionAfterErrorHook, AfterForgotPasswordHook as CollectionAfterForgotPasswordHook, AfterLoginHook as CollectionAfterLoginHook, AfterLogoutHook as CollectionAfterLogoutHook, AfterMeHook as CollectionAfterMeHook, AfterOperationHook as CollectionAfterOperationHook, AfterReadHook as CollectionAfterReadHook, AfterRefreshHook as CollectionAfterRefreshHook, BeforeChangeHook as CollectionBeforeChangeHook, BeforeDeleteHook as CollectionBeforeDeleteHook, BeforeLoginHook as CollectionBeforeLoginHook, BeforeOperationHook as CollectionBeforeOperationHook, BeforeReadHook as CollectionBeforeReadHook, BeforeValidateHook as CollectionBeforeValidateHook, CollectionConfig, CollectionCustom, MeHook as CollectionMeHook, CollectionPermission, CollectionPreferences, RefreshHook as CollectionRefreshHook, CollectionSlug, Column, ColumnPreference, CommitTransaction, CompoundIndex, ConcurrencyConfig, Condition, ConditionalDateProps, Config, ConfirmPasswordFieldValidation, Connect, Count, CountArgs, CountGlobalVersionArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateClientConfigArgs, CreateFolderFieldOptions, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateTagFieldOptions, CreateVersion, CreateVersionArgs, CustomComponent, CustomDocumentViewConfig, CustomPayloadRequestProperties, CustomComponent as CustomPreviewButton, CustomComponent as CustomPublishButton, CustomComponent as CustomSaveButton, CustomComponent as CustomSaveDraftButton, CustomStatus, CustomUpload, CustomVersionParser, DBIdentifierName, DashboardConfig, Data, DataFromCollectionSlug, DataFromGlobalSlug, DataFromWidgetSlug, DatabaseAdapter, DatabaseAdapterResult as DatabaseAdapterObj, DatabaseKVAdapterOptions, DateField, DateFieldClient, DateFieldClientComponent, DateFieldClientProps, DateFieldDescriptionClientComponent, DateFieldDescriptionServerComponent, DateFieldDiffClientComponent, DateFieldDiffServerComponent, DateFieldErrorClientComponent, DateFieldErrorServerComponent, DateFieldLabelClientComponent, DateFieldLabelServerComponent, DateFieldServerComponent, DateFieldServerProps, DateFieldValidation, DayPickerProps, DefaultCellComponentProps, DefaultDocumentIDType, DefaultDocumentViewConfig, DefaultServerCellComponentProps, DefaultServerFunctionArgs, DefaultValue, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Description, DescriptionFunction, Destroy, Document, DocumentEvent, DocumentPermissions, DocumentPreferences, DocumentSlots, DocumentSubViewTypes, DocumentTabClientProps, DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabServerProps as DocumentTabProps, DocumentTabServerProps, DocumentTabServerPropsOnly, DocumentViewClientProps, DocumentViewComponent, DocumentViewConfig, DocumentViewServerProps, DocumentViewServerPropsOnly, DraftTransformCollectionWithSelect, DynamicMigrationTemplate, EditConfig, EditConfigWithRoot, EditConfigWithoutRoot, EditMenuItemsClientProps, EditMenuItemsServerProps, EditMenuItemsServerPropsOnly, EditViewComponent, EditViewConfig, EditViewProps, EmailAdapter, EmailField, EmailFieldClient, EmailFieldClientComponent, EmailFieldClientProps, EmailFieldDescriptionClientComponent, EmailFieldDescriptionServerComponent, EmailFieldDiffClientComponent, EmailFieldDiffServerComponent, EmailFieldErrorClientComponent, EmailFieldErrorServerComponent, EmailFieldLabelClientComponent, EmailFieldLabelServerComponent, EmailFieldServerComponent, EmailFieldServerProps, EmailFieldValidation, Endpoint, EntityDescription, EntityDescriptionComponent, EntityDescriptionFunction, EntityPolicies, ErrorResult, FetchAPIFileUploadOptions, Field, FieldAccess, FieldAccessArgs, FieldAffectingData, FieldAffectingDataClient, FieldBase, FieldBaseClient, FieldClientComponent, FieldCustom, FieldDescriptionClientComponent, FieldDescriptionClientProps, FieldDescriptionServerComponent, FieldDescriptionServerProps, FieldDiffClientComponent, FieldDiffClientProps, FieldDiffServerComponent, FieldDiffServerProps, FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, FieldHook, FieldHookArgs, FieldLabelClientComponent, FieldLabelClientProps, FieldLabelServerComponent, FieldLabelServerProps, FieldPaths, FieldPermissions, FieldPosition, FieldPresentationalOnly, FieldPresentationalOnlyClient, FieldRow, FieldSchemaMap, FieldServerComponent, FieldState, FieldTypes, FieldWithMany, FieldWithManyClient, FieldWithMaxDepth, FieldWithMaxDepthClient, FieldWithPath, FieldWithPathClient, FieldWithSubFields, FieldWithSubFieldsClient, FieldsPermissions, FieldsPreferences, File$1 as File, FileAllowList, FileData, FileSize, FileSizeImproved, FileSizes, FileToSave, FilterOptions, FilterOptionsProps, FilterOptionsResult, Find, FindArgs, FindDistinct, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindOptions, FindVersions, FindVersionsArgs, FlattenedArrayField, FlattenedBlock, FlattenedBlocksField, FlattenedField$1 as FlattenedField, FlattenedGroupField, FlattenedJoinField, FlattenedTabAsField, FocalPoint, FoldersConfig, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FormState, FormStateWithoutComponents, GenerateImageName, GeneratePreviewURL, GenerateSchema, GeneratedTypes, GenericDescriptionProps, GenericErrorProps, GenericLabelProps, GetAdminThumbnail, GetInitialTreeDataArgs, GlobalAdminCustom, GlobalAdminOptions, AfterChangeHook$1 as GlobalAfterChangeHook, AfterReadHook$1 as GlobalAfterReadHook, BeforeChangeHook$1 as GlobalBeforeChangeHook, BeforeOperationHook$1 as GlobalBeforeOperationHook, BeforeReadHook$1 as GlobalBeforeReadHook, BeforeValidateHook$1 as GlobalBeforeValidateHook, GlobalConfig, GlobalCustom, GlobalPermission, GlobalSlug, GraphQLExtension, GraphQLInfo, GroupField, GroupFieldClient, GroupFieldClientComponent, GroupFieldClientProps, GroupFieldDescriptionClientComponent, GroupFieldDescriptionServerComponent, GroupFieldDiffClientComponent, GroupFieldDiffServerComponent, GroupFieldErrorClientComponent, GroupFieldErrorServerComponent, GroupFieldLabelClientComponent, GroupFieldLabelServerComponent, GroupFieldServerComponent, GroupFieldServerProps, HiddenFieldProps, HierarchyConfig, HierarchyViewData, HookName, HookOperationType, IfAny, ImageSize, ImageUploadFormatOptions, ImageUploadTrimOptions, ImportMap, ImportMapGenerators, IncomingAuthType, Init, InitOptions, InitPageResult, InitReqResult, InitialTreeData, InsideFieldsPreferences, IsAny, JSONField, JSONFieldClient, JSONFieldClientComponent, JSONFieldClientProps, JSONFieldDescriptionClientComponent, JSONFieldDescriptionServerComponent, JSONFieldDiffClientComponent, JSONFieldDiffServerComponent, JSONFieldErrorClientComponent, JSONFieldErrorServerComponent, JSONFieldLabelClientComponent, JSONFieldLabelServerComponent, JSONFieldServerComponent, JSONFieldServerProps, JSONFieldValidation, Job, JobLog, JobTaskStatus, JobsConfig, JoinField, JoinFieldClient, JoinFieldClientComponent, JoinFieldClientProps, JoinFieldDescriptionClientComponent, JoinFieldDescriptionServerComponent, JoinFieldDiffClientComponent, JoinFieldDiffServerComponent, JoinFieldErrorClientComponent, JoinFieldErrorServerComponent, JoinFieldLabelClientComponent, JoinFieldLabelServerComponent, JoinFieldServerComponent, JoinFieldServerProps, JoinQuery, JsonArray, JsonObject, JsonValue, KVAdapter, KVAdapterResult, KVStoreValue, LabelFunction, Labels, LabelsClient, LanguageOptions, CollectionPreferences as ListPreferences, ListQuery, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlotSharedClientProps, ListViewSlots, LivePreviewConfig, LivePreviewURLType, Locale, LocalizationConfig, LocalizationConfigWithLabels, LocalizationConfigWithNoLabels, LoginResult, LoginWithUsernameOptions, MappedClientComponent, MappedEmptyComponent, MappedServerComponent, MaybePromise, MeOperationResult, MetaConfig, Migration, MigrationData, MigrationTemplateArgs, LocalizeStatusArgs$1 as MongoLocalizeStatusArgs, NamedGroupField, NamedGroupFieldClient, NamedTab, NavGroupPreferences, NavPreferences, NonPresentationalField, NonPresentationalFieldClient, NumberField, NumberFieldClient, NumberFieldClientComponent, NumberFieldClientProps, NumberFieldDescriptionClientComponent, NumberFieldDescriptionServerComponent, NumberFieldDiffClientComponent, NumberFieldDiffServerComponent, NumberFieldErrorClientComponent, NumberFieldErrorServerComponent, NumberFieldLabelClientComponent, NumberFieldLabelServerComponent, NumberFieldManyValidation, NumberFieldServerComponent, NumberFieldServerProps, NumberFieldSingleValidation, NumberFieldValidation, OGImageConfig, Operation, Operator, Option, OptionLabel, OptionObject, OrderableEndpointBody, PaginatedDistinctDocs, PaginatedDocs, Params, PasswordFieldValidation, PathToQuery, Payload, PayloadClientComponentProps, PayloadClientReactComponent, PayloadComponent, PayloadComponentProps, EmailAdapter as PayloadEmailAdapter, PayloadHandler, PayloadLogger, PayloadReactComponent, PayloadRequest, PayloadServerAction, PayloadServerComponentProps, PayloadServerReactComponent, PayloadTypes, PayloadTypesShape, Permission, Permissions, PickPreserveOptional, Plugin, PluginsMap, PointField, PointFieldClient, PointFieldClientComponent, PointFieldClientProps, PointFieldDescriptionClientComponent, PointFieldDescriptionServerComponent, PointFieldDiffClientComponent, PointFieldDiffServerComponent, PointFieldErrorClientComponent, PointFieldErrorServerComponent, PointFieldLabelClientComponent, PointFieldLabelServerComponent, PointFieldServerComponent, PointFieldServerProps, PointFieldValidation, PolymorphicRelationshipField, PolymorphicRelationshipFieldClient, PopulateType, PreferenceRequest, PreferenceUpdateRequest, PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, ProbedImageSize, PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, QueryDrafts, QueryDraftsArgs, QueryPreset, RadioField, RadioFieldClient, RadioFieldClientComponent, RadioFieldClientProps, RadioFieldDescriptionClientComponent, RadioFieldDescriptionServerComponent, RadioFieldDiffClientComponent, RadioFieldDiffServerComponent, RadioFieldErrorClientComponent, RadioFieldErrorServerComponent, RadioFieldLabelClientComponent, RadioFieldLabelServerComponent, RadioFieldServerComponent, RadioFieldServerProps, RadioFieldValidation, RawPayloadComponent, RegisteredPlugins, RelatedDocumentsGrouped, RelationshipField, RelationshipFieldClient, RelationshipFieldClientComponent, RelationshipFieldClientProps, RelationshipFieldDescriptionClientComponent, RelationshipFieldDescriptionServerComponent, RelationshipFieldDiffClientComponent, RelationshipFieldDiffServerComponent, RelationshipFieldErrorClientComponent, RelationshipFieldErrorServerComponent, RelationshipFieldLabelClientComponent, RelationshipFieldLabelServerComponent, RelationshipFieldManyValidation, RelationshipFieldServerComponent, RelationshipFieldServerProps, RelationshipFieldSingleValidation, RelationshipFieldValidation, RelationshipValue, RenderConfigArgs, RenderDocumentVersionsProperties, RenderEntityConfigArgs, RenderFieldConfigArgs, RenderRootConfigArgs, RenderedField, ReplaceAny, RequestContext, RequiredDataFromCollection, RequiredDataFromCollectionSlug, ResolvedComponent, ResolvedFilterOptions, RichTextAdapter, RichTextAdapterProvider, RichTextField, RichTextFieldClient, RichTextFieldClientComponent, RichTextFieldClientProps, RichTextFieldDescriptionClientComponent, RichTextFieldDescriptionServerComponent, RichTextFieldDiffClientComponent, RichTextFieldDiffServerComponent, RichTextFieldErrorClientComponent, RichTextFieldErrorServerComponent, RichTextFieldLabelClientComponent, RichTextFieldLabelServerComponent, RichTextFieldServerComponent, RichTextFieldServerProps, RichTextFieldValidation, RichTextHooks, RollbackTransaction, RootLivePreviewConfig, Row, RowField, RowFieldClient, RowFieldClientComponent, RowFieldClientProps, RowFieldDescriptionClientComponent, RowFieldDescriptionServerComponent, RowFieldDiffClientComponent, RowFieldDiffServerComponent, RowFieldErrorClientComponent, RowFieldErrorServerComponent, RowFieldLabelClientComponent, RowFieldLabelServerComponent, RowFieldServerComponent, RowFieldServerProps, RowLabel, RowLabelComponent, RunInlineTaskFunction, RunJobAccess, RunJobAccessArgs, RunTaskFunction, RunTaskFunctions, RunningJob, SanitizeFieldArgs, SanitizedBlockPermissions, SanitizedBlocksPermissions, SanitizedCollectionConfig, SanitizedCollectionPermission, SanitizedCompoundIndex, SanitizedConfig, SanitizedDashboardConfig, SanitizedDocumentPermissions, SanitizedFieldPermissions, SanitizedFieldsPermissions, SanitizedGlobalConfig, SanitizedGlobalPermission, SanitizedHierarchyConfig, SanitizedHierarchyRelatedCollection, SanitizedJoins, SanitizedLabelProps, SanitizedLocalizationConfig, SanitizedPermissions, SanitizedUploadConfig, SaveButtonClientProps, SaveButtonServerProps, SaveButtonServerPropsOnly, SaveDraftButtonClientProps, SaveDraftButtonServerProps, SaveDraftButtonServerPropsOnly, SchedulePublish, SchedulePublishTaskInput, SelectExcludeType, SelectField, SelectFieldClient, SelectFieldClientComponent, SelectFieldClientProps, SelectFieldDescriptionClientComponent, SelectFieldDescriptionServerComponent, SelectFieldDiffClientComponent, SelectFieldDiffServerComponent, SelectFieldErrorClientComponent, SelectFieldErrorServerComponent, SelectFieldLabelClientComponent, SelectFieldLabelServerComponent, SelectFieldManyValidation, SelectFieldServerComponent, SelectFieldServerProps, SelectFieldSingleValidation, SelectFieldValidation, SelectFn, SelectFnArgs, SelectFnOperation, SelectIncludeType, SelectMode, SelectType, SendEmailOptions, ServerComponentProps, ServerFieldBase, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, ServerOnlyCollectionAdminProperties, ServerOnlyCollectionProperties, ServerOnlyFieldAdminProperties, ServerOnlyFieldProperties, ServerOnlyGlobalAdminProperties, ServerOnlyGlobalProperties, ServerOnlyLivePreviewProperties, ServerOnlyUploadProperties, ServerProps, ServerPropsFromView, DocumentViewServerProps as ServerSideEditViewProps, SharedAdminComponents, SharedEditViewComponents, SharedEntityViews, SharedProps, SharpDependency, SidebarTab, SidebarTabClientProps, SidebarTabServerProps, SidebarTabServerPropsOnly, SingleRelationshipField, SingleRelationshipFieldClient, SingleTaskStatus, SlugField, SlugFieldClientProps, SlugifyServerFunctionArgs, Sort, LocalizeStatusArgs as SqlLocalizeStatusArgs, StaticDescription, StaticLabel, StringKeyOf, Tab, TabAsField, TabAsFieldClient, TabsField, TabsFieldClient, TabsFieldClientComponent, TabsFieldClientProps, TabsFieldDescriptionClientComponent, TabsFieldDescriptionServerComponent, TabsFieldDiffClientComponent, TabsFieldDiffServerComponent, TabsFieldErrorClientComponent, TabsFieldErrorServerComponent, TabsFieldLabelClientComponent, TabsFieldLabelServerComponent, TabsFieldServerComponent, TabsFieldServerProps, TabsPreferences, TagsConfig, TaskConfig, TaskHandler, TaskHandlerArgs, TaskHandlerResult, TaskHandlerResults, TaskInput, TaskOutput, TaskType, TextField, TextFieldClient, TextFieldClientComponent, TextFieldClientProps, TextFieldDescriptionClientComponent, TextFieldDescriptionServerComponent, TextFieldDiffClientComponent, TextFieldDiffServerComponent, TextFieldErrorClientComponent, TextFieldErrorServerComponent, TextFieldLabelClientComponent, TextFieldLabelServerComponent, TextFieldManyValidation, TextFieldServerComponent, TextFieldServerProps, TextFieldSingleValidation, TextFieldValidation, TextareaField, TextareaFieldClient, TextareaFieldClientComponent, TextareaFieldClientProps, TextareaFieldDescriptionClientComponent, TextareaFieldDescriptionServerComponent, TextareaFieldDiffClientComponent, TextareaFieldDiffServerComponent, TextareaFieldErrorClientComponent, TextareaFieldErrorServerComponent, TextareaFieldLabelClientComponent, TextareaFieldLabelServerComponent, TextareaFieldServerComponent, TextareaFieldServerProps, TextareaFieldValidation, TimePickerProps, Timezone, TimezonesConfig, Transaction, TransformCollectionWithSelect, TransformDataWithSelect, TransformGlobalWithSelect, TraverseFieldsCallback, TypeWithID, TypeWithTimestamps, TypeWithVersion, TypedAuthOperations, TypedBlock, TypedCollection, TypedCollectionJoins, TypedCollectionSelect, TypedFallbackLocale, TypedGlobal, TypedGlobalSelect, TypedJobs, TypedLocale, TypedUploadCollection, TypedUser, TypedWidget, UIField, UIFieldClient, UIFieldClientComponent, UIFieldClientProps, UIFieldDiffClientComponent, UIFieldDiffServerComponent, UIFieldServerComponent, UIFieldServerProps, UnauthenticatedClientConfig, UnnamedGroupField, UnnamedGroupFieldClient, UnnamedTab, UnpublishButtonClientProps, UnpublishButtonServerProps, UnpublishButtonServerPropsOnly, UntypedPayloadTypes, UntypedUser, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateJobs, UpdateJobsArgs, UpdateMany, UpdateManyArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, UploadCollectionSlug, UploadConfig, UploadEdits, UploadField, UploadFieldClient, UploadFieldClientComponent, UploadFieldClientProps, UploadFieldDescriptionClientComponent, UploadFieldDescriptionServerComponent, UploadFieldDiffClientComponent, UploadFieldDiffServerComponent, UploadFieldErrorClientComponent, UploadFieldErrorServerComponent, UploadFieldLabelClientComponent, UploadFieldLabelServerComponent, UploadFieldManyValidation, UploadFieldServerComponent, UploadFieldServerProps, UploadFieldSingleValidation, UploadFieldValidation, Upsert, UpsertArgs, UntypedUser as User, UserSession, UsernameFieldValidation, Validate, ValidateOptions, ValidationFieldError, ValueWithRelation, VerifyConfig, VersionField, VersionOperations, VersionTab, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, Where, WhereField, Widget, WidgetInstance, WidgetServerProps, WidgetSlug, WidgetWidth, WithSelectFn, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };
|
|
14734
|
+
export { APIError, APIErrorName, Action, AuthenticationError, BasePayload, DEFAULT_ALLOW_HAS_MANY, DEFAULT_HIERARCHY_TREE_LIMIT, DatabaseKVAdapter, DiffMethod, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, EntityType, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, HIERARCHY_DEFAULT_LOCALE, HIERARCHY_SLUG_PATH_FIELD, HIERARCHY_TITLE_PATH_FIELD, InMemoryKVAdapter, InvalidConfiguration, InvalidFieldName, InvalidFieldRelationship, JWTAuthentication, JobCancelledError, Locked, LockedAuth, MissingCollectionLabel, MissingEditorProp, MissingFieldInputOptions, MissingFieldType, MissingFile, NotFound, QueryError, UnauthorizedError, UnverifiedEmail, ValidationError, ValidationErrorName, _internal_jobSystemGlobals, _internal_resetJobSystemGlobals, _internal_safeFetchGlobal, accessOperation, addDataAndFileToRequest, addDefaultsToConfig, addLocalesToRequestFromData, traverseFields$4 as afterChangeTraverseFields, promise as afterReadPromise, traverseFields$3 as afterReadTraverseFields, appendVersionToQueryKey, accountLockFields as baseAccountLockFields, baseAuthFields, baseBlockFields, emailFieldConfig as baseEmailField, baseIDField, sessionsFieldConfig as baseSessionsField, usernameFieldConfig as baseUsernameField, verificationFields as baseVerificationFields, traverseFields$2 as beforeChangeTraverseFields, traverseFields$1 as beforeValidateTraverseFields, buildConfig, buildVersionCollectionFields, buildVersionCompoundIndexes, buildVersionGlobalFields, canAccessAdmin, checkDependencies, checkLoginPermission, combineQueries, commitTransaction, configToJSONSchema, countOperation, countRunnableOrActiveJobsForQueue, createAPIKeyFields, createArrayFromCommaDelineated, createClientBlocks, createClientCollectionConfig, createClientCollectionConfigs, createClientConfig, createClientField, createClientFields, createClientGlobalConfig, createClientGlobalConfigs, createDatabaseAdapter, createDataloaderCacheKey, createFolderField, createLocalReq, createMigration, createOperation, createPayloadRequest, createTagField, createUnauthenticatedClientConfig, databaseKVAdapter, deepCopyObject, deepCopyObjectComplex, deepCopyObjectSimple, deepMergeSimple, deepMergeWithCombinedArrays, deepMergeWithReactComponents, deepMergeWithSourceArrays, initialized as default, defaultBeginTransaction, defaultLoggerOptions, defaultUserCollection, definePlugin, deleteByIDOperation, deleteCollectionVersions, deleteOperation, docAccessOperation$1 as docAccessOperation, docAccessOperation as docAccessOperationGlobal, docHasTimestamps, duplicateOperation, dynamicImport, enforceMaxVersions, entityToJSONSchema, entityToStandaloneJSONSchema, escapeRegExp, executeAccess, executeAuthStrategies, extractAccessFromPermission, extractJWT, fieldsToJSONSchema, findByIDOperation, findMigrationDir, findOneOperation, findOperation, findUp, findUpSync, findVersionByIDOperation$1 as findVersionByIDOperation, findVersionByIDOperation as findVersionByIDOperationGlobal, findVersionsOperation$1 as findVersionsOperation, findVersionsOperation as findVersionsOperationGlobal, flattenAllFields, flattenTopLevelFields, flattenWhereToOperators, forgotPasswordOperation, formatErrors, formatLabels, formatNames, genImportMapIterateFields, generateCookie, generateExpiredPayloadCookie, generateImportMap, generatePayloadCookie, getAccessResults, getAncestors, getBlockSelect, getCollectionIDFieldTypes, getCookieExpiration, getCurrentDate, getDataLoader, getDefaultValue, getDependencies, getFieldByPath, getFieldsToSign, getFileByPath, getHierarchyFieldName, getInitialTreeData, getLatestCollectionVersion, getLatestGlobalVersion, getLocalI18n, getLocalizedPaths, getLoginOptions, getMigrations, getObjectDotNotation, getPayload, getPredefinedMigration, getQueryDraftsSort, getRequestLanguage, handleEndpoints, hasWhereAccessResult, headersWithCors, importHandlerPath, inMemoryKVAdapter, incrementLoginAttempts, initOperation, initTransaction, injectHierarchyButton, isEntityHidden, isPlainObject, isUserMenuSettingsGroup, isValidID, isolateObjectProperty, jobAfterRead, jwtSign, killTransaction, logError, loginOperation, logoutOperation, mapAsync, meOperation, mergeHeaders, migrate, migrate$1 as migrateCLI, migrateDown, migrateRefresh, migrateReset, migrateStatus, migrationTemplate, migrationsCollection, parseCookies, parseDocumentID, parseParams, pathExistsAndIsAccessible, pathExistsAndIsAccessibleSync, readMigrationFiles, refreshOperation, registerBlockInterface, registerFirstUserOperation, reload, resetLoginAttempts, resetPasswordOperation, resolveHierarchyCollections, restoreVersionOperation$1 as restoreVersionOperation, restoreVersionOperation as restoreVersionOperationGlobal, sanitizeConfig, sanitizeFallbackLocale, sanitizeField, sanitizeFields, sanitizeJoinParams, sanitizeLocales, sanitizePopulateParam, sanitizeSelectParam, sanitizeSortParams, saveVersion, serverOnlyAdminConfigProperties, serverOnlyConfigProperties, serverProps, sortableFieldTypes, stripUnselectedFields, toWords, traverseFields, unlockOperation, updateByIDOperation, updateOperation$1 as updateOperation, updateOperation as updateOperationGlobal, validateBlocksFilterOptions, validateQueryPaths, validateSearchParam, validations, verifyEmailOperation, versionDefaults, withNullableJSONSchemaType, writeMigrationIndex };
|
|
14735
|
+
export type { Access, AccessArgs, AccessResult, AdminClient, AdminComponent, AdminDependencies, AdminFunction, AdminView, AdminViewAdapter, AdminViewClientProps, AdminViewComponent, AdminViewConfig, AdminViewKey, AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, AfterErrorHook$1 as AfterErrorHook, AfterErrorHookArgs, AfterErrorResult, AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, AllOperations, AllowList, Ancestor, ApplyDisableErrors, ArrayField, ArrayFieldClient, ArrayFieldClientComponent, ArrayFieldClientProps, ArrayFieldDescriptionClientComponent, ArrayFieldDescriptionServerComponent, ArrayFieldDiffClientComponent, ArrayFieldDiffServerComponent, ArrayFieldErrorClientComponent, ArrayFieldErrorServerComponent, ArrayFieldLabelClientComponent, ArrayFieldLabelServerComponent, ArrayFieldServerComponent, ArrayFieldServerProps, ArrayFieldValidation, Auth, AuthCollection, AuthCollectionSlug, AuthOperations, AuthOperationsFromCollectionSlug, AuthRuntimeFields, AuthStrategy, AuthStrategyFunction, AuthStrategyFunctionArgs, AuthStrategyResult, AuthenticatedUser, BaseDatabaseAdapter, BaseFilter, BaseJob, BaseListFilter, BaseLocalizationConfig, BaseValidateOptions, BaseVersionField, BeforeDocumentControlsClientProps, BeforeDocumentControlsServerProps, BeforeDocumentControlsServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, BeginTransaction, BinScript, BinScriptConfig, Block, BlockJSX, BlockPermissions, BlockRowLabelClientComponent, BlockRowLabelServerComponent, BlockSlug, BlocksField, BlocksFieldClient, BlocksFieldClientComponent, BlocksFieldClientProps, BlocksFieldDescriptionClientComponent, BlocksFieldDescriptionServerComponent, BlocksFieldDiffClientComponent, BlocksFieldDiffServerComponent, BlocksFieldErrorClientComponent, BlocksFieldErrorServerComponent, BlocksFieldLabelClientComponent, BlocksFieldLabelServerComponent, BlocksFieldServerComponent, BlocksFieldServerProps, BlocksFieldValidation, BlocksPermissions, BrowserAutoComplete, BuildFormStateArgs, BuildTableStateArgs, BulkOperationResult, CORSConfig, CheckboxField, CheckboxFieldClient, CheckboxFieldClientComponent, CheckboxFieldClientProps, CheckboxFieldDescriptionClientComponent, CheckboxFieldDescriptionServerComponent, CheckboxFieldDiffClientComponent, CheckboxFieldDiffServerComponent, CheckboxFieldErrorClientComponent, CheckboxFieldErrorServerComponent, CheckboxFieldLabelClientComponent, CheckboxFieldLabelServerComponent, CheckboxFieldServerComponent, CheckboxFieldServerProps, CheckboxFieldValidation, ClientBlock, ClientCollectionConfig, ClientComponentProps, ClientConfig, ClientField, ClientFieldBase, ClientFieldProps, ClientFieldSchemaMap, ClientFieldWithOptionalType, ClientGlobalConfig, DocumentViewClientProps as ClientSideEditViewProps, ClientTab, ClientWidget, CodeField, CodeFieldClient, CodeFieldClientComponent, CodeFieldClientProps, CodeFieldDescriptionClientComponent, CodeFieldDescriptionServerComponent, CodeFieldDiffClientComponent, CodeFieldDiffServerComponent, CodeFieldErrorClientComponent, CodeFieldErrorServerComponent, CodeFieldLabelClientComponent, CodeFieldLabelServerComponent, CodeFieldServerComponent, CodeFieldServerProps, CodeFieldValidation, CollapsedPreferences, CollapsibleField, CollapsibleFieldClient, CollapsibleFieldClientComponent, CollapsibleFieldClientProps, CollapsibleFieldDescriptionClientComponent, CollapsibleFieldDescriptionServerComponent, CollapsibleFieldDiffClientComponent, CollapsibleFieldDiffServerComponent, CollapsibleFieldErrorClientComponent, CollapsibleFieldErrorServerComponent, CollapsibleFieldLabelClientComponent, CollapsibleFieldLabelServerComponent, CollapsibleFieldServerComponent, CollapsibleFieldServerProps, Collection, CollectionAdminCustom, CollectionAdminOptions, AfterChangeHook as CollectionAfterChangeHook, AfterDeleteHook as CollectionAfterDeleteHook, AfterErrorHook as CollectionAfterErrorHook, AfterForgotPasswordHook as CollectionAfterForgotPasswordHook, AfterLoginHook as CollectionAfterLoginHook, AfterLogoutHook as CollectionAfterLogoutHook, AfterMeHook as CollectionAfterMeHook, AfterOperationHook as CollectionAfterOperationHook, AfterReadHook as CollectionAfterReadHook, AfterRefreshHook as CollectionAfterRefreshHook, BeforeChangeHook as CollectionBeforeChangeHook, BeforeDeleteHook as CollectionBeforeDeleteHook, BeforeLoginHook as CollectionBeforeLoginHook, BeforeOperationHook as CollectionBeforeOperationHook, BeforeReadHook as CollectionBeforeReadHook, BeforeValidateHook as CollectionBeforeValidateHook, CollectionConfig, CollectionCustom, MeHook as CollectionMeHook, CollectionPermission, CollectionPreferences, RefreshHook as CollectionRefreshHook, CollectionSlug, Column, ColumnPreference, CommitTransaction, ComponentRenderer, CompoundIndex, ConcurrencyConfig, Condition, ConditionalDateProps, Config, ConfirmPasswordFieldValidation, Connect, CookieOptions$1 as CookieOptions, CookieStore, Count, CountArgs, CountGlobalVersionArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateClientConfigArgs, CreateFolderFieldOptions, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateTagFieldOptions, CreateVersion, CreateVersionArgs, CustomComponent, CustomDocumentViewConfig, CustomPayloadRequestProperties, CustomComponent as CustomPreviewButton, CustomComponent as CustomPublishButton, CustomComponent as CustomSaveButton, CustomComponent as CustomSaveDraftButton, CustomStatus, CustomUpload, CustomVersionParser, DBIdentifierName, DashboardConfig, Data, DataFromCollectionSlug, DataFromGlobalSlug, DataFromWidgetSlug, DatabaseAdapter, DatabaseAdapterResult as DatabaseAdapterObj, DatabaseKVAdapterOptions, DateField, DateFieldClient, DateFieldClientComponent, DateFieldClientProps, DateFieldDescriptionClientComponent, DateFieldDescriptionServerComponent, DateFieldDiffClientComponent, DateFieldDiffServerComponent, DateFieldErrorClientComponent, DateFieldErrorServerComponent, DateFieldLabelClientComponent, DateFieldLabelServerComponent, DateFieldServerComponent, DateFieldServerProps, DateFieldValidation, DayPickerProps, DefaultCellComponentProps, DefaultDocumentIDType, DefaultDocumentViewConfig, DefaultServerCellComponentProps, DefaultServerFunctionArgs, DefaultValue, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Description, DescriptionFunction, Destroy, DevReloadCleanup, DevReloadStrategy, Document, DocumentEvent, DocumentPermissions, DocumentPreferences, DocumentSlots, DocumentSubViewTypes, DocumentTabClientProps, DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabServerProps as DocumentTabProps, DocumentTabServerProps, DocumentTabServerPropsOnly, DocumentViewClientProps, DocumentViewComponent, DocumentViewConfig, DocumentViewServerProps, DocumentViewServerPropsOnly, DraftTransformCollectionWithSelect, DynamicMigrationTemplate, EditConfig, EditConfigWithRoot, EditConfigWithoutRoot, EditMenuItemsClientProps, EditMenuItemsServerProps, EditMenuItemsServerPropsOnly, EditViewComponent, EditViewConfig, EditViewProps, EmailAdapter, EmailField, EmailFieldClient, EmailFieldClientComponent, EmailFieldClientProps, EmailFieldDescriptionClientComponent, EmailFieldDescriptionServerComponent, EmailFieldDiffClientComponent, EmailFieldDiffServerComponent, EmailFieldErrorClientComponent, EmailFieldErrorServerComponent, EmailFieldLabelClientComponent, EmailFieldLabelServerComponent, EmailFieldServerComponent, EmailFieldServerProps, EmailFieldValidation, Endpoint, EntityDescription, EntityDescriptionComponent, EntityDescriptionFunction, EntityPolicies, ErrorResult, FetchAPIFileUploadOptions, Field, FieldAccess, FieldAccessArgs, FieldAffectingData, FieldAffectingDataClient, FieldBase, FieldBaseClient, FieldClientComponent, FieldCustom, FieldDescriptionClientComponent, FieldDescriptionClientProps, FieldDescriptionServerComponent, FieldDescriptionServerProps, FieldDiffClientComponent, FieldDiffClientProps, FieldDiffServerComponent, FieldDiffServerProps, FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, FieldHook, FieldHookArgs, FieldLabelClientComponent, FieldLabelClientProps, FieldLabelServerComponent, FieldLabelServerProps, FieldPaths, FieldPermissions, FieldPosition, FieldPresentationalOnly, FieldPresentationalOnlyClient, FieldRow, FieldSchemaMap, FieldServerComponent, FieldState, FieldTypes, FieldWithMany, FieldWithManyClient, FieldWithMaxDepth, FieldWithMaxDepthClient, FieldWithPath, FieldWithPathClient, FieldWithSubFields, FieldWithSubFieldsClient, FieldsPermissions, FieldsPreferences, FieldsToJSONSchemaArgs, File$1 as File, FileAllowList, FileData, FileSize, FileSizes, FileToSave, FilterOptions, FilterOptionsProps, FilterOptionsResult, Find, FindArgs, FindDistinct, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindOptions, FindVersions, FindVersionsArgs, FlattenedArrayField, FlattenedBlock, FlattenedBlocksField, FlattenedField$1 as FlattenedField, FlattenedGroupField, FlattenedJoinField, FlattenedTabAsField, FocalPoint, FoldersConfig, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FormState, FormStateWithoutComponents, GenerateImageName, GeneratePreviewURL, GenerateSchema, GenerateViewMetadata, GeneratedTypes, GenericDescriptionProps, GenericErrorProps, GenericLabelProps, GetAdminThumbnail, GetInitialTreeDataArgs, GlobalAdminCustom, GlobalAdminOptions, AfterChangeHook$1 as GlobalAfterChangeHook, AfterReadHook$1 as GlobalAfterReadHook, BeforeChangeHook$1 as GlobalBeforeChangeHook, BeforeOperationHook$1 as GlobalBeforeOperationHook, BeforeReadHook$1 as GlobalBeforeReadHook, BeforeValidateHook$1 as GlobalBeforeValidateHook, GlobalConfig, GlobalCustom, GlobalPermission, GlobalSlug, GraphQLExtension, GraphQLInfo, GroupField, GroupFieldClient, GroupFieldClientComponent, GroupFieldClientProps, GroupFieldDescriptionClientComponent, GroupFieldDescriptionServerComponent, GroupFieldDiffClientComponent, GroupFieldDiffServerComponent, GroupFieldErrorClientComponent, GroupFieldErrorServerComponent, GroupFieldLabelClientComponent, GroupFieldLabelServerComponent, GroupFieldServerComponent, GroupFieldServerProps, HiddenFieldProps, HierarchyConfig, HierarchyViewData, HookName, HookOperationType, IDTypeForCollectionSlug, IfAny, ImageSize, ImageUploadFormatOptions, ImageUploadTrimOptions, ImportMap, ImportMapGenerators, IncomingAuthType, Init, InitOptions, InitPageResult, InitReqResult, InitialTreeData, InsideFieldsPreferences, IsAny, JSONField, JSONFieldClient, JSONFieldClientComponent, JSONFieldClientProps, JSONFieldDescriptionClientComponent, JSONFieldDescriptionServerComponent, JSONFieldDiffClientComponent, JSONFieldDiffServerComponent, JSONFieldErrorClientComponent, JSONFieldErrorServerComponent, JSONFieldLabelClientComponent, JSONFieldLabelServerComponent, JSONFieldServerComponent, JSONFieldServerProps, JSONFieldValidation, Job, JobLog, JobTaskStatus, JobsConfig, JoinField, JoinFieldClient, JoinFieldClientComponent, JoinFieldClientProps, JoinFieldDescriptionClientComponent, JoinFieldDescriptionServerComponent, JoinFieldDiffClientComponent, JoinFieldDiffServerComponent, JoinFieldErrorClientComponent, JoinFieldErrorServerComponent, JoinFieldLabelClientComponent, JoinFieldLabelServerComponent, JoinFieldServerComponent, JoinFieldServerProps, JoinParams, JoinQuery, JsonArray, JsonObject, JsonValue, KVAdapter, KVAdapterResult, KVStoreValue, LabelFunction, Labels, LabelsClient, LanguageOptions, LinkAdapterProps, CollectionPreferences as ListPreferences, ListQuery, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlotSharedClientProps, ListViewSlots, LivePreviewConfig, LivePreviewURLType, Locale, LocalizationConfig, LocalizationConfigWithLabels, LocalizationConfigWithNoLabels, LoginResult, LoginWithUsernameOptions, MappedClientComponent, MappedEmptyComponent, MappedServerComponent, MaybePromise, MeOperationResult, MetaConfig, Migration, MigrationData, MigrationTemplateArgs, NamedGroupField, NamedGroupFieldClient, NamedTab, NavGroupPreferences, NavPreferences, NoResultsClientProps, NoResultsServerProps, NoResultsServerPropsOnly, NonPresentationalField, NonPresentationalFieldClient, NumberField, NumberFieldClient, NumberFieldClientComponent, NumberFieldClientProps, NumberFieldDescriptionClientComponent, NumberFieldDescriptionServerComponent, NumberFieldDiffClientComponent, NumberFieldDiffServerComponent, NumberFieldErrorClientComponent, NumberFieldErrorServerComponent, NumberFieldLabelClientComponent, NumberFieldLabelServerComponent, NumberFieldManyValidation, NumberFieldServerComponent, NumberFieldServerProps, NumberFieldSingleValidation, NumberFieldValidation, OGImageConfig, Operation, Operator, Option, OptionLabel, OptionObject, OrderableEndpointBody, PaginatedDistinctDocs, PaginatedDocs, Params, ParsedParams, PasswordFieldValidation, PathToQuery, Payload, PayloadClientComponentProps, PayloadClientReactComponent, PayloadComponent, PayloadComponentProps, EmailAdapter as PayloadEmailAdapter, PayloadHandler, PayloadLogger, PayloadReactComponent, PayloadRequest, PayloadRequestAPI, PayloadServerAction, PayloadServerComponentProps, PayloadServerReactComponent, PayloadTypes, PayloadTypesShape, Permission, Permissions, PickPreserveOptional, Plugin, PluginsMap, PointField, PointFieldClient, PointFieldClientComponent, PointFieldClientProps, PointFieldDescriptionClientComponent, PointFieldDescriptionServerComponent, PointFieldDiffClientComponent, PointFieldDiffServerComponent, PointFieldErrorClientComponent, PointFieldErrorServerComponent, PointFieldLabelClientComponent, PointFieldLabelServerComponent, PointFieldServerComponent, PointFieldServerProps, PointFieldValidation, PolymorphicRelationshipField, PolymorphicRelationshipFieldClient, PopulateType, PreferenceRequest, PreferenceUpdateRequest, PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, ProbedImageSize, PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, QueryDrafts, QueryDraftsArgs, QueryPreset, RadioField, RadioFieldClient, RadioFieldClientComponent, RadioFieldClientProps, RadioFieldDescriptionClientComponent, RadioFieldDescriptionServerComponent, RadioFieldDiffClientComponent, RadioFieldDiffServerComponent, RadioFieldErrorClientComponent, RadioFieldErrorServerComponent, RadioFieldLabelClientComponent, RadioFieldLabelServerComponent, RadioFieldServerComponent, RadioFieldServerProps, RadioFieldValidation, RawParams, RawPayloadComponent, RecentlyViewedItem, RecentlyViewedPreferences, RegisteredPlugins, RelatedDocumentsGrouped, RelationshipField, RelationshipFieldClient, RelationshipFieldClientComponent, RelationshipFieldClientProps, RelationshipFieldDescriptionClientComponent, RelationshipFieldDescriptionServerComponent, RelationshipFieldDiffClientComponent, RelationshipFieldDiffServerComponent, RelationshipFieldErrorClientComponent, RelationshipFieldErrorServerComponent, RelationshipFieldLabelClientComponent, RelationshipFieldLabelServerComponent, RelationshipFieldManyValidation, RelationshipFieldServerComponent, RelationshipFieldServerProps, RelationshipFieldSingleValidation, RelationshipFieldValidation, RelationshipValue, RenderConfigArgs, RenderDocumentVersionsProperties, RenderEntityConfigArgs, RenderFieldConfigArgs, RenderRootConfigArgs, RenderedField, ReplaceAny, RequestContext, RequiredDataFromCollection, RequiredDataFromCollectionSlug, ResolvedComponent, ResolvedFilterOptions, RichTextAdapter, RichTextAdapterProvider, RichTextField, RichTextFieldClient, RichTextFieldClientComponent, RichTextFieldClientProps, RichTextFieldDescriptionClientComponent, RichTextFieldDescriptionServerComponent, RichTextFieldDiffClientComponent, RichTextFieldDiffServerComponent, RichTextFieldErrorClientComponent, RichTextFieldErrorServerComponent, RichTextFieldLabelClientComponent, RichTextFieldLabelServerComponent, RichTextFieldServerComponent, RichTextFieldServerProps, RichTextFieldValidation, RichTextHooks, RollbackTransaction, RootLivePreviewConfig, RouterAdapterComponent, RouterAdapterRouter, Row, RowField, RowFieldClient, RowFieldClientComponent, RowFieldClientProps, RowFieldDescriptionClientComponent, RowFieldDescriptionServerComponent, RowFieldDiffClientComponent, RowFieldDiffServerComponent, RowFieldErrorClientComponent, RowFieldErrorServerComponent, RowFieldLabelClientComponent, RowFieldLabelServerComponent, RowFieldServerComponent, RowFieldServerProps, RowLabel, RowLabelComponent, RunInlineTaskFunction, RunJobAccess, RunJobAccessArgs, RunTaskFunction, RunTaskFunctions, RunningJob, SanitizeFieldArgs, SanitizedBlockPermissions, SanitizedBlocksPermissions, SanitizedCollectionConfig, SanitizedCollectionPermission, SanitizedCompoundIndex, SanitizedConfig, SanitizedDashboardConfig, SanitizedDocumentPermissions, SanitizedFieldPermissions, SanitizedFieldsPermissions, SanitizedGlobalConfig, SanitizedGlobalPermission, SanitizedHierarchyConfig, SanitizedHierarchyRelatedCollection, SanitizedJoins, SanitizedLabelProps, SanitizedLocalizationConfig, SanitizedPermissions, SanitizedUploadConfig, SaveButtonClientProps, SaveButtonServerProps, SaveButtonServerPropsOnly, SaveDraftButtonClientProps, SaveDraftButtonServerProps, SaveDraftButtonServerPropsOnly, SchedulePublish, SchedulePublishTaskInput, SchemaVariant, SelectExcludeType, SelectField, SelectFieldClient, SelectFieldClientComponent, SelectFieldClientProps, SelectFieldDescriptionClientComponent, SelectFieldDescriptionServerComponent, SelectFieldDiffClientComponent, SelectFieldDiffServerComponent, SelectFieldErrorClientComponent, SelectFieldErrorServerComponent, SelectFieldLabelClientComponent, SelectFieldLabelServerComponent, SelectFieldManyValidation, SelectFieldServerComponent, SelectFieldServerProps, SelectFieldSingleValidation, SelectFieldValidation, SelectFn, SelectFnArgs, SelectFnOperation, SelectIncludeType, SelectMode, SelectType, SendEmailOptions, ServerAdapter, ServerComponentProps, ServerFieldBase, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, ServerFunctionMode, ServerOnlyCollectionAdminProperties, ServerOnlyCollectionProperties, ServerOnlyFieldAdminProperties, ServerOnlyFieldProperties, ServerOnlyGlobalAdminProperties, ServerOnlyGlobalProperties, ServerOnlyLivePreviewProperties, ServerOnlyUploadProperties, ServerProps, ServerPropsFromView, DocumentViewServerProps as ServerSideEditViewProps, SharedAdminComponents, SharedEditViewComponents, SharedEntityViews, SharedProps, SharpDependency, SidebarTab, SidebarTabClientProps, SidebarTabServerProps, SidebarTabServerPropsOnly, SingleRelationshipField, SingleRelationshipFieldClient, SingleTaskStatus, SlugField, SlugFieldClient, SlugFieldClientProps, SlugifyServerFunctionArgs, Sort, StaticDescription, StaticLabel, StorageAdapter, StringKeyOf, Tab, TabAsField, TabAsFieldClient, TabsField, TabsFieldClient, TabsFieldClientComponent, TabsFieldClientProps, TabsFieldDescriptionClientComponent, TabsFieldDescriptionServerComponent, TabsFieldDiffClientComponent, TabsFieldDiffServerComponent, TabsFieldErrorClientComponent, TabsFieldErrorServerComponent, TabsFieldLabelClientComponent, TabsFieldLabelServerComponent, TabsFieldServerComponent, TabsFieldServerProps, TabsPreferences, TagsConfig, TaskConfig, TaskHandler, TaskHandlerArgs, TaskHandlerResult, TaskHandlerResults, TaskInput, TaskOutput, TaskType, TextField, TextFieldClient, TextFieldClientComponent, TextFieldClientProps, TextFieldDescriptionClientComponent, TextFieldDescriptionServerComponent, TextFieldDiffClientComponent, TextFieldDiffServerComponent, TextFieldErrorClientComponent, TextFieldErrorServerComponent, TextFieldLabelClientComponent, TextFieldLabelServerComponent, TextFieldManyValidation, TextFieldServerComponent, TextFieldServerProps, TextFieldSingleValidation, TextFieldValidation, TextareaField, TextareaFieldClient, TextareaFieldClientComponent, TextareaFieldClientProps, TextareaFieldDescriptionClientComponent, TextareaFieldDescriptionServerComponent, TextareaFieldDiffClientComponent, TextareaFieldDiffServerComponent, TextareaFieldErrorClientComponent, TextareaFieldErrorServerComponent, TextareaFieldLabelClientComponent, TextareaFieldLabelServerComponent, TextareaFieldServerComponent, TextareaFieldServerProps, TextareaFieldValidation, TimePickerProps, Timezone, TimezonesConfig, Transaction, TransformCollectionWithSelect, TransformDataWithSelect, TransformGlobalWithSelect, TraverseFieldsCallback, TypeWithID, TypeWithTimestamps, TypeWithVersion, TypedAuthOperations, TypedBlock, TypedCollection, TypedCollectionJoins, TypedCollectionSelect, TypedFallbackLocale, TypedGlobal, TypedGlobalSelect, TypedJobs, TypedLocale, TypedUploadCollection, TypedWidget, UIField, UIFieldClient, UIFieldClientComponent, UIFieldClientProps, UIFieldDiffClientComponent, UIFieldDiffServerComponent, UIFieldServerComponent, UIFieldServerProps, UnauthenticatedClientConfig, UnnamedGroupField, UnnamedGroupFieldClient, UnnamedTab, UnpublishButtonClientProps, UnpublishButtonServerProps, UnpublishButtonServerPropsOnly, UntypedPayloadTypes, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateJobs, UpdateJobsArgs, UpdateMany, UpdateManyArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, UploadCollectionSlug, UploadConfig, UploadEdits, UploadField, UploadFieldClient, UploadFieldClientComponent, UploadFieldClientProps, UploadFieldDescriptionClientComponent, UploadFieldDescriptionServerComponent, UploadFieldDiffClientComponent, UploadFieldDiffServerComponent, UploadFieldErrorClientComponent, UploadFieldErrorServerComponent, UploadFieldLabelClientComponent, UploadFieldLabelServerComponent, UploadFieldManyValidation, UploadFieldServerComponent, UploadFieldServerProps, UploadFieldSingleValidation, UploadFieldValidation, UploadFilePreviewClientProps, Upsert, UpsertArgs, User, UserMenuSettingsGroup, UserMenuSettingsItem, UserSession, UsernameFieldValidation, Validate, ValidateOptions, ValidationFieldError, ValueWithRelation, VerifyConfig, VersionField, VersionOperations, VersionTab, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, Where, WhereField, Widget, WidgetInstance, WidgetServerProps, WidgetSlug, WidgetWidth, WithSelectFn, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };
|