payload 4.0.0-internal.d28e9fb → 4.0.0-internal.fa345ef
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/admin/RichText.d.ts +4 -17
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- package/dist/admin/adapters/cookies.d.ts +21 -0
- package/dist/admin/adapters/cookies.d.ts.map +1 -0
- package/dist/admin/adapters/cookies.js +3 -0
- package/dist/admin/adapters/cookies.js.map +1 -0
- package/dist/admin/adapters/devReload.d.ts +9 -0
- package/dist/admin/adapters/devReload.d.ts.map +1 -0
- package/dist/admin/adapters/devReload.js +6 -0
- package/dist/admin/adapters/devReload.js.map +1 -0
- package/dist/admin/adapters/index.d.ts +7 -0
- package/dist/admin/adapters/index.d.ts.map +1 -0
- package/dist/admin/adapters/index.js +3 -0
- package/dist/admin/adapters/index.js.map +1 -0
- package/dist/admin/adapters/render.d.ts +16 -0
- package/dist/admin/adapters/render.d.ts.map +1 -0
- package/dist/admin/adapters/render.js +7 -0
- package/dist/admin/adapters/render.js.map +1 -0
- package/dist/admin/adapters/router.d.ts +56 -0
- package/dist/admin/adapters/router.d.ts.map +1 -0
- package/dist/admin/adapters/router.js +3 -0
- package/dist/admin/adapters/router.js.map +1 -0
- package/dist/admin/adapters/server.d.ts +23 -0
- package/dist/admin/adapters/server.d.ts.map +1 -0
- package/dist/admin/adapters/server.js +6 -0
- package/dist/admin/adapters/server.js.map +1 -0
- package/dist/admin/adapters/views.d.ts +36 -0
- package/dist/admin/adapters/views.d.ts.map +1 -0
- package/dist/admin/adapters/views.js +7 -0
- package/dist/admin/adapters/views.js.map +1 -0
- package/dist/admin/elements/Table.d.ts +1 -0
- package/dist/admin/elements/Table.d.ts.map +1 -1
- package/dist/admin/elements/Table.js.map +1 -1
- package/dist/admin/fields/Row.d.ts +2 -2
- package/dist/admin/fields/Row.d.ts.map +1 -1
- package/dist/admin/fields/Row.js.map +1 -1
- package/dist/admin/forms/Description.d.ts +2 -2
- package/dist/admin/forms/Description.d.ts.map +1 -1
- package/dist/admin/forms/Description.js.map +1 -1
- package/dist/admin/forms/Field.d.ts +10 -5
- package/dist/admin/forms/Field.d.ts.map +1 -1
- package/dist/admin/forms/Field.js.map +1 -1
- package/dist/admin/functions/index.d.ts +9 -0
- package/dist/admin/functions/index.d.ts.map +1 -1
- package/dist/admin/functions/index.js.map +1 -1
- package/dist/admin/types.d.ts +3 -2
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/admin/views/dashboard.d.ts +7 -0
- package/dist/admin/views/dashboard.d.ts.map +1 -1
- package/dist/admin/views/dashboard.js.map +1 -1
- package/dist/admin/views/document.d.ts +5 -3
- package/dist/admin/views/document.d.ts.map +1 -1
- package/dist/admin/views/document.js.map +1 -1
- package/dist/admin/views/hierarchyList.d.ts +1 -0
- package/dist/admin/views/hierarchyList.d.ts.map +1 -1
- package/dist/admin/views/hierarchyList.js.map +1 -1
- package/dist/admin/views/list.d.ts +10 -1
- package/dist/admin/views/list.d.ts.map +1 -1
- package/dist/admin/views/list.js.map +1 -1
- package/dist/auth/baseFields/apiKey.d.ts +10 -2
- package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
- package/dist/auth/baseFields/apiKey.js +35 -24
- package/dist/auth/baseFields/apiKey.js.map +1 -1
- package/dist/auth/cookies.d.ts.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.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.map +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.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 +6 -17
- 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 +28 -21
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/types.js.map +1 -1
- package/dist/bin/build.d.ts +25 -0
- package/dist/bin/build.d.ts.map +1 -0
- package/dist/bin/build.js +80 -0
- package/dist/bin/build.js.map +1 -0
- package/dist/bin/build.spec.js +170 -0
- package/dist/bin/build.spec.js.map +1 -0
- package/dist/bin/generateImportMap/index.d.ts.map +1 -1
- package/dist/bin/generateImportMap/index.js +8 -5
- package/dist/bin/generateImportMap/index.js.map +1 -1
- package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateCollections.js +11 -0
- package/dist/bin/generateImportMap/iterateCollections.js.map +1 -1
- package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateConfig.js +12 -0
- package/dist/bin/generateImportMap/iterateConfig.js.map +1 -1
- package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateFields.js +4 -1
- package/dist/bin/generateImportMap/iterateFields.js.map +1 -1
- package/dist/bin/generateImportMap/utilities/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 +32 -18
- package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js.map +1 -1
- package/dist/bin/generateTypes.d.ts +3 -2
- package/dist/bin/generateTypes.d.ts.map +1 -1
- package/dist/bin/generateTypes.js +11 -1
- package/dist/bin/generateTypes.js.map +1 -1
- package/dist/bin/index.d.ts.map +1 -1
- package/dist/bin/index.js +9 -0
- package/dist/bin/index.js.map +1 -1
- package/dist/bin/loadEnv.d.ts +3 -1
- package/dist/bin/loadEnv.d.ts.map +1 -1
- package/dist/bin/loadEnv.js +40 -10
- package/dist/bin/loadEnv.js.map +1 -1
- package/dist/bin/migrate.d.ts.map +1 -1
- package/dist/collections/config/client.d.ts +1 -1
- package/dist/collections/config/client.d.ts.map +1 -1
- package/dist/collections/config/client.js +1 -0
- package/dist/collections/config/client.js.map +1 -1
- package/dist/collections/config/defaults.d.ts +0 -4
- package/dist/collections/config/defaults.d.ts.map +1 -1
- package/dist/collections/config/defaults.js +2 -17
- package/dist/collections/config/defaults.js.map +1 -1
- package/dist/collections/config/defaults.spec.js +47 -0
- package/dist/collections/config/defaults.spec.js.map +1 -0
- package/dist/collections/config/sanitize.d.ts +10 -1
- package/dist/collections/config/sanitize.d.ts.map +1 -1
- package/dist/collections/config/sanitize.js +214 -230
- 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 +11 -7
- 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.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.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 +0 -9
- package/dist/collections/operations/utilities/types.d.ts.map +1 -1
- package/dist/collections/operations/utilities/types.js.map +1 -1
- package/dist/collections/operations/utilities/update.d.ts +1 -2
- package/dist/collections/operations/utilities/update.d.ts.map +1 -1
- package/dist/collections/operations/utilities/update.js +64 -65
- package/dist/collections/operations/utilities/update.js.map +1 -1
- package/dist/config/build.d.ts.map +1 -1
- package/dist/config/build.js +8 -0
- package/dist/config/build.js.map +1 -1
- package/dist/config/client.d.ts +3 -3
- package/dist/config/client.d.ts.map +1 -1
- package/dist/config/client.js +2 -1
- package/dist/config/client.js.map +1 -1
- package/dist/config/defaults.d.ts +0 -4
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +0 -78
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/definePlugin.d.ts +10 -10
- package/dist/config/definePlugin.d.ts.map +1 -1
- package/dist/config/definePlugin.js +7 -11
- package/dist/config/definePlugin.js.map +1 -1
- package/dist/config/orderable/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 +362 -271
- package/dist/config/sanitize.js.map +1 -1
- package/dist/config/types.d.ts +125 -38
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +2 -0
- package/dist/config/types.js.map +1 -1
- package/dist/database/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/duplicateDocument/index.d.ts.map +1 -1
- package/dist/email/getStringifiedToAddress.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 +0 -1
- package/dist/exports/internal.d.ts.map +1 -1
- package/dist/exports/internal.js +0 -1
- 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 -1
- package/dist/exports/shared.d.ts.map +1 -1
- package/dist/exports/shared.js +23 -1
- package/dist/exports/shared.js.map +1 -1
- package/dist/fields/baseFields/slug/countVersions.d.ts.map +1 -1
- package/dist/fields/baseFields/slug/generateSlug.d.ts.map +1 -1
- package/dist/fields/baseFields/slug/index.js +1 -1
- package/dist/fields/baseFields/slug/index.js.map +1 -1
- package/dist/fields/config/client.d.ts +3 -3
- package/dist/fields/config/client.d.ts.map +1 -1
- package/dist/fields/config/client.js +12 -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 +315 -338
- 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 +45 -66
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js +1 -1
- package/dist/fields/config/types.js.map +1 -1
- package/dist/fields/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 +12 -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 +11 -2
- package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
- 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/validations.d.ts.map +1 -1
- package/dist/fields/validations.js +5 -4
- package/dist/fields/validations.js.map +1 -1
- package/dist/globals/config/client.d.ts.map +1 -1
- package/dist/globals/config/sanitize.d.ts +6 -1
- package/dist/globals/config/sanitize.d.ts.map +1 -1
- package/dist/globals/config/sanitize.js +122 -132
- 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/resolveHierarchyCollections.js +1 -1
- package/dist/hierarchy/resolveHierarchyCollections.js.map +1 -1
- package/dist/hierarchy/sanitizeHierarchyCollection.d.ts.map +1 -1
- package/dist/hierarchy/sanitizeHierarchyCollection.js +3 -1
- package/dist/hierarchy/sanitizeHierarchyCollection.js.map +1 -1
- package/dist/hierarchy/types.d.ts +8 -1
- package/dist/hierarchy/types.d.ts.map +1 -1
- package/dist/hierarchy/types.js.map +1 -1
- package/dist/index.bundled.d.ts +808 -366
- package/dist/index.d.ts +72 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +55 -55
- 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/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 +4 -0
- 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 +77 -37
- package/dist/query-presets/config.js.map +1 -1
- package/dist/query-presets/constraints.d.ts.map +1 -1
- package/dist/query-presets/constraints.js +3 -2
- package/dist/query-presets/constraints.js.map +1 -1
- package/dist/queues/config/collection.d.ts.map +1 -1
- package/dist/queues/config/collection.js +2 -1
- package/dist/queues/config/collection.js.map +1 -1
- package/dist/queues/config/generateJobsJSONSchemas.d.ts +1 -1
- package/dist/queues/config/generateJobsJSONSchemas.d.ts.map +1 -1
- package/dist/queues/config/generateJobsJSONSchemas.js +33 -12
- package/dist/queues/config/generateJobsJSONSchemas.js.map +1 -1
- package/dist/queues/config/global.d.ts.map +1 -1
- package/dist/queues/config/global.js +2 -1
- package/dist/queues/config/global.js.map +1 -1
- package/dist/queues/endpoints/run.d.ts.map +1 -1
- 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/index.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/index.d.ts +18 -8
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/uploads/checkFileAccess.d.ts.map +1 -1
- package/dist/uploads/checkFileRestrictions.d.ts.map +1 -1
- package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
- package/dist/uploads/endpoints/getFileFromURL.d.ts.map +1 -1
- package/dist/uploads/endpoints/getFileFromURL.js +9 -5
- package/dist/uploads/endpoints/getFileFromURL.js.map +1 -1
- package/dist/uploads/fetchAPI-multipart/isEligibleRequest.d.ts.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/getBaseFields.js +7 -19
- package/dist/uploads/getBaseFields.js.map +1 -1
- package/dist/uploads/getExternalFile.d.ts.map +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.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 +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 +33 -29
- 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 +68 -16
- package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
- package/dist/utilities/configToJSONSchema.js +311 -117
- package/dist/utilities/configToJSONSchema.js.map +1 -1
- package/dist/utilities/configToJSONSchema.spec.js +619 -85
- package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
- package/dist/utilities/createLocalReq.d.ts +2 -2
- package/dist/utilities/createLocalReq.d.ts.map +1 -1
- package/dist/utilities/createLocalReq.js.map +1 -1
- package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
- package/dist/utilities/createPayloadRequest.js +1 -0
- package/dist/utilities/createPayloadRequest.js.map +1 -1
- package/dist/utilities/deepCopyObject.d.ts.map +1 -1
- package/dist/utilities/deepCopyObject.js +8 -0
- package/dist/utilities/deepCopyObject.js.map +1 -1
- package/dist/utilities/dependencies/dependencyChecker.js +1 -1
- package/dist/utilities/dependencies/dependencyChecker.js.map +1 -1
- package/dist/utilities/dependencies/getDependencies.d.ts.map +1 -1
- package/dist/utilities/dependencies/getDependencies.js +5 -5
- package/dist/utilities/dependencies/getDependencies.js.map +1 -1
- package/dist/utilities/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 +78 -102
- 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.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.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 -4
- package/dist/utilities/handleEndpoints.js.map +1 -1
- package/dist/utilities/headersWithCors.d.ts.map +1 -1
- package/dist/utilities/isEntityHidden.d.ts.map +1 -1
- package/dist/utilities/isURLAllowed.d.ts.map +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.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/optionsAreEqual.d.ts.map +1 -1
- package/dist/utilities/parseBooleanString.d.ts.map +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/events/adminInit.d.ts.map +1 -1
- package/dist/utilities/telemetry/events/serverInit.d.ts.map +1 -1
- package/dist/utilities/telemetry/index.d.ts.map +1 -1
- 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/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/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 +2 -9
- package/dist/versions/schedule/job.js.map +1 -1
- package/dist/versions/types.d.ts +2 -15
- package/dist/versions/types.d.ts.map +1 -1
- package/dist/versions/types.js.map +1 -1
- package/package.json +23 -20
- package/dist/database/migrations/templates/localizeStatus.d.ts +0 -10
- package/dist/database/migrations/templates/localizeStatus.d.ts.map +0 -1
- package/dist/database/migrations/templates/localizeStatus.js +0 -54
- package/dist/database/migrations/templates/localizeStatus.js.map +0 -1
- package/dist/utilities/sanitizeProfiler.d.ts +0 -38
- package/dist/utilities/sanitizeProfiler.d.ts.map +0 -1
- package/dist/utilities/sanitizeProfiler.js +0 -101
- package/dist/utilities/sanitizeProfiler.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/index.d.ts +0 -12
- package/dist/versions/migrations/localizeStatus/index.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/index.js +0 -33
- package/dist/versions/migrations/localizeStatus/index.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/down.d.ts +0 -9
- package/dist/versions/migrations/localizeStatus/mongo/down.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/down.js +0 -112
- package/dist/versions/migrations/localizeStatus/mongo/down.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/index.d.ts +0 -8
- package/dist/versions/migrations/localizeStatus/mongo/index.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/index.js +0 -8
- package/dist/versions/migrations/localizeStatus/mongo/index.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/up.d.ts +0 -9
- package/dist/versions/migrations/localizeStatus/mongo/up.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/up.js +0 -220
- package/dist/versions/migrations/localizeStatus/mongo/up.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/down.d.ts +0 -11
- package/dist/versions/migrations/localizeStatus/sql/down.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/down.js +0 -213
- package/dist/versions/migrations/localizeStatus/sql/down.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/index.d.ts +0 -8
- package/dist/versions/migrations/localizeStatus/sql/index.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/index.js +0 -8
- package/dist/versions/migrations/localizeStatus/sql/index.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.d.ts +0 -13
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.js +0 -51
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.d.ts +0 -13
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.js +0 -54
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/up.d.ts +0 -11
- package/dist/versions/migrations/localizeStatus/sql/up.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/up.js +0 -277
- package/dist/versions/migrations/localizeStatus/sql/up.js.map +0 -1
- package/dist/versions/saveSnapshot.d.ts +0 -18
- package/dist/versions/saveSnapshot.d.ts.map +0 -1
- package/dist/versions/saveSnapshot.js +0 -38
- package/dist/versions/saveSnapshot.js.map +0 -1
package/dist/index.bundled.d.ts
CHANGED
|
@@ -15,11 +15,10 @@ import { ParsedArgs } from 'minimist';
|
|
|
15
15
|
import { lookup } from 'dns';
|
|
16
16
|
import deepMerge from 'deepmerge';
|
|
17
17
|
export { default as deepMerge } from 'deepmerge';
|
|
18
|
-
import { ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adapters/request-cookies.js';
|
|
19
18
|
import { PinoPretty } from 'pino-pretty';
|
|
20
19
|
import { DatePickerProps } from 'react-datepicker';
|
|
21
20
|
|
|
22
|
-
declare const clientTranslationKeys: ("authentication:account" | "authentication:accountOfCurrentUser" | "authentication:accountVerified" | "authentication:alreadyActivated" | "authentication:alreadyLoggedIn" | "authentication:apiKey" | "authentication:authenticated" | "authentication:backToLogin" | "authentication:beginCreateFirstUser" | "authentication:changePassword" | "authentication:checkYourEmailForPasswordReset" | "authentication:confirmGeneration" | "authentication:confirmPassword" | "authentication:createFirstUser" | "authentication:emailNotValid" | "authentication:emailOrUsername" | "authentication:emailSent" | "authentication:emailVerified" | "authentication:enableAPIKey" | "authentication:failedToUnlock" | "authentication:forceUnlock" | "authentication:forgotPassword" | "authentication:forgotPasswordEmailInstructions" | "authentication:forgotPasswordUsernameInstructions" | "authentication:usernameNotValid" | "authentication:forgotPasswordQuestion" | "authentication:generate" | "authentication:generateNewAPIKey" | "authentication:generatingNewAPIKeyWillInvalidate" | "authentication:logBackIn" | "authentication:loggedIn" | "authentication:loggedInChangePassword" | "authentication:loggedOutInactivity" | "authentication:loggedOutSuccessfully" | "authentication:loggingOut" | "authentication:login" | "authentication:logOut" | "authentication:logout" | "authentication:logoutSuccessful" | "authentication:logoutUser" | "authentication:newAPIKeyGenerated" | "authentication:newPassword" | "authentication:passed" | "authentication:passwordResetSuccessfully" | "authentication:resetPassword" | "authentication:stayLoggedIn" | "authentication:successfullyRegisteredFirstUser" | "authentication:successfullyUnlocked" | "authentication:tokenRefreshSuccessful" | "authentication:unableToVerify" | "authentication:username" | "authentication:verified" | "authentication:verifiedSuccessfully" | "authentication:verify" | "authentication:verifyUser" | "authentication:youAreInactive" | "dashboard:addButton" | "dashboard:addWidget" | "dashboard:deleteWidget" | "dashboard:discardConfirmLabel" | "dashboard:discardMessage" | "dashboard:discardTitle" | "dashboard:editDashboard" | "dashboard:editingDashboard" | "dashboard:noItems" | "dashboard:resetLayout" | "dashboard:searchWidgets" | "error:autosaving" | "error:correctInvalidFields" | "error:deletingTitle" | "error:documentNotFound" | "error:emailOrPasswordIncorrect" | "error:failedToResetLayout" | "error:failedToSaveLayout" | "error:insufficientClipboardPermissions" | "error:invalidClipboardData" | "error:invalidFileType" | "error:invalidRequestArgs" | "error:loadingDocument" | "error:logoutFailed" | "error:noMatchedField" | "error:notAllowedToAccessPage" | "error:notAllowedToPerformAction" | "error:previewing" | "error:problemUploadingFile" | "error:restoringTitle" | "error:revertingDocument" | "error:tokenNotProvided" | "error:unableToCopy" | "error:unableToDeleteCount" | "error:unableToReindexCollection" | "error:unableToUpdateCount" | "error:unauthorized" | "error:unauthorizedAdmin" | "error:unknown" | "error:unPublishingDocument" | "error:unspecific" | "error:unverifiedEmail" | "error:userEmailAlreadyRegistered" | "error:usernameAlreadyRegistered" | "error:usernameOrPasswordIncorrect" | "fields:blocks" | "fields:addLabel" | "fields:addLink" | "fields:addNew" | "fields:addNewLabel" | "fields:addRelationship" | "fields:addUpload" | "fields:block" | "fields:blockType" | "fields:chooseBetweenCustomTextOrDocument" | "fields:chooseDocumentToLink" | "fields:chooseFromExisting" | "fields:collapseAll" | "fields:customURL" | "fields:editLink" | "fields:editRelationship" | "fields:enterURL" | "fields:hidePassword" | "fields:internalLink" | "fields:itemsAndMore" | "fields:labelRelationship" | "fields:latitude" | "fields:linkedTo" | "fields:linkType" | "fields:longitude" | "fields:openInNewTab" | "fields:passwordsDoNotMatch" | "fields:removeRelationship" | "fields:removeUpload" | "fields:saveChanges" | "fields:searchForBlock" | "fields:searchForLanguage" | "fields:selectFieldsToEdit" | "fields:showAll" | "fields:showPassword" | "fields:swapRelationship" | "fields:swapUpload" | "fields:textToDisplay" | "fields:toggleBlock" | "fields:uploadNewLabel" | "general:items" | "general:of" | "general:language" | "general:dashboard" | "general:error" | "general:username" | "general:notFound" | "general:unauthorized" | "general:newLabel" | "general:saveChanges" | "general:name" | "general:aboutToDelete" | "general:aboutToPermanentlyDelete" | "general:aboutToPermanentlyDeleteTrash" | "general:aboutToRestore" | "general:aboutToRestoreAsDraft" | "general:aboutToRestoreAsDraftCount" | "general:aboutToRestoreCount" | "general:aboutToTrash" | "general:aboutToTrashCount" | "general:accepts" | "general:addBelow" | "general:addFilter" | "general:adminTheme" | "general:all" | "general:allCollections" | "general:allLocales" | "general:and" | "general:anotherUser" | "general:anotherUserTakenOver" | "general:applyChanges" | "general:ascending" | "general:automatic" | "general:backToDashboard" | "general:by" | "general:cancel" | "general:changesNotSaved" | "general:clear" | "general:clearAll" | "general:close" | "general:collapse" | "general:collection" | "general:collections" | "general:columns" | "general:columnToSort" | "general:confirm" | "general:confirmCopy" | "general:confirmDeletion" | "general:confirmDuplication" | "general:confirmMove" | "general:confirmReindex" | "general:confirmReindexAll" | "general:confirmReindexDescription" | "general:confirmReindexDescriptionAll" | "general:confirmRestoration" | "general:copied" | "general:copy" | "general:copyField" | "general:copying" | "general:copyRow" | "general:copyWarning" | "general:create" | "general:created" | "general:createdAt" | "general:createNew" | "general:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:custom" | "general:dark" | "general:decrement" | "general:delete" | "general:deleted" | "general:deletedAt" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleteLabel" | "general:deletePermanently" | "general:deleting" | "general:depth" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documentIsTrashed" | "general:documentLocked" | "general:documentModified" | "general:documentOutOfDate" | "general:documents" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editedSince" | "general:editing" | "general:editingTakenOver" | "general:editLabel" | "general:email" | "general:emailAddress" | "general:emptyTrash" | "general:emptyTrashLabel" | "general:enterANumber" | "general:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:export" | "general:fallbackToDefaultLocale" | "general:false" | "general:filter" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:import" | "general:increment" | "general:isEditing" | "general:item" | "general:lastModified" | "general:layout" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:loadMore" | "general:locale" | "general:locales" | "general:lock" | "general:menu" | "general:moreOptions" | "general:move" | "general:moveConfirm" | "general:moveCount" | "general:moveDown" | "general:moveUp" | "general:moving" | "general:movingCount" | "general:next" | "general:no" | "general:noDateSelected" | "general:noFiltersSet" | "general:noLabel" | "general:none" | "general:noOptions" | "general:noResults" | "general:noResultsDescription" | "general:noResultsFound" | "general:nothingFound" | "general:noTrashResults" | "general:noUpcomingEventsScheduled" | "general:noValue" | "general:only" | "general:open" | "general:openInNewWindow" | "general:or" | "general:order" | "general:overwriteExistingData" | "general:pageNotFound" | "general:password" | "general:pasteField" | "general:pasteRow" | "general:payloadSettings" | "general:permanentlyDelete" | "general:permanentlyDeletedCountSuccessfully" | "general:perPage" | "general:previous" | "general:reindex" | "general:reindexingAll" | "general:reloadDocument" | "general:remove" | "general:rename" | "general:reset" | "general:resetPreferences" | "general:resetPreferencesDescription" | "general:resettingPreferences" | "general:restore" | "general:restoreAsPublished" | "general:restoredCountSuccessfully" | "general:restoring" | "general:retry" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:schedulePublishFor" | "general:searchBy" | "general:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:showAllLabel" | "general:sorryNotFound" | "general:sort" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:successfullyReindexed" | "general:takeOver" | "general:thisLanguage" | "general:time" | "general:timezone" | "general:titleDeleted" | "general:titleRestored" | "general:titleTrashed" | "general:trash" | "general:trashedCountSuccessfully" | "general:true" | "general:unlock" | "general:unsavedChanges" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:upcomingEvents" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedLabelSuccessfully" | "general:updatedSuccessfully" | "general:updateForEveryone" | "general:updating" | "general:uploading" | "general:uploadingBulk" | "general:user" | "general:users" | "general:value" | "general:viewing" | "general:viewReadOnly" | "general:welcome" | "general:yes" | "hierarchy:noResults" | "hierarchy:itemsMovedTo" | "hierarchy:itemsMovedToRoot" | "hierarchy:moveItemsToRootConfirmation" | "hierarchy:moveToRoot" | "hierarchy:noParent" | "hierarchy:searchLabel" | "localization:cannotCopySameLocale" | "localization:copyFrom" | "localization:copyFromTo" | "localization:copyTo" | "localization:copyToLocale" | "localization:localeToPublish" | "localization:selectedLocales" | "localization:selectLocaleToCopy" | "localization:selectLocaleToDuplicate" | "operators:contains" | "operators:equals" | "operators:exists" | "operators:intersects" | "operators:near" | "operators:within" | "operators:isGreaterThan" | "operators:isGreaterThanOrEqualTo" | "operators:isIn" | "operators:isLessThan" | "operators:isLessThanOrEqualTo" | "operators:isLike" | "operators:isNotEqualTo" | "operators:isNotIn" | "operators:isNotLike" | "upload:addFile" | "upload:addFiles" | "upload:bulkUpload" | "upload:crop" | "upload:cropToolDescription" | "upload:download" | "upload:dragAndDrop" | "upload:editImage" | "upload:fileName" | "upload:fileSize" | "upload:filesToUpload" | "upload:fileToUpload" | "upload:focalPoint" | "upload:focalPointDescription" | "upload:height" | "upload:noFile" | "upload:pasteURL" | "upload:previewSizes" | "upload:selectCollectionToBrowse" | "upload:selectFile" | "upload:setCropArea" | "upload:setFocalPoint" | "upload:sizes" | "upload:sizesFor" | "upload:width" | "validation:username" | "validation:emailAddress" | "validation:enterNumber" | "validation:fieldHasNo" | "validation:greaterThanMax" | "validation:invalidBlock" | "validation:invalidBlocks" | "validation:invalidInput" | "validation:invalidSelection" | "validation:invalidSelections" | "validation:latitudeOutOfBounds" | "validation:lessThanMin" | "validation:limitReached" | "validation:longerThanMin" | "validation:longitudeOutOfBounds" | "validation:notValidDate" | "validation:required" | "validation:requiresAtLeast" | "validation:requiresNoMoreThan" | "validation:requiresTwoNumbers" | "validation:shorterThanMax" | "validation:timezoneRequired" | "validation:trueOrFalse" | "validation:validUploadID" | "version:version" | "version:aboutToRestore" | "version:restoring" | "version:type" | "version:aboutToPublishSelection" | "version:aboutToRestoreGlobal" | "version:aboutToRevertToPublished" | "version:aboutToUnpublish" | "version:aboutToUnpublishIn" | "version:aboutToUnpublishSelection" | "version:autosave" | "version:autosavedSuccessfully" | "version:autosavedVersion" | "version:changed" | "version:compareVersions" | "version:comparingAgainst" | "version:confirmPublish" | "version:confirmRevertToSaved" | "version:confirmUnpublish" | "version:confirmVersionRestoration" | "version:currentDraft" | "version:currentlyPublished" | "version:currentlyViewing" | "version:currentPublishedVersion" | "version:draft" | "version:draftHasPublishedVersion" | "version:draftSavedSuccessfully" | "version:lastSavedAgo" | "version:modifiedOnly" | "version:moreVersions" | "version:noFurtherVersionsFound" | "version:noLabelGroup" | "version:noRowsFound" | "version:noRowsSelected" | "version:preview" | "version:previouslyDraft" | "version:previouslyPublished" | "version:previousVersion" | "version:problemRestoringVersion" | "version:publish" | "version:publishAllLocales" | "version:publishChanges" | "version:published" | "version:publishIn" | "version:publishing" | "version:restoreAsDraft" | "version:restoredSuccessfully" | "version:restoreThisVersion" | "version:reverting" | "version:revertToPublished" | "version:revertUnsuccessful" | "version:saveDraft" | "version:scheduledSuccessfully" | "version:schedulePublish" | "version:selectLocales" | "version:selectVersionToCompare" | "version:showLocales" | "version:specificVersion" | "version:status" | "version:unpublish" | "version:unpublished" | "version:unpublishedSuccessfully" | "version:unpublishIn" | "version:unpublishing" | "version:versionAgo" | "version:versionID" | "version:versions" | "version:viewingVersion" | "version:viewingVersionGlobal" | "version:viewingVersions" | "version:viewingVersionsGlobal" | "general:aboutToDeleteCount" | "general:editingLabel" | "version:changedFieldsCount")[];
|
|
21
|
+
declare const clientTranslationKeys: ("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: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:notRedirected" | "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" | "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" | "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" | "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:access" | "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: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: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:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:settings" | "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: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:user" | "general:users" | "general:value" | "general:viewing" | "general:viewReadOnly" | "general:welcome" | "general:where" | "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: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" | "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")[];
|
|
23
22
|
|
|
24
23
|
declare const enTranslations: {
|
|
25
24
|
authentication: {
|
|
@@ -37,10 +36,12 @@ declare const enTranslations: {
|
|
|
37
36
|
confirmGeneration: string;
|
|
38
37
|
confirmPassword: string;
|
|
39
38
|
createFirstUser: string;
|
|
39
|
+
createUser: string;
|
|
40
40
|
emailNotValid: string;
|
|
41
41
|
emailOrUsername: string;
|
|
42
42
|
emailSent: string;
|
|
43
43
|
emailVerified: string;
|
|
44
|
+
emailVerifiedRedirecting: string;
|
|
44
45
|
enableAPIKey: string;
|
|
45
46
|
failedToUnlock: string;
|
|
46
47
|
forceUnlock: string;
|
|
@@ -70,6 +71,7 @@ declare const enTranslations: {
|
|
|
70
71
|
newAccountCreated: string;
|
|
71
72
|
newAPIKeyGenerated: string;
|
|
72
73
|
newPassword: string;
|
|
74
|
+
notRedirected: string;
|
|
73
75
|
passed: string;
|
|
74
76
|
passwordResetSuccessfully: string;
|
|
75
77
|
resetPassword: string;
|
|
@@ -82,6 +84,7 @@ declare const enTranslations: {
|
|
|
82
84
|
tokenRefreshSuccessful: string;
|
|
83
85
|
unableToVerify: string;
|
|
84
86
|
username: string;
|
|
87
|
+
verificationFailedRequestNew: string;
|
|
85
88
|
verified: string;
|
|
86
89
|
verifiedSuccessfully: string;
|
|
87
90
|
verify: string;
|
|
@@ -91,6 +94,22 @@ declare const enTranslations: {
|
|
|
91
94
|
youAreReceivingResetPassword: string;
|
|
92
95
|
youDidNotRequestPassword: string;
|
|
93
96
|
};
|
|
97
|
+
commandPalette: {
|
|
98
|
+
actions: string;
|
|
99
|
+
createNew: string;
|
|
100
|
+
favorites: string;
|
|
101
|
+
hintActions: string;
|
|
102
|
+
hintClose: string;
|
|
103
|
+
hintCreate: string;
|
|
104
|
+
hintNavigate: string;
|
|
105
|
+
hintSelect: string;
|
|
106
|
+
noResults: string;
|
|
107
|
+
pinToFavorites: string;
|
|
108
|
+
placeholder: string;
|
|
109
|
+
recentlyVisited: string;
|
|
110
|
+
removeFromFavorites: string;
|
|
111
|
+
title: string;
|
|
112
|
+
};
|
|
94
113
|
dashboard: {
|
|
95
114
|
addButton: string;
|
|
96
115
|
addWidget: string;
|
|
@@ -103,6 +122,22 @@ declare const enTranslations: {
|
|
|
103
122
|
noItems: string;
|
|
104
123
|
resetLayout: string;
|
|
105
124
|
searchWidgets: string;
|
|
125
|
+
widgetCollectionRequired: string;
|
|
126
|
+
widgetConfigurationError: string;
|
|
127
|
+
widgetInvalidCollection: string;
|
|
128
|
+
widgetInvalidFilterField: string;
|
|
129
|
+
widgetInvalidSortField: string;
|
|
130
|
+
widgetLimitLabel: string;
|
|
131
|
+
widgetNonSortableSortField: string;
|
|
132
|
+
widgetQueryError: string;
|
|
133
|
+
widgetRecentlyViewedEmpty: string;
|
|
134
|
+
widgetRecentlyViewedTitle: string;
|
|
135
|
+
widgetSelectCollectionFirst: string;
|
|
136
|
+
widgetSelectSortField: string;
|
|
137
|
+
widgetSortDirectionLabel: string;
|
|
138
|
+
widgetSortFieldLabel: string;
|
|
139
|
+
widgetTitleFallback: string;
|
|
140
|
+
widgetTitleLabel: string;
|
|
106
141
|
};
|
|
107
142
|
error: {
|
|
108
143
|
accountAlreadyActivated: string;
|
|
@@ -167,6 +202,7 @@ declare const enTranslations: {
|
|
|
167
202
|
addRelationship: string;
|
|
168
203
|
addUpload: string;
|
|
169
204
|
block: string;
|
|
205
|
+
blockName: string;
|
|
170
206
|
blocks: string;
|
|
171
207
|
blockType: string;
|
|
172
208
|
chooseBetweenCustomTextOrDocument: string;
|
|
@@ -222,6 +258,7 @@ declare const enTranslations: {
|
|
|
222
258
|
aboutToTrash: string;
|
|
223
259
|
aboutToTrashCount: string;
|
|
224
260
|
accepts: string;
|
|
261
|
+
access: string;
|
|
225
262
|
addBelow: string;
|
|
226
263
|
addFilter: string;
|
|
227
264
|
adminTheme: string;
|
|
@@ -233,11 +270,13 @@ declare const enTranslations: {
|
|
|
233
270
|
anotherUserTakenOver: string;
|
|
234
271
|
applyChanges: string;
|
|
235
272
|
ascending: string;
|
|
273
|
+
auto: string;
|
|
236
274
|
automatic: string;
|
|
237
275
|
backToDashboard: string;
|
|
238
276
|
by: string;
|
|
239
277
|
cancel: string;
|
|
240
278
|
changesNotSaved: string;
|
|
279
|
+
checked: string;
|
|
241
280
|
clear: string;
|
|
242
281
|
clearAll: string;
|
|
243
282
|
close: string;
|
|
@@ -276,6 +315,7 @@ declare const enTranslations: {
|
|
|
276
315
|
decrement: string;
|
|
277
316
|
delete: string;
|
|
278
317
|
deleted: string;
|
|
318
|
+
deletedAgo: string;
|
|
279
319
|
deletedAt: string;
|
|
280
320
|
deletedCountSuccessfully: string;
|
|
281
321
|
deletedSuccessfully: string;
|
|
@@ -291,10 +331,12 @@ declare const enTranslations: {
|
|
|
291
331
|
documentModified: string;
|
|
292
332
|
documentOutOfDate: string;
|
|
293
333
|
documents: string;
|
|
334
|
+
dragToReorder: string;
|
|
294
335
|
duplicate: string;
|
|
295
336
|
duplicateWithoutSaving: string;
|
|
296
337
|
edit: string;
|
|
297
338
|
editAll: string;
|
|
339
|
+
editColumns: string;
|
|
298
340
|
editedSince: string;
|
|
299
341
|
editing: string;
|
|
300
342
|
editingLabel_many: string;
|
|
@@ -306,20 +348,24 @@ declare const enTranslations: {
|
|
|
306
348
|
emailAddress: string;
|
|
307
349
|
emptyTrash: string;
|
|
308
350
|
emptyTrashLabel: string;
|
|
351
|
+
enhancedContrastMode: string;
|
|
309
352
|
enterANumber: string;
|
|
310
353
|
enterAValue: string;
|
|
311
354
|
error: string;
|
|
312
355
|
errors: string;
|
|
313
356
|
exitLivePreview: string;
|
|
357
|
+
expand: string;
|
|
314
358
|
export: string;
|
|
315
359
|
fallbackToDefaultLocale: string;
|
|
316
360
|
false: string;
|
|
361
|
+
field: string;
|
|
317
362
|
filter: string;
|
|
318
363
|
filters: string;
|
|
319
364
|
filterWhere: string;
|
|
320
365
|
globals: string;
|
|
321
366
|
goBack: string;
|
|
322
367
|
groupByLabel: string;
|
|
368
|
+
hideSidebar: string;
|
|
323
369
|
import: string;
|
|
324
370
|
increment: string;
|
|
325
371
|
isEditing: string;
|
|
@@ -337,6 +383,7 @@ declare const enTranslations: {
|
|
|
337
383
|
locale: string;
|
|
338
384
|
locales: string;
|
|
339
385
|
lock: string;
|
|
386
|
+
manageLabel: string;
|
|
340
387
|
menu: string;
|
|
341
388
|
moreOptions: string;
|
|
342
389
|
move: string;
|
|
@@ -353,6 +400,7 @@ declare const enTranslations: {
|
|
|
353
400
|
noDateSelected: string;
|
|
354
401
|
noFiltersSet: string;
|
|
355
402
|
noLabel: string;
|
|
403
|
+
noMatchesFound: string;
|
|
356
404
|
none: string;
|
|
357
405
|
noOptions: string;
|
|
358
406
|
noResults: string;
|
|
@@ -361,6 +409,7 @@ declare const enTranslations: {
|
|
|
361
409
|
notFound: string;
|
|
362
410
|
nothingFound: string;
|
|
363
411
|
noTrashResults: string;
|
|
412
|
+
notShownInTable: string;
|
|
364
413
|
noUpcomingEventsScheduled: string;
|
|
365
414
|
noValue: string;
|
|
366
415
|
of: string;
|
|
@@ -369,6 +418,7 @@ declare const enTranslations: {
|
|
|
369
418
|
openInNewWindow: string;
|
|
370
419
|
or: string;
|
|
371
420
|
order: string;
|
|
421
|
+
original: string;
|
|
372
422
|
overwriteExistingData: string;
|
|
373
423
|
pageNotFound: string;
|
|
374
424
|
password: string;
|
|
@@ -378,6 +428,8 @@ declare const enTranslations: {
|
|
|
378
428
|
permanentlyDelete: string;
|
|
379
429
|
permanentlyDeletedCountSuccessfully: string;
|
|
380
430
|
perPage: string;
|
|
431
|
+
perPageLabel: string;
|
|
432
|
+
presets: string;
|
|
381
433
|
previous: string;
|
|
382
434
|
reindex: string;
|
|
383
435
|
reindexingAll: string;
|
|
@@ -400,13 +452,17 @@ declare const enTranslations: {
|
|
|
400
452
|
saving: string;
|
|
401
453
|
schedulePublishFor: string;
|
|
402
454
|
searchBy: string;
|
|
455
|
+
searchColumns: string;
|
|
403
456
|
select: string;
|
|
404
457
|
selectAll: string;
|
|
405
458
|
selectAllRows: string;
|
|
406
459
|
selectedCount: string;
|
|
407
460
|
selectLabel: string;
|
|
408
461
|
selectValue: string;
|
|
462
|
+
settings: string;
|
|
409
463
|
showAllLabel: string;
|
|
464
|
+
shownInTable: string;
|
|
465
|
+
showSidebar: string;
|
|
410
466
|
sorryNotFound: string;
|
|
411
467
|
sort: string;
|
|
412
468
|
sortByLabelDirection: string;
|
|
@@ -419,21 +475,25 @@ declare const enTranslations: {
|
|
|
419
475
|
successfullyDuplicated: string;
|
|
420
476
|
successfullyReindexed: string;
|
|
421
477
|
takeOver: string;
|
|
478
|
+
theme: string;
|
|
422
479
|
thisLanguage: string;
|
|
423
480
|
time: string;
|
|
424
481
|
timezone: string;
|
|
425
482
|
titleDeleted: string;
|
|
426
483
|
titleRestored: string;
|
|
427
484
|
titleTrashed: string;
|
|
485
|
+
toggle: string;
|
|
428
486
|
trash: string;
|
|
429
487
|
trashedCountSuccessfully: string;
|
|
430
488
|
true: string;
|
|
431
489
|
unauthorized: string;
|
|
490
|
+
unchecked: string;
|
|
432
491
|
unlock: string;
|
|
433
492
|
unsavedChanges: string;
|
|
434
493
|
unsavedChangesDuplicate: string;
|
|
435
494
|
untitled: string;
|
|
436
495
|
upcomingEvents: string;
|
|
496
|
+
updatedAgo: string;
|
|
437
497
|
updatedAt: string;
|
|
438
498
|
updatedCountSuccessfully: string;
|
|
439
499
|
updatedLabelSuccessfully: string;
|
|
@@ -449,6 +509,7 @@ declare const enTranslations: {
|
|
|
449
509
|
viewing: string;
|
|
450
510
|
viewReadOnly: string;
|
|
451
511
|
welcome: string;
|
|
512
|
+
where: string;
|
|
452
513
|
yes: string;
|
|
453
514
|
};
|
|
454
515
|
hierarchy: {
|
|
@@ -504,12 +565,16 @@ declare const enTranslations: {
|
|
|
504
565
|
fileToUpload: string;
|
|
505
566
|
focalPoint: string;
|
|
506
567
|
focalPointDescription: string;
|
|
568
|
+
fromURL: string;
|
|
507
569
|
height: string;
|
|
508
570
|
lessInfo: string;
|
|
571
|
+
linkToFile: string;
|
|
509
572
|
moreInfo: string;
|
|
510
573
|
noFile: string;
|
|
511
574
|
pasteURL: string;
|
|
512
575
|
previewSizes: string;
|
|
576
|
+
renameFile: string;
|
|
577
|
+
replaceFile: string;
|
|
513
578
|
selectCollectionToBrowse: string;
|
|
514
579
|
selectFile: string;
|
|
515
580
|
setCropArea: string;
|
|
@@ -638,9 +703,6 @@ type Language<TDefaultTranslations = DefaultTranslationsObject> = {
|
|
|
638
703
|
type GenericTranslationsObject = {
|
|
639
704
|
[key: string]: GenericTranslationsObject | string;
|
|
640
705
|
};
|
|
641
|
-
type GenericLanguages = {
|
|
642
|
-
[key in AcceptedLanguages]?: GenericTranslationsObject;
|
|
643
|
-
};
|
|
644
706
|
type AcceptedLanguages = (typeof acceptedLanguages)[number];
|
|
645
707
|
type SupportedLanguages<TDefaultTranslations = DefaultTranslationsObject> = {
|
|
646
708
|
[key in AcceptedLanguages]?: Language<TDefaultTranslations>;
|
|
@@ -653,11 +715,14 @@ type NestedKeysStripped<T> = T extends object ? {
|
|
|
653
715
|
* Default nested translations object
|
|
654
716
|
*/
|
|
655
717
|
type DefaultTranslationsObject = typeof enTranslations;
|
|
718
|
+
interface CustomTranslationKeys {
|
|
719
|
+
}
|
|
720
|
+
type CustomTranslationKey = CustomTranslationKeys[keyof CustomTranslationKeys] & string;
|
|
656
721
|
/**
|
|
657
722
|
* All translation keys sanitized. E.g. 'general:aboutToDeleteCount'
|
|
658
723
|
*/
|
|
659
|
-
type DefaultTranslationKeys = NestedKeysStripped<DefaultTranslationsObject>;
|
|
660
|
-
type ClientTranslationKeys<TExtraProps = (typeof clientTranslationKeys)[number]> = TExtraProps;
|
|
724
|
+
type DefaultTranslationKeys = CustomTranslationKey | NestedKeysStripped<DefaultTranslationsObject>;
|
|
725
|
+
type ClientTranslationKeys<TExtraProps = (typeof clientTranslationKeys)[number] | CustomTranslationKey> = TExtraProps;
|
|
661
726
|
type ClientTranslationsObject = GenericTranslationsObject;
|
|
662
727
|
type TFunction<TTranslationKeys = DefaultTranslationKeys> = (key: TTranslationKeys, options?: Record<string, any>) => string;
|
|
663
728
|
type I18n<TTranslations = DefaultTranslationsObject, TTranslationKeys = DefaultTranslationKeys> = {
|
|
@@ -725,6 +790,63 @@ type OptionalKeys<Type> = Type extends object ? keyof {
|
|
|
725
790
|
|
|
726
791
|
type RequiredKeys<Type> = Type extends unknown ? Exclude<keyof Type, OptionalKeys<Type>> : never;
|
|
727
792
|
|
|
793
|
+
type CookieStore = {
|
|
794
|
+
get: (name: string) => {
|
|
795
|
+
name: string;
|
|
796
|
+
value: string;
|
|
797
|
+
} | null | undefined;
|
|
798
|
+
getAll?: () => Array<{
|
|
799
|
+
name: string;
|
|
800
|
+
value: string;
|
|
801
|
+
}>;
|
|
802
|
+
set?: (name: string, value: string, options?: CookieOptions$1) => void;
|
|
803
|
+
};
|
|
804
|
+
type CookieOptions$1 = {
|
|
805
|
+
domain?: string;
|
|
806
|
+
expires?: Date;
|
|
807
|
+
httpOnly?: boolean;
|
|
808
|
+
maxAge?: number;
|
|
809
|
+
path?: string;
|
|
810
|
+
sameSite?: 'lax' | 'none' | 'strict';
|
|
811
|
+
secure?: boolean;
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Server-side adapter passed into server functions (not React context).
|
|
816
|
+
* Abstracts framework-specific server APIs like cookies, headers, redirect.
|
|
817
|
+
*/
|
|
818
|
+
type ServerAdapter = {
|
|
819
|
+
/**
|
|
820
|
+
* Throws a Next-style "forbidden" boundary (HTTP 403 semantics). Plugins
|
|
821
|
+
* should treat this as a control-flow `never` — execution does not return.
|
|
822
|
+
*/
|
|
823
|
+
forbidden: () => never;
|
|
824
|
+
getCookies: () => CookieStore | Promise<CookieStore>;
|
|
825
|
+
getHeaders: () => Headers | Promise<Headers>;
|
|
826
|
+
notFound: () => never;
|
|
827
|
+
permanentRedirect: (path: string) => never;
|
|
828
|
+
redirect: (path: string) => never;
|
|
829
|
+
setCookie: (name: string, value: string, options?: CookieOptions$1) => Promise<void> | void;
|
|
830
|
+
/**
|
|
831
|
+
* Throws a Next-style "unauthorized" boundary (HTTP 401 semantics).
|
|
832
|
+
*/
|
|
833
|
+
unauthorized: () => never;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Pluggable component renderer.
|
|
838
|
+
* RSC-capable frameworks use the current RenderServerComponent logic.
|
|
839
|
+
* Non-RSC frameworks treat all components as client components.
|
|
840
|
+
*/
|
|
841
|
+
type ComponentRenderer = (args: {
|
|
842
|
+
readonly clientProps?: object;
|
|
843
|
+
readonly Component?: PayloadComponent | PayloadComponent[] | React$1.ComponentType | React$1.ComponentType[];
|
|
844
|
+
readonly Fallback?: React$1.ComponentType;
|
|
845
|
+
readonly importMap: ImportMap;
|
|
846
|
+
readonly key?: string;
|
|
847
|
+
readonly serverProps?: object;
|
|
848
|
+
}) => React$1.ReactNode;
|
|
849
|
+
|
|
728
850
|
/** @deprecated Use `instanceof APIError` instead of name comparison. */
|
|
729
851
|
declare const APIErrorName = "APIError";
|
|
730
852
|
declare class ExtendableError<TData extends object = {
|
|
@@ -759,6 +881,7 @@ type ValidationFieldError = {
|
|
|
759
881
|
label?: LabelFunction | StaticLabel;
|
|
760
882
|
message: string;
|
|
761
883
|
path: string;
|
|
884
|
+
tableName?: string;
|
|
762
885
|
};
|
|
763
886
|
declare class ValidationError extends APIError<{
|
|
764
887
|
collection?: string;
|
|
@@ -865,28 +988,38 @@ type SanitizedPermissions = {
|
|
|
865
988
|
[globalSlug: string]: SanitizedGlobalPermission;
|
|
866
989
|
};
|
|
867
990
|
};
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
991
|
+
/**
|
|
992
|
+
* Fields injected onto a user at authentication time. They are never stored in the database and
|
|
993
|
+
* never present on a plain document read (e.g. `payload.findByID`) - only on the authenticated
|
|
994
|
+
* user (`req.user`, login/auth/me results, auth strategies).
|
|
995
|
+
*/
|
|
996
|
+
type AuthRuntimeFields = {
|
|
997
|
+
/**
|
|
998
|
+
* The session ID of the current request. Present only when sessions are enabled.
|
|
999
|
+
*/
|
|
1000
|
+
_sid?: string;
|
|
1001
|
+
/**
|
|
1002
|
+
* The name of the auth strategy that authenticated the request (e.g. `local-jwt`).
|
|
1003
|
+
*/
|
|
1004
|
+
_strategy?: string;
|
|
874
1005
|
};
|
|
875
1006
|
/**
|
|
876
|
-
*
|
|
1007
|
+
* Note: AuthenticatedUser still carries the write-only `password` from `User` (always `undefined` at runtime).
|
|
1008
|
+
* Stripping it cleanly isn't possible, because auth operations build the authenticated user
|
|
1009
|
+
* from a read `User` doc, so a `never`-typed `password` would break those assignments
|
|
877
1010
|
*/
|
|
878
|
-
type UntypedUser = {
|
|
879
|
-
[key: string]: any;
|
|
880
|
-
} & BaseUser;
|
|
881
1011
|
/**
|
|
882
|
-
*
|
|
883
|
-
*
|
|
1012
|
+
* The signed-in user: the read user plus the runtime auth markers (`_strategy`, `_sid`). This is
|
|
1013
|
+
* what `req.user`, `payload.auth()`, the `me` operation, and auth strategies return.
|
|
884
1014
|
*/
|
|
885
|
-
type
|
|
886
|
-
|
|
887
|
-
|
|
1015
|
+
type AuthenticatedUser = AuthRuntimeFields & User;
|
|
1016
|
+
/**
|
|
1017
|
+
* The user as available on the client (`useAuth().user`). It is the authenticated user as
|
|
1018
|
+
* serialized to the browser: `collection` and `_strategy` are present, `_sid` is not sent.
|
|
1019
|
+
*/
|
|
1020
|
+
type ClientUser = AuthenticatedUser;
|
|
888
1021
|
type UserSession = {
|
|
889
|
-
createdAt
|
|
1022
|
+
createdAt?: Date | null | string;
|
|
890
1023
|
expiresAt: Date | string;
|
|
891
1024
|
id: string;
|
|
892
1025
|
};
|
|
@@ -925,10 +1058,7 @@ type AuthStrategyFunctionArgs = {
|
|
|
925
1058
|
};
|
|
926
1059
|
type AuthStrategyResult = {
|
|
927
1060
|
responseHeaders?: Headers;
|
|
928
|
-
user:
|
|
929
|
-
_strategy?: string;
|
|
930
|
-
collection?: string;
|
|
931
|
-
} & TypedUser) | null;
|
|
1061
|
+
user: AuthenticatedUser | null;
|
|
932
1062
|
};
|
|
933
1063
|
type AuthStrategyFunction = (args: AuthStrategyFunctionArgs) => AuthStrategyResult | Promise<AuthStrategyResult>;
|
|
934
1064
|
type AuthStrategy = {
|
|
@@ -1082,6 +1212,21 @@ type CollectionPreferences = {
|
|
|
1082
1212
|
preset?: DefaultDocumentIDType;
|
|
1083
1213
|
sort?: string;
|
|
1084
1214
|
};
|
|
1215
|
+
/**
|
|
1216
|
+
* A single document the user has viewed in the admin. Only identity and timestamp are stored;
|
|
1217
|
+
* display fields (title, thumbnail, etc.) are computed at render time from the live document.
|
|
1218
|
+
*/
|
|
1219
|
+
type RecentlyViewedItem = {
|
|
1220
|
+
collectionSlug: string;
|
|
1221
|
+
id: DefaultDocumentIDType;
|
|
1222
|
+
viewedAt: string;
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* The `recently-viewed` preference value: the user's recently viewed documents, most recent first.
|
|
1226
|
+
*/
|
|
1227
|
+
type RecentlyViewedPreferences = {
|
|
1228
|
+
items: RecentlyViewedItem[];
|
|
1229
|
+
};
|
|
1085
1230
|
|
|
1086
1231
|
type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
|
|
1087
1232
|
type ClientComponentProps = {
|
|
@@ -1127,11 +1272,9 @@ type FieldPaths = {
|
|
|
1127
1272
|
* Nested fields will have a path that includes the parent field names
|
|
1128
1273
|
* if they are nested within a group, array, block or named tab.
|
|
1129
1274
|
*
|
|
1130
|
-
* Collapsibles and unnamed tabs will have arbitrary paths
|
|
1275
|
+
* Collapsibles, rows and unnamed tabs will have arbitrary paths
|
|
1131
1276
|
* that look like _index-0, _index-1, etc.
|
|
1132
1277
|
*
|
|
1133
|
-
* Row fields will not have a path.
|
|
1134
|
-
*
|
|
1135
1278
|
* @example 'parentGroupField.childTextField'
|
|
1136
1279
|
*
|
|
1137
1280
|
* @default field.name
|
|
@@ -1162,9 +1305,15 @@ type ServerComponentProps = {
|
|
|
1162
1305
|
payload: Payload;
|
|
1163
1306
|
permissions: SanitizedFieldPermissions;
|
|
1164
1307
|
preferences: DocumentPreferences;
|
|
1308
|
+
/**
|
|
1309
|
+
* Adapter-injected component renderer. Server components can use this
|
|
1310
|
+
* to render other import map components without importing a
|
|
1311
|
+
* framework-specific renderer directly.
|
|
1312
|
+
*/
|
|
1313
|
+
renderComponent?: ComponentRenderer;
|
|
1165
1314
|
req: PayloadRequest;
|
|
1166
1315
|
siblingData: Data;
|
|
1167
|
-
user:
|
|
1316
|
+
user: User;
|
|
1168
1317
|
value?: unknown;
|
|
1169
1318
|
};
|
|
1170
1319
|
type ClientFieldBase<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
|
|
@@ -1249,15 +1398,6 @@ type IncomingDrafts = {
|
|
|
1249
1398
|
* To enable, set to true or pass an object with options.
|
|
1250
1399
|
*/
|
|
1251
1400
|
autosave?: Autosave | boolean;
|
|
1252
|
-
/**
|
|
1253
|
-
* Localizes the status field.
|
|
1254
|
-
*
|
|
1255
|
-
* Only effective if the experimental `experimental.localizeStatus` is enabled.
|
|
1256
|
-
*
|
|
1257
|
-
* @experimental
|
|
1258
|
-
* @default false
|
|
1259
|
-
*/
|
|
1260
|
-
localizeStatus?: boolean;
|
|
1261
1401
|
/**
|
|
1262
1402
|
* Allow for editors to schedule publish / unpublish events in the future.
|
|
1263
1403
|
*/
|
|
@@ -1276,12 +1416,8 @@ type SanitizedDrafts = {
|
|
|
1276
1416
|
*/
|
|
1277
1417
|
autosave: Autosave | false;
|
|
1278
1418
|
/**
|
|
1279
|
-
*
|
|
1280
|
-
*
|
|
1281
|
-
* Only effective if the experimental `experimental.localizeStatus` is enabled.
|
|
1282
|
-
*
|
|
1283
|
-
* @experimental
|
|
1284
|
-
* @default false
|
|
1419
|
+
* Automatically set to true when localization is configured and the collection/global
|
|
1420
|
+
* has localized fields. Controls whether `_status` is stored per-locale.
|
|
1285
1421
|
*/
|
|
1286
1422
|
localizeStatus?: boolean;
|
|
1287
1423
|
/**
|
|
@@ -2187,6 +2323,91 @@ type Globals = {
|
|
|
2187
2323
|
} | false;
|
|
2188
2324
|
};
|
|
2189
2325
|
|
|
2326
|
+
/** Read (`output`) vs write (`input`) shape: `input` is what `create`/`update` accept. */
|
|
2327
|
+
type SchemaVariant = 'input' | 'output';
|
|
2328
|
+
/**
|
|
2329
|
+
* Returns a JSON Schema Type with 'null' added if the field is not required.
|
|
2330
|
+
*/
|
|
2331
|
+
declare function withNullableJSONSchemaType(fieldType: JSONSchema4TypeName, isRequired: boolean): JSONSchema4TypeName | JSONSchema4TypeName[];
|
|
2332
|
+
type ConfigToJSONSchemaOptions = {
|
|
2333
|
+
forceInlineBlocks?: boolean;
|
|
2334
|
+
};
|
|
2335
|
+
type FieldsToJSONSchemaArgs = {
|
|
2336
|
+
/**
|
|
2337
|
+
* Used for relationship fields, to determine whether to use a string or
|
|
2338
|
+
* number type for the ID. While there is a default ID field type set by
|
|
2339
|
+
* the db adapter, they can differ on a collection-level if they have
|
|
2340
|
+
* custom ID fields.
|
|
2341
|
+
*/
|
|
2342
|
+
collectionIDFieldTypes: {
|
|
2343
|
+
[key: string]: 'number' | 'string';
|
|
2344
|
+
};
|
|
2345
|
+
config?: SanitizedConfig;
|
|
2346
|
+
fields: FlattenedField$1[];
|
|
2347
|
+
/**
|
|
2348
|
+
* If true, blocks are inlined into each `block` field instead of being
|
|
2349
|
+
* lifted to a top-level definition. Used by the MCP plugin.
|
|
2350
|
+
*/
|
|
2351
|
+
forceInlineBlocks?: boolean;
|
|
2352
|
+
i18n?: I18n;
|
|
2353
|
+
/** Allows you to define new top-level interfaces that can be re-used in the output schema. */
|
|
2354
|
+
interfaceNameDefinitions: Map<string, JSONSchema4>;
|
|
2355
|
+
/**
|
|
2356
|
+
* Allows you to append raw TS source to `payload-types.ts`. Identical
|
|
2357
|
+
* strings de-dupe naturally, so the same helper written from many fields
|
|
2358
|
+
* ends up emitted once.
|
|
2359
|
+
*/
|
|
2360
|
+
typeStringDefinitions: Set<string>;
|
|
2361
|
+
variant?: SchemaVariant;
|
|
2362
|
+
};
|
|
2363
|
+
declare function fieldsToJSONSchema({ collectionIDFieldTypes, config, fields, forceInlineBlocks, i18n, interfaceNameDefinitions, typeStringDefinitions, variant, }: FieldsToJSONSchemaArgs): {
|
|
2364
|
+
properties: {
|
|
2365
|
+
[k: string]: JSONSchema4;
|
|
2366
|
+
};
|
|
2367
|
+
required: string[];
|
|
2368
|
+
};
|
|
2369
|
+
declare function entityToJSONSchema(config: SanitizedConfig, entity: SanitizedCollectionConfig | SanitizedGlobalConfig, interfaceNameDefinitions: Map<string, JSONSchema4>, defaultIDType: 'number' | 'text', typeStringDefinitions: Set<string>, collectionIDFieldTypes?: {
|
|
2370
|
+
[key: string]: 'number' | 'string';
|
|
2371
|
+
}, i18n?: I18n, forceInlineBlocks?: boolean, variant?: SchemaVariant): JSONSchema4;
|
|
2372
|
+
/**
|
|
2373
|
+
* Like {@link entityToJSONSchema}, but returns a standalone schema for one collection or global:
|
|
2374
|
+
* the entity plus only the `$defs` it actually uses, so it resolves on its own rather than
|
|
2375
|
+
* as part of the whole config schema.
|
|
2376
|
+
*
|
|
2377
|
+
* Relationship/upload `$ref`s to other collections are left in place - the caller handles those.
|
|
2378
|
+
* (The `input` variant reduces relationships to IDs, so only rich-text node `$defs` still ref them.)
|
|
2379
|
+
*/
|
|
2380
|
+
declare function entityToStandaloneJSONSchema({ config, defaultIDType, entity, i18n, variant, }: {
|
|
2381
|
+
config: SanitizedConfig;
|
|
2382
|
+
defaultIDType: 'number' | 'text';
|
|
2383
|
+
entity: SanitizedCollectionConfig | SanitizedGlobalConfig;
|
|
2384
|
+
i18n?: I18n;
|
|
2385
|
+
variant?: SchemaVariant;
|
|
2386
|
+
}): JSONSchema4;
|
|
2387
|
+
/**
|
|
2388
|
+
* Registers a block's schema as a top-level definition and returns its name.
|
|
2389
|
+
*
|
|
2390
|
+
* The name is the block's `interfaceName`, or a PascalCase form of its slug. If a different block
|
|
2391
|
+
* already uses that name - whether it was auto-generated or an explicit `interfaceName` - this one
|
|
2392
|
+
* gets a content-hash suffix (`Hero_3F2A1B0C`) so the two don't overwrite each other. Registering
|
|
2393
|
+
* the same block shape again reuses its name.
|
|
2394
|
+
*
|
|
2395
|
+
* The `input` variant adds an `Input` suffix (`HeroInput`) - unless the read-shaped def is already
|
|
2396
|
+
* registered with byte-identical content (a block with nothing that differs between input and
|
|
2397
|
+
* output), in which case it's shared as-is rather than emitting a redundant twin.
|
|
2398
|
+
*/
|
|
2399
|
+
declare function registerBlockInterface(block: {
|
|
2400
|
+
interfaceName?: string;
|
|
2401
|
+
slug: string;
|
|
2402
|
+
}, blockSchema: JSONSchema4, interfaceNameDefinitions: Map<string, JSONSchema4>, variant?: SchemaVariant): string;
|
|
2403
|
+
/**
|
|
2404
|
+
* This is used for generating the TypeScript types (payload-types.ts) with the payload generate:types command.
|
|
2405
|
+
*/
|
|
2406
|
+
declare function configToJSONSchema(config: SanitizedConfig, defaultIDType?: 'number' | 'text', i18n?: I18n, { forceInlineBlocks }?: ConfigToJSONSchemaOptions): {
|
|
2407
|
+
jsonSchema: JSONSchema4;
|
|
2408
|
+
typeStringDefinitions: Set<string>;
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2190
2411
|
type DisabledOptions = {
|
|
2191
2412
|
bulkEdit?: boolean;
|
|
2192
2413
|
column?: boolean;
|
|
@@ -2352,7 +2573,7 @@ type FieldHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData =
|
|
|
2352
2573
|
value?: TValue;
|
|
2353
2574
|
};
|
|
2354
2575
|
type FieldHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: FieldHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
|
|
2355
|
-
type
|
|
2576
|
+
type SharedFieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = {
|
|
2356
2577
|
/**
|
|
2357
2578
|
* The data of the nearest parent block. If the field is not within a block, `blockData` will be equal to `undefined`.
|
|
2358
2579
|
*/
|
|
@@ -2376,6 +2597,13 @@ type FieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = {
|
|
|
2376
2597
|
*/
|
|
2377
2598
|
siblingData?: Partial<TSiblingData>;
|
|
2378
2599
|
};
|
|
2600
|
+
type FieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = ({
|
|
2601
|
+
collection: SanitizedCollectionConfig;
|
|
2602
|
+
global?: never;
|
|
2603
|
+
} & SharedFieldAccessArgs<TData, TSiblingData>) | ({
|
|
2604
|
+
collection?: never;
|
|
2605
|
+
global: SanitizedGlobalConfig;
|
|
2606
|
+
} & SharedFieldAccessArgs<TData, TSiblingData>);
|
|
2379
2607
|
type FieldAccess<TData extends TypeWithID = any, TSiblingData = any> = (args: FieldAccessArgs<TData, TSiblingData>) => boolean | Promise<boolean>;
|
|
2380
2608
|
type Condition<TData extends TypeWithID = any, TSiblingData = any> = (
|
|
2381
2609
|
/**
|
|
@@ -2570,6 +2798,18 @@ interface FieldBase {
|
|
|
2570
2798
|
beforeValidate?: FieldHook[];
|
|
2571
2799
|
};
|
|
2572
2800
|
index?: boolean;
|
|
2801
|
+
/**
|
|
2802
|
+
* Allows you to modify the base JSON schema that is generated for this field.
|
|
2803
|
+
* This JSON schema will be used to generate the TypeScript interface of this field, and to
|
|
2804
|
+
* validate the field's value in the MCP plugin.
|
|
2805
|
+
*
|
|
2806
|
+
* `variant` is `'input'` when generating the write shape (`create`/`update`) and `'output'` when
|
|
2807
|
+
* generating the read shape, so a transform can differ between the two.
|
|
2808
|
+
*/
|
|
2809
|
+
jsonSchema?: Array<(args: {
|
|
2810
|
+
jsonSchema: JSONSchema4;
|
|
2811
|
+
variant: SchemaVariant;
|
|
2812
|
+
}) => JSONSchema4>;
|
|
2573
2813
|
label?: false | LabelFunction | StaticLabel;
|
|
2574
2814
|
localized?: boolean;
|
|
2575
2815
|
/**
|
|
@@ -2581,13 +2821,6 @@ interface FieldBase {
|
|
|
2581
2821
|
name: string;
|
|
2582
2822
|
required?: boolean;
|
|
2583
2823
|
saveToJWT?: boolean | string;
|
|
2584
|
-
/**
|
|
2585
|
-
* Allows you to modify the base JSON schema that is generated during generate:types for this field.
|
|
2586
|
-
* This JSON schema will be used to generate the TypeScript interface of this field.
|
|
2587
|
-
*/
|
|
2588
|
-
typescriptSchema?: Array<(args: {
|
|
2589
|
-
jsonSchema: JSONSchema4;
|
|
2590
|
-
}) => JSONSchema4>;
|
|
2591
2824
|
unique?: boolean;
|
|
2592
2825
|
validate?: Validate;
|
|
2593
2826
|
/**
|
|
@@ -2597,29 +2830,9 @@ interface FieldBase {
|
|
|
2597
2830
|
*/
|
|
2598
2831
|
virtual?: boolean | string;
|
|
2599
2832
|
}
|
|
2600
|
-
interface FieldBaseClient {
|
|
2833
|
+
interface FieldBaseClient extends Pick<FieldBase, 'hidden' | 'index' | 'jsonSchema' | 'localized' | 'name' | 'required' | 'saveToJWT' | 'unique'> {
|
|
2601
2834
|
admin?: AdminClient;
|
|
2602
|
-
hidden?: boolean;
|
|
2603
|
-
index?: boolean;
|
|
2604
2835
|
label?: StaticLabel;
|
|
2605
|
-
localized?: boolean;
|
|
2606
|
-
/**
|
|
2607
|
-
* The name of the field. Must be alphanumeric and cannot contain ' . '
|
|
2608
|
-
*
|
|
2609
|
-
* Must not be one of reserved field names: ['__v', 'salt', 'hash', 'file']
|
|
2610
|
-
* @link https://payloadcms.com/docs/fields/overview#field-names
|
|
2611
|
-
*/
|
|
2612
|
-
name: string;
|
|
2613
|
-
required?: boolean;
|
|
2614
|
-
saveToJWT?: boolean | string;
|
|
2615
|
-
/**
|
|
2616
|
-
* Allows you to modify the base JSON schema that is generated during generate:types for this field.
|
|
2617
|
-
* This JSON schema will be used to generate the TypeScript interface of this field.
|
|
2618
|
-
*/
|
|
2619
|
-
typescriptSchema?: Array<(args: {
|
|
2620
|
-
jsonSchema: JSONSchema4;
|
|
2621
|
-
}) => JSONSchema4>;
|
|
2622
|
-
unique?: boolean;
|
|
2623
2836
|
}
|
|
2624
2837
|
type NumberField = {
|
|
2625
2838
|
admin?: {
|
|
@@ -3279,8 +3492,8 @@ type RadioFieldClient = {
|
|
|
3279
3492
|
} & FieldBaseClient & Pick<RadioField, 'interfaceName' | 'options' | 'type'>;
|
|
3280
3493
|
type BlockFields = {
|
|
3281
3494
|
[key: string]: any;
|
|
3282
|
-
blockName?: string;
|
|
3283
|
-
blockType
|
|
3495
|
+
blockName?: null | string;
|
|
3496
|
+
blockType: string;
|
|
3284
3497
|
};
|
|
3285
3498
|
type BlockJSX = {
|
|
3286
3499
|
/**
|
|
@@ -3338,7 +3551,7 @@ type BlockJSX = {
|
|
|
3338
3551
|
}) => Record<string, any>;
|
|
3339
3552
|
openMatch?: RegExpMatchArray;
|
|
3340
3553
|
props: Record<string, any>;
|
|
3341
|
-
}) =>
|
|
3554
|
+
}) => false | MarkOptional<BlockFields, 'blockType'>;
|
|
3342
3555
|
};
|
|
3343
3556
|
type Block = {
|
|
3344
3557
|
/**
|
|
@@ -3421,11 +3634,12 @@ type Block = {
|
|
|
3421
3634
|
* @deprecated Use `admin.images` instead. Preferred aspect ratio of the image is 3:2.
|
|
3422
3635
|
*/
|
|
3423
3636
|
imageURL?: string;
|
|
3424
|
-
/**
|
|
3425
|
-
*
|
|
3426
|
-
*
|
|
3427
|
-
*
|
|
3428
|
-
*
|
|
3637
|
+
/**
|
|
3638
|
+
* Override the name of the top-level TypeScript interface and GraphQL
|
|
3639
|
+
* type generated for this block. Blocks **always** generate a top-level
|
|
3640
|
+
* interface - by default it's a PascalCase form of the slug
|
|
3641
|
+
* (`'content-block'` → `ContentBlock`). Set this to take control of the
|
|
3642
|
+
* generated name
|
|
3429
3643
|
*/
|
|
3430
3644
|
interfaceName?: string;
|
|
3431
3645
|
jsx?: BlockJSX;
|
|
@@ -3452,12 +3666,9 @@ type BlocksField = {
|
|
|
3452
3666
|
isSortable?: boolean;
|
|
3453
3667
|
} & FieldAdmin;
|
|
3454
3668
|
/**
|
|
3455
|
-
*
|
|
3456
|
-
*
|
|
3457
|
-
* @todo `blockReferences` will be merged with `blocks` in 4.0
|
|
3669
|
+
* Blocks to use in this field. Inline block configs and string slugs of blocks defined in `config.blocks` are both supported.
|
|
3458
3670
|
*/
|
|
3459
|
-
|
|
3460
|
-
blocks: Block[];
|
|
3671
|
+
blocks: (Block | BlockSlug)[];
|
|
3461
3672
|
defaultValue?: DefaultValue;
|
|
3462
3673
|
/**
|
|
3463
3674
|
* Blocks can be conditionally enabled using the `filterOptions` property on the blocks field.
|
|
@@ -3497,13 +3708,7 @@ type BlocksField = {
|
|
|
3497
3708
|
} & Omit<FieldBase, 'validate'>;
|
|
3498
3709
|
type BlocksFieldClient = {
|
|
3499
3710
|
admin?: AdminClient & Pick<BlocksField['admin'], 'initCollapsed' | 'isSortable'>;
|
|
3500
|
-
|
|
3501
|
-
* Like `blocks`, but allows you to also pass strings that are slugs of blocks defined in `config.blocks`.
|
|
3502
|
-
*
|
|
3503
|
-
* @todo `blockReferences` will be merged with `blocks` in 4.0
|
|
3504
|
-
*/
|
|
3505
|
-
blockReferences?: (ClientBlock | string)[];
|
|
3506
|
-
blocks: ClientBlock[];
|
|
3711
|
+
blocks: (ClientBlock | string)[];
|
|
3507
3712
|
labels?: LabelsClient;
|
|
3508
3713
|
} & FieldBaseClient & Pick<BlocksField, 'maxRows' | 'minRows' | 'type'>;
|
|
3509
3714
|
type PointField = {
|
|
@@ -3599,14 +3804,8 @@ type FlattenedBlock = {
|
|
|
3599
3804
|
flattenedFields: FlattenedField$1[];
|
|
3600
3805
|
} & Block;
|
|
3601
3806
|
type FlattenedBlocksField = {
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
*
|
|
3605
|
-
* @todo `blockReferences` will be merged with `blocks` in 4.0
|
|
3606
|
-
*/
|
|
3607
|
-
blockReferences?: (FlattenedBlock | string)[];
|
|
3608
|
-
blocks: FlattenedBlock[];
|
|
3609
|
-
} & Omit<BlocksField, 'blockReferences' | 'blocks'>;
|
|
3807
|
+
blocks: (FlattenedBlock | string)[];
|
|
3808
|
+
} & Omit<BlocksField, 'blocks'>;
|
|
3610
3809
|
type FlattenedGroupField = {
|
|
3611
3810
|
flattenedFields: FlattenedField$1[];
|
|
3612
3811
|
name: string;
|
|
@@ -3815,29 +4014,15 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
|
|
|
3815
4014
|
siblingDoc: JsonObject;
|
|
3816
4015
|
}) => void;
|
|
3817
4016
|
hooks?: RichTextHooks;
|
|
3818
|
-
/**
|
|
3819
|
-
* @deprecated - manually merge i18n translations into the config.i18n.translations object within the adapter provider instead.
|
|
3820
|
-
* This property will be removed in v4.
|
|
3821
|
-
*/
|
|
3822
|
-
i18n?: Partial<GenericLanguages>;
|
|
3823
4017
|
/**
|
|
3824
4018
|
* Return the JSON schema for the field value. The JSON schema is read by
|
|
3825
4019
|
* `json-schema-to-typescript` which is used to generate types for this richtext field
|
|
3826
4020
|
* payload-types.ts)
|
|
3827
4021
|
*/
|
|
3828
|
-
|
|
3829
|
-
collectionIDFieldTypes: {
|
|
3830
|
-
[key: string]: 'number' | 'string';
|
|
3831
|
-
};
|
|
3832
|
-
config?: SanitizedConfig;
|
|
4022
|
+
jsonSchema?: (args: {
|
|
3833
4023
|
field: RichTextField<Value, AdapterProps, ExtraFieldProperties>;
|
|
3834
|
-
i18n?: I18n;
|
|
3835
|
-
/**
|
|
3836
|
-
* Allows you to define new top-level interfaces that can be re-used in the output schema.
|
|
3837
|
-
*/
|
|
3838
|
-
interfaceNameDefinitions: Map<string, JSONSchema4>;
|
|
3839
4024
|
isRequired: boolean;
|
|
3840
|
-
}) => JSONSchema4;
|
|
4025
|
+
} & Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions' | 'variant'>) => JSONSchema4;
|
|
3841
4026
|
/**
|
|
3842
4027
|
* Provide validation function for the richText field. This function is run the same way
|
|
3843
4028
|
* as other field validation functions.
|
|
@@ -3912,14 +4097,14 @@ declare function parseCookies(headers: Request['headers']): Map<string, string>;
|
|
|
3912
4097
|
|
|
3913
4098
|
declare const extractJWT: (args: Omit<AuthStrategyFunctionArgs, "strategyName">) => null | string;
|
|
3914
4099
|
|
|
3915
|
-
type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | '
|
|
4100
|
+
type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | 'jsonSchema' | 'label' | 'validate' | keyof Pick<FieldBase, 'access' | 'custom' | 'defaultValue' | 'hooks'>;
|
|
3916
4101
|
type ServerOnlyFieldAdminProperties = keyof Pick<FieldBase['admin'], 'components' | 'condition'>;
|
|
3917
4102
|
declare const createClientBlocks: ({ blocks, defaultIDType, i18n, importMap, }: {
|
|
3918
4103
|
blocks: (Block | string)[];
|
|
3919
4104
|
defaultIDType: Payload["config"]["db"]["defaultIDType"];
|
|
3920
4105
|
i18n: I18nClient;
|
|
3921
4106
|
importMap: ImportMap;
|
|
3922
|
-
}) => (ClientBlock | string)[]
|
|
4107
|
+
}) => (ClientBlock | string)[];
|
|
3923
4108
|
declare const createClientField: ({ defaultIDType, field: incomingField, i18n, importMap, }: {
|
|
3924
4109
|
defaultIDType: Payload["config"]["db"]["defaultIDType"];
|
|
3925
4110
|
field: Field;
|
|
@@ -3957,9 +4142,15 @@ type HierarchyConfig = {
|
|
|
3957
4142
|
*/
|
|
3958
4143
|
components?: {
|
|
3959
4144
|
/**
|
|
3960
|
-
* Custom icon component for hierarchy items
|
|
4145
|
+
* Custom icon component for hierarchy items.
|
|
4146
|
+
* - 24x24 size icon.
|
|
3961
4147
|
*/
|
|
3962
4148
|
Icon?: PayloadComponent;
|
|
4149
|
+
/**
|
|
4150
|
+
* Small icon component for compact hierarchy contexts:
|
|
4151
|
+
* - 16x16 size icon.
|
|
4152
|
+
*/
|
|
4153
|
+
SmallIcon?: PayloadComponent;
|
|
3963
4154
|
};
|
|
3964
4155
|
/**
|
|
3965
4156
|
* Whether to inject a sidebar tab for this hierarchy collection
|
|
@@ -4041,6 +4232,7 @@ type SanitizedHierarchyConfig = {
|
|
|
4041
4232
|
admin: {
|
|
4042
4233
|
components: {
|
|
4043
4234
|
Icon: PayloadComponent;
|
|
4235
|
+
SmallIcon: PayloadComponent;
|
|
4044
4236
|
};
|
|
4045
4237
|
injectSidebarTab: boolean;
|
|
4046
4238
|
treeLimit: number;
|
|
@@ -4081,7 +4273,7 @@ type ClientHierarchyConfig = Omit<SanitizedHierarchyConfig, 'slugify'>;
|
|
|
4081
4273
|
|
|
4082
4274
|
type ServerOnlyCollectionProperties = keyof Pick<SanitizedCollectionConfig, 'access' | 'custom' | 'endpoints' | 'flattenedFields' | 'hooks' | 'indexes' | 'joins' | 'polymorphicJoins' | 'sanitizedIndexes' | 'select'>;
|
|
4083
4275
|
type ServerOnlyCollectionAdminProperties = keyof Pick<SanitizedCollectionConfig['admin'], 'baseFilter' | 'baseListFilter' | 'components' | 'formatDocURL' | 'hidden'>;
|
|
4084
|
-
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4276
|
+
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'admin' | 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4085
4277
|
type ClientCollectionConfig = {
|
|
4086
4278
|
admin: {
|
|
4087
4279
|
description?: StaticDescription;
|
|
@@ -4134,7 +4326,7 @@ declare const createClientGlobalConfigs: ({ defaultIDType, globals, i18n, import
|
|
|
4134
4326
|
importMap: ImportMap;
|
|
4135
4327
|
}) => ClientGlobalConfig[];
|
|
4136
4328
|
|
|
4137
|
-
type ServerOnlyRootProperties = keyof Pick<SanitizedConfig, 'bin' | 'cors' | 'csrf' | 'custom' | 'db' | 'editor' | 'email' | 'endpoints' | 'graphQL' | 'hooks' | 'i18n' | 'jobs' | 'kv' | 'logger' | 'onInit' | 'plugins' | 'queryPresets' | 'secret' | 'sharp' | 'typescript'>;
|
|
4329
|
+
type ServerOnlyRootProperties = keyof Pick<SanitizedConfig, 'bin' | 'cors' | 'csrf' | 'custom' | 'db' | 'editor' | 'email' | 'endpoints' | 'graphQL' | 'hooks' | 'i18n' | 'jobs' | 'kv' | 'logger' | 'onInit' | 'plugins' | 'queryPresets' | 'secret' | 'sharp' | 'storage' | 'typescript'>;
|
|
4138
4330
|
type ServerOnlyRootAdminProperties = keyof Pick<SanitizedConfig['admin'], 'components'>;
|
|
4139
4331
|
type ClientConfig = {
|
|
4140
4332
|
admin: {
|
|
@@ -4180,7 +4372,7 @@ type CreateClientConfigArgs = {
|
|
|
4180
4372
|
* For example, allow `true` to generate a client config for the "create first user" page
|
|
4181
4373
|
* where there is no user yet, but the config should still be complete.
|
|
4182
4374
|
*/
|
|
4183
|
-
user: true |
|
|
4375
|
+
user: true | User;
|
|
4184
4376
|
};
|
|
4185
4377
|
declare const createUnauthenticatedClientConfig: ({ clientConfig, }: {
|
|
4186
4378
|
/**
|
|
@@ -4205,11 +4397,13 @@ type EditViewProps = {
|
|
|
4205
4397
|
*/
|
|
4206
4398
|
type RenderDocumentVersionsProperties = {
|
|
4207
4399
|
/**
|
|
4208
|
-
*
|
|
4400
|
+
* Override the CreatedAt cell component rendered in the versions table.
|
|
4401
|
+
* Useful when embedding the versions list inside a drawer that should update URL params
|
|
4402
|
+
* rather than perform a full navigation.
|
|
4209
4403
|
*/
|
|
4210
|
-
|
|
4404
|
+
CreatedAtCellOverride?: (props: any) => any;
|
|
4211
4405
|
/**
|
|
4212
|
-
*
|
|
4406
|
+
* @deprecated Pass `CreatedAtCellOverride` directly instead.
|
|
4213
4407
|
* @default false
|
|
4214
4408
|
*/
|
|
4215
4409
|
useVersionDrawerCreatedAtCell?: boolean;
|
|
@@ -5276,6 +5470,40 @@ type Plugin = ((config: Config) => Config | Promise<Config>) & {
|
|
|
5276
5470
|
/** @experimental Unique identifier for cross-plugin discovery via `config.plugins`. */
|
|
5277
5471
|
slug?: string;
|
|
5278
5472
|
};
|
|
5473
|
+
/**
|
|
5474
|
+
* Configures where uploaded files are stored (S3, GCS, Azure, Vercel Blob, etc.).
|
|
5475
|
+
*
|
|
5476
|
+
* Storage adapters run **before plugins**, so upload hooks, static file handlers,
|
|
5477
|
+
* and presigned-URL endpoints are guaranteed to be in place before any plugin
|
|
5478
|
+
* modifies the config.
|
|
5479
|
+
*
|
|
5480
|
+
* Pass the return value of a storage adapter factory to `storage` in your
|
|
5481
|
+
* Payload config:
|
|
5482
|
+
*
|
|
5483
|
+
* ```ts
|
|
5484
|
+
* import { s3Storage } from '@payloadcms/storage-s3'
|
|
5485
|
+
*
|
|
5486
|
+
* export default buildConfig({
|
|
5487
|
+
* storage: [
|
|
5488
|
+
* s3Storage({
|
|
5489
|
+
* bucket: process.env.S3_BUCKET,
|
|
5490
|
+
* collections: { media: true },
|
|
5491
|
+
* config: { region: process.env.S3_REGION },
|
|
5492
|
+
* }),
|
|
5493
|
+
* ],
|
|
5494
|
+
* })
|
|
5495
|
+
* ```
|
|
5496
|
+
*
|
|
5497
|
+
* @see https://payloadcms.com/docs/uploads/storage-adapters
|
|
5498
|
+
*/
|
|
5499
|
+
interface StorageAdapter {
|
|
5500
|
+
/** Collection slugs this adapter is configured to handle. */
|
|
5501
|
+
collections: string[];
|
|
5502
|
+
/** Initializes the adapter and returns the modified config with upload hooks and handlers injected. */
|
|
5503
|
+
init: (config: Config) => Config | Promise<Config>;
|
|
5504
|
+
/** Unique identifier for this adapter (e.g. `'s3'`, `'gcs'`, `'azure'`). Surfaced in telemetry and on `payload.config.upload.adapters`. */
|
|
5505
|
+
name: string;
|
|
5506
|
+
}
|
|
5279
5507
|
/**
|
|
5280
5508
|
* A map of plugin slugs to Plugin instances, built from `config.plugins`.
|
|
5281
5509
|
* Registered slugs (via `RegisteredPlugins` module augmentation) return typed options.
|
|
@@ -5300,6 +5528,13 @@ type LivePreviewConfig = {
|
|
|
5300
5528
|
name: string;
|
|
5301
5529
|
width: number | string;
|
|
5302
5530
|
}[];
|
|
5531
|
+
/**
|
|
5532
|
+
* When `true`, Live Preview opens automatically the first time a user views a document,
|
|
5533
|
+
* before they have manually toggled it on. Once the user toggles Live Preview on or off,
|
|
5534
|
+
* their stored preference takes precedence and this setting is ignored.
|
|
5535
|
+
* @default false
|
|
5536
|
+
*/
|
|
5537
|
+
openByDefault?: boolean;
|
|
5303
5538
|
/**
|
|
5304
5539
|
* The URL of the frontend application. This will be rendered within an `iframe` as its `src`.
|
|
5305
5540
|
* Payload will send a `window.postMessage()` to this URL with the document data in real-time.
|
|
@@ -5523,8 +5758,22 @@ type ServerProps = {
|
|
|
5523
5758
|
readonly params?: Params;
|
|
5524
5759
|
readonly payload: Payload;
|
|
5525
5760
|
readonly permissions?: SanitizedPermissions;
|
|
5761
|
+
/**
|
|
5762
|
+
* Adapter-injected component renderer. Server components can use this
|
|
5763
|
+
* to render other import map components without importing a
|
|
5764
|
+
* framework-specific renderer directly.
|
|
5765
|
+
*/
|
|
5766
|
+
readonly renderComponent?: ComponentRenderer;
|
|
5526
5767
|
readonly searchParams?: Params;
|
|
5527
|
-
|
|
5768
|
+
/**
|
|
5769
|
+
* Framework-agnostic methods for server-side navigation, headers, cookies, and other server-only APIs.
|
|
5770
|
+
* Plugins should call these methods instead of importing directly from `next/navigation`, `next/headers`, etc.
|
|
5771
|
+
* These methods are populated by the given framework adapter, e.g. `@payloadcms/next`.
|
|
5772
|
+
*
|
|
5773
|
+
* Optional because non-framework contexts (jobs, scripts, tests) may not have an adapter attached.
|
|
5774
|
+
*/
|
|
5775
|
+
readonly server: ServerAdapter;
|
|
5776
|
+
readonly user?: User;
|
|
5528
5777
|
readonly viewType?: ViewTypes;
|
|
5529
5778
|
readonly visibleEntities?: VisibleEntities;
|
|
5530
5779
|
};
|
|
@@ -5554,6 +5803,12 @@ type SanitizedTimezoneConfig = {
|
|
|
5554
5803
|
supportedTimezones: Timezone[];
|
|
5555
5804
|
} & Omit<TimezonesConfig, 'supportedTimezones'>;
|
|
5556
5805
|
type CustomComponent<TAdditionalProps extends object = Record<string, any>> = PayloadComponent<ServerProps & TAdditionalProps, TAdditionalProps>;
|
|
5806
|
+
type UserMenuSettingsGroup = {
|
|
5807
|
+
group: LabelFunction | StaticLabel;
|
|
5808
|
+
items: CustomComponent[];
|
|
5809
|
+
};
|
|
5810
|
+
type UserMenuSettingsItem = CustomComponent | UserMenuSettingsGroup;
|
|
5811
|
+
declare const isUserMenuSettingsGroup: (userMenuSettingsItem: UserMenuSettingsItem) => userMenuSettingsItem is UserMenuSettingsGroup;
|
|
5557
5812
|
type Locale = {
|
|
5558
5813
|
/**
|
|
5559
5814
|
* value of supported locale
|
|
@@ -5632,7 +5887,7 @@ type SanitizedLocalizationConfig = Prettify<{
|
|
|
5632
5887
|
* @see https://payloadcms.com/docs/configuration/localization#localization
|
|
5633
5888
|
*/
|
|
5634
5889
|
type LocalizationConfig = Prettify<LocalizationConfigWithLabels | LocalizationConfigWithNoLabels>;
|
|
5635
|
-
type LabelFunction<TTranslationKeys =
|
|
5890
|
+
type LabelFunction<TTranslationKeys = ClientTranslationKeys> = (args: {
|
|
5636
5891
|
i18n: I18nClient;
|
|
5637
5892
|
t: TFunction<TTranslationKeys>;
|
|
5638
5893
|
}) => string;
|
|
@@ -5973,6 +6228,12 @@ type Config = {
|
|
|
5973
6228
|
/** Extensible tab system */
|
|
5974
6229
|
tabs?: SidebarTab[];
|
|
5975
6230
|
};
|
|
6231
|
+
/**
|
|
6232
|
+
* Add custom items to the user menu popup in the admin panel header.
|
|
6233
|
+
* These components will be rendered in the Settings sub-popup of the user menu.
|
|
6234
|
+
* When empty or absent, the Settings sub-trigger is not shown.
|
|
6235
|
+
*/
|
|
6236
|
+
userMenuSettingsItems?: UserMenuSettingsItem[];
|
|
5976
6237
|
/**
|
|
5977
6238
|
* Replace or modify top-level admin routes, or add new ones:
|
|
5978
6239
|
* + `Account` - `/admin/account`
|
|
@@ -6157,21 +6418,6 @@ type Config = {
|
|
|
6157
6418
|
* @see https://payloadcms.com/docs/configuration/collections#collection-configs
|
|
6158
6419
|
*/
|
|
6159
6420
|
collections?: CollectionConfig[];
|
|
6160
|
-
/**
|
|
6161
|
-
* Compatibility flags for prior Payload versions
|
|
6162
|
-
*/
|
|
6163
|
-
compatibility?: {
|
|
6164
|
-
/**
|
|
6165
|
-
* By default, Payload will remove the `localized: true` property
|
|
6166
|
-
* from fields if a parent field is localized. Set this property
|
|
6167
|
-
* to `true` only if you have an existing Payload database from pre-3.0
|
|
6168
|
-
* that you would like to maintain without migrating. This is only
|
|
6169
|
-
* relevant for MongoDB databases.
|
|
6170
|
-
*
|
|
6171
|
-
* @todo Remove in v4
|
|
6172
|
-
*/
|
|
6173
|
-
allowLocalizedWithinLocalized: true;
|
|
6174
|
-
};
|
|
6175
6421
|
/**
|
|
6176
6422
|
* Prefix a string to all cookies that Payload sets.
|
|
6177
6423
|
*
|
|
@@ -6212,22 +6458,6 @@ type Config = {
|
|
|
6212
6458
|
email?: EmailAdapter | Promise<EmailAdapter>;
|
|
6213
6459
|
/** Custom REST endpoints */
|
|
6214
6460
|
endpoints?: Endpoint[];
|
|
6215
|
-
/**
|
|
6216
|
-
* Experimental features may be unstable or change in future versions.
|
|
6217
|
-
*/
|
|
6218
|
-
experimental?: {
|
|
6219
|
-
/**
|
|
6220
|
-
* Enable per-locale status for documents.
|
|
6221
|
-
*
|
|
6222
|
-
* Requires:
|
|
6223
|
-
* - `localization` enabled
|
|
6224
|
-
* - `versions.drafts` enabled
|
|
6225
|
-
* - `versions.drafts.localizeStatus` set at collection or global level
|
|
6226
|
-
*
|
|
6227
|
-
* @experimental
|
|
6228
|
-
*/
|
|
6229
|
-
localizeStatus?: boolean;
|
|
6230
|
-
};
|
|
6231
6461
|
/**
|
|
6232
6462
|
* @see https://payloadcms.com/docs/configuration/globals#global-configs
|
|
6233
6463
|
*/
|
|
@@ -6489,6 +6719,20 @@ type Config = {
|
|
|
6489
6719
|
*
|
|
6490
6720
|
*/
|
|
6491
6721
|
sharp?: SharpDependency;
|
|
6722
|
+
/**
|
|
6723
|
+
* Storage adapters that handle where uploaded files are stored (S3, GCS, Azure, Vercel Blob, etc.).
|
|
6724
|
+
*
|
|
6725
|
+
* Adapters are initialized **before** `plugins`, so file handling is fully wired before any plugin
|
|
6726
|
+
* runs. Use this instead of placing storage adapter packages in `plugins`.
|
|
6727
|
+
*
|
|
6728
|
+
* Migrate existing `plugins` usage automatically with:
|
|
6729
|
+
* ```sh
|
|
6730
|
+
* npx @payloadcms/codemod --transform migrate-storage-adapters-to-config
|
|
6731
|
+
* ```
|
|
6732
|
+
*
|
|
6733
|
+
* @see https://payloadcms.com/docs/uploads/storage-adapters
|
|
6734
|
+
*/
|
|
6735
|
+
storage?: StorageAdapter[];
|
|
6492
6736
|
/** Send anonymous telemetry data about general usage. */
|
|
6493
6737
|
telemetry?: boolean;
|
|
6494
6738
|
/** Control how typescript interfaces are generated from your collections. */
|
|
@@ -6509,6 +6753,31 @@ type Config = {
|
|
|
6509
6753
|
*/
|
|
6510
6754
|
ignoreTSError?: boolean;
|
|
6511
6755
|
} | false;
|
|
6756
|
+
/**
|
|
6757
|
+
* Also generate a write-shaped input type (e.g. `PostInput`) next to each read type, describing
|
|
6758
|
+
* what `create`/`update` accept: relationships and uploads as IDs only, `id` and `defaultValue`
|
|
6759
|
+
* fields optional, and `createdAt`/`updatedAt`/`_status`/virtual/join fields removed. These are
|
|
6760
|
+
* exposed on `Config['collectionsInput']` and `Config['globalsInput']`. Set `true` to turn them on.
|
|
6761
|
+
*
|
|
6762
|
+
* @default false
|
|
6763
|
+
*
|
|
6764
|
+
* @remarks
|
|
6765
|
+
* Off by default. The Local API's `create`/`update` still type their `data` against the read
|
|
6766
|
+
* type, so these input types aren't used internally - they're here for you to opt into, e.g. to
|
|
6767
|
+
* type a form payload, a seed script, or an API client. `@payloadcms/plugin-mcp` also uses the
|
|
6768
|
+
* input schema, but it builds that itself at runtime, so MCP gets the accurate write schema
|
|
6769
|
+
* whether or not this flag is on.
|
|
6770
|
+
*
|
|
6771
|
+
* @todo We'd like to turn this on by default (or have the Local API use the input type
|
|
6772
|
+
* directly), but there's a catch. When you read a document with `depth > 0`, its relationships
|
|
6773
|
+
* come back as full documents rather than IDs. A strict ID-only input type would reject that and
|
|
6774
|
+
* break the common "read a doc, change a field, save it back" pattern. To enable it by default,
|
|
6775
|
+
* the input type would first need to accept a relationship as either an ID or the full document
|
|
6776
|
+
* (which is what Payload already does at runtime), while keeping `id`, `defaultValue`, and
|
|
6777
|
+
* auto-managed fields optional. Until then it stays opt-in, so we don't put a type that's
|
|
6778
|
+
* stricter than the runtime on the main write path.
|
|
6779
|
+
*/
|
|
6780
|
+
generateInputTypes?: boolean;
|
|
6512
6781
|
/** Filename to write the generated types to */
|
|
6513
6782
|
outputFile?: string;
|
|
6514
6783
|
/**
|
|
@@ -6564,8 +6833,16 @@ type Config = {
|
|
|
6564
6833
|
*/
|
|
6565
6834
|
type SanitizedConfig = {
|
|
6566
6835
|
admin: {
|
|
6836
|
+
/**
|
|
6837
|
+
* `Required` (shallow) marks the top-level dashboard props as required, mainly `defaultLayout`,
|
|
6838
|
+
* which sanitizing always fills in. Do not switch this to the `DeepRequired` used below: it
|
|
6839
|
+
* recurses into the widgets and re-expands the whole `Field` type (a large self-referencing
|
|
6840
|
+
* union), which is very expensive to check. Never run a `Field`-bearing type through
|
|
6841
|
+
* `DeepRequired`.
|
|
6842
|
+
*/
|
|
6843
|
+
dashboard: Required<NonNullable<NonNullable<Config['admin']>['dashboard']>>;
|
|
6567
6844
|
timezones: SanitizedTimezoneConfig;
|
|
6568
|
-
} & DeepRequired<Config['admin']
|
|
6845
|
+
} & DeepRequired<Omit<NonNullable<Config['admin']>, 'dashboard'>>;
|
|
6569
6846
|
blocks?: FlattenedBlock[];
|
|
6570
6847
|
collections: SanitizedCollectionConfig[];
|
|
6571
6848
|
/** Default richtext editor to use for richText fields */
|
|
@@ -6580,13 +6857,14 @@ type SanitizedConfig = {
|
|
|
6580
6857
|
configDir: string;
|
|
6581
6858
|
rawConfig: string;
|
|
6582
6859
|
};
|
|
6860
|
+
storage: StorageAdapter[];
|
|
6583
6861
|
upload: {
|
|
6584
6862
|
/**
|
|
6585
6863
|
* Deduped list of adapters used in the project
|
|
6586
6864
|
*/
|
|
6587
6865
|
adapters: string[];
|
|
6588
6866
|
} & FetchAPIFileUploadOptions;
|
|
6589
|
-
} & Omit<DeepRequired<Config>, 'admin' | 'blocks' | 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'jobs' | 'localization' | 'upload'>;
|
|
6867
|
+
} & Omit<DeepRequired<Config>, 'admin' | 'blocks' | 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'jobs' | 'localization' | 'storage' | 'upload'>;
|
|
6590
6868
|
type EditConfig = EditConfigWithoutRoot | EditConfigWithRoot;
|
|
6591
6869
|
/**
|
|
6592
6870
|
* Replace or modify _all_ nested document views and routes, including the document header, controls, and tabs. This cannot be used in conjunction with other nested views.
|
|
@@ -6698,6 +6976,7 @@ type SharedEntityViews = {
|
|
|
6698
6976
|
[key: string]: {
|
|
6699
6977
|
actions?: CustomComponent[];
|
|
6700
6978
|
Component?: PayloadComponent;
|
|
6979
|
+
NoResults?: CustomComponent;
|
|
6701
6980
|
} | AdminViewConfig | EditConfig | undefined;
|
|
6702
6981
|
/**
|
|
6703
6982
|
* Replace, modify, or add new "document" views.
|
|
@@ -6722,7 +7001,7 @@ type SharedAdminComponents = {
|
|
|
6722
7001
|
views?: SharedEntityViews;
|
|
6723
7002
|
};
|
|
6724
7003
|
type EntityDescriptionFunction = ({ t }: {
|
|
6725
|
-
t: TFunction
|
|
7004
|
+
t: TFunction<ClientTranslationKeys>;
|
|
6726
7005
|
}) => string;
|
|
6727
7006
|
type EntityDescription = EntityDescriptionFunction | Record<string, string> | string;
|
|
6728
7007
|
|
|
@@ -7063,6 +7342,7 @@ type Column = {
|
|
|
7063
7342
|
readonly CustomLabel?: React.ReactNode;
|
|
7064
7343
|
readonly field: ClientField;
|
|
7065
7344
|
readonly Heading: React.ReactNode;
|
|
7345
|
+
readonly isLinkedColumn?: boolean;
|
|
7066
7346
|
readonly renderedCells: React.ReactNode[];
|
|
7067
7347
|
};
|
|
7068
7348
|
|
|
@@ -7348,8 +7628,8 @@ type RelationshipFieldDiffServerComponent = FieldDiffServerComponent<Relationshi
|
|
|
7348
7628
|
type RelationshipFieldDiffClientComponent = FieldDiffClientComponent<RelationshipFieldClient>;
|
|
7349
7629
|
|
|
7350
7630
|
type RowFieldClientWithoutType = MarkOptional<RowFieldClient, 'type'>;
|
|
7351
|
-
type RowFieldBaseClientProps =
|
|
7352
|
-
type RowFieldClientProps =
|
|
7631
|
+
type RowFieldBaseClientProps = FieldPaths & Pick<ClientComponentProps, 'forceRender'>;
|
|
7632
|
+
type RowFieldClientProps = ClientFieldBase<RowFieldClientWithoutType> & RowFieldBaseClientProps;
|
|
7353
7633
|
type RowFieldServerProps = ServerFieldBase<RowField, RowFieldClientWithoutType>;
|
|
7354
7634
|
type RowFieldServerComponent = FieldServerComponent<RowField, RowFieldClientWithoutType>;
|
|
7355
7635
|
type RowFieldClientComponent = FieldClientComponent<RowFieldClientWithoutType, RowFieldBaseClientProps>;
|
|
@@ -7458,7 +7738,7 @@ type UploadFieldDiffClientComponent = FieldDiffClientComponent<UploadFieldClient
|
|
|
7458
7738
|
|
|
7459
7739
|
type DescriptionFunction = (args: {
|
|
7460
7740
|
i18n: I18nClient;
|
|
7461
|
-
t: TFunction
|
|
7741
|
+
t: TFunction<ClientTranslationKeys>;
|
|
7462
7742
|
}) => string;
|
|
7463
7743
|
type FieldDescriptionClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionClientProps<TFieldClient>>;
|
|
7464
7744
|
type FieldDescriptionServerComponent<TFieldServer extends Field = Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionServerProps<TFieldServer, TFieldClient>>;
|
|
@@ -7666,8 +7946,16 @@ type InitReqResult = {
|
|
|
7666
7946
|
permissions: SanitizedPermissions;
|
|
7667
7947
|
req: PayloadRequest;
|
|
7668
7948
|
};
|
|
7949
|
+
/**
|
|
7950
|
+
* Determines how server function handlers serialize their return values.
|
|
7951
|
+
* - `'rsc'`: Return React nodes (JSX) — requires RSC flight serialization (Next.js)
|
|
7952
|
+
* - `'data-only'`: Return JSON-serializable data — for non-RSC adapters (TanStack Start)
|
|
7953
|
+
*/
|
|
7954
|
+
type ServerFunctionMode = 'data-only' | 'rsc';
|
|
7669
7955
|
type DefaultServerFunctionArgs = {
|
|
7670
7956
|
importMap: ImportMap;
|
|
7957
|
+
mode?: ServerFunctionMode;
|
|
7958
|
+
renderComponent?: ComponentRenderer;
|
|
7671
7959
|
} & Pick<InitReqResult, 'cookies' | 'locale' | 'permissions' | 'req'>;
|
|
7672
7960
|
type ServerFunctionArgs = {
|
|
7673
7961
|
args: Record<string, unknown>;
|
|
@@ -7766,6 +8054,12 @@ type WidgetSlugFromWidget<TWidget extends {
|
|
|
7766
8054
|
type WidgetServerProps<TWidget extends {
|
|
7767
8055
|
data?: unknown;
|
|
7768
8056
|
} | never = never> = {
|
|
8057
|
+
/**
|
|
8058
|
+
* Adapter-injected component renderer. Widget server components can use
|
|
8059
|
+
* this to render other import map components without importing a
|
|
8060
|
+
* framework-specific renderer directly.
|
|
8061
|
+
*/
|
|
8062
|
+
renderComponent?: ComponentRenderer;
|
|
7769
8063
|
widgetData?: [TWidget] extends [never] ? Record<string, unknown> : WidgetDataFromWidget<Exclude<TWidget, never>> extends Record<string, unknown> ? WidgetDataFromWidget<Exclude<TWidget, never>> : Record<string, unknown>;
|
|
7770
8064
|
widgetSlug: [TWidget] extends [never] ? string : [WidgetSlugFromWidget<{
|
|
7771
8065
|
data?: unknown;
|
|
@@ -7776,6 +8070,7 @@ type WidgetServerProps<TWidget extends {
|
|
|
7776
8070
|
|
|
7777
8071
|
type RelatedDocumentsGrouped = {
|
|
7778
8072
|
[collectionSlug: string]: {
|
|
8073
|
+
fieldName: string;
|
|
7779
8074
|
hasMany: boolean;
|
|
7780
8075
|
label: string;
|
|
7781
8076
|
result: PaginatedDocs;
|
|
@@ -7819,6 +8114,7 @@ type ListViewSlots = {
|
|
|
7819
8114
|
BeforeListTable?: React.ReactNode;
|
|
7820
8115
|
Description?: React.ReactNode;
|
|
7821
8116
|
listMenuItems?: React.ReactNode[];
|
|
8117
|
+
NoResults?: React.ReactNode;
|
|
7822
8118
|
Table: React.ReactNode | React.ReactNode[];
|
|
7823
8119
|
};
|
|
7824
8120
|
/**
|
|
@@ -7852,9 +8148,13 @@ type ListViewClientProps = {
|
|
|
7852
8148
|
*/
|
|
7853
8149
|
hierarchyData?: HierarchyViewData;
|
|
7854
8150
|
/**
|
|
7855
|
-
* Resolved icon component for hierarchy collections
|
|
8151
|
+
* Resolved full-size icon component for hierarchy collections (used in drawer subheader)
|
|
7856
8152
|
*/
|
|
7857
8153
|
HierarchyIcon?: React.ReactNode;
|
|
8154
|
+
/**
|
|
8155
|
+
* Resolved small icon component for hierarchy collections (used in table rows)
|
|
8156
|
+
*/
|
|
8157
|
+
HierarchySmallIcon?: React.ReactNode;
|
|
7858
8158
|
/**
|
|
7859
8159
|
* @deprecated
|
|
7860
8160
|
*/
|
|
@@ -7876,6 +8176,7 @@ type ListViewSlotSharedClientProps = {
|
|
|
7876
8176
|
hasDeletePermission?: boolean;
|
|
7877
8177
|
hasTrashPermission?: boolean;
|
|
7878
8178
|
newDocumentURL: string;
|
|
8179
|
+
viewType: ViewTypes;
|
|
7879
8180
|
};
|
|
7880
8181
|
type BeforeListClientProps = ListViewSlotSharedClientProps;
|
|
7881
8182
|
type BeforeListServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
@@ -7883,6 +8184,9 @@ type BeforeListServerProps = BeforeListClientProps & BeforeListServerPropsOnly;
|
|
|
7883
8184
|
type BeforeListTableClientProps = ListViewSlotSharedClientProps;
|
|
7884
8185
|
type BeforeListTableServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
7885
8186
|
type BeforeListTableServerProps = BeforeListTableClientProps & BeforeListTableServerPropsOnly;
|
|
8187
|
+
type NoResultsClientProps = ListViewSlotSharedClientProps;
|
|
8188
|
+
type NoResultsServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
8189
|
+
type NoResultsServerProps = NoResultsClientProps & NoResultsServerPropsOnly;
|
|
7886
8190
|
type AfterListClientProps = ListViewSlotSharedClientProps;
|
|
7887
8191
|
type AfterListServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
7888
8192
|
type AfterListServerProps = AfterListClientProps & AfterListServerPropsOnly;
|
|
@@ -7965,6 +8269,7 @@ type DocumentSlots = {
|
|
|
7965
8269
|
UnpublishButton?: React$1.ReactNode;
|
|
7966
8270
|
Upload?: React$1.ReactNode;
|
|
7967
8271
|
UploadControls?: React$1.ReactNode;
|
|
8272
|
+
UploadFilePreview?: React$1.ReactNode;
|
|
7968
8273
|
};
|
|
7969
8274
|
|
|
7970
8275
|
type SchemaPath = {} & string;
|
|
@@ -8037,17 +8342,9 @@ type FileSize = {
|
|
|
8037
8342
|
filesize: null | number;
|
|
8038
8343
|
height: null | number;
|
|
8039
8344
|
mimeType: null | string;
|
|
8040
|
-
url
|
|
8345
|
+
url: null | string;
|
|
8041
8346
|
width: null | number;
|
|
8042
8347
|
};
|
|
8043
|
-
/**
|
|
8044
|
-
* FileSizeImproved is a more precise type, and will replace FileSize in Payload v4.
|
|
8045
|
-
* This type is for internal use only as it will be deprecated in the future.
|
|
8046
|
-
* @internal
|
|
8047
|
-
*/
|
|
8048
|
-
type FileSizeImproved = {
|
|
8049
|
-
url: null | string;
|
|
8050
|
-
} & FileSize;
|
|
8051
8348
|
type FileSizes = {
|
|
8052
8349
|
[size: string]: FileSize;
|
|
8053
8350
|
};
|
|
@@ -8090,30 +8387,21 @@ type GenerateImageName = (args: {
|
|
|
8090
8387
|
type ImageSize = {
|
|
8091
8388
|
/**
|
|
8092
8389
|
* Admin UI options that control how this image size appears in list views.
|
|
8093
|
-
*
|
|
8094
|
-
* NOTE: In Payload v4, these options (`disableGroupBy`, `disableListColumn` and `disableListFilter`)
|
|
8095
|
-
* should default to `true` so image size subfields are hidden from list columns
|
|
8096
|
-
* and filters by default, reducing noise in the admin UI.
|
|
8097
8390
|
*/
|
|
8098
8391
|
admin?: {
|
|
8099
8392
|
/**
|
|
8100
|
-
*
|
|
8101
|
-
*
|
|
8102
|
-
*
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
* If set to true, this image size will not be available
|
|
8107
|
-
* as a selectable column in the collection list view.
|
|
8108
|
-
* @default false
|
|
8109
|
-
*/
|
|
8110
|
-
disableListColumn?: boolean;
|
|
8111
|
-
/**
|
|
8112
|
-
* If set to true, this image size will not be available
|
|
8113
|
-
* as a filter option in the collection list view.
|
|
8114
|
-
* @default false
|
|
8393
|
+
* Controls visibility of this image size in the collection list view.
|
|
8394
|
+
* Defaults to hiding the image size from columns, filters, and group-by to reduce noise.
|
|
8395
|
+
*
|
|
8396
|
+
* - `column` — whether to hide this size from selectable list columns. @default false
|
|
8397
|
+
* - `filter` — whether to hide this size from filter options. @default false
|
|
8398
|
+
* - `groupBy` — whether to hide this size from group-by options. @default false
|
|
8115
8399
|
*/
|
|
8116
|
-
|
|
8400
|
+
disabled?: {
|
|
8401
|
+
column?: boolean;
|
|
8402
|
+
filter?: boolean;
|
|
8403
|
+
groupBy?: boolean;
|
|
8404
|
+
};
|
|
8117
8405
|
};
|
|
8118
8406
|
/**
|
|
8119
8407
|
* @deprecated prefer position
|
|
@@ -8151,12 +8439,33 @@ type FileAllowList = Array<{
|
|
|
8151
8439
|
extensions: string[];
|
|
8152
8440
|
mimeType: string;
|
|
8153
8441
|
}>;
|
|
8442
|
+
type UploadFilePreviewClientProps = {
|
|
8443
|
+
filename: string;
|
|
8444
|
+
filesize: number;
|
|
8445
|
+
/** Resolved URL of the file (data.url). */
|
|
8446
|
+
fileSrc: string;
|
|
8447
|
+
height?: number;
|
|
8448
|
+
mimeType: string;
|
|
8449
|
+
width?: number;
|
|
8450
|
+
};
|
|
8451
|
+
type UploadFilePreviewMap = {
|
|
8452
|
+
[mimeTypePattern: string]: PayloadComponent;
|
|
8453
|
+
};
|
|
8154
8454
|
type Admin = {
|
|
8155
8455
|
components?: {
|
|
8156
8456
|
/**
|
|
8157
8457
|
* The Controls component to extend the upload controls in the admin panel.
|
|
8158
8458
|
*/
|
|
8159
8459
|
controls?: PayloadComponent[];
|
|
8460
|
+
/**
|
|
8461
|
+
* A custom component to render in place of the default Thumbnail in the upload side panel.
|
|
8462
|
+
*
|
|
8463
|
+
* Can be a single PayloadComponent (renders for all MIME types) or a Record keyed by
|
|
8464
|
+
* MIME type patterns. Pattern resolution priority: exact match → category wildcard
|
|
8465
|
+
* (e.g. `video/*`) → universal fallback (`*`). Falls back to the default Thumbnail
|
|
8466
|
+
* when nothing matches.
|
|
8467
|
+
*/
|
|
8468
|
+
filePreview?: PayloadComponent | UploadFilePreviewMap;
|
|
8160
8469
|
};
|
|
8161
8470
|
};
|
|
8162
8471
|
type UploadConfig = {
|
|
@@ -8400,7 +8709,7 @@ declare const forgotPasswordOperation: <TSlug extends AuthCollectionSlug>(incomi
|
|
|
8400
8709
|
type LoginResult<TSlug extends AuthCollectionSlug> = {
|
|
8401
8710
|
exp?: number;
|
|
8402
8711
|
token?: string;
|
|
8403
|
-
user?: DataFromCollectionSlug<TSlug>;
|
|
8712
|
+
user?: AuthRuntimeFields & DataFromCollectionSlug<TSlug>;
|
|
8404
8713
|
};
|
|
8405
8714
|
type Arguments$n<TSlug extends AuthCollectionSlug> = {
|
|
8406
8715
|
collection: Collection;
|
|
@@ -8483,7 +8792,6 @@ type Arguments$i<TSlug extends CollectionSlug> = {
|
|
|
8483
8792
|
overwriteExistingFiles?: boolean;
|
|
8484
8793
|
populate?: PopulateType;
|
|
8485
8794
|
publishAllLocales?: boolean;
|
|
8486
|
-
publishSpecificLocale?: string;
|
|
8487
8795
|
req: PayloadRequest;
|
|
8488
8796
|
selectedLocales?: string[];
|
|
8489
8797
|
showHiddenFields?: boolean;
|
|
@@ -8761,7 +9069,7 @@ type BaseFindOptions<TSlug extends CollectionSlug, TSelect extends SelectType> =
|
|
|
8761
9069
|
/**
|
|
8762
9070
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
8763
9071
|
*/
|
|
8764
|
-
user?:
|
|
9072
|
+
user?: null | User;
|
|
8765
9073
|
/**
|
|
8766
9074
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
8767
9075
|
*/
|
|
@@ -8800,7 +9108,6 @@ type Arguments$b<TSlug extends CollectionSlug> = {
|
|
|
8800
9108
|
overwriteExistingFiles?: boolean;
|
|
8801
9109
|
populate?: PopulateType;
|
|
8802
9110
|
publishAllLocales?: boolean;
|
|
8803
|
-
publishSpecificLocale?: string;
|
|
8804
9111
|
req: PayloadRequest;
|
|
8805
9112
|
showHiddenFields?: boolean;
|
|
8806
9113
|
/**
|
|
@@ -8829,7 +9136,6 @@ type Arguments$a<TSlug extends CollectionSlug> = {
|
|
|
8829
9136
|
overwriteExistingFiles?: boolean;
|
|
8830
9137
|
populate?: PopulateType;
|
|
8831
9138
|
publishAllLocales?: boolean;
|
|
8832
|
-
publishSpecificLocale?: string;
|
|
8833
9139
|
req: PayloadRequest;
|
|
8834
9140
|
showHiddenFields?: boolean;
|
|
8835
9141
|
trash?: boolean;
|
|
@@ -8885,15 +9191,6 @@ type AfterOperationArg<TOperationGeneric extends CollectionSlug> = {
|
|
|
8885
9191
|
args: Parameters<OperationMap<TOperationGeneric>['deleteByID']>[0];
|
|
8886
9192
|
operation: 'deleteByID';
|
|
8887
9193
|
result: Awaited<ReturnType<OperationMap<TOperationGeneric>['deleteByID']>>;
|
|
8888
|
-
} | {
|
|
8889
|
-
args: Parameters<OperationMap<TOperationGeneric>['find']>[0];
|
|
8890
|
-
/**
|
|
8891
|
-
* @deprecated Use 'find' or 'findByID' operation instead
|
|
8892
|
-
*
|
|
8893
|
-
* TODO: v4 - remove this union option
|
|
8894
|
-
*/
|
|
8895
|
-
operation: 'read';
|
|
8896
|
-
result: Awaited<ReturnType<OperationMap<TOperationGeneric>['find']>>;
|
|
8897
9194
|
} | {
|
|
8898
9195
|
args: Parameters<OperationMap<TOperationGeneric>['find']>[0];
|
|
8899
9196
|
operation: 'find';
|
|
@@ -9029,6 +9326,12 @@ type BeforeOperationArg<TOperationGeneric extends CollectionSlug> = {
|
|
|
9029
9326
|
});
|
|
9030
9327
|
|
|
9031
9328
|
type DataFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollection[TSlug];
|
|
9329
|
+
/**
|
|
9330
|
+
* The ID type of a given collection (e.g. `string` or `number`), taken from its generated type.
|
|
9331
|
+
* Use this instead of the project-wide {@link DefaultDocumentIDType} when the collection slug is
|
|
9332
|
+
* known, since each collection can have its own ID type.
|
|
9333
|
+
*/
|
|
9334
|
+
type IDTypeForCollectionSlug<TSlug extends CollectionSlug> = DataFromCollectionSlug<TSlug>['id'];
|
|
9032
9335
|
type SelectFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollectionSelect[TSlug];
|
|
9033
9336
|
/**
|
|
9034
9337
|
* Collection slugs that do not have drafts enabled.
|
|
@@ -9324,6 +9627,7 @@ type CollectionAdminOptions = {
|
|
|
9324
9627
|
list?: {
|
|
9325
9628
|
actions?: CustomComponent[];
|
|
9326
9629
|
Component?: PayloadComponent;
|
|
9630
|
+
NoResults?: CustomComponent;
|
|
9327
9631
|
};
|
|
9328
9632
|
} & SharedEntityViews;
|
|
9329
9633
|
} & Omit<SharedAdminComponents, 'edit' | 'views'>;
|
|
@@ -9372,13 +9676,6 @@ type CollectionAdminOptions = {
|
|
|
9372
9676
|
* - Set to `false` to exclude the entity from the sidebar / dashboard without disabling its routes.
|
|
9373
9677
|
*/
|
|
9374
9678
|
group?: false | Record<string, string> | string;
|
|
9375
|
-
/**
|
|
9376
|
-
* @description Enable grouping by a field in the list view.
|
|
9377
|
-
* Uses `payload.findDistinct` under the hood to populate the group-by options.
|
|
9378
|
-
*
|
|
9379
|
-
* @experimental This option is currently in beta and may change in future releases. Use at your own risk.
|
|
9380
|
-
*/
|
|
9381
|
-
groupBy?: boolean;
|
|
9382
9679
|
/**
|
|
9383
9680
|
* Exclude the collection from the admin nav and routes
|
|
9384
9681
|
*/
|
|
@@ -9455,6 +9752,10 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
|
|
|
9455
9752
|
* Default field to sort by in collection list view
|
|
9456
9753
|
*/
|
|
9457
9754
|
defaultSort?: Sort;
|
|
9755
|
+
/**
|
|
9756
|
+
* Disable the bulk delete operation for the collection in the admin panel and the API
|
|
9757
|
+
*/
|
|
9758
|
+
disableBulkDelete?: boolean;
|
|
9458
9759
|
/**
|
|
9459
9760
|
* Disable the bulk edit operation for the collection in the admin panel and the API
|
|
9460
9761
|
*/
|
|
@@ -9732,6 +10033,11 @@ type SanitizedCompoundIndex = {
|
|
|
9732
10033
|
declare const validOperators: readonly ["equals", "contains", "not_equals", "in", "all", "not_in", "exists", "greater_than", "greater_than_equal", "less_than", "less_than_equal", "like", "not_like", "within", "intersects", "near"];
|
|
9733
10034
|
type Operator = (typeof validOperators)[number];
|
|
9734
10035
|
|
|
10036
|
+
interface PayloadRequestAPI {
|
|
10037
|
+
GraphQL: true;
|
|
10038
|
+
local: true;
|
|
10039
|
+
REST: true;
|
|
10040
|
+
}
|
|
9735
10041
|
type CustomPayloadRequestProperties = {
|
|
9736
10042
|
context: RequestContext;
|
|
9737
10043
|
/** The locale that should be used for a field when it is not translated to the requested locale */
|
|
@@ -9751,7 +10057,7 @@ type CustomPayloadRequestProperties = {
|
|
|
9751
10057
|
/**
|
|
9752
10058
|
* The context in which the request is being made
|
|
9753
10059
|
*/
|
|
9754
|
-
payloadAPI:
|
|
10060
|
+
payloadAPI: keyof PayloadRequestAPI;
|
|
9755
10061
|
/** Optimized document loader */
|
|
9756
10062
|
payloadDataLoader: {
|
|
9757
10063
|
/**
|
|
@@ -9778,6 +10084,15 @@ type CustomPayloadRequestProperties = {
|
|
|
9778
10084
|
* { collection: 'posts', id: '123' }
|
|
9779
10085
|
*/
|
|
9780
10086
|
routeParams?: Record<string, unknown>;
|
|
10087
|
+
/**
|
|
10088
|
+
* Framework abstraction for server-only navigation, cookies, and headers APIs.
|
|
10089
|
+
* Populated by the framework adapter (e.g. `@payloadcms/next`). Plugins that
|
|
10090
|
+
* have access to `req` should call methods here (`req.server.unauthorized()`,
|
|
10091
|
+
* `req.server.redirect(...)`) instead of importing from `next/navigation` or
|
|
10092
|
+
* `next/headers` directly. Optional because non-framework contexts (jobs,
|
|
10093
|
+
* scripts, tests) construct requests without a server adapter.
|
|
10094
|
+
*/
|
|
10095
|
+
server?: ServerAdapter;
|
|
9781
10096
|
/** Translate function - duplicate of i18n.t */
|
|
9782
10097
|
t: TFunction;
|
|
9783
10098
|
/**
|
|
@@ -9785,13 +10100,8 @@ type CustomPayloadRequestProperties = {
|
|
|
9785
10100
|
* Can also be used to ensure consistency when multiple operations try to create a transaction concurrently on the same request.
|
|
9786
10101
|
*/
|
|
9787
10102
|
transactionID?: number | Promise<number | string> | string;
|
|
9788
|
-
/**
|
|
9789
|
-
* Used to ensure consistency when multiple operations try to create a transaction concurrently on the same request
|
|
9790
|
-
* @deprecated This is not used anywhere, instead `transactionID` is used for the above. Will be removed in next major version.
|
|
9791
|
-
*/
|
|
9792
|
-
transactionIDPromise?: Promise<void>;
|
|
9793
10103
|
/** The signed-in user */
|
|
9794
|
-
user:
|
|
10104
|
+
user: AuthenticatedUser | null;
|
|
9795
10105
|
} & Pick<URL, 'hash' | 'host' | 'href' | 'origin' | 'pathname' | 'port' | 'protocol' | 'search' | 'searchParams'>;
|
|
9796
10106
|
type PayloadRequestData = {
|
|
9797
10107
|
/**
|
|
@@ -10011,9 +10321,18 @@ type AuthArgs = {
|
|
|
10011
10321
|
type AuthResult = {
|
|
10012
10322
|
permissions: SanitizedPermissions;
|
|
10013
10323
|
responseHeaders?: Headers;
|
|
10014
|
-
user:
|
|
10324
|
+
user: AuthenticatedUser | null;
|
|
10015
10325
|
};
|
|
10016
10326
|
|
|
10327
|
+
/**
|
|
10328
|
+
* Strategy for dev-mode HMR/reload detection.
|
|
10329
|
+
* Each framework adapter provides its own implementation.
|
|
10330
|
+
*/
|
|
10331
|
+
type DevReloadStrategy = {
|
|
10332
|
+
connect: (onReload: () => void) => DevReloadCleanup;
|
|
10333
|
+
};
|
|
10334
|
+
type DevReloadCleanup = () => void;
|
|
10335
|
+
|
|
10017
10336
|
type Options$g<TSlug extends AuthCollectionSlug> = {
|
|
10018
10337
|
collection: TSlug;
|
|
10019
10338
|
context?: RequestContext;
|
|
@@ -10065,6 +10384,94 @@ type Options$c<TSlug extends AuthCollectionSlug> = {
|
|
|
10065
10384
|
token: string;
|
|
10066
10385
|
};
|
|
10067
10386
|
|
|
10387
|
+
/**
|
|
10388
|
+
* Client-side router adapter to abstract away framework-specific routing implementations.
|
|
10389
|
+
* This way plugins and server components can use server-only APIs without directly importing any framework-specific modules.
|
|
10390
|
+
*
|
|
10391
|
+
* @example
|
|
10392
|
+
* ```tsx
|
|
10393
|
+
* // Next.js router adapter (simplified):
|
|
10394
|
+
* import { useRouter as useNextRouter, usePathname as useNextPathname } from 'next/navigation'
|
|
10395
|
+
*
|
|
10396
|
+
* const NextRouterAdapter: RouterAdapterComponent = ({ children }) => {
|
|
10397
|
+
* const router = useNextRouter()
|
|
10398
|
+
* const pathname = useNextPathname()
|
|
10399
|
+
*
|
|
10400
|
+
* return (
|
|
10401
|
+
* <RouterAdapterContext value={{ router, pathname, ... }}>
|
|
10402
|
+
* {children}
|
|
10403
|
+
* </RouterAdapterContext>
|
|
10404
|
+
* )
|
|
10405
|
+
* }
|
|
10406
|
+
* ```
|
|
10407
|
+
*/
|
|
10408
|
+
type RouterAdapterComponent = React$1.ComponentType<{
|
|
10409
|
+
children: React$1.ReactNode;
|
|
10410
|
+
}>;
|
|
10411
|
+
type RouterAdapterRouter = {
|
|
10412
|
+
/**
|
|
10413
|
+
* Navigate back to the previous page in the history stack.
|
|
10414
|
+
*/
|
|
10415
|
+
back: () => void;
|
|
10416
|
+
/**
|
|
10417
|
+
* Navigate to a new path.
|
|
10418
|
+
*/
|
|
10419
|
+
push: (path: string, options?: {
|
|
10420
|
+
scroll?: boolean;
|
|
10421
|
+
}) => void;
|
|
10422
|
+
/**
|
|
10423
|
+
* Refresh the current route.
|
|
10424
|
+
*/
|
|
10425
|
+
refresh: () => void;
|
|
10426
|
+
/**
|
|
10427
|
+
* Replace the current path with a new one.
|
|
10428
|
+
*/
|
|
10429
|
+
replace: (path: string, options?: {
|
|
10430
|
+
scroll?: boolean;
|
|
10431
|
+
}) => void;
|
|
10432
|
+
};
|
|
10433
|
+
type LinkAdapterProps = {
|
|
10434
|
+
children?: React$1.ReactNode;
|
|
10435
|
+
href: string;
|
|
10436
|
+
prefetch?: boolean;
|
|
10437
|
+
ref?: React$1.Ref<HTMLAnchorElement>;
|
|
10438
|
+
replace?: boolean;
|
|
10439
|
+
scroll?: boolean;
|
|
10440
|
+
} & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
|
|
10441
|
+
|
|
10442
|
+
/**
|
|
10443
|
+
* Signature for ui-side view metadata generators. Returns a framework-agnostic
|
|
10444
|
+
* `MetaConfig` that adapter-side code formats into framework metadata.
|
|
10445
|
+
*/
|
|
10446
|
+
type GenerateViewMetadata = (args: {
|
|
10447
|
+
config: SanitizedConfig;
|
|
10448
|
+
i18n: I18nClient;
|
|
10449
|
+
isEditing?: boolean;
|
|
10450
|
+
params?: {
|
|
10451
|
+
[key: string]: string | string[];
|
|
10452
|
+
};
|
|
10453
|
+
}) => Promise<MetaConfig>;
|
|
10454
|
+
/**
|
|
10455
|
+
* One entry in a framework's `AdminViewAdapter`. Pairs a React component with
|
|
10456
|
+
* a metadata generator. `TComponentProps` and `TMetadata` are framework-specific
|
|
10457
|
+
* (Next narrows `TMetadata` to `next`'s `Metadata` type).
|
|
10458
|
+
*/
|
|
10459
|
+
type AdminView<TComponentProps = any, TMetadata = unknown> = {
|
|
10460
|
+
Component: React$1.ComponentType<TComponentProps>;
|
|
10461
|
+
generateMetadata: (args: Parameters<GenerateViewMetadata>[0]) => Promise<TMetadata>;
|
|
10462
|
+
};
|
|
10463
|
+
/**
|
|
10464
|
+
* The canonical set of admin view keys that every framework adapter must implement.
|
|
10465
|
+
* Adding a new admin view requires adding its key here so all adapters stay in sync.
|
|
10466
|
+
*/
|
|
10467
|
+
type AdminViewKey = 'account' | 'createFirstUser' | 'dashboard' | 'forgot' | 'login' | 'logout' | 'logoutInactivity' | 'notFound' | 'reset' | 'unauthorized' | 'unauthorizedWithGutter' | 'verify';
|
|
10468
|
+
/**
|
|
10469
|
+
* Keyed map of `AdminView` — exactly one entry per `AdminViewKey`.
|
|
10470
|
+
* Framework adapters export an instance of this; missing or misspelled keys are
|
|
10471
|
+
* a type error.
|
|
10472
|
+
*/
|
|
10473
|
+
type AdminViewAdapter<TComponentProps = any, TMetadata = unknown> = Record<AdminViewKey, AdminView<TComponentProps, TMetadata>>;
|
|
10474
|
+
|
|
10068
10475
|
type CountOptions<TSlug extends CollectionSlug> = {
|
|
10069
10476
|
/**
|
|
10070
10477
|
* the Collection slug to operate against.
|
|
@@ -10108,7 +10515,7 @@ type CountOptions<TSlug extends CollectionSlug> = {
|
|
|
10108
10515
|
/**
|
|
10109
10516
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10110
10517
|
*/
|
|
10111
|
-
user?:
|
|
10518
|
+
user?: null | User;
|
|
10112
10519
|
/**
|
|
10113
10520
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10114
10521
|
*/
|
|
@@ -10194,7 +10601,7 @@ type BaseOptions$7<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10194
10601
|
/**
|
|
10195
10602
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10196
10603
|
*/
|
|
10197
|
-
user?:
|
|
10604
|
+
user?: null | User;
|
|
10198
10605
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10199
10606
|
type Options$b<TSlug extends CollectionSlug, TSelect extends SelectType> = GeneratedTypes extends {
|
|
10200
10607
|
strictDraftTypes: true;
|
|
@@ -10319,7 +10726,7 @@ type BaseOptions$6<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10319
10726
|
/**
|
|
10320
10727
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10321
10728
|
*/
|
|
10322
|
-
user?:
|
|
10729
|
+
user?: null | User;
|
|
10323
10730
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10324
10731
|
type ByIDOptions$1<TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>> = {
|
|
10325
10732
|
/**
|
|
@@ -10407,7 +10814,7 @@ type BaseOptions$5<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10407
10814
|
/**
|
|
10408
10815
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10409
10816
|
*/
|
|
10410
|
-
user?:
|
|
10817
|
+
user?: null | User;
|
|
10411
10818
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10412
10819
|
type Options$a<TSlug extends CollectionSlug, TSelect extends SelectType> = BaseOptions$5<TSlug, TSelect> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10413
10820
|
|
|
@@ -10495,7 +10902,7 @@ type BaseFindByIDOptions<TSlug extends CollectionSlug, TDisableErrors extends bo
|
|
|
10495
10902
|
/**
|
|
10496
10903
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10497
10904
|
*/
|
|
10498
|
-
user?:
|
|
10905
|
+
user?: null | User;
|
|
10499
10906
|
} & Pick<FindByIDArgs, 'flattenLocales'> & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10500
10907
|
type Options$9<TSlug extends CollectionSlug, TDisableErrors extends boolean, TSelect extends SelectType> = BaseFindByIDOptions<TSlug, TDisableErrors, TSelect> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10501
10908
|
|
|
@@ -10575,7 +10982,7 @@ type Options$8<TSlug extends CollectionSlug, TField extends keyof DataFromCollec
|
|
|
10575
10982
|
/**
|
|
10576
10983
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10577
10984
|
*/
|
|
10578
|
-
user?:
|
|
10985
|
+
user?: null | User;
|
|
10579
10986
|
/**
|
|
10580
10987
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10581
10988
|
*/
|
|
@@ -10647,7 +11054,7 @@ type BaseOptions$4<TSlug extends CollectionSlug> = {
|
|
|
10647
11054
|
/**
|
|
10648
11055
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10649
11056
|
*/
|
|
10650
|
-
user?:
|
|
11057
|
+
user?: null | User;
|
|
10651
11058
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
10652
11059
|
type Options$7<TSlug extends CollectionSlug> = BaseOptions$4<TSlug> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10653
11060
|
|
|
@@ -10729,7 +11136,7 @@ type BaseOptions$3<TSlug extends CollectionSlug> = {
|
|
|
10729
11136
|
/**
|
|
10730
11137
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10731
11138
|
*/
|
|
10732
|
-
user?:
|
|
11139
|
+
user?: null | User;
|
|
10733
11140
|
/**
|
|
10734
11141
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10735
11142
|
*/
|
|
@@ -10788,7 +11195,7 @@ type BaseOptions$2<TSlug extends CollectionSlug> = {
|
|
|
10788
11195
|
/**
|
|
10789
11196
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10790
11197
|
*/
|
|
10791
|
-
user?:
|
|
11198
|
+
user?: null | User;
|
|
10792
11199
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
10793
11200
|
type Options$5<TSlug extends CollectionSlug> = BaseOptions$2<TSlug> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10794
11201
|
|
|
@@ -10860,17 +11267,12 @@ type BaseOptions$1<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10860
11267
|
*/
|
|
10861
11268
|
populate?: PopulateType;
|
|
10862
11269
|
/**
|
|
10863
|
-
* Publish the document / documents in all locales.
|
|
11270
|
+
* Publish the document / documents in all locales. Only applies when localization is enabled
|
|
11271
|
+
* and the collection has localized fields.
|
|
10864
11272
|
*
|
|
10865
11273
|
* @default undefined
|
|
10866
11274
|
*/
|
|
10867
11275
|
publishAllLocales?: boolean;
|
|
10868
|
-
/**
|
|
10869
|
-
* Publish the document / documents with a specific locale.
|
|
10870
|
-
*
|
|
10871
|
-
* @default undefined
|
|
10872
|
-
*/
|
|
10873
|
-
publishSpecificLocale?: string;
|
|
10874
11276
|
/**
|
|
10875
11277
|
* The `PayloadRequest` object. You can pass it to thread the current [transaction](https://payloadcms.com/docs/database/transactions), user and locale to the operation.
|
|
10876
11278
|
* Recommended to pass when using the Local API from hooks, as usually you want to execute the operation within the current transaction.
|
|
@@ -10889,13 +11291,14 @@ type BaseOptions$1<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10889
11291
|
*/
|
|
10890
11292
|
trash?: boolean;
|
|
10891
11293
|
/**
|
|
10892
|
-
* Unpublish the document / documents in all locales.
|
|
11294
|
+
* Unpublish the document / documents in all locales. Only applies when localization is enabled
|
|
11295
|
+
* and the collection has localized fields.
|
|
10893
11296
|
*/
|
|
10894
11297
|
unpublishAllLocales?: boolean;
|
|
10895
11298
|
/**
|
|
10896
11299
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10897
11300
|
*/
|
|
10898
|
-
user?:
|
|
11301
|
+
user?: null | User;
|
|
10899
11302
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10900
11303
|
type ByIDOptions<TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>> = {
|
|
10901
11304
|
/**
|
|
@@ -10972,7 +11375,7 @@ type CountGlobalVersionsOptions<TSlug extends GlobalSlug> = {
|
|
|
10972
11375
|
/**
|
|
10973
11376
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10974
11377
|
*/
|
|
10975
|
-
user?:
|
|
11378
|
+
user?: null | User;
|
|
10976
11379
|
/**
|
|
10977
11380
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10978
11381
|
*/
|
|
@@ -11062,7 +11465,7 @@ type BaseFindOneOptions<TSlug extends GlobalSlug, TSelect extends SelectType> =
|
|
|
11062
11465
|
/**
|
|
11063
11466
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11064
11467
|
*/
|
|
11065
|
-
user?:
|
|
11468
|
+
user?: null | User;
|
|
11066
11469
|
} & Pick<FindOptions<string, SelectType>, 'select'> & Pick<GlobalFindOneArgs, 'flattenLocales'>;
|
|
11067
11470
|
type Options$4<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseFindOneOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11068
11471
|
|
|
@@ -11122,7 +11525,7 @@ type Options$3<TSlug extends GlobalSlug> = {
|
|
|
11122
11525
|
/**
|
|
11123
11526
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11124
11527
|
*/
|
|
11125
|
-
user?:
|
|
11528
|
+
user?: null | User;
|
|
11126
11529
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11127
11530
|
|
|
11128
11531
|
type Options$2<TSlug extends GlobalSlug> = {
|
|
@@ -11194,7 +11597,7 @@ type Options$2<TSlug extends GlobalSlug> = {
|
|
|
11194
11597
|
/**
|
|
11195
11598
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11196
11599
|
*/
|
|
11197
|
-
user?:
|
|
11600
|
+
user?: null | User;
|
|
11198
11601
|
/**
|
|
11199
11602
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
11200
11603
|
*/
|
|
@@ -11252,7 +11655,7 @@ type Options$1<TSlug extends GlobalSlug> = {
|
|
|
11252
11655
|
/**
|
|
11253
11656
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11254
11657
|
*/
|
|
11255
|
-
user?:
|
|
11658
|
+
user?: null | User;
|
|
11256
11659
|
};
|
|
11257
11660
|
|
|
11258
11661
|
type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
@@ -11296,15 +11699,12 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
|
11296
11699
|
*/
|
|
11297
11700
|
populate?: PopulateType;
|
|
11298
11701
|
/**
|
|
11299
|
-
* Publish the document / documents in all locales.
|
|
11702
|
+
* Publish the document / documents in all locales. Only applies when localization is enabled
|
|
11703
|
+
* and the global has localized fields.
|
|
11300
11704
|
*
|
|
11301
11705
|
* @default undefined
|
|
11302
11706
|
*/
|
|
11303
11707
|
publishAllLocales?: boolean;
|
|
11304
|
-
/**
|
|
11305
|
-
* Publish the document / documents with a specific locale.
|
|
11306
|
-
*/
|
|
11307
|
-
publishSpecificLocale?: TypedLocale;
|
|
11308
11708
|
/**
|
|
11309
11709
|
* The `PayloadRequest` object. You can pass it to thread the current [transaction](https://payloadcms.com/docs/database/transactions), user and locale to the operation.
|
|
11310
11710
|
* Recommended to pass when using the Local API from hooks, as usually you want to execute the operation within the current transaction.
|
|
@@ -11320,13 +11720,14 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
|
11320
11720
|
*/
|
|
11321
11721
|
slug: TSlug;
|
|
11322
11722
|
/**
|
|
11323
|
-
* Unpublish the document / documents in all locales.
|
|
11723
|
+
* Unpublish the document / documents in all locales. Only applies when localization is enabled
|
|
11724
|
+
* and the global has localized fields.
|
|
11324
11725
|
*/
|
|
11325
11726
|
unpublishAllLocales?: boolean;
|
|
11326
11727
|
/**
|
|
11327
11728
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11328
11729
|
*/
|
|
11329
|
-
user?:
|
|
11730
|
+
user?: null | User;
|
|
11330
11731
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11331
11732
|
type Options<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11332
11733
|
|
|
@@ -12103,14 +12504,21 @@ type CountVersionsOptions<TSlug extends CollectionSlug> = {
|
|
|
12103
12504
|
/**
|
|
12104
12505
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
12105
12506
|
*/
|
|
12106
|
-
user?:
|
|
12507
|
+
user?: null | User;
|
|
12107
12508
|
/**
|
|
12108
12509
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
12109
12510
|
*/
|
|
12110
12511
|
where?: Where;
|
|
12111
12512
|
};
|
|
12112
12513
|
|
|
12113
|
-
|
|
12514
|
+
type APIKeyCheckboxFieldOverride = Omit<Partial<CheckboxField>, 'name' | 'type'>;
|
|
12515
|
+
type APIKeyTextFieldOverride = Omit<Partial<TextField>, 'hasMany' | 'maxRows' | 'minRows' | 'name' | 'type' | 'validate'>;
|
|
12516
|
+
declare const createAPIKeyFields: ({ apiKeyField, apiKeyIndexField, enableAPIKeyField, includeEnableAPIKey, }?: {
|
|
12517
|
+
apiKeyField?: APIKeyTextFieldOverride;
|
|
12518
|
+
apiKeyIndexField?: APIKeyTextFieldOverride;
|
|
12519
|
+
enableAPIKeyField?: APIKeyCheckboxFieldOverride;
|
|
12520
|
+
includeEnableAPIKey?: boolean;
|
|
12521
|
+
}) => Field[];
|
|
12114
12522
|
|
|
12115
12523
|
declare const baseAuthFields: Field[];
|
|
12116
12524
|
|
|
@@ -12122,6 +12530,8 @@ declare const usernameFieldConfig: TextField;
|
|
|
12122
12530
|
|
|
12123
12531
|
declare const verificationFields: Field[];
|
|
12124
12532
|
|
|
12533
|
+
declare const defaultUserCollection: CollectionConfig;
|
|
12534
|
+
|
|
12125
12535
|
type OperationArgs = {
|
|
12126
12536
|
data?: any;
|
|
12127
12537
|
disableErrors?: boolean;
|
|
@@ -12205,7 +12615,7 @@ declare const JWTAuthentication: AuthStrategyFunction;
|
|
|
12205
12615
|
type Args$i = {
|
|
12206
12616
|
collection: SanitizedCollectionConfig;
|
|
12207
12617
|
payload: Payload;
|
|
12208
|
-
user:
|
|
12618
|
+
user: User;
|
|
12209
12619
|
};
|
|
12210
12620
|
declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$i) => Promise<void>;
|
|
12211
12621
|
|
|
@@ -12298,26 +12708,22 @@ declare const restoreVersionOperation$1: <TData extends JsonObject & TypeWithID
|
|
|
12298
12708
|
*/
|
|
12299
12709
|
declare function buildConfig(config: Config): Promise<SanitizedConfig>;
|
|
12300
12710
|
|
|
12301
|
-
|
|
12302
|
-
* @deprecated - remove in 4.0. This is error-prone, as mutating this object will affect any objects that use the defaults as a base.
|
|
12303
|
-
*/
|
|
12304
|
-
declare const defaults: Omit<Config, 'db' | 'editor' | 'secret'>;
|
|
12711
|
+
declare const addDefaultsToConfig: (config: Config) => Config;
|
|
12305
12712
|
|
|
12306
12713
|
/**
|
|
12307
12714
|
* Helper for authoring plugins with order, slug, and typed options.
|
|
12308
12715
|
* Eliminates boilerplate and ensures metadata is always set consistently.
|
|
12309
12716
|
*
|
|
12310
|
-
* The `plugin` function receives
|
|
12311
|
-
*
|
|
12717
|
+
* The `plugin` function receives `config`, `plugins` (a slug-keyed map of other
|
|
12718
|
+
* plugins), and the user-provided `options`.
|
|
12312
12719
|
*
|
|
12313
12720
|
* @experimental
|
|
12314
12721
|
*
|
|
12315
12722
|
* @example
|
|
12316
12723
|
* // With options:
|
|
12317
|
-
* export const seoPlugin = definePlugin<
|
|
12724
|
+
* export const seoPlugin = definePlugin<SEOPluginConfig>({
|
|
12318
12725
|
* slug: 'plugin-seo',
|
|
12319
|
-
*
|
|
12320
|
-
* plugin: ({ config, plugins, collections }) => ({ ...config }),
|
|
12726
|
+
* plugin: ({ config, options }) => ({ ...config }),
|
|
12321
12727
|
* })
|
|
12322
12728
|
*
|
|
12323
12729
|
* // Without options:
|
|
@@ -12332,16 +12738,17 @@ declare function definePlugin(descriptor: {
|
|
|
12332
12738
|
config: Config;
|
|
12333
12739
|
plugins: PluginsMap;
|
|
12334
12740
|
}) => Config | Promise<Config>;
|
|
12335
|
-
slug
|
|
12741
|
+
slug: string;
|
|
12336
12742
|
}): () => Plugin;
|
|
12337
|
-
declare function definePlugin<TOptions
|
|
12743
|
+
declare function definePlugin<TOptions>(descriptor: {
|
|
12338
12744
|
order?: number;
|
|
12339
12745
|
plugin: (args: {
|
|
12340
12746
|
config: Config;
|
|
12747
|
+
options: TOptions;
|
|
12341
12748
|
plugins: PluginsMap;
|
|
12342
|
-
}
|
|
12343
|
-
slug
|
|
12344
|
-
}): (options: TOptions) => Plugin;
|
|
12749
|
+
}) => Config | Promise<Config>;
|
|
12750
|
+
slug: string;
|
|
12751
|
+
}): undefined extends TOptions ? (options?: TOptions) => Plugin : (options: TOptions) => Plugin;
|
|
12345
12752
|
|
|
12346
12753
|
/**
|
|
12347
12754
|
* The body of the reorder endpoint.
|
|
@@ -12929,7 +13336,6 @@ type Args$7<TSlug extends GlobalSlug> = {
|
|
|
12929
13336
|
overrideLock?: boolean;
|
|
12930
13337
|
populate?: PopulateType;
|
|
12931
13338
|
publishAllLocales?: boolean;
|
|
12932
|
-
publishSpecificLocale?: string;
|
|
12933
13339
|
req: PayloadRequest;
|
|
12934
13340
|
showHiddenFields?: boolean;
|
|
12935
13341
|
slug: string;
|
|
@@ -13251,39 +13657,6 @@ declare const canAccessAdmin: ({ req }: {
|
|
|
13251
13657
|
*/
|
|
13252
13658
|
declare function commitTransaction(req: MarkRequired<Partial<PayloadRequest>, 'payload'>): Promise<void>;
|
|
13253
13659
|
|
|
13254
|
-
/**
|
|
13255
|
-
* Returns a JSON Schema Type with 'null' added if the field is not required.
|
|
13256
|
-
*/
|
|
13257
|
-
declare function withNullableJSONSchemaType(fieldType: JSONSchema4TypeName, isRequired: boolean): JSONSchema4TypeName | JSONSchema4TypeName[];
|
|
13258
|
-
type ConfigToJSONSchemaOptions = {
|
|
13259
|
-
forceInlineBlocks?: boolean;
|
|
13260
|
-
};
|
|
13261
|
-
declare function fieldsToJSONSchema(
|
|
13262
|
-
/**
|
|
13263
|
-
* Used for relationship fields, to determine whether to use a string or number type for the ID.
|
|
13264
|
-
* While there is a default ID field type set by the db adapter, they can differ on a collection-level
|
|
13265
|
-
* if they have custom ID fields.
|
|
13266
|
-
*/
|
|
13267
|
-
collectionIDFieldTypes: {
|
|
13268
|
-
[key: string]: 'number' | 'string';
|
|
13269
|
-
}, fields: FlattenedField$1[],
|
|
13270
|
-
/**
|
|
13271
|
-
* Allows you to define new top-level interfaces that can be re-used in the output schema.
|
|
13272
|
-
*/
|
|
13273
|
-
interfaceNameDefinitions: Map<string, JSONSchema4>, config?: SanitizedConfig, i18n?: I18n, opts?: ConfigToJSONSchemaOptions): {
|
|
13274
|
-
properties: {
|
|
13275
|
-
[k: string]: JSONSchema4;
|
|
13276
|
-
};
|
|
13277
|
-
required: string[];
|
|
13278
|
-
};
|
|
13279
|
-
declare function entityToJSONSchema(config: SanitizedConfig, entity: SanitizedCollectionConfig | SanitizedGlobalConfig, interfaceNameDefinitions: Map<string, JSONSchema4>, defaultIDType: 'number' | 'text', collectionIDFieldTypes?: {
|
|
13280
|
-
[key: string]: 'number' | 'string';
|
|
13281
|
-
}, i18n?: I18n, opts?: ConfigToJSONSchemaOptions): JSONSchema4;
|
|
13282
|
-
/**
|
|
13283
|
-
* This is used for generating the TypeScript types (payload-types.ts) with the payload generate:types command.
|
|
13284
|
-
*/
|
|
13285
|
-
declare function configToJSONSchema(config: SanitizedConfig, defaultIDType?: 'number' | 'text', i18n?: I18n, opts?: ConfigToJSONSchemaOptions): JSONSchema4;
|
|
13286
|
-
|
|
13287
13660
|
declare function createArrayFromCommaDelineated(input: string): string[];
|
|
13288
13661
|
|
|
13289
13662
|
type CreateLocalReqOptions = {
|
|
@@ -13293,7 +13666,7 @@ type CreateLocalReqOptions = {
|
|
|
13293
13666
|
locale?: string;
|
|
13294
13667
|
req?: Partial<PayloadRequest>;
|
|
13295
13668
|
urlSuffix?: string;
|
|
13296
|
-
user?:
|
|
13669
|
+
user?: User;
|
|
13297
13670
|
};
|
|
13298
13671
|
type CreateLocalReq = (options: CreateLocalReqOptions, payload: Payload) => Promise<PayloadRequest>;
|
|
13299
13672
|
declare const createLocalReq: CreateLocalReq;
|
|
@@ -13555,7 +13928,7 @@ declare const getObjectDotNotation: <T>(obj: Record<string, unknown>, path: stri
|
|
|
13555
13928
|
|
|
13556
13929
|
type GetRequestLanguageArgs = {
|
|
13557
13930
|
config: SanitizedConfig;
|
|
13558
|
-
cookies: Map<string, string
|
|
13931
|
+
cookies: CookieStore | Map<string, string>;
|
|
13559
13932
|
defaultLanguage?: AcceptedLanguages;
|
|
13560
13933
|
headers: Request['headers'];
|
|
13561
13934
|
};
|
|
@@ -13649,6 +14022,71 @@ type ParseDocumentIDArgs = {
|
|
|
13649
14022
|
};
|
|
13650
14023
|
declare function parseDocumentID({ id, collectionSlug, payload }: ParseDocumentIDArgs): string | number | undefined;
|
|
13651
14024
|
|
|
14025
|
+
type JoinParams = {
|
|
14026
|
+
[schemaPath: string]: {
|
|
14027
|
+
limit?: unknown;
|
|
14028
|
+
sort?: string;
|
|
14029
|
+
where?: unknown;
|
|
14030
|
+
} | false;
|
|
14031
|
+
} | false;
|
|
14032
|
+
/**
|
|
14033
|
+
* Convert request JoinQuery object from strings to numbers
|
|
14034
|
+
* @param joins
|
|
14035
|
+
*/
|
|
14036
|
+
declare const sanitizeJoinParams: (_joins?: JoinParams) => JoinQuery;
|
|
14037
|
+
|
|
14038
|
+
type RawParams = {
|
|
14039
|
+
[key: string]: unknown;
|
|
14040
|
+
autosave?: string;
|
|
14041
|
+
data?: string;
|
|
14042
|
+
depth?: string;
|
|
14043
|
+
draft?: string;
|
|
14044
|
+
field?: string;
|
|
14045
|
+
flattenLocales?: string;
|
|
14046
|
+
joins?: JoinParams;
|
|
14047
|
+
limit?: string;
|
|
14048
|
+
overrideLock?: string;
|
|
14049
|
+
page?: string;
|
|
14050
|
+
pagination?: string;
|
|
14051
|
+
populate?: unknown;
|
|
14052
|
+
publishAllLocales?: string;
|
|
14053
|
+
select?: unknown;
|
|
14054
|
+
selectedLocales?: string;
|
|
14055
|
+
sort?: string | string[];
|
|
14056
|
+
trash?: string;
|
|
14057
|
+
unpublishAllLocales?: string;
|
|
14058
|
+
where?: string | Where;
|
|
14059
|
+
};
|
|
14060
|
+
type ParsedParams = {
|
|
14061
|
+
autosave?: boolean;
|
|
14062
|
+
data?: Record<string, unknown>;
|
|
14063
|
+
depth?: number;
|
|
14064
|
+
draft?: boolean;
|
|
14065
|
+
field?: string;
|
|
14066
|
+
flattenLocales?: boolean;
|
|
14067
|
+
joins?: JoinQuery;
|
|
14068
|
+
limit?: number;
|
|
14069
|
+
overrideLock?: boolean;
|
|
14070
|
+
page?: number;
|
|
14071
|
+
pagination?: boolean;
|
|
14072
|
+
populate?: PopulateType;
|
|
14073
|
+
publishAllLocales?: boolean;
|
|
14074
|
+
select?: SelectType;
|
|
14075
|
+
selectedLocales?: string[];
|
|
14076
|
+
sort?: string[];
|
|
14077
|
+
trash?: boolean;
|
|
14078
|
+
unpublishAllLocales?: boolean;
|
|
14079
|
+
where?: Where;
|
|
14080
|
+
} & Record<string, unknown>;
|
|
14081
|
+
/**
|
|
14082
|
+
* Takes raw query parameters and parses them into the correct types that Payload expects.
|
|
14083
|
+
* Examples:
|
|
14084
|
+
* a. `draft` provided as a string of "true" is converted to a boolean
|
|
14085
|
+
* b. `depth` provided as a string of "0" is converted to a number
|
|
14086
|
+
* c. `sort` provided as a comma-separated string or array is converted to an array of strings
|
|
14087
|
+
*/
|
|
14088
|
+
declare const parseParams: (params: RawParams) => ParsedParams;
|
|
14089
|
+
|
|
13652
14090
|
interface Args$5 {
|
|
13653
14091
|
fallbackLocale: TypedFallbackLocale;
|
|
13654
14092
|
locale: string;
|
|
@@ -13664,19 +14102,6 @@ interface Args$5 {
|
|
|
13664
14102
|
*/
|
|
13665
14103
|
declare const sanitizeFallbackLocale: ({ fallbackLocale, locale, localization, }: Args$5) => TypedFallbackLocale;
|
|
13666
14104
|
|
|
13667
|
-
type JoinParams = {
|
|
13668
|
-
[schemaPath: string]: {
|
|
13669
|
-
limit?: unknown;
|
|
13670
|
-
sort?: string;
|
|
13671
|
-
where?: unknown;
|
|
13672
|
-
} | false;
|
|
13673
|
-
} | false;
|
|
13674
|
-
/**
|
|
13675
|
-
* Convert request JoinQuery object from strings to numbers
|
|
13676
|
-
* @param joins
|
|
13677
|
-
*/
|
|
13678
|
-
declare const sanitizeJoinParams: (_joins?: JoinParams) => JoinQuery;
|
|
13679
|
-
|
|
13680
14105
|
/**
|
|
13681
14106
|
* Sanitizes REST populate query to PopulateType
|
|
13682
14107
|
*/
|
|
@@ -13687,6 +14112,8 @@ declare const sanitizePopulateParam: (unsanitizedPopulate: unknown) => PopulateT
|
|
|
13687
14112
|
*/
|
|
13688
14113
|
declare const sanitizeSelectParam: (unsanitizedSelect: unknown) => SelectType | undefined;
|
|
13689
14114
|
|
|
14115
|
+
declare const sanitizeSortParams: (sort: unknown) => string[] | undefined;
|
|
14116
|
+
|
|
13690
14117
|
/**
|
|
13691
14118
|
* This is used for the Select API to strip out fields that are not selected.
|
|
13692
14119
|
* It will mutate the given data object and determine if your recursive function should continue to run.
|
|
@@ -13815,32 +14242,6 @@ declare const getLatestGlobalVersion: ({ slug, config, locale, payload, publishe
|
|
|
13815
14242
|
globalExists: boolean;
|
|
13816
14243
|
}>;
|
|
13817
14244
|
|
|
13818
|
-
type LocalizeStatusArgs$1 = {
|
|
13819
|
-
collectionSlug?: string;
|
|
13820
|
-
globalSlug?: string;
|
|
13821
|
-
payload: Payload;
|
|
13822
|
-
req?: any;
|
|
13823
|
-
};
|
|
13824
|
-
|
|
13825
|
-
type LocalizeStatusArgs = {
|
|
13826
|
-
collectionSlug?: string;
|
|
13827
|
-
db: any;
|
|
13828
|
-
globalSlug?: string;
|
|
13829
|
-
payload: Payload;
|
|
13830
|
-
req?: any;
|
|
13831
|
-
sql: any;
|
|
13832
|
-
};
|
|
13833
|
-
|
|
13834
|
-
type LocalizeStatusMigration = {
|
|
13835
|
-
down: (args: any) => Promise<void>;
|
|
13836
|
-
up: (args: any) => Promise<void>;
|
|
13837
|
-
};
|
|
13838
|
-
/**
|
|
13839
|
-
* Main entry point for localizeStatus migration.
|
|
13840
|
-
* Detects database type and dispatches to appropriate implementation.
|
|
13841
|
-
*/
|
|
13842
|
-
declare const localizeStatus: LocalizeStatusMigration;
|
|
13843
|
-
|
|
13844
14245
|
type Args<T extends JsonObject = JsonObject> = {
|
|
13845
14246
|
autosave?: boolean;
|
|
13846
14247
|
collection?: SanitizedCollectionConfig;
|
|
@@ -13850,11 +14251,9 @@ type Args<T extends JsonObject = JsonObject> = {
|
|
|
13850
14251
|
id?: number | string;
|
|
13851
14252
|
operation?: 'create' | 'restoreVersion' | 'update';
|
|
13852
14253
|
payload: Payload;
|
|
13853
|
-
publishSpecificLocale?: string;
|
|
13854
14254
|
req?: PayloadRequest;
|
|
13855
14255
|
returning?: boolean;
|
|
13856
14256
|
select?: SelectType;
|
|
13857
|
-
snapshot?: any;
|
|
13858
14257
|
unpublish?: boolean;
|
|
13859
14258
|
};
|
|
13860
14259
|
declare function saveVersion<TData extends JsonObject = JsonObject>(args: {
|
|
@@ -13973,7 +14372,52 @@ interface UntypedPayloadTypes {
|
|
|
13973
14372
|
};
|
|
13974
14373
|
};
|
|
13975
14374
|
locale: null | string;
|
|
13976
|
-
|
|
14375
|
+
/**
|
|
14376
|
+
* User shape used when generated types are unavailable.
|
|
14377
|
+
* Includes common document fields and fields managed by Payload auth. Custom fields and
|
|
14378
|
+
* collection features such as drafts, trash, and uploads require generated types. Runtime fields
|
|
14379
|
+
* `_strategy` and `_sid` belong to `AuthenticatedUser`.
|
|
14380
|
+
*/
|
|
14381
|
+
user: {
|
|
14382
|
+
/** Email verification token. Hidden (needs `showHiddenFields`). Only with `auth.verify`, until verified. */
|
|
14383
|
+
_verificationToken?: null | string;
|
|
14384
|
+
/** Whether the email is verified. Only with `auth.verify`. */
|
|
14385
|
+
_verified?: boolean | null;
|
|
14386
|
+
/** The user's API key. Only with `auth.useAPIKey`, once enabled for this user. */
|
|
14387
|
+
apiKey?: null | string;
|
|
14388
|
+
/** Internal lookup index for the API key. Hidden (needs `showHiddenFields`). Only with `auth.useAPIKey`. */
|
|
14389
|
+
apiKeyIndex?: null | string;
|
|
14390
|
+
/** Slug of the auth collection this user belongs to. Always present; identifies the source collection. */
|
|
14391
|
+
collection: string;
|
|
14392
|
+
/** When the user was created. Not present when timestamps are disabled. */
|
|
14393
|
+
createdAt?: string;
|
|
14394
|
+
/** The user's email. Absent if email login is disabled via `auth.loginWithUsername`. */
|
|
14395
|
+
email?: null | string;
|
|
14396
|
+
/** Whether API key auth is enabled for this user. Only with `auth.useAPIKey`. */
|
|
14397
|
+
enableAPIKey?: boolean | null;
|
|
14398
|
+
/** Hashed password. Hidden (needs `showHiddenFields`). Only with the local strategy. */
|
|
14399
|
+
hash?: null | string;
|
|
14400
|
+
/** The user's ID. Always present. */
|
|
14401
|
+
id: UntypedPayloadTypes['db']['defaultIDType'];
|
|
14402
|
+
/** Locked-until timestamp. Hidden (needs `showHiddenFields`). Only with `auth.maxLoginAttempts`, while locked. */
|
|
14403
|
+
lockUntil?: null | string;
|
|
14404
|
+
/** Failed login attempt count. Hidden (needs `showHiddenFields`). Only with `auth.maxLoginAttempts`. */
|
|
14405
|
+
loginAttempts?: null | number;
|
|
14406
|
+
/** Plain-text password. Write-only: accepted on `create`/`update`, never returned on reads. */
|
|
14407
|
+
password?: null | string;
|
|
14408
|
+
/** Reset-token expiry. Hidden (needs `showHiddenFields`). Only after `forgotPassword`, until reset. */
|
|
14409
|
+
resetPasswordExpiration?: null | string;
|
|
14410
|
+
/** Active password-reset token. Hidden (needs `showHiddenFields`). Only after `forgotPassword`, until reset. */
|
|
14411
|
+
resetPasswordToken?: null | string;
|
|
14412
|
+
/** Password salt. Hidden (needs `showHiddenFields`). Only with the local strategy. */
|
|
14413
|
+
salt?: null | string;
|
|
14414
|
+
/** Active login sessions. Only with `auth.useSessions` (the default). */
|
|
14415
|
+
sessions?: Array<UserSession> | null;
|
|
14416
|
+
/** When the user was last updated. Not present when timestamps are disabled. */
|
|
14417
|
+
updatedAt?: string;
|
|
14418
|
+
/** The user's username. Only with `auth.loginWithUsername`. */
|
|
14419
|
+
username?: null | string;
|
|
14420
|
+
};
|
|
13977
14421
|
widgets: {
|
|
13978
14422
|
[slug: string]: JsonObject;
|
|
13979
14423
|
};
|
|
@@ -14036,13 +14480,13 @@ type GlobalSlug<T extends PayloadTypesShape = PayloadTypes> = StringKeyOf<T['glo
|
|
|
14036
14480
|
type TypedLocale<T extends PayloadTypesShape = PayloadTypes> = T['locale'];
|
|
14037
14481
|
type TypedFallbackLocale = PayloadTypes['fallbackLocale'];
|
|
14038
14482
|
/**
|
|
14483
|
+
* User document type for auth-enabled collections.
|
|
14484
|
+
* Uses generated types when available and the auth-only fallback above otherwise. Generated types
|
|
14485
|
+
* include custom fields and can be a union when several collections support auth.
|
|
14039
14486
|
*
|
|
14040
|
-
*
|
|
14041
|
-
* auth-enabled collections.
|
|
14042
|
-
*
|
|
14043
|
-
* @todo rename to `User` in 4.0
|
|
14487
|
+
* Not the signed-in `req.user`, which also has `_strategy` and `_sid` - use `AuthenticatedUser`.
|
|
14044
14488
|
*/
|
|
14045
|
-
type
|
|
14489
|
+
type User = PayloadTypes['user'];
|
|
14046
14490
|
type TypedAuthOperations<T extends PayloadTypesShape = PayloadTypes> = T['auth'];
|
|
14047
14491
|
type AuthCollectionSlug<T extends PayloadTypesShape = PayloadTypes> = StringKeyOf<T['auth']>;
|
|
14048
14492
|
type TypedJobs = PayloadTypes['jobs'];
|
|
@@ -14290,15 +14734,13 @@ declare class BasePayload {
|
|
|
14290
14734
|
declare const initialized: BasePayload;
|
|
14291
14735
|
|
|
14292
14736
|
declare const reload: (config: SanitizedConfig, payload: Payload, skipImportMapGeneration?: boolean, options?: InitOptions) => Promise<void>;
|
|
14293
|
-
/**
|
|
14294
|
-
* Get a payload instance.
|
|
14295
|
-
* This function is a wrapper around new BasePayload().init() that adds the following functionality on top of that:
|
|
14296
|
-
*
|
|
14297
|
-
* - smartly caches Payload instance on the module scope. That way, we prevent unnecessarily initializing Payload over and over again
|
|
14298
|
-
* when calling getPayload multiple times or from multiple locations.
|
|
14299
|
-
* - adds HMR support and reloads the payload instance when the config changes.
|
|
14300
|
-
*/
|
|
14301
14737
|
declare const getPayload: (options: {
|
|
14738
|
+
/**
|
|
14739
|
+
* Custom dev reload strategy. If provided, replaces the default
|
|
14740
|
+
* Next.js HMR WebSocket listener. The strategy's `connect` function
|
|
14741
|
+
* receives a callback to trigger config reload.
|
|
14742
|
+
*/
|
|
14743
|
+
devReloadStrategy?: DevReloadStrategy;
|
|
14302
14744
|
/**
|
|
14303
14745
|
* A unique key to identify the payload instance. You can pass your own key if you want to cache this payload instance separately.
|
|
14304
14746
|
* This is useful if you pass a different payload config for each instance.
|
|
@@ -14335,5 +14777,5 @@ interface GlobalAdminCustom extends Record<string, any> {
|
|
|
14335
14777
|
interface GlobalAdminCustom extends Record<string, any> {
|
|
14336
14778
|
}
|
|
14337
14779
|
|
|
14338
|
-
export { APIError, APIErrorName, Action, AuthenticationError, BasePayload, DEFAULT_ALLOW_HAS_MANY, DEFAULT_HIERARCHY_TREE_LIMIT, DatabaseKVAdapter, DiffMethod, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, EntityType, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, HIERARCHY_DEFAULT_LOCALE, HIERARCHY_SLUG_PATH_FIELD, HIERARCHY_TITLE_PATH_FIELD, InMemoryKVAdapter, InvalidConfiguration, InvalidFieldName, InvalidFieldRelationship, JWTAuthentication, JobCancelledError, Locked, LockedAuth, MissingCollectionLabel, MissingEditorProp, MissingFieldInputOptions, MissingFieldType, MissingFile, NotFound, QueryError, UnauthorizedError, UnverifiedEmail, ValidationError, ValidationErrorName, _internal_jobSystemGlobals, _internal_resetJobSystemGlobals, _internal_safeFetchGlobal, accessOperation, addDataAndFileToRequest, addLocalesToRequestFromData, traverseFields$4 as afterChangeTraverseFields, promise as afterReadPromise, traverseFields$3 as afterReadTraverseFields, appendVersionToQueryKey,
|
|
14339
|
-
export type { Access, AccessArgs, AccessResult, AdminClient, AdminComponent, AdminDependencies, AdminFunction, AdminViewClientProps, AdminViewComponent, AdminViewConfig, AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, AfterErrorHook$1 as AfterErrorHook, AfterErrorHookArgs, AfterErrorResult, AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, AllOperations, AllowList, Ancestor, ApplyDisableErrors, ArrayField, ArrayFieldClient, ArrayFieldClientComponent, ArrayFieldClientProps, ArrayFieldDescriptionClientComponent, ArrayFieldDescriptionServerComponent, ArrayFieldDiffClientComponent, ArrayFieldDiffServerComponent, ArrayFieldErrorClientComponent, ArrayFieldErrorServerComponent, ArrayFieldLabelClientComponent, ArrayFieldLabelServerComponent, ArrayFieldServerComponent, ArrayFieldServerProps, ArrayFieldValidation, Auth, AuthCollection, AuthCollectionSlug, AuthOperations, AuthOperationsFromCollectionSlug, AuthStrategy, AuthStrategyFunction, AuthStrategyFunctionArgs, AuthStrategyResult, BaseDatabaseAdapter, BaseFilter, BaseJob, BaseListFilter, BaseLocalizationConfig, BaseValidateOptions, BaseVersionField, BeforeDocumentControlsClientProps, BeforeDocumentControlsServerProps, BeforeDocumentControlsServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, BeginTransaction, BinScript, BinScriptConfig, Block, BlockJSX, BlockPermissions, BlockRowLabelClientComponent, BlockRowLabelServerComponent, BlockSlug, BlocksField, BlocksFieldClient, BlocksFieldClientComponent, BlocksFieldClientProps, BlocksFieldDescriptionClientComponent, BlocksFieldDescriptionServerComponent, BlocksFieldDiffClientComponent, BlocksFieldDiffServerComponent, BlocksFieldErrorClientComponent, BlocksFieldErrorServerComponent, BlocksFieldLabelClientComponent, BlocksFieldLabelServerComponent, BlocksFieldServerComponent, BlocksFieldServerProps, BlocksFieldValidation, BlocksPermissions, BuildFormStateArgs, BuildTableStateArgs, BulkOperationResult, CORSConfig, CheckboxField, CheckboxFieldClient, CheckboxFieldClientComponent, CheckboxFieldClientProps, CheckboxFieldDescriptionClientComponent, CheckboxFieldDescriptionServerComponent, CheckboxFieldDiffClientComponent, CheckboxFieldDiffServerComponent, CheckboxFieldErrorClientComponent, CheckboxFieldErrorServerComponent, CheckboxFieldLabelClientComponent, CheckboxFieldLabelServerComponent, CheckboxFieldServerComponent, CheckboxFieldServerProps, CheckboxFieldValidation, ClientBlock, ClientCollectionConfig, ClientComponentProps, ClientConfig, ClientField, ClientFieldBase, ClientFieldProps, ClientFieldSchemaMap, ClientFieldWithOptionalType, ClientGlobalConfig, DocumentViewClientProps as ClientSideEditViewProps, ClientTab, ClientUser, ClientWidget, CodeField, CodeFieldClient, CodeFieldClientComponent, CodeFieldClientProps, CodeFieldDescriptionClientComponent, CodeFieldDescriptionServerComponent, CodeFieldDiffClientComponent, CodeFieldDiffServerComponent, CodeFieldErrorClientComponent, CodeFieldErrorServerComponent, CodeFieldLabelClientComponent, CodeFieldLabelServerComponent, CodeFieldServerComponent, CodeFieldServerProps, CodeFieldValidation, CollapsedPreferences, CollapsibleField, CollapsibleFieldClient, CollapsibleFieldClientComponent, CollapsibleFieldClientProps, CollapsibleFieldDescriptionClientComponent, CollapsibleFieldDescriptionServerComponent, CollapsibleFieldDiffClientComponent, CollapsibleFieldDiffServerComponent, CollapsibleFieldErrorClientComponent, CollapsibleFieldErrorServerComponent, CollapsibleFieldLabelClientComponent, CollapsibleFieldLabelServerComponent, CollapsibleFieldServerComponent, CollapsibleFieldServerProps, Collection, CollectionAdminCustom, CollectionAdminOptions, AfterChangeHook as CollectionAfterChangeHook, AfterDeleteHook as CollectionAfterDeleteHook, AfterErrorHook as CollectionAfterErrorHook, AfterForgotPasswordHook as CollectionAfterForgotPasswordHook, AfterLoginHook as CollectionAfterLoginHook, AfterLogoutHook as CollectionAfterLogoutHook, AfterMeHook as CollectionAfterMeHook, AfterOperationHook as CollectionAfterOperationHook, AfterReadHook as CollectionAfterReadHook, AfterRefreshHook as CollectionAfterRefreshHook, BeforeChangeHook as CollectionBeforeChangeHook, BeforeDeleteHook as CollectionBeforeDeleteHook, BeforeLoginHook as CollectionBeforeLoginHook, BeforeOperationHook as CollectionBeforeOperationHook, BeforeReadHook as CollectionBeforeReadHook, BeforeValidateHook as CollectionBeforeValidateHook, CollectionConfig, CollectionCustom, MeHook as CollectionMeHook, CollectionPermission, CollectionPreferences, RefreshHook as CollectionRefreshHook, CollectionSlug, Column, ColumnPreference, CommitTransaction, CompoundIndex, ConcurrencyConfig, Condition, ConditionalDateProps, Config, ConfirmPasswordFieldValidation, Connect, Count, CountArgs, CountGlobalVersionArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateClientConfigArgs, CreateFolderFieldOptions, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateTagFieldOptions, CreateVersion, CreateVersionArgs, CustomComponent, CustomDocumentViewConfig, CustomPayloadRequestProperties, CustomComponent as CustomPreviewButton, CustomComponent as CustomPublishButton, CustomComponent as CustomSaveButton, CustomComponent as CustomSaveDraftButton, CustomStatus, CustomUpload, CustomVersionParser, DBIdentifierName, DashboardConfig, Data, DataFromCollectionSlug, DataFromGlobalSlug, DataFromWidgetSlug, DatabaseAdapter, DatabaseAdapterResult as DatabaseAdapterObj, DatabaseKVAdapterOptions, DateField, DateFieldClient, DateFieldClientComponent, DateFieldClientProps, DateFieldDescriptionClientComponent, DateFieldDescriptionServerComponent, DateFieldDiffClientComponent, DateFieldDiffServerComponent, DateFieldErrorClientComponent, DateFieldErrorServerComponent, DateFieldLabelClientComponent, DateFieldLabelServerComponent, DateFieldServerComponent, DateFieldServerProps, DateFieldValidation, DayPickerProps, DefaultCellComponentProps, DefaultDocumentIDType, DefaultDocumentViewConfig, DefaultServerCellComponentProps, DefaultServerFunctionArgs, DefaultValue, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Description, DescriptionFunction, Destroy, Document, DocumentEvent, DocumentPermissions, DocumentPreferences, DocumentSlots, DocumentSubViewTypes, DocumentTabClientProps, DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabServerProps as DocumentTabProps, DocumentTabServerProps, DocumentTabServerPropsOnly, DocumentViewClientProps, DocumentViewComponent, DocumentViewConfig, DocumentViewServerProps, DocumentViewServerPropsOnly, DraftTransformCollectionWithSelect, DynamicMigrationTemplate, EditConfig, EditConfigWithRoot, EditConfigWithoutRoot, EditMenuItemsClientProps, EditMenuItemsServerProps, EditMenuItemsServerPropsOnly, EditViewComponent, EditViewConfig, EditViewProps, EmailAdapter, EmailField, EmailFieldClient, EmailFieldClientComponent, EmailFieldClientProps, EmailFieldDescriptionClientComponent, EmailFieldDescriptionServerComponent, EmailFieldDiffClientComponent, EmailFieldDiffServerComponent, EmailFieldErrorClientComponent, EmailFieldErrorServerComponent, EmailFieldLabelClientComponent, EmailFieldLabelServerComponent, EmailFieldServerComponent, EmailFieldServerProps, EmailFieldValidation, Endpoint, EntityDescription, EntityDescriptionComponent, EntityDescriptionFunction, EntityPolicies, ErrorResult, FetchAPIFileUploadOptions, Field, FieldAccess, FieldAccessArgs, FieldAffectingData, FieldAffectingDataClient, FieldBase, FieldBaseClient, FieldClientComponent, FieldCustom, FieldDescriptionClientComponent, FieldDescriptionClientProps, FieldDescriptionServerComponent, FieldDescriptionServerProps, FieldDiffClientComponent, FieldDiffClientProps, FieldDiffServerComponent, FieldDiffServerProps, FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, FieldHook, FieldHookArgs, FieldLabelClientComponent, FieldLabelClientProps, FieldLabelServerComponent, FieldLabelServerProps, FieldPaths, FieldPermissions, FieldPosition, FieldPresentationalOnly, FieldPresentationalOnlyClient, FieldRow, FieldSchemaMap, FieldServerComponent, FieldState, FieldTypes, FieldWithMany, FieldWithManyClient, FieldWithMaxDepth, FieldWithMaxDepthClient, FieldWithPath, FieldWithPathClient, FieldWithSubFields, FieldWithSubFieldsClient, FieldsPermissions, FieldsPreferences, File$1 as File, FileAllowList, FileData, FileSize, FileSizeImproved, FileSizes, FileToSave, FilterOptions, FilterOptionsProps, FilterOptionsResult, Find, FindArgs, FindDistinct, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindOptions, FindVersions, FindVersionsArgs, FlattenedArrayField, FlattenedBlock, FlattenedBlocksField, FlattenedField$1 as FlattenedField, FlattenedGroupField, FlattenedJoinField, FlattenedTabAsField, FocalPoint, FoldersConfig, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FormState, FormStateWithoutComponents, GenerateImageName, GeneratePreviewURL, GenerateSchema, GeneratedTypes, GenericDescriptionProps, GenericErrorProps, GenericLabelProps, GetAdminThumbnail, GetInitialTreeDataArgs, GlobalAdminCustom, GlobalAdminOptions, AfterChangeHook$1 as GlobalAfterChangeHook, AfterReadHook$1 as GlobalAfterReadHook, BeforeChangeHook$1 as GlobalBeforeChangeHook, BeforeOperationHook$1 as GlobalBeforeOperationHook, BeforeReadHook$1 as GlobalBeforeReadHook, BeforeValidateHook$1 as GlobalBeforeValidateHook, GlobalConfig, GlobalCustom, GlobalPermission, GlobalSlug, GraphQLExtension, GraphQLInfo, GroupField, GroupFieldClient, GroupFieldClientComponent, GroupFieldClientProps, GroupFieldDescriptionClientComponent, GroupFieldDescriptionServerComponent, GroupFieldDiffClientComponent, GroupFieldDiffServerComponent, GroupFieldErrorClientComponent, GroupFieldErrorServerComponent, GroupFieldLabelClientComponent, GroupFieldLabelServerComponent, GroupFieldServerComponent, GroupFieldServerProps, HiddenFieldProps, HierarchyConfig, HierarchyViewData, HookName, HookOperationType, IfAny, ImageSize, ImageUploadFormatOptions, ImageUploadTrimOptions, ImportMap, ImportMapGenerators, IncomingAuthType, Init, InitOptions, InitPageResult, InitReqResult, InitialTreeData, InsideFieldsPreferences, IsAny, JSONField, JSONFieldClient, JSONFieldClientComponent, JSONFieldClientProps, JSONFieldDescriptionClientComponent, JSONFieldDescriptionServerComponent, JSONFieldDiffClientComponent, JSONFieldDiffServerComponent, JSONFieldErrorClientComponent, JSONFieldErrorServerComponent, JSONFieldLabelClientComponent, JSONFieldLabelServerComponent, JSONFieldServerComponent, JSONFieldServerProps, JSONFieldValidation, Job, JobLog, JobTaskStatus, JobsConfig, JoinField, JoinFieldClient, JoinFieldClientComponent, JoinFieldClientProps, JoinFieldDescriptionClientComponent, JoinFieldDescriptionServerComponent, JoinFieldDiffClientComponent, JoinFieldDiffServerComponent, JoinFieldErrorClientComponent, JoinFieldErrorServerComponent, JoinFieldLabelClientComponent, JoinFieldLabelServerComponent, JoinFieldServerComponent, JoinFieldServerProps, JoinQuery, JsonArray, JsonObject, JsonValue, KVAdapter, KVAdapterResult, KVStoreValue, LabelFunction, Labels, LabelsClient, LanguageOptions, CollectionPreferences as ListPreferences, ListQuery, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlotSharedClientProps, ListViewSlots, LivePreviewConfig, LivePreviewURLType, Locale, LocalizationConfig, LocalizationConfigWithLabels, LocalizationConfigWithNoLabels, LoginResult, LoginWithUsernameOptions, MappedClientComponent, MappedEmptyComponent, MappedServerComponent, MaybePromise, MeOperationResult, MetaConfig, Migration, MigrationData, MigrationTemplateArgs, LocalizeStatusArgs$1 as MongoLocalizeStatusArgs, NamedGroupField, NamedGroupFieldClient, NamedTab, NavGroupPreferences, NavPreferences, NonPresentationalField, NonPresentationalFieldClient, NumberField, NumberFieldClient, NumberFieldClientComponent, NumberFieldClientProps, NumberFieldDescriptionClientComponent, NumberFieldDescriptionServerComponent, NumberFieldDiffClientComponent, NumberFieldDiffServerComponent, NumberFieldErrorClientComponent, NumberFieldErrorServerComponent, NumberFieldLabelClientComponent, NumberFieldLabelServerComponent, NumberFieldManyValidation, NumberFieldServerComponent, NumberFieldServerProps, NumberFieldSingleValidation, NumberFieldValidation, OGImageConfig, Operation, Operator, Option, OptionLabel, OptionObject, OrderableEndpointBody, PaginatedDistinctDocs, PaginatedDocs, Params, PasswordFieldValidation, PathToQuery, Payload, PayloadClientComponentProps, PayloadClientReactComponent, PayloadComponent, PayloadComponentProps, EmailAdapter as PayloadEmailAdapter, PayloadHandler, PayloadLogger, PayloadReactComponent, PayloadRequest, PayloadServerAction, PayloadServerComponentProps, PayloadServerReactComponent, PayloadTypes, PayloadTypesShape, Permission, Permissions, PickPreserveOptional, Plugin, PluginsMap, PointField, PointFieldClient, PointFieldClientComponent, PointFieldClientProps, PointFieldDescriptionClientComponent, PointFieldDescriptionServerComponent, PointFieldDiffClientComponent, PointFieldDiffServerComponent, PointFieldErrorClientComponent, PointFieldErrorServerComponent, PointFieldLabelClientComponent, PointFieldLabelServerComponent, PointFieldServerComponent, PointFieldServerProps, PointFieldValidation, PolymorphicRelationshipField, PolymorphicRelationshipFieldClient, PopulateType, PreferenceRequest, PreferenceUpdateRequest, PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, ProbedImageSize, PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, QueryDrafts, QueryDraftsArgs, QueryPreset, RadioField, RadioFieldClient, RadioFieldClientComponent, RadioFieldClientProps, RadioFieldDescriptionClientComponent, RadioFieldDescriptionServerComponent, RadioFieldDiffClientComponent, RadioFieldDiffServerComponent, RadioFieldErrorClientComponent, RadioFieldErrorServerComponent, RadioFieldLabelClientComponent, RadioFieldLabelServerComponent, RadioFieldServerComponent, RadioFieldServerProps, RadioFieldValidation, RawPayloadComponent, RegisteredPlugins, RelatedDocumentsGrouped, RelationshipField, RelationshipFieldClient, RelationshipFieldClientComponent, RelationshipFieldClientProps, RelationshipFieldDescriptionClientComponent, RelationshipFieldDescriptionServerComponent, RelationshipFieldDiffClientComponent, RelationshipFieldDiffServerComponent, RelationshipFieldErrorClientComponent, RelationshipFieldErrorServerComponent, RelationshipFieldLabelClientComponent, RelationshipFieldLabelServerComponent, RelationshipFieldManyValidation, RelationshipFieldServerComponent, RelationshipFieldServerProps, RelationshipFieldSingleValidation, RelationshipFieldValidation, RelationshipValue, RenderConfigArgs, RenderDocumentVersionsProperties, RenderEntityConfigArgs, RenderFieldConfigArgs, RenderRootConfigArgs, RenderedField, ReplaceAny, RequestContext, RequiredDataFromCollection, RequiredDataFromCollectionSlug, ResolvedComponent, ResolvedFilterOptions, RichTextAdapter, RichTextAdapterProvider, RichTextField, RichTextFieldClient, RichTextFieldClientComponent, RichTextFieldClientProps, RichTextFieldDescriptionClientComponent, RichTextFieldDescriptionServerComponent, RichTextFieldDiffClientComponent, RichTextFieldDiffServerComponent, RichTextFieldErrorClientComponent, RichTextFieldErrorServerComponent, RichTextFieldLabelClientComponent, RichTextFieldLabelServerComponent, RichTextFieldServerComponent, RichTextFieldServerProps, RichTextFieldValidation, RichTextHooks, RollbackTransaction, RootLivePreviewConfig, Row, RowField, RowFieldClient, RowFieldClientComponent, RowFieldClientProps, RowFieldDescriptionClientComponent, RowFieldDescriptionServerComponent, RowFieldDiffClientComponent, RowFieldDiffServerComponent, RowFieldErrorClientComponent, RowFieldErrorServerComponent, RowFieldLabelClientComponent, RowFieldLabelServerComponent, RowFieldServerComponent, RowFieldServerProps, RowLabel, RowLabelComponent, RunInlineTaskFunction, RunJobAccess, RunJobAccessArgs, RunTaskFunction, RunTaskFunctions, RunningJob, SanitizeFieldArgs, SanitizedBlockPermissions, SanitizedBlocksPermissions, SanitizedCollectionConfig, SanitizedCollectionPermission, SanitizedCompoundIndex, SanitizedConfig, SanitizedDashboardConfig, SanitizedDocumentPermissions, SanitizedFieldPermissions, SanitizedFieldsPermissions, SanitizedGlobalConfig, SanitizedGlobalPermission, SanitizedHierarchyConfig, SanitizedHierarchyRelatedCollection, SanitizedJoins, SanitizedLabelProps, SanitizedLocalizationConfig, SanitizedPermissions, SanitizedUploadConfig, SaveButtonClientProps, SaveButtonServerProps, SaveButtonServerPropsOnly, SaveDraftButtonClientProps, SaveDraftButtonServerProps, SaveDraftButtonServerPropsOnly, SchedulePublish, SchedulePublishTaskInput, SelectExcludeType, SelectField, SelectFieldClient, SelectFieldClientComponent, SelectFieldClientProps, SelectFieldDescriptionClientComponent, SelectFieldDescriptionServerComponent, SelectFieldDiffClientComponent, SelectFieldDiffServerComponent, SelectFieldErrorClientComponent, SelectFieldErrorServerComponent, SelectFieldLabelClientComponent, SelectFieldLabelServerComponent, SelectFieldManyValidation, SelectFieldServerComponent, SelectFieldServerProps, SelectFieldSingleValidation, SelectFieldValidation, SelectFn, SelectFnArgs, SelectFnOperation, SelectIncludeType, SelectMode, SelectType, SendEmailOptions, ServerComponentProps, ServerFieldBase, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, ServerOnlyCollectionAdminProperties, ServerOnlyCollectionProperties, ServerOnlyFieldAdminProperties, ServerOnlyFieldProperties, ServerOnlyGlobalAdminProperties, ServerOnlyGlobalProperties, ServerOnlyLivePreviewProperties, ServerOnlyUploadProperties, ServerProps, ServerPropsFromView, DocumentViewServerProps as ServerSideEditViewProps, SharedAdminComponents, SharedEditViewComponents, SharedEntityViews, SharedProps, SharpDependency, SidebarTab, SidebarTabClientProps, SidebarTabServerProps, SidebarTabServerPropsOnly, SingleRelationshipField, SingleRelationshipFieldClient, SingleTaskStatus, SlugField, SlugFieldClientProps, SlugifyServerFunctionArgs, Sort, LocalizeStatusArgs as SqlLocalizeStatusArgs, StaticDescription, StaticLabel, StringKeyOf, Tab, TabAsField, TabAsFieldClient, TabsField, TabsFieldClient, TabsFieldClientComponent, TabsFieldClientProps, TabsFieldDescriptionClientComponent, TabsFieldDescriptionServerComponent, TabsFieldDiffClientComponent, TabsFieldDiffServerComponent, TabsFieldErrorClientComponent, TabsFieldErrorServerComponent, TabsFieldLabelClientComponent, TabsFieldLabelServerComponent, TabsFieldServerComponent, TabsFieldServerProps, TabsPreferences, TagsConfig, TaskConfig, TaskHandler, TaskHandlerArgs, TaskHandlerResult, TaskHandlerResults, TaskInput, TaskOutput, TaskType, TextField, TextFieldClient, TextFieldClientComponent, TextFieldClientProps, TextFieldDescriptionClientComponent, TextFieldDescriptionServerComponent, TextFieldDiffClientComponent, TextFieldDiffServerComponent, TextFieldErrorClientComponent, TextFieldErrorServerComponent, TextFieldLabelClientComponent, TextFieldLabelServerComponent, TextFieldManyValidation, TextFieldServerComponent, TextFieldServerProps, TextFieldSingleValidation, TextFieldValidation, TextareaField, TextareaFieldClient, TextareaFieldClientComponent, TextareaFieldClientProps, TextareaFieldDescriptionClientComponent, TextareaFieldDescriptionServerComponent, TextareaFieldDiffClientComponent, TextareaFieldDiffServerComponent, TextareaFieldErrorClientComponent, TextareaFieldErrorServerComponent, TextareaFieldLabelClientComponent, TextareaFieldLabelServerComponent, TextareaFieldServerComponent, TextareaFieldServerProps, TextareaFieldValidation, TimePickerProps, Timezone, TimezonesConfig, Transaction, TransformCollectionWithSelect, TransformDataWithSelect, TransformGlobalWithSelect, TraverseFieldsCallback, TypeWithID, TypeWithTimestamps, TypeWithVersion, TypedAuthOperations, TypedBlock, TypedCollection, TypedCollectionJoins, TypedCollectionSelect, TypedFallbackLocale, TypedGlobal, TypedGlobalSelect, TypedJobs, TypedLocale, TypedUploadCollection, TypedUser, TypedWidget, UIField, UIFieldClient, UIFieldClientComponent, UIFieldClientProps, UIFieldDiffClientComponent, UIFieldDiffServerComponent, UIFieldServerComponent, UIFieldServerProps, UnauthenticatedClientConfig, UnnamedGroupField, UnnamedGroupFieldClient, UnnamedTab, UnpublishButtonClientProps, UnpublishButtonServerProps, UnpublishButtonServerPropsOnly, UntypedPayloadTypes, UntypedUser, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateJobs, UpdateJobsArgs, UpdateMany, UpdateManyArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, UploadCollectionSlug, UploadConfig, UploadEdits, UploadField, UploadFieldClient, UploadFieldClientComponent, UploadFieldClientProps, UploadFieldDescriptionClientComponent, UploadFieldDescriptionServerComponent, UploadFieldDiffClientComponent, UploadFieldDiffServerComponent, UploadFieldErrorClientComponent, UploadFieldErrorServerComponent, UploadFieldLabelClientComponent, UploadFieldLabelServerComponent, UploadFieldManyValidation, UploadFieldServerComponent, UploadFieldServerProps, UploadFieldSingleValidation, UploadFieldValidation, Upsert, UpsertArgs, UntypedUser as User, UserSession, UsernameFieldValidation, Validate, ValidateOptions, ValidationFieldError, ValueWithRelation, VerifyConfig, VersionField, VersionOperations, VersionTab, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, Where, WhereField, Widget, WidgetInstance, WidgetServerProps, WidgetSlug, WidgetWidth, WithSelectFn, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };
|
|
14780
|
+
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, slugField, sortableFieldTypes, stripUnselectedFields, toWords, traverseFields, unlockOperation, updateByIDOperation, updateOperation$1 as updateOperation, updateOperation as updateOperationGlobal, validateBlocksFilterOptions, validateQueryPaths, validateSearchParam, validations, verifyEmailOperation, versionDefaults, withNullableJSONSchemaType, writeMigrationIndex };
|
|
14781
|
+
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, 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, 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, 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 };
|