payload 4.0.0-internal.5f0cd13 → 4.0.0-internal.656159a
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 +2 -2
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- 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 +3 -0
- package/dist/admin/adapters/index.d.ts.map +1 -1
- package/dist/admin/adapters/index.js.map +1 -1
- 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 +8 -0
- package/dist/admin/adapters/router.d.ts.map +1 -1
- package/dist/admin/adapters/router.js.map +1 -1
- 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/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/list.d.ts +5 -0
- 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/ensureUsernameOrEmail.d.ts.map +1 -1
- package/dist/auth/executeAccess.d.ts.map +1 -1
- package/dist/auth/executeAuthStrategies.d.ts.map +1 -1
- package/dist/auth/extractAccessFromPermission.d.ts.map +1 -1
- package/dist/auth/extractJWT.d.ts +1 -1
- package/dist/auth/extractJWT.d.ts.map +1 -1
- package/dist/auth/getAuthFields.d.ts.map +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/getFieldsToSign.d.ts.map +1 -1
- package/dist/auth/getLoginOptions.d.ts +1 -1
- package/dist/auth/getLoginOptions.d.ts.map +1 -1
- package/dist/auth/isUserLocked.d.ts.map +1 -1
- package/dist/auth/jwt.d.ts.map +1 -1
- package/dist/auth/operations/access.d.ts.map +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/forgotPassword.d.ts.map +1 -1
- package/dist/auth/operations/init.d.ts.map +1 -1
- package/dist/auth/operations/local/auth.d.ts.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/logout.d.ts.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/registerFirstUser.d.ts.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/operations/unlock.d.ts.map +1 -1
- package/dist/auth/operations/verifyEmail.d.ts.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.map +1 -1
- package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
- package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.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/strategies/local/register.d.ts.map +1 -1
- package/dist/auth/strategies/local/resetLoginAttempts.d.ts.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/utilities/getFromImportMap.d.ts.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 +4 -0
- 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/bin/migrate.d.ts.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.map +1 -1
- package/dist/collections/config/sanitize.js +1 -11
- package/dist/collections/config/sanitize.js.map +1 -1
- package/dist/collections/config/sanitizeCompoundIndexes.d.ts.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/config/useAsTitle.d.ts.map +1 -1
- package/dist/collections/dataloader.d.ts +1 -1
- package/dist/collections/dataloader.d.ts.map +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/countVersions.d.ts.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/deleteByID.d.ts.map +1 -1
- package/dist/collections/operations/duplicate.d.ts.map +1 -1
- package/dist/collections/operations/find.d.ts.map +1 -1
- package/dist/collections/operations/findByID.d.ts.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/findVersions.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/sanitizeSortQuery.d.ts.map +1 -1
- 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/client.d.ts +2 -2
- package/dist/config/client.d.ts.map +1 -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 +137 -13
- package/dist/config/sanitize.js.map +1 -1
- package/dist/config/types.d.ts +58 -19
- 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/combineQueries.d.ts.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/findMigrationDir.d.ts.map +1 -1
- package/dist/database/migrations/getPredefinedMigration.d.ts.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/migrations/readMigrationFiles.d.ts.map +1 -1
- package/dist/database/migrations/writeMigrationIndex.d.ts.map +1 -1
- package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
- package/dist/database/sanitizeWhereQuery.d.ts.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/duplicateDocument/index.d.ts.map +1 -1
- package/dist/email/getStringifiedToAddress.d.ts.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 +23 -2
- package/dist/exports/shared.d.ts.map +1 -1
- package/dist/exports/shared.js +22 -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 +13 -13
- 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 +40 -4
- package/dist/fields/config/sanitize.js.map +1 -1
- package/dist/fields/config/sanitizeJoinField.d.ts.map +1 -1
- package/dist/fields/config/types.d.ts +53 -31
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js.map +1 -1
- package/dist/fields/getDefaultValue.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/index.d.ts.map +1 -1
- package/dist/fields/hooks/afterChange/promise.d.ts.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/afterChange/traverseFields.d.ts.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/afterRead/relationshipPopulationPromise.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/virtualFieldPopulationPromise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/index.d.ts.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/beforeChange/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/beforeDuplicate/index.d.ts.map +1 -1
- package/dist/fields/hooks/beforeDuplicate/promise.d.ts.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/beforeDuplicate/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/index.d.ts.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/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
- package/dist/fields/isFieldDisabled.d.ts.map +1 -1
- package/dist/fields/mergeBaseFields.d.ts.map +1 -1
- package/dist/fields/setDefaultBeforeDuplicate.d.ts.map +1 -1
- 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/client.d.ts.map +1 -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/countGlobalVersions.d.ts.map +1 -1
- package/dist/globals/operations/docAccess.d.ts.map +1 -1
- package/dist/globals/operations/findOne.d.ts.map +1 -1
- package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/findVersions.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/addHierarchyToCollection.d.ts.map +1 -1
- package/dist/hierarchy/buildParentField.d.ts.map +1 -1
- package/dist/hierarchy/constants.d.ts.map +1 -1
- package/dist/hierarchy/getInitialTreeData.d.ts.map +1 -1
- package/dist/hierarchy/hooks/collectionAfterDelete.d.ts.map +1 -1
- package/dist/hierarchy/hooks/collectionAfterRead.d.ts.map +1 -1
- package/dist/hierarchy/hooks/collectionBeforeChange.d.ts.map +1 -1
- package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts.map +1 -1
- package/dist/hierarchy/hooks/collectionBeforeOperation.d.ts.map +1 -1
- package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts.map +1 -1
- package/dist/hierarchy/injectHierarchyButton.d.ts.map +1 -1
- package/dist/hierarchy/resolveHierarchyCollections.d.ts.map +1 -1
- package/dist/hierarchy/sanitizeHierarchyCollection.d.ts.map +1 -1
- package/dist/index.bundled.d.ts +608 -378
- package/dist/index.d.ts +79 -34
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +54 -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/deleteUserPreferences.d.ts.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/access.d.ts.map +1 -1
- package/dist/query-presets/config.d.ts.map +1 -1
- package/dist/query-presets/config.js +75 -35
- 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 +2 -1
- 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.js +2 -2
- 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/endpoints/run.d.ts.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/handleSchedules/getQueuesWithSchedules.d.ts.map +1 -1
- package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
- package/dist/queues/operations/runJobs/runJSONJob/index.d.ts.map +1 -1
- package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.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/operations/runJobs/runJob/index.d.ts.map +1 -1
- package/dist/queues/utilities/getCurrentDate.d.ts.map +1 -1
- package/dist/queues/utilities/getJobTaskStatus.d.ts.map +1 -1
- package/dist/translations/getLocalI18n.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 +8 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/uploads/checkFileAccess.d.ts.map +1 -1
- package/dist/uploads/checkFileRestrictions.d.ts.map +1 -1
- package/dist/uploads/cropImage.d.ts.map +1 -1
- package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
- package/dist/uploads/fetchAPI-multipart/isEligibleRequest.d.ts.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/fetchAPI-multipart/processNested.d.ts.map +1 -1
- package/dist/uploads/fetchAPI-multipart/utilities.d.ts.map +1 -1
- package/dist/uploads/fileExists.d.ts.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/getExternalFile.d.ts.map +1 -1
- package/dist/uploads/getFileByPath.d.ts +1 -1
- package/dist/uploads/getFileByPath.d.ts.map +1 -1
- package/dist/uploads/getFileTypeFallback.d.ts.map +1 -1
- package/dist/uploads/getSafeFilename.d.ts.map +1 -1
- package/dist/uploads/image-resizing/createImageSize.d.ts.map +1 -1
- package/dist/uploads/image-resizing/generateImageSizeFilename.d.ts.map +1 -1
- package/dist/uploads/image-resizing/getImageResizeAction.d.ts +1 -1
- package/dist/uploads/image-resizing/getImageResizeAction.d.ts.map +1 -1
- package/dist/uploads/image-resizing/parseFilename.d.ts.map +1 -1
- package/dist/uploads/image-resizing/sanitizeResizeConfig.d.ts.map +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/mimeTypeValidator.d.ts.map +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/saveBufferToFile.d.ts.map +1 -1
- package/dist/uploads/tempFile.d.ts.map +1 -1
- package/dist/uploads/types.d.ts +21 -0
- package/dist/uploads/types.d.ts.map +1 -1
- package/dist/uploads/types.js.map +1 -1
- package/dist/uploads/uploadFiles.d.ts.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/addLocalesToRequest.d.ts.map +1 -1
- package/dist/utilities/addSelectGenericsToGeneretedTypes.d.ts.map +1 -1
- package/dist/utilities/appendDateTimezoneSelectFields.d.ts.map +1 -1
- package/dist/utilities/appendDateTimezoneSelectFields.js +2 -2
- package/dist/utilities/appendDateTimezoneSelectFields.js.map +1 -1
- package/dist/utilities/appendNonTrashedFilter.d.ts.map +1 -1
- package/dist/utilities/appendUploadSelectFields.d.ts.map +1 -1
- package/dist/utilities/canAccessAdmin.d.ts.map +1 -1
- package/dist/utilities/checkDocumentLockStatus.d.ts.map +1 -1
- package/dist/utilities/configToJSONSchema.d.ts +36 -2
- package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
- package/dist/utilities/configToJSONSchema.js +204 -84
- package/dist/utilities/configToJSONSchema.js.map +1 -1
- package/dist/utilities/configToJSONSchema.spec.js +571 -29
- 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/dependencies/resolveFrom.d.ts.map +1 -1
- package/dist/utilities/dynamicImport.js +1 -1
- package/dist/utilities/dynamicImport.js.map +1 -1
- package/dist/utilities/escapeRegExp.d.ts.map +1 -1
- package/dist/utilities/extractID.d.ts.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/formatAdminURL.d.ts.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/formatLabels.d.ts.map +1 -1
- package/dist/utilities/getBestFitFromSizes.d.ts.map +1 -1
- package/dist/utilities/getBlockSelect.d.ts.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/getFieldPermissions.d.ts.map +1 -1
- package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
- package/dist/utilities/getRequestEntity.d.ts.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/getRequestOrigin.d.ts.map +1 -1
- package/dist/utilities/getSafeRedirect.d.ts.map +1 -1
- package/dist/utilities/getSelectMode.d.ts.map +1 -1
- package/dist/utilities/getSiblingData.d.ts.map +1 -1
- package/dist/utilities/getTranslatedLabel.d.ts.map +1 -1
- package/dist/utilities/getVersionsConfig.d.ts +1 -1
- package/dist/utilities/getVersionsConfig.d.ts.map +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 -3
- package/dist/utilities/handleEndpoints.js.map +1 -1
- package/dist/utilities/headersWithCors.d.ts.map +1 -1
- package/dist/utilities/isEntityHidden.d.ts +2 -2
- package/dist/utilities/isEntityHidden.d.ts.map +1 -1
- 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/isValidID.d.ts.map +1 -1
- package/dist/utilities/logError.d.ts.map +1 -1
- package/dist/utilities/logger.d.ts +1 -1
- package/dist/utilities/logger.d.ts.map +1 -1
- package/dist/utilities/mergeHeaders.d.ts.map +1 -1
- package/dist/utilities/mergeListSearchAndWhere.d.ts.map +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/optionsAreEqual.d.ts.map +1 -1
- package/dist/utilities/parseBooleanString.d.ts.map +1 -1
- package/dist/utilities/parseCookies.d.ts +1 -1
- package/dist/utilities/parseCookies.d.ts.map +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/profiling.d.ts.map +1 -1
- package/dist/utilities/reduceFieldsToValues.d.ts.map +1 -1
- package/dist/utilities/resolveSelect.d.ts.map +1 -1
- package/dist/utilities/routeError.d.ts.map +1 -1
- package/dist/utilities/sanitizeFallbackLocale.d.ts.map +1 -1
- package/dist/utilities/sanitizeInternalFields.d.ts.map +1 -1
- package/dist/utilities/sanitizeJoinParams.d.ts.map +1 -1
- package/dist/utilities/sanitizePopulateParam.d.ts.map +1 -1
- package/dist/utilities/sanitizeSelect.d.ts.map +1 -1
- package/dist/utilities/sanitizeSelectParam.d.ts.map +1 -1
- package/dist/utilities/sanitizeSortParams.d.ts.map +1 -1
- package/dist/utilities/setsAreEqual.d.ts.map +1 -1
- package/dist/utilities/slugify.d.ts.map +1 -1
- package/dist/utilities/stripUnselectedFields.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/telemetry/oneWayHash.d.ts.map +1 -1
- package/dist/utilities/timestamp.d.ts.map +1 -1
- package/dist/utilities/toKebabCase.d.ts.map +1 -1
- package/dist/utilities/transformColumnPreferences.d.ts.map +1 -1
- package/dist/utilities/transformColumnPreferences.js +4 -2
- package/dist/utilities/transformColumnPreferences.js.map +1 -1
- package/dist/utilities/transformWhereQuery.d.ts.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/utilities/unflatten.d.ts.map +1 -1
- package/dist/utilities/validateMimeType.d.ts.map +1 -1
- package/dist/utilities/validateTimezones.d.ts.map +1 -1
- package/dist/utilities/validateWhereQuery.d.ts.map +1 -1
- package/dist/utilities/wordBoundariesRegex.d.ts.map +1 -1
- package/dist/utilities/wrapInternalEndpoints.d.ts.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/buildVersionCompoundIndexes.d.ts.map +1 -1
- package/dist/versions/defaults.d.ts.map +1 -1
- package/dist/versions/deleteCollectionVersions.d.ts.map +1 -1
- package/dist/versions/deleteScheduledPublishJobs.d.ts.map +1 -1
- package/dist/versions/drafts/appendVersionToQueryKey.d.ts.map +1 -1
- package/dist/versions/drafts/getQueryDraftsSelect.d.ts.map +1 -1
- package/dist/versions/drafts/getQueryDraftsSort.d.ts.map +1 -1
- package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
- package/dist/versions/enforceMaxVersions.d.ts.map +1 -1
- package/dist/versions/getLatestCollectionVersion.d.ts.map +1 -1
- package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
- package/dist/versions/migrations/localizeStatus/shared.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 +9 -6
- 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:createUser" | "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" | "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" | "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:createNew" | "general:noResults" | "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:checked" | "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:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:custom" | "general:dark" | "general:decrement" | "general:delete" | "general:deleted" | "general:deletedAgo" | "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:dragToReorder" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editColumns" | "general:editedSince" | "general:editing" | "general:editingTakenOver" | "general:editLabel" | "general:email" | "general:emailAddress" | "general:emptyTrash" | "general:emptyTrashLabel" | "general:enhancedContrastMode" | "general:enterANumber" | "general:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:expand" | "general:export" | "general:fallbackToDefaultLocale" | "general:false" | "general:field" | "general:filter" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:hideSidebar" | "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: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:none" | "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:overwriteExistingData" | "general:pageNotFound" | "general:password" | "general:pasteField" | "general:pasteRow" | "general:payloadSettings" | "general:permanentlyDelete" | "general:permanentlyDeletedCountSuccessfully" | "general:perPage" | "general:perPageLabel" | "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:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:showAllLabel" | "general:shownInTable" | "general:showSidebar" | "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: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: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: {
|
|
@@ -42,6 +41,7 @@ declare const enTranslations: {
|
|
|
42
41
|
emailOrUsername: string;
|
|
43
42
|
emailSent: string;
|
|
44
43
|
emailVerified: string;
|
|
44
|
+
emailVerifiedRedirecting: string;
|
|
45
45
|
enableAPIKey: string;
|
|
46
46
|
failedToUnlock: string;
|
|
47
47
|
forceUnlock: string;
|
|
@@ -71,6 +71,7 @@ declare const enTranslations: {
|
|
|
71
71
|
newAccountCreated: string;
|
|
72
72
|
newAPIKeyGenerated: string;
|
|
73
73
|
newPassword: string;
|
|
74
|
+
notRedirected: string;
|
|
74
75
|
passed: string;
|
|
75
76
|
passwordResetSuccessfully: string;
|
|
76
77
|
resetPassword: string;
|
|
@@ -83,6 +84,7 @@ declare const enTranslations: {
|
|
|
83
84
|
tokenRefreshSuccessful: string;
|
|
84
85
|
unableToVerify: string;
|
|
85
86
|
username: string;
|
|
87
|
+
verificationFailedRequestNew: string;
|
|
86
88
|
verified: string;
|
|
87
89
|
verifiedSuccessfully: string;
|
|
88
90
|
verify: string;
|
|
@@ -120,6 +122,22 @@ declare const enTranslations: {
|
|
|
120
122
|
noItems: string;
|
|
121
123
|
resetLayout: string;
|
|
122
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;
|
|
123
141
|
};
|
|
124
142
|
error: {
|
|
125
143
|
accountAlreadyActivated: string;
|
|
@@ -184,6 +202,7 @@ declare const enTranslations: {
|
|
|
184
202
|
addRelationship: string;
|
|
185
203
|
addUpload: string;
|
|
186
204
|
block: string;
|
|
205
|
+
blockName: string;
|
|
187
206
|
blocks: string;
|
|
188
207
|
blockType: string;
|
|
189
208
|
chooseBetweenCustomTextOrDocument: string;
|
|
@@ -239,6 +258,7 @@ declare const enTranslations: {
|
|
|
239
258
|
aboutToTrash: string;
|
|
240
259
|
aboutToTrashCount: string;
|
|
241
260
|
accepts: string;
|
|
261
|
+
access: string;
|
|
242
262
|
addBelow: string;
|
|
243
263
|
addFilter: string;
|
|
244
264
|
adminTheme: string;
|
|
@@ -250,6 +270,7 @@ declare const enTranslations: {
|
|
|
250
270
|
anotherUserTakenOver: string;
|
|
251
271
|
applyChanges: string;
|
|
252
272
|
ascending: string;
|
|
273
|
+
auto: string;
|
|
253
274
|
automatic: string;
|
|
254
275
|
backToDashboard: string;
|
|
255
276
|
by: string;
|
|
@@ -397,6 +418,7 @@ declare const enTranslations: {
|
|
|
397
418
|
openInNewWindow: string;
|
|
398
419
|
or: string;
|
|
399
420
|
order: string;
|
|
421
|
+
original: string;
|
|
400
422
|
overwriteExistingData: string;
|
|
401
423
|
pageNotFound: string;
|
|
402
424
|
password: string;
|
|
@@ -407,6 +429,7 @@ declare const enTranslations: {
|
|
|
407
429
|
permanentlyDeletedCountSuccessfully: string;
|
|
408
430
|
perPage: string;
|
|
409
431
|
perPageLabel: string;
|
|
432
|
+
presets: string;
|
|
410
433
|
previous: string;
|
|
411
434
|
reindex: string;
|
|
412
435
|
reindexingAll: string;
|
|
@@ -436,6 +459,7 @@ declare const enTranslations: {
|
|
|
436
459
|
selectedCount: string;
|
|
437
460
|
selectLabel: string;
|
|
438
461
|
selectValue: string;
|
|
462
|
+
settings: string;
|
|
439
463
|
showAllLabel: string;
|
|
440
464
|
shownInTable: string;
|
|
441
465
|
showSidebar: string;
|
|
@@ -451,6 +475,7 @@ declare const enTranslations: {
|
|
|
451
475
|
successfullyDuplicated: string;
|
|
452
476
|
successfullyReindexed: string;
|
|
453
477
|
takeOver: string;
|
|
478
|
+
theme: string;
|
|
454
479
|
thisLanguage: string;
|
|
455
480
|
time: string;
|
|
456
481
|
timezone: string;
|
|
@@ -484,6 +509,7 @@ declare const enTranslations: {
|
|
|
484
509
|
viewing: string;
|
|
485
510
|
viewReadOnly: string;
|
|
486
511
|
welcome: string;
|
|
512
|
+
where: string;
|
|
487
513
|
yes: string;
|
|
488
514
|
};
|
|
489
515
|
hierarchy: {
|
|
@@ -539,12 +565,16 @@ declare const enTranslations: {
|
|
|
539
565
|
fileToUpload: string;
|
|
540
566
|
focalPoint: string;
|
|
541
567
|
focalPointDescription: string;
|
|
568
|
+
fromURL: string;
|
|
542
569
|
height: string;
|
|
543
570
|
lessInfo: string;
|
|
571
|
+
linkToFile: string;
|
|
544
572
|
moreInfo: string;
|
|
545
573
|
noFile: string;
|
|
546
574
|
pasteURL: string;
|
|
547
575
|
previewSizes: string;
|
|
576
|
+
renameFile: string;
|
|
577
|
+
replaceFile: string;
|
|
548
578
|
selectCollectionToBrowse: string;
|
|
549
579
|
selectFile: string;
|
|
550
580
|
setCropArea: string;
|
|
@@ -685,11 +715,14 @@ type NestedKeysStripped<T> = T extends object ? {
|
|
|
685
715
|
* Default nested translations object
|
|
686
716
|
*/
|
|
687
717
|
type DefaultTranslationsObject = typeof enTranslations;
|
|
718
|
+
interface CustomTranslationKeys {
|
|
719
|
+
}
|
|
720
|
+
type CustomTranslationKey = CustomTranslationKeys[keyof CustomTranslationKeys] & string;
|
|
688
721
|
/**
|
|
689
722
|
* All translation keys sanitized. E.g. 'general:aboutToDeleteCount'
|
|
690
723
|
*/
|
|
691
|
-
type DefaultTranslationKeys = NestedKeysStripped<DefaultTranslationsObject>;
|
|
692
|
-
type ClientTranslationKeys<TExtraProps = (typeof clientTranslationKeys)[number]> = TExtraProps;
|
|
724
|
+
type DefaultTranslationKeys = CustomTranslationKey | NestedKeysStripped<DefaultTranslationsObject>;
|
|
725
|
+
type ClientTranslationKeys<TExtraProps = (typeof clientTranslationKeys)[number] | CustomTranslationKey> = TExtraProps;
|
|
693
726
|
type ClientTranslationsObject = GenericTranslationsObject;
|
|
694
727
|
type TFunction<TTranslationKeys = DefaultTranslationKeys> = (key: TTranslationKeys, options?: Record<string, any>) => string;
|
|
695
728
|
type I18n<TTranslations = DefaultTranslationsObject, TTranslationKeys = DefaultTranslationKeys> = {
|
|
@@ -800,6 +833,20 @@ type ServerAdapter = {
|
|
|
800
833
|
unauthorized: () => never;
|
|
801
834
|
};
|
|
802
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
|
+
|
|
803
850
|
/** @deprecated Use `instanceof APIError` instead of name comparison. */
|
|
804
851
|
declare const APIErrorName = "APIError";
|
|
805
852
|
declare class ExtendableError<TData extends object = {
|
|
@@ -834,6 +881,7 @@ type ValidationFieldError = {
|
|
|
834
881
|
label?: LabelFunction | StaticLabel;
|
|
835
882
|
message: string;
|
|
836
883
|
path: string;
|
|
884
|
+
tableName?: string;
|
|
837
885
|
};
|
|
838
886
|
declare class ValidationError extends APIError<{
|
|
839
887
|
collection?: string;
|
|
@@ -940,28 +988,35 @@ type SanitizedPermissions = {
|
|
|
940
988
|
[globalSlug: string]: SanitizedGlobalPermission;
|
|
941
989
|
};
|
|
942
990
|
};
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
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;
|
|
949
1006
|
};
|
|
950
1007
|
/**
|
|
951
|
-
*
|
|
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
|
|
952
1011
|
*/
|
|
953
|
-
type UntypedUser = {
|
|
954
|
-
[key: string]: any;
|
|
955
|
-
} & BaseUser;
|
|
956
1012
|
/**
|
|
957
|
-
*
|
|
958
|
-
*
|
|
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.
|
|
959
1016
|
*/
|
|
960
|
-
type
|
|
961
|
-
[key: string]: any;
|
|
962
|
-
} & BaseUser;
|
|
1017
|
+
type AuthenticatedUser = AuthRuntimeFields & User;
|
|
963
1018
|
type UserSession = {
|
|
964
|
-
createdAt
|
|
1019
|
+
createdAt?: Date | null | string;
|
|
965
1020
|
expiresAt: Date | string;
|
|
966
1021
|
id: string;
|
|
967
1022
|
};
|
|
@@ -1000,10 +1055,7 @@ type AuthStrategyFunctionArgs = {
|
|
|
1000
1055
|
};
|
|
1001
1056
|
type AuthStrategyResult = {
|
|
1002
1057
|
responseHeaders?: Headers;
|
|
1003
|
-
user:
|
|
1004
|
-
_strategy?: string;
|
|
1005
|
-
collection?: string;
|
|
1006
|
-
} & TypedUser) | null;
|
|
1058
|
+
user: AuthenticatedUser | null;
|
|
1007
1059
|
};
|
|
1008
1060
|
type AuthStrategyFunction = (args: AuthStrategyFunctionArgs) => AuthStrategyResult | Promise<AuthStrategyResult>;
|
|
1009
1061
|
type AuthStrategy = {
|
|
@@ -1157,6 +1209,21 @@ type CollectionPreferences = {
|
|
|
1157
1209
|
preset?: DefaultDocumentIDType;
|
|
1158
1210
|
sort?: string;
|
|
1159
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
|
+
};
|
|
1160
1227
|
|
|
1161
1228
|
type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
|
|
1162
1229
|
type ClientComponentProps = {
|
|
@@ -1202,11 +1269,9 @@ type FieldPaths = {
|
|
|
1202
1269
|
* Nested fields will have a path that includes the parent field names
|
|
1203
1270
|
* if they are nested within a group, array, block or named tab.
|
|
1204
1271
|
*
|
|
1205
|
-
* Collapsibles and unnamed tabs will have arbitrary paths
|
|
1272
|
+
* Collapsibles, rows and unnamed tabs will have arbitrary paths
|
|
1206
1273
|
* that look like _index-0, _index-1, etc.
|
|
1207
1274
|
*
|
|
1208
|
-
* Row fields will not have a path.
|
|
1209
|
-
*
|
|
1210
1275
|
* @example 'parentGroupField.childTextField'
|
|
1211
1276
|
*
|
|
1212
1277
|
* @default field.name
|
|
@@ -1237,9 +1302,15 @@ type ServerComponentProps = {
|
|
|
1237
1302
|
payload: Payload;
|
|
1238
1303
|
permissions: SanitizedFieldPermissions;
|
|
1239
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;
|
|
1240
1311
|
req: PayloadRequest;
|
|
1241
1312
|
siblingData: Data;
|
|
1242
|
-
user:
|
|
1313
|
+
user: User;
|
|
1243
1314
|
value?: unknown;
|
|
1244
1315
|
};
|
|
1245
1316
|
type ClientFieldBase<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
|
|
@@ -1324,15 +1395,6 @@ type IncomingDrafts = {
|
|
|
1324
1395
|
* To enable, set to true or pass an object with options.
|
|
1325
1396
|
*/
|
|
1326
1397
|
autosave?: Autosave | boolean;
|
|
1327
|
-
/**
|
|
1328
|
-
* Localizes the status field.
|
|
1329
|
-
*
|
|
1330
|
-
* Only effective if the experimental `experimental.localizeStatus` is enabled.
|
|
1331
|
-
*
|
|
1332
|
-
* @experimental
|
|
1333
|
-
* @default false
|
|
1334
|
-
*/
|
|
1335
|
-
localizeStatus?: boolean;
|
|
1336
1398
|
/**
|
|
1337
1399
|
* Allow for editors to schedule publish / unpublish events in the future.
|
|
1338
1400
|
*/
|
|
@@ -1351,12 +1413,8 @@ type SanitizedDrafts = {
|
|
|
1351
1413
|
*/
|
|
1352
1414
|
autosave: Autosave | false;
|
|
1353
1415
|
/**
|
|
1354
|
-
*
|
|
1355
|
-
*
|
|
1356
|
-
* Only effective if the experimental `experimental.localizeStatus` is enabled.
|
|
1357
|
-
*
|
|
1358
|
-
* @experimental
|
|
1359
|
-
* @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.
|
|
1360
1418
|
*/
|
|
1361
1419
|
localizeStatus?: boolean;
|
|
1362
1420
|
/**
|
|
@@ -1539,11 +1597,7 @@ interface BaseDatabaseAdapter {
|
|
|
1539
1597
|
* A key-value store of all sessions open (used for transactions)
|
|
1540
1598
|
*/
|
|
1541
1599
|
sessions?: {
|
|
1542
|
-
[id: string]:
|
|
1543
|
-
db: unknown;
|
|
1544
|
-
reject: () => Promise<void>;
|
|
1545
|
-
resolve: () => Promise<void>;
|
|
1546
|
-
};
|
|
1600
|
+
[id: string]: unknown;
|
|
1547
1601
|
};
|
|
1548
1602
|
/**
|
|
1549
1603
|
* Updates a global that exists. If the global doesn't exist yet, this will not work - you should use `createGlobal` instead.
|
|
@@ -2262,6 +2316,102 @@ type Globals = {
|
|
|
2262
2316
|
} | false;
|
|
2263
2317
|
};
|
|
2264
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
|
+
|
|
2265
2415
|
type DisabledOptions = {
|
|
2266
2416
|
bulkEdit?: boolean;
|
|
2267
2417
|
column?: boolean;
|
|
@@ -2273,6 +2423,7 @@ type DisabledOptions = {
|
|
|
2273
2423
|
type TextFieldValidation = Validate<string, unknown, unknown, TextField>;
|
|
2274
2424
|
type TextFieldManyValidation = Validate<string[], unknown, unknown, TextField>;
|
|
2275
2425
|
type TextFieldSingleValidation = Validate<string, unknown, unknown, TextField>;
|
|
2426
|
+
type SlugFieldValidation = Validate<string, unknown, unknown, SlugField>;
|
|
2276
2427
|
type PasswordFieldValidation = Validate<string, unknown, unknown, TextField>;
|
|
2277
2428
|
type ConfirmPasswordFieldValidation = Validate<string, unknown, {
|
|
2278
2429
|
password: string;
|
|
@@ -2339,6 +2490,7 @@ type PointFieldValidation = Validate<[
|
|
|
2339
2490
|
* These can be re-used in custom validations
|
|
2340
2491
|
*/
|
|
2341
2492
|
declare const validations: {
|
|
2493
|
+
slug: SlugFieldValidation;
|
|
2342
2494
|
array: ArrayFieldValidation;
|
|
2343
2495
|
blocks: BlocksFieldValidation;
|
|
2344
2496
|
checkbox: CheckboxFieldValidation;
|
|
@@ -2359,6 +2511,7 @@ declare const validations: {
|
|
|
2359
2511
|
upload: UploadFieldValidation;
|
|
2360
2512
|
};
|
|
2361
2513
|
|
|
2514
|
+
type BrowserAutoComplete = Extract<React$1.InputHTMLAttributes<HTMLInputElement>['autoComplete'], string>;
|
|
2362
2515
|
type FieldHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = {
|
|
2363
2516
|
/**
|
|
2364
2517
|
* The data of the nearest parent block. If the field is not within a block, `blockData` will be equal to `undefined`.
|
|
@@ -2427,7 +2580,7 @@ type FieldHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData =
|
|
|
2427
2580
|
value?: TValue;
|
|
2428
2581
|
};
|
|
2429
2582
|
type FieldHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: FieldHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
|
|
2430
|
-
type
|
|
2583
|
+
type SharedFieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = {
|
|
2431
2584
|
/**
|
|
2432
2585
|
* The data of the nearest parent block. If the field is not within a block, `blockData` will be equal to `undefined`.
|
|
2433
2586
|
*/
|
|
@@ -2451,6 +2604,13 @@ type FieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = {
|
|
|
2451
2604
|
*/
|
|
2452
2605
|
siblingData?: Partial<TSiblingData>;
|
|
2453
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>);
|
|
2454
2614
|
type FieldAccess<TData extends TypeWithID = any, TSiblingData = any> = (args: FieldAccessArgs<TData, TSiblingData>) => boolean | Promise<boolean>;
|
|
2455
2615
|
type Condition<TData extends TypeWithID = any, TSiblingData = any> = (
|
|
2456
2616
|
/**
|
|
@@ -2649,9 +2809,13 @@ interface FieldBase {
|
|
|
2649
2809
|
* Allows you to modify the base JSON schema that is generated for this field.
|
|
2650
2810
|
* This JSON schema will be used to generate the TypeScript interface of this field, and to
|
|
2651
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.
|
|
2652
2815
|
*/
|
|
2653
2816
|
jsonSchema?: Array<(args: {
|
|
2654
2817
|
jsonSchema: JSONSchema4;
|
|
2818
|
+
variant: SchemaVariant;
|
|
2655
2819
|
}) => JSONSchema4>;
|
|
2656
2820
|
label?: false | LabelFunction | StaticLabel;
|
|
2657
2821
|
localized?: boolean;
|
|
@@ -2680,7 +2844,7 @@ interface FieldBaseClient extends Pick<FieldBase, 'hidden' | 'index' | 'jsonSche
|
|
|
2680
2844
|
type NumberField = {
|
|
2681
2845
|
admin?: {
|
|
2682
2846
|
/** Set this property to a string that will be used for browser autocomplete. */
|
|
2683
|
-
autoComplete?:
|
|
2847
|
+
autoComplete?: BrowserAutoComplete;
|
|
2684
2848
|
components?: {
|
|
2685
2849
|
afterInput?: CustomComponent[];
|
|
2686
2850
|
beforeInput?: CustomComponent[];
|
|
@@ -2719,7 +2883,7 @@ type NumberFieldClient = {
|
|
|
2719
2883
|
} & FieldBaseClient & Pick<NumberField, 'hasMany' | 'max' | 'maxRows' | 'min' | 'minRows' | 'type'>;
|
|
2720
2884
|
type TextField = {
|
|
2721
2885
|
admin?: {
|
|
2722
|
-
autoComplete?:
|
|
2886
|
+
autoComplete?: BrowserAutoComplete;
|
|
2723
2887
|
components?: {
|
|
2724
2888
|
afterInput?: CustomComponent[];
|
|
2725
2889
|
beforeInput?: CustomComponent[];
|
|
@@ -2754,7 +2918,7 @@ type TextFieldClient = {
|
|
|
2754
2918
|
} & FieldBaseClient & Pick<TextField, 'hasMany' | 'maxLength' | 'maxRows' | 'minLength' | 'minRows' | 'type'>;
|
|
2755
2919
|
type EmailField = {
|
|
2756
2920
|
admin?: {
|
|
2757
|
-
autoComplete?:
|
|
2921
|
+
autoComplete?: BrowserAutoComplete;
|
|
2758
2922
|
components?: {
|
|
2759
2923
|
afterInput?: CustomComponent[];
|
|
2760
2924
|
beforeInput?: CustomComponent[];
|
|
@@ -2769,6 +2933,29 @@ type EmailField = {
|
|
|
2769
2933
|
type EmailFieldClient = {
|
|
2770
2934
|
admin?: AdminClient & PickPreserveOptional<NonNullable<EmailField['admin']>, 'autoComplete' | 'placeholder'>;
|
|
2771
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'>;
|
|
2772
2959
|
type TextareaField = {
|
|
2773
2960
|
admin?: {
|
|
2774
2961
|
components?: {
|
|
@@ -3509,12 +3696,9 @@ type BlocksField = {
|
|
|
3509
3696
|
isSortable?: boolean;
|
|
3510
3697
|
} & FieldAdmin;
|
|
3511
3698
|
/**
|
|
3512
|
-
*
|
|
3513
|
-
*
|
|
3514
|
-
* @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.
|
|
3515
3700
|
*/
|
|
3516
|
-
|
|
3517
|
-
blocks: Block[];
|
|
3701
|
+
blocks: (Block | BlockSlug)[];
|
|
3518
3702
|
defaultValue?: DefaultValue;
|
|
3519
3703
|
/**
|
|
3520
3704
|
* Blocks can be conditionally enabled using the `filterOptions` property on the blocks field.
|
|
@@ -3554,13 +3738,7 @@ type BlocksField = {
|
|
|
3554
3738
|
} & Omit<FieldBase, 'validate'>;
|
|
3555
3739
|
type BlocksFieldClient = {
|
|
3556
3740
|
admin?: AdminClient & Pick<BlocksField['admin'], 'initCollapsed' | 'isSortable'>;
|
|
3557
|
-
|
|
3558
|
-
* Like `blocks`, but allows you to also pass strings that are slugs of blocks defined in `config.blocks`.
|
|
3559
|
-
*
|
|
3560
|
-
* @todo `blockReferences` will be merged with `blocks` in 4.0
|
|
3561
|
-
*/
|
|
3562
|
-
blockReferences?: (ClientBlock | string)[];
|
|
3563
|
-
blocks: ClientBlock[];
|
|
3741
|
+
blocks: (ClientBlock | string)[];
|
|
3564
3742
|
labels?: LabelsClient;
|
|
3565
3743
|
} & FieldBaseClient & Pick<BlocksField, 'maxRows' | 'minRows' | 'type'>;
|
|
3566
3744
|
type PointField = {
|
|
@@ -3656,14 +3834,8 @@ type FlattenedBlock = {
|
|
|
3656
3834
|
flattenedFields: FlattenedField$1[];
|
|
3657
3835
|
} & Block;
|
|
3658
3836
|
type FlattenedBlocksField = {
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
*
|
|
3662
|
-
* @todo `blockReferences` will be merged with `blocks` in 4.0
|
|
3663
|
-
*/
|
|
3664
|
-
blockReferences?: (FlattenedBlock | string)[];
|
|
3665
|
-
blocks: FlattenedBlock[];
|
|
3666
|
-
} & Omit<BlocksField, 'blockReferences' | 'blocks'>;
|
|
3837
|
+
blocks: (FlattenedBlock | string)[];
|
|
3838
|
+
} & Omit<BlocksField, 'blocks'>;
|
|
3667
3839
|
type FlattenedGroupField = {
|
|
3668
3840
|
flattenedFields: FlattenedField$1[];
|
|
3669
3841
|
name: string;
|
|
@@ -3677,18 +3849,18 @@ type FlattenedTabAsField = {
|
|
|
3677
3849
|
type FlattenedJoinField = {
|
|
3678
3850
|
targetField: RelationshipField | UploadField;
|
|
3679
3851
|
} & JoinField;
|
|
3680
|
-
type FlattenedField$1 = CheckboxField | CodeField | DateField | EmailField | FlattenedArrayField | FlattenedBlocksField | FlattenedGroupField | FlattenedJoinField | FlattenedTabAsField | JSONField | NumberField | PointField | RadioField | RelationshipField | RichTextField | SelectField | TextareaField | TextField | UploadField;
|
|
3681
|
-
type Field = ArrayField | BlocksField | CheckboxField | CodeField | CollapsibleField | DateField | EmailField | GroupField | JoinField | JSONField | NumberField | PointField | RadioField | RelationshipField | RichTextField | RowField | SelectField | TabsField | TextareaField | TextField | UIField | UploadField;
|
|
3682
|
-
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;
|
|
3683
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;
|
|
3684
3856
|
type ExtractFieldTypes<T> = T extends {
|
|
3685
3857
|
type: infer U;
|
|
3686
3858
|
} ? U : never;
|
|
3687
3859
|
type FieldTypes = ExtractFieldTypes<Field>;
|
|
3688
|
-
type FieldAffectingData = ArrayField | BlocksField | CheckboxField | CodeField | DateField | EmailField | JoinField | JSONField | NamedGroupField | NumberField | PointField | RadioField | RelationshipField | RichTextField | SelectField | TabAsField | TextareaField | TextField | UploadField;
|
|
3689
|
-
type FieldAffectingDataClient = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | DateFieldClient | EmailFieldClient | JoinFieldClient | JSONFieldClient | NamedGroupFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | SelectFieldClient | TabAsFieldClient | TextareaFieldClient | TextFieldClient | UploadFieldClient;
|
|
3690
|
-
type NonPresentationalField = ArrayField | BlocksField | CheckboxField | CodeField | CollapsibleField | DateField | EmailField | JSONField | NamedGroupField | NumberField | PointField | RadioField | RelationshipField | RichTextField | RowField | SelectField | TabsField | TextareaField | TextField | UploadField;
|
|
3691
|
-
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;
|
|
3692
3864
|
type FieldWithPath = {
|
|
3693
3865
|
path?: string;
|
|
3694
3866
|
} & Field;
|
|
@@ -3705,57 +3877,6 @@ type FieldWithMaxDepth = RelationshipField | UploadField;
|
|
|
3705
3877
|
type FieldWithMaxDepthClient = JoinFieldClient | RelationshipFieldClient | UploadFieldClient;
|
|
3706
3878
|
type HookName = 'afterChange' | 'afterRead' | 'beforeChange' | 'beforeRead' | 'beforeValidate';
|
|
3707
3879
|
|
|
3708
|
-
/**
|
|
3709
|
-
* Returns a JSON Schema Type with 'null' added if the field is not required.
|
|
3710
|
-
*/
|
|
3711
|
-
declare function withNullableJSONSchemaType(fieldType: JSONSchema4TypeName, isRequired: boolean): JSONSchema4TypeName | JSONSchema4TypeName[];
|
|
3712
|
-
type ConfigToJSONSchemaOptions = {
|
|
3713
|
-
forceInlineBlocks?: boolean;
|
|
3714
|
-
};
|
|
3715
|
-
type FieldsToJSONSchemaArgs = {
|
|
3716
|
-
/**
|
|
3717
|
-
* Used for relationship fields, to determine whether to use a string or
|
|
3718
|
-
* number type for the ID. While there is a default ID field type set by
|
|
3719
|
-
* the db adapter, they can differ on a collection-level if they have
|
|
3720
|
-
* custom ID fields.
|
|
3721
|
-
*/
|
|
3722
|
-
collectionIDFieldTypes: {
|
|
3723
|
-
[key: string]: 'number' | 'string';
|
|
3724
|
-
};
|
|
3725
|
-
config?: SanitizedConfig;
|
|
3726
|
-
fields: FlattenedField$1[];
|
|
3727
|
-
/**
|
|
3728
|
-
* If true, blocks are inlined into each `block` field instead of being
|
|
3729
|
-
* lifted to a top-level definition. Used by the MCP plugin.
|
|
3730
|
-
*/
|
|
3731
|
-
forceInlineBlocks?: boolean;
|
|
3732
|
-
i18n?: I18n;
|
|
3733
|
-
/** Allows you to define new top-level interfaces that can be re-used in the output schema. */
|
|
3734
|
-
interfaceNameDefinitions: Map<string, JSONSchema4>;
|
|
3735
|
-
/**
|
|
3736
|
-
* Allows you to append raw TS source to `payload-types.ts`. Identical
|
|
3737
|
-
* strings de-dupe naturally, so the same helper written from many fields
|
|
3738
|
-
* ends up emitted once.
|
|
3739
|
-
*/
|
|
3740
|
-
typeStringDefinitions: Set<string>;
|
|
3741
|
-
};
|
|
3742
|
-
declare function fieldsToJSONSchema({ collectionIDFieldTypes, config, fields, forceInlineBlocks, i18n, interfaceNameDefinitions, typeStringDefinitions, }: FieldsToJSONSchemaArgs): {
|
|
3743
|
-
properties: {
|
|
3744
|
-
[k: string]: JSONSchema4;
|
|
3745
|
-
};
|
|
3746
|
-
required: string[];
|
|
3747
|
-
};
|
|
3748
|
-
declare function entityToJSONSchema(config: SanitizedConfig, entity: SanitizedCollectionConfig | SanitizedGlobalConfig, interfaceNameDefinitions: Map<string, JSONSchema4>, defaultIDType: 'number' | 'text', typeStringDefinitions: Set<string>, collectionIDFieldTypes?: {
|
|
3749
|
-
[key: string]: 'number' | 'string';
|
|
3750
|
-
}, i18n?: I18n, forceInlineBlocks?: boolean): JSONSchema4;
|
|
3751
|
-
/**
|
|
3752
|
-
* This is used for generating the TypeScript types (payload-types.ts) with the payload generate:types command.
|
|
3753
|
-
*/
|
|
3754
|
-
declare function configToJSONSchema(config: SanitizedConfig, defaultIDType?: 'number' | 'text', i18n?: I18n, { forceInlineBlocks }?: ConfigToJSONSchemaOptions): {
|
|
3755
|
-
jsonSchema: JSONSchema4;
|
|
3756
|
-
typeStringDefinitions: Set<string>;
|
|
3757
|
-
};
|
|
3758
|
-
|
|
3759
3880
|
type RichTextFieldClientWithoutType<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = MarkOptional<RichTextFieldClient<TValue, TAdapterProps, TExtraProperties>, 'type'>;
|
|
3760
3881
|
type RichTextFieldBaseClientProps<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = {
|
|
3761
3882
|
readonly path: string;
|
|
@@ -3928,10 +4049,10 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
|
|
|
3928
4049
|
* `json-schema-to-typescript` which is used to generate types for this richtext field
|
|
3929
4050
|
* payload-types.ts)
|
|
3930
4051
|
*/
|
|
3931
|
-
jsonSchema?: (args:
|
|
4052
|
+
jsonSchema?: (args: {
|
|
3932
4053
|
field: RichTextField<Value, AdapterProps, ExtraFieldProperties>;
|
|
3933
4054
|
isRequired: boolean;
|
|
3934
|
-
}) => JSONSchema4;
|
|
4055
|
+
} & Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions' | 'variant'>) => JSONSchema4;
|
|
3935
4056
|
/**
|
|
3936
4057
|
* Provide validation function for the richText field. This function is run the same way
|
|
3937
4058
|
* as other field validation functions.
|
|
@@ -4006,14 +4127,14 @@ declare function parseCookies(headers: Request['headers']): Map<string, string>;
|
|
|
4006
4127
|
|
|
4007
4128
|
declare const extractJWT: (args: Omit<AuthStrategyFunctionArgs, "strategyName">) => null | string;
|
|
4008
4129
|
|
|
4009
|
-
type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | 'jsonSchema' | 'label' | 'validate' | keyof Pick<FieldBase, 'access' | 'custom' | 'defaultValue' | 'hooks'>;
|
|
4130
|
+
type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | 'jsonSchema' | 'label' | 'slugify' | 'validate' | keyof Pick<FieldBase, 'access' | 'custom' | 'defaultValue' | 'hooks'>;
|
|
4010
4131
|
type ServerOnlyFieldAdminProperties = keyof Pick<FieldBase['admin'], 'components' | 'condition'>;
|
|
4011
4132
|
declare const createClientBlocks: ({ blocks, defaultIDType, i18n, importMap, }: {
|
|
4012
4133
|
blocks: (Block | string)[];
|
|
4013
4134
|
defaultIDType: Payload["config"]["db"]["defaultIDType"];
|
|
4014
4135
|
i18n: I18nClient;
|
|
4015
4136
|
importMap: ImportMap;
|
|
4016
|
-
}) => (ClientBlock | string)[]
|
|
4137
|
+
}) => (ClientBlock | string)[];
|
|
4017
4138
|
declare const createClientField: ({ defaultIDType, field: incomingField, i18n, importMap, }: {
|
|
4018
4139
|
defaultIDType: Payload["config"]["db"]["defaultIDType"];
|
|
4019
4140
|
field: Field;
|
|
@@ -4182,7 +4303,7 @@ type ClientHierarchyConfig = Omit<SanitizedHierarchyConfig, 'slugify'>;
|
|
|
4182
4303
|
|
|
4183
4304
|
type ServerOnlyCollectionProperties = keyof Pick<SanitizedCollectionConfig, 'access' | 'custom' | 'endpoints' | 'flattenedFields' | 'hooks' | 'indexes' | 'joins' | 'polymorphicJoins' | 'sanitizedIndexes' | 'select'>;
|
|
4184
4305
|
type ServerOnlyCollectionAdminProperties = keyof Pick<SanitizedCollectionConfig['admin'], 'baseFilter' | 'baseListFilter' | 'components' | 'formatDocURL' | 'hidden'>;
|
|
4185
|
-
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4306
|
+
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'admin' | 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4186
4307
|
type ClientCollectionConfig = {
|
|
4187
4308
|
admin: {
|
|
4188
4309
|
description?: StaticDescription;
|
|
@@ -4281,7 +4402,7 @@ type CreateClientConfigArgs = {
|
|
|
4281
4402
|
* For example, allow `true` to generate a client config for the "create first user" page
|
|
4282
4403
|
* where there is no user yet, but the config should still be complete.
|
|
4283
4404
|
*/
|
|
4284
|
-
user: true |
|
|
4405
|
+
user: true | User;
|
|
4285
4406
|
};
|
|
4286
4407
|
declare const createUnauthenticatedClientConfig: ({ clientConfig, }: {
|
|
4287
4408
|
/**
|
|
@@ -4306,11 +4427,13 @@ type EditViewProps = {
|
|
|
4306
4427
|
*/
|
|
4307
4428
|
type RenderDocumentVersionsProperties = {
|
|
4308
4429
|
/**
|
|
4309
|
-
*
|
|
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.
|
|
4310
4433
|
*/
|
|
4311
|
-
|
|
4434
|
+
CreatedAtCellOverride?: (props: any) => any;
|
|
4312
4435
|
/**
|
|
4313
|
-
*
|
|
4436
|
+
* @deprecated Pass `CreatedAtCellOverride` directly instead.
|
|
4314
4437
|
* @default false
|
|
4315
4438
|
*/
|
|
4316
4439
|
useVersionDrawerCreatedAtCell?: boolean;
|
|
@@ -5435,6 +5558,13 @@ type LivePreviewConfig = {
|
|
|
5435
5558
|
name: string;
|
|
5436
5559
|
width: number | string;
|
|
5437
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;
|
|
5438
5568
|
/**
|
|
5439
5569
|
* The URL of the frontend application. This will be rendered within an `iframe` as its `src`.
|
|
5440
5570
|
* Payload will send a `window.postMessage()` to this URL with the document data in real-time.
|
|
@@ -5658,14 +5788,22 @@ type ServerProps = {
|
|
|
5658
5788
|
readonly params?: Params;
|
|
5659
5789
|
readonly payload: Payload;
|
|
5660
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;
|
|
5661
5797
|
readonly searchParams?: Params;
|
|
5662
5798
|
/**
|
|
5663
5799
|
* Framework-agnostic methods for server-side navigation, headers, cookies, and other server-only APIs.
|
|
5664
5800
|
* Plugins should call these methods instead of importing directly from `next/navigation`, `next/headers`, etc.
|
|
5665
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.
|
|
5666
5804
|
*/
|
|
5667
5805
|
readonly server: ServerAdapter;
|
|
5668
|
-
readonly user?:
|
|
5806
|
+
readonly user?: User;
|
|
5669
5807
|
readonly viewType?: ViewTypes;
|
|
5670
5808
|
readonly visibleEntities?: VisibleEntities;
|
|
5671
5809
|
};
|
|
@@ -5695,6 +5833,12 @@ type SanitizedTimezoneConfig = {
|
|
|
5695
5833
|
supportedTimezones: Timezone[];
|
|
5696
5834
|
} & Omit<TimezonesConfig, 'supportedTimezones'>;
|
|
5697
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;
|
|
5698
5842
|
type Locale = {
|
|
5699
5843
|
/**
|
|
5700
5844
|
* value of supported locale
|
|
@@ -6114,6 +6258,12 @@ type Config = {
|
|
|
6114
6258
|
/** Extensible tab system */
|
|
6115
6259
|
tabs?: SidebarTab[];
|
|
6116
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[];
|
|
6117
6267
|
/**
|
|
6118
6268
|
* Replace or modify top-level admin routes, or add new ones:
|
|
6119
6269
|
* + `Account` - `/admin/account`
|
|
@@ -6338,22 +6488,6 @@ type Config = {
|
|
|
6338
6488
|
email?: EmailAdapter | Promise<EmailAdapter>;
|
|
6339
6489
|
/** Custom REST endpoints */
|
|
6340
6490
|
endpoints?: Endpoint[];
|
|
6341
|
-
/**
|
|
6342
|
-
* Experimental features may be unstable or change in future versions.
|
|
6343
|
-
*/
|
|
6344
|
-
experimental?: {
|
|
6345
|
-
/**
|
|
6346
|
-
* Enable per-locale status for documents.
|
|
6347
|
-
*
|
|
6348
|
-
* Requires:
|
|
6349
|
-
* - `localization` enabled
|
|
6350
|
-
* - `versions.drafts` enabled
|
|
6351
|
-
* - `versions.drafts.localizeStatus` set at collection or global level
|
|
6352
|
-
*
|
|
6353
|
-
* @experimental
|
|
6354
|
-
*/
|
|
6355
|
-
localizeStatus?: boolean;
|
|
6356
|
-
};
|
|
6357
6491
|
/**
|
|
6358
6492
|
* @see https://payloadcms.com/docs/configuration/globals#global-configs
|
|
6359
6493
|
*/
|
|
@@ -6649,6 +6783,32 @@ type Config = {
|
|
|
6649
6783
|
*/
|
|
6650
6784
|
ignoreTSError?: boolean;
|
|
6651
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;
|
|
6652
6812
|
/** Filename to write the generated types to */
|
|
6653
6813
|
outputFile?: string;
|
|
6654
6814
|
/**
|
|
@@ -6847,6 +7007,7 @@ type SharedEntityViews = {
|
|
|
6847
7007
|
[key: string]: {
|
|
6848
7008
|
actions?: CustomComponent[];
|
|
6849
7009
|
Component?: PayloadComponent;
|
|
7010
|
+
NoResults?: CustomComponent;
|
|
6850
7011
|
} | AdminViewConfig | EditConfig | undefined;
|
|
6851
7012
|
/**
|
|
6852
7013
|
* Replace, modify, or add new "document" views.
|
|
@@ -6871,7 +7032,7 @@ type SharedAdminComponents = {
|
|
|
6871
7032
|
views?: SharedEntityViews;
|
|
6872
7033
|
};
|
|
6873
7034
|
type EntityDescriptionFunction = ({ t }: {
|
|
6874
|
-
t: TFunction
|
|
7035
|
+
t: TFunction<ClientTranslationKeys>;
|
|
6875
7036
|
}) => string;
|
|
6876
7037
|
type EntityDescription = EntityDescriptionFunction | Record<string, string> | string;
|
|
6877
7038
|
|
|
@@ -7498,8 +7659,8 @@ type RelationshipFieldDiffServerComponent = FieldDiffServerComponent<Relationshi
|
|
|
7498
7659
|
type RelationshipFieldDiffClientComponent = FieldDiffClientComponent<RelationshipFieldClient>;
|
|
7499
7660
|
|
|
7500
7661
|
type RowFieldClientWithoutType = MarkOptional<RowFieldClient, 'type'>;
|
|
7501
|
-
type RowFieldBaseClientProps =
|
|
7502
|
-
type RowFieldClientProps =
|
|
7662
|
+
type RowFieldBaseClientProps = FieldPaths & Pick<ClientComponentProps, 'forceRender'>;
|
|
7663
|
+
type RowFieldClientProps = ClientFieldBase<RowFieldClientWithoutType> & RowFieldBaseClientProps;
|
|
7503
7664
|
type RowFieldServerProps = ServerFieldBase<RowField, RowFieldClientWithoutType>;
|
|
7504
7665
|
type RowFieldServerComponent = FieldServerComponent<RowField, RowFieldClientWithoutType>;
|
|
7505
7666
|
type RowFieldClientComponent = FieldClientComponent<RowFieldClientWithoutType, RowFieldBaseClientProps>;
|
|
@@ -7608,7 +7769,7 @@ type UploadFieldDiffClientComponent = FieldDiffClientComponent<UploadFieldClient
|
|
|
7608
7769
|
|
|
7609
7770
|
type DescriptionFunction = (args: {
|
|
7610
7771
|
i18n: I18nClient;
|
|
7611
|
-
t: TFunction
|
|
7772
|
+
t: TFunction<ClientTranslationKeys>;
|
|
7612
7773
|
}) => string;
|
|
7613
7774
|
type FieldDescriptionClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionClientProps<TFieldClient>>;
|
|
7614
7775
|
type FieldDescriptionServerComponent<TFieldServer extends Field = Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionServerProps<TFieldServer, TFieldClient>>;
|
|
@@ -7721,91 +7882,6 @@ type FieldLabelServerComponent<TFieldServer extends Field = Field, TFieldClient
|
|
|
7721
7882
|
type RowLabelComponent = CustomComponent;
|
|
7722
7883
|
type RowLabel = Record<string, string> | string;
|
|
7723
7884
|
|
|
7724
|
-
type Slugify<T extends TypeWithID = any> = (args: {
|
|
7725
|
-
data: T;
|
|
7726
|
-
req: PayloadRequest;
|
|
7727
|
-
valueToSlugify?: any;
|
|
7728
|
-
}) => Promise<string | undefined> | string | undefined;
|
|
7729
|
-
type SlugFieldArgs = {
|
|
7730
|
-
/**
|
|
7731
|
-
* Override for the `generateSlug` checkbox field name.
|
|
7732
|
-
* @default 'generateSlug'
|
|
7733
|
-
*/
|
|
7734
|
-
checkboxName?: string;
|
|
7735
|
-
/**
|
|
7736
|
-
* Disables the unique index on the field.
|
|
7737
|
-
* This is useful if instead, you want to add a compound unique index to the collection `indexes` config,
|
|
7738
|
-
* for example with the multi tenant plugin, where the slug is only unique per tenant, not globally.
|
|
7739
|
-
* @default false
|
|
7740
|
-
*/
|
|
7741
|
-
disableUnique?: boolean;
|
|
7742
|
-
/**
|
|
7743
|
-
* @deprecated use `useAsSlug` instead.
|
|
7744
|
-
*/
|
|
7745
|
-
fieldToUse?: string;
|
|
7746
|
-
/**
|
|
7747
|
-
* Enable localization for the slug field.
|
|
7748
|
-
*/
|
|
7749
|
-
localized?: TextField['localized'];
|
|
7750
|
-
/**
|
|
7751
|
-
* Override for the `slug` field name.
|
|
7752
|
-
* @default 'slug'
|
|
7753
|
-
*/
|
|
7754
|
-
name?: string;
|
|
7755
|
-
/**
|
|
7756
|
-
* A function used to override the slug field(s) at a granular level.
|
|
7757
|
-
* Passes the row field to you to manipulate beyond the exposed options.
|
|
7758
|
-
* @example
|
|
7759
|
-
* ```ts
|
|
7760
|
-
* slugField({
|
|
7761
|
-
* overrides: (field) => {
|
|
7762
|
-
* field.fields[1].label = 'Custom Slug Label'
|
|
7763
|
-
* return field
|
|
7764
|
-
* }
|
|
7765
|
-
* })
|
|
7766
|
-
* ```
|
|
7767
|
-
*/
|
|
7768
|
-
overrides?: (field: RowField) => RowField;
|
|
7769
|
-
position?: FieldAdmin['position'];
|
|
7770
|
-
/**
|
|
7771
|
-
* Whether or not the `slug` field is required.
|
|
7772
|
-
* @default true
|
|
7773
|
-
*/
|
|
7774
|
-
required?: TextField['required'];
|
|
7775
|
-
/**
|
|
7776
|
-
* Provide your own slugify function to override the default.
|
|
7777
|
-
*/
|
|
7778
|
-
slugify?: Slugify;
|
|
7779
|
-
/**
|
|
7780
|
-
* The name of the top-level field to generate the slug from, when applicable.
|
|
7781
|
-
* @default 'title'
|
|
7782
|
-
*/
|
|
7783
|
-
useAsSlug?: string;
|
|
7784
|
-
};
|
|
7785
|
-
type SlugField = (args?: SlugFieldArgs) => RowField;
|
|
7786
|
-
type SlugFieldClientPropsOnly = Pick<SlugFieldArgs, 'useAsSlug'>;
|
|
7787
|
-
/**
|
|
7788
|
-
* These are the props that the `SlugField` client component accepts.
|
|
7789
|
-
* The `SlugField` server component is responsible for passing down the `slugify` function.
|
|
7790
|
-
*/
|
|
7791
|
-
type SlugFieldClientProps = SlugFieldClientPropsOnly & TextFieldClientProps;
|
|
7792
|
-
/**
|
|
7793
|
-
* A slug is a unique, indexed, URL-friendly string that identifies a particular document, often used to construct the URL of a webpage.
|
|
7794
|
-
* The `slug` field auto-generates its value based on another field, e.g. "My Title" → "my-title".
|
|
7795
|
-
*
|
|
7796
|
-
* The slug should continue to be generated through:
|
|
7797
|
-
* 1. The `create` operation, unless the user has modified the slug manually
|
|
7798
|
-
* 2. The `update` operation, if:
|
|
7799
|
-
* a. Autosave is _not_ enabled and there is no slug
|
|
7800
|
-
* b. Autosave _is_ enabled, the doc is unpublished, and the user has not modified the slug manually
|
|
7801
|
-
*
|
|
7802
|
-
* The slug should stabilize after all above criteria have been met, because the URL is typically derived from the slug.
|
|
7803
|
-
* This is to protect modifying potentially live URLs, breaking links, etc. without explicit intent.
|
|
7804
|
-
*
|
|
7805
|
-
* @experimental This field is experimental and may change or be removed in the future. Use at your own risk.
|
|
7806
|
-
*/
|
|
7807
|
-
declare const slugField: SlugField;
|
|
7808
|
-
|
|
7809
7885
|
type ColumnsFromURL = string[];
|
|
7810
7886
|
|
|
7811
7887
|
type InitReqResult = {
|
|
@@ -7816,8 +7892,16 @@ type InitReqResult = {
|
|
|
7816
7892
|
permissions: SanitizedPermissions;
|
|
7817
7893
|
req: PayloadRequest;
|
|
7818
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';
|
|
7819
7901
|
type DefaultServerFunctionArgs = {
|
|
7820
7902
|
importMap: ImportMap;
|
|
7903
|
+
mode?: ServerFunctionMode;
|
|
7904
|
+
renderComponent?: ComponentRenderer;
|
|
7821
7905
|
} & Pick<InitReqResult, 'cookies' | 'locale' | 'permissions' | 'req'>;
|
|
7822
7906
|
type ServerFunctionArgs = {
|
|
7823
7907
|
args: Record<string, unknown>;
|
|
@@ -7916,6 +8000,12 @@ type WidgetSlugFromWidget<TWidget extends {
|
|
|
7916
8000
|
type WidgetServerProps<TWidget extends {
|
|
7917
8001
|
data?: unknown;
|
|
7918
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;
|
|
7919
8009
|
widgetData?: [TWidget] extends [never] ? Record<string, unknown> : WidgetDataFromWidget<Exclude<TWidget, never>> extends Record<string, unknown> ? WidgetDataFromWidget<Exclude<TWidget, never>> : Record<string, unknown>;
|
|
7920
8010
|
widgetSlug: [TWidget] extends [never] ? string : [WidgetSlugFromWidget<{
|
|
7921
8011
|
data?: unknown;
|
|
@@ -7970,6 +8060,7 @@ type ListViewSlots = {
|
|
|
7970
8060
|
BeforeListTable?: React.ReactNode;
|
|
7971
8061
|
Description?: React.ReactNode;
|
|
7972
8062
|
listMenuItems?: React.ReactNode[];
|
|
8063
|
+
NoResults?: React.ReactNode;
|
|
7973
8064
|
Table: React.ReactNode | React.ReactNode[];
|
|
7974
8065
|
};
|
|
7975
8066
|
/**
|
|
@@ -8031,6 +8122,7 @@ type ListViewSlotSharedClientProps = {
|
|
|
8031
8122
|
hasDeletePermission?: boolean;
|
|
8032
8123
|
hasTrashPermission?: boolean;
|
|
8033
8124
|
newDocumentURL: string;
|
|
8125
|
+
viewType: ViewTypes;
|
|
8034
8126
|
};
|
|
8035
8127
|
type BeforeListClientProps = ListViewSlotSharedClientProps;
|
|
8036
8128
|
type BeforeListServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
@@ -8038,6 +8130,9 @@ type BeforeListServerProps = BeforeListClientProps & BeforeListServerPropsOnly;
|
|
|
8038
8130
|
type BeforeListTableClientProps = ListViewSlotSharedClientProps;
|
|
8039
8131
|
type BeforeListTableServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
8040
8132
|
type BeforeListTableServerProps = BeforeListTableClientProps & BeforeListTableServerPropsOnly;
|
|
8133
|
+
type NoResultsClientProps = ListViewSlotSharedClientProps;
|
|
8134
|
+
type NoResultsServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
8135
|
+
type NoResultsServerProps = NoResultsClientProps & NoResultsServerPropsOnly;
|
|
8041
8136
|
type AfterListClientProps = ListViewSlotSharedClientProps;
|
|
8042
8137
|
type AfterListServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
8043
8138
|
type AfterListServerProps = AfterListClientProps & AfterListServerPropsOnly;
|
|
@@ -8120,6 +8215,7 @@ type DocumentSlots = {
|
|
|
8120
8215
|
UnpublishButton?: React$1.ReactNode;
|
|
8121
8216
|
Upload?: React$1.ReactNode;
|
|
8122
8217
|
UploadControls?: React$1.ReactNode;
|
|
8218
|
+
UploadFilePreview?: React$1.ReactNode;
|
|
8123
8219
|
};
|
|
8124
8220
|
|
|
8125
8221
|
type SchemaPath = {} & string;
|
|
@@ -8149,7 +8245,7 @@ type MeOperationResult = {
|
|
|
8149
8245
|
*/
|
|
8150
8246
|
strategy?: string;
|
|
8151
8247
|
token?: string;
|
|
8152
|
-
user?:
|
|
8248
|
+
user?: AuthenticatedUser | null;
|
|
8153
8249
|
};
|
|
8154
8250
|
type Arguments$q = {
|
|
8155
8251
|
collection: Collection;
|
|
@@ -8289,12 +8385,33 @@ type FileAllowList = Array<{
|
|
|
8289
8385
|
extensions: string[];
|
|
8290
8386
|
mimeType: string;
|
|
8291
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
|
+
};
|
|
8292
8400
|
type Admin = {
|
|
8293
8401
|
components?: {
|
|
8294
8402
|
/**
|
|
8295
8403
|
* The Controls component to extend the upload controls in the admin panel.
|
|
8296
8404
|
*/
|
|
8297
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;
|
|
8298
8415
|
};
|
|
8299
8416
|
};
|
|
8300
8417
|
type UploadConfig = {
|
|
@@ -8538,7 +8655,7 @@ declare const forgotPasswordOperation: <TSlug extends AuthCollectionSlug>(incomi
|
|
|
8538
8655
|
type LoginResult<TSlug extends AuthCollectionSlug> = {
|
|
8539
8656
|
exp?: number;
|
|
8540
8657
|
token?: string;
|
|
8541
|
-
user?: DataFromCollectionSlug<TSlug>;
|
|
8658
|
+
user?: AuthRuntimeFields & DataFromCollectionSlug<TSlug>;
|
|
8542
8659
|
};
|
|
8543
8660
|
type Arguments$n<TSlug extends AuthCollectionSlug> = {
|
|
8544
8661
|
collection: Collection;
|
|
@@ -8621,7 +8738,6 @@ type Arguments$i<TSlug extends CollectionSlug> = {
|
|
|
8621
8738
|
overwriteExistingFiles?: boolean;
|
|
8622
8739
|
populate?: PopulateType;
|
|
8623
8740
|
publishAllLocales?: boolean;
|
|
8624
|
-
publishSpecificLocale?: string;
|
|
8625
8741
|
req: PayloadRequest;
|
|
8626
8742
|
selectedLocales?: string[];
|
|
8627
8743
|
showHiddenFields?: boolean;
|
|
@@ -8899,7 +9015,7 @@ type BaseFindOptions<TSlug extends CollectionSlug, TSelect extends SelectType> =
|
|
|
8899
9015
|
/**
|
|
8900
9016
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
8901
9017
|
*/
|
|
8902
|
-
user?:
|
|
9018
|
+
user?: null | User;
|
|
8903
9019
|
/**
|
|
8904
9020
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
8905
9021
|
*/
|
|
@@ -8938,7 +9054,6 @@ type Arguments$b<TSlug extends CollectionSlug> = {
|
|
|
8938
9054
|
overwriteExistingFiles?: boolean;
|
|
8939
9055
|
populate?: PopulateType;
|
|
8940
9056
|
publishAllLocales?: boolean;
|
|
8941
|
-
publishSpecificLocale?: string;
|
|
8942
9057
|
req: PayloadRequest;
|
|
8943
9058
|
showHiddenFields?: boolean;
|
|
8944
9059
|
/**
|
|
@@ -8967,7 +9082,6 @@ type Arguments$a<TSlug extends CollectionSlug> = {
|
|
|
8967
9082
|
overwriteExistingFiles?: boolean;
|
|
8968
9083
|
populate?: PopulateType;
|
|
8969
9084
|
publishAllLocales?: boolean;
|
|
8970
|
-
publishSpecificLocale?: string;
|
|
8971
9085
|
req: PayloadRequest;
|
|
8972
9086
|
showHiddenFields?: boolean;
|
|
8973
9087
|
trash?: boolean;
|
|
@@ -9023,15 +9137,6 @@ type AfterOperationArg<TOperationGeneric extends CollectionSlug> = {
|
|
|
9023
9137
|
args: Parameters<OperationMap<TOperationGeneric>['deleteByID']>[0];
|
|
9024
9138
|
operation: 'deleteByID';
|
|
9025
9139
|
result: Awaited<ReturnType<OperationMap<TOperationGeneric>['deleteByID']>>;
|
|
9026
|
-
} | {
|
|
9027
|
-
args: Parameters<OperationMap<TOperationGeneric>['find']>[0];
|
|
9028
|
-
/**
|
|
9029
|
-
* @deprecated Use 'find' or 'findByID' operation instead
|
|
9030
|
-
*
|
|
9031
|
-
* TODO: v4 - remove this union option
|
|
9032
|
-
*/
|
|
9033
|
-
operation: 'read';
|
|
9034
|
-
result: Awaited<ReturnType<OperationMap<TOperationGeneric>['find']>>;
|
|
9035
9140
|
} | {
|
|
9036
9141
|
args: Parameters<OperationMap<TOperationGeneric>['find']>[0];
|
|
9037
9142
|
operation: 'find';
|
|
@@ -9167,6 +9272,12 @@ type BeforeOperationArg<TOperationGeneric extends CollectionSlug> = {
|
|
|
9167
9272
|
});
|
|
9168
9273
|
|
|
9169
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'];
|
|
9170
9281
|
type SelectFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollectionSelect[TSlug];
|
|
9171
9282
|
/**
|
|
9172
9283
|
* Collection slugs that do not have drafts enabled.
|
|
@@ -9462,6 +9573,7 @@ type CollectionAdminOptions = {
|
|
|
9462
9573
|
list?: {
|
|
9463
9574
|
actions?: CustomComponent[];
|
|
9464
9575
|
Component?: PayloadComponent;
|
|
9576
|
+
NoResults?: CustomComponent;
|
|
9465
9577
|
};
|
|
9466
9578
|
} & SharedEntityViews;
|
|
9467
9579
|
} & Omit<SharedAdminComponents, 'edit' | 'views'>;
|
|
@@ -9510,18 +9622,11 @@ type CollectionAdminOptions = {
|
|
|
9510
9622
|
* - Set to `false` to exclude the entity from the sidebar / dashboard without disabling its routes.
|
|
9511
9623
|
*/
|
|
9512
9624
|
group?: false | Record<string, string> | string;
|
|
9513
|
-
/**
|
|
9514
|
-
* @description Enable grouping by a field in the list view.
|
|
9515
|
-
* Uses `payload.findDistinct` under the hood to populate the group-by options.
|
|
9516
|
-
*
|
|
9517
|
-
* @experimental This option is currently in beta and may change in future releases. Use at your own risk.
|
|
9518
|
-
*/
|
|
9519
|
-
groupBy?: boolean;
|
|
9520
9625
|
/**
|
|
9521
9626
|
* Exclude the collection from the admin nav and routes
|
|
9522
9627
|
*/
|
|
9523
9628
|
hidden?: ((args: {
|
|
9524
|
-
user:
|
|
9629
|
+
user: PayloadRequest['user'];
|
|
9525
9630
|
}) => boolean) | boolean;
|
|
9526
9631
|
/**
|
|
9527
9632
|
* Additional fields to be searched via the full text search
|
|
@@ -9593,6 +9698,10 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
|
|
|
9593
9698
|
* Default field to sort by in collection list view
|
|
9594
9699
|
*/
|
|
9595
9700
|
defaultSort?: Sort;
|
|
9701
|
+
/**
|
|
9702
|
+
* Disable the bulk delete operation for the collection in the admin panel and the API
|
|
9703
|
+
*/
|
|
9704
|
+
disableBulkDelete?: boolean;
|
|
9596
9705
|
/**
|
|
9597
9706
|
* Disable the bulk edit operation for the collection in the admin panel and the API
|
|
9598
9707
|
*/
|
|
@@ -9870,6 +9979,11 @@ type SanitizedCompoundIndex = {
|
|
|
9870
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"];
|
|
9871
9980
|
type Operator = (typeof validOperators)[number];
|
|
9872
9981
|
|
|
9982
|
+
interface PayloadRequestAPI {
|
|
9983
|
+
GraphQL: true;
|
|
9984
|
+
local: true;
|
|
9985
|
+
REST: true;
|
|
9986
|
+
}
|
|
9873
9987
|
type CustomPayloadRequestProperties = {
|
|
9874
9988
|
context: RequestContext;
|
|
9875
9989
|
/** The locale that should be used for a field when it is not translated to the requested locale */
|
|
@@ -9889,7 +10003,7 @@ type CustomPayloadRequestProperties = {
|
|
|
9889
10003
|
/**
|
|
9890
10004
|
* The context in which the request is being made
|
|
9891
10005
|
*/
|
|
9892
|
-
payloadAPI:
|
|
10006
|
+
payloadAPI: keyof PayloadRequestAPI;
|
|
9893
10007
|
/** Optimized document loader */
|
|
9894
10008
|
payloadDataLoader: {
|
|
9895
10009
|
/**
|
|
@@ -9933,7 +10047,7 @@ type CustomPayloadRequestProperties = {
|
|
|
9933
10047
|
*/
|
|
9934
10048
|
transactionID?: number | Promise<number | string> | string;
|
|
9935
10049
|
/** The signed-in user */
|
|
9936
|
-
user:
|
|
10050
|
+
user: AuthenticatedUser | null;
|
|
9937
10051
|
} & Pick<URL, 'hash' | 'host' | 'href' | 'origin' | 'pathname' | 'port' | 'protocol' | 'search' | 'searchParams'>;
|
|
9938
10052
|
type PayloadRequestData = {
|
|
9939
10053
|
/**
|
|
@@ -10153,8 +10267,17 @@ type AuthArgs = {
|
|
|
10153
10267
|
type AuthResult = {
|
|
10154
10268
|
permissions: SanitizedPermissions;
|
|
10155
10269
|
responseHeaders?: Headers;
|
|
10156
|
-
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;
|
|
10157
10279
|
};
|
|
10280
|
+
type DevReloadCleanup = () => void;
|
|
10158
10281
|
|
|
10159
10282
|
type Options$g<TSlug extends AuthCollectionSlug> = {
|
|
10160
10283
|
collection: TSlug;
|
|
@@ -10252,6 +10375,14 @@ type RouterAdapterRouter = {
|
|
|
10252
10375
|
replace: (path: string, options?: {
|
|
10253
10376
|
scroll?: boolean;
|
|
10254
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;
|
|
10255
10386
|
};
|
|
10256
10387
|
type LinkAdapterProps = {
|
|
10257
10388
|
children?: React$1.ReactNode;
|
|
@@ -10262,6 +10393,39 @@ type LinkAdapterProps = {
|
|
|
10262
10393
|
scroll?: boolean;
|
|
10263
10394
|
} & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
|
|
10264
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
|
+
|
|
10265
10429
|
type CountOptions<TSlug extends CollectionSlug> = {
|
|
10266
10430
|
/**
|
|
10267
10431
|
* the Collection slug to operate against.
|
|
@@ -10305,7 +10469,7 @@ type CountOptions<TSlug extends CollectionSlug> = {
|
|
|
10305
10469
|
/**
|
|
10306
10470
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10307
10471
|
*/
|
|
10308
|
-
user?:
|
|
10472
|
+
user?: null | User;
|
|
10309
10473
|
/**
|
|
10310
10474
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10311
10475
|
*/
|
|
@@ -10391,7 +10555,7 @@ type BaseOptions$7<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10391
10555
|
/**
|
|
10392
10556
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10393
10557
|
*/
|
|
10394
|
-
user?:
|
|
10558
|
+
user?: null | User;
|
|
10395
10559
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10396
10560
|
type Options$b<TSlug extends CollectionSlug, TSelect extends SelectType> = GeneratedTypes extends {
|
|
10397
10561
|
strictDraftTypes: true;
|
|
@@ -10516,7 +10680,7 @@ type BaseOptions$6<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10516
10680
|
/**
|
|
10517
10681
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10518
10682
|
*/
|
|
10519
|
-
user?:
|
|
10683
|
+
user?: null | User;
|
|
10520
10684
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10521
10685
|
type ByIDOptions$1<TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>> = {
|
|
10522
10686
|
/**
|
|
@@ -10604,7 +10768,7 @@ type BaseOptions$5<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10604
10768
|
/**
|
|
10605
10769
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10606
10770
|
*/
|
|
10607
|
-
user?:
|
|
10771
|
+
user?: null | User;
|
|
10608
10772
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10609
10773
|
type Options$a<TSlug extends CollectionSlug, TSelect extends SelectType> = BaseOptions$5<TSlug, TSelect> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10610
10774
|
|
|
@@ -10692,7 +10856,7 @@ type BaseFindByIDOptions<TSlug extends CollectionSlug, TDisableErrors extends bo
|
|
|
10692
10856
|
/**
|
|
10693
10857
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10694
10858
|
*/
|
|
10695
|
-
user?:
|
|
10859
|
+
user?: null | User;
|
|
10696
10860
|
} & Pick<FindByIDArgs, 'flattenLocales'> & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10697
10861
|
type Options$9<TSlug extends CollectionSlug, TDisableErrors extends boolean, TSelect extends SelectType> = BaseFindByIDOptions<TSlug, TDisableErrors, TSelect> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10698
10862
|
|
|
@@ -10772,7 +10936,7 @@ type Options$8<TSlug extends CollectionSlug, TField extends keyof DataFromCollec
|
|
|
10772
10936
|
/**
|
|
10773
10937
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10774
10938
|
*/
|
|
10775
|
-
user?:
|
|
10939
|
+
user?: null | User;
|
|
10776
10940
|
/**
|
|
10777
10941
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10778
10942
|
*/
|
|
@@ -10844,7 +11008,7 @@ type BaseOptions$4<TSlug extends CollectionSlug> = {
|
|
|
10844
11008
|
/**
|
|
10845
11009
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10846
11010
|
*/
|
|
10847
|
-
user?:
|
|
11011
|
+
user?: null | User;
|
|
10848
11012
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
10849
11013
|
type Options$7<TSlug extends CollectionSlug> = BaseOptions$4<TSlug> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10850
11014
|
|
|
@@ -10926,7 +11090,7 @@ type BaseOptions$3<TSlug extends CollectionSlug> = {
|
|
|
10926
11090
|
/**
|
|
10927
11091
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10928
11092
|
*/
|
|
10929
|
-
user?:
|
|
11093
|
+
user?: null | User;
|
|
10930
11094
|
/**
|
|
10931
11095
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10932
11096
|
*/
|
|
@@ -10985,7 +11149,7 @@ type BaseOptions$2<TSlug extends CollectionSlug> = {
|
|
|
10985
11149
|
/**
|
|
10986
11150
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10987
11151
|
*/
|
|
10988
|
-
user?:
|
|
11152
|
+
user?: null | User;
|
|
10989
11153
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
10990
11154
|
type Options$5<TSlug extends CollectionSlug> = BaseOptions$2<TSlug> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10991
11155
|
|
|
@@ -11057,17 +11221,12 @@ type BaseOptions$1<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
11057
11221
|
*/
|
|
11058
11222
|
populate?: PopulateType;
|
|
11059
11223
|
/**
|
|
11060
|
-
* 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.
|
|
11061
11226
|
*
|
|
11062
11227
|
* @default undefined
|
|
11063
11228
|
*/
|
|
11064
11229
|
publishAllLocales?: boolean;
|
|
11065
|
-
/**
|
|
11066
|
-
* Publish the document / documents with a specific locale.
|
|
11067
|
-
*
|
|
11068
|
-
* @default undefined
|
|
11069
|
-
*/
|
|
11070
|
-
publishSpecificLocale?: string;
|
|
11071
11230
|
/**
|
|
11072
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.
|
|
11073
11232
|
* Recommended to pass when using the Local API from hooks, as usually you want to execute the operation within the current transaction.
|
|
@@ -11086,13 +11245,14 @@ type BaseOptions$1<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
11086
11245
|
*/
|
|
11087
11246
|
trash?: boolean;
|
|
11088
11247
|
/**
|
|
11089
|
-
* 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.
|
|
11090
11250
|
*/
|
|
11091
11251
|
unpublishAllLocales?: boolean;
|
|
11092
11252
|
/**
|
|
11093
11253
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11094
11254
|
*/
|
|
11095
|
-
user?:
|
|
11255
|
+
user?: null | User;
|
|
11096
11256
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
11097
11257
|
type ByIDOptions<TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>> = {
|
|
11098
11258
|
/**
|
|
@@ -11169,7 +11329,7 @@ type CountGlobalVersionsOptions<TSlug extends GlobalSlug> = {
|
|
|
11169
11329
|
/**
|
|
11170
11330
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11171
11331
|
*/
|
|
11172
|
-
user?:
|
|
11332
|
+
user?: null | User;
|
|
11173
11333
|
/**
|
|
11174
11334
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
11175
11335
|
*/
|
|
@@ -11259,7 +11419,7 @@ type BaseFindOneOptions<TSlug extends GlobalSlug, TSelect extends SelectType> =
|
|
|
11259
11419
|
/**
|
|
11260
11420
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11261
11421
|
*/
|
|
11262
|
-
user?:
|
|
11422
|
+
user?: null | User;
|
|
11263
11423
|
} & Pick<FindOptions<string, SelectType>, 'select'> & Pick<GlobalFindOneArgs, 'flattenLocales'>;
|
|
11264
11424
|
type Options$4<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseFindOneOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11265
11425
|
|
|
@@ -11319,7 +11479,7 @@ type Options$3<TSlug extends GlobalSlug> = {
|
|
|
11319
11479
|
/**
|
|
11320
11480
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11321
11481
|
*/
|
|
11322
|
-
user?:
|
|
11482
|
+
user?: null | User;
|
|
11323
11483
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11324
11484
|
|
|
11325
11485
|
type Options$2<TSlug extends GlobalSlug> = {
|
|
@@ -11391,7 +11551,7 @@ type Options$2<TSlug extends GlobalSlug> = {
|
|
|
11391
11551
|
/**
|
|
11392
11552
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11393
11553
|
*/
|
|
11394
|
-
user?:
|
|
11554
|
+
user?: null | User;
|
|
11395
11555
|
/**
|
|
11396
11556
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
11397
11557
|
*/
|
|
@@ -11449,7 +11609,7 @@ type Options$1<TSlug extends GlobalSlug> = {
|
|
|
11449
11609
|
/**
|
|
11450
11610
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11451
11611
|
*/
|
|
11452
|
-
user?:
|
|
11612
|
+
user?: null | User;
|
|
11453
11613
|
};
|
|
11454
11614
|
|
|
11455
11615
|
type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
@@ -11493,15 +11653,12 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
|
11493
11653
|
*/
|
|
11494
11654
|
populate?: PopulateType;
|
|
11495
11655
|
/**
|
|
11496
|
-
* 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.
|
|
11497
11658
|
*
|
|
11498
11659
|
* @default undefined
|
|
11499
11660
|
*/
|
|
11500
11661
|
publishAllLocales?: boolean;
|
|
11501
|
-
/**
|
|
11502
|
-
* Publish the document / documents with a specific locale.
|
|
11503
|
-
*/
|
|
11504
|
-
publishSpecificLocale?: TypedLocale;
|
|
11505
11662
|
/**
|
|
11506
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.
|
|
11507
11664
|
* Recommended to pass when using the Local API from hooks, as usually you want to execute the operation within the current transaction.
|
|
@@ -11517,13 +11674,14 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
|
11517
11674
|
*/
|
|
11518
11675
|
slug: TSlug;
|
|
11519
11676
|
/**
|
|
11520
|
-
* 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.
|
|
11521
11679
|
*/
|
|
11522
11680
|
unpublishAllLocales?: boolean;
|
|
11523
11681
|
/**
|
|
11524
11682
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11525
11683
|
*/
|
|
11526
|
-
user?:
|
|
11684
|
+
user?: null | User;
|
|
11527
11685
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11528
11686
|
type Options<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11529
11687
|
|
|
@@ -12300,14 +12458,21 @@ type CountVersionsOptions<TSlug extends CollectionSlug> = {
|
|
|
12300
12458
|
/**
|
|
12301
12459
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
12302
12460
|
*/
|
|
12303
|
-
user?:
|
|
12461
|
+
user?: null | User;
|
|
12304
12462
|
/**
|
|
12305
12463
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
12306
12464
|
*/
|
|
12307
12465
|
where?: Where;
|
|
12308
12466
|
};
|
|
12309
12467
|
|
|
12310
|
-
|
|
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[];
|
|
12311
12476
|
|
|
12312
12477
|
declare const baseAuthFields: Field[];
|
|
12313
12478
|
|
|
@@ -12404,7 +12569,7 @@ declare const JWTAuthentication: AuthStrategyFunction;
|
|
|
12404
12569
|
type Args$i = {
|
|
12405
12570
|
collection: SanitizedCollectionConfig;
|
|
12406
12571
|
payload: Payload;
|
|
12407
|
-
user:
|
|
12572
|
+
user: User;
|
|
12408
12573
|
};
|
|
12409
12574
|
declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$i) => Promise<void>;
|
|
12410
12575
|
|
|
@@ -12497,26 +12662,22 @@ declare const restoreVersionOperation$1: <TData extends JsonObject & TypeWithID
|
|
|
12497
12662
|
*/
|
|
12498
12663
|
declare function buildConfig(config: Config): Promise<SanitizedConfig>;
|
|
12499
12664
|
|
|
12500
|
-
|
|
12501
|
-
* @deprecated - remove in 4.0. This is error-prone, as mutating this object will affect any objects that use the defaults as a base.
|
|
12502
|
-
*/
|
|
12503
|
-
declare const defaults: Omit<Config, 'db' | 'editor' | 'secret'>;
|
|
12665
|
+
declare const addDefaultsToConfig: (config: Config) => Config;
|
|
12504
12666
|
|
|
12505
12667
|
/**
|
|
12506
12668
|
* Helper for authoring plugins with order, slug, and typed options.
|
|
12507
12669
|
* Eliminates boilerplate and ensures metadata is always set consistently.
|
|
12508
12670
|
*
|
|
12509
|
-
* The `plugin` function receives
|
|
12510
|
-
*
|
|
12671
|
+
* The `plugin` function receives `config`, `plugins` (a slug-keyed map of other
|
|
12672
|
+
* plugins), and the user-provided `options`.
|
|
12511
12673
|
*
|
|
12512
12674
|
* @experimental
|
|
12513
12675
|
*
|
|
12514
12676
|
* @example
|
|
12515
12677
|
* // With options:
|
|
12516
|
-
* export const seoPlugin = definePlugin<
|
|
12678
|
+
* export const seoPlugin = definePlugin<SEOPluginConfig>({
|
|
12517
12679
|
* slug: 'plugin-seo',
|
|
12518
|
-
*
|
|
12519
|
-
* plugin: ({ config, plugins, collections }) => ({ ...config }),
|
|
12680
|
+
* plugin: ({ config, options }) => ({ ...config }),
|
|
12520
12681
|
* })
|
|
12521
12682
|
*
|
|
12522
12683
|
* // Without options:
|
|
@@ -12531,16 +12692,17 @@ declare function definePlugin(descriptor: {
|
|
|
12531
12692
|
config: Config;
|
|
12532
12693
|
plugins: PluginsMap;
|
|
12533
12694
|
}) => Config | Promise<Config>;
|
|
12534
|
-
slug
|
|
12695
|
+
slug: string;
|
|
12535
12696
|
}): () => Plugin;
|
|
12536
|
-
declare function definePlugin<TOptions
|
|
12697
|
+
declare function definePlugin<TOptions>(descriptor: {
|
|
12537
12698
|
order?: number;
|
|
12538
12699
|
plugin: (args: {
|
|
12539
12700
|
config: Config;
|
|
12701
|
+
options: TOptions;
|
|
12540
12702
|
plugins: PluginsMap;
|
|
12541
|
-
}
|
|
12542
|
-
slug
|
|
12543
|
-
}): (options: TOptions) => Plugin;
|
|
12703
|
+
}) => Config | Promise<Config>;
|
|
12704
|
+
slug: string;
|
|
12705
|
+
}): undefined extends TOptions ? (options?: TOptions) => Plugin : (options: TOptions) => Plugin;
|
|
12544
12706
|
|
|
12545
12707
|
/**
|
|
12546
12708
|
* The body of the reorder endpoint.
|
|
@@ -13128,7 +13290,6 @@ type Args$7<TSlug extends GlobalSlug> = {
|
|
|
13128
13290
|
overrideLock?: boolean;
|
|
13129
13291
|
populate?: PopulateType;
|
|
13130
13292
|
publishAllLocales?: boolean;
|
|
13131
|
-
publishSpecificLocale?: string;
|
|
13132
13293
|
req: PayloadRequest;
|
|
13133
13294
|
showHiddenFields?: boolean;
|
|
13134
13295
|
slug: string;
|
|
@@ -13459,7 +13620,7 @@ type CreateLocalReqOptions = {
|
|
|
13459
13620
|
locale?: string;
|
|
13460
13621
|
req?: Partial<PayloadRequest>;
|
|
13461
13622
|
urlSuffix?: string;
|
|
13462
|
-
user?:
|
|
13623
|
+
user?: User;
|
|
13463
13624
|
};
|
|
13464
13625
|
type CreateLocalReq = (options: CreateLocalReqOptions, payload: Payload) => Promise<PayloadRequest>;
|
|
13465
13626
|
declare const createLocalReq: CreateLocalReq;
|
|
@@ -13721,7 +13882,7 @@ declare const getObjectDotNotation: <T>(obj: Record<string, unknown>, path: stri
|
|
|
13721
13882
|
|
|
13722
13883
|
type GetRequestLanguageArgs = {
|
|
13723
13884
|
config: SanitizedConfig;
|
|
13724
|
-
cookies: Map<string, string
|
|
13885
|
+
cookies: CookieStore | Map<string, string>;
|
|
13725
13886
|
defaultLanguage?: AcceptedLanguages;
|
|
13726
13887
|
headers: Request['headers'];
|
|
13727
13888
|
};
|
|
@@ -13815,6 +13976,71 @@ type ParseDocumentIDArgs = {
|
|
|
13815
13976
|
};
|
|
13816
13977
|
declare function parseDocumentID({ id, collectionSlug, payload }: ParseDocumentIDArgs): string | number | undefined;
|
|
13817
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
|
+
|
|
13818
14044
|
interface Args$5 {
|
|
13819
14045
|
fallbackLocale: TypedFallbackLocale;
|
|
13820
14046
|
locale: string;
|
|
@@ -13830,19 +14056,6 @@ interface Args$5 {
|
|
|
13830
14056
|
*/
|
|
13831
14057
|
declare const sanitizeFallbackLocale: ({ fallbackLocale, locale, localization, }: Args$5) => TypedFallbackLocale;
|
|
13832
14058
|
|
|
13833
|
-
type JoinParams = {
|
|
13834
|
-
[schemaPath: string]: {
|
|
13835
|
-
limit?: unknown;
|
|
13836
|
-
sort?: string;
|
|
13837
|
-
where?: unknown;
|
|
13838
|
-
} | false;
|
|
13839
|
-
} | false;
|
|
13840
|
-
/**
|
|
13841
|
-
* Convert request JoinQuery object from strings to numbers
|
|
13842
|
-
* @param joins
|
|
13843
|
-
*/
|
|
13844
|
-
declare const sanitizeJoinParams: (_joins?: JoinParams) => JoinQuery;
|
|
13845
|
-
|
|
13846
14059
|
/**
|
|
13847
14060
|
* Sanitizes REST populate query to PopulateType
|
|
13848
14061
|
*/
|
|
@@ -13853,6 +14066,8 @@ declare const sanitizePopulateParam: (unsanitizedPopulate: unknown) => PopulateT
|
|
|
13853
14066
|
*/
|
|
13854
14067
|
declare const sanitizeSelectParam: (unsanitizedSelect: unknown) => SelectType | undefined;
|
|
13855
14068
|
|
|
14069
|
+
declare const sanitizeSortParams: (sort: unknown) => string[] | undefined;
|
|
14070
|
+
|
|
13856
14071
|
/**
|
|
13857
14072
|
* This is used for the Select API to strip out fields that are not selected.
|
|
13858
14073
|
* It will mutate the given data object and determine if your recursive function should continue to run.
|
|
@@ -13981,32 +14196,6 @@ declare const getLatestGlobalVersion: ({ slug, config, locale, payload, publishe
|
|
|
13981
14196
|
globalExists: boolean;
|
|
13982
14197
|
}>;
|
|
13983
14198
|
|
|
13984
|
-
type LocalizeStatusArgs$1 = {
|
|
13985
|
-
collectionSlug?: string;
|
|
13986
|
-
globalSlug?: string;
|
|
13987
|
-
payload: Payload;
|
|
13988
|
-
req?: any;
|
|
13989
|
-
};
|
|
13990
|
-
|
|
13991
|
-
type LocalizeStatusArgs = {
|
|
13992
|
-
collectionSlug?: string;
|
|
13993
|
-
db: any;
|
|
13994
|
-
globalSlug?: string;
|
|
13995
|
-
payload: Payload;
|
|
13996
|
-
req?: any;
|
|
13997
|
-
sql: any;
|
|
13998
|
-
};
|
|
13999
|
-
|
|
14000
|
-
type LocalizeStatusMigration = {
|
|
14001
|
-
down: (args: any) => Promise<void>;
|
|
14002
|
-
up: (args: any) => Promise<void>;
|
|
14003
|
-
};
|
|
14004
|
-
/**
|
|
14005
|
-
* Main entry point for localizeStatus migration.
|
|
14006
|
-
* Detects database type and dispatches to appropriate implementation.
|
|
14007
|
-
*/
|
|
14008
|
-
declare const localizeStatus: LocalizeStatusMigration;
|
|
14009
|
-
|
|
14010
14199
|
type Args<T extends JsonObject = JsonObject> = {
|
|
14011
14200
|
autosave?: boolean;
|
|
14012
14201
|
collection?: SanitizedCollectionConfig;
|
|
@@ -14016,11 +14205,9 @@ type Args<T extends JsonObject = JsonObject> = {
|
|
|
14016
14205
|
id?: number | string;
|
|
14017
14206
|
operation?: 'create' | 'restoreVersion' | 'update';
|
|
14018
14207
|
payload: Payload;
|
|
14019
|
-
publishSpecificLocale?: string;
|
|
14020
14208
|
req?: PayloadRequest;
|
|
14021
14209
|
returning?: boolean;
|
|
14022
14210
|
select?: SelectType;
|
|
14023
|
-
snapshot?: any;
|
|
14024
14211
|
unpublish?: boolean;
|
|
14025
14212
|
};
|
|
14026
14213
|
declare function saveVersion<TData extends JsonObject = JsonObject>(args: {
|
|
@@ -14139,7 +14326,52 @@ interface UntypedPayloadTypes {
|
|
|
14139
14326
|
};
|
|
14140
14327
|
};
|
|
14141
14328
|
locale: null | string;
|
|
14142
|
-
|
|
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
|
+
};
|
|
14143
14375
|
widgets: {
|
|
14144
14376
|
[slug: string]: JsonObject;
|
|
14145
14377
|
};
|
|
@@ -14202,13 +14434,13 @@ type GlobalSlug<T extends PayloadTypesShape = PayloadTypes> = StringKeyOf<T['glo
|
|
|
14202
14434
|
type TypedLocale<T extends PayloadTypesShape = PayloadTypes> = T['locale'];
|
|
14203
14435
|
type TypedFallbackLocale = PayloadTypes['fallbackLocale'];
|
|
14204
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.
|
|
14205
14440
|
*
|
|
14206
|
-
*
|
|
14207
|
-
* auth-enabled collections.
|
|
14208
|
-
*
|
|
14209
|
-
* @todo rename to `User` in 4.0
|
|
14441
|
+
* Not the signed-in `req.user`, which also has `_strategy` and `_sid` - use `AuthenticatedUser`.
|
|
14210
14442
|
*/
|
|
14211
|
-
type
|
|
14443
|
+
type User = PayloadTypes['user'];
|
|
14212
14444
|
type TypedAuthOperations<T extends PayloadTypesShape = PayloadTypes> = T['auth'];
|
|
14213
14445
|
type AuthCollectionSlug<T extends PayloadTypesShape = PayloadTypes> = StringKeyOf<T['auth']>;
|
|
14214
14446
|
type TypedJobs = PayloadTypes['jobs'];
|
|
@@ -14456,15 +14688,13 @@ declare class BasePayload {
|
|
|
14456
14688
|
declare const initialized: BasePayload;
|
|
14457
14689
|
|
|
14458
14690
|
declare const reload: (config: SanitizedConfig, payload: Payload, skipImportMapGeneration?: boolean, options?: InitOptions) => Promise<void>;
|
|
14459
|
-
/**
|
|
14460
|
-
* Get a payload instance.
|
|
14461
|
-
* This function is a wrapper around new BasePayload().init() that adds the following functionality on top of that:
|
|
14462
|
-
*
|
|
14463
|
-
* - smartly caches Payload instance on the module scope. That way, we prevent unnecessarily initializing Payload over and over again
|
|
14464
|
-
* when calling getPayload multiple times or from multiple locations.
|
|
14465
|
-
* - adds HMR support and reloads the payload instance when the config changes.
|
|
14466
|
-
*/
|
|
14467
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;
|
|
14468
14698
|
/**
|
|
14469
14699
|
* A unique key to identify the payload instance. You can pass your own key if you want to cache this payload instance separately.
|
|
14470
14700
|
* This is useful if you pass a different payload config for each instance.
|
|
@@ -14501,5 +14731,5 @@ interface GlobalAdminCustom extends Record<string, any> {
|
|
|
14501
14731
|
interface GlobalAdminCustom extends Record<string, any> {
|
|
14502
14732
|
}
|
|
14503
14733
|
|
|
14504
|
-
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,
|
|
14505
|
-
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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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 };
|