payload 3.85.0 → 4.0.0-internal.1f9ae9a
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/README.md +5 -5
- package/dist/admin/RichText.d.ts +2 -7
- 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/index.d.ts +4 -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/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/elements/Nav.d.ts +13 -0
- package/dist/admin/elements/Nav.d.ts.map +1 -1
- package/dist/admin/elements/Nav.js.map +1 -1
- 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/functions/index.d.ts +1 -38
- 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 +5 -4
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/admin/views/hierarchyList.d.ts +10 -0
- package/dist/admin/views/hierarchyList.d.ts.map +1 -0
- package/dist/admin/views/hierarchyList.js +3 -0
- package/dist/admin/views/hierarchyList.js.map +1 -0
- package/dist/admin/views/index.d.ts +1 -3
- package/dist/admin/views/index.d.ts.map +1 -1
- package/dist/admin/views/index.js.map +1 -1
- package/dist/admin/views/list.d.ts +47 -2
- package/dist/admin/views/list.d.ts.map +1 -1
- package/dist/admin/views/list.js.map +1 -1
- package/dist/auth/cookies.d.ts.map +1 -1
- package/dist/auth/defaultAccess.d.ts.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/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.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.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/refresh.d.ts.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/unlock.d.ts.map +1 -1
- package/dist/auth/operations/verifyEmail.d.ts.map +1 -1
- package/dist/auth/sessions.d.ts.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.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/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/iterateCollections.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateCollections.js +1 -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 +7 -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/iterateGlobals.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateGlobals.js +20 -8
- package/dist/bin/generateImportMap/iterateGlobals.js.map +1 -1
- package/dist/bin/generateImportMap/utilities/getFromImportMap.d.ts.map +1 -1
- package/dist/bin/index.d.ts.map +1 -1
- package/dist/bin/index.js +10 -3
- package/dist/bin/index.js.map +1 -1
- package/dist/bin/migrate.d.ts.map +1 -1
- package/dist/collections/config/client.d.ts +4 -2
- package/dist/collections/config/client.d.ts.map +1 -1
- package/dist/collections/config/client.js +13 -1
- package/dist/collections/config/client.js.map +1 -1
- package/dist/collections/config/defaults.d.ts.map +1 -1
- package/dist/collections/config/defaults.js +1 -1
- package/dist/collections/config/defaults.js.map +1 -1
- 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 +51 -10
- 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 +76 -91
- 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/operations/count.d.ts.map +1 -1
- package/dist/collections/operations/countVersions.d.ts.map +1 -1
- package/dist/collections/operations/create.d.ts.map +1 -1
- package/dist/collections/operations/create.js +25 -19
- 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 +7 -2
- package/dist/collections/operations/delete.js.map +1 -1
- package/dist/collections/operations/deleteByID.d.ts.map +1 -1
- package/dist/collections/operations/deleteByID.js +7 -2
- package/dist/collections/operations/deleteByID.js.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/find.js +7 -2
- package/dist/collections/operations/find.js.map +1 -1
- package/dist/collections/operations/findByID.d.ts.map +1 -1
- package/dist/collections/operations/findByID.js +10 -5
- package/dist/collections/operations/findByID.js.map +1 -1
- package/dist/collections/operations/findDistinct.d.ts.map +1 -1
- package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
- package/dist/collections/operations/findVersionByID.js +6 -4
- package/dist/collections/operations/findVersionByID.js.map +1 -1
- package/dist/collections/operations/findVersions.d.ts.map +1 -1
- package/dist/collections/operations/findVersions.js +6 -4
- package/dist/collections/operations/findVersions.js.map +1 -1
- package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
- package/dist/collections/operations/restoreVersion.js +7 -2
- package/dist/collections/operations/restoreVersion.js.map +1 -1
- package/dist/collections/operations/update.d.ts.map +1 -1
- package/dist/collections/operations/update.js +7 -2
- package/dist/collections/operations/update.js.map +1 -1
- package/dist/collections/operations/updateByID.d.ts.map +1 -1
- package/dist/collections/operations/updateByID.js +7 -2
- 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/sanitizeSortQuery.d.ts.map +1 -1
- package/dist/collections/operations/utilities/update.d.ts.map +1 -1
- package/dist/collections/operations/utilities/update.js +21 -12
- 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 +1 -1
- package/dist/config/client.d.ts.map +1 -1
- package/dist/config/client.js +2 -11
- package/dist/config/client.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +0 -15
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/orderable/index.d.ts.map +1 -1
- package/dist/config/orderable/index.js +0 -4
- package/dist/config/orderable/index.js.map +1 -1
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/config/sanitize.js +6 -53
- package/dist/config/sanitize.js.map +1 -1
- package/dist/config/types.d.ts +188 -32
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js.map +1 -1
- package/dist/database/combineQueries.d.ts.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/readMigrationFiles.d.ts.map +1 -1
- package/dist/database/migrations/templates/localizeStatus.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/email/types.d.ts +2 -7
- package/dist/email/types.d.ts.map +1 -1
- package/dist/email/types.js.map +1 -1
- package/dist/exports/shared.d.ts +6 -3
- package/dist/exports/shared.d.ts.map +1 -1
- package/dist/exports/shared.js +4 -2
- 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.d.ts.map +1 -1
- package/dist/fields/baseFields/slug/index.js +7 -5
- package/dist/fields/baseFields/slug/index.js.map +1 -1
- package/dist/fields/config/client.d.ts +1 -1
- package/dist/fields/config/client.d.ts.map +1 -1
- package/dist/fields/config/client.js +4 -3
- 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 +13 -20
- package/dist/fields/config/sanitize.js.map +1 -1
- package/dist/fields/config/sanitizeJoinField.d.ts.map +1 -1
- package/dist/fields/config/sanitizeJoinField.js +3 -0
- package/dist/fields/config/sanitizeJoinField.js.map +1 -1
- package/dist/fields/config/types.d.ts +40 -114
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js +12 -2
- 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/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/promise.d.ts.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/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/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/traverseFields.d.ts.map +1 -1
- package/dist/fields/isFieldDisabled.d.ts +12 -0
- package/dist/fields/isFieldDisabled.d.ts.map +1 -0
- package/dist/fields/isFieldDisabled.js +15 -0
- package/dist/fields/isFieldDisabled.js.map +1 -0
- package/dist/fields/isFieldDisabled.spec.js +134 -0
- package/dist/fields/isFieldDisabled.spec.js.map +1 -0
- package/dist/fields/mergeBaseFields.d.ts.map +1 -1
- package/dist/fields/setDefaultBeforeDuplicate.d.ts.map +1 -1
- package/dist/fields/validations.js +1 -1
- package/dist/fields/validations.js.map +1 -1
- package/dist/globals/config/client.d.ts +1 -1
- package/dist/globals/config/client.d.ts.map +1 -1
- package/dist/globals/config/client.js +2 -1
- package/dist/globals/config/client.js.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 +6 -2
- package/dist/globals/config/sanitize.js.map +1 -1
- package/dist/globals/config/types.d.ts +4 -57
- package/dist/globals/config/types.d.ts.map +1 -1
- package/dist/globals/config/types.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/findOne.js +7 -2
- package/dist/globals/operations/findOne.js.map +1 -1
- package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/findVersionByID.js +6 -4
- package/dist/globals/operations/findVersionByID.js.map +1 -1
- package/dist/globals/operations/findVersions.d.ts.map +1 -1
- package/dist/globals/operations/findVersions.js +6 -4
- package/dist/globals/operations/findVersions.js.map +1 -1
- package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
- package/dist/globals/operations/update.d.ts.map +1 -1
- package/dist/globals/operations/update.js +7 -2
- package/dist/globals/operations/update.js.map +1 -1
- package/dist/hierarchy/addHierarchyToCollection.d.ts +9 -0
- package/dist/hierarchy/addHierarchyToCollection.d.ts.map +1 -0
- package/dist/hierarchy/addHierarchyToCollection.js +76 -0
- package/dist/hierarchy/addHierarchyToCollection.js.map +1 -0
- package/dist/hierarchy/buildParentField.d.ts +11 -0
- package/dist/hierarchy/buildParentField.d.ts.map +1 -0
- package/dist/hierarchy/buildParentField.js +42 -0
- package/dist/hierarchy/buildParentField.js.map +1 -0
- package/dist/hierarchy/constants.d.ts +15 -0
- package/dist/hierarchy/constants.d.ts.map +1 -0
- package/dist/hierarchy/constants.js +11 -0
- package/dist/hierarchy/constants.js.map +1 -0
- package/dist/hierarchy/createFolderField.d.ts +39 -0
- package/dist/hierarchy/createFolderField.d.ts.map +1 -0
- package/dist/hierarchy/createFolderField.js +54 -0
- package/dist/hierarchy/createFolderField.js.map +1 -0
- package/dist/hierarchy/createTagField.d.ts +44 -0
- package/dist/hierarchy/createTagField.d.ts.map +1 -0
- package/dist/hierarchy/createTagField.js +48 -0
- package/dist/hierarchy/createTagField.js.map +1 -0
- package/dist/hierarchy/getInitialTreeData.d.ts +27 -0
- package/dist/hierarchy/getInitialTreeData.d.ts.map +1 -0
- package/dist/hierarchy/getInitialTreeData.js +125 -0
- package/dist/hierarchy/getInitialTreeData.js.map +1 -0
- package/dist/hierarchy/hooks/collectionAfterDelete.d.ts +14 -0
- package/dist/hierarchy/hooks/collectionAfterDelete.d.ts.map +1 -0
- package/dist/hierarchy/hooks/collectionAfterDelete.js +21 -0
- package/dist/hierarchy/hooks/collectionAfterDelete.js.map +1 -0
- package/dist/hierarchy/hooks/collectionAfterRead.d.ts +27 -0
- package/dist/hierarchy/hooks/collectionAfterRead.d.ts.map +1 -0
- package/dist/hierarchy/hooks/collectionAfterRead.js +72 -0
- package/dist/hierarchy/hooks/collectionAfterRead.js.map +1 -0
- package/dist/hierarchy/hooks/collectionBeforeChange.d.ts +19 -0
- package/dist/hierarchy/hooks/collectionBeforeChange.d.ts.map +1 -0
- package/dist/hierarchy/hooks/collectionBeforeChange.js +90 -0
- package/dist/hierarchy/hooks/collectionBeforeChange.js.map +1 -0
- package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts +15 -0
- package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts.map +1 -0
- package/dist/hierarchy/hooks/collectionBeforeDelete.js +20 -0
- package/dist/hierarchy/hooks/collectionBeforeDelete.js.map +1 -0
- package/dist/hierarchy/hooks/collectionBeforeOperation.d.ts +33 -0
- package/dist/hierarchy/hooks/collectionBeforeOperation.d.ts.map +1 -0
- package/dist/hierarchy/hooks/collectionBeforeOperation.js +66 -0
- package/dist/hierarchy/hooks/collectionBeforeOperation.js.map +1 -0
- package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts +8 -0
- package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts.map +1 -0
- package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js +108 -0
- package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js.map +1 -0
- package/dist/hierarchy/injectHierarchyButton.d.ts +14 -0
- package/dist/hierarchy/injectHierarchyButton.d.ts.map +1 -0
- package/dist/hierarchy/injectHierarchyButton.js +37 -0
- package/dist/hierarchy/injectHierarchyButton.js.map +1 -0
- package/dist/hierarchy/presets.d.ts +13 -0
- package/dist/hierarchy/presets.d.ts.map +1 -0
- package/dist/hierarchy/presets.js +52 -0
- package/dist/hierarchy/presets.js.map +1 -0
- package/dist/hierarchy/resolveHierarchyCollections.d.ts +23 -0
- package/dist/hierarchy/resolveHierarchyCollections.d.ts.map +1 -0
- package/dist/hierarchy/resolveHierarchyCollections.js +321 -0
- package/dist/hierarchy/resolveHierarchyCollections.js.map +1 -0
- package/dist/hierarchy/sanitizeHierarchyCollection.d.ts +14 -0
- package/dist/hierarchy/sanitizeHierarchyCollection.d.ts.map +1 -0
- package/dist/hierarchy/sanitizeHierarchyCollection.js +119 -0
- package/dist/hierarchy/sanitizeHierarchyCollection.js.map +1 -0
- package/dist/hierarchy/types.d.ts +162 -0
- package/dist/hierarchy/types.d.ts.map +1 -0
- package/dist/hierarchy/types.js +6 -0
- package/dist/hierarchy/types.js.map +1 -0
- package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.d.ts +77 -0
- package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.d.ts.map +1 -0
- package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.js +77 -0
- package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.js.map +1 -0
- package/dist/hierarchy/utils/computePaths.d.ts +31 -0
- package/dist/hierarchy/utils/computePaths.d.ts.map +1 -0
- package/dist/hierarchy/utils/computePaths.js +445 -0
- package/dist/hierarchy/utils/computePaths.js.map +1 -0
- package/dist/hierarchy/utils/findUseAsTitle.d.ts +14 -0
- package/dist/hierarchy/utils/findUseAsTitle.d.ts.map +1 -0
- package/dist/hierarchy/utils/findUseAsTitle.js +89 -0
- package/dist/hierarchy/utils/findUseAsTitle.js.map +1 -0
- package/dist/hierarchy/utils/getAncestors.d.ts +34 -0
- package/dist/hierarchy/utils/getAncestors.d.ts.map +1 -0
- package/dist/hierarchy/utils/getAncestors.js +94 -0
- package/dist/hierarchy/utils/getAncestors.js.map +1 -0
- package/dist/hierarchy/utils/getLocalizedValue.d.ts +30 -0
- package/dist/hierarchy/utils/getLocalizedValue.d.ts.map +1 -0
- package/dist/hierarchy/utils/getLocalizedValue.js +46 -0
- package/dist/hierarchy/utils/getLocalizedValue.js.map +1 -0
- package/dist/hierarchy/utils/getLocalizedValue.spec.js +250 -0
- package/dist/hierarchy/utils/getLocalizedValue.spec.js.map +1 -0
- package/dist/index.bundled.d.ts +968 -637
- package/dist/index.d.ts +31 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/kv/adapters/DatabaseKVAdapter.d.ts.map +1 -1
- package/dist/locked-documents/config.d.ts.map +1 -1
- package/dist/preferences/config.d.ts.map +1 -1
- package/dist/preferences/deleteUserPreferences.d.ts.map +1 -1
- package/dist/preferences/keys.d.ts +8 -4
- package/dist/preferences/keys.d.ts.map +1 -1
- package/dist/preferences/keys.js +7 -4
- package/dist/preferences/keys.js.map +1 -1
- package/dist/preferences/types.d.ts +1 -1
- package/dist/preferences/types.d.ts.map +1 -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 +11 -7
- 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 +1 -1
- package/dist/query-presets/constraints.js.map +1 -1
- package/dist/queues/config/types/index.d.ts +0 -21
- package/dist/queues/config/types/index.d.ts.map +1 -1
- package/dist/queues/config/types/index.js.map +1 -1
- package/dist/queues/config/types/taskTypes.d.ts +0 -20
- package/dist/queues/config/types/taskTypes.d.ts.map +1 -1
- package/dist/queues/config/types/taskTypes.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/localAPI.js +26 -67
- package/dist/queues/localAPI.js.map +1 -1
- package/dist/queues/operations/handleSchedules/getQueuesWithSchedules.d.ts.map +1 -1
- package/dist/queues/operations/handleSchedules/index.d.ts.map +1 -1
- package/dist/queues/operations/handleSchedules/index.js +1 -4
- package/dist/queues/operations/handleSchedules/index.js.map +1 -1
- package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
- package/dist/queues/operations/runJobs/index.js +7 -27
- package/dist/queues/operations/runJobs/index.js.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/getRunTaskFunction.js +3 -22
- package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js.map +1 -1
- package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts.map +1 -1
- package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js +0 -2
- package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js.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/queues/utilities/updateJob.d.ts +1 -3
- package/dist/queues/utilities/updateJob.d.ts.map +1 -1
- package/dist/queues/utilities/updateJob.js +2 -18
- package/dist/queues/utilities/updateJob.js.map +1 -1
- package/dist/translations/getLocalI18n.d.ts.map +1 -1
- package/dist/types/index.d.ts +54 -5
- 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 +24 -70
- 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/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/saveBufferToFile.d.ts.map +1 -1
- package/dist/uploads/tempFile.d.ts.map +1 -1
- package/dist/uploads/types.d.ts +12 -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/addLocalesToRequest.d.ts.map +1 -1
- package/dist/utilities/addSelectGenericsToGeneretedTypes.d.ts.map +1 -1
- package/dist/utilities/appendDateTimezoneSelectFields.d.ts +13 -0
- package/dist/utilities/appendDateTimezoneSelectFields.d.ts.map +1 -0
- package/dist/utilities/appendDateTimezoneSelectFields.js +47 -0
- package/dist/utilities/appendDateTimezoneSelectFields.js.map +1 -0
- package/dist/utilities/appendNonTrashedFilter.d.ts.map +1 -1
- package/dist/utilities/appendUploadSelectFields.d.ts.map +1 -1
- package/dist/utilities/appendUploadSelectFields.js +3 -0
- package/dist/utilities/appendUploadSelectFields.js.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.map +1 -1
- package/dist/utilities/configToJSONSchema.js +46 -28
- package/dist/utilities/configToJSONSchema.js.map +1 -1
- package/dist/utilities/configToJSONSchema.spec.js +86 -57
- package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
- package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
- package/dist/utilities/deepCopyObject.d.ts.map +1 -1
- package/dist/utilities/dependencies/resolveFrom.d.ts.map +1 -1
- package/dist/utilities/escapeRegExp.d.ts.map +1 -1
- package/dist/utilities/extractID.d.ts.map +1 -1
- package/dist/utilities/extractID.js +1 -1
- package/dist/utilities/extractID.js.map +1 -1
- package/dist/utilities/flattenAllFields.d.ts.map +1 -1
- package/dist/utilities/formatAdminURL.d.ts +13 -2
- package/dist/utilities/formatAdminURL.d.ts.map +1 -1
- package/dist/utilities/formatAdminURL.js.map +1 -1
- package/dist/utilities/formatErrors.d.ts.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/populateFieldPermissions.d.ts.map +1 -1
- package/dist/utilities/getFieldByPath.d.ts.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.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/handleEndpoints.d.ts.map +1 -1
- package/dist/utilities/handleEndpoints.js +0 -2
- 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/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.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 +16 -0
- package/dist/utilities/resolveSelect.d.ts.map +1 -0
- package/dist/utilities/resolveSelect.js +19 -0
- package/dist/utilities/resolveSelect.js.map +1 -0
- 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 +1 -2
- package/dist/utilities/sanitizeSelect.d.ts.map +1 -1
- package/dist/utilities/sanitizeSelect.js +19 -25
- package/dist/utilities/sanitizeSelect.js.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/transformWhereQuery.d.ts.map +1 -1
- package/dist/utilities/traverseFields.d.ts.map +1 -1
- package/dist/utilities/traverseForLocalizedFields.d.ts.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.map +1 -1
- package/dist/versions/baseFields.js +3 -2
- package/dist/versions/baseFields.js.map +1 -1
- package/dist/versions/buildCollectionFields.d.ts.map +1 -1
- package/dist/versions/buildCollectionFields.js +0 -1
- package/dist/versions/buildCollectionFields.js.map +1 -1
- package/dist/versions/buildGlobalFields.d.ts.map +1 -1
- package/dist/versions/buildGlobalFields.js +0 -1
- package/dist/versions/buildGlobalFields.js.map +1 -1
- 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/payloadPackageList.d.ts.map +1 -1
- package/dist/versions/payloadPackageList.js +0 -1
- package/dist/versions/payloadPackageList.js.map +1 -1
- package/dist/versions/saveSnapshot.d.ts.map +1 -1
- package/dist/versions/schedule/job.d.ts.map +1 -1
- package/package.json +20 -20
- package/dist/admin/views/folderList.d.ts +0 -56
- package/dist/admin/views/folderList.d.ts.map +0 -1
- package/dist/admin/views/folderList.js +0 -3
- package/dist/admin/views/folderList.js.map +0 -1
- package/dist/email/normalizeSendEmailOptions.d.ts +0 -13
- package/dist/email/normalizeSendEmailOptions.d.ts.map +0 -1
- package/dist/email/normalizeSendEmailOptions.js +0 -20
- package/dist/email/normalizeSendEmailOptions.js.map +0 -1
- package/dist/folders/addFolderCollection.d.ts +0 -10
- package/dist/folders/addFolderCollection.d.ts.map +0 -1
- package/dist/folders/addFolderCollection.js +0 -26
- package/dist/folders/addFolderCollection.js.map +0 -1
- package/dist/folders/addFolderFieldToCollection.d.ts +0 -8
- package/dist/folders/addFolderFieldToCollection.d.ts.map +0 -1
- package/dist/folders/addFolderFieldToCollection.js +0 -20
- package/dist/folders/addFolderFieldToCollection.js.map +0 -1
- package/dist/folders/buildFolderField.d.ts +0 -8
- package/dist/folders/buildFolderField.d.ts.map +0 -1
- package/dist/folders/buildFolderField.js +0 -87
- package/dist/folders/buildFolderField.js.map +0 -1
- package/dist/folders/constants.d.ts +0 -3
- package/dist/folders/constants.d.ts.map +0 -1
- package/dist/folders/constants.js +0 -4
- package/dist/folders/constants.js.map +0 -1
- package/dist/folders/createFolderCollection.d.ts +0 -11
- package/dist/folders/createFolderCollection.d.ts.map +0 -1
- package/dist/folders/createFolderCollection.js +0 -115
- package/dist/folders/createFolderCollection.js.map +0 -1
- package/dist/folders/hooks/deleteSubfoldersAfterDelete.d.ts +0 -8
- package/dist/folders/hooks/deleteSubfoldersAfterDelete.d.ts.map +0 -1
- package/dist/folders/hooks/deleteSubfoldersAfterDelete.js +0 -15
- package/dist/folders/hooks/deleteSubfoldersAfterDelete.js.map +0 -1
- package/dist/folders/hooks/dissasociateAfterDelete.d.ts +0 -8
- package/dist/folders/hooks/dissasociateAfterDelete.d.ts.map +0 -1
- package/dist/folders/hooks/dissasociateAfterDelete.js +0 -20
- package/dist/folders/hooks/dissasociateAfterDelete.js.map +0 -1
- package/dist/folders/hooks/ensureSafeCollectionsChange.d.ts +0 -5
- package/dist/folders/hooks/ensureSafeCollectionsChange.d.ts.map +0 -1
- package/dist/folders/hooks/ensureSafeCollectionsChange.js +0 -107
- package/dist/folders/hooks/ensureSafeCollectionsChange.js.map +0 -1
- package/dist/folders/hooks/reparentChildFolder.d.ts +0 -24
- package/dist/folders/hooks/reparentChildFolder.d.ts.map +0 -1
- package/dist/folders/hooks/reparentChildFolder.js +0 -72
- package/dist/folders/hooks/reparentChildFolder.js.map +0 -1
- package/dist/folders/types.d.ts +0 -118
- package/dist/folders/types.d.ts.map +0 -1
- package/dist/folders/types.js +0 -3
- package/dist/folders/types.js.map +0 -1
- package/dist/folders/utils/buildFolderWhereConstraints.d.ts +0 -13
- package/dist/folders/utils/buildFolderWhereConstraints.d.ts.map +0 -1
- package/dist/folders/utils/buildFolderWhereConstraints.js +0 -45
- package/dist/folders/utils/buildFolderWhereConstraints.js.map +0 -1
- package/dist/folders/utils/formatFolderOrDocumentItem.d.ts +0 -12
- package/dist/folders/utils/formatFolderOrDocumentItem.d.ts.map +0 -1
- package/dist/folders/utils/formatFolderOrDocumentItem.js +0 -30
- package/dist/folders/utils/formatFolderOrDocumentItem.js.map +0 -1
- package/dist/folders/utils/getFolderBreadcrumbs.d.ts +0 -14
- package/dist/folders/utils/getFolderBreadcrumbs.d.ts.map +0 -1
- package/dist/folders/utils/getFolderBreadcrumbs.js +0 -45
- package/dist/folders/utils/getFolderBreadcrumbs.js.map +0 -1
- package/dist/folders/utils/getFolderData.d.ts +0 -33
- package/dist/folders/utils/getFolderData.d.ts.map +0 -1
- package/dist/folders/utils/getFolderData.js +0 -88
- package/dist/folders/utils/getFolderData.js.map +0 -1
- package/dist/folders/utils/getFoldersAndDocumentsFromJoin.d.ts +0 -24
- package/dist/folders/utils/getFoldersAndDocumentsFromJoin.d.ts.map +0 -1
- package/dist/folders/utils/getFoldersAndDocumentsFromJoin.js +0 -66
- package/dist/folders/utils/getFoldersAndDocumentsFromJoin.js.map +0 -1
- package/dist/folders/utils/getOrphanedDocs.d.ts +0 -15
- package/dist/folders/utils/getOrphanedDocs.d.ts.map +0 -1
- package/dist/folders/utils/getOrphanedDocs.js +0 -40
- package/dist/folders/utils/getOrphanedDocs.js.map +0 -1
package/dist/index.bundled.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import sharp, { Metadata as Metadata$1, SharpOptions, Sharp, ResizeOptions } fro
|
|
|
11
11
|
import { EditorProps } from '@monaco-editor/react';
|
|
12
12
|
import { OperationArgs as OperationArgs$1, Request as Request$1 } from 'graphql-http';
|
|
13
13
|
import { SendMailOptions } from 'nodemailer';
|
|
14
|
-
import { Address } from 'nodemailer/lib/mailer';
|
|
15
14
|
import { ParsedArgs } from 'minimist';
|
|
16
15
|
import { lookup } from 'dns';
|
|
17
16
|
import deepMerge from 'deepmerge';
|
|
@@ -20,7 +19,7 @@ import { ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adap
|
|
|
20
19
|
import { PinoPretty } from 'pino-pretty';
|
|
21
20
|
import { DatePickerProps } from 'react-datepicker';
|
|
22
21
|
|
|
23
|
-
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: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:swapRelationship" | "fields:swapUpload" | "fields:textToDisplay" | "fields:toggleBlock" | "fields:uploadNewLabel" | "folder:browseByFolder" | "folder:byFolder" | "folder:deleteFolder" | "folder:folderName" | "folder:folders" | "folder:folderTypeDescription" | "folder:itemHasBeenMoved" | "folder:itemHasBeenMovedToRoot" | "folder:itemsMovedToFolder" | "folder:itemsMovedToRoot" | "folder:moveFolder" | "folder:moveItemsToFolderConfirmation" | "folder:moveItemsToRootConfirmation" | "folder:moveItemToFolderConfirmation" | "folder:moveItemToRootConfirmation" | "folder:movingFromFolder" | "folder:newFolder" | "folder:noFolder" | "folder:renameFolder" | "folder:searchByNameInFolder" | "folder:selectFolderForItem" | "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: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:cancel" | "general:changesNotSaved" | "general:clear" | "general:clearAll" | "general:close" | "general:collapse" | "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: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:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:export" | "general:fallbackToDefaultLocale" | "general:false" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:import" | "general:isEditing" | "general:item" | "general:lastModified" | "general:layout" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "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: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" | "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")[];
|
|
22
|
+
declare const clientTranslationKeys: ("authentication:account" | "authentication:accountOfCurrentUser" | "authentication:accountVerified" | "authentication:alreadyActivated" | "authentication:alreadyLoggedIn" | "authentication:apiKey" | "authentication:authenticated" | "authentication:backToLogin" | "authentication:beginCreateFirstUser" | "authentication:changePassword" | "authentication:checkYourEmailForPasswordReset" | "authentication:confirmGeneration" | "authentication:confirmPassword" | "authentication:createFirstUser" | "authentication:createUser" | "authentication:emailNotValid" | "authentication:emailOrUsername" | "authentication:emailSent" | "authentication:emailVerified" | "authentication:enableAPIKey" | "authentication:failedToUnlock" | "authentication:forceUnlock" | "authentication:forgotPassword" | "authentication:forgotPasswordEmailInstructions" | "authentication:forgotPasswordUsernameInstructions" | "authentication:usernameNotValid" | "authentication:forgotPasswordQuestion" | "authentication:generate" | "authentication:generateNewAPIKey" | "authentication:generatingNewAPIKeyWillInvalidate" | "authentication:logBackIn" | "authentication:loggedIn" | "authentication:loggedInChangePassword" | "authentication:loggedOutInactivity" | "authentication:loggedOutSuccessfully" | "authentication:loggingOut" | "authentication:login" | "authentication:logOut" | "authentication:logout" | "authentication:logoutSuccessful" | "authentication:logoutUser" | "authentication:newAPIKeyGenerated" | "authentication:newPassword" | "authentication:passed" | "authentication:passwordResetSuccessfully" | "authentication:resetPassword" | "authentication:stayLoggedIn" | "authentication:successfullyRegisteredFirstUser" | "authentication:successfullyUnlocked" | "authentication:tokenRefreshSuccessful" | "authentication:unableToVerify" | "authentication:username" | "authentication:verified" | "authentication:verifiedSuccessfully" | "authentication:verify" | "authentication:verifyUser" | "authentication:youAreInactive" | "commandPalette:createNew" | "commandPalette:hintClose" | "commandPalette:hintCreate" | "commandPalette:hintNavigate" | "commandPalette:hintSelect" | "commandPalette:noResults" | "commandPalette:placeholder" | "commandPalette:title" | "dashboard:addButton" | "dashboard:addWidget" | "dashboard:deleteWidget" | "dashboard:discardConfirmLabel" | "dashboard:discardMessage" | "dashboard:discardTitle" | "dashboard:editDashboard" | "dashboard:editingDashboard" | "dashboard:noItems" | "dashboard:resetLayout" | "dashboard:searchWidgets" | "error:autosaving" | "error:correctInvalidFields" | "error:deletingTitle" | "error:documentNotFound" | "error:emailOrPasswordIncorrect" | "error:failedToResetLayout" | "error:failedToSaveLayout" | "error:insufficientClipboardPermissions" | "error:invalidClipboardData" | "error:invalidFileType" | "error:invalidRequestArgs" | "error:loadingDocument" | "error:logoutFailed" | "error:noMatchedField" | "error:notAllowedToAccessPage" | "error:notAllowedToPerformAction" | "error:previewing" | "error:problemUploadingFile" | "error:restoringTitle" | "error:revertingDocument" | "error:tokenNotProvided" | "error:unableToCopy" | "error:unableToDeleteCount" | "error:unableToReindexCollection" | "error:unableToUpdateCount" | "error:unauthorized" | "error:unauthorizedAdmin" | "error:unknown" | "error:unPublishingDocument" | "error:unspecific" | "error:unverifiedEmail" | "error:userEmailAlreadyRegistered" | "error:usernameAlreadyRegistered" | "error:usernameOrPasswordIncorrect" | "fields:blocks" | "fields:addLabel" | "fields:addLink" | "fields:addNew" | "fields:addNewLabel" | "fields:addRelationship" | "fields:addUpload" | "fields:block" | "fields:blockType" | "fields:chooseBetweenCustomTextOrDocument" | "fields:chooseDocumentToLink" | "fields:chooseFromExisting" | "fields:collapseAll" | "fields:customURL" | "fields:editLink" | "fields:editRelationship" | "fields:enterURL" | "fields:hidePassword" | "fields:internalLink" | "fields:itemsAndMore" | "fields:labelRelationship" | "fields:latitude" | "fields:linkedTo" | "fields:linkType" | "fields:longitude" | "fields:openInNewTab" | "fields:passwordsDoNotMatch" | "fields:removeRelationship" | "fields:removeUpload" | "fields:saveChanges" | "fields:searchForBlock" | "fields:searchForLanguage" | "fields:selectFieldsToEdit" | "fields:showAll" | "fields:showPassword" | "fields:swapRelationship" | "fields:swapUpload" | "fields:textToDisplay" | "fields:toggleBlock" | "fields:uploadNewLabel" | "general:items" | "general:of" | "general:language" | "general:dashboard" | "general:error" | "general:username" | "general:createNew" | "general:noResults" | "general:notFound" | "general:unauthorized" | "general:newLabel" | "general:saveChanges" | "general:name" | "general:aboutToDelete" | "general:aboutToPermanentlyDelete" | "general:aboutToPermanentlyDeleteTrash" | "general:aboutToRestore" | "general:aboutToRestoreAsDraft" | "general:aboutToRestoreAsDraftCount" | "general:aboutToRestoreCount" | "general:aboutToTrash" | "general:aboutToTrashCount" | "general:accepts" | "general:addBelow" | "general:addFilter" | "general:adminTheme" | "general:all" | "general:allCollections" | "general:allLocales" | "general:and" | "general:anotherUser" | "general:anotherUserTakenOver" | "general:applyChanges" | "general:ascending" | "general:automatic" | "general:backToDashboard" | "general:by" | "general:cancel" | "general:changesNotSaved" | "general:checked" | "general:clear" | "general:clearAll" | "general:close" | "general:collapse" | "general:collection" | "general:collections" | "general:columns" | "general:columnToSort" | "general:confirm" | "general:confirmCopy" | "general:confirmDeletion" | "general:confirmDuplication" | "general:confirmMove" | "general:confirmReindex" | "general:confirmReindexAll" | "general:confirmReindexDescription" | "general:confirmReindexDescriptionAll" | "general:confirmRestoration" | "general:copied" | "general:copy" | "general:copyField" | "general:copying" | "general:copyRow" | "general:copyWarning" | "general:create" | "general:created" | "general:createdAt" | "general:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:custom" | "general:dark" | "general:decrement" | "general:delete" | "general:deleted" | "general:deletedAgo" | "general:deletedAt" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleteLabel" | "general:deletePermanently" | "general:deleting" | "general:depth" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documentIsTrashed" | "general:documentLocked" | "general:documentModified" | "general:documentOutOfDate" | "general:documents" | "general:dragToReorder" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editColumns" | "general:editedSince" | "general:editing" | "general:editingTakenOver" | "general:editLabel" | "general:email" | "general:emailAddress" | "general:emptyTrash" | "general:emptyTrashLabel" | "general:enhancedContrastMode" | "general:enterANumber" | "general:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:expand" | "general:export" | "general:fallbackToDefaultLocale" | "general:false" | "general:field" | "general:filter" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:hideSidebar" | "general:import" | "general:increment" | "general:isEditing" | "general:item" | "general:lastModified" | "general:layout" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:loadMore" | "general:locale" | "general:locales" | "general:lock" | "general:manageLabel" | "general:menu" | "general:moreOptions" | "general:move" | "general:moveConfirm" | "general:moveCount" | "general:moveDown" | "general:moveUp" | "general:moving" | "general:movingCount" | "general:next" | "general:no" | "general:noDateSelected" | "general:noFiltersSet" | "general:noLabel" | "general:noMatchesFound" | "general:none" | "general:noOptions" | "general:noResultsDescription" | "general:noResultsFound" | "general:nothingFound" | "general:noTrashResults" | "general:notShownInTable" | "general:noUpcomingEventsScheduled" | "general:noValue" | "general:only" | "general:open" | "general:openInNewWindow" | "general:or" | "general:order" | "general:overwriteExistingData" | "general:pageNotFound" | "general:password" | "general:pasteField" | "general:pasteRow" | "general:payloadSettings" | "general:permanentlyDelete" | "general:permanentlyDeletedCountSuccessfully" | "general:perPage" | "general:perPageLabel" | "general:previous" | "general:reindex" | "general:reindexingAll" | "general:reloadDocument" | "general:remove" | "general:rename" | "general:reset" | "general:resetPreferences" | "general:resetPreferencesDescription" | "general:resettingPreferences" | "general:restore" | "general:restoreAsPublished" | "general:restoredCountSuccessfully" | "general:restoring" | "general:retry" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:schedulePublishFor" | "general:searchBy" | "general:searchColumns" | "general:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:showAllLabel" | "general:shownInTable" | "general:showSidebar" | "general:sorryNotFound" | "general:sort" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:successfullyReindexed" | "general:takeOver" | "general:thisLanguage" | "general:time" | "general:timezone" | "general:titleDeleted" | "general:titleRestored" | "general:titleTrashed" | "general:toggle" | "general:trash" | "general:trashedCountSuccessfully" | "general:true" | "general:unchecked" | "general:unlock" | "general:unsavedChanges" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:upcomingEvents" | "general:updatedAgo" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedLabelSuccessfully" | "general:updatedSuccessfully" | "general:updateForEveryone" | "general:updating" | "general:uploading" | "general:uploadingBulk" | "general:user" | "general:users" | "general:value" | "general:viewing" | "general:viewReadOnly" | "general:welcome" | "general:yes" | "hierarchy:noResults" | "hierarchy:itemsMovedTo" | "hierarchy:itemsMovedToRoot" | "hierarchy:moveItemsToRootConfirmation" | "hierarchy:moveToRoot" | "hierarchy:noParent" | "hierarchy:searchLabel" | "localization:cannotCopySameLocale" | "localization:copyFrom" | "localization:copyFromTo" | "localization:copyTo" | "localization:copyToLocale" | "localization:localeToPublish" | "localization:selectedLocales" | "localization:selectLocaleToCopy" | "localization:selectLocaleToDuplicate" | "operators:contains" | "operators:equals" | "operators:exists" | "operators:intersects" | "operators:near" | "operators:within" | "operators:isGreaterThan" | "operators:isGreaterThanOrEqualTo" | "operators:isIn" | "operators:isLessThan" | "operators:isLessThanOrEqualTo" | "operators:isLike" | "operators:isNotEqualTo" | "operators:isNotIn" | "operators:isNotLike" | "upload:addFile" | "upload:addFiles" | "upload:bulkUpload" | "upload:crop" | "upload:cropToolDescription" | "upload:download" | "upload:dragAndDrop" | "upload:editImage" | "upload:fileName" | "upload:fileSize" | "upload:filesToUpload" | "upload:fileToUpload" | "upload:focalPoint" | "upload:focalPointDescription" | "upload:height" | "upload:noFile" | "upload:pasteURL" | "upload:previewSizes" | "upload:selectCollectionToBrowse" | "upload:selectFile" | "upload:setCropArea" | "upload:setFocalPoint" | "upload:sizes" | "upload:sizesFor" | "upload:width" | "validation:username" | "validation:emailAddress" | "validation:enterNumber" | "validation:fieldHasNo" | "validation:greaterThanMax" | "validation:invalidBlock" | "validation:invalidBlocks" | "validation:invalidInput" | "validation:invalidSelection" | "validation:invalidSelections" | "validation:latitudeOutOfBounds" | "validation:lessThanMin" | "validation:limitReached" | "validation:longerThanMin" | "validation:longitudeOutOfBounds" | "validation:notValidDate" | "validation:required" | "validation:requiresAtLeast" | "validation:requiresNoMoreThan" | "validation:requiresTwoNumbers" | "validation:shorterThanMax" | "validation:timezoneRequired" | "validation:trueOrFalse" | "validation:validUploadID" | "version:version" | "version:aboutToRestore" | "version:restoring" | "version:type" | "version:aboutToPublishSelection" | "version:aboutToRestoreGlobal" | "version:aboutToRevertToPublished" | "version:aboutToUnpublish" | "version:aboutToUnpublishIn" | "version:aboutToUnpublishSelection" | "version:autosave" | "version:autosavedSuccessfully" | "version:autosavedVersion" | "version:changed" | "version:compareVersions" | "version:comparingAgainst" | "version:confirmPublish" | "version:confirmRevertToSaved" | "version:confirmUnpublish" | "version:confirmVersionRestoration" | "version:currentDraft" | "version:currentlyPublished" | "version:currentlyViewing" | "version:currentPublishedVersion" | "version:draft" | "version:draftHasPublishedVersion" | "version:draftSavedSuccessfully" | "version:lastSavedAgo" | "version:modifiedOnly" | "version:moreVersions" | "version:noFurtherVersionsFound" | "version:noLabelGroup" | "version:noRowsFound" | "version:noRowsSelected" | "version:preview" | "version:previouslyDraft" | "version:previouslyPublished" | "version:previousVersion" | "version:problemRestoringVersion" | "version:publish" | "version:publishAllLocales" | "version:publishChanges" | "version:published" | "version:publishIn" | "version:publishing" | "version:restoreAsDraft" | "version:restoredSuccessfully" | "version:restoreThisVersion" | "version:reverting" | "version:revertToPublished" | "version:revertUnsuccessful" | "version:saveDraft" | "version:scheduledSuccessfully" | "version:schedulePublish" | "version:selectLocales" | "version:selectVersionToCompare" | "version:showLocales" | "version:specificVersion" | "version:status" | "version:unpublish" | "version:unpublished" | "version:unpublishedSuccessfully" | "version:unpublishIn" | "version:unpublishing" | "version:versionAgo" | "version:versionID" | "version:versions" | "version:viewingVersion" | "version:viewingVersionGlobal" | "version:viewingVersions" | "version:viewingVersionsGlobal" | "general:aboutToDeleteCount" | "general:editingLabel" | "version:changedFieldsCount")[];
|
|
24
23
|
|
|
25
24
|
declare const enTranslations: {
|
|
26
25
|
authentication: {
|
|
@@ -38,6 +37,7 @@ declare const enTranslations: {
|
|
|
38
37
|
confirmGeneration: string;
|
|
39
38
|
confirmPassword: string;
|
|
40
39
|
createFirstUser: string;
|
|
40
|
+
createUser: string;
|
|
41
41
|
emailNotValid: string;
|
|
42
42
|
emailOrUsername: string;
|
|
43
43
|
emailSent: string;
|
|
@@ -92,6 +92,22 @@ declare const enTranslations: {
|
|
|
92
92
|
youAreReceivingResetPassword: string;
|
|
93
93
|
youDidNotRequestPassword: string;
|
|
94
94
|
};
|
|
95
|
+
commandPalette: {
|
|
96
|
+
actions: string;
|
|
97
|
+
createNew: string;
|
|
98
|
+
favorites: string;
|
|
99
|
+
hintActions: string;
|
|
100
|
+
hintClose: string;
|
|
101
|
+
hintCreate: string;
|
|
102
|
+
hintNavigate: string;
|
|
103
|
+
hintSelect: string;
|
|
104
|
+
noResults: string;
|
|
105
|
+
pinToFavorites: string;
|
|
106
|
+
placeholder: string;
|
|
107
|
+
recentlyVisited: string;
|
|
108
|
+
removeFromFavorites: string;
|
|
109
|
+
title: string;
|
|
110
|
+
};
|
|
95
111
|
dashboard: {
|
|
96
112
|
addButton: string;
|
|
97
113
|
addWidget: string;
|
|
@@ -180,6 +196,7 @@ declare const enTranslations: {
|
|
|
180
196
|
editLink: string;
|
|
181
197
|
editRelationship: string;
|
|
182
198
|
enterURL: string;
|
|
199
|
+
hidePassword: string;
|
|
183
200
|
internalLink: string;
|
|
184
201
|
itemsAndMore: string;
|
|
185
202
|
labelRelationship: string;
|
|
@@ -200,35 +217,13 @@ declare const enTranslations: {
|
|
|
200
217
|
selectExistingLabel: string;
|
|
201
218
|
selectFieldsToEdit: string;
|
|
202
219
|
showAll: string;
|
|
220
|
+
showPassword: string;
|
|
203
221
|
swapRelationship: string;
|
|
204
222
|
swapUpload: string;
|
|
205
223
|
textToDisplay: string;
|
|
206
224
|
toggleBlock: string;
|
|
207
225
|
uploadNewLabel: string;
|
|
208
226
|
};
|
|
209
|
-
folder: {
|
|
210
|
-
browseByFolder: string;
|
|
211
|
-
byFolder: string;
|
|
212
|
-
deleteFolder: string;
|
|
213
|
-
folderName: string;
|
|
214
|
-
folders: string;
|
|
215
|
-
folderTypeDescription: string;
|
|
216
|
-
itemHasBeenMoved: string;
|
|
217
|
-
itemHasBeenMovedToRoot: string;
|
|
218
|
-
itemsMovedToFolder: string;
|
|
219
|
-
itemsMovedToRoot: string;
|
|
220
|
-
moveFolder: string;
|
|
221
|
-
moveItemsToFolderConfirmation: string;
|
|
222
|
-
moveItemsToRootConfirmation: string;
|
|
223
|
-
moveItemToFolderConfirmation: string;
|
|
224
|
-
moveItemToRootConfirmation: string;
|
|
225
|
-
movingFromFolder: string;
|
|
226
|
-
newFolder: string;
|
|
227
|
-
noFolder: string;
|
|
228
|
-
renameFolder: string;
|
|
229
|
-
searchByNameInFolder: string;
|
|
230
|
-
selectFolderForItem: string;
|
|
231
|
-
};
|
|
232
227
|
general: {
|
|
233
228
|
name: string;
|
|
234
229
|
aboutToDelete: string;
|
|
@@ -243,6 +238,7 @@ declare const enTranslations: {
|
|
|
243
238
|
aboutToRestoreCount: string;
|
|
244
239
|
aboutToTrash: string;
|
|
245
240
|
aboutToTrashCount: string;
|
|
241
|
+
accepts: string;
|
|
246
242
|
addBelow: string;
|
|
247
243
|
addFilter: string;
|
|
248
244
|
adminTheme: string;
|
|
@@ -256,12 +252,15 @@ declare const enTranslations: {
|
|
|
256
252
|
ascending: string;
|
|
257
253
|
automatic: string;
|
|
258
254
|
backToDashboard: string;
|
|
255
|
+
by: string;
|
|
259
256
|
cancel: string;
|
|
260
257
|
changesNotSaved: string;
|
|
258
|
+
checked: string;
|
|
261
259
|
clear: string;
|
|
262
260
|
clearAll: string;
|
|
263
261
|
close: string;
|
|
264
262
|
collapse: string;
|
|
263
|
+
collection: string;
|
|
265
264
|
collections: string;
|
|
266
265
|
columns: string;
|
|
267
266
|
columnToSort: string;
|
|
@@ -292,8 +291,10 @@ declare const enTranslations: {
|
|
|
292
291
|
custom: string;
|
|
293
292
|
dark: string;
|
|
294
293
|
dashboard: string;
|
|
294
|
+
decrement: string;
|
|
295
295
|
delete: string;
|
|
296
296
|
deleted: string;
|
|
297
|
+
deletedAgo: string;
|
|
297
298
|
deletedAt: string;
|
|
298
299
|
deletedCountSuccessfully: string;
|
|
299
300
|
deletedSuccessfully: string;
|
|
@@ -309,10 +310,12 @@ declare const enTranslations: {
|
|
|
309
310
|
documentModified: string;
|
|
310
311
|
documentOutOfDate: string;
|
|
311
312
|
documents: string;
|
|
313
|
+
dragToReorder: string;
|
|
312
314
|
duplicate: string;
|
|
313
315
|
duplicateWithoutSaving: string;
|
|
314
316
|
edit: string;
|
|
315
317
|
editAll: string;
|
|
318
|
+
editColumns: string;
|
|
316
319
|
editedSince: string;
|
|
317
320
|
editing: string;
|
|
318
321
|
editingLabel_many: string;
|
|
@@ -324,20 +327,26 @@ declare const enTranslations: {
|
|
|
324
327
|
emailAddress: string;
|
|
325
328
|
emptyTrash: string;
|
|
326
329
|
emptyTrashLabel: string;
|
|
330
|
+
enhancedContrastMode: string;
|
|
331
|
+
enterANumber: string;
|
|
327
332
|
enterAValue: string;
|
|
328
333
|
error: string;
|
|
329
334
|
errors: string;
|
|
330
335
|
exitLivePreview: string;
|
|
336
|
+
expand: string;
|
|
331
337
|
export: string;
|
|
332
338
|
fallbackToDefaultLocale: string;
|
|
333
339
|
false: string;
|
|
340
|
+
field: string;
|
|
334
341
|
filter: string;
|
|
335
342
|
filters: string;
|
|
336
343
|
filterWhere: string;
|
|
337
344
|
globals: string;
|
|
338
345
|
goBack: string;
|
|
339
346
|
groupByLabel: string;
|
|
347
|
+
hideSidebar: string;
|
|
340
348
|
import: string;
|
|
349
|
+
increment: string;
|
|
341
350
|
isEditing: string;
|
|
342
351
|
item: string;
|
|
343
352
|
items: string;
|
|
@@ -349,9 +358,11 @@ declare const enTranslations: {
|
|
|
349
358
|
light: string;
|
|
350
359
|
livePreview: string;
|
|
351
360
|
loading: string;
|
|
361
|
+
loadMore: string;
|
|
352
362
|
locale: string;
|
|
353
363
|
locales: string;
|
|
354
364
|
lock: string;
|
|
365
|
+
manageLabel: string;
|
|
355
366
|
menu: string;
|
|
356
367
|
moreOptions: string;
|
|
357
368
|
move: string;
|
|
@@ -368,6 +379,7 @@ declare const enTranslations: {
|
|
|
368
379
|
noDateSelected: string;
|
|
369
380
|
noFiltersSet: string;
|
|
370
381
|
noLabel: string;
|
|
382
|
+
noMatchesFound: string;
|
|
371
383
|
none: string;
|
|
372
384
|
noOptions: string;
|
|
373
385
|
noResults: string;
|
|
@@ -376,6 +388,7 @@ declare const enTranslations: {
|
|
|
376
388
|
notFound: string;
|
|
377
389
|
nothingFound: string;
|
|
378
390
|
noTrashResults: string;
|
|
391
|
+
notShownInTable: string;
|
|
379
392
|
noUpcomingEventsScheduled: string;
|
|
380
393
|
noValue: string;
|
|
381
394
|
of: string;
|
|
@@ -393,6 +406,7 @@ declare const enTranslations: {
|
|
|
393
406
|
permanentlyDelete: string;
|
|
394
407
|
permanentlyDeletedCountSuccessfully: string;
|
|
395
408
|
perPage: string;
|
|
409
|
+
perPageLabel: string;
|
|
396
410
|
previous: string;
|
|
397
411
|
reindex: string;
|
|
398
412
|
reindexingAll: string;
|
|
@@ -407,6 +421,7 @@ declare const enTranslations: {
|
|
|
407
421
|
restoreAsPublished: string;
|
|
408
422
|
restoredCountSuccessfully: string;
|
|
409
423
|
restoring: string;
|
|
424
|
+
retry: string;
|
|
410
425
|
row: string;
|
|
411
426
|
rows: string;
|
|
412
427
|
save: string;
|
|
@@ -414,6 +429,7 @@ declare const enTranslations: {
|
|
|
414
429
|
saving: string;
|
|
415
430
|
schedulePublishFor: string;
|
|
416
431
|
searchBy: string;
|
|
432
|
+
searchColumns: string;
|
|
417
433
|
select: string;
|
|
418
434
|
selectAll: string;
|
|
419
435
|
selectAllRows: string;
|
|
@@ -421,6 +437,8 @@ declare const enTranslations: {
|
|
|
421
437
|
selectLabel: string;
|
|
422
438
|
selectValue: string;
|
|
423
439
|
showAllLabel: string;
|
|
440
|
+
shownInTable: string;
|
|
441
|
+
showSidebar: string;
|
|
424
442
|
sorryNotFound: string;
|
|
425
443
|
sort: string;
|
|
426
444
|
sortByLabelDirection: string;
|
|
@@ -439,15 +457,18 @@ declare const enTranslations: {
|
|
|
439
457
|
titleDeleted: string;
|
|
440
458
|
titleRestored: string;
|
|
441
459
|
titleTrashed: string;
|
|
460
|
+
toggle: string;
|
|
442
461
|
trash: string;
|
|
443
462
|
trashedCountSuccessfully: string;
|
|
444
463
|
true: string;
|
|
445
464
|
unauthorized: string;
|
|
465
|
+
unchecked: string;
|
|
446
466
|
unlock: string;
|
|
447
467
|
unsavedChanges: string;
|
|
448
468
|
unsavedChangesDuplicate: string;
|
|
449
469
|
untitled: string;
|
|
450
470
|
upcomingEvents: string;
|
|
471
|
+
updatedAgo: string;
|
|
451
472
|
updatedAt: string;
|
|
452
473
|
updatedCountSuccessfully: string;
|
|
453
474
|
updatedLabelSuccessfully: string;
|
|
@@ -465,6 +486,15 @@ declare const enTranslations: {
|
|
|
465
486
|
welcome: string;
|
|
466
487
|
yes: string;
|
|
467
488
|
};
|
|
489
|
+
hierarchy: {
|
|
490
|
+
itemsMovedTo: string;
|
|
491
|
+
itemsMovedToRoot: string;
|
|
492
|
+
moveItemsToRootConfirmation: string;
|
|
493
|
+
moveToRoot: string;
|
|
494
|
+
noParent: string;
|
|
495
|
+
noResults: string;
|
|
496
|
+
searchLabel: string;
|
|
497
|
+
};
|
|
468
498
|
localization: {
|
|
469
499
|
cannotCopySameLocale: string;
|
|
470
500
|
copyFrom: string;
|
|
@@ -643,9 +673,6 @@ type Language<TDefaultTranslations = DefaultTranslationsObject> = {
|
|
|
643
673
|
type GenericTranslationsObject = {
|
|
644
674
|
[key: string]: GenericTranslationsObject | string;
|
|
645
675
|
};
|
|
646
|
-
type GenericLanguages = {
|
|
647
|
-
[key in AcceptedLanguages]?: GenericTranslationsObject;
|
|
648
|
-
};
|
|
649
676
|
type AcceptedLanguages = (typeof acceptedLanguages)[number];
|
|
650
677
|
type SupportedLanguages<TDefaultTranslations = DefaultTranslationsObject> = {
|
|
651
678
|
[key in AcceptedLanguages]?: Language<TDefaultTranslations>;
|
|
@@ -730,6 +757,49 @@ type OptionalKeys<Type> = Type extends object ? keyof {
|
|
|
730
757
|
|
|
731
758
|
type RequiredKeys<Type> = Type extends unknown ? Exclude<keyof Type, OptionalKeys<Type>> : never;
|
|
732
759
|
|
|
760
|
+
type CookieStore = {
|
|
761
|
+
get: (name: string) => {
|
|
762
|
+
name: string;
|
|
763
|
+
value: string;
|
|
764
|
+
} | null | undefined;
|
|
765
|
+
getAll?: () => Array<{
|
|
766
|
+
name: string;
|
|
767
|
+
value: string;
|
|
768
|
+
}>;
|
|
769
|
+
set?: (name: string, value: string, options?: CookieOptions$1) => void;
|
|
770
|
+
};
|
|
771
|
+
type CookieOptions$1 = {
|
|
772
|
+
domain?: string;
|
|
773
|
+
expires?: Date;
|
|
774
|
+
httpOnly?: boolean;
|
|
775
|
+
maxAge?: number;
|
|
776
|
+
path?: string;
|
|
777
|
+
sameSite?: 'lax' | 'none' | 'strict';
|
|
778
|
+
secure?: boolean;
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Server-side adapter passed into server functions (not React context).
|
|
783
|
+
* Abstracts framework-specific server APIs like cookies, headers, redirect.
|
|
784
|
+
*/
|
|
785
|
+
type ServerAdapter = {
|
|
786
|
+
/**
|
|
787
|
+
* Throws a Next-style "forbidden" boundary (HTTP 403 semantics). Plugins
|
|
788
|
+
* should treat this as a control-flow `never` — execution does not return.
|
|
789
|
+
*/
|
|
790
|
+
forbidden: () => never;
|
|
791
|
+
getCookies: () => CookieStore | Promise<CookieStore>;
|
|
792
|
+
getHeaders: () => Headers | Promise<Headers>;
|
|
793
|
+
notFound: () => never;
|
|
794
|
+
permanentRedirect: (path: string) => never;
|
|
795
|
+
redirect: (path: string) => never;
|
|
796
|
+
setCookie: (name: string, value: string, options?: CookieOptions$1) => Promise<void> | void;
|
|
797
|
+
/**
|
|
798
|
+
* Throws a Next-style "unauthorized" boundary (HTTP 401 semantics).
|
|
799
|
+
*/
|
|
800
|
+
unauthorized: () => never;
|
|
801
|
+
};
|
|
802
|
+
|
|
733
803
|
/** @deprecated Use `instanceof APIError` instead of name comparison. */
|
|
734
804
|
declare const APIErrorName = "APIError";
|
|
735
805
|
declare class ExtendableError<TData extends object = {
|
|
@@ -1083,7 +1153,7 @@ type CollectionPreferences = {
|
|
|
1083
1153
|
editViewType?: 'default' | 'live-preview';
|
|
1084
1154
|
groupBy?: string;
|
|
1085
1155
|
limit?: number;
|
|
1086
|
-
listViewType?: '
|
|
1156
|
+
listViewType?: 'hierarchy' | 'list';
|
|
1087
1157
|
preset?: DefaultDocumentIDType;
|
|
1088
1158
|
sort?: string;
|
|
1089
1159
|
};
|
|
@@ -2087,51 +2157,7 @@ type GlobalAdminOptions = {
|
|
|
2087
2157
|
/**
|
|
2088
2158
|
* Custom admin components
|
|
2089
2159
|
*/
|
|
2090
|
-
components?:
|
|
2091
|
-
elements?: {
|
|
2092
|
-
/**
|
|
2093
|
-
* Inject custom components before the document controls
|
|
2094
|
-
*/
|
|
2095
|
-
beforeDocumentControls?: CustomComponent[];
|
|
2096
|
-
Description?: EntityDescriptionComponent;
|
|
2097
|
-
/**
|
|
2098
|
-
* Replaces the "Preview" button
|
|
2099
|
-
*/
|
|
2100
|
-
PreviewButton?: CustomComponent;
|
|
2101
|
-
/**
|
|
2102
|
-
* Replaces the "Publish" button
|
|
2103
|
-
* + drafts must be enabled
|
|
2104
|
-
*/
|
|
2105
|
-
PublishButton?: PayloadComponent<PublishButtonServerProps, PublishButtonClientProps>;
|
|
2106
|
-
/**
|
|
2107
|
-
* Replaces the "Save" button
|
|
2108
|
-
* + drafts must be disabled
|
|
2109
|
-
*/
|
|
2110
|
-
SaveButton?: CustomComponent;
|
|
2111
|
-
/**
|
|
2112
|
-
* Replaces the "Save Draft" button
|
|
2113
|
-
* + drafts must be enabled
|
|
2114
|
-
* + autosave must be disabled
|
|
2115
|
-
*/
|
|
2116
|
-
SaveDraftButton?: CustomComponent;
|
|
2117
|
-
/**
|
|
2118
|
-
* Replaces the "Status" section
|
|
2119
|
-
*/
|
|
2120
|
-
Status?: CustomStatus;
|
|
2121
|
-
/**
|
|
2122
|
-
* Replaces the "Unpublish" button
|
|
2123
|
-
* + drafts must be enabled
|
|
2124
|
-
*/
|
|
2125
|
-
UnpublishButton?: PayloadComponent<UnpublishButtonServerProps, UnpublishButtonClientProps>;
|
|
2126
|
-
};
|
|
2127
|
-
views?: {
|
|
2128
|
-
/**
|
|
2129
|
-
* Set to a React component to replace the entire Edit View, including all nested routes.
|
|
2130
|
-
* Set to an object to replace or modify individual nested routes, or to add new ones.
|
|
2131
|
-
*/
|
|
2132
|
-
edit?: EditConfig;
|
|
2133
|
-
};
|
|
2134
|
-
};
|
|
2160
|
+
components?: SharedAdminComponents;
|
|
2135
2161
|
/** Extension point to add your custom data. Available in server and client. */
|
|
2136
2162
|
custom?: GlobalAdminCustom;
|
|
2137
2163
|
/**
|
|
@@ -2151,10 +2177,6 @@ type GlobalAdminOptions = {
|
|
|
2151
2177
|
hidden?: ((args: {
|
|
2152
2178
|
user: PayloadRequest['user'];
|
|
2153
2179
|
}) => boolean) | boolean;
|
|
2154
|
-
/**
|
|
2155
|
-
* Hide the API URL within the Edit View
|
|
2156
|
-
*/
|
|
2157
|
-
hideAPIURL?: boolean;
|
|
2158
2180
|
/**
|
|
2159
2181
|
* Live preview options
|
|
2160
2182
|
*/
|
|
@@ -2185,10 +2207,6 @@ type GlobalConfig<TSlug extends GlobalSlug = any> = {
|
|
|
2185
2207
|
dbName?: DBIdentifierName;
|
|
2186
2208
|
endpoints?: false | Omit<Endpoint, 'root'>[];
|
|
2187
2209
|
fields: Field[];
|
|
2188
|
-
/**
|
|
2189
|
-
* Specify which fields should be selected always, regardless of the `select` query which can be useful that the field exists for access control / hooks
|
|
2190
|
-
*/
|
|
2191
|
-
forceSelect?: IsAny$1<SelectFromGlobalSlug<TSlug>> extends true ? SelectIncludeType : SelectFromGlobalSlug<TSlug>;
|
|
2192
2210
|
graphQL?: {
|
|
2193
2211
|
disableMutations?: true;
|
|
2194
2212
|
disableQueries?: true;
|
|
@@ -2221,7 +2239,7 @@ type GlobalConfig<TSlug extends GlobalSlug = any> = {
|
|
|
2221
2239
|
interface?: string;
|
|
2222
2240
|
};
|
|
2223
2241
|
versions?: boolean | IncomingGlobalVersions;
|
|
2224
|
-
}
|
|
2242
|
+
} & Pick<WithSelectFn<IsAny$1<SelectFromGlobalSlug<TSlug>> extends true ? SelectIncludeType : SelectFromGlobalSlug<TSlug>>, 'select'>;
|
|
2225
2243
|
interface SanitizedGlobalConfig extends Omit<DeepRequired<GlobalConfig>, 'endpoints' | 'fields' | 'slug' | 'versions'> {
|
|
2226
2244
|
endpoints: Endpoint[] | false;
|
|
2227
2245
|
fields: Field[];
|
|
@@ -2244,6 +2262,14 @@ type Globals = {
|
|
|
2244
2262
|
} | false;
|
|
2245
2263
|
};
|
|
2246
2264
|
|
|
2265
|
+
type DisabledOptions = {
|
|
2266
|
+
bulkEdit?: boolean;
|
|
2267
|
+
column?: boolean;
|
|
2268
|
+
field?: boolean;
|
|
2269
|
+
filter?: boolean;
|
|
2270
|
+
groupBy?: boolean;
|
|
2271
|
+
};
|
|
2272
|
+
|
|
2247
2273
|
type TextFieldValidation = Validate<string, unknown, unknown, TextField>;
|
|
2248
2274
|
type TextFieldManyValidation = Validate<string[], unknown, unknown, TextField>;
|
|
2249
2275
|
type TextFieldSingleValidation = Validate<string, unknown, unknown, TextField>;
|
|
@@ -2511,23 +2537,12 @@ type FieldAdmin = {
|
|
|
2511
2537
|
* we use the field description to generate JSDoc comments for the generated TypeScript types.
|
|
2512
2538
|
*/
|
|
2513
2539
|
description?: Description;
|
|
2514
|
-
disableBulkEdit?: boolean;
|
|
2515
|
-
disabled?: boolean;
|
|
2516
|
-
/**
|
|
2517
|
-
* Shows / hides fields from appearing in the list view groupBy options.
|
|
2518
|
-
* @type boolean
|
|
2519
|
-
*/
|
|
2520
|
-
disableGroupBy?: boolean;
|
|
2521
2540
|
/**
|
|
2522
|
-
*
|
|
2523
|
-
*
|
|
2541
|
+
* Controls where this field is disabled in the admin UI.
|
|
2542
|
+
* - `true` disables the field everywhere (edit form, list column, list filter, groupBy, bulk edit).
|
|
2543
|
+
* - An object enables granular control per area: `{ field?, column?, filter?, groupBy?, bulkEdit? }`.
|
|
2524
2544
|
*/
|
|
2525
|
-
|
|
2526
|
-
/**
|
|
2527
|
-
* Shows / hides fields from appearing in the list view filter options.
|
|
2528
|
-
* @type boolean
|
|
2529
|
-
*/
|
|
2530
|
-
disableListFilter?: boolean;
|
|
2545
|
+
disabled?: boolean | DisabledOptions;
|
|
2531
2546
|
hidden?: boolean;
|
|
2532
2547
|
position?: FieldPosition;
|
|
2533
2548
|
readOnly?: boolean;
|
|
@@ -2539,23 +2554,12 @@ type AdminClient = {
|
|
|
2539
2554
|
/** Extension point to add your custom data. Available in server and client. */
|
|
2540
2555
|
custom?: Record<string, any>;
|
|
2541
2556
|
description?: StaticDescription;
|
|
2542
|
-
disableBulkEdit?: boolean;
|
|
2543
|
-
disabled?: boolean;
|
|
2544
|
-
/**
|
|
2545
|
-
* Shows / hides fields from appearing in the list view groupBy options.
|
|
2546
|
-
* @type boolean
|
|
2547
|
-
*/
|
|
2548
|
-
disableGroupBy?: boolean;
|
|
2549
2557
|
/**
|
|
2550
|
-
*
|
|
2551
|
-
*
|
|
2558
|
+
* Controls where this field is disabled in the admin UI.
|
|
2559
|
+
* - `true` disables the field everywhere (edit form, list column, list filter, groupBy, bulk edit).
|
|
2560
|
+
* - An object enables granular control per area: `{ field?, column?, filter?, groupBy?, bulkEdit? }`.
|
|
2552
2561
|
*/
|
|
2553
|
-
|
|
2554
|
-
/**
|
|
2555
|
-
* Shows / hides fields from appearing in the list view filter options.
|
|
2556
|
-
* @type boolean
|
|
2557
|
-
*/
|
|
2558
|
-
disableListFilter?: boolean;
|
|
2562
|
+
disabled?: boolean | DisabledOptions;
|
|
2559
2563
|
hidden?: boolean;
|
|
2560
2564
|
position?: FieldPosition;
|
|
2561
2565
|
readOnly?: boolean;
|
|
@@ -2641,6 +2645,14 @@ interface FieldBase {
|
|
|
2641
2645
|
beforeValidate?: FieldHook[];
|
|
2642
2646
|
};
|
|
2643
2647
|
index?: boolean;
|
|
2648
|
+
/**
|
|
2649
|
+
* Allows you to modify the base JSON schema that is generated for this field.
|
|
2650
|
+
* This JSON schema will be used to generate the TypeScript interface of this field, and to
|
|
2651
|
+
* validate the field's value in the MCP plugin.
|
|
2652
|
+
*/
|
|
2653
|
+
jsonSchema?: Array<(args: {
|
|
2654
|
+
jsonSchema: JSONSchema4;
|
|
2655
|
+
}) => JSONSchema4>;
|
|
2644
2656
|
label?: false | LabelFunction | StaticLabel;
|
|
2645
2657
|
localized?: boolean;
|
|
2646
2658
|
/**
|
|
@@ -2652,13 +2664,6 @@ interface FieldBase {
|
|
|
2652
2664
|
name: string;
|
|
2653
2665
|
required?: boolean;
|
|
2654
2666
|
saveToJWT?: boolean | string;
|
|
2655
|
-
/**
|
|
2656
|
-
* Allows you to modify the base JSON schema that is generated during generate:types for this field.
|
|
2657
|
-
* This JSON schema will be used to generate the TypeScript interface of this field.
|
|
2658
|
-
*/
|
|
2659
|
-
typescriptSchema?: Array<(args: {
|
|
2660
|
-
jsonSchema: JSONSchema4;
|
|
2661
|
-
}) => JSONSchema4>;
|
|
2662
2667
|
unique?: boolean;
|
|
2663
2668
|
validate?: Validate;
|
|
2664
2669
|
/**
|
|
@@ -2668,29 +2673,9 @@ interface FieldBase {
|
|
|
2668
2673
|
*/
|
|
2669
2674
|
virtual?: boolean | string;
|
|
2670
2675
|
}
|
|
2671
|
-
interface FieldBaseClient {
|
|
2676
|
+
interface FieldBaseClient extends Pick<FieldBase, 'hidden' | 'index' | 'jsonSchema' | 'localized' | 'name' | 'required' | 'saveToJWT' | 'unique'> {
|
|
2672
2677
|
admin?: AdminClient;
|
|
2673
|
-
hidden?: boolean;
|
|
2674
|
-
index?: boolean;
|
|
2675
2678
|
label?: StaticLabel;
|
|
2676
|
-
localized?: boolean;
|
|
2677
|
-
/**
|
|
2678
|
-
* The name of the field. Must be alphanumeric and cannot contain ' . '
|
|
2679
|
-
*
|
|
2680
|
-
* Must not be one of reserved field names: ['__v', 'salt', 'hash', 'file']
|
|
2681
|
-
* @link https://payloadcms.com/docs/fields/overview#field-names
|
|
2682
|
-
*/
|
|
2683
|
-
name: string;
|
|
2684
|
-
required?: boolean;
|
|
2685
|
-
saveToJWT?: boolean | string;
|
|
2686
|
-
/**
|
|
2687
|
-
* Allows you to modify the base JSON schema that is generated during generate:types for this field.
|
|
2688
|
-
* This JSON schema will be used to generate the TypeScript interface of this field.
|
|
2689
|
-
*/
|
|
2690
|
-
typescriptSchema?: Array<(args: {
|
|
2691
|
-
jsonSchema: JSONSchema4;
|
|
2692
|
-
}) => JSONSchema4>;
|
|
2693
|
-
unique?: boolean;
|
|
2694
2679
|
}
|
|
2695
2680
|
type NumberField = {
|
|
2696
2681
|
admin?: {
|
|
@@ -3018,15 +3003,12 @@ type UIField = {
|
|
|
3018
3003
|
/** Extension point to add your custom data. Available in server and client. */
|
|
3019
3004
|
custom?: Record<string, any>;
|
|
3020
3005
|
/**
|
|
3021
|
-
*
|
|
3022
|
-
*
|
|
3006
|
+
* Controls where this UI field is disabled in the admin UI.
|
|
3007
|
+
* - `true` disables the field everywhere.
|
|
3008
|
+
* - An object enables granular control per area: `{ field?, column?, filter?, groupBy?, bulkEdit? }`.
|
|
3009
|
+
* UI fields default to `disabled: { bulkEdit: true }` via sanitize.
|
|
3023
3010
|
*/
|
|
3024
|
-
|
|
3025
|
-
/**
|
|
3026
|
-
* Shows / hides fields from appearing in the list view column selector.
|
|
3027
|
-
* @type boolean
|
|
3028
|
-
*/
|
|
3029
|
-
disableListColumn?: boolean;
|
|
3011
|
+
disabled?: boolean | DisabledOptions;
|
|
3030
3012
|
position?: string;
|
|
3031
3013
|
width?: CSSProperties['width'];
|
|
3032
3014
|
};
|
|
@@ -3037,7 +3019,7 @@ type UIField = {
|
|
|
3037
3019
|
type: 'ui';
|
|
3038
3020
|
};
|
|
3039
3021
|
type UIFieldClient = {
|
|
3040
|
-
admin: DeepUndefinable<FieldBaseClient['admin']> & Pick<UIField['admin'], 'custom' | '
|
|
3022
|
+
admin: DeepUndefinable<FieldBaseClient['admin']> & Pick<UIField['admin'], 'custom' | 'disabled' | 'position' | 'width'>;
|
|
3041
3023
|
} & Omit<DeepUndefinable<FieldBaseClient>, 'admin'> & // still include FieldBaseClient (even if it's undefinable) so that we don't need constant type checks (e.g. if('xy' in field))
|
|
3042
3024
|
Pick<UIField, 'label' | 'name' | 'type'>;
|
|
3043
3025
|
type SharedUploadProperties = {
|
|
@@ -3055,32 +3037,16 @@ type SharedUploadProperties = {
|
|
|
3055
3037
|
type: 'upload';
|
|
3056
3038
|
} & ({
|
|
3057
3039
|
hasMany: true;
|
|
3058
|
-
/**
|
|
3059
|
-
* @deprecated Use 'maxRows' instead
|
|
3060
|
-
*/
|
|
3061
|
-
max?: number;
|
|
3062
3040
|
maxRows?: number;
|
|
3063
|
-
/**
|
|
3064
|
-
* @deprecated Use 'minRows' instead
|
|
3065
|
-
*/
|
|
3066
|
-
min?: number;
|
|
3067
3041
|
minRows?: number;
|
|
3068
3042
|
validate?: UploadFieldManyValidation;
|
|
3069
3043
|
} | {
|
|
3070
3044
|
hasMany?: false | undefined;
|
|
3071
|
-
/**
|
|
3072
|
-
* @deprecated Use 'maxRows' instead
|
|
3073
|
-
*/
|
|
3074
|
-
max?: undefined;
|
|
3075
3045
|
maxRows?: undefined;
|
|
3076
|
-
/**
|
|
3077
|
-
* @deprecated Use 'minRows' instead
|
|
3078
|
-
*/
|
|
3079
|
-
min?: undefined;
|
|
3080
3046
|
minRows?: undefined;
|
|
3081
3047
|
validate?: UploadFieldSingleValidation;
|
|
3082
3048
|
}) & FieldGraphQLType & Omit<FieldBase, 'validate'>;
|
|
3083
|
-
type SharedUploadPropertiesClient = FieldBaseClient & Pick<SharedUploadProperties, 'hasMany' | '
|
|
3049
|
+
type SharedUploadPropertiesClient = FieldBaseClient & Pick<SharedUploadProperties, 'hasMany' | 'maxDepth' | 'maxRows' | 'minRows' | 'type'>;
|
|
3084
3050
|
type UploadAdmin = {
|
|
3085
3051
|
allowCreate?: boolean;
|
|
3086
3052
|
components?: {
|
|
@@ -3221,32 +3187,16 @@ type SharedRelationshipProperties = {
|
|
|
3221
3187
|
type: 'relationship';
|
|
3222
3188
|
} & ({
|
|
3223
3189
|
hasMany: true;
|
|
3224
|
-
/**
|
|
3225
|
-
* @deprecated Use 'maxRows' instead
|
|
3226
|
-
*/
|
|
3227
|
-
max?: number;
|
|
3228
3190
|
maxRows?: number;
|
|
3229
|
-
/**
|
|
3230
|
-
* @deprecated Use 'minRows' instead
|
|
3231
|
-
*/
|
|
3232
|
-
min?: number;
|
|
3233
3191
|
minRows?: number;
|
|
3234
3192
|
validate?: RelationshipFieldManyValidation;
|
|
3235
3193
|
} | {
|
|
3236
3194
|
hasMany?: false | undefined;
|
|
3237
|
-
/**
|
|
3238
|
-
* @deprecated Use 'maxRows' instead
|
|
3239
|
-
*/
|
|
3240
|
-
max?: undefined;
|
|
3241
3195
|
maxRows?: undefined;
|
|
3242
|
-
/**
|
|
3243
|
-
* @deprecated Use 'minRows' instead
|
|
3244
|
-
*/
|
|
3245
|
-
min?: undefined;
|
|
3246
3196
|
minRows?: undefined;
|
|
3247
3197
|
validate?: RelationshipFieldSingleValidation;
|
|
3248
3198
|
}) & FieldGraphQLType & Omit<FieldBase, 'validate'>;
|
|
3249
|
-
type SharedRelationshipPropertiesClient = FieldBaseClient & Pick<SharedRelationshipProperties, 'hasMany' | '
|
|
3199
|
+
type SharedRelationshipPropertiesClient = FieldBaseClient & Pick<SharedRelationshipProperties, 'hasMany' | 'maxDepth' | 'maxRows' | 'minRows' | 'type'>;
|
|
3250
3200
|
type RelationshipAdmin = {
|
|
3251
3201
|
allowCreate?: boolean;
|
|
3252
3202
|
allowEdit?: boolean;
|
|
@@ -3527,11 +3477,12 @@ type Block = {
|
|
|
3527
3477
|
* @deprecated Use `admin.images` instead. Preferred aspect ratio of the image is 3:2.
|
|
3528
3478
|
*/
|
|
3529
3479
|
imageURL?: string;
|
|
3530
|
-
/**
|
|
3531
|
-
*
|
|
3532
|
-
*
|
|
3533
|
-
*
|
|
3534
|
-
*
|
|
3480
|
+
/**
|
|
3481
|
+
* Override the name of the top-level TypeScript interface and GraphQL
|
|
3482
|
+
* type generated for this block. Blocks **always** generate a top-level
|
|
3483
|
+
* interface - by default it's a PascalCase form of the slug
|
|
3484
|
+
* (`'content-block'` → `ContentBlock`). Set this to take control of the
|
|
3485
|
+
* generated name
|
|
3535
3486
|
*/
|
|
3536
3487
|
interfaceName?: string;
|
|
3537
3488
|
jsx?: BlockJSX;
|
|
@@ -3921,17 +3872,12 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
|
|
|
3921
3872
|
siblingDoc: JsonObject;
|
|
3922
3873
|
}) => void;
|
|
3923
3874
|
hooks?: RichTextHooks;
|
|
3924
|
-
/**
|
|
3925
|
-
* @deprecated - manually merge i18n translations into the config.i18n.translations object within the adapter provider instead.
|
|
3926
|
-
* This property will be removed in v4.
|
|
3927
|
-
*/
|
|
3928
|
-
i18n?: Partial<GenericLanguages>;
|
|
3929
3875
|
/**
|
|
3930
3876
|
* Return the JSON schema for the field value. The JSON schema is read by
|
|
3931
3877
|
* `json-schema-to-typescript` which is used to generate types for this richtext field
|
|
3932
3878
|
* payload-types.ts)
|
|
3933
3879
|
*/
|
|
3934
|
-
|
|
3880
|
+
jsonSchema?: (args: {
|
|
3935
3881
|
collectionIDFieldTypes: {
|
|
3936
3882
|
[key: string]: 'number' | 'string';
|
|
3937
3883
|
};
|
|
@@ -4018,7 +3964,7 @@ declare function parseCookies(headers: Request['headers']): Map<string, string>;
|
|
|
4018
3964
|
|
|
4019
3965
|
declare const extractJWT: (args: Omit<AuthStrategyFunctionArgs, "strategyName">) => null | string;
|
|
4020
3966
|
|
|
4021
|
-
type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | '
|
|
3967
|
+
type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | 'jsonSchema' | 'label' | 'validate' | keyof Pick<FieldBase, 'access' | 'custom' | 'defaultValue' | 'hooks'>;
|
|
4022
3968
|
type ServerOnlyFieldAdminProperties = keyof Pick<FieldBase['admin'], 'components' | 'condition'>;
|
|
4023
3969
|
declare const createClientBlocks: ({ blocks, defaultIDType, i18n, importMap, }: {
|
|
4024
3970
|
blocks: (Block | string)[];
|
|
@@ -4040,7 +3986,159 @@ declare const createClientFields: ({ defaultIDType, disableAddingID, fields, i18
|
|
|
4040
3986
|
importMap: ImportMap;
|
|
4041
3987
|
}) => ClientField[];
|
|
4042
3988
|
|
|
4043
|
-
|
|
3989
|
+
/**
|
|
3990
|
+
* User-configurable options for the hierarchy join field.
|
|
3991
|
+
* Excludes properties that are auto-generated: type, collection, on, hasMany
|
|
3992
|
+
*/
|
|
3993
|
+
type HierarchyJoinFieldConfig = {
|
|
3994
|
+
name: string;
|
|
3995
|
+
} & Omit<Partial<JoinField>, 'collection' | 'hasMany' | 'name' | 'on' | 'type'>;
|
|
3996
|
+
/**
|
|
3997
|
+
* Configuration options for hierarchy feature
|
|
3998
|
+
*
|
|
3999
|
+
* Hierarchies are always self-referential - documents can only nest under other documents
|
|
4000
|
+
* from the same collection.
|
|
4001
|
+
*/
|
|
4002
|
+
type HierarchyConfig = {
|
|
4003
|
+
/**
|
|
4004
|
+
* UI configuration for hierarchy
|
|
4005
|
+
*/
|
|
4006
|
+
admin?: {
|
|
4007
|
+
/**
|
|
4008
|
+
* Custom components for hierarchy UI
|
|
4009
|
+
*/
|
|
4010
|
+
components?: {
|
|
4011
|
+
/**
|
|
4012
|
+
* Custom icon component for hierarchy items.
|
|
4013
|
+
* - 24x24 size icon.
|
|
4014
|
+
*/
|
|
4015
|
+
Icon?: PayloadComponent;
|
|
4016
|
+
/**
|
|
4017
|
+
* Small icon component for compact hierarchy contexts:
|
|
4018
|
+
* - 16x16 size icon.
|
|
4019
|
+
*/
|
|
4020
|
+
SmallIcon?: PayloadComponent;
|
|
4021
|
+
};
|
|
4022
|
+
/**
|
|
4023
|
+
* Whether to inject a sidebar tab for this hierarchy collection
|
|
4024
|
+
* @default true
|
|
4025
|
+
*/
|
|
4026
|
+
injectSidebarTab?: boolean;
|
|
4027
|
+
/**
|
|
4028
|
+
* Maximum number of items to load in tree views
|
|
4029
|
+
* @default 100
|
|
4030
|
+
*/
|
|
4031
|
+
treeLimit?: number;
|
|
4032
|
+
/**
|
|
4033
|
+
* Whether to use a header button for parent selection instead of inline field.
|
|
4034
|
+
* When true, the parent field is hidden and a button is injected into the document header.
|
|
4035
|
+
* @default true
|
|
4036
|
+
*/
|
|
4037
|
+
useHeaderButton?: boolean;
|
|
4038
|
+
};
|
|
4039
|
+
/**
|
|
4040
|
+
* Whether related documents can have multiple values of this hierarchy
|
|
4041
|
+
* Set to false for folder-like behavior (single parent), true for tag-like behavior (multiple)
|
|
4042
|
+
* @default true
|
|
4043
|
+
*/
|
|
4044
|
+
allowHasMany?: boolean;
|
|
4045
|
+
/**
|
|
4046
|
+
* Whether this hierarchy is scoped to specific collections
|
|
4047
|
+
* When true or an object, hierarchy items can be restricted to certain collections
|
|
4048
|
+
* @default false
|
|
4049
|
+
*/
|
|
4050
|
+
collectionSpecific?: {
|
|
4051
|
+
/**
|
|
4052
|
+
* Name of the select field for specifying allowed collections
|
|
4053
|
+
* @default 'hierarchyType'
|
|
4054
|
+
*/
|
|
4055
|
+
fieldName?: string;
|
|
4056
|
+
} | boolean;
|
|
4057
|
+
/**
|
|
4058
|
+
* Configure a join field to query all children (nested hierarchy items and related documents)
|
|
4059
|
+
* If not set, no join field is created.
|
|
4060
|
+
* You can pass additional JoinField options (admin, defaultLimit, defaultSort, etc.)
|
|
4061
|
+
* that will be merged with the auto-generated config.
|
|
4062
|
+
*/
|
|
4063
|
+
joinField?: HierarchyJoinFieldConfig;
|
|
4064
|
+
/**
|
|
4065
|
+
* Name of the field that references the parent document
|
|
4066
|
+
* Will automatically create this field if it does not exist
|
|
4067
|
+
* @default '_h_${collectionSlug}' (e.g., '_h_folders' for a collection with slug 'folders')
|
|
4068
|
+
*/
|
|
4069
|
+
parentFieldName: string;
|
|
4070
|
+
/**
|
|
4071
|
+
* Name of the field to use for slug path generation.
|
|
4072
|
+
* When set, uses this field's value directly instead of slugifying the title.
|
|
4073
|
+
* Useful when you have a dedicated slug field (e.g., 'slug') separate from the title.
|
|
4074
|
+
* @example 'slug' - uses the 'slug' field value as-is for path segments
|
|
4075
|
+
*/
|
|
4076
|
+
slugField?: string;
|
|
4077
|
+
/**
|
|
4078
|
+
* Custom function to slugify text for path generation
|
|
4079
|
+
* Used by computeSlugPath() utility for generating slug-based breadcrumb paths
|
|
4080
|
+
* Only used when slugField is not set.
|
|
4081
|
+
* Defaults to internal slugify implementation
|
|
4082
|
+
*/
|
|
4083
|
+
slugify?: (text: string) => string;
|
|
4084
|
+
/**
|
|
4085
|
+
* Name of the virtual field that will contain the slug-based breadcrumb path
|
|
4086
|
+
* @default HIERARCHY_SLUG_PATH_FIELD ('_h_slugPath')
|
|
4087
|
+
*/
|
|
4088
|
+
slugPathFieldName?: string;
|
|
4089
|
+
/**
|
|
4090
|
+
* Name of the virtual field that will contain the title-based breadcrumb path
|
|
4091
|
+
* @default HIERARCHY_TITLE_PATH_FIELD ('_h_titlePath')
|
|
4092
|
+
*/
|
|
4093
|
+
titlePathFieldName?: string;
|
|
4094
|
+
};
|
|
4095
|
+
/**
|
|
4096
|
+
* Sanitized hierarchy configuration with all defaults applied
|
|
4097
|
+
*/
|
|
4098
|
+
type SanitizedHierarchyConfig = {
|
|
4099
|
+
admin: {
|
|
4100
|
+
components: {
|
|
4101
|
+
Icon: PayloadComponent;
|
|
4102
|
+
SmallIcon: PayloadComponent;
|
|
4103
|
+
};
|
|
4104
|
+
injectSidebarTab: boolean;
|
|
4105
|
+
treeLimit: number;
|
|
4106
|
+
useHeaderButton: boolean;
|
|
4107
|
+
};
|
|
4108
|
+
allowHasMany: boolean;
|
|
4109
|
+
collectionSpecific: {
|
|
4110
|
+
fieldName: string;
|
|
4111
|
+
} | false;
|
|
4112
|
+
/**
|
|
4113
|
+
* Join field configuration, or undefined if not enabled
|
|
4114
|
+
*/
|
|
4115
|
+
joinField?: HierarchyJoinFieldConfig;
|
|
4116
|
+
parentFieldName: string;
|
|
4117
|
+
/**
|
|
4118
|
+
* Auto-populated during validation - maps collection slug to field info
|
|
4119
|
+
*/
|
|
4120
|
+
relatedCollections: Record<string, SanitizedHierarchyRelatedCollection>;
|
|
4121
|
+
/**
|
|
4122
|
+
* Field name for slug values, or undefined to use slugified title
|
|
4123
|
+
*/
|
|
4124
|
+
slugField?: string;
|
|
4125
|
+
slugify: (text: string) => string;
|
|
4126
|
+
slugPathFieldName: string;
|
|
4127
|
+
titlePathFieldName: string;
|
|
4128
|
+
};
|
|
4129
|
+
/**
|
|
4130
|
+
* Information about how a collection relates to this hierarchy
|
|
4131
|
+
*/
|
|
4132
|
+
type SanitizedHierarchyRelatedCollection = {
|
|
4133
|
+
fieldName: string;
|
|
4134
|
+
hasMany: boolean;
|
|
4135
|
+
};
|
|
4136
|
+
/**
|
|
4137
|
+
* Client-safe hierarchy configuration (excludes functions that can't cross server-client boundary)
|
|
4138
|
+
*/
|
|
4139
|
+
type ClientHierarchyConfig = Omit<SanitizedHierarchyConfig, 'slugify'>;
|
|
4140
|
+
|
|
4141
|
+
type ServerOnlyCollectionProperties = keyof Pick<SanitizedCollectionConfig, 'access' | 'custom' | 'endpoints' | 'flattenedFields' | 'hooks' | 'indexes' | 'joins' | 'polymorphicJoins' | 'sanitizedIndexes' | 'select'>;
|
|
4044
4142
|
type ServerOnlyCollectionAdminProperties = keyof Pick<SanitizedCollectionConfig['admin'], 'baseFilter' | 'baseListFilter' | 'components' | 'formatDocURL' | 'hidden'>;
|
|
4045
4143
|
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4046
4144
|
type ClientCollectionConfig = {
|
|
@@ -4053,11 +4151,12 @@ type ClientCollectionConfig = {
|
|
|
4053
4151
|
verify?: true;
|
|
4054
4152
|
} & Omit<SanitizedCollectionConfig['auth'], 'forgotPassword' | 'strategies' | 'verify'>;
|
|
4055
4153
|
fields: ClientField[];
|
|
4154
|
+
hierarchy?: ClientHierarchyConfig | false;
|
|
4056
4155
|
labels: {
|
|
4057
4156
|
plural: StaticLabel;
|
|
4058
4157
|
singular: StaticLabel;
|
|
4059
4158
|
};
|
|
4060
|
-
} & Omit<SanitizedCollectionConfig, 'admin' | 'auth' | 'fields' | 'labels' | ServerOnlyCollectionProperties>;
|
|
4159
|
+
} & Omit<SanitizedCollectionConfig, 'admin' | 'auth' | 'fields' | 'hierarchy' | 'labels' | ServerOnlyCollectionProperties>;
|
|
4061
4160
|
declare const createClientCollectionConfig: ({ collection, defaultIDType, i18n, importMap, }: {
|
|
4062
4161
|
collection: SanitizedCollectionConfig;
|
|
4063
4162
|
defaultIDType: Payload["config"]["db"]["defaultIDType"];
|
|
@@ -4071,7 +4170,7 @@ declare const createClientCollectionConfigs: ({ collections, defaultIDType, i18n
|
|
|
4071
4170
|
importMap: ImportMap;
|
|
4072
4171
|
}) => ClientCollectionConfig[];
|
|
4073
4172
|
|
|
4074
|
-
type ServerOnlyGlobalProperties = keyof Pick<SanitizedGlobalConfig, 'access' | 'admin' | 'custom' | 'endpoints' | 'fields' | 'flattenedFields' | 'hooks'>;
|
|
4173
|
+
type ServerOnlyGlobalProperties = keyof Pick<SanitizedGlobalConfig, 'access' | 'admin' | 'custom' | 'endpoints' | 'fields' | 'flattenedFields' | 'hooks' | 'select'>;
|
|
4075
4174
|
type ServerOnlyGlobalAdminProperties = keyof Pick<SanitizedGlobalConfig['admin'], 'components' | 'hidden'>;
|
|
4076
4175
|
type ClientGlobalConfig = {
|
|
4077
4176
|
admin: {
|
|
@@ -4094,7 +4193,7 @@ declare const createClientGlobalConfigs: ({ defaultIDType, globals, i18n, import
|
|
|
4094
4193
|
importMap: ImportMap;
|
|
4095
4194
|
}) => ClientGlobalConfig[];
|
|
4096
4195
|
|
|
4097
|
-
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'>;
|
|
4196
|
+
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'>;
|
|
4098
4197
|
type ServerOnlyRootAdminProperties = keyof Pick<SanitizedConfig['admin'], 'components'>;
|
|
4099
4198
|
type ClientConfig = {
|
|
4100
4199
|
admin: {
|
|
@@ -4259,7 +4358,6 @@ type AdminViewConfig = {
|
|
|
4259
4358
|
strict?: boolean;
|
|
4260
4359
|
};
|
|
4261
4360
|
type AdminViewClientProps = {
|
|
4262
|
-
browseByFolderSlugs?: SanitizedCollectionConfig['slug'][];
|
|
4263
4361
|
clientConfig: ClientConfig;
|
|
4264
4362
|
collectionSlug?: SanitizedCollectionConfig['slug'];
|
|
4265
4363
|
docID?: number | string;
|
|
@@ -4276,7 +4374,6 @@ type AdminViewServerPropsOnly = {
|
|
|
4276
4374
|
* @todo remove `docID` here as it is already contained in `initPageResult`
|
|
4277
4375
|
*/
|
|
4278
4376
|
readonly docID?: number | string;
|
|
4279
|
-
readonly folderID?: number | string;
|
|
4280
4377
|
readonly globalConfig?: SanitizedGlobalConfig;
|
|
4281
4378
|
readonly importMap: ImportMap;
|
|
4282
4379
|
readonly initialData?: Data;
|
|
@@ -4315,7 +4412,7 @@ type InitPageResult = {
|
|
|
4315
4412
|
/**
|
|
4316
4413
|
* @todo This should be renamed to `ViewType` (singular)
|
|
4317
4414
|
*/
|
|
4318
|
-
type ViewTypes = 'account' | '
|
|
4415
|
+
type ViewTypes = 'account' | 'createFirstUser' | 'dashboard' | 'document' | 'hierarchy' | 'list' | 'reset' | 'trash' | 'verify' | 'version' | ({} & string);
|
|
4319
4416
|
type ServerPropsFromView = {
|
|
4320
4417
|
collectionConfig?: SanitizedConfig['collections'][number];
|
|
4321
4418
|
globalConfig?: SanitizedConfig['globals'][number];
|
|
@@ -4332,13 +4429,9 @@ type Prettify$1<T> = {
|
|
|
4332
4429
|
[K in keyof T]: T[K];
|
|
4333
4430
|
} & NonNullable<unknown>;
|
|
4334
4431
|
/**
|
|
4335
|
-
* Options for sending an email. Allows access to the PayloadRequest object
|
|
4336
|
-
*
|
|
4337
|
-
* @todo: Remove in v4. See `normalizeSendEmailOptions` for details.
|
|
4432
|
+
* Options for sending an email. Allows access to the PayloadRequest object
|
|
4338
4433
|
*/
|
|
4339
|
-
type SendEmailOptions = Prettify$1<
|
|
4340
|
-
from?: Address | string;
|
|
4341
|
-
} & Omit<SendMailOptions, 'from'>>;
|
|
4434
|
+
type SendEmailOptions = Prettify$1<SendMailOptions>;
|
|
4342
4435
|
/**
|
|
4343
4436
|
* Email adapter after it has been initialized. This is used internally by Payload.
|
|
4344
4437
|
*/
|
|
@@ -4456,94 +4549,6 @@ declare class UnverifiedEmail extends APIError {
|
|
|
4456
4549
|
*/
|
|
4457
4550
|
type ErrorName = 'APIError' | 'AuthenticationError' | 'ErrorDeletingFile' | 'FileRetrievalError' | 'FileUploadError' | 'Forbidden' | 'Locked' | 'LockedAuth' | 'MissingFile' | 'NotFound' | 'QueryError' | 'UnverifiedEmail' | 'ValidationError';
|
|
4458
4551
|
|
|
4459
|
-
type FolderBreadcrumb = {
|
|
4460
|
-
folderType?: CollectionSlug[];
|
|
4461
|
-
id: null | number | string;
|
|
4462
|
-
name: string;
|
|
4463
|
-
};
|
|
4464
|
-
/**
|
|
4465
|
-
* `${relationTo}-${id}` is used as a key for the item
|
|
4466
|
-
*/
|
|
4467
|
-
type FolderDocumentItemKey = `${string}-${number | string}`;
|
|
4468
|
-
/**
|
|
4469
|
-
* Needed for document card view for upload enabled collections
|
|
4470
|
-
*/
|
|
4471
|
-
type DocumentMediaData = {
|
|
4472
|
-
filename?: string;
|
|
4473
|
-
mimeType?: string;
|
|
4474
|
-
url?: string;
|
|
4475
|
-
};
|
|
4476
|
-
/**
|
|
4477
|
-
* A generic structure for a folder or document item.
|
|
4478
|
-
*/
|
|
4479
|
-
type FolderOrDocument = {
|
|
4480
|
-
itemKey: FolderDocumentItemKey;
|
|
4481
|
-
relationTo: CollectionSlug;
|
|
4482
|
-
value: {
|
|
4483
|
-
_folderOrDocumentTitle: string;
|
|
4484
|
-
createdAt?: string;
|
|
4485
|
-
folderID?: number | string;
|
|
4486
|
-
folderType: CollectionSlug[];
|
|
4487
|
-
id: number | string;
|
|
4488
|
-
updatedAt?: string;
|
|
4489
|
-
} & DocumentMediaData;
|
|
4490
|
-
};
|
|
4491
|
-
type GetFolderDataResult = {
|
|
4492
|
-
breadcrumbs: FolderBreadcrumb[] | null;
|
|
4493
|
-
documents: FolderOrDocument[];
|
|
4494
|
-
folderAssignedCollections: CollectionSlug[] | undefined;
|
|
4495
|
-
subfolders: FolderOrDocument[];
|
|
4496
|
-
};
|
|
4497
|
-
type RootFoldersConfiguration = {
|
|
4498
|
-
/**
|
|
4499
|
-
* If true, the browse by folder view will be enabled
|
|
4500
|
-
*
|
|
4501
|
-
* @default true
|
|
4502
|
-
*/
|
|
4503
|
-
browseByFolder?: boolean;
|
|
4504
|
-
/**
|
|
4505
|
-
* An array of functions to be ran when the folder collection is initialized
|
|
4506
|
-
* This allows plugins to modify the collection configuration
|
|
4507
|
-
*/
|
|
4508
|
-
collectionOverrides?: (({ collection, }: {
|
|
4509
|
-
collection: Omit<CollectionConfig, 'trash'>;
|
|
4510
|
-
}) => Omit<CollectionConfig, 'trash'> | Promise<Omit<CollectionConfig, 'trash'>>)[];
|
|
4511
|
-
/**
|
|
4512
|
-
* If true, you can scope folders to specific collections.
|
|
4513
|
-
*
|
|
4514
|
-
* @default true
|
|
4515
|
-
*/
|
|
4516
|
-
collectionSpecific?: boolean;
|
|
4517
|
-
/**
|
|
4518
|
-
* Ability to view hidden fields and collections related to folders
|
|
4519
|
-
*
|
|
4520
|
-
* @default false
|
|
4521
|
-
*/
|
|
4522
|
-
debug?: boolean;
|
|
4523
|
-
/**
|
|
4524
|
-
* The Folder field name
|
|
4525
|
-
*
|
|
4526
|
-
* @default "folder"
|
|
4527
|
-
*/
|
|
4528
|
-
fieldName?: string;
|
|
4529
|
-
/**
|
|
4530
|
-
* Slug for the folder collection
|
|
4531
|
-
*
|
|
4532
|
-
* @default "payload-folders"
|
|
4533
|
-
*/
|
|
4534
|
-
slug?: string;
|
|
4535
|
-
};
|
|
4536
|
-
type CollectionFoldersConfiguration = {
|
|
4537
|
-
/**
|
|
4538
|
-
* If true, the collection will be included in the browse by folder view
|
|
4539
|
-
*
|
|
4540
|
-
* @default true
|
|
4541
|
-
*/
|
|
4542
|
-
browseByFolder?: boolean;
|
|
4543
|
-
};
|
|
4544
|
-
type BaseFolderSortKeys = 'createdAt' | 'name' | 'updatedAt';
|
|
4545
|
-
type FolderSortKeys = `-${BaseFolderSortKeys}` | BaseFolderSortKeys;
|
|
4546
|
-
|
|
4547
4552
|
declare const operations: readonly ["read", "update", "delete"];
|
|
4548
4553
|
type ConstraintOperation = (typeof operations)[number];
|
|
4549
4554
|
type DefaultConstraint = 'everyone' | 'onlyMe' | 'specificUsers';
|
|
@@ -4587,17 +4592,7 @@ type TaskInputOutput = {
|
|
|
4587
4592
|
output: object;
|
|
4588
4593
|
};
|
|
4589
4594
|
type TaskHandlerResult<TTaskSlugOrInputOutput extends keyof TypedJobs['tasks'] | TaskInputOutput> = {
|
|
4590
|
-
/**
|
|
4591
|
-
* @deprecated Returning `state: 'failed'` is deprecated. Throw an error instead.
|
|
4592
|
-
*/
|
|
4593
|
-
errorMessage?: string;
|
|
4594
|
-
/**
|
|
4595
|
-
* @deprecated Returning `state: 'failed'` is deprecated. Throw an error instead.
|
|
4596
|
-
*/
|
|
4597
|
-
state: 'failed';
|
|
4598
|
-
} | {
|
|
4599
4595
|
output: TTaskSlugOrInputOutput extends keyof TypedJobs['tasks'] ? TypedJobs['tasks'][TTaskSlugOrInputOutput]['output'] : TTaskSlugOrInputOutput extends TaskInputOutput ? TTaskSlugOrInputOutput['output'] : never;
|
|
4600
|
-
state?: 'succeeded';
|
|
4601
4596
|
};
|
|
4602
4597
|
type TaskHandlerArgs<TTaskSlugOrInputOutput extends keyof TypedJobs['tasks'] | TaskInputOutput, TWorkflowSlug extends keyof TypedJobs['workflows'] = string> = {
|
|
4603
4598
|
/**
|
|
@@ -4660,17 +4655,7 @@ type RunInlineTaskFunction = <TTaskInput extends object, TTaskOutput extends obj
|
|
|
4660
4655
|
req: PayloadRequest;
|
|
4661
4656
|
tasks: RunTaskFunctions;
|
|
4662
4657
|
}) => MaybePromise<{
|
|
4663
|
-
/**
|
|
4664
|
-
* @deprecated Returning `state: 'failed'` is deprecated. Throw an error instead.
|
|
4665
|
-
*/
|
|
4666
|
-
errorMessage?: string;
|
|
4667
|
-
/**
|
|
4668
|
-
* @deprecated Returning `state: 'failed'` is deprecated. Throw an error instead.
|
|
4669
|
-
*/
|
|
4670
|
-
state: 'failed';
|
|
4671
|
-
} | {
|
|
4672
4658
|
output: TTaskOutput;
|
|
4673
|
-
state?: 'succeeded';
|
|
4674
4659
|
}>;
|
|
4675
4660
|
}) => Promise<TTaskOutput>;
|
|
4676
4661
|
type TaskCallbackArgs = {
|
|
@@ -5163,17 +5148,6 @@ type JobsConfig = {
|
|
|
5163
5148
|
* Determine whether or not to delete a job after it has successfully completed.
|
|
5164
5149
|
*/
|
|
5165
5150
|
deleteJobOnComplete?: boolean;
|
|
5166
|
-
/**
|
|
5167
|
-
* Specify depth for retrieving jobs from the queue.
|
|
5168
|
-
* This should be as low as possible in order for job retrieval
|
|
5169
|
-
* to be as efficient as possible. Setting it to anything higher than
|
|
5170
|
-
* 0 will drastically affect performance, as less efficient database
|
|
5171
|
-
* queries will be used.
|
|
5172
|
-
*
|
|
5173
|
-
* @default 0
|
|
5174
|
-
* @deprecated - this will be removed in 4.0
|
|
5175
|
-
*/
|
|
5176
|
-
depth?: number;
|
|
5177
5151
|
/**
|
|
5178
5152
|
* Enable concurrency controls for workflows and tasks.
|
|
5179
5153
|
* When enabled, adds a `concurrencyKey` field to the jobs collection schema.
|
|
@@ -5206,16 +5180,6 @@ type JobsConfig = {
|
|
|
5206
5180
|
[queue: string]: Sort;
|
|
5207
5181
|
};
|
|
5208
5182
|
} | Sort;
|
|
5209
|
-
/**
|
|
5210
|
-
* By default, the job system uses direct database calls for optimal performance.
|
|
5211
|
-
* If you added custom hooks to your jobs collection, you can set this to true to
|
|
5212
|
-
* use the standard Payload API for all job operations. This is discouraged, as it will
|
|
5213
|
-
* drastically affect performance.
|
|
5214
|
-
*
|
|
5215
|
-
* @default false
|
|
5216
|
-
* @deprecated - this will be removed in 4.0
|
|
5217
|
-
*/
|
|
5218
|
-
runHooks?: boolean;
|
|
5219
5183
|
/**
|
|
5220
5184
|
* A function that will be executed before Payload picks up jobs which are configured by the `jobs.autorun` function.
|
|
5221
5185
|
* If this function returns true, jobs will be queried and picked up. If it returns false, jobs will not be run.
|
|
@@ -5371,6 +5335,40 @@ type Plugin = ((config: Config) => Config | Promise<Config>) & {
|
|
|
5371
5335
|
/** @experimental Unique identifier for cross-plugin discovery via `config.plugins`. */
|
|
5372
5336
|
slug?: string;
|
|
5373
5337
|
};
|
|
5338
|
+
/**
|
|
5339
|
+
* Configures where uploaded files are stored (S3, GCS, Azure, Vercel Blob, etc.).
|
|
5340
|
+
*
|
|
5341
|
+
* Storage adapters run **before plugins**, so upload hooks, static file handlers,
|
|
5342
|
+
* and presigned-URL endpoints are guaranteed to be in place before any plugin
|
|
5343
|
+
* modifies the config.
|
|
5344
|
+
*
|
|
5345
|
+
* Pass the return value of a storage adapter factory to `storage` in your
|
|
5346
|
+
* Payload config:
|
|
5347
|
+
*
|
|
5348
|
+
* ```ts
|
|
5349
|
+
* import { s3Storage } from '@payloadcms/storage-s3'
|
|
5350
|
+
*
|
|
5351
|
+
* export default buildConfig({
|
|
5352
|
+
* storage: [
|
|
5353
|
+
* s3Storage({
|
|
5354
|
+
* bucket: process.env.S3_BUCKET,
|
|
5355
|
+
* collections: { media: true },
|
|
5356
|
+
* config: { region: process.env.S3_REGION },
|
|
5357
|
+
* }),
|
|
5358
|
+
* ],
|
|
5359
|
+
* })
|
|
5360
|
+
* ```
|
|
5361
|
+
*
|
|
5362
|
+
* @see https://payloadcms.com/docs/uploads/storage-adapters
|
|
5363
|
+
*/
|
|
5364
|
+
interface StorageAdapter {
|
|
5365
|
+
/** Collection slugs this adapter is configured to handle. */
|
|
5366
|
+
collections: string[];
|
|
5367
|
+
/** Initializes the adapter and returns the modified config with upload hooks and handlers injected. */
|
|
5368
|
+
init: (config: Config) => Config | Promise<Config>;
|
|
5369
|
+
/** Unique identifier for this adapter (e.g. `'s3'`, `'gcs'`, `'azure'`). Surfaced in telemetry and on `payload.config.upload.adapters`. */
|
|
5370
|
+
name: string;
|
|
5371
|
+
}
|
|
5374
5372
|
/**
|
|
5375
5373
|
* A map of plugin slugs to Plugin instances, built from `config.plugins`.
|
|
5376
5374
|
* Registered slugs (via `RegisteredPlugins` module augmentation) return typed options.
|
|
@@ -5619,6 +5617,12 @@ type ServerProps = {
|
|
|
5619
5617
|
readonly payload: Payload;
|
|
5620
5618
|
readonly permissions?: SanitizedPermissions;
|
|
5621
5619
|
readonly searchParams?: Params;
|
|
5620
|
+
/**
|
|
5621
|
+
* Framework-agnostic methods for server-side navigation, headers, cookies, and other server-only APIs.
|
|
5622
|
+
* Plugins should call these methods instead of importing directly from `next/navigation`, `next/headers`, etc.
|
|
5623
|
+
* These methods are populated by the given framework adapter, e.g. `@payloadcms/next`.
|
|
5624
|
+
*/
|
|
5625
|
+
readonly server: ServerAdapter;
|
|
5622
5626
|
readonly user?: TypedUser;
|
|
5623
5627
|
readonly viewType?: ViewTypes;
|
|
5624
5628
|
readonly visibleEntities?: VisibleEntities;
|
|
@@ -5727,7 +5731,7 @@ type SanitizedLocalizationConfig = Prettify<{
|
|
|
5727
5731
|
* @see https://payloadcms.com/docs/configuration/localization#localization
|
|
5728
5732
|
*/
|
|
5729
5733
|
type LocalizationConfig = Prettify<LocalizationConfigWithLabels | LocalizationConfigWithNoLabels>;
|
|
5730
|
-
type LabelFunction<TTranslationKeys =
|
|
5734
|
+
type LabelFunction<TTranslationKeys = ClientTranslationKeys> = (args: {
|
|
5731
5735
|
i18n: I18nClient;
|
|
5732
5736
|
t: TFunction<TTranslationKeys>;
|
|
5733
5737
|
}) => string;
|
|
@@ -5932,6 +5936,27 @@ type DashboardConfig = {
|
|
|
5932
5936
|
type SanitizedDashboardConfig = {
|
|
5933
5937
|
widgets: Array<Omit<Widget, 'Component'>>;
|
|
5934
5938
|
};
|
|
5939
|
+
type SidebarTab = {
|
|
5940
|
+
/** Tab components */
|
|
5941
|
+
components: {
|
|
5942
|
+
/** Component to render as tab content */
|
|
5943
|
+
Content: CustomComponent;
|
|
5944
|
+
/** Component to render as tab icon */
|
|
5945
|
+
Icon: PayloadComponent;
|
|
5946
|
+
};
|
|
5947
|
+
/** Disable this tab */
|
|
5948
|
+
disabled?: boolean;
|
|
5949
|
+
/** Make this tab active by default */
|
|
5950
|
+
isDefaultActive?: boolean;
|
|
5951
|
+
/**
|
|
5952
|
+
* Label for accessibility and tab display.
|
|
5953
|
+
* Supports i18n by passing an object with locale keys, or a function with `t` for translations.
|
|
5954
|
+
* If not provided, the slug will be used as fallback.
|
|
5955
|
+
*/
|
|
5956
|
+
label?: LabelFunction | StaticLabel;
|
|
5957
|
+
/** Unique identifier for override/disable */
|
|
5958
|
+
slug: string;
|
|
5959
|
+
};
|
|
5935
5960
|
/**
|
|
5936
5961
|
* This is the central configuration
|
|
5937
5962
|
*
|
|
@@ -6042,6 +6067,11 @@ type Config = {
|
|
|
6042
6067
|
* These components will be rendered in a popup menu above the logout button.
|
|
6043
6068
|
*/
|
|
6044
6069
|
settingsMenu?: CustomComponent[];
|
|
6070
|
+
/** Sidebar configuration */
|
|
6071
|
+
sidebar?: {
|
|
6072
|
+
/** Extensible tab system */
|
|
6073
|
+
tabs?: SidebarTab[];
|
|
6074
|
+
};
|
|
6045
6075
|
/**
|
|
6046
6076
|
* Replace or modify top-level admin routes, or add new ones:
|
|
6047
6077
|
* + `Account` - `/admin/account`
|
|
@@ -6114,11 +6144,6 @@ type Config = {
|
|
|
6114
6144
|
* @default '/account'
|
|
6115
6145
|
*/
|
|
6116
6146
|
account?: `/${string}`;
|
|
6117
|
-
/** The route for the browse by folder view.
|
|
6118
|
-
*
|
|
6119
|
-
* @default '/browse-by-folder'
|
|
6120
|
-
*/
|
|
6121
|
-
browseByFolder?: `/${string}`;
|
|
6122
6147
|
/** The route for the create first user page.
|
|
6123
6148
|
*
|
|
6124
6149
|
* @default '/create-first-user'
|
|
@@ -6231,21 +6256,6 @@ type Config = {
|
|
|
6231
6256
|
* @see https://payloadcms.com/docs/configuration/collections#collection-configs
|
|
6232
6257
|
*/
|
|
6233
6258
|
collections?: CollectionConfig[];
|
|
6234
|
-
/**
|
|
6235
|
-
* Compatibility flags for prior Payload versions
|
|
6236
|
-
*/
|
|
6237
|
-
compatibility?: {
|
|
6238
|
-
/**
|
|
6239
|
-
* By default, Payload will remove the `localized: true` property
|
|
6240
|
-
* from fields if a parent field is localized. Set this property
|
|
6241
|
-
* to `true` only if you have an existing Payload database from pre-3.0
|
|
6242
|
-
* that you would like to maintain without migrating. This is only
|
|
6243
|
-
* relevant for MongoDB databases.
|
|
6244
|
-
*
|
|
6245
|
-
* @todo Remove in v4
|
|
6246
|
-
*/
|
|
6247
|
-
allowLocalizedWithinLocalized: true;
|
|
6248
|
-
};
|
|
6249
6259
|
/**
|
|
6250
6260
|
* Prefix a string to all cookies that Payload sets.
|
|
6251
6261
|
*
|
|
@@ -6302,12 +6312,6 @@ type Config = {
|
|
|
6302
6312
|
*/
|
|
6303
6313
|
localizeStatus?: boolean;
|
|
6304
6314
|
};
|
|
6305
|
-
/**
|
|
6306
|
-
* Options for folder view within the admin panel
|
|
6307
|
-
*
|
|
6308
|
-
* @experimental This feature may change in minor versions until it is fully stable
|
|
6309
|
-
*/
|
|
6310
|
-
folders?: false | RootFoldersConfiguration;
|
|
6311
6315
|
/**
|
|
6312
6316
|
* @see https://payloadcms.com/docs/configuration/globals#global-configs
|
|
6313
6317
|
*/
|
|
@@ -6569,6 +6573,20 @@ type Config = {
|
|
|
6569
6573
|
*
|
|
6570
6574
|
*/
|
|
6571
6575
|
sharp?: SharpDependency;
|
|
6576
|
+
/**
|
|
6577
|
+
* Storage adapters that handle where uploaded files are stored (S3, GCS, Azure, Vercel Blob, etc.).
|
|
6578
|
+
*
|
|
6579
|
+
* Adapters are initialized **before** `plugins`, so file handling is fully wired before any plugin
|
|
6580
|
+
* runs. Use this instead of placing storage adapter packages in `plugins`.
|
|
6581
|
+
*
|
|
6582
|
+
* Migrate existing `plugins` usage automatically with:
|
|
6583
|
+
* ```sh
|
|
6584
|
+
* npx @payloadcms/codemod --transform migrate-storage-adapters-to-config
|
|
6585
|
+
* ```
|
|
6586
|
+
*
|
|
6587
|
+
* @see https://payloadcms.com/docs/uploads/storage-adapters
|
|
6588
|
+
*/
|
|
6589
|
+
storage?: StorageAdapter[];
|
|
6572
6590
|
/** Send anonymous telemetry data about general usage. */
|
|
6573
6591
|
telemetry?: boolean;
|
|
6574
6592
|
/** Control how typescript interfaces are generated from your collections. */
|
|
@@ -6644,8 +6662,16 @@ type Config = {
|
|
|
6644
6662
|
*/
|
|
6645
6663
|
type SanitizedConfig = {
|
|
6646
6664
|
admin: {
|
|
6665
|
+
/**
|
|
6666
|
+
* `Required` (shallow) marks the top-level dashboard props as required, mainly `defaultLayout`,
|
|
6667
|
+
* which sanitizing always fills in. Do not switch this to the `DeepRequired` used below: it
|
|
6668
|
+
* recurses into the widgets and re-expands the whole `Field` type (a large self-referencing
|
|
6669
|
+
* union), which is very expensive to check. Never run a `Field`-bearing type through
|
|
6670
|
+
* `DeepRequired`.
|
|
6671
|
+
*/
|
|
6672
|
+
dashboard: Required<NonNullable<NonNullable<Config['admin']>['dashboard']>>;
|
|
6647
6673
|
timezones: SanitizedTimezoneConfig;
|
|
6648
|
-
} & DeepRequired<Config['admin']
|
|
6674
|
+
} & DeepRequired<Omit<NonNullable<Config['admin']>, 'dashboard'>>;
|
|
6649
6675
|
blocks?: FlattenedBlock[];
|
|
6650
6676
|
collections: SanitizedCollectionConfig[];
|
|
6651
6677
|
/** Default richtext editor to use for richText fields */
|
|
@@ -6660,13 +6686,14 @@ type SanitizedConfig = {
|
|
|
6660
6686
|
configDir: string;
|
|
6661
6687
|
rawConfig: string;
|
|
6662
6688
|
};
|
|
6689
|
+
storage: StorageAdapter[];
|
|
6663
6690
|
upload: {
|
|
6664
6691
|
/**
|
|
6665
6692
|
* Deduped list of adapters used in the project
|
|
6666
6693
|
*/
|
|
6667
6694
|
adapters: string[];
|
|
6668
6695
|
} & FetchAPIFileUploadOptions;
|
|
6669
|
-
} & Omit<DeepRequired<Config>, 'admin' | 'blocks' | 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'jobs' | 'localization' | 'upload'>;
|
|
6696
|
+
} & Omit<DeepRequired<Config>, 'admin' | 'blocks' | 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'jobs' | 'localization' | 'storage' | 'upload'>;
|
|
6670
6697
|
type EditConfig = EditConfigWithoutRoot | EditConfigWithRoot;
|
|
6671
6698
|
/**
|
|
6672
6699
|
* 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.
|
|
@@ -6708,6 +6735,99 @@ type EditConfigWithoutRoot = {
|
|
|
6708
6735
|
versions?: DefaultDocumentViewConfig;
|
|
6709
6736
|
};
|
|
6710
6737
|
type EntityDescriptionComponent = CustomComponent;
|
|
6738
|
+
/**
|
|
6739
|
+
* Custom components rendered within the Edit View.
|
|
6740
|
+
* Shared by Collection and Global configs.
|
|
6741
|
+
*/
|
|
6742
|
+
type SharedEditViewComponents = {
|
|
6743
|
+
/**
|
|
6744
|
+
* Inject custom components before the document controls
|
|
6745
|
+
*/
|
|
6746
|
+
beforeDocumentControls?: CustomComponent[];
|
|
6747
|
+
/**
|
|
6748
|
+
* Inject custom components before the document metadata (left of status/timestamps)
|
|
6749
|
+
*/
|
|
6750
|
+
BeforeDocumentMeta?: CustomComponent[];
|
|
6751
|
+
/**
|
|
6752
|
+
* Inject custom components within the 3-dot menu dropdown
|
|
6753
|
+
*/
|
|
6754
|
+
editMenuItems?: CustomComponent[];
|
|
6755
|
+
/**
|
|
6756
|
+
* Replaces the "Preview" button
|
|
6757
|
+
*/
|
|
6758
|
+
PreviewButton?: CustomComponent;
|
|
6759
|
+
/**
|
|
6760
|
+
* Replaces the "Publish" button
|
|
6761
|
+
* + drafts must be enabled
|
|
6762
|
+
*/
|
|
6763
|
+
PublishButton?: PayloadComponent<PublishButtonServerProps, PublishButtonClientProps>;
|
|
6764
|
+
/**
|
|
6765
|
+
* Replaces the "Save" button
|
|
6766
|
+
* + drafts must be disabled
|
|
6767
|
+
*/
|
|
6768
|
+
SaveButton?: CustomComponent;
|
|
6769
|
+
/**
|
|
6770
|
+
* Replaces the "Save Draft" button
|
|
6771
|
+
* + drafts must be enabled
|
|
6772
|
+
* + autosave must be disabled
|
|
6773
|
+
*/
|
|
6774
|
+
SaveDraftButton?: CustomComponent;
|
|
6775
|
+
/**
|
|
6776
|
+
* Replaces the "Status" section
|
|
6777
|
+
*/
|
|
6778
|
+
Status?: CustomStatus;
|
|
6779
|
+
/**
|
|
6780
|
+
* Replaces the "Unpublish" button
|
|
6781
|
+
* + drafts must be enabled
|
|
6782
|
+
*/
|
|
6783
|
+
UnpublishButton?: PayloadComponent<UnpublishButtonServerProps, UnpublishButtonClientProps>;
|
|
6784
|
+
};
|
|
6785
|
+
/**
|
|
6786
|
+
* Custom views object shared by Collection and Global configs.
|
|
6787
|
+
* Allows custom view keys (matched by path) alongside the document `edit` view.
|
|
6788
|
+
*/
|
|
6789
|
+
type SharedEntityViews = {
|
|
6790
|
+
/**
|
|
6791
|
+
* Add custom views.
|
|
6792
|
+
* Any additional keys define custom views that are matched by path and rendered at the entity level.
|
|
6793
|
+
* @link https://payloadcms.com/docs/custom-components/custom-views
|
|
6794
|
+
* @example
|
|
6795
|
+
* ```ts
|
|
6796
|
+
* views: {
|
|
6797
|
+
* audit: {
|
|
6798
|
+
* Component: '/path/to/AuditView',
|
|
6799
|
+
* path: '/audit',
|
|
6800
|
+
* exact: true,
|
|
6801
|
+
* }
|
|
6802
|
+
* }
|
|
6803
|
+
* ```
|
|
6804
|
+
*/
|
|
6805
|
+
[key: string]: {
|
|
6806
|
+
actions?: CustomComponent[];
|
|
6807
|
+
Component?: PayloadComponent;
|
|
6808
|
+
} | AdminViewConfig | EditConfig | undefined;
|
|
6809
|
+
/**
|
|
6810
|
+
* Replace, modify, or add new "document" views.
|
|
6811
|
+
* @link https://payloadcms.com/docs/custom-components/document-views
|
|
6812
|
+
*/
|
|
6813
|
+
edit?: EditConfig;
|
|
6814
|
+
};
|
|
6815
|
+
/**
|
|
6816
|
+
* Admin component slots shared by Collection and Global configs.
|
|
6817
|
+
* Collection extends this with list-only slots and `edit.Upload`; Global uses it as-is.
|
|
6818
|
+
*/
|
|
6819
|
+
type SharedAdminComponents = {
|
|
6820
|
+
/**
|
|
6821
|
+
* Custom Description component for the entity. Rendered in the Edit View
|
|
6822
|
+
* (and List View for Collections).
|
|
6823
|
+
*/
|
|
6824
|
+
Description?: EntityDescriptionComponent;
|
|
6825
|
+
/**
|
|
6826
|
+
* Components within the edit view
|
|
6827
|
+
*/
|
|
6828
|
+
edit?: SharedEditViewComponents;
|
|
6829
|
+
views?: SharedEntityViews;
|
|
6830
|
+
};
|
|
6711
6831
|
type EntityDescriptionFunction = ({ t }: {
|
|
6712
6832
|
t: TFunction;
|
|
6713
6833
|
}) => string;
|
|
@@ -7006,6 +7126,7 @@ type EditMenuItemsServerPropsOnly = {} & ServerProps;
|
|
|
7006
7126
|
type EditMenuItemsServerProps = EditMenuItemsClientProps & EditMenuItemsServerPropsOnly;
|
|
7007
7127
|
|
|
7008
7128
|
type NavPreferences = {
|
|
7129
|
+
activeTab?: string;
|
|
7009
7130
|
groups: NavGroupPreferences;
|
|
7010
7131
|
open: boolean;
|
|
7011
7132
|
};
|
|
@@ -7014,6 +7135,14 @@ type NavGroupPreferences = {
|
|
|
7014
7135
|
open: boolean;
|
|
7015
7136
|
};
|
|
7016
7137
|
};
|
|
7138
|
+
type SidebarTabClientProps = {
|
|
7139
|
+
documentSubViewType?: DocumentSubViewTypes;
|
|
7140
|
+
viewType?: ViewTypes;
|
|
7141
|
+
};
|
|
7142
|
+
type SidebarTabServerPropsOnly = {
|
|
7143
|
+
req?: PayloadRequest;
|
|
7144
|
+
} & ServerProps;
|
|
7145
|
+
type SidebarTabServerProps = SidebarTabClientProps & SidebarTabServerPropsOnly;
|
|
7017
7146
|
|
|
7018
7147
|
type PreviewButtonClientProps = {};
|
|
7019
7148
|
type PreviewButtonServerPropsOnly = {} & ServerProps;
|
|
@@ -7041,6 +7170,7 @@ type Column = {
|
|
|
7041
7170
|
readonly CustomLabel?: React.ReactNode;
|
|
7042
7171
|
readonly field: ClientField;
|
|
7043
7172
|
readonly Heading: React.ReactNode;
|
|
7173
|
+
readonly isLinkedColumn?: boolean;
|
|
7044
7174
|
readonly renderedCells: React.ReactNode[];
|
|
7045
7175
|
};
|
|
7046
7176
|
|
|
@@ -7723,43 +7853,6 @@ type BuildTableStateArgs = {
|
|
|
7723
7853
|
renderRowTypes?: boolean;
|
|
7724
7854
|
tableAppearance?: 'condensed' | 'default';
|
|
7725
7855
|
};
|
|
7726
|
-
type BuildCollectionFolderViewResult = {
|
|
7727
|
-
View: React.ReactNode;
|
|
7728
|
-
};
|
|
7729
|
-
type GetFolderResultsComponentAndDataArgs = {
|
|
7730
|
-
/**
|
|
7731
|
-
* If true and no folderID is provided, only folders will be returned.
|
|
7732
|
-
* If false, the results will include documents from the active collections.
|
|
7733
|
-
*/
|
|
7734
|
-
browseByFolder: boolean;
|
|
7735
|
-
/**
|
|
7736
|
-
* Used to filter document types to include in the results/display.
|
|
7737
|
-
*
|
|
7738
|
-
* i.e. ['folders', 'posts'] will only include folders and posts in the results.
|
|
7739
|
-
*
|
|
7740
|
-
* collectionsToQuery?
|
|
7741
|
-
*/
|
|
7742
|
-
collectionsToDisplay: CollectionSlug[];
|
|
7743
|
-
/**
|
|
7744
|
-
* Used to determine how the results should be displayed.
|
|
7745
|
-
*/
|
|
7746
|
-
displayAs: 'grid' | 'list';
|
|
7747
|
-
/**
|
|
7748
|
-
* Used to filter folders by the collections they are assigned to.
|
|
7749
|
-
*
|
|
7750
|
-
* i.e. ['posts'] will only include folders that are assigned to the posts collections.
|
|
7751
|
-
*/
|
|
7752
|
-
folderAssignedCollections: CollectionSlug[];
|
|
7753
|
-
/**
|
|
7754
|
-
* The ID of the folder to filter results by.
|
|
7755
|
-
*/
|
|
7756
|
-
folderID: number | string | undefined;
|
|
7757
|
-
req: PayloadRequest;
|
|
7758
|
-
/**
|
|
7759
|
-
* The sort order for the results.
|
|
7760
|
-
*/
|
|
7761
|
-
sort: FolderSortKeys;
|
|
7762
|
-
};
|
|
7763
7856
|
type SlugifyServerFunctionArgs = {
|
|
7764
7857
|
collectionSlug?: CollectionSlug;
|
|
7765
7858
|
globalSlug?: GlobalSlug;
|
|
@@ -7785,63 +7878,49 @@ type WidgetServerProps<TWidget extends {
|
|
|
7785
7878
|
widgetSlug: [TWidget] extends [never] ? string : [WidgetSlugFromWidget<{
|
|
7786
7879
|
data?: unknown;
|
|
7787
7880
|
} & Exclude<TWidget, never>>] extends [never] ? string : WidgetSlugFromWidget<{
|
|
7788
|
-
data?: unknown;
|
|
7789
|
-
} & Exclude<TWidget, never>>;
|
|
7790
|
-
} & Pick<InitReqResult, 'cookies' | 'locale' | 'permissions' | 'req'>;
|
|
7791
|
-
|
|
7792
|
-
type
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
};
|
|
7800
|
-
type FolderListViewServerPropsOnly = {
|
|
7801
|
-
collectionConfig: SanitizedCollectionConfig;
|
|
7802
|
-
documents: FolderOrDocument[];
|
|
7803
|
-
subfolders: FolderOrDocument[];
|
|
7804
|
-
} & ServerProps;
|
|
7805
|
-
type FolderListViewServerProps = FolderListViewClientProps & FolderListViewServerPropsOnly;
|
|
7806
|
-
type FolderListViewClientProps = {
|
|
7807
|
-
activeCollectionFolderSlugs?: SanitizedCollectionConfig['slug'][];
|
|
7808
|
-
allCollectionFolderSlugs: SanitizedCollectionConfig['slug'][];
|
|
7809
|
-
allowCreateCollectionSlugs: SanitizedCollectionConfig['slug'][];
|
|
7810
|
-
baseFolderPath: `/${string}`;
|
|
7811
|
-
beforeActions?: React.ReactNode[];
|
|
7812
|
-
breadcrumbs: FolderBreadcrumb[];
|
|
7813
|
-
collectionSlug?: SanitizedCollectionConfig['slug'];
|
|
7814
|
-
disableBulkDelete?: boolean;
|
|
7815
|
-
disableBulkEdit?: boolean;
|
|
7816
|
-
documents: FolderOrDocument[];
|
|
7817
|
-
enableRowSelections?: boolean;
|
|
7818
|
-
folderAssignedCollections?: SanitizedCollectionConfig['slug'][];
|
|
7819
|
-
folderFieldName: string;
|
|
7820
|
-
folderID: null | number | string;
|
|
7821
|
-
FolderResultsComponent: React.ReactNode;
|
|
7822
|
-
search?: string;
|
|
7823
|
-
sort?: FolderSortKeys;
|
|
7824
|
-
subfolders: FolderOrDocument[];
|
|
7825
|
-
viewPreference: 'grid' | 'list';
|
|
7826
|
-
} & FolderListViewSlots;
|
|
7827
|
-
type FolderListViewSlotSharedClientProps = {
|
|
7828
|
-
collectionSlug: SanitizedCollectionConfig['slug'];
|
|
7829
|
-
hasCreatePermission: boolean;
|
|
7830
|
-
newDocumentURL: string;
|
|
7881
|
+
data?: unknown;
|
|
7882
|
+
} & Exclude<TWidget, never>>;
|
|
7883
|
+
} & Pick<InitReqResult, 'cookies' | 'locale' | 'permissions' | 'req'>;
|
|
7884
|
+
|
|
7885
|
+
type RelatedDocumentsGrouped = {
|
|
7886
|
+
[collectionSlug: string]: {
|
|
7887
|
+
fieldName: string;
|
|
7888
|
+
hasMany: boolean;
|
|
7889
|
+
label: string;
|
|
7890
|
+
result: PaginatedDocs;
|
|
7891
|
+
};
|
|
7831
7892
|
};
|
|
7832
|
-
type BeforeFolderListClientProps = FolderListViewSlotSharedClientProps;
|
|
7833
|
-
type BeforeFolderListServerPropsOnly = {} & FolderListViewServerPropsOnly;
|
|
7834
|
-
type BeforeFolderListServerProps = BeforeFolderListClientProps & BeforeFolderListServerPropsOnly;
|
|
7835
|
-
type BeforeFolderListTableClientProps = FolderListViewSlotSharedClientProps;
|
|
7836
|
-
type BeforeFolderListTableServerPropsOnly = {} & FolderListViewServerPropsOnly;
|
|
7837
|
-
type BeforeFolderListTableServerProps = BeforeFolderListTableClientProps & BeforeFolderListTableServerPropsOnly;
|
|
7838
|
-
type AfterFolderListClientProps = FolderListViewSlotSharedClientProps;
|
|
7839
|
-
type AfterFolderListServerPropsOnly = {} & FolderListViewServerPropsOnly;
|
|
7840
|
-
type AfterFolderListServerProps = AfterFolderListClientProps & AfterFolderListServerPropsOnly;
|
|
7841
|
-
type AfterFolderListTableClientProps = FolderListViewSlotSharedClientProps;
|
|
7842
|
-
type AfterFolderListTableServerPropsOnly = {} & FolderListViewServerPropsOnly;
|
|
7843
|
-
type AfterFolderListTableServerProps = AfterFolderListTableClientProps & AfterFolderListTableServerPropsOnly;
|
|
7844
7893
|
|
|
7894
|
+
type HierarchyViewData = {
|
|
7895
|
+
/**
|
|
7896
|
+
* Collections allowed for creation based on parent's collectionSpecific field.
|
|
7897
|
+
* Undefined means all related collections are allowed.
|
|
7898
|
+
* Always includes the hierarchy collection itself.
|
|
7899
|
+
*/
|
|
7900
|
+
allowedCollections?: Array<{
|
|
7901
|
+
label: string;
|
|
7902
|
+
slug: string;
|
|
7903
|
+
}>;
|
|
7904
|
+
/** Base filter applied to hierarchy collection queries (e.g., tenant filter) */
|
|
7905
|
+
baseFilter?: Where;
|
|
7906
|
+
/** Breadcrumb trail to the current parent */
|
|
7907
|
+
breadcrumbs: Array<{
|
|
7908
|
+
id: number | string;
|
|
7909
|
+
title: string;
|
|
7910
|
+
}>;
|
|
7911
|
+
/** Children of the current parent (same collection) */
|
|
7912
|
+
childrenData: PaginatedDocs;
|
|
7913
|
+
/** The current parent document data (for display and collectionSpecific field access) */
|
|
7914
|
+
parent: null | (Record<string, unknown> & TypeWithID);
|
|
7915
|
+
/** The parent field name for building queries */
|
|
7916
|
+
parentFieldName: string;
|
|
7917
|
+
/** The parent ID being viewed */
|
|
7918
|
+
parentId: null | number | string;
|
|
7919
|
+
/** Base filters for related collections (keyed by collection slug) */
|
|
7920
|
+
relatedBaseFilters?: Record<string, Where>;
|
|
7921
|
+
/** Related documents grouped by collection */
|
|
7922
|
+
relatedDocumentsByCollection: RelatedDocumentsGrouped;
|
|
7923
|
+
};
|
|
7845
7924
|
type ListViewSlots = {
|
|
7846
7925
|
AfterList?: React.ReactNode;
|
|
7847
7926
|
AfterListTable?: React.ReactNode;
|
|
@@ -7866,6 +7945,7 @@ type ListViewServerPropsOnly = {
|
|
|
7866
7945
|
} & ServerProps;
|
|
7867
7946
|
type ListViewServerProps = ListViewClientProps & ListViewServerPropsOnly;
|
|
7868
7947
|
type ListViewClientProps = {
|
|
7948
|
+
baseFilter?: Where;
|
|
7869
7949
|
beforeActions?: React.ReactNode[];
|
|
7870
7950
|
collectionSlug: SanitizedCollectionConfig['slug'];
|
|
7871
7951
|
columnState: Column[];
|
|
@@ -7876,6 +7956,18 @@ type ListViewClientProps = {
|
|
|
7876
7956
|
hasCreatePermission: boolean;
|
|
7877
7957
|
hasDeletePermission?: boolean;
|
|
7878
7958
|
hasTrashPermission?: boolean;
|
|
7959
|
+
/**
|
|
7960
|
+
* Hierarchy view data - present when viewing a hierarchy collection with a parent selected
|
|
7961
|
+
*/
|
|
7962
|
+
hierarchyData?: HierarchyViewData;
|
|
7963
|
+
/**
|
|
7964
|
+
* Resolved full-size icon component for hierarchy collections (used in drawer subheader)
|
|
7965
|
+
*/
|
|
7966
|
+
HierarchyIcon?: React.ReactNode;
|
|
7967
|
+
/**
|
|
7968
|
+
* Resolved small icon component for hierarchy collections (used in table rows)
|
|
7969
|
+
*/
|
|
7970
|
+
HierarchySmallIcon?: React.ReactNode;
|
|
7879
7971
|
/**
|
|
7880
7972
|
* @deprecated
|
|
7881
7973
|
*/
|
|
@@ -7974,6 +8066,7 @@ type FieldRow = {
|
|
|
7974
8066
|
};
|
|
7975
8067
|
type DocumentSlots = {
|
|
7976
8068
|
BeforeDocumentControls?: React$1.ReactNode;
|
|
8069
|
+
BeforeDocumentMeta?: React$1.ReactNode;
|
|
7977
8070
|
Description?: React$1.ReactNode;
|
|
7978
8071
|
EditMenuItems?: React$1.ReactNode;
|
|
7979
8072
|
LivePreview?: React$1.ReactNode;
|
|
@@ -8057,17 +8150,9 @@ type FileSize = {
|
|
|
8057
8150
|
filesize: null | number;
|
|
8058
8151
|
height: null | number;
|
|
8059
8152
|
mimeType: null | string;
|
|
8060
|
-
url
|
|
8153
|
+
url: null | string;
|
|
8061
8154
|
width: null | number;
|
|
8062
8155
|
};
|
|
8063
|
-
/**
|
|
8064
|
-
* FileSizeImproved is a more precise type, and will replace FileSize in Payload v4.
|
|
8065
|
-
* This type is for internal use only as it will be deprecated in the future.
|
|
8066
|
-
* @internal
|
|
8067
|
-
*/
|
|
8068
|
-
type FileSizeImproved = {
|
|
8069
|
-
url: null | string;
|
|
8070
|
-
} & FileSize;
|
|
8071
8156
|
type FileSizes = {
|
|
8072
8157
|
[size: string]: FileSize;
|
|
8073
8158
|
};
|
|
@@ -8110,30 +8195,21 @@ type GenerateImageName = (args: {
|
|
|
8110
8195
|
type ImageSize = {
|
|
8111
8196
|
/**
|
|
8112
8197
|
* Admin UI options that control how this image size appears in list views.
|
|
8113
|
-
*
|
|
8114
|
-
* NOTE: In Payload v4, these options (`disableGroupBy`, `disableListColumn` and `disableListFilter`)
|
|
8115
|
-
* should default to `true` so image size subfields are hidden from list columns
|
|
8116
|
-
* and filters by default, reducing noise in the admin UI.
|
|
8117
8198
|
*/
|
|
8118
8199
|
admin?: {
|
|
8119
8200
|
/**
|
|
8120
|
-
*
|
|
8121
|
-
*
|
|
8122
|
-
*
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
* If set to true, this image size will not be available
|
|
8127
|
-
* as a selectable column in the collection list view.
|
|
8128
|
-
* @default false
|
|
8129
|
-
*/
|
|
8130
|
-
disableListColumn?: boolean;
|
|
8131
|
-
/**
|
|
8132
|
-
* If set to true, this image size will not be available
|
|
8133
|
-
* as a filter option in the collection list view.
|
|
8134
|
-
* @default false
|
|
8201
|
+
* Controls visibility of this image size in the collection list view.
|
|
8202
|
+
* Defaults to hiding the image size from columns, filters, and group-by to reduce noise.
|
|
8203
|
+
*
|
|
8204
|
+
* - `column` — whether to hide this size from selectable list columns. @default false
|
|
8205
|
+
* - `filter` — whether to hide this size from filter options. @default false
|
|
8206
|
+
* - `groupBy` — whether to hide this size from group-by options. @default false
|
|
8135
8207
|
*/
|
|
8136
|
-
|
|
8208
|
+
disabled?: {
|
|
8209
|
+
column?: boolean;
|
|
8210
|
+
filter?: boolean;
|
|
8211
|
+
groupBy?: boolean;
|
|
8212
|
+
};
|
|
8137
8213
|
};
|
|
8138
8214
|
/**
|
|
8139
8215
|
* @deprecated prefer position
|
|
@@ -9255,6 +9331,36 @@ type AfterForgotPasswordHook = (args: {
|
|
|
9255
9331
|
collection: SanitizedCollectionConfig;
|
|
9256
9332
|
context: RequestContext;
|
|
9257
9333
|
}) => any;
|
|
9334
|
+
/**
|
|
9335
|
+
* Configuration options for folder hierarchy preset.
|
|
9336
|
+
* Subset of HierarchyConfig with folder-appropriate defaults applied.
|
|
9337
|
+
*/
|
|
9338
|
+
type FoldersConfig = {
|
|
9339
|
+
admin?: {
|
|
9340
|
+
components?: {
|
|
9341
|
+
Icon?: PayloadComponent;
|
|
9342
|
+
};
|
|
9343
|
+
injectSidebarTab?: boolean;
|
|
9344
|
+
treeLimit?: number;
|
|
9345
|
+
useHeaderButton?: boolean;
|
|
9346
|
+
};
|
|
9347
|
+
collectionSpecific?: {
|
|
9348
|
+
fieldName?: string;
|
|
9349
|
+
} | boolean;
|
|
9350
|
+
joinField?: HierarchyJoinFieldConfig;
|
|
9351
|
+
parentFieldName?: string;
|
|
9352
|
+
slugField?: string;
|
|
9353
|
+
slugify?: (text: string) => string;
|
|
9354
|
+
slugPathFieldName?: string;
|
|
9355
|
+
titlePathFieldName?: string;
|
|
9356
|
+
};
|
|
9357
|
+
/**
|
|
9358
|
+
* Configuration options for tags hierarchy preset.
|
|
9359
|
+
* Same as FoldersConfig but allowHasMany can be overridden.
|
|
9360
|
+
*/
|
|
9361
|
+
type TagsConfig = {
|
|
9362
|
+
allowHasMany?: boolean;
|
|
9363
|
+
} & FoldersConfig;
|
|
9258
9364
|
type BaseFilter = (args: {
|
|
9259
9365
|
limit: number;
|
|
9260
9366
|
locale?: TypedLocale;
|
|
@@ -9295,80 +9401,18 @@ type CollectionAdminOptions = {
|
|
|
9295
9401
|
afterListTable?: CustomComponent[];
|
|
9296
9402
|
beforeList?: CustomComponent[];
|
|
9297
9403
|
beforeListTable?: CustomComponent[];
|
|
9298
|
-
Description?: EntityDescriptionComponent;
|
|
9299
9404
|
/**
|
|
9300
9405
|
* Components within the edit view
|
|
9301
9406
|
*/
|
|
9302
9407
|
edit?: {
|
|
9303
|
-
/**
|
|
9304
|
-
* Inject custom components before the document controls
|
|
9305
|
-
*/
|
|
9306
|
-
beforeDocumentControls?: CustomComponent[];
|
|
9307
|
-
/**
|
|
9308
|
-
* Inject custom components within the 3-dot menu dropdown
|
|
9309
|
-
*/
|
|
9310
|
-
editMenuItems?: CustomComponent[];
|
|
9311
|
-
/**
|
|
9312
|
-
* Replaces the "Preview" button
|
|
9313
|
-
*/
|
|
9314
|
-
PreviewButton?: CustomComponent;
|
|
9315
|
-
/**
|
|
9316
|
-
* Replaces the "Publish" button
|
|
9317
|
-
* + drafts must be enabled
|
|
9318
|
-
*/
|
|
9319
|
-
PublishButton?: PayloadComponent<PublishButtonServerProps, PublishButtonClientProps>;
|
|
9320
|
-
/**
|
|
9321
|
-
* Replaces the "Save" button
|
|
9322
|
-
* + drafts must be disabled
|
|
9323
|
-
*/
|
|
9324
|
-
SaveButton?: CustomComponent;
|
|
9325
|
-
/**
|
|
9326
|
-
* Replaces the "Save Draft" button
|
|
9327
|
-
* + drafts must be enabled
|
|
9328
|
-
* + autosave must be disabled
|
|
9329
|
-
*/
|
|
9330
|
-
SaveDraftButton?: CustomComponent;
|
|
9331
|
-
/**
|
|
9332
|
-
* Replaces the "Status" section
|
|
9333
|
-
*/
|
|
9334
|
-
Status?: CustomStatus;
|
|
9335
|
-
/**
|
|
9336
|
-
* Replaces the "Unpublish" button
|
|
9337
|
-
* + drafts must be enabled
|
|
9338
|
-
*/
|
|
9339
|
-
UnpublishButton?: PayloadComponent<UnpublishButtonServerProps, UnpublishButtonClientProps>;
|
|
9340
9408
|
/**
|
|
9341
9409
|
* Replaces the "Upload" section
|
|
9342
9410
|
* + upload must be enabled
|
|
9343
9411
|
*/
|
|
9344
9412
|
Upload?: CustomUpload;
|
|
9345
|
-
};
|
|
9413
|
+
} & SharedEditViewComponents;
|
|
9346
9414
|
listMenuItems?: CustomComponent[];
|
|
9347
9415
|
views?: {
|
|
9348
|
-
/**
|
|
9349
|
-
* Add custom collection views.
|
|
9350
|
-
* Any additional keys define custom collection views that are matched by path and rendered at the collection level.
|
|
9351
|
-
* @link https://payloadcms.com/docs/custom-components/custom-views
|
|
9352
|
-
* @example
|
|
9353
|
-
* ```ts
|
|
9354
|
-
* views: {
|
|
9355
|
-
* grid: {
|
|
9356
|
-
* Component: '/path/to/GridView',
|
|
9357
|
-
* path: '/grid',
|
|
9358
|
-
* exact: true,
|
|
9359
|
-
* }
|
|
9360
|
-
* }
|
|
9361
|
-
* ```
|
|
9362
|
-
*/
|
|
9363
|
-
[key: string]: {
|
|
9364
|
-
actions?: CustomComponent[];
|
|
9365
|
-
Component?: PayloadComponent;
|
|
9366
|
-
} | AdminViewConfig | EditConfig | undefined;
|
|
9367
|
-
/**
|
|
9368
|
-
* Replace, modify, or add new "document" views.
|
|
9369
|
-
* @link https://payloadcms.com/docs/custom-components/document-views
|
|
9370
|
-
*/
|
|
9371
|
-
edit?: EditConfig;
|
|
9372
9416
|
/**
|
|
9373
9417
|
* Replace or modify the "list" view.
|
|
9374
9418
|
* @link https://payloadcms.com/docs/custom-components/list-view
|
|
@@ -9377,8 +9421,8 @@ type CollectionAdminOptions = {
|
|
|
9377
9421
|
actions?: CustomComponent[];
|
|
9378
9422
|
Component?: PayloadComponent;
|
|
9379
9423
|
};
|
|
9380
|
-
};
|
|
9381
|
-
}
|
|
9424
|
+
} & SharedEntityViews;
|
|
9425
|
+
} & Omit<SharedAdminComponents, 'edit' | 'views'>;
|
|
9382
9426
|
/** Extension point to add your custom data. Available in server and client. */
|
|
9383
9427
|
custom?: CollectionAdminCustom;
|
|
9384
9428
|
/**
|
|
@@ -9394,15 +9438,6 @@ type CollectionAdminOptions = {
|
|
|
9394
9438
|
* @default false
|
|
9395
9439
|
*/
|
|
9396
9440
|
disableCopyToLocale?: boolean;
|
|
9397
|
-
/**
|
|
9398
|
-
* Performance opt-in. If true, will use the [Select API](https://payloadcms.com/docs/queries/select) when
|
|
9399
|
-
* loading the list view to query only the active columns, as opposed to the entire documents.
|
|
9400
|
-
* If your cells require specific fields that may be unselected, such as within hooks, etc.,
|
|
9401
|
-
* use `forceSelect` in conjunction with this property.
|
|
9402
|
-
*
|
|
9403
|
-
* @experimental This is an experimental feature and may change in the future. Use at your own risk.
|
|
9404
|
-
*/
|
|
9405
|
-
enableListViewSelectAPI?: boolean;
|
|
9406
9441
|
enableRichTextLink?: boolean;
|
|
9407
9442
|
enableRichTextRelationship?: boolean;
|
|
9408
9443
|
/**
|
|
@@ -9446,10 +9481,6 @@ type CollectionAdminOptions = {
|
|
|
9446
9481
|
hidden?: ((args: {
|
|
9447
9482
|
user: ClientUser;
|
|
9448
9483
|
}) => boolean) | boolean;
|
|
9449
|
-
/**
|
|
9450
|
-
* Hide the API URL within the Edit view
|
|
9451
|
-
*/
|
|
9452
|
-
hideAPIURL?: boolean;
|
|
9453
9484
|
/**
|
|
9454
9485
|
* Additional fields to be searched via the full text search
|
|
9455
9486
|
*/
|
|
@@ -9539,13 +9570,13 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
|
|
|
9539
9570
|
endpoints?: false | Omit<Endpoint, 'root'>[];
|
|
9540
9571
|
fields: Field[];
|
|
9541
9572
|
/**
|
|
9542
|
-
*
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
*
|
|
9573
|
+
* Enable folder hierarchy preset for this collection.
|
|
9574
|
+
* Sets hierarchy with folder defaults: allowHasMany: false, FolderIcon, useHeaderButton: true
|
|
9575
|
+
*
|
|
9576
|
+
* Use `true` for defaults, or object for customization.
|
|
9577
|
+
* Cannot be used together with `tags` or `hierarchy`.
|
|
9547
9578
|
*/
|
|
9548
|
-
|
|
9579
|
+
folders?: boolean | FoldersConfig;
|
|
9549
9580
|
/**
|
|
9550
9581
|
* GraphQL configuration
|
|
9551
9582
|
*/
|
|
@@ -9555,6 +9586,25 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
|
|
|
9555
9586
|
pluralName?: string;
|
|
9556
9587
|
singularName?: string;
|
|
9557
9588
|
} | false;
|
|
9589
|
+
/**
|
|
9590
|
+
* Enable hierarchical tree structure for this collection
|
|
9591
|
+
*
|
|
9592
|
+
* Use `true` to enable with defaults (auto-detects parent field)
|
|
9593
|
+
* or provide configuration object
|
|
9594
|
+
*
|
|
9595
|
+
* @example
|
|
9596
|
+
* // Enable with defaults
|
|
9597
|
+
* hierarchy: true
|
|
9598
|
+
*
|
|
9599
|
+
* @example
|
|
9600
|
+
* // Customize field names and slugify function
|
|
9601
|
+
* hierarchy: {
|
|
9602
|
+
* parentFieldName: 'parent',
|
|
9603
|
+
* slugify: (text) => customSlugify(text),
|
|
9604
|
+
* slugPathFieldName: '_breadcrumbPath'
|
|
9605
|
+
* }
|
|
9606
|
+
*/
|
|
9607
|
+
hierarchy?: boolean | HierarchyConfig;
|
|
9558
9608
|
/**
|
|
9559
9609
|
* Hooks to modify Payload functionality
|
|
9560
9610
|
*/
|
|
@@ -9625,6 +9675,14 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
|
|
|
9625
9675
|
*/
|
|
9626
9676
|
orderable?: boolean;
|
|
9627
9677
|
slug: string;
|
|
9678
|
+
/**
|
|
9679
|
+
* Enable tags hierarchy preset for this collection.
|
|
9680
|
+
* Sets hierarchy with tag defaults: allowHasMany: true, TagIcon
|
|
9681
|
+
*
|
|
9682
|
+
* Use `true` for defaults, or object for customization.
|
|
9683
|
+
* Cannot be used together with `folders` or `hierarchy`.
|
|
9684
|
+
*/
|
|
9685
|
+
tags?: boolean | TagsConfig;
|
|
9628
9686
|
/**
|
|
9629
9687
|
* Add `createdAt`, `deletedAt` and `updatedAt` fields
|
|
9630
9688
|
*
|
|
@@ -9664,7 +9722,7 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
|
|
|
9664
9722
|
* @default false // disable versioning
|
|
9665
9723
|
*/
|
|
9666
9724
|
versions?: boolean | IncomingCollectionVersions;
|
|
9667
|
-
}
|
|
9725
|
+
} & Pick<WithSelectFn<IsAny$1<SelectFromCollectionSlug<TSlug>> extends true ? SelectIncludeType : SelectFromCollectionSlug<TSlug>>, 'select'>;
|
|
9668
9726
|
type SanitizedJoin = {
|
|
9669
9727
|
/**
|
|
9670
9728
|
* The field configuration defining the join
|
|
@@ -9691,7 +9749,7 @@ type SanitizedJoins = {
|
|
|
9691
9749
|
* @todo remove the `DeepRequired` in v4.
|
|
9692
9750
|
* We don't actually guarantee that all properties are set when sanitizing configs.
|
|
9693
9751
|
*/
|
|
9694
|
-
interface SanitizedCollectionConfig extends Omit<DeepRequired<CollectionConfig>, 'admin' | 'auth' | 'endpoints' | 'fields' | 'folders' | 'slug' | 'upload' | 'versions'> {
|
|
9752
|
+
interface SanitizedCollectionConfig extends Omit<DeepRequired<CollectionConfig>, 'admin' | 'auth' | 'endpoints' | 'fields' | 'folder' | 'folders' | 'hierarchy' | 'slug' | 'tags' | 'upload' | 'versions'> {
|
|
9695
9753
|
admin: CollectionAdminOptions;
|
|
9696
9754
|
auth: Auth;
|
|
9697
9755
|
endpoints: Endpoint[] | false;
|
|
@@ -9701,10 +9759,13 @@ interface SanitizedCollectionConfig extends Omit<DeepRequired<CollectionConfig>,
|
|
|
9701
9759
|
* Rows / collapsible / tabs w/o name `fields` merged to top, UIs are excluded
|
|
9702
9760
|
*/
|
|
9703
9761
|
flattenedFields: FlattenedField$1[];
|
|
9762
|
+
/**
|
|
9763
|
+
* Hierarchy configuration (when collection is a hierarchy type like folders or tags)
|
|
9764
|
+
*/
|
|
9765
|
+
hierarchy: false | SanitizedHierarchyConfig;
|
|
9704
9766
|
/**
|
|
9705
9767
|
* Object of collections to join 'Join Fields object keyed by collection
|
|
9706
9768
|
*/
|
|
9707
|
-
folders: CollectionFoldersConfiguration | false;
|
|
9708
9769
|
joins: SanitizedJoins;
|
|
9709
9770
|
/**
|
|
9710
9771
|
* List of all polymorphic join fields
|
|
@@ -9813,6 +9874,15 @@ type CustomPayloadRequestProperties = {
|
|
|
9813
9874
|
* { collection: 'posts', id: '123' }
|
|
9814
9875
|
*/
|
|
9815
9876
|
routeParams?: Record<string, unknown>;
|
|
9877
|
+
/**
|
|
9878
|
+
* Framework abstraction for server-only navigation, cookies, and headers APIs.
|
|
9879
|
+
* Populated by the framework adapter (e.g. `@payloadcms/next`). Plugins that
|
|
9880
|
+
* have access to `req` should call methods here (`req.server.unauthorized()`,
|
|
9881
|
+
* `req.server.redirect(...)`) instead of importing from `next/navigation` or
|
|
9882
|
+
* `next/headers` directly. Optional because non-framework contexts (jobs,
|
|
9883
|
+
* scripts, tests) construct requests without a server adapter.
|
|
9884
|
+
*/
|
|
9885
|
+
server?: ServerAdapter;
|
|
9816
9886
|
/** Translate function - duplicate of i18n.t */
|
|
9817
9887
|
t: TFunction;
|
|
9818
9888
|
/**
|
|
@@ -9820,11 +9890,6 @@ type CustomPayloadRequestProperties = {
|
|
|
9820
9890
|
* Can also be used to ensure consistency when multiple operations try to create a transaction concurrently on the same request.
|
|
9821
9891
|
*/
|
|
9822
9892
|
transactionID?: number | Promise<number | string> | string;
|
|
9823
|
-
/**
|
|
9824
|
-
* Used to ensure consistency when multiple operations try to create a transaction concurrently on the same request
|
|
9825
|
-
* @deprecated This is not used anywhere, instead `transactionID` is used for the above. Will be removed in next major version.
|
|
9826
|
-
*/
|
|
9827
|
-
transactionIDPromise?: Promise<void>;
|
|
9828
9893
|
/** The signed-in user */
|
|
9829
9894
|
user: null | TypedUser;
|
|
9830
9895
|
} & Pick<URL, 'hash' | 'host' | 'href' | 'origin' | 'pathname' | 'port' | 'protocol' | 'search' | 'searchParams'>;
|
|
@@ -9906,6 +9971,49 @@ type SelectExcludeType = {
|
|
|
9906
9971
|
};
|
|
9907
9972
|
type SelectMode = 'exclude' | 'include';
|
|
9908
9973
|
type SelectType = SelectExcludeType | SelectIncludeType;
|
|
9974
|
+
/**
|
|
9975
|
+
* Operations that invoke an entity-level `select` function.
|
|
9976
|
+
*
|
|
9977
|
+
* Narrower than `HookOperationType`: `select` runs only for read- and
|
|
9978
|
+
* write-path operations that materialize a document (`create`, `delete`,
|
|
9979
|
+
* `read`, `restoreVersion`, `update`). Operations like `autosave`, `count`,
|
|
9980
|
+
* `countVersions`, `forgotPassword`, `login`, `readDistinct`, `refresh`, and
|
|
9981
|
+
* `resetPassword` do not invoke `select` and are intentionally excluded.
|
|
9982
|
+
*/
|
|
9983
|
+
type SelectFnOperation = 'create' | 'delete' | 'read' | 'restoreVersion' | 'update';
|
|
9984
|
+
type SelectFnArgs = {
|
|
9985
|
+
operation: SelectFnOperation;
|
|
9986
|
+
req: PayloadRequest;
|
|
9987
|
+
/** The caller's `select` arg, or `undefined` if not provided. */
|
|
9988
|
+
select?: SelectType;
|
|
9989
|
+
};
|
|
9990
|
+
type SelectFn<TSelect extends SelectType = SelectType> = (args: SelectFnArgs) => TSelect | undefined;
|
|
9991
|
+
/**
|
|
9992
|
+
* Shared shape for the entity-level `select` config used by Collections and Globals.
|
|
9993
|
+
* The JSDoc on the `select` property is the single source of truth — pick from this
|
|
9994
|
+
* type when defining the config:
|
|
9995
|
+
*
|
|
9996
|
+
* & Pick<WithSelectFn<...>, 'select'>
|
|
9997
|
+
*/
|
|
9998
|
+
type WithSelectFn<TSelect extends SelectType = SelectType> = {
|
|
9999
|
+
/**
|
|
10000
|
+
* Entity-level Select API configuration.
|
|
10001
|
+
*
|
|
10002
|
+
* A function that receives the current request context (`operation`, `req`,
|
|
10003
|
+
* the caller's `select`) and returns the final `select` to apply, replacing
|
|
10004
|
+
* the caller's. Return `undefined` to leave the caller's `select` unchanged.
|
|
10005
|
+
*
|
|
10006
|
+
* Useful to dynamically modify the caller's selection based on the request context:
|
|
10007
|
+
* - Forcing a field to be populated for reference within hooks / access control.
|
|
10008
|
+
* - Differentiating between API requests and admin panel requests, to optimize
|
|
10009
|
+
* the amount of data being queried in each case.
|
|
10010
|
+
*
|
|
10011
|
+
* Note: per-document data is not available — this runs before the read.
|
|
10012
|
+
*
|
|
10013
|
+
* @see https://payloadcms.com/docs/queries/select
|
|
10014
|
+
*/
|
|
10015
|
+
select?: SelectFn<TSelect>;
|
|
10016
|
+
};
|
|
9909
10017
|
type ApplyDisableErrors<T, DisableErrors = false> = false extends DisableErrors ? T : null | T;
|
|
9910
10018
|
type TransformDataWithSelect<Data extends Record<string, any>, Select extends SelectType> = Select extends never ? Data : string extends keyof Select ? Data : string extends keyof Omit<Data, 'id'> ? Select extends SelectIncludeType ? {
|
|
9911
10019
|
[K in Data extends TypeWithID ? 'id' | keyof Select : keyof Select]: K extends 'id' ? number | string : unknown;
|
|
@@ -10057,6 +10165,61 @@ type Options$c<TSlug extends AuthCollectionSlug> = {
|
|
|
10057
10165
|
token: string;
|
|
10058
10166
|
};
|
|
10059
10167
|
|
|
10168
|
+
/**
|
|
10169
|
+
* Client-side router adapter to abstract away framework-specific routing implementations.
|
|
10170
|
+
* This way plugins and server components can use server-only APIs without directly importing any framework-specific modules.
|
|
10171
|
+
*
|
|
10172
|
+
* @example
|
|
10173
|
+
* ```tsx
|
|
10174
|
+
* // Next.js router adapter (simplified):
|
|
10175
|
+
* import { useRouter as useNextRouter, usePathname as useNextPathname } from 'next/navigation'
|
|
10176
|
+
*
|
|
10177
|
+
* const NextRouterAdapter: RouterAdapterComponent = ({ children }) => {
|
|
10178
|
+
* const router = useNextRouter()
|
|
10179
|
+
* const pathname = useNextPathname()
|
|
10180
|
+
*
|
|
10181
|
+
* return (
|
|
10182
|
+
* <RouterAdapterContext value={{ router, pathname, ... }}>
|
|
10183
|
+
* {children}
|
|
10184
|
+
* </RouterAdapterContext>
|
|
10185
|
+
* )
|
|
10186
|
+
* }
|
|
10187
|
+
* ```
|
|
10188
|
+
*/
|
|
10189
|
+
type RouterAdapterComponent = React$1.ComponentType<{
|
|
10190
|
+
children: React$1.ReactNode;
|
|
10191
|
+
}>;
|
|
10192
|
+
type RouterAdapterRouter = {
|
|
10193
|
+
/**
|
|
10194
|
+
* Navigate back to the previous page in the history stack.
|
|
10195
|
+
*/
|
|
10196
|
+
back: () => void;
|
|
10197
|
+
/**
|
|
10198
|
+
* Navigate to a new path.
|
|
10199
|
+
*/
|
|
10200
|
+
push: (path: string, options?: {
|
|
10201
|
+
scroll?: boolean;
|
|
10202
|
+
}) => void;
|
|
10203
|
+
/**
|
|
10204
|
+
* Refresh the current route.
|
|
10205
|
+
*/
|
|
10206
|
+
refresh: () => void;
|
|
10207
|
+
/**
|
|
10208
|
+
* Replace the current path with a new one.
|
|
10209
|
+
*/
|
|
10210
|
+
replace: (path: string, options?: {
|
|
10211
|
+
scroll?: boolean;
|
|
10212
|
+
}) => void;
|
|
10213
|
+
};
|
|
10214
|
+
type LinkAdapterProps = {
|
|
10215
|
+
children?: React$1.ReactNode;
|
|
10216
|
+
href: string;
|
|
10217
|
+
prefetch?: boolean;
|
|
10218
|
+
ref?: React$1.Ref<HTMLAnchorElement>;
|
|
10219
|
+
replace?: boolean;
|
|
10220
|
+
scroll?: boolean;
|
|
10221
|
+
} & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
|
|
10222
|
+
|
|
10060
10223
|
type CountOptions<TSlug extends CollectionSlug> = {
|
|
10061
10224
|
/**
|
|
10062
10225
|
* the Collection slug to operate against.
|
|
@@ -11322,6 +11485,8 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
|
11322
11485
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11323
11486
|
type Options<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11324
11487
|
|
|
11488
|
+
declare const accountLockFields: Field[];
|
|
11489
|
+
|
|
11325
11490
|
// Generated by dts-bundle-generator v9.5.1
|
|
11326
11491
|
|
|
11327
11492
|
/**
|
|
@@ -12100,8 +12265,6 @@ type CountVersionsOptions<TSlug extends CollectionSlug> = {
|
|
|
12100
12265
|
where?: Where;
|
|
12101
12266
|
};
|
|
12102
12267
|
|
|
12103
|
-
declare const accountLockFields: Field[];
|
|
12104
|
-
|
|
12105
12268
|
declare const apiKeyFields: Field[];
|
|
12106
12269
|
|
|
12107
12270
|
declare const baseAuthFields: Field[];
|
|
@@ -12114,6 +12277,8 @@ declare const usernameFieldConfig: TextField;
|
|
|
12114
12277
|
|
|
12115
12278
|
declare const verificationFields: Field[];
|
|
12116
12279
|
|
|
12280
|
+
declare const defaultUserCollection: CollectionConfig;
|
|
12281
|
+
|
|
12117
12282
|
type OperationArgs = {
|
|
12118
12283
|
data?: any;
|
|
12119
12284
|
disableErrors?: boolean;
|
|
@@ -12182,32 +12347,32 @@ type Result<TData> = {
|
|
|
12182
12347
|
};
|
|
12183
12348
|
declare const registerFirstUserOperation: <TSlug extends AuthCollectionSlug>(args: Arguments$7<TSlug>) => Promise<Result<DataFromCollectionSlug<TSlug>>>;
|
|
12184
12349
|
|
|
12185
|
-
type Args$
|
|
12350
|
+
type Args$j = {
|
|
12186
12351
|
collection: Collection;
|
|
12187
12352
|
req: PayloadRequest;
|
|
12188
12353
|
token: string;
|
|
12189
12354
|
};
|
|
12190
|
-
declare const verifyEmailOperation: (args: Args$
|
|
12355
|
+
declare const verifyEmailOperation: (args: Args$j) => Promise<boolean>;
|
|
12191
12356
|
|
|
12192
12357
|
/**
|
|
12193
12358
|
* Authentication strategy function for JWT tokens
|
|
12194
12359
|
*/
|
|
12195
12360
|
declare const JWTAuthentication: AuthStrategyFunction;
|
|
12196
12361
|
|
|
12197
|
-
type Args$
|
|
12362
|
+
type Args$i = {
|
|
12198
12363
|
collection: SanitizedCollectionConfig;
|
|
12199
12364
|
payload: Payload;
|
|
12200
12365
|
user: TypedUser;
|
|
12201
12366
|
};
|
|
12202
|
-
declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$
|
|
12367
|
+
declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$i) => Promise<void>;
|
|
12203
12368
|
|
|
12204
|
-
type Args$
|
|
12369
|
+
type Args$h = {
|
|
12205
12370
|
collection: SanitizedCollectionConfig;
|
|
12206
12371
|
doc: Record<string, unknown> & TypeWithID;
|
|
12207
12372
|
payload: Payload;
|
|
12208
12373
|
req: PayloadRequest;
|
|
12209
12374
|
};
|
|
12210
|
-
declare const resetLoginAttempts: ({ collection, doc, payload, req, }: Args$
|
|
12375
|
+
declare const resetLoginAttempts: ({ collection, doc, payload, req, }: Args$h) => Promise<void>;
|
|
12211
12376
|
|
|
12212
12377
|
declare function genImportMapIterateFields({ addToImportMap, baseDir, config, fields, importMap, imports, }: {
|
|
12213
12378
|
addToImportMap: AddToImportMap;
|
|
@@ -12218,7 +12383,7 @@ declare function genImportMapIterateFields({ addToImportMap, baseDir, config, fi
|
|
|
12218
12383
|
imports: Imports;
|
|
12219
12384
|
}): void;
|
|
12220
12385
|
|
|
12221
|
-
type Args$
|
|
12386
|
+
type Args$g = {
|
|
12222
12387
|
config: SanitizedConfig;
|
|
12223
12388
|
/**
|
|
12224
12389
|
* Override the migration directory. Useful for testing when the CWD differs
|
|
@@ -12227,7 +12392,7 @@ type Args$h = {
|
|
|
12227
12392
|
migrationDir?: string;
|
|
12228
12393
|
parsedArgs: ParsedArgs;
|
|
12229
12394
|
};
|
|
12230
|
-
declare const migrate$1: ({ config, migrationDir, parsedArgs }: Args$
|
|
12395
|
+
declare const migrate$1: ({ config, migrationDir, parsedArgs }: Args$g) => Promise<void>;
|
|
12231
12396
|
|
|
12232
12397
|
declare const getDataLoader: (req: PayloadRequest) => {
|
|
12233
12398
|
find: Payload["find"];
|
|
@@ -12476,7 +12641,7 @@ declare const writeMigrationIndex: (args: {
|
|
|
12476
12641
|
migrationsDir: string;
|
|
12477
12642
|
}) => void;
|
|
12478
12643
|
|
|
12479
|
-
type Args$
|
|
12644
|
+
type Args$f = {
|
|
12480
12645
|
errors?: {
|
|
12481
12646
|
path: string;
|
|
12482
12647
|
}[];
|
|
@@ -12493,9 +12658,9 @@ type Args$g = {
|
|
|
12493
12658
|
collectionConfig?: never | undefined;
|
|
12494
12659
|
globalConfig: SanitizedGlobalConfig;
|
|
12495
12660
|
});
|
|
12496
|
-
declare function validateQueryPaths({ collectionConfig, errors, globalConfig, overrideAccess, policies, polymorphicJoin, req, versionFields, where, }: Args$
|
|
12661
|
+
declare function validateQueryPaths({ collectionConfig, errors, globalConfig, overrideAccess, policies, polymorphicJoin, req, versionFields, where, }: Args$f): Promise<void>;
|
|
12497
12662
|
|
|
12498
|
-
type Args$
|
|
12663
|
+
type Args$e = {
|
|
12499
12664
|
collectionConfig?: SanitizedCollectionConfig;
|
|
12500
12665
|
constraint: WhereField;
|
|
12501
12666
|
errors: {
|
|
@@ -12516,7 +12681,7 @@ type Args$f = {
|
|
|
12516
12681
|
/**
|
|
12517
12682
|
* Validate the Payload key / value / operator
|
|
12518
12683
|
*/
|
|
12519
|
-
declare function validateSearchParam({ collectionConfig, constraint, errors, fields, globalConfig, operator, overrideAccess, parentIsLocalized, path: incomingPath, policies, polymorphicJoin, req, val, versionFields, }: Args$
|
|
12684
|
+
declare function validateSearchParam({ collectionConfig, constraint, errors, fields, globalConfig, operator, overrideAccess, parentIsLocalized, path: incomingPath, policies, polymorphicJoin, req, val, versionFields, }: Args$e): Promise<void>;
|
|
12520
12685
|
|
|
12521
12686
|
declare const baseBlockFields: Field[];
|
|
12522
12687
|
|
|
@@ -12631,16 +12796,16 @@ type SanitizeFieldResult = {
|
|
|
12631
12796
|
declare const sanitizeField: ({ collectionConfig, config, existingFieldNames, field, globalConfig, index, isTopLevelField, joinPath, joins, orderableJoins, parentIndexPath, parentIsLocalized, parentSchemaPath, polymorphicJoins, requireFieldLevelRichTextEditor, richTextSanitizationPromises, validRelationships, }: SanitizeFieldArgs) => Promise<SanitizeFieldResult>;
|
|
12632
12797
|
declare const sanitizeFields: ({ collectionConfig, config, existingFieldNames, fields, globalConfig, isTopLevelField, joinPath, joins, orderableJoins, parentIndexPath, parentIsLocalized, parentSchemaPath, polymorphicJoins, requireFieldLevelRichTextEditor, richTextSanitizationPromises, validRelationships, }: SanitizeFieldsArgs) => Promise<Field[]>;
|
|
12633
12798
|
|
|
12634
|
-
type Args$
|
|
12799
|
+
type Args$d = {
|
|
12635
12800
|
defaultValue: DefaultValue;
|
|
12636
12801
|
locale: string | undefined;
|
|
12637
12802
|
req: PayloadRequest;
|
|
12638
12803
|
user: PayloadRequest['user'];
|
|
12639
12804
|
value?: JsonValue;
|
|
12640
12805
|
};
|
|
12641
|
-
declare const getDefaultValue: ({ defaultValue, locale, req, user, value, }: Args$
|
|
12806
|
+
declare const getDefaultValue: ({ defaultValue, locale, req, user, value, }: Args$d) => Promise<JsonValue>;
|
|
12642
12807
|
|
|
12643
|
-
type Args$
|
|
12808
|
+
type Args$c = {
|
|
12644
12809
|
/**
|
|
12645
12810
|
* Data of the nearest parent block. If no parent block exists, this will be the `undefined`
|
|
12646
12811
|
*/
|
|
@@ -12666,9 +12831,9 @@ type Args$d = {
|
|
|
12666
12831
|
siblingDoc: JsonObject;
|
|
12667
12832
|
siblingFields?: (Field | TabAsField)[];
|
|
12668
12833
|
};
|
|
12669
|
-
declare const traverseFields$4: ({ blockData, collection, context, data, doc, fields, global, operation, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, previousDoc, previousSiblingDoc, req, siblingData, siblingDoc, siblingFields, }: Args$
|
|
12834
|
+
declare const traverseFields$4: ({ blockData, collection, context, data, doc, fields, global, operation, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, previousDoc, previousSiblingDoc, req, siblingData, siblingDoc, siblingFields, }: Args$c) => Promise<void>;
|
|
12670
12835
|
|
|
12671
|
-
type Args$
|
|
12836
|
+
type Args$b = {
|
|
12672
12837
|
/**
|
|
12673
12838
|
* Data of the nearest parent block. If no parent block exists, this will be the `undefined`
|
|
12674
12839
|
*/
|
|
@@ -12716,9 +12881,9 @@ type Args$c = {
|
|
|
12716
12881
|
triggerAccessControl?: boolean;
|
|
12717
12882
|
triggerHooks?: boolean;
|
|
12718
12883
|
} & Required<Pick<AfterReadArgs<JsonObject>, 'flattenLocales'>>;
|
|
12719
|
-
declare const promise: ({ blockData, collection, context, currentDepth, depth, doc, draft, fallbackLocale, field, fieldDepth, fieldIndex, fieldPromises, findMany, flattenLocales, global, locale, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, populate, populationPromises, req, select, selectMode, showHiddenFields, siblingDoc, siblingFields, triggerAccessControl, triggerHooks, }: Args$
|
|
12884
|
+
declare const promise: ({ blockData, collection, context, currentDepth, depth, doc, draft, fallbackLocale, field, fieldDepth, fieldIndex, fieldPromises, findMany, flattenLocales, global, locale, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, populate, populationPromises, req, select, selectMode, showHiddenFields, siblingDoc, siblingFields, triggerAccessControl, triggerHooks, }: Args$b) => Promise<void>;
|
|
12720
12885
|
|
|
12721
|
-
type Args$
|
|
12886
|
+
type Args$a = {
|
|
12722
12887
|
/**
|
|
12723
12888
|
* Data of the nearest parent block. If no parent block exists, this will be the `undefined`
|
|
12724
12889
|
*/
|
|
@@ -12765,9 +12930,9 @@ type Args$b = {
|
|
|
12765
12930
|
triggerAccessControl?: boolean;
|
|
12766
12931
|
triggerHooks?: boolean;
|
|
12767
12932
|
};
|
|
12768
|
-
declare const traverseFields$3: ({ blockData, collection, context, currentDepth, depth, doc, draft, fallbackLocale, fieldDepth, fieldPromises, fields, findMany, flattenLocales, global, locale, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, populate, populationPromises, req, select, selectMode, showHiddenFields, siblingDoc, triggerAccessControl, triggerHooks, }: Args$
|
|
12933
|
+
declare const traverseFields$3: ({ blockData, collection, context, currentDepth, depth, doc, draft, fallbackLocale, fieldDepth, fieldPromises, fields, findMany, flattenLocales, global, locale, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, populate, populationPromises, req, select, selectMode, showHiddenFields, siblingDoc, triggerAccessControl, triggerHooks, }: Args$a) => void;
|
|
12769
12934
|
|
|
12770
|
-
type Args$
|
|
12935
|
+
type Args$9 = {
|
|
12771
12936
|
/**
|
|
12772
12937
|
* Data of the nearest parent block. If no parent block exists, this will be the `undefined`
|
|
12773
12938
|
*/
|
|
@@ -12823,9 +12988,9 @@ type Args$a = {
|
|
|
12823
12988
|
* - Transform data for storage
|
|
12824
12989
|
* - Unflatten locales. The input `data` is the normal document for one locale. The output result will become the document with locales.
|
|
12825
12990
|
*/
|
|
12826
|
-
declare const traverseFields$2: ({ id, blockData, collection, context, data, doc, docWithLocales, errors, fieldLabelPath, fields, global, mergeLocaleActions, operation, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, req, siblingData, siblingDoc, siblingDocWithLocales, skipValidation, }: Args$
|
|
12991
|
+
declare const traverseFields$2: ({ id, blockData, collection, context, data, doc, docWithLocales, errors, fieldLabelPath, fields, global, mergeLocaleActions, operation, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, req, siblingData, siblingDoc, siblingDocWithLocales, skipValidation, }: Args$9) => Promise<void>;
|
|
12827
12992
|
|
|
12828
|
-
type Args$
|
|
12993
|
+
type Args$8<T> = {
|
|
12829
12994
|
/**
|
|
12830
12995
|
* Data of the nearest parent block. If no parent block exists, this will be the `undefined`
|
|
12831
12996
|
*/
|
|
@@ -12856,39 +13021,10 @@ type Args$9<T> = {
|
|
|
12856
13021
|
*/
|
|
12857
13022
|
siblingDoc: JsonObject;
|
|
12858
13023
|
};
|
|
12859
|
-
declare const traverseFields$1: <T>({ id, blockData, collection, context, data, doc, fields, global, operation, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, req, siblingData, siblingDoc, }: Args$
|
|
13024
|
+
declare const traverseFields$1: <T>({ id, blockData, collection, context, data, doc, fields, global, operation, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, req, siblingData, siblingDoc, }: Args$8<T>) => Promise<void>;
|
|
12860
13025
|
|
|
12861
13026
|
declare const sortableFieldTypes: string[];
|
|
12862
13027
|
|
|
12863
|
-
type Args$8 = {
|
|
12864
|
-
/**
|
|
12865
|
-
* Specify to query documents from a specific collection
|
|
12866
|
-
* @default undefined
|
|
12867
|
-
* @example 'posts'
|
|
12868
|
-
*/
|
|
12869
|
-
collectionSlug?: CollectionSlug;
|
|
12870
|
-
/**
|
|
12871
|
-
* Optional where clause to filter documents by
|
|
12872
|
-
* @default undefined
|
|
12873
|
-
*/
|
|
12874
|
-
documentWhere?: Where;
|
|
12875
|
-
/**
|
|
12876
|
-
* The ID of the folder to query documents from
|
|
12877
|
-
* @default undefined
|
|
12878
|
-
*/
|
|
12879
|
-
folderID?: number | string;
|
|
12880
|
-
/** Optional where clause to filter subfolders by
|
|
12881
|
-
* @default undefined
|
|
12882
|
-
*/
|
|
12883
|
-
folderWhere?: Where;
|
|
12884
|
-
req: PayloadRequest;
|
|
12885
|
-
sort: FolderSortKeys;
|
|
12886
|
-
};
|
|
12887
|
-
/**
|
|
12888
|
-
* Query for documents, subfolders and breadcrumbs for a given folder
|
|
12889
|
-
*/
|
|
12890
|
-
declare const getFolderData: ({ collectionSlug, documentWhere, folderID: _folderID, folderWhere, req, sort, }: Args$8) => Promise<GetFolderDataResult>;
|
|
12891
|
-
|
|
12892
13028
|
type Arguments$3 = {
|
|
12893
13029
|
/**
|
|
12894
13030
|
* If the document data is passed, it will be used to check access instead of fetching the document from the database.
|
|
@@ -12958,6 +13094,191 @@ type Args$7<TSlug extends GlobalSlug> = {
|
|
|
12958
13094
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
12959
13095
|
declare const updateOperation: <TSlug extends GlobalSlug, TSelect extends SelectFromGlobalSlug<TSlug>>(args: Args$7<TSlug>) => Promise<TransformGlobalWithSelect<TSlug, TSelect>>;
|
|
12960
13096
|
|
|
13097
|
+
/**
|
|
13098
|
+
* Default field names and constants for hierarchy feature
|
|
13099
|
+
*/
|
|
13100
|
+
declare const HIERARCHY_SLUG_PATH_FIELD = "_h_slugPath";
|
|
13101
|
+
declare const HIERARCHY_TITLE_PATH_FIELD = "_h_titlePath";
|
|
13102
|
+
declare const HIERARCHY_DEFAULT_LOCALE = "en";
|
|
13103
|
+
/** Default limit for hierarchy tree queries */
|
|
13104
|
+
declare const DEFAULT_HIERARCHY_TREE_LIMIT = 100;
|
|
13105
|
+
/** Default value for allowing hasMany on hierarchy fields */
|
|
13106
|
+
declare const DEFAULT_ALLOW_HAS_MANY = true;
|
|
13107
|
+
/** Generate a hierarchy field name from a hierarchy slug (e.g., 'folders' -> '_h_folders') */
|
|
13108
|
+
declare const getHierarchyFieldName: (hierarchySlug: string) => string;
|
|
13109
|
+
|
|
13110
|
+
/**
|
|
13111
|
+
* Options for creating a folder relationship field.
|
|
13112
|
+
* All SingleRelationshipField properties are available except name, type, relationTo, and hasMany
|
|
13113
|
+
* which are managed by the folder system.
|
|
13114
|
+
*/
|
|
13115
|
+
type CreateFolderFieldOptions = {
|
|
13116
|
+
/**
|
|
13117
|
+
* The slug of the hierarchy collection this field references (e.g., 'folders')
|
|
13118
|
+
*/
|
|
13119
|
+
relationTo: string;
|
|
13120
|
+
} & Pick<Partial<SingleRelationshipField>, 'admin' | 'label' | 'required'>;
|
|
13121
|
+
/**
|
|
13122
|
+
* Creates a relationship field for folder-style hierarchies (single-select).
|
|
13123
|
+
*
|
|
13124
|
+
* This field:
|
|
13125
|
+
* - Has hasMany:false (single folder selection)
|
|
13126
|
+
* - Uses NullField to render nothing in the form (no DOM output)
|
|
13127
|
+
* - Injects a header button for folder selection via miller columns UI
|
|
13128
|
+
*
|
|
13129
|
+
* Use this in your collection's fields array to add a folder relationship.
|
|
13130
|
+
* The field name is automatically generated based on the hierarchy slug.
|
|
13131
|
+
*
|
|
13132
|
+
* @example
|
|
13133
|
+
* import { createFolderField } from 'payload'
|
|
13134
|
+
*
|
|
13135
|
+
* const Posts: CollectionConfig = {
|
|
13136
|
+
* slug: 'posts',
|
|
13137
|
+
* fields: [
|
|
13138
|
+
* { name: 'title', type: 'text' },
|
|
13139
|
+
* createFolderField({
|
|
13140
|
+
* relationTo: 'folders',
|
|
13141
|
+
* label: 'Folder',
|
|
13142
|
+
* }),
|
|
13143
|
+
* ],
|
|
13144
|
+
* }
|
|
13145
|
+
*/
|
|
13146
|
+
declare function createFolderField(options: CreateFolderFieldOptions): RelationshipField;
|
|
13147
|
+
|
|
13148
|
+
/**
|
|
13149
|
+
* Options for creating a tag relationship field.
|
|
13150
|
+
* All RelationshipFieldMany properties are available except name, type, and relationTo
|
|
13151
|
+
* which are managed by the tag system.
|
|
13152
|
+
*/
|
|
13153
|
+
type CreateTagFieldOptions = {
|
|
13154
|
+
/**
|
|
13155
|
+
* Whether to allow multiple tags (defaults to true)
|
|
13156
|
+
* @default true
|
|
13157
|
+
*/
|
|
13158
|
+
hasMany?: boolean;
|
|
13159
|
+
/**
|
|
13160
|
+
* The slug of the hierarchy collection this field references (e.g., 'tags')
|
|
13161
|
+
*/
|
|
13162
|
+
relationTo: string;
|
|
13163
|
+
} & Pick<Partial<RelationshipField>, 'admin' | 'label' | 'required'>;
|
|
13164
|
+
/**
|
|
13165
|
+
* Creates a relationship field for tag-style hierarchies (multi-select by default).
|
|
13166
|
+
*
|
|
13167
|
+
* This field:
|
|
13168
|
+
* - Has hasMany:true by default (multiple tag selection)
|
|
13169
|
+
* - Is positioned in the sidebar by default
|
|
13170
|
+
* - Does NOT inject a header button (tags use standard relationship UI)
|
|
13171
|
+
*
|
|
13172
|
+
* Use this in your collection's fields array to add a tag relationship.
|
|
13173
|
+
* The field name is automatically generated based on the hierarchy slug.
|
|
13174
|
+
*
|
|
13175
|
+
* @example
|
|
13176
|
+
* import { createTagField } from 'payload'
|
|
13177
|
+
*
|
|
13178
|
+
* const Posts: CollectionConfig = {
|
|
13179
|
+
* slug: 'posts',
|
|
13180
|
+
* fields: [
|
|
13181
|
+
* { name: 'title', type: 'text' },
|
|
13182
|
+
* createTagField({
|
|
13183
|
+
* relationTo: 'tags',
|
|
13184
|
+
* label: 'Tags',
|
|
13185
|
+
* }),
|
|
13186
|
+
* ],
|
|
13187
|
+
* }
|
|
13188
|
+
*/
|
|
13189
|
+
declare function createTagField(options: CreateTagFieldOptions): RelationshipField;
|
|
13190
|
+
|
|
13191
|
+
type GetInitialTreeDataArgs = {
|
|
13192
|
+
/** Base filter to apply to all queries (e.g., tenant filter) */
|
|
13193
|
+
baseFilter?: null | Where;
|
|
13194
|
+
collectionSlug: string;
|
|
13195
|
+
expandedNodeIds?: (number | string)[];
|
|
13196
|
+
/** Filter tree to only show folders that allow these collection types (or are unrestricted) */
|
|
13197
|
+
filterByCollections?: string[];
|
|
13198
|
+
limit?: number;
|
|
13199
|
+
payload: PayloadRequest['payload'];
|
|
13200
|
+
/** The currently selected node ID. When provided, ensures siblings are loaded to include this node. */
|
|
13201
|
+
selectedNodeId?: null | number | string;
|
|
13202
|
+
/** The parent ID of the selected node. Required when selectedNodeId is provided. */
|
|
13203
|
+
selectedNodeParentId?: null | number | string;
|
|
13204
|
+
user: PayloadRequest['user'];
|
|
13205
|
+
};
|
|
13206
|
+
type InitialTreeData = {
|
|
13207
|
+
docs: TypeWithID[];
|
|
13208
|
+
loadedParents: Record<string, {
|
|
13209
|
+
hasMore: boolean;
|
|
13210
|
+
loadedCount?: number;
|
|
13211
|
+
totalDocs: number;
|
|
13212
|
+
}>;
|
|
13213
|
+
};
|
|
13214
|
+
declare const getInitialTreeData: ({ baseFilter, collectionSlug, expandedNodeIds, filterByCollections, limit, payload, selectedNodeId, selectedNodeParentId, user, }: GetInitialTreeDataArgs) => Promise<InitialTreeData>;
|
|
13215
|
+
|
|
13216
|
+
/**
|
|
13217
|
+
* Injects the HierarchyButton component into a collection's BeforeDocumentMeta slot.
|
|
13218
|
+
*
|
|
13219
|
+
* The HierarchyButton provides a header UI for selecting parent hierarchy items
|
|
13220
|
+
* via miller columns, replacing the standard relationship field input.
|
|
13221
|
+
*/
|
|
13222
|
+
declare const injectHierarchyButton: ({ collection, fieldName, hierarchyCollectionSlug, parentFieldName, }: {
|
|
13223
|
+
collection: CollectionConfig;
|
|
13224
|
+
fieldName: string;
|
|
13225
|
+
hierarchyCollectionSlug: string;
|
|
13226
|
+
parentFieldName: string;
|
|
13227
|
+
}) => void;
|
|
13228
|
+
|
|
13229
|
+
/**
|
|
13230
|
+
* Resolves hierarchy relationships across collections.
|
|
13231
|
+
*
|
|
13232
|
+
* This function runs after individual collection sanitization to establish
|
|
13233
|
+
* cross-collection hierarchy relationships. It discovers which collections
|
|
13234
|
+
* reference each hierarchy and configures the necessary fields, components,
|
|
13235
|
+
* and hooks.
|
|
13236
|
+
*
|
|
13237
|
+
* @remarks
|
|
13238
|
+
* Must be called after all collections are sanitized.
|
|
13239
|
+
*
|
|
13240
|
+
* **What it does:**
|
|
13241
|
+
* - Discovers related collections by scanning for hierarchy relationship fields
|
|
13242
|
+
* - Injects `HierarchyButton` component when `custom.hierarchy.injectHeaderButton` is set
|
|
13243
|
+
* - Adds `collectionSpecific` validation to ensure hierarchy items accept the document type
|
|
13244
|
+
* - Injects the `hierarchyType` select field when `collectionSpecific` is enabled
|
|
13245
|
+
* - Injects join field when `joinField` is configured
|
|
13246
|
+
* - Adds `afterDelete` hook to clear hierarchy references when items are deleted
|
|
13247
|
+
* - Populates `relatedCollections` in the sanitized hierarchy config
|
|
13248
|
+
*/
|
|
13249
|
+
declare const resolveHierarchyCollections: (config: Config) => void;
|
|
13250
|
+
|
|
13251
|
+
type Ancestor = {
|
|
13252
|
+
id: number | string;
|
|
13253
|
+
title: string;
|
|
13254
|
+
};
|
|
13255
|
+
type GetAncestorsArgs = {
|
|
13256
|
+
/**
|
|
13257
|
+
* The collection slug
|
|
13258
|
+
*/
|
|
13259
|
+
collectionSlug: CollectionSlug;
|
|
13260
|
+
/**
|
|
13261
|
+
* The document ID to get ancestors for
|
|
13262
|
+
*/
|
|
13263
|
+
id: number | string;
|
|
13264
|
+
/**
|
|
13265
|
+
* Include the document itself in the returned ancestors (as last item)
|
|
13266
|
+
* @default true
|
|
13267
|
+
*/
|
|
13268
|
+
includeSelf?: boolean;
|
|
13269
|
+
/**
|
|
13270
|
+
* The request object
|
|
13271
|
+
*/
|
|
13272
|
+
req: PayloadRequest;
|
|
13273
|
+
};
|
|
13274
|
+
/**
|
|
13275
|
+
* Get ancestor chain for a hierarchical document.
|
|
13276
|
+
* Returns array of {id, title} from root to the document.
|
|
13277
|
+
*
|
|
13278
|
+
* Uses request context caching for efficiency when called multiple times.
|
|
13279
|
+
*/
|
|
13280
|
+
declare function getAncestors({ id, collectionSlug, includeSelf, req, }: GetAncestorsArgs): Promise<Ancestor[]>;
|
|
13281
|
+
|
|
12961
13282
|
declare class DatabaseKVAdapter implements KVAdapter {
|
|
12962
13283
|
readonly payload: Payload;
|
|
12963
13284
|
readonly collectionSlug: string;
|
|
@@ -14150,16 +14471,26 @@ interface RequestContext {
|
|
|
14150
14471
|
interface DatabaseAdapter extends BaseDatabaseAdapter {
|
|
14151
14472
|
}
|
|
14152
14473
|
|
|
14474
|
+
interface FieldCustom extends Record<string, any> {
|
|
14475
|
+
}
|
|
14153
14476
|
interface FieldCustom extends Record<string, any> {
|
|
14154
14477
|
}
|
|
14155
14478
|
interface CollectionCustom extends Record<string, any> {
|
|
14156
14479
|
}
|
|
14480
|
+
interface CollectionCustom extends Record<string, any> {
|
|
14481
|
+
}
|
|
14482
|
+
interface CollectionAdminCustom extends Record<string, any> {
|
|
14483
|
+
}
|
|
14157
14484
|
interface CollectionAdminCustom extends Record<string, any> {
|
|
14158
14485
|
}
|
|
14159
14486
|
interface GlobalCustom extends Record<string, any> {
|
|
14160
14487
|
}
|
|
14488
|
+
interface GlobalCustom extends Record<string, any> {
|
|
14489
|
+
}
|
|
14490
|
+
interface GlobalAdminCustom extends Record<string, any> {
|
|
14491
|
+
}
|
|
14161
14492
|
interface GlobalAdminCustom extends Record<string, any> {
|
|
14162
14493
|
}
|
|
14163
14494
|
|
|
14164
|
-
export { APIError, APIErrorName, Action, AuthenticationError, BasePayload, DatabaseKVAdapter, DiffMethod, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, EntityType, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, 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, apiKeyFields as baseAPIKeyFields, 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, createArrayFromCommaDelineated, createClientBlocks, createClientCollectionConfig, createClientCollectionConfigs, createClientConfig, createClientField, createClientFields, createClientGlobalConfig, createClientGlobalConfigs, createDatabaseAdapter, createDataloaderCacheKey, createLocalReq, createMigration, createOperation, createPayloadRequest, createUnauthenticatedClientConfig, databaseKVAdapter, deepCopyObject, deepCopyObjectComplex, deepCopyObjectSimple, deepMergeSimple, deepMergeWithCombinedArrays, deepMergeWithReactComponents, deepMergeWithSourceArrays, initialized as default, defaultBeginTransaction, defaultLoggerOptions, defaults, definePlugin, deleteByIDOperation, deleteCollectionVersions, deleteOperation, docAccessOperation$1 as docAccessOperation, docAccessOperation as docAccessOperationGlobal, docHasTimestamps, duplicateOperation, dynamicImport, enforceMaxVersions, entityToJSONSchema, 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, getBlockSelect, getCollectionIDFieldTypes, getCookieExpiration, getCurrentDate, getDataLoader, getDefaultValue, getDependencies, getFieldByPath, getFieldsToSign, getFileByPath,
|
|
14165
|
-
export type { Access, AccessArgs, AccessResult, AdminClient, AdminComponent, AdminDependencies, AdminFunction, AdminViewClientProps, AdminViewComponent, AdminViewConfig, AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, AfterErrorHook$1 as AfterErrorHook, AfterErrorHookArgs, AfterErrorResult, AfterFolderListClientProps, AfterFolderListServerProps, AfterFolderListServerPropsOnly, AfterFolderListTableClientProps, AfterFolderListTableServerProps, AfterFolderListTableServerPropsOnly, AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, AllOperations, AllowList, 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, BeforeFolderListClientProps, BeforeFolderListServerProps, BeforeFolderListServerPropsOnly, BeforeFolderListTableClientProps, BeforeFolderListTableServerProps, BeforeFolderListTableServerPropsOnly, 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, BuildCollectionFolderViewResult, 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, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, 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, FolderListViewClientProps, FolderListViewServerProps, FolderListViewServerPropsOnly, FolderListViewSlotSharedClientProps, FolderListViewSlots, FolderSortKeys, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FormState, FormStateWithoutComponents, GenerateImageName, GeneratePreviewURL, GenerateSchema, GeneratedTypes, GenericDescriptionProps, GenericErrorProps, GenericLabelProps, GetAdminThumbnail, GetFolderResultsComponentAndDataArgs, 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, HookName, HookOperationType, IfAny, ImageSize, ImageUploadFormatOptions, ImageUploadTrimOptions, ImportMap, ImportMapGenerators, IncomingAuthType, Init, InitOptions, InitPageResult, InitReqResult, 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, 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, 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, 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, SharedProps, SharpDependency, 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, 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, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };
|
|
14495
|
+
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, apiKeyFields as baseAPIKeyFields, 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, 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, defaults, definePlugin, deleteByIDOperation, deleteCollectionVersions, deleteOperation, docAccessOperation$1 as docAccessOperation, docAccessOperation as docAccessOperationGlobal, docHasTimestamps, duplicateOperation, dynamicImport, enforceMaxVersions, entityToJSONSchema, 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, isValidID, isolateObjectProperty, jobAfterRead, jwtSign, killTransaction, localizeStatus, logError, loginOperation, logoutOperation, mapAsync, meOperation, mergeHeaders, migrate, migrate$1 as migrateCLI, migrateDown, migrateRefresh, migrateReset, migrateStatus, migrationTemplate, migrationsCollection, parseCookies, parseDocumentID, pathExistsAndIsAccessible, pathExistsAndIsAccessibleSync, readMigrationFiles, refreshOperation, registerFirstUserOperation, reload, resetLoginAttempts, resetPasswordOperation, resolveHierarchyCollections, restoreVersionOperation$1 as restoreVersionOperation, restoreVersionOperation as restoreVersionOperationGlobal, sanitizeConfig, sanitizeFallbackLocale, sanitizeField, sanitizeFields, sanitizeJoinParams, sanitizeLocales, sanitizePopulateParam, sanitizeSelectParam, 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 };
|
|
14496
|
+
export type { Access, AccessArgs, AccessResult, AdminClient, AdminComponent, AdminDependencies, AdminFunction, AdminViewClientProps, AdminViewComponent, AdminViewConfig, AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, AfterErrorHook$1 as AfterErrorHook, AfterErrorHookArgs, AfterErrorResult, AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, AllOperations, AllowList, Ancestor, ApplyDisableErrors, ArrayField, ArrayFieldClient, ArrayFieldClientComponent, ArrayFieldClientProps, ArrayFieldDescriptionClientComponent, ArrayFieldDescriptionServerComponent, ArrayFieldDiffClientComponent, ArrayFieldDiffServerComponent, ArrayFieldErrorClientComponent, ArrayFieldErrorServerComponent, ArrayFieldLabelClientComponent, ArrayFieldLabelServerComponent, ArrayFieldServerComponent, ArrayFieldServerProps, ArrayFieldValidation, Auth, AuthCollection, AuthCollectionSlug, AuthOperations, AuthOperationsFromCollectionSlug, AuthStrategy, AuthStrategyFunction, AuthStrategyFunctionArgs, AuthStrategyResult, BaseDatabaseAdapter, BaseFilter, BaseJob, BaseListFilter, BaseLocalizationConfig, BaseValidateOptions, BaseVersionField, BeforeDocumentControlsClientProps, BeforeDocumentControlsServerProps, BeforeDocumentControlsServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, BeginTransaction, BinScript, BinScriptConfig, Block, BlockJSX, BlockPermissions, BlockRowLabelClientComponent, BlockRowLabelServerComponent, BlockSlug, BlocksField, BlocksFieldClient, BlocksFieldClientComponent, BlocksFieldClientProps, BlocksFieldDescriptionClientComponent, BlocksFieldDescriptionServerComponent, BlocksFieldDiffClientComponent, BlocksFieldDiffServerComponent, BlocksFieldErrorClientComponent, BlocksFieldErrorServerComponent, BlocksFieldLabelClientComponent, BlocksFieldLabelServerComponent, BlocksFieldServerComponent, BlocksFieldServerProps, BlocksFieldValidation, BlocksPermissions, BuildFormStateArgs, BuildTableStateArgs, BulkOperationResult, CORSConfig, CheckboxField, CheckboxFieldClient, CheckboxFieldClientComponent, CheckboxFieldClientProps, CheckboxFieldDescriptionClientComponent, CheckboxFieldDescriptionServerComponent, CheckboxFieldDiffClientComponent, CheckboxFieldDiffServerComponent, CheckboxFieldErrorClientComponent, CheckboxFieldErrorServerComponent, CheckboxFieldLabelClientComponent, CheckboxFieldLabelServerComponent, CheckboxFieldServerComponent, CheckboxFieldServerProps, CheckboxFieldValidation, ClientBlock, ClientCollectionConfig, ClientComponentProps, ClientConfig, ClientField, ClientFieldBase, ClientFieldProps, ClientFieldSchemaMap, ClientFieldWithOptionalType, ClientGlobalConfig, DocumentViewClientProps as ClientSideEditViewProps, ClientTab, ClientUser, ClientWidget, CodeField, CodeFieldClient, CodeFieldClientComponent, CodeFieldClientProps, CodeFieldDescriptionClientComponent, CodeFieldDescriptionServerComponent, CodeFieldDiffClientComponent, CodeFieldDiffServerComponent, CodeFieldErrorClientComponent, CodeFieldErrorServerComponent, CodeFieldLabelClientComponent, CodeFieldLabelServerComponent, CodeFieldServerComponent, CodeFieldServerProps, CodeFieldValidation, CollapsedPreferences, CollapsibleField, CollapsibleFieldClient, CollapsibleFieldClientComponent, CollapsibleFieldClientProps, CollapsibleFieldDescriptionClientComponent, CollapsibleFieldDescriptionServerComponent, CollapsibleFieldDiffClientComponent, CollapsibleFieldDiffServerComponent, CollapsibleFieldErrorClientComponent, CollapsibleFieldErrorServerComponent, CollapsibleFieldLabelClientComponent, CollapsibleFieldLabelServerComponent, CollapsibleFieldServerComponent, CollapsibleFieldServerProps, Collection, CollectionAdminCustom, CollectionAdminOptions, AfterChangeHook as CollectionAfterChangeHook, AfterDeleteHook as CollectionAfterDeleteHook, AfterErrorHook as CollectionAfterErrorHook, AfterForgotPasswordHook as CollectionAfterForgotPasswordHook, AfterLoginHook as CollectionAfterLoginHook, AfterLogoutHook as CollectionAfterLogoutHook, AfterMeHook as CollectionAfterMeHook, AfterOperationHook as CollectionAfterOperationHook, AfterReadHook as CollectionAfterReadHook, AfterRefreshHook as CollectionAfterRefreshHook, BeforeChangeHook as CollectionBeforeChangeHook, BeforeDeleteHook as CollectionBeforeDeleteHook, BeforeLoginHook as CollectionBeforeLoginHook, BeforeOperationHook as CollectionBeforeOperationHook, BeforeReadHook as CollectionBeforeReadHook, BeforeValidateHook as CollectionBeforeValidateHook, CollectionConfig, CollectionCustom, MeHook as CollectionMeHook, CollectionPermission, CollectionPreferences, RefreshHook as CollectionRefreshHook, CollectionSlug, Column, ColumnPreference, CommitTransaction, CompoundIndex, ConcurrencyConfig, Condition, ConditionalDateProps, Config, ConfirmPasswordFieldValidation, Connect, CookieOptions$1 as CookieOptions, CookieStore, Count, CountArgs, CountGlobalVersionArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateClientConfigArgs, CreateFolderFieldOptions, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateTagFieldOptions, CreateVersion, CreateVersionArgs, CustomComponent, CustomDocumentViewConfig, CustomPayloadRequestProperties, CustomComponent as CustomPreviewButton, CustomComponent as CustomPublishButton, CustomComponent as CustomSaveButton, CustomComponent as CustomSaveDraftButton, CustomStatus, CustomUpload, CustomVersionParser, DBIdentifierName, DashboardConfig, Data, DataFromCollectionSlug, DataFromGlobalSlug, DataFromWidgetSlug, DatabaseAdapter, DatabaseAdapterResult as DatabaseAdapterObj, DatabaseKVAdapterOptions, DateField, DateFieldClient, DateFieldClientComponent, DateFieldClientProps, DateFieldDescriptionClientComponent, DateFieldDescriptionServerComponent, DateFieldDiffClientComponent, DateFieldDiffServerComponent, DateFieldErrorClientComponent, DateFieldErrorServerComponent, DateFieldLabelClientComponent, DateFieldLabelServerComponent, DateFieldServerComponent, DateFieldServerProps, DateFieldValidation, DayPickerProps, DefaultCellComponentProps, DefaultDocumentIDType, DefaultDocumentViewConfig, DefaultServerCellComponentProps, DefaultServerFunctionArgs, DefaultValue, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Description, DescriptionFunction, Destroy, Document, DocumentEvent, DocumentPermissions, DocumentPreferences, DocumentSlots, DocumentSubViewTypes, DocumentTabClientProps, DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabServerProps as DocumentTabProps, DocumentTabServerProps, DocumentTabServerPropsOnly, DocumentViewClientProps, DocumentViewComponent, DocumentViewConfig, DocumentViewServerProps, DocumentViewServerPropsOnly, DraftTransformCollectionWithSelect, DynamicMigrationTemplate, EditConfig, EditConfigWithRoot, EditConfigWithoutRoot, EditMenuItemsClientProps, EditMenuItemsServerProps, EditMenuItemsServerPropsOnly, EditViewComponent, EditViewConfig, EditViewProps, EmailAdapter, EmailField, EmailFieldClient, EmailFieldClientComponent, EmailFieldClientProps, EmailFieldDescriptionClientComponent, EmailFieldDescriptionServerComponent, EmailFieldDiffClientComponent, EmailFieldDiffServerComponent, EmailFieldErrorClientComponent, EmailFieldErrorServerComponent, EmailFieldLabelClientComponent, EmailFieldLabelServerComponent, EmailFieldServerComponent, EmailFieldServerProps, EmailFieldValidation, Endpoint, EntityDescription, EntityDescriptionComponent, EntityDescriptionFunction, EntityPolicies, ErrorResult, FetchAPIFileUploadOptions, Field, FieldAccess, FieldAccessArgs, FieldAffectingData, FieldAffectingDataClient, FieldBase, FieldBaseClient, FieldClientComponent, FieldCustom, FieldDescriptionClientComponent, FieldDescriptionClientProps, FieldDescriptionServerComponent, FieldDescriptionServerProps, FieldDiffClientComponent, FieldDiffClientProps, FieldDiffServerComponent, FieldDiffServerProps, FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, FieldHook, FieldHookArgs, FieldLabelClientComponent, FieldLabelClientProps, FieldLabelServerComponent, FieldLabelServerProps, FieldPaths, FieldPermissions, FieldPosition, FieldPresentationalOnly, FieldPresentationalOnlyClient, FieldRow, FieldSchemaMap, FieldServerComponent, FieldState, FieldTypes, FieldWithMany, FieldWithManyClient, FieldWithMaxDepth, FieldWithMaxDepthClient, FieldWithPath, FieldWithPathClient, FieldWithSubFields, FieldWithSubFieldsClient, FieldsPermissions, FieldsPreferences, File$1 as File, FileAllowList, FileData, FileSize, FileSizes, FileToSave, FilterOptions, FilterOptionsProps, FilterOptionsResult, Find, FindArgs, FindDistinct, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindOptions, FindVersions, FindVersionsArgs, FlattenedArrayField, FlattenedBlock, FlattenedBlocksField, FlattenedField$1 as FlattenedField, FlattenedGroupField, FlattenedJoinField, FlattenedTabAsField, FocalPoint, FoldersConfig, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FormState, FormStateWithoutComponents, GenerateImageName, GeneratePreviewURL, GenerateSchema, GeneratedTypes, GenericDescriptionProps, GenericErrorProps, GenericLabelProps, GetAdminThumbnail, GetInitialTreeDataArgs, GlobalAdminCustom, GlobalAdminOptions, AfterChangeHook$1 as GlobalAfterChangeHook, AfterReadHook$1 as GlobalAfterReadHook, BeforeChangeHook$1 as GlobalBeforeChangeHook, BeforeOperationHook$1 as GlobalBeforeOperationHook, BeforeReadHook$1 as GlobalBeforeReadHook, BeforeValidateHook$1 as GlobalBeforeValidateHook, GlobalConfig, GlobalCustom, GlobalPermission, GlobalSlug, GraphQLExtension, GraphQLInfo, GroupField, GroupFieldClient, GroupFieldClientComponent, GroupFieldClientProps, GroupFieldDescriptionClientComponent, GroupFieldDescriptionServerComponent, GroupFieldDiffClientComponent, GroupFieldDiffServerComponent, GroupFieldErrorClientComponent, GroupFieldErrorServerComponent, GroupFieldLabelClientComponent, GroupFieldLabelServerComponent, GroupFieldServerComponent, GroupFieldServerProps, HiddenFieldProps, HierarchyConfig, HierarchyViewData, HookName, HookOperationType, IfAny, ImageSize, ImageUploadFormatOptions, ImageUploadTrimOptions, ImportMap, ImportMapGenerators, IncomingAuthType, Init, InitOptions, InitPageResult, InitReqResult, InitialTreeData, InsideFieldsPreferences, IsAny, JSONField, JSONFieldClient, JSONFieldClientComponent, JSONFieldClientProps, JSONFieldDescriptionClientComponent, JSONFieldDescriptionServerComponent, JSONFieldDiffClientComponent, JSONFieldDiffServerComponent, JSONFieldErrorClientComponent, JSONFieldErrorServerComponent, JSONFieldLabelClientComponent, JSONFieldLabelServerComponent, JSONFieldServerComponent, JSONFieldServerProps, JSONFieldValidation, Job, JobLog, JobTaskStatus, JobsConfig, JoinField, JoinFieldClient, JoinFieldClientComponent, JoinFieldClientProps, JoinFieldDescriptionClientComponent, JoinFieldDescriptionServerComponent, JoinFieldDiffClientComponent, JoinFieldDiffServerComponent, JoinFieldErrorClientComponent, JoinFieldErrorServerComponent, JoinFieldLabelClientComponent, JoinFieldLabelServerComponent, JoinFieldServerComponent, JoinFieldServerProps, JoinQuery, JsonArray, JsonObject, JsonValue, KVAdapter, KVAdapterResult, KVStoreValue, LabelFunction, Labels, LabelsClient, LanguageOptions, LinkAdapterProps, CollectionPreferences as ListPreferences, ListQuery, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlotSharedClientProps, ListViewSlots, LivePreviewConfig, LivePreviewURLType, Locale, LocalizationConfig, LocalizationConfigWithLabels, LocalizationConfigWithNoLabels, LoginResult, LoginWithUsernameOptions, MappedClientComponent, MappedEmptyComponent, MappedServerComponent, MaybePromise, MeOperationResult, MetaConfig, Migration, MigrationData, MigrationTemplateArgs, LocalizeStatusArgs$1 as MongoLocalizeStatusArgs, NamedGroupField, NamedGroupFieldClient, NamedTab, NavGroupPreferences, NavPreferences, NonPresentationalField, NonPresentationalFieldClient, NumberField, NumberFieldClient, NumberFieldClientComponent, NumberFieldClientProps, NumberFieldDescriptionClientComponent, NumberFieldDescriptionServerComponent, NumberFieldDiffClientComponent, NumberFieldDiffServerComponent, NumberFieldErrorClientComponent, NumberFieldErrorServerComponent, NumberFieldLabelClientComponent, NumberFieldLabelServerComponent, NumberFieldManyValidation, NumberFieldServerComponent, NumberFieldServerProps, NumberFieldSingleValidation, NumberFieldValidation, OGImageConfig, Operation, Operator, Option, OptionLabel, OptionObject, OrderableEndpointBody, PaginatedDistinctDocs, PaginatedDocs, Params, PasswordFieldValidation, PathToQuery, Payload, PayloadClientComponentProps, PayloadClientReactComponent, PayloadComponent, PayloadComponentProps, EmailAdapter as PayloadEmailAdapter, PayloadHandler, PayloadLogger, PayloadReactComponent, PayloadRequest, PayloadServerAction, PayloadServerComponentProps, PayloadServerReactComponent, PayloadTypes, PayloadTypesShape, Permission, Permissions, PickPreserveOptional, Plugin, PluginsMap, PointField, PointFieldClient, PointFieldClientComponent, PointFieldClientProps, PointFieldDescriptionClientComponent, PointFieldDescriptionServerComponent, PointFieldDiffClientComponent, PointFieldDiffServerComponent, PointFieldErrorClientComponent, PointFieldErrorServerComponent, PointFieldLabelClientComponent, PointFieldLabelServerComponent, PointFieldServerComponent, PointFieldServerProps, PointFieldValidation, PolymorphicRelationshipField, PolymorphicRelationshipFieldClient, PopulateType, PreferenceRequest, PreferenceUpdateRequest, PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, ProbedImageSize, PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, QueryDrafts, QueryDraftsArgs, QueryPreset, RadioField, RadioFieldClient, RadioFieldClientComponent, RadioFieldClientProps, RadioFieldDescriptionClientComponent, RadioFieldDescriptionServerComponent, RadioFieldDiffClientComponent, RadioFieldDiffServerComponent, RadioFieldErrorClientComponent, RadioFieldErrorServerComponent, RadioFieldLabelClientComponent, RadioFieldLabelServerComponent, RadioFieldServerComponent, RadioFieldServerProps, RadioFieldValidation, RawPayloadComponent, RegisteredPlugins, RelatedDocumentsGrouped, RelationshipField, RelationshipFieldClient, RelationshipFieldClientComponent, RelationshipFieldClientProps, RelationshipFieldDescriptionClientComponent, RelationshipFieldDescriptionServerComponent, RelationshipFieldDiffClientComponent, RelationshipFieldDiffServerComponent, RelationshipFieldErrorClientComponent, RelationshipFieldErrorServerComponent, RelationshipFieldLabelClientComponent, RelationshipFieldLabelServerComponent, RelationshipFieldManyValidation, RelationshipFieldServerComponent, RelationshipFieldServerProps, RelationshipFieldSingleValidation, RelationshipFieldValidation, RelationshipValue, RenderConfigArgs, RenderDocumentVersionsProperties, RenderEntityConfigArgs, RenderFieldConfigArgs, RenderRootConfigArgs, RenderedField, ReplaceAny, RequestContext, RequiredDataFromCollection, RequiredDataFromCollectionSlug, ResolvedComponent, ResolvedFilterOptions, RichTextAdapter, RichTextAdapterProvider, RichTextField, RichTextFieldClient, RichTextFieldClientComponent, RichTextFieldClientProps, RichTextFieldDescriptionClientComponent, RichTextFieldDescriptionServerComponent, RichTextFieldDiffClientComponent, RichTextFieldDiffServerComponent, RichTextFieldErrorClientComponent, RichTextFieldErrorServerComponent, RichTextFieldLabelClientComponent, RichTextFieldLabelServerComponent, RichTextFieldServerComponent, RichTextFieldServerProps, RichTextFieldValidation, RichTextHooks, RollbackTransaction, RootLivePreviewConfig, RouterAdapterComponent, RouterAdapterRouter, Row, RowField, RowFieldClient, RowFieldClientComponent, RowFieldClientProps, RowFieldDescriptionClientComponent, RowFieldDescriptionServerComponent, RowFieldDiffClientComponent, RowFieldDiffServerComponent, RowFieldErrorClientComponent, RowFieldErrorServerComponent, RowFieldLabelClientComponent, RowFieldLabelServerComponent, RowFieldServerComponent, RowFieldServerProps, RowLabel, RowLabelComponent, RunInlineTaskFunction, RunJobAccess, RunJobAccessArgs, RunTaskFunction, RunTaskFunctions, RunningJob, SanitizeFieldArgs, SanitizedBlockPermissions, SanitizedBlocksPermissions, SanitizedCollectionConfig, SanitizedCollectionPermission, SanitizedCompoundIndex, SanitizedConfig, SanitizedDashboardConfig, SanitizedDocumentPermissions, SanitizedFieldPermissions, SanitizedFieldsPermissions, SanitizedGlobalConfig, SanitizedGlobalPermission, SanitizedHierarchyConfig, SanitizedHierarchyRelatedCollection, SanitizedJoins, SanitizedLabelProps, SanitizedLocalizationConfig, SanitizedPermissions, SanitizedUploadConfig, SaveButtonClientProps, SaveButtonServerProps, SaveButtonServerPropsOnly, SaveDraftButtonClientProps, SaveDraftButtonServerProps, SaveDraftButtonServerPropsOnly, SchedulePublish, SchedulePublishTaskInput, SelectExcludeType, SelectField, SelectFieldClient, SelectFieldClientComponent, SelectFieldClientProps, SelectFieldDescriptionClientComponent, SelectFieldDescriptionServerComponent, SelectFieldDiffClientComponent, SelectFieldDiffServerComponent, SelectFieldErrorClientComponent, SelectFieldErrorServerComponent, SelectFieldLabelClientComponent, SelectFieldLabelServerComponent, SelectFieldManyValidation, SelectFieldServerComponent, SelectFieldServerProps, SelectFieldSingleValidation, SelectFieldValidation, SelectFn, SelectFnArgs, SelectFnOperation, SelectIncludeType, SelectMode, SelectType, SendEmailOptions, ServerAdapter, ServerComponentProps, ServerFieldBase, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, ServerOnlyCollectionAdminProperties, ServerOnlyCollectionProperties, ServerOnlyFieldAdminProperties, ServerOnlyFieldProperties, ServerOnlyGlobalAdminProperties, ServerOnlyGlobalProperties, ServerOnlyLivePreviewProperties, ServerOnlyUploadProperties, ServerProps, ServerPropsFromView, DocumentViewServerProps as ServerSideEditViewProps, SharedAdminComponents, SharedEditViewComponents, SharedEntityViews, SharedProps, SharpDependency, SidebarTab, SidebarTabClientProps, SidebarTabServerProps, SidebarTabServerPropsOnly, SingleRelationshipField, SingleRelationshipFieldClient, SingleTaskStatus, SlugField, SlugFieldClientProps, SlugifyServerFunctionArgs, Sort, LocalizeStatusArgs as SqlLocalizeStatusArgs, StaticDescription, StaticLabel, StorageAdapter, StringKeyOf, Tab, TabAsField, TabAsFieldClient, TabsField, TabsFieldClient, TabsFieldClientComponent, TabsFieldClientProps, TabsFieldDescriptionClientComponent, TabsFieldDescriptionServerComponent, TabsFieldDiffClientComponent, TabsFieldDiffServerComponent, TabsFieldErrorClientComponent, TabsFieldErrorServerComponent, TabsFieldLabelClientComponent, TabsFieldLabelServerComponent, TabsFieldServerComponent, TabsFieldServerProps, TabsPreferences, TagsConfig, TaskConfig, TaskHandler, TaskHandlerArgs, TaskHandlerResult, TaskHandlerResults, TaskInput, TaskOutput, TaskType, TextField, TextFieldClient, TextFieldClientComponent, TextFieldClientProps, TextFieldDescriptionClientComponent, TextFieldDescriptionServerComponent, TextFieldDiffClientComponent, TextFieldDiffServerComponent, TextFieldErrorClientComponent, TextFieldErrorServerComponent, TextFieldLabelClientComponent, TextFieldLabelServerComponent, TextFieldManyValidation, TextFieldServerComponent, TextFieldServerProps, TextFieldSingleValidation, TextFieldValidation, TextareaField, TextareaFieldClient, TextareaFieldClientComponent, TextareaFieldClientProps, TextareaFieldDescriptionClientComponent, TextareaFieldDescriptionServerComponent, TextareaFieldDiffClientComponent, TextareaFieldDiffServerComponent, TextareaFieldErrorClientComponent, TextareaFieldErrorServerComponent, TextareaFieldLabelClientComponent, TextareaFieldLabelServerComponent, TextareaFieldServerComponent, TextareaFieldServerProps, TextareaFieldValidation, TimePickerProps, Timezone, TimezonesConfig, Transaction, TransformCollectionWithSelect, TransformDataWithSelect, TransformGlobalWithSelect, TraverseFieldsCallback, TypeWithID, TypeWithTimestamps, TypeWithVersion, TypedAuthOperations, TypedBlock, TypedCollection, TypedCollectionJoins, TypedCollectionSelect, TypedFallbackLocale, TypedGlobal, TypedGlobalSelect, TypedJobs, TypedLocale, TypedUploadCollection, TypedUser, TypedWidget, UIField, UIFieldClient, UIFieldClientComponent, UIFieldClientProps, UIFieldDiffClientComponent, UIFieldDiffServerComponent, UIFieldServerComponent, UIFieldServerProps, UnauthenticatedClientConfig, UnnamedGroupField, UnnamedGroupFieldClient, UnnamedTab, UnpublishButtonClientProps, UnpublishButtonServerProps, UnpublishButtonServerPropsOnly, UntypedPayloadTypes, UntypedUser, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateJobs, UpdateJobsArgs, UpdateMany, UpdateManyArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, UploadCollectionSlug, UploadConfig, UploadEdits, UploadField, UploadFieldClient, UploadFieldClientComponent, UploadFieldClientProps, UploadFieldDescriptionClientComponent, UploadFieldDescriptionServerComponent, UploadFieldDiffClientComponent, UploadFieldDiffServerComponent, UploadFieldErrorClientComponent, UploadFieldErrorServerComponent, UploadFieldLabelClientComponent, UploadFieldLabelServerComponent, UploadFieldManyValidation, UploadFieldServerComponent, UploadFieldServerProps, UploadFieldSingleValidation, UploadFieldValidation, Upsert, UpsertArgs, UntypedUser as User, UserSession, UsernameFieldValidation, Validate, ValidateOptions, ValidationFieldError, ValueWithRelation, VerifyConfig, VersionField, VersionOperations, VersionTab, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, Where, WhereField, Widget, WidgetInstance, WidgetServerProps, WidgetSlug, WidgetWidth, WithSelectFn, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };
|