payload 4.0.0-internal.2fddfc0 → 4.0.0-internal.3aa3d85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/bin.js +11 -0
- package/dist/admin/RichText.d.ts +1 -21
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- package/dist/admin/forms/Field.d.ts +2 -2
- package/dist/admin/forms/Field.d.ts.map +1 -1
- package/dist/admin/forms/Field.js.map +1 -1
- package/dist/admin/forms/Form.d.ts +0 -29
- package/dist/admin/forms/Form.d.ts.map +1 -1
- package/dist/admin/forms/Form.js.map +1 -1
- package/dist/admin/functions/index.d.ts +1 -1
- package/dist/admin/functions/index.js.map +1 -1
- package/dist/admin/types.d.ts +1 -0
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/auth/operations/auth.d.ts +2 -2
- package/dist/auth/operations/auth.d.ts.map +1 -1
- package/dist/auth/operations/auth.js.map +1 -1
- package/dist/auth/operations/login.d.ts +2 -1
- package/dist/auth/operations/login.d.ts.map +1 -1
- package/dist/auth/operations/login.js.map +1 -1
- package/dist/auth/operations/me.js.map +1 -1
- package/dist/auth/operations/refresh.d.ts.map +1 -1
- package/dist/auth/operations/refresh.js +9 -3
- package/dist/auth/operations/refresh.js.map +1 -1
- package/dist/auth/operations/resetPassword.d.ts.map +1 -1
- package/dist/auth/operations/resetPassword.js.map +1 -1
- package/dist/auth/sendVerificationEmail.d.ts +2 -2
- package/dist/auth/sendVerificationEmail.d.ts.map +1 -1
- package/dist/auth/sendVerificationEmail.js +1 -1
- package/dist/auth/sendVerificationEmail.js.map +1 -1
- package/dist/auth/sessions.d.ts +4 -5
- package/dist/auth/sessions.d.ts.map +1 -1
- package/dist/auth/sessions.js +5 -3
- package/dist/auth/sessions.js.map +1 -1
- package/dist/auth/strategies/apiKey.js.map +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.d.ts +2 -2
- package/dist/auth/strategies/local/incrementLoginAttempts.d.ts.map +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.js +1 -1
- package/dist/auth/strategies/local/incrementLoginAttempts.js.map +1 -1
- package/dist/auth/types.d.ts +28 -21
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/types.js.map +1 -1
- package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateCollections.js +10 -0
- package/dist/bin/generateImportMap/iterateCollections.js.map +1 -1
- package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +1 -1
- package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js +11 -3
- package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js.map +1 -1
- package/dist/collections/config/client.d.ts +1 -1
- package/dist/collections/config/client.d.ts.map +1 -1
- package/dist/collections/config/client.js +1 -0
- package/dist/collections/config/client.js.map +1 -1
- package/dist/collections/config/defaults.d.ts +0 -4
- package/dist/collections/config/defaults.d.ts.map +1 -1
- package/dist/collections/config/defaults.js +0 -15
- package/dist/collections/config/defaults.js.map +1 -1
- package/dist/collections/config/types.d.ts +6 -0
- package/dist/collections/config/types.d.ts.map +1 -1
- package/dist/collections/config/types.js.map +1 -1
- package/dist/collections/operations/findDistinct.d.ts.map +1 -1
- package/dist/collections/operations/findDistinct.js +1 -0
- package/dist/collections/operations/findDistinct.js.map +1 -1
- package/dist/collections/operations/local/count.d.ts +3 -3
- package/dist/collections/operations/local/count.d.ts.map +1 -1
- package/dist/collections/operations/local/count.js.map +1 -1
- package/dist/collections/operations/local/countVersions.d.ts +3 -3
- package/dist/collections/operations/local/countVersions.d.ts.map +1 -1
- package/dist/collections/operations/local/countVersions.js.map +1 -1
- package/dist/collections/operations/local/create.d.ts +3 -3
- package/dist/collections/operations/local/create.d.ts.map +1 -1
- package/dist/collections/operations/local/create.js.map +1 -1
- package/dist/collections/operations/local/delete.d.ts +3 -3
- package/dist/collections/operations/local/delete.d.ts.map +1 -1
- package/dist/collections/operations/local/delete.js.map +1 -1
- package/dist/collections/operations/local/duplicate.d.ts +3 -3
- package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
- package/dist/collections/operations/local/duplicate.js.map +1 -1
- package/dist/collections/operations/local/find.d.ts +3 -3
- package/dist/collections/operations/local/find.d.ts.map +1 -1
- package/dist/collections/operations/local/find.js.map +1 -1
- package/dist/collections/operations/local/findByID.d.ts +3 -3
- package/dist/collections/operations/local/findByID.d.ts.map +1 -1
- package/dist/collections/operations/local/findByID.js.map +1 -1
- package/dist/collections/operations/local/findDistinct.d.ts +2 -2
- package/dist/collections/operations/local/findDistinct.d.ts.map +1 -1
- package/dist/collections/operations/local/findDistinct.js.map +1 -1
- package/dist/collections/operations/local/findVersionByID.d.ts +3 -3
- package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
- package/dist/collections/operations/local/findVersionByID.js.map +1 -1
- package/dist/collections/operations/local/findVersions.d.ts +3 -3
- package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
- package/dist/collections/operations/local/findVersions.js.map +1 -1
- package/dist/collections/operations/local/restoreVersion.d.ts +3 -3
- package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
- package/dist/collections/operations/local/restoreVersion.js.map +1 -1
- package/dist/collections/operations/local/update.d.ts +3 -3
- package/dist/collections/operations/local/update.d.ts.map +1 -1
- package/dist/collections/operations/local/update.js.map +1 -1
- package/dist/collections/operations/utilities/types.d.ts +0 -9
- package/dist/collections/operations/utilities/types.d.ts.map +1 -1
- package/dist/collections/operations/utilities/types.js.map +1 -1
- package/dist/config/client.d.ts +2 -2
- package/dist/config/client.d.ts.map +1 -1
- package/dist/config/client.js.map +1 -1
- package/dist/config/defaults.d.ts +0 -4
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +0 -78
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/definePlugin.d.ts +10 -10
- package/dist/config/definePlugin.d.ts.map +1 -1
- package/dist/config/definePlugin.js +7 -11
- package/dist/config/definePlugin.js.map +1 -1
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/config/sanitize.js +137 -13
- package/dist/config/sanitize.js.map +1 -1
- package/dist/config/types.d.ts +35 -3
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js.map +1 -1
- package/dist/exports/internal.d.ts +1 -0
- package/dist/exports/internal.d.ts.map +1 -1
- package/dist/exports/internal.js +1 -0
- package/dist/exports/internal.js.map +1 -1
- package/dist/exports/shared.d.ts +3 -2
- package/dist/exports/shared.d.ts.map +1 -1
- package/dist/exports/shared.js +2 -1
- package/dist/exports/shared.js.map +1 -1
- package/dist/fields/baseFields/slug/countVersions.d.ts.map +1 -1
- package/dist/fields/baseFields/slug/countVersions.js +6 -8
- package/dist/fields/baseFields/slug/countVersions.js.map +1 -1
- package/dist/fields/baseFields/slug/generateSlug.d.ts +14 -7
- package/dist/fields/baseFields/slug/generateSlug.d.ts.map +1 -1
- package/dist/fields/baseFields/slug/generateSlug.js +53 -73
- package/dist/fields/baseFields/slug/generateSlug.js.map +1 -1
- package/dist/fields/baseFields/slug/types.d.ts +14 -0
- package/dist/fields/baseFields/slug/types.d.ts.map +1 -0
- package/dist/fields/baseFields/slug/types.js +6 -0
- package/dist/fields/baseFields/slug/types.js.map +1 -0
- package/dist/fields/config/client.d.ts +1 -1
- package/dist/fields/config/client.d.ts.map +1 -1
- package/dist/fields/config/client.js +2 -1
- 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 +39 -0
- package/dist/fields/config/sanitize.js.map +1 -1
- package/dist/fields/config/types.d.ts +44 -8
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js.map +1 -1
- package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
- package/dist/fields/hooks/afterRead/promise.js +11 -1
- package/dist/fields/hooks/afterRead/promise.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.js +10 -1
- package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
- package/dist/fields/setDefaultBeforeDuplicate.js +1 -0
- package/dist/fields/setDefaultBeforeDuplicate.js.map +1 -1
- package/dist/fields/sortableFieldTypes.d.ts.map +1 -1
- package/dist/fields/sortableFieldTypes.js +1 -0
- package/dist/fields/sortableFieldTypes.js.map +1 -1
- package/dist/fields/validations.d.ts +4 -1
- package/dist/fields/validations.d.ts.map +1 -1
- package/dist/fields/validations.js +7 -0
- package/dist/fields/validations.js.map +1 -1
- package/dist/globals/operations/local/countVersions.d.ts +3 -3
- package/dist/globals/operations/local/countVersions.d.ts.map +1 -1
- package/dist/globals/operations/local/countVersions.js.map +1 -1
- package/dist/globals/operations/local/findOne.d.ts +3 -3
- package/dist/globals/operations/local/findOne.d.ts.map +1 -1
- package/dist/globals/operations/local/findOne.js.map +1 -1
- package/dist/globals/operations/local/findVersionByID.d.ts +3 -3
- package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/local/findVersionByID.js.map +1 -1
- package/dist/globals/operations/local/findVersions.d.ts +3 -3
- package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
- package/dist/globals/operations/local/findVersions.js.map +1 -1
- package/dist/globals/operations/local/restoreVersion.d.ts +3 -3
- package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
- package/dist/globals/operations/local/restoreVersion.js.map +1 -1
- package/dist/globals/operations/local/update.d.ts +3 -3
- package/dist/globals/operations/local/update.d.ts.map +1 -1
- package/dist/globals/operations/local/update.js.map +1 -1
- package/dist/index.bundled.d.ts +365 -300
- package/dist/index.d.ts +59 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/preferences/keys.d.ts +4 -0
- package/dist/preferences/keys.d.ts.map +1 -1
- package/dist/preferences/keys.js +4 -1
- package/dist/preferences/keys.js.map +1 -1
- package/dist/preferences/types.d.ts +15 -0
- package/dist/preferences/types.d.ts.map +1 -1
- package/dist/preferences/types.js +3 -1
- package/dist/preferences/types.js.map +1 -1
- package/dist/types/index.d.ts +8 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts.map +1 -1
- package/dist/uploads/fetchAPI-multipart/processMultipart.js +1 -14
- package/dist/uploads/fetchAPI-multipart/processMultipart.js.map +1 -1
- package/dist/uploads/matchMimeType.d.ts +8 -0
- package/dist/uploads/matchMimeType.d.ts.map +1 -0
- package/dist/uploads/matchMimeType.js +19 -0
- package/dist/uploads/matchMimeType.js.map +1 -0
- package/dist/uploads/matchMimeType.spec.js +66 -0
- package/dist/uploads/matchMimeType.spec.js.map +1 -0
- package/dist/uploads/types.d.ts +21 -0
- package/dist/uploads/types.d.ts.map +1 -1
- package/dist/uploads/types.js.map +1 -1
- package/dist/utilities/addDataAndFileToRequest.d.ts.map +1 -1
- package/dist/utilities/addDataAndFileToRequest.js +6 -0
- package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
- package/dist/utilities/configToJSONSchema.d.ts +13 -4
- package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
- package/dist/utilities/configToJSONSchema.js +139 -61
- package/dist/utilities/configToJSONSchema.js.map +1 -1
- package/dist/utilities/configToJSONSchema.spec.js +319 -0
- package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
- package/dist/utilities/createLocalReq.d.ts +2 -2
- package/dist/utilities/createLocalReq.d.ts.map +1 -1
- package/dist/utilities/createLocalReq.js.map +1 -1
- package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
- package/dist/utilities/createPayloadRequest.js +1 -0
- package/dist/utilities/createPayloadRequest.js.map +1 -1
- package/dist/utilities/getEntityPermissions/getEntityPermissions.d.ts.map +1 -1
- package/dist/utilities/getEntityPermissions/getEntityPermissions.js +2 -0
- package/dist/utilities/getEntityPermissions/getEntityPermissions.js.map +1 -1
- package/dist/utilities/getEntityPermissions/populateFieldPermissions.d.ts +7 -1
- package/dist/utilities/getEntityPermissions/populateFieldPermissions.d.ts.map +1 -1
- package/dist/utilities/getEntityPermissions/populateFieldPermissions.js +19 -2
- package/dist/utilities/getEntityPermissions/populateFieldPermissions.js.map +1 -1
- package/dist/utilities/isURLAllowed.d.ts.map +1 -1
- package/dist/utilities/isURLAllowed.js +9 -3
- package/dist/utilities/isURLAllowed.js.map +1 -1
- package/dist/utilities/isURLAllowed.spec.js +78 -0
- package/dist/utilities/isURLAllowed.spec.js.map +1 -0
- package/dist/utilities/telemetry/conf/envPaths.d.ts.map +1 -1
- package/dist/utilities/telemetry/conf/envPaths.js +40 -31
- package/dist/utilities/telemetry/conf/envPaths.js.map +1 -1
- package/dist/utilities/telemetry/events/adminInit.d.ts.map +1 -1
- package/dist/utilities/telemetry/events/adminInit.js +2 -3
- package/dist/utilities/telemetry/events/adminInit.js.map +1 -1
- package/dist/utilities/telemetry/events/serverInit.d.ts.map +1 -1
- package/dist/utilities/telemetry/events/serverInit.js +2 -3
- package/dist/utilities/telemetry/events/serverInit.js.map +1 -1
- package/dist/utilities/telemetry/index.d.ts +14 -3
- package/dist/utilities/telemetry/index.d.ts.map +1 -1
- package/dist/utilities/telemetry/index.js +6 -1
- package/dist/utilities/telemetry/index.js.map +1 -1
- package/dist/utilities/telemetry/index.spec.js +43 -0
- package/dist/utilities/telemetry/index.spec.js.map +1 -0
- package/dist/versions/schedule/job.js.map +1 -1
- package/package.json +3 -3
- package/dist/fields/baseFields/slug/index.d.ts +0 -89
- package/dist/fields/baseFields/slug/index.d.ts.map +0 -1
- package/dist/fields/baseFields/slug/index.js +0 -81
- package/dist/fields/baseFields/slug/index.js.map +0 -1
- package/dist/utilities/isRSCEnabled.d.ts +0 -12
- package/dist/utilities/isRSCEnabled.d.ts.map +0 -1
- package/dist/utilities/isRSCEnabled.js +0 -14
- package/dist/utilities/isRSCEnabled.js.map +0 -1
package/dist/index.bundled.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { default as deepMerge } from 'deepmerge';
|
|
|
18
18
|
import { PinoPretty } from 'pino-pretty';
|
|
19
19
|
import { DatePickerProps } from 'react-datepicker';
|
|
20
20
|
|
|
21
|
-
declare const clientTranslationKeys: ("authentication:account" | "authentication:accountOfCurrentUser" | "authentication:accountVerified" | "authentication:alreadyActivated" | "authentication:alreadyLoggedIn" | "authentication:apiKey" | "authentication:authenticated" | "authentication:backToLogin" | "authentication:beginCreateFirstUser" | "authentication:changePassword" | "authentication:checkYourEmailForPasswordReset" | "authentication:confirmGeneration" | "authentication:confirmPassword" | "authentication:createFirstUser" | "authentication:createUser" | "authentication:emailNotValid" | "authentication:emailOrUsername" | "authentication:emailSent" | "authentication:emailVerified" | "authentication:emailVerifiedRedirecting" | "authentication:enableAPIKey" | "authentication:failedToUnlock" | "authentication:forceUnlock" | "authentication:forgotPassword" | "authentication:forgotPasswordEmailInstructions" | "authentication:forgotPasswordUsernameInstructions" | "authentication:usernameNotValid" | "authentication:forgotPasswordQuestion" | "authentication:generate" | "authentication:generateNewAPIKey" | "authentication:generatingNewAPIKeyWillInvalidate" | "authentication:logBackIn" | "authentication:loggedIn" | "authentication:loggedInChangePassword" | "authentication:loggedOutInactivity" | "authentication:loggedOutSuccessfully" | "authentication:loggingOut" | "authentication:login" | "authentication:logOut" | "authentication:logout" | "authentication:logoutSuccessful" | "authentication:logoutUser" | "authentication:newAPIKeyGenerated" | "authentication:newPassword" | "authentication:notRedirected" | "authentication:passed" | "authentication:passwordResetSuccessfully" | "authentication:resetPassword" | "authentication:stayLoggedIn" | "authentication:successfullyRegisteredFirstUser" | "authentication:successfullyUnlocked" | "authentication:tokenRefreshSuccessful" | "authentication:unableToVerify" | "authentication:username" | "authentication:verified" | "authentication:verifiedSuccessfully" | "authentication:verify" | "authentication:verifyUser" | "authentication:youAreInactive" | "commandPalette:createNew" | "commandPalette:hintClose" | "commandPalette:hintCreate" | "commandPalette:hintNavigate" | "commandPalette:hintSelect" | "commandPalette:noResults" | "commandPalette:placeholder" | "commandPalette:title" | "dashboard:addButton" | "dashboard:addWidget" | "dashboard:deleteWidget" | "dashboard:discardConfirmLabel" | "dashboard:discardMessage" | "dashboard:discardTitle" | "dashboard:editDashboard" | "dashboard:editingDashboard" | "dashboard:noItems" | "dashboard:resetLayout" | "dashboard:searchWidgets" | "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:access" | "general:addBelow" | "general:addFilter" | "general:adminTheme" | "general:all" | "general:allCollections" | "general:allLocales" | "general:and" | "general:anotherUser" | "general:anotherUserTakenOver" | "general:applyChanges" | "general:ascending" | "general:auto" | "general:automatic" | "general:backToDashboard" | "general:by" | "general:cancel" | "general:changesNotSaved" | "general:checked" | "general:clear" | "general:clearAll" | "general:close" | "general:collapse" | "general:collection" | "general:collections" | "general:columns" | "general:columnToSort" | "general:confirm" | "general:confirmCopy" | "general:confirmDeletion" | "general:confirmDuplication" | "general:confirmMove" | "general:confirmReindex" | "general:confirmReindexAll" | "general:confirmReindexDescription" | "general:confirmReindexDescriptionAll" | "general:confirmRestoration" | "general:copied" | "general:copy" | "general:copyField" | "general:copying" | "general:copyRow" | "general:copyWarning" | "general:create" | "general:created" | "general:createdAt" | "general:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:custom" | "general:dark" | "general:decrement" | "general:delete" | "general:deleted" | "general:deletedAgo" | "general:deletedAt" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleteLabel" | "general:deletePermanently" | "general:deleting" | "general:depth" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documentIsTrashed" | "general:documentLocked" | "general:documentModified" | "general:documentOutOfDate" | "general:documents" | "general:dragToReorder" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editColumns" | "general:editedSince" | "general:editing" | "general:editingTakenOver" | "general:editLabel" | "general:email" | "general:emailAddress" | "general:emptyTrash" | "general:emptyTrashLabel" | "general:enhancedContrastMode" | "general:enterANumber" | "general:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:expand" | "general:export" | "general:fallbackToDefaultLocale" | "general:false" | "general:field" | "general:filter" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:hideSidebar" | "general:import" | "general:increment" | "general:isEditing" | "general:item" | "general:lastModified" | "general:layout" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:loadMore" | "general:locale" | "general:locales" | "general:lock" | "general:manageLabel" | "general:menu" | "general:moreOptions" | "general:move" | "general:moveConfirm" | "general:moveCount" | "general:moveDown" | "general:moveUp" | "general:moving" | "general:movingCount" | "general:next" | "general:no" | "general:noDateSelected" | "general:noFiltersSet" | "general:noLabel" | "general:noMatchesFound" | "general:none" | "general:noOptions" | "general:noResultsDescription" | "general:noResultsFound" | "general:nothingFound" | "general:noTrashResults" | "general:notShownInTable" | "general:noUpcomingEventsScheduled" | "general:noValue" | "general:only" | "general:open" | "general:openInNewWindow" | "general:or" | "general:order" | "general:overwriteExistingData" | "general:pageNotFound" | "general:password" | "general:pasteField" | "general:pasteRow" | "general:payloadSettings" | "general:permanentlyDelete" | "general:permanentlyDeletedCountSuccessfully" | "general:perPage" | "general:perPageLabel" | "general:presets" | "general:previous" | "general:reindex" | "general:reindexingAll" | "general:reloadDocument" | "general:remove" | "general:rename" | "general:reset" | "general:resetPreferences" | "general:resetPreferencesDescription" | "general:resettingPreferences" | "general:restore" | "general:restoreAsPublished" | "general:restoredCountSuccessfully" | "general:restoring" | "general:retry" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:schedulePublishFor" | "general:searchBy" | "general:searchColumns" | "general:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:settings" | "general:showAllLabel" | "general:shownInTable" | "general:showSidebar" | "general:sorryNotFound" | "general:sort" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:successfullyReindexed" | "general:takeOver" | "general:theme" | "general:thisLanguage" | "general:time" | "general:timezone" | "general:titleDeleted" | "general:titleRestored" | "general:titleTrashed" | "general:toggle" | "general:trash" | "general:trashedCountSuccessfully" | "general:true" | "general:unchecked" | "general:unlock" | "general:unsavedChanges" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:upcomingEvents" | "general:updatedAgo" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedLabelSuccessfully" | "general:updatedSuccessfully" | "general:updateForEveryone" | "general:updating" | "general:uploading" | "general:uploadingBulk" | "general:user" | "general:users" | "general:value" | "general:viewing" | "general:viewReadOnly" | "general:welcome" | "general:where" | "general:yes" | "hierarchy:noResults" | "hierarchy:itemsMovedTo" | "hierarchy:itemsMovedToRoot" | "hierarchy:moveItemsToRootConfirmation" | "hierarchy:moveToRoot" | "hierarchy:noParent" | "hierarchy:searchLabel" | "localization:cannotCopySameLocale" | "localization:copyFrom" | "localization:copyFromTo" | "localization:copyTo" | "localization:copyToLocale" | "localization:localeToPublish" | "localization:selectedLocales" | "localization:selectLocaleToCopy" | "localization:selectLocaleToDuplicate" | "operators:contains" | "operators:equals" | "operators:exists" | "operators:intersects" | "operators:near" | "operators:within" | "operators:isGreaterThan" | "operators:isGreaterThanOrEqualTo" | "operators:isIn" | "operators:isLessThan" | "operators:isLessThanOrEqualTo" | "operators:isLike" | "operators:isNotEqualTo" | "operators:isNotIn" | "operators:isNotLike" | "upload:addFile" | "upload:addFiles" | "upload:bulkUpload" | "upload:crop" | "upload:cropToolDescription" | "upload:download" | "upload:dragAndDrop" | "upload:editImage" | "upload:fileName" | "upload:fileSize" | "upload:filesToUpload" | "upload:fileToUpload" | "upload:focalPoint" | "upload:focalPointDescription" | "upload:height" | "upload:noFile" | "upload:pasteURL" | "upload:previewSizes" | "upload:selectCollectionToBrowse" | "upload:selectFile" | "upload:setCropArea" | "upload:setFocalPoint" | "upload:sizes" | "upload:sizesFor" | "upload:width" | "validation:username" | "validation:emailAddress" | "validation:enterNumber" | "validation:fieldHasNo" | "validation:greaterThanMax" | "validation:invalidBlock" | "validation:invalidBlocks" | "validation:invalidInput" | "validation:invalidSelection" | "validation:invalidSelections" | "validation:latitudeOutOfBounds" | "validation:lessThanMin" | "validation:limitReached" | "validation:longerThanMin" | "validation:longitudeOutOfBounds" | "validation:notValidDate" | "validation:required" | "validation:requiresAtLeast" | "validation:requiresNoMoreThan" | "validation:requiresTwoNumbers" | "validation:shorterThanMax" | "validation:timezoneRequired" | "validation:trueOrFalse" | "validation:validUploadID" | "version:version" | "version:aboutToRestore" | "version:restoring" | "version:type" | "version:aboutToPublishSelection" | "version:aboutToRestoreGlobal" | "version:aboutToRevertToPublished" | "version:aboutToUnpublish" | "version:aboutToUnpublishIn" | "version:aboutToUnpublishSelection" | "version:autosave" | "version:autosavedSuccessfully" | "version:autosavedVersion" | "version:changed" | "version:compareVersions" | "version:comparingAgainst" | "version:confirmPublish" | "version:confirmRevertToSaved" | "version:confirmUnpublish" | "version:confirmVersionRestoration" | "version:currentDraft" | "version:currentlyPublished" | "version:currentlyViewing" | "version:currentPublishedVersion" | "version:draft" | "version:draftHasPublishedVersion" | "version:draftSavedSuccessfully" | "version:lastSavedAgo" | "version:modifiedOnly" | "version:moreVersions" | "version:noFurtherVersionsFound" | "version:noLabelGroup" | "version:noRowsFound" | "version:noRowsSelected" | "version:preview" | "version:previouslyDraft" | "version:previouslyPublished" | "version:previousVersion" | "version:problemRestoringVersion" | "version:publish" | "version:publishAllLocales" | "version:publishChanges" | "version:published" | "version:publishIn" | "version:publishing" | "version:restoreAsDraft" | "version:restoredSuccessfully" | "version:restoreThisVersion" | "version:reverting" | "version:revertToPublished" | "version:revertUnsuccessful" | "version:saveDraft" | "version:scheduledSuccessfully" | "version:schedulePublish" | "version:selectLocales" | "version:selectVersionToCompare" | "version:showLocales" | "version:specificVersion" | "version:status" | "version:unpublish" | "version:unpublished" | "version:unpublishedSuccessfully" | "version:unpublishIn" | "version:unpublishing" | "version:versionAgo" | "version:versionID" | "version:versions" | "version:viewingVersion" | "version:viewingVersionGlobal" | "version:viewingVersions" | "version:viewingVersionsGlobal" | "general:aboutToDeleteCount" | "general:editingLabel" | "version:changedFieldsCount")[];
|
|
21
|
+
declare const clientTranslationKeys: ("authentication:account" | "authentication:accountOfCurrentUser" | "authentication:accountVerified" | "authentication:alreadyActivated" | "authentication:alreadyLoggedIn" | "authentication:apiKey" | "authentication:authenticated" | "authentication:backToLogin" | "authentication:beginCreateFirstUser" | "authentication:changePassword" | "authentication:checkYourEmailForPasswordReset" | "authentication:confirmGeneration" | "authentication:confirmPassword" | "authentication:createFirstUser" | "authentication:createUser" | "authentication:emailNotValid" | "authentication:emailOrUsername" | "authentication:emailSent" | "authentication:emailVerified" | "authentication:emailVerifiedRedirecting" | "authentication:enableAPIKey" | "authentication:failedToUnlock" | "authentication:forceUnlock" | "authentication:forgotPassword" | "authentication:forgotPasswordEmailInstructions" | "authentication:forgotPasswordUsernameInstructions" | "authentication:usernameNotValid" | "authentication:forgotPasswordQuestion" | "authentication:generate" | "authentication:generateNewAPIKey" | "authentication:generatingNewAPIKeyWillInvalidate" | "authentication:logBackIn" | "authentication:loggedIn" | "authentication:loggedInChangePassword" | "authentication:loggedOutInactivity" | "authentication:loggedOutSuccessfully" | "authentication:loggingOut" | "authentication:login" | "authentication:logOut" | "authentication:logout" | "authentication:logoutSuccessful" | "authentication:logoutUser" | "authentication:newAPIKeyGenerated" | "authentication:newPassword" | "authentication:notRedirected" | "authentication:passed" | "authentication:passwordResetSuccessfully" | "authentication:resetPassword" | "authentication:stayLoggedIn" | "authentication:successfullyRegisteredFirstUser" | "authentication:successfullyUnlocked" | "authentication:tokenRefreshSuccessful" | "authentication:unableToVerify" | "authentication:username" | "authentication:verified" | "authentication:verifiedSuccessfully" | "authentication:verify" | "authentication:verifyUser" | "authentication:youAreInactive" | "commandPalette:createNew" | "commandPalette:hintClose" | "commandPalette:hintCreate" | "commandPalette:hintNavigate" | "commandPalette:hintSelect" | "commandPalette:noResults" | "commandPalette:placeholder" | "commandPalette:title" | "dashboard:addButton" | "dashboard:addWidget" | "dashboard:deleteWidget" | "dashboard:discardConfirmLabel" | "dashboard:discardMessage" | "dashboard:discardTitle" | "dashboard:editDashboard" | "dashboard:editingDashboard" | "dashboard:noItems" | "dashboard:resetLayout" | "dashboard:searchWidgets" | "dashboard:widgetCollectionRequired" | "dashboard:widgetConfigurationError" | "dashboard:widgetInvalidCollection" | "dashboard:widgetInvalidFilterField" | "dashboard:widgetInvalidSortField" | "dashboard:widgetLimitLabel" | "dashboard:widgetNonSortableSortField" | "dashboard:widgetQueryError" | "dashboard:widgetRecentlyViewedEmpty" | "dashboard:widgetRecentlyViewedTitle" | "dashboard:widgetSelectCollectionFirst" | "dashboard:widgetSelectSortField" | "dashboard:widgetSortDirectionLabel" | "dashboard:widgetSortFieldLabel" | "dashboard:widgetTitleFallback" | "dashboard:widgetTitleLabel" | "error:autosaving" | "error:correctInvalidFields" | "error:deletingTitle" | "error:documentNotFound" | "error:emailOrPasswordIncorrect" | "error:failedToResetLayout" | "error:failedToSaveLayout" | "error:insufficientClipboardPermissions" | "error:invalidClipboardData" | "error:invalidFileType" | "error:invalidRequestArgs" | "error:loadingDocument" | "error:logoutFailed" | "error:noMatchedField" | "error:notAllowedToAccessPage" | "error:notAllowedToPerformAction" | "error:previewing" | "error:problemUploadingFile" | "error:restoringTitle" | "error:revertingDocument" | "error:tokenNotProvided" | "error:unableToCopy" | "error:unableToDeleteCount" | "error:unableToReindexCollection" | "error:unableToUpdateCount" | "error:unauthorized" | "error:unauthorizedAdmin" | "error:unknown" | "error:unPublishingDocument" | "error:unspecific" | "error:unverifiedEmail" | "error:userEmailAlreadyRegistered" | "error:usernameAlreadyRegistered" | "error:usernameOrPasswordIncorrect" | "fields:blocks" | "fields:addLabel" | "fields:addLink" | "fields:addNew" | "fields:addNewLabel" | "fields:addRelationship" | "fields:addUpload" | "fields:block" | "fields:blockName" | "fields:blockType" | "fields:chooseBetweenCustomTextOrDocument" | "fields:chooseDocumentToLink" | "fields:chooseFromExisting" | "fields:collapseAll" | "fields:customURL" | "fields:editLink" | "fields:editRelationship" | "fields:enterURL" | "fields:hidePassword" | "fields:internalLink" | "fields:itemsAndMore" | "fields:labelRelationship" | "fields:latitude" | "fields:linkedTo" | "fields:linkType" | "fields:longitude" | "fields:openInNewTab" | "fields:passwordsDoNotMatch" | "fields:removeRelationship" | "fields:removeUpload" | "fields:saveChanges" | "fields:searchForBlock" | "fields:searchForLanguage" | "fields:selectFieldsToEdit" | "fields:showAll" | "fields:showPassword" | "fields:swapRelationship" | "fields:swapUpload" | "fields:textToDisplay" | "fields:toggleBlock" | "fields:uploadNewLabel" | "general:items" | "general:of" | "general:language" | "general:dashboard" | "general:error" | "general:username" | "general:createNew" | "general:noResults" | "general:notFound" | "general:unauthorized" | "general:newLabel" | "general:saveChanges" | "general:name" | "general:aboutToDelete" | "general:aboutToPermanentlyDelete" | "general:aboutToPermanentlyDeleteTrash" | "general:aboutToRestore" | "general:aboutToRestoreAsDraft" | "general:aboutToRestoreAsDraftCount" | "general:aboutToRestoreCount" | "general:aboutToTrash" | "general:aboutToTrashCount" | "general:accepts" | "general:access" | "general:addBelow" | "general:addFilter" | "general:adminTheme" | "general:all" | "general:allCollections" | "general:allLocales" | "general:and" | "general:anotherUser" | "general:anotherUserTakenOver" | "general:applyChanges" | "general:ascending" | "general:auto" | "general:automatic" | "general:backToDashboard" | "general:by" | "general:cancel" | "general:changesNotSaved" | "general:checked" | "general:clear" | "general:clearAll" | "general:close" | "general:collapse" | "general:collection" | "general:collections" | "general:columns" | "general:columnToSort" | "general:confirm" | "general:confirmCopy" | "general:confirmDeletion" | "general:confirmDuplication" | "general:confirmMove" | "general:confirmReindex" | "general:confirmReindexAll" | "general:confirmReindexDescription" | "general:confirmReindexDescriptionAll" | "general:confirmRestoration" | "general:copied" | "general:copy" | "general:copyField" | "general:copying" | "general:copyRow" | "general:copyWarning" | "general:create" | "general:created" | "general:createdAt" | "general:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:custom" | "general:dark" | "general:decrement" | "general:delete" | "general:deleted" | "general:deletedAgo" | "general:deletedAt" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleteLabel" | "general:deletePermanently" | "general:deleting" | "general:depth" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documentIsTrashed" | "general:documentLocked" | "general:documentModified" | "general:documentOutOfDate" | "general:documents" | "general:dragToReorder" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editColumns" | "general:editedSince" | "general:editing" | "general:editingTakenOver" | "general:editLabel" | "general:email" | "general:emailAddress" | "general:emptyTrash" | "general:emptyTrashLabel" | "general:enhancedContrastMode" | "general:enterANumber" | "general:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:expand" | "general:export" | "general:fallbackToDefaultLocale" | "general:false" | "general:field" | "general:filter" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:hideSidebar" | "general:import" | "general:increment" | "general:isEditing" | "general:item" | "general:lastModified" | "general:layout" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:loadMore" | "general:locale" | "general:locales" | "general:lock" | "general:manageLabel" | "general:menu" | "general:moreOptions" | "general:move" | "general:moveConfirm" | "general:moveCount" | "general:moveDown" | "general:moveUp" | "general:moving" | "general:movingCount" | "general:next" | "general:no" | "general:noDateSelected" | "general:noFiltersSet" | "general:noLabel" | "general:noMatchesFound" | "general:none" | "general:noOptions" | "general:noResultsDescription" | "general:noResultsFound" | "general:nothingFound" | "general:noTrashResults" | "general:notShownInTable" | "general:noUpcomingEventsScheduled" | "general:noValue" | "general:only" | "general:open" | "general:openInNewWindow" | "general:or" | "general:order" | "general:original" | "general:overwriteExistingData" | "general:pageNotFound" | "general:password" | "general:pasteField" | "general:pasteRow" | "general:payloadSettings" | "general:permanentlyDelete" | "general:permanentlyDeletedCountSuccessfully" | "general:perPage" | "general:perPageLabel" | "general:presets" | "general:previous" | "general:reindex" | "general:reindexingAll" | "general:reloadDocument" | "general:remove" | "general:rename" | "general:reset" | "general:resetPreferences" | "general:resetPreferencesDescription" | "general:resettingPreferences" | "general:restore" | "general:restoreAsPublished" | "general:restoredCountSuccessfully" | "general:restoring" | "general:retry" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:schedulePublishFor" | "general:searchBy" | "general:searchColumns" | "general:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:settings" | "general:showAllLabel" | "general:shownInTable" | "general:showSidebar" | "general:sorryNotFound" | "general:sort" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:successfullyReindexed" | "general:takeOver" | "general:theme" | "general:thisLanguage" | "general:time" | "general:timezone" | "general:titleDeleted" | "general:titleRestored" | "general:titleTrashed" | "general:toggle" | "general:trash" | "general:trashedCountSuccessfully" | "general:true" | "general:unchecked" | "general:unlock" | "general:unsavedChanges" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:upcomingEvents" | "general:updatedAgo" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedLabelSuccessfully" | "general:updatedSuccessfully" | "general:updateForEveryone" | "general:updating" | "general:uploading" | "general:uploadingBulk" | "general:user" | "general:users" | "general:value" | "general:viewing" | "general:viewReadOnly" | "general:welcome" | "general:where" | "general:yes" | "hierarchy:noResults" | "hierarchy:itemsMovedTo" | "hierarchy:itemsMovedToRoot" | "hierarchy:moveItemsToRootConfirmation" | "hierarchy:moveToRoot" | "hierarchy:noParent" | "hierarchy:searchLabel" | "localization:cannotCopySameLocale" | "localization:copyFrom" | "localization:copyFromTo" | "localization:copyTo" | "localization:copyToLocale" | "localization:localeToPublish" | "localization:selectedLocales" | "localization:selectLocaleToCopy" | "localization:selectLocaleToDuplicate" | "operators:contains" | "operators:equals" | "operators:exists" | "operators:intersects" | "operators:near" | "operators:within" | "operators:isGreaterThan" | "operators:isGreaterThanOrEqualTo" | "operators:isIn" | "operators:isLessThan" | "operators:isLessThanOrEqualTo" | "operators:isLike" | "operators:isNotEqualTo" | "operators:isNotIn" | "operators:isNotLike" | "upload:addFile" | "upload:addFiles" | "upload:bulkUpload" | "upload:crop" | "upload:cropToolDescription" | "upload:download" | "upload:dragAndDrop" | "upload:editImage" | "upload:fileName" | "upload:fileSize" | "upload:filesToUpload" | "upload:fileToUpload" | "upload:focalPoint" | "upload:focalPointDescription" | "upload:fromURL" | "upload:height" | "upload:linkToFile" | "upload:noFile" | "upload:pasteURL" | "upload:previewSizes" | "upload:renameFile" | "upload:replaceFile" | "upload:selectCollectionToBrowse" | "upload:selectFile" | "upload:setCropArea" | "upload:setFocalPoint" | "upload:sizes" | "upload:sizesFor" | "upload:width" | "validation:username" | "validation:emailAddress" | "validation:enterNumber" | "validation:fieldHasNo" | "validation:greaterThanMax" | "validation:invalidBlock" | "validation:invalidBlocks" | "validation:invalidInput" | "validation:invalidSelection" | "validation:invalidSelections" | "validation:latitudeOutOfBounds" | "validation:lessThanMin" | "validation:limitReached" | "validation:longerThanMin" | "validation:longitudeOutOfBounds" | "validation:notValidDate" | "validation:required" | "validation:requiresAtLeast" | "validation:requiresNoMoreThan" | "validation:requiresTwoNumbers" | "validation:shorterThanMax" | "validation:timezoneRequired" | "validation:trueOrFalse" | "validation:validUploadID" | "version:version" | "version:aboutToRestore" | "version:restoring" | "version:type" | "version:aboutToPublishSelection" | "version:aboutToRestoreGlobal" | "version:aboutToRevertToPublished" | "version:aboutToUnpublish" | "version:aboutToUnpublishIn" | "version:aboutToUnpublishSelection" | "version:autosave" | "version:autosavedSuccessfully" | "version:autosavedVersion" | "version:changed" | "version:compareVersions" | "version:comparingAgainst" | "version:confirmPublish" | "version:confirmRevertToSaved" | "version:confirmUnpublish" | "version:confirmVersionRestoration" | "version:currentDraft" | "version:currentlyPublished" | "version:currentlyViewing" | "version:currentPublishedVersion" | "version:draft" | "version:draftHasPublishedVersion" | "version:draftSavedSuccessfully" | "version:lastSavedAgo" | "version:modifiedOnly" | "version:moreVersions" | "version:noFurtherVersionsFound" | "version:noLabelGroup" | "version:noRowsFound" | "version:noRowsSelected" | "version:preview" | "version:previouslyDraft" | "version:previouslyPublished" | "version:previousVersion" | "version:problemRestoringVersion" | "version:publish" | "version:publishAllLocales" | "version:publishChanges" | "version:published" | "version:publishIn" | "version:publishing" | "version:restoreAsDraft" | "version:restoredSuccessfully" | "version:restoreThisVersion" | "version:reverting" | "version:revertToPublished" | "version:revertUnsuccessful" | "version:saveDraft" | "version:scheduledSuccessfully" | "version:schedulePublish" | "version:selectLocales" | "version:selectVersionToCompare" | "version:showLocales" | "version:specificVersion" | "version:status" | "version:unpublish" | "version:unpublished" | "version:unpublishedSuccessfully" | "version:unpublishIn" | "version:unpublishing" | "version:versionAgo" | "version:versionID" | "version:versions" | "version:viewingVersion" | "version:viewingVersionGlobal" | "version:viewingVersions" | "version:viewingVersionsGlobal" | "general:aboutToDeleteCount" | "general:editingLabel" | "version:changedFieldsCount")[];
|
|
22
22
|
|
|
23
23
|
declare const enTranslations: {
|
|
24
24
|
authentication: {
|
|
@@ -122,6 +122,22 @@ declare const enTranslations: {
|
|
|
122
122
|
noItems: string;
|
|
123
123
|
resetLayout: string;
|
|
124
124
|
searchWidgets: string;
|
|
125
|
+
widgetCollectionRequired: string;
|
|
126
|
+
widgetConfigurationError: string;
|
|
127
|
+
widgetInvalidCollection: string;
|
|
128
|
+
widgetInvalidFilterField: string;
|
|
129
|
+
widgetInvalidSortField: string;
|
|
130
|
+
widgetLimitLabel: string;
|
|
131
|
+
widgetNonSortableSortField: string;
|
|
132
|
+
widgetQueryError: string;
|
|
133
|
+
widgetRecentlyViewedEmpty: string;
|
|
134
|
+
widgetRecentlyViewedTitle: string;
|
|
135
|
+
widgetSelectCollectionFirst: string;
|
|
136
|
+
widgetSelectSortField: string;
|
|
137
|
+
widgetSortDirectionLabel: string;
|
|
138
|
+
widgetSortFieldLabel: string;
|
|
139
|
+
widgetTitleFallback: string;
|
|
140
|
+
widgetTitleLabel: string;
|
|
125
141
|
};
|
|
126
142
|
error: {
|
|
127
143
|
accountAlreadyActivated: string;
|
|
@@ -186,6 +202,7 @@ declare const enTranslations: {
|
|
|
186
202
|
addRelationship: string;
|
|
187
203
|
addUpload: string;
|
|
188
204
|
block: string;
|
|
205
|
+
blockName: string;
|
|
189
206
|
blocks: string;
|
|
190
207
|
blockType: string;
|
|
191
208
|
chooseBetweenCustomTextOrDocument: string;
|
|
@@ -401,6 +418,7 @@ declare const enTranslations: {
|
|
|
401
418
|
openInNewWindow: string;
|
|
402
419
|
or: string;
|
|
403
420
|
order: string;
|
|
421
|
+
original: string;
|
|
404
422
|
overwriteExistingData: string;
|
|
405
423
|
pageNotFound: string;
|
|
406
424
|
password: string;
|
|
@@ -547,12 +565,16 @@ declare const enTranslations: {
|
|
|
547
565
|
fileToUpload: string;
|
|
548
566
|
focalPoint: string;
|
|
549
567
|
focalPointDescription: string;
|
|
568
|
+
fromURL: string;
|
|
550
569
|
height: string;
|
|
551
570
|
lessInfo: string;
|
|
571
|
+
linkToFile: string;
|
|
552
572
|
moreInfo: string;
|
|
553
573
|
noFile: string;
|
|
554
574
|
pasteURL: string;
|
|
555
575
|
previewSizes: string;
|
|
576
|
+
renameFile: string;
|
|
577
|
+
replaceFile: string;
|
|
556
578
|
selectCollectionToBrowse: string;
|
|
557
579
|
selectFile: string;
|
|
558
580
|
setCropArea: string;
|
|
@@ -966,28 +988,38 @@ type SanitizedPermissions = {
|
|
|
966
988
|
[globalSlug: string]: SanitizedGlobalPermission;
|
|
967
989
|
};
|
|
968
990
|
};
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
991
|
+
/**
|
|
992
|
+
* Fields injected onto a user at authentication time. They are never stored in the database and
|
|
993
|
+
* never present on a plain document read (e.g. `payload.findByID`) - only on the authenticated
|
|
994
|
+
* user (`req.user`, login/auth/me results, auth strategies).
|
|
995
|
+
*/
|
|
996
|
+
type AuthRuntimeFields = {
|
|
997
|
+
/**
|
|
998
|
+
* The session ID of the current request. Present only when sessions are enabled.
|
|
999
|
+
*/
|
|
1000
|
+
_sid?: string;
|
|
1001
|
+
/**
|
|
1002
|
+
* The name of the auth strategy that authenticated the request (e.g. `local-jwt`).
|
|
1003
|
+
*/
|
|
1004
|
+
_strategy?: string;
|
|
975
1005
|
};
|
|
976
1006
|
/**
|
|
977
|
-
*
|
|
1007
|
+
* Note: AuthenticatedUser still carries the write-only `password` from `User` (always `undefined` at runtime).
|
|
1008
|
+
* Stripping it cleanly isn't possible, because auth operations build the authenticated user
|
|
1009
|
+
* from a read `User` doc, so a `never`-typed `password` would break those assignments
|
|
978
1010
|
*/
|
|
979
|
-
type UntypedUser = {
|
|
980
|
-
[key: string]: any;
|
|
981
|
-
} & BaseUser;
|
|
982
1011
|
/**
|
|
983
|
-
*
|
|
984
|
-
*
|
|
1012
|
+
* The signed-in user: the read user plus the runtime auth markers (`_strategy`, `_sid`). This is
|
|
1013
|
+
* what `req.user`, `payload.auth()`, the `me` operation, and auth strategies return.
|
|
985
1014
|
*/
|
|
986
|
-
type
|
|
987
|
-
|
|
988
|
-
|
|
1015
|
+
type AuthenticatedUser = AuthRuntimeFields & User;
|
|
1016
|
+
/**
|
|
1017
|
+
* The user as available on the client (`useAuth().user`). It is the authenticated user as
|
|
1018
|
+
* serialized to the browser: `collection` and `_strategy` are present, `_sid` is not sent.
|
|
1019
|
+
*/
|
|
1020
|
+
type ClientUser = AuthenticatedUser;
|
|
989
1021
|
type UserSession = {
|
|
990
|
-
createdAt
|
|
1022
|
+
createdAt?: Date | null | string;
|
|
991
1023
|
expiresAt: Date | string;
|
|
992
1024
|
id: string;
|
|
993
1025
|
};
|
|
@@ -1026,10 +1058,7 @@ type AuthStrategyFunctionArgs = {
|
|
|
1026
1058
|
};
|
|
1027
1059
|
type AuthStrategyResult = {
|
|
1028
1060
|
responseHeaders?: Headers;
|
|
1029
|
-
user:
|
|
1030
|
-
_strategy?: string;
|
|
1031
|
-
collection?: string;
|
|
1032
|
-
} & TypedUser) | null;
|
|
1061
|
+
user: AuthenticatedUser | null;
|
|
1033
1062
|
};
|
|
1034
1063
|
type AuthStrategyFunction = (args: AuthStrategyFunctionArgs) => AuthStrategyResult | Promise<AuthStrategyResult>;
|
|
1035
1064
|
type AuthStrategy = {
|
|
@@ -1183,6 +1212,21 @@ type CollectionPreferences = {
|
|
|
1183
1212
|
preset?: DefaultDocumentIDType;
|
|
1184
1213
|
sort?: string;
|
|
1185
1214
|
};
|
|
1215
|
+
/**
|
|
1216
|
+
* A single document the user has viewed in the admin. Only identity and timestamp are stored;
|
|
1217
|
+
* display fields (title, thumbnail, etc.) are computed at render time from the live document.
|
|
1218
|
+
*/
|
|
1219
|
+
type RecentlyViewedItem = {
|
|
1220
|
+
collectionSlug: string;
|
|
1221
|
+
id: DefaultDocumentIDType;
|
|
1222
|
+
viewedAt: string;
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* The `recently-viewed` preference value: the user's recently viewed documents, most recent first.
|
|
1226
|
+
*/
|
|
1227
|
+
type RecentlyViewedPreferences = {
|
|
1228
|
+
items: RecentlyViewedItem[];
|
|
1229
|
+
};
|
|
1186
1230
|
|
|
1187
1231
|
type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
|
|
1188
1232
|
type ClientComponentProps = {
|
|
@@ -1269,7 +1313,7 @@ type ServerComponentProps = {
|
|
|
1269
1313
|
renderComponent?: ComponentRenderer;
|
|
1270
1314
|
req: PayloadRequest;
|
|
1271
1315
|
siblingData: Data;
|
|
1272
|
-
user:
|
|
1316
|
+
user: User;
|
|
1273
1317
|
value?: unknown;
|
|
1274
1318
|
};
|
|
1275
1319
|
type ClientFieldBase<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
|
|
@@ -2279,6 +2323,102 @@ type Globals = {
|
|
|
2279
2323
|
} | false;
|
|
2280
2324
|
};
|
|
2281
2325
|
|
|
2326
|
+
/** Read (`output`) vs write (`input`) shape: `input` is what `create`/`update` accept. */
|
|
2327
|
+
type SchemaVariant = 'input' | 'output';
|
|
2328
|
+
/**
|
|
2329
|
+
* Returns a JSON Schema Type with 'null' added if the field is not required.
|
|
2330
|
+
*/
|
|
2331
|
+
declare function withNullableJSONSchemaType(fieldType: JSONSchema4TypeName, isRequired: boolean): JSONSchema4TypeName | JSONSchema4TypeName[];
|
|
2332
|
+
type ConfigToJSONSchemaOptions = {
|
|
2333
|
+
forceInlineBlocks?: boolean;
|
|
2334
|
+
};
|
|
2335
|
+
type FieldsToJSONSchemaArgs = {
|
|
2336
|
+
/**
|
|
2337
|
+
* Used for relationship fields, to determine whether to use a string or
|
|
2338
|
+
* number type for the ID. While there is a default ID field type set by
|
|
2339
|
+
* the db adapter, they can differ on a collection-level if they have
|
|
2340
|
+
* custom ID fields.
|
|
2341
|
+
*/
|
|
2342
|
+
collectionIDFieldTypes: {
|
|
2343
|
+
[key: string]: 'number' | 'string';
|
|
2344
|
+
};
|
|
2345
|
+
config?: SanitizedConfig;
|
|
2346
|
+
fields: FlattenedField$1[];
|
|
2347
|
+
/**
|
|
2348
|
+
* If true, blocks are inlined into each `block` field instead of being
|
|
2349
|
+
* lifted to a top-level definition. Used by the MCP plugin.
|
|
2350
|
+
*/
|
|
2351
|
+
forceInlineBlocks?: boolean;
|
|
2352
|
+
i18n?: I18n;
|
|
2353
|
+
/** Allows you to define new top-level interfaces that can be re-used in the output schema. */
|
|
2354
|
+
interfaceNameDefinitions: Map<string, JSONSchema4>;
|
|
2355
|
+
/**
|
|
2356
|
+
* Allows you to append raw TS source to `payload-types.ts`. Identical
|
|
2357
|
+
* strings de-dupe naturally, so the same helper written from many fields
|
|
2358
|
+
* ends up emitted once.
|
|
2359
|
+
*/
|
|
2360
|
+
typeStringDefinitions: Set<string>;
|
|
2361
|
+
variant?: SchemaVariant;
|
|
2362
|
+
};
|
|
2363
|
+
declare function fieldsToJSONSchema({ collectionIDFieldTypes, config, fields, forceInlineBlocks, i18n, interfaceNameDefinitions, typeStringDefinitions, variant, }: FieldsToJSONSchemaArgs): {
|
|
2364
|
+
properties: {
|
|
2365
|
+
[k: string]: JSONSchema4;
|
|
2366
|
+
};
|
|
2367
|
+
required: string[];
|
|
2368
|
+
};
|
|
2369
|
+
declare function entityToJSONSchema(config: SanitizedConfig, entity: SanitizedCollectionConfig | SanitizedGlobalConfig, interfaceNameDefinitions: Map<string, JSONSchema4>, defaultIDType: 'number' | 'text', typeStringDefinitions: Set<string>, collectionIDFieldTypes?: {
|
|
2370
|
+
[key: string]: 'number' | 'string';
|
|
2371
|
+
}, i18n?: I18n, forceInlineBlocks?: boolean, variant?: SchemaVariant): JSONSchema4;
|
|
2372
|
+
/**
|
|
2373
|
+
* Like {@link entityToJSONSchema}, but returns a standalone schema for one collection or global:
|
|
2374
|
+
* the entity plus only the `$defs` it actually uses, so it resolves on its own rather than
|
|
2375
|
+
* as part of the whole config schema.
|
|
2376
|
+
*
|
|
2377
|
+
* Relationship/upload `$ref`s to other collections are left in place - the caller handles those.
|
|
2378
|
+
* (The `input` variant reduces relationships to IDs, so only rich-text node `$defs` still ref them.)
|
|
2379
|
+
*/
|
|
2380
|
+
declare function entityToStandaloneJSONSchema({ config, defaultIDType, entity, i18n, variant, }: {
|
|
2381
|
+
config: SanitizedConfig;
|
|
2382
|
+
defaultIDType: 'number' | 'text';
|
|
2383
|
+
entity: SanitizedCollectionConfig | SanitizedGlobalConfig;
|
|
2384
|
+
i18n?: I18n;
|
|
2385
|
+
variant?: SchemaVariant;
|
|
2386
|
+
}): JSONSchema4;
|
|
2387
|
+
/**
|
|
2388
|
+
* Registers a block's schema as a top-level definition and returns its name.
|
|
2389
|
+
*
|
|
2390
|
+
* The name is the block's `interfaceName`, or a PascalCase form of its slug. If a different block
|
|
2391
|
+
* already uses that name - whether it was auto-generated or an explicit `interfaceName` - this one
|
|
2392
|
+
* gets a content-hash suffix (`Hero_3F2A1B0C`) so the two don't overwrite each other. Registering
|
|
2393
|
+
* the same block shape again reuses its name.
|
|
2394
|
+
*
|
|
2395
|
+
* The `input` variant adds an `Input` suffix (`HeroInput`) - unless the read-shaped def is already
|
|
2396
|
+
* registered with byte-identical content (a block with nothing that differs between input and
|
|
2397
|
+
* output), in which case it's shared as-is rather than emitting a redundant twin.
|
|
2398
|
+
*/
|
|
2399
|
+
declare function registerBlockInterface(block: {
|
|
2400
|
+
interfaceName?: string;
|
|
2401
|
+
slug: string;
|
|
2402
|
+
}, blockSchema: JSONSchema4, interfaceNameDefinitions: Map<string, JSONSchema4>, variant?: SchemaVariant): string;
|
|
2403
|
+
/**
|
|
2404
|
+
* This is used for generating the TypeScript types (payload-types.ts) with the payload generate:types command.
|
|
2405
|
+
*/
|
|
2406
|
+
declare function configToJSONSchema(config: SanitizedConfig, defaultIDType?: 'number' | 'text', i18n?: I18n, { forceInlineBlocks }?: ConfigToJSONSchemaOptions): {
|
|
2407
|
+
jsonSchema: JSONSchema4;
|
|
2408
|
+
typeStringDefinitions: Set<string>;
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2411
|
+
type Slugify<T extends TypeWithID = any> = (args: {
|
|
2412
|
+
data: T;
|
|
2413
|
+
req: PayloadRequest;
|
|
2414
|
+
valueToSlugify?: any;
|
|
2415
|
+
}) => Promise<string | undefined> | string | undefined;
|
|
2416
|
+
/**
|
|
2417
|
+
* Props the `SlugField` client component receives. The slug-specific `useAsSlug`
|
|
2418
|
+
* arrives on the client field config (it is not a server-only property).
|
|
2419
|
+
*/
|
|
2420
|
+
type SlugFieldClientProps = TextFieldClientProps;
|
|
2421
|
+
|
|
2282
2422
|
type DisabledOptions = {
|
|
2283
2423
|
bulkEdit?: boolean;
|
|
2284
2424
|
column?: boolean;
|
|
@@ -2290,6 +2430,7 @@ type DisabledOptions = {
|
|
|
2290
2430
|
type TextFieldValidation = Validate<string, unknown, unknown, TextField>;
|
|
2291
2431
|
type TextFieldManyValidation = Validate<string[], unknown, unknown, TextField>;
|
|
2292
2432
|
type TextFieldSingleValidation = Validate<string, unknown, unknown, TextField>;
|
|
2433
|
+
type SlugFieldValidation = Validate<string, unknown, unknown, SlugField>;
|
|
2293
2434
|
type PasswordFieldValidation = Validate<string, unknown, unknown, TextField>;
|
|
2294
2435
|
type ConfirmPasswordFieldValidation = Validate<string, unknown, {
|
|
2295
2436
|
password: string;
|
|
@@ -2356,6 +2497,7 @@ type PointFieldValidation = Validate<[
|
|
|
2356
2497
|
* These can be re-used in custom validations
|
|
2357
2498
|
*/
|
|
2358
2499
|
declare const validations: {
|
|
2500
|
+
slug: SlugFieldValidation;
|
|
2359
2501
|
array: ArrayFieldValidation;
|
|
2360
2502
|
blocks: BlocksFieldValidation;
|
|
2361
2503
|
checkbox: CheckboxFieldValidation;
|
|
@@ -2444,7 +2586,7 @@ type FieldHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData =
|
|
|
2444
2586
|
value?: TValue;
|
|
2445
2587
|
};
|
|
2446
2588
|
type FieldHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: FieldHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
|
|
2447
|
-
type
|
|
2589
|
+
type SharedFieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = {
|
|
2448
2590
|
/**
|
|
2449
2591
|
* The data of the nearest parent block. If the field is not within a block, `blockData` will be equal to `undefined`.
|
|
2450
2592
|
*/
|
|
@@ -2468,6 +2610,13 @@ type FieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = {
|
|
|
2468
2610
|
*/
|
|
2469
2611
|
siblingData?: Partial<TSiblingData>;
|
|
2470
2612
|
};
|
|
2613
|
+
type FieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = ({
|
|
2614
|
+
collection: SanitizedCollectionConfig;
|
|
2615
|
+
global?: never;
|
|
2616
|
+
} & SharedFieldAccessArgs<TData, TSiblingData>) | ({
|
|
2617
|
+
collection?: never;
|
|
2618
|
+
global: SanitizedGlobalConfig;
|
|
2619
|
+
} & SharedFieldAccessArgs<TData, TSiblingData>);
|
|
2471
2620
|
type FieldAccess<TData extends TypeWithID = any, TSiblingData = any> = (args: FieldAccessArgs<TData, TSiblingData>) => boolean | Promise<boolean>;
|
|
2472
2621
|
type Condition<TData extends TypeWithID = any, TSiblingData = any> = (
|
|
2473
2622
|
/**
|
|
@@ -2666,9 +2815,13 @@ interface FieldBase {
|
|
|
2666
2815
|
* Allows you to modify the base JSON schema that is generated for this field.
|
|
2667
2816
|
* This JSON schema will be used to generate the TypeScript interface of this field, and to
|
|
2668
2817
|
* validate the field's value in the MCP plugin.
|
|
2818
|
+
*
|
|
2819
|
+
* `variant` is `'input'` when generating the write shape (`create`/`update`) and `'output'` when
|
|
2820
|
+
* generating the read shape, so a transform can differ between the two.
|
|
2669
2821
|
*/
|
|
2670
2822
|
jsonSchema?: Array<(args: {
|
|
2671
2823
|
jsonSchema: JSONSchema4;
|
|
2824
|
+
variant: SchemaVariant;
|
|
2672
2825
|
}) => JSONSchema4>;
|
|
2673
2826
|
label?: false | LabelFunction | StaticLabel;
|
|
2674
2827
|
localized?: boolean;
|
|
@@ -2786,6 +2939,29 @@ type EmailField = {
|
|
|
2786
2939
|
type EmailFieldClient = {
|
|
2787
2940
|
admin?: AdminClient & PickPreserveOptional<NonNullable<EmailField['admin']>, 'autoComplete' | 'placeholder'>;
|
|
2788
2941
|
} & FieldBaseClient & Pick<EmailField, 'type'>;
|
|
2942
|
+
type SlugField = {
|
|
2943
|
+
admin?: {
|
|
2944
|
+
components?: {
|
|
2945
|
+
afterInput?: CustomComponent[];
|
|
2946
|
+
beforeInput?: CustomComponent[];
|
|
2947
|
+
Error?: CustomComponent<TextFieldErrorClientComponent | TextFieldErrorServerComponent>;
|
|
2948
|
+
Label?: CustomComponent<TextFieldLabelClientComponent | TextFieldLabelServerComponent>;
|
|
2949
|
+
} & FieldAdmin['components'];
|
|
2950
|
+
placeholder?: Record<string, string> | string;
|
|
2951
|
+
} & FieldAdmin;
|
|
2952
|
+
/** Provide a custom slugify function. Runs on the server. */
|
|
2953
|
+
slugify?: Slugify;
|
|
2954
|
+
type: 'slug';
|
|
2955
|
+
/**
|
|
2956
|
+
* Name of the sibling field whose value the slug is generated from, e.g. `'title'`.
|
|
2957
|
+
* Required — there is no default, since a collection may not have a `title` field.
|
|
2958
|
+
*/
|
|
2959
|
+
useAsSlug: string;
|
|
2960
|
+
validate?: TextFieldSingleValidation;
|
|
2961
|
+
} & Omit<FieldBase, 'validate'>;
|
|
2962
|
+
type SlugFieldClient = {
|
|
2963
|
+
admin?: AdminClient & PickPreserveOptional<NonNullable<SlugField['admin']>, 'placeholder'>;
|
|
2964
|
+
} & FieldBaseClient & Pick<SlugField, 'type' | 'useAsSlug'>;
|
|
2789
2965
|
type TextareaField = {
|
|
2790
2966
|
admin?: {
|
|
2791
2967
|
components?: {
|
|
@@ -3679,18 +3855,18 @@ type FlattenedTabAsField = {
|
|
|
3679
3855
|
type FlattenedJoinField = {
|
|
3680
3856
|
targetField: RelationshipField | UploadField;
|
|
3681
3857
|
} & JoinField;
|
|
3682
|
-
type FlattenedField$1 = CheckboxField | CodeField | DateField | EmailField | FlattenedArrayField | FlattenedBlocksField | FlattenedGroupField | FlattenedJoinField | FlattenedTabAsField | JSONField | NumberField | PointField | RadioField | RelationshipField | RichTextField | SelectField | TextareaField | TextField | UploadField;
|
|
3683
|
-
type Field = ArrayField | BlocksField | CheckboxField | CodeField | CollapsibleField | DateField | EmailField | GroupField | JoinField | JSONField | NumberField | PointField | RadioField | RelationshipField | RichTextField | RowField | SelectField | TabsField | TextareaField | TextField | UIField | UploadField;
|
|
3684
|
-
type ClientField = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | CollapsibleFieldClient | DateFieldClient | EmailFieldClient | GroupFieldClient | JoinFieldClient | JSONFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | RowFieldClient | SelectFieldClient | TabsFieldClient | TextareaFieldClient | TextFieldClient | UIFieldClient | UploadFieldClient;
|
|
3858
|
+
type FlattenedField$1 = CheckboxField | CodeField | DateField | EmailField | FlattenedArrayField | FlattenedBlocksField | FlattenedGroupField | FlattenedJoinField | FlattenedTabAsField | JSONField | NumberField | PointField | RadioField | RelationshipField | RichTextField | SelectField | SlugField | TextareaField | TextField | UploadField;
|
|
3859
|
+
type Field = ArrayField | BlocksField | CheckboxField | CodeField | CollapsibleField | DateField | EmailField | GroupField | JoinField | JSONField | NumberField | PointField | RadioField | RelationshipField | RichTextField | RowField | SelectField | SlugField | TabsField | TextareaField | TextField | UIField | UploadField;
|
|
3860
|
+
type ClientField = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | CollapsibleFieldClient | DateFieldClient | EmailFieldClient | GroupFieldClient | JoinFieldClient | JSONFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | RowFieldClient | SelectFieldClient | SlugFieldClient | TabsFieldClient | TextareaFieldClient | TextFieldClient | UIFieldClient | UploadFieldClient;
|
|
3685
3861
|
type ClientFieldProps = ArrayFieldClientProps | BlocksFieldClientProps | CheckboxFieldClientProps | CodeFieldClientProps | CollapsibleFieldClientProps | DateFieldClientProps | EmailFieldClientProps | GroupFieldClientProps | HiddenFieldProps | JoinFieldClientProps | JSONFieldClientProps | NumberFieldClientProps | PointFieldClientProps | RadioFieldClientProps | RelationshipFieldClientProps | RichTextFieldClientProps | RowFieldClientProps | SelectFieldClientProps | TabsFieldClientProps | TextareaFieldClientProps | TextFieldClientProps | UploadFieldClientProps;
|
|
3686
3862
|
type ExtractFieldTypes<T> = T extends {
|
|
3687
3863
|
type: infer U;
|
|
3688
3864
|
} ? U : never;
|
|
3689
3865
|
type FieldTypes = ExtractFieldTypes<Field>;
|
|
3690
|
-
type FieldAffectingData = ArrayField | BlocksField | CheckboxField | CodeField | DateField | EmailField | JoinField | JSONField | NamedGroupField | NumberField | PointField | RadioField | RelationshipField | RichTextField | SelectField | TabAsField | TextareaField | TextField | UploadField;
|
|
3691
|
-
type FieldAffectingDataClient = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | DateFieldClient | EmailFieldClient | JoinFieldClient | JSONFieldClient | NamedGroupFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | SelectFieldClient | TabAsFieldClient | TextareaFieldClient | TextFieldClient | UploadFieldClient;
|
|
3692
|
-
type NonPresentationalField = ArrayField | BlocksField | CheckboxField | CodeField | CollapsibleField | DateField | EmailField | JSONField | NamedGroupField | NumberField | PointField | RadioField | RelationshipField | RichTextField | RowField | SelectField | TabsField | TextareaField | TextField | UploadField;
|
|
3693
|
-
type NonPresentationalFieldClient = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | CollapsibleFieldClient | DateFieldClient | EmailFieldClient | JSONFieldClient | NamedGroupFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | RowFieldClient | SelectFieldClient | TabsFieldClient | TextareaFieldClient | TextFieldClient | UploadFieldClient;
|
|
3866
|
+
type FieldAffectingData = ArrayField | BlocksField | CheckboxField | CodeField | DateField | EmailField | JoinField | JSONField | NamedGroupField | NumberField | PointField | RadioField | RelationshipField | RichTextField | SelectField | SlugField | TabAsField | TextareaField | TextField | UploadField;
|
|
3867
|
+
type FieldAffectingDataClient = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | DateFieldClient | EmailFieldClient | JoinFieldClient | JSONFieldClient | NamedGroupFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | SelectFieldClient | SlugFieldClient | TabAsFieldClient | TextareaFieldClient | TextFieldClient | UploadFieldClient;
|
|
3868
|
+
type NonPresentationalField = ArrayField | BlocksField | CheckboxField | CodeField | CollapsibleField | DateField | EmailField | JSONField | NamedGroupField | NumberField | PointField | RadioField | RelationshipField | RichTextField | RowField | SelectField | SlugField | TabsField | TextareaField | TextField | UploadField;
|
|
3869
|
+
type NonPresentationalFieldClient = ArrayFieldClient | BlocksFieldClient | CheckboxFieldClient | CodeFieldClient | CollapsibleFieldClient | DateFieldClient | EmailFieldClient | JSONFieldClient | NamedGroupFieldClient | NumberFieldClient | PointFieldClient | RadioFieldClient | RelationshipFieldClient | RichTextFieldClient | RowFieldClient | SelectFieldClient | SlugFieldClient | TabsFieldClient | TextareaFieldClient | TextFieldClient | UploadFieldClient;
|
|
3694
3870
|
type FieldWithPath = {
|
|
3695
3871
|
path?: string;
|
|
3696
3872
|
} & Field;
|
|
@@ -3707,82 +3883,6 @@ type FieldWithMaxDepth = RelationshipField | UploadField;
|
|
|
3707
3883
|
type FieldWithMaxDepthClient = JoinFieldClient | RelationshipFieldClient | UploadFieldClient;
|
|
3708
3884
|
type HookName = 'afterChange' | 'afterRead' | 'beforeChange' | 'beforeRead' | 'beforeValidate';
|
|
3709
3885
|
|
|
3710
|
-
/**
|
|
3711
|
-
* Returns a JSON Schema Type with 'null' added if the field is not required.
|
|
3712
|
-
*/
|
|
3713
|
-
declare function withNullableJSONSchemaType(fieldType: JSONSchema4TypeName, isRequired: boolean): JSONSchema4TypeName | JSONSchema4TypeName[];
|
|
3714
|
-
type ConfigToJSONSchemaOptions = {
|
|
3715
|
-
forceInlineBlocks?: boolean;
|
|
3716
|
-
};
|
|
3717
|
-
type FieldsToJSONSchemaArgs = {
|
|
3718
|
-
/**
|
|
3719
|
-
* Used for relationship fields, to determine whether to use a string or
|
|
3720
|
-
* number type for the ID. While there is a default ID field type set by
|
|
3721
|
-
* the db adapter, they can differ on a collection-level if they have
|
|
3722
|
-
* custom ID fields.
|
|
3723
|
-
*/
|
|
3724
|
-
collectionIDFieldTypes: {
|
|
3725
|
-
[key: string]: 'number' | 'string';
|
|
3726
|
-
};
|
|
3727
|
-
config?: SanitizedConfig;
|
|
3728
|
-
fields: FlattenedField$1[];
|
|
3729
|
-
/**
|
|
3730
|
-
* If true, blocks are inlined into each `block` field instead of being
|
|
3731
|
-
* lifted to a top-level definition. Used by the MCP plugin.
|
|
3732
|
-
*/
|
|
3733
|
-
forceInlineBlocks?: boolean;
|
|
3734
|
-
i18n?: I18n;
|
|
3735
|
-
/** Allows you to define new top-level interfaces that can be re-used in the output schema. */
|
|
3736
|
-
interfaceNameDefinitions: Map<string, JSONSchema4>;
|
|
3737
|
-
/**
|
|
3738
|
-
* Allows you to append raw TS source to `payload-types.ts`. Identical
|
|
3739
|
-
* strings de-dupe naturally, so the same helper written from many fields
|
|
3740
|
-
* ends up emitted once.
|
|
3741
|
-
*/
|
|
3742
|
-
typeStringDefinitions: Set<string>;
|
|
3743
|
-
};
|
|
3744
|
-
declare function fieldsToJSONSchema({ collectionIDFieldTypes, config, fields, forceInlineBlocks, i18n, interfaceNameDefinitions, typeStringDefinitions, }: FieldsToJSONSchemaArgs): {
|
|
3745
|
-
properties: {
|
|
3746
|
-
[k: string]: JSONSchema4;
|
|
3747
|
-
};
|
|
3748
|
-
required: string[];
|
|
3749
|
-
};
|
|
3750
|
-
declare function entityToJSONSchema(config: SanitizedConfig, entity: SanitizedCollectionConfig | SanitizedGlobalConfig, interfaceNameDefinitions: Map<string, JSONSchema4>, defaultIDType: 'number' | 'text', typeStringDefinitions: Set<string>, collectionIDFieldTypes?: {
|
|
3751
|
-
[key: string]: 'number' | 'string';
|
|
3752
|
-
}, i18n?: I18n, forceInlineBlocks?: boolean): JSONSchema4;
|
|
3753
|
-
/**
|
|
3754
|
-
* Like {@link entityToJSONSchema}, but returns a standalone schema for one collection or global:
|
|
3755
|
-
* the entity plus only the `$defs` it actually uses, so it resolves on its own rather than
|
|
3756
|
-
* as part of the whole config schema.
|
|
3757
|
-
*
|
|
3758
|
-
* Relationship/upload `$ref`s to other collections are left in place - the caller handles those.
|
|
3759
|
-
*/
|
|
3760
|
-
declare function entityToStandaloneJSONSchema({ config, defaultIDType, entity, i18n, }: {
|
|
3761
|
-
config: SanitizedConfig;
|
|
3762
|
-
defaultIDType: 'number' | 'text';
|
|
3763
|
-
entity: SanitizedCollectionConfig | SanitizedGlobalConfig;
|
|
3764
|
-
i18n?: I18n;
|
|
3765
|
-
}): JSONSchema4;
|
|
3766
|
-
/**
|
|
3767
|
-
* Registers a block's schema as a top-level definition and returns its name.
|
|
3768
|
-
*
|
|
3769
|
-
* The name is the block's `interfaceName`, or a PascalCase form of its slug. If a different block
|
|
3770
|
-
* already uses that name - whether it was auto-generated or an explicit `interfaceName` - this one
|
|
3771
|
-
* gets a content-hash suffix (`Hero_3F2A1B0C`) so the two don't overwrite each other. Registering
|
|
3772
|
-
* the same block shape again reuses its name.
|
|
3773
|
-
*/
|
|
3774
|
-
declare function registerBlockInterface(block: {
|
|
3775
|
-
interfaceName?: string;
|
|
3776
|
-
slug: string;
|
|
3777
|
-
}, blockSchema: JSONSchema4, interfaceNameDefinitions: Map<string, JSONSchema4>): string;
|
|
3778
|
-
/**
|
|
3779
|
-
* This is used for generating the TypeScript types (payload-types.ts) with the payload generate:types command.
|
|
3780
|
-
*/
|
|
3781
|
-
declare function configToJSONSchema(config: SanitizedConfig, defaultIDType?: 'number' | 'text', i18n?: I18n, { forceInlineBlocks }?: ConfigToJSONSchemaOptions): {
|
|
3782
|
-
jsonSchema: JSONSchema4;
|
|
3783
|
-
typeStringDefinitions: Set<string>;
|
|
3784
|
-
};
|
|
3785
|
-
|
|
3786
3886
|
type RichTextFieldClientWithoutType<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = MarkOptional<RichTextFieldClient<TValue, TAdapterProps, TExtraProperties>, 'type'>;
|
|
3787
3887
|
type RichTextFieldBaseClientProps<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = {
|
|
3788
3888
|
readonly path: string;
|
|
@@ -3958,7 +4058,7 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
|
|
|
3958
4058
|
jsonSchema?: (args: {
|
|
3959
4059
|
field: RichTextField<Value, AdapterProps, ExtraFieldProperties>;
|
|
3960
4060
|
isRequired: boolean;
|
|
3961
|
-
} & Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions'>) => JSONSchema4;
|
|
4061
|
+
} & Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions' | 'variant'>) => JSONSchema4;
|
|
3962
4062
|
/**
|
|
3963
4063
|
* Provide validation function for the richText field. This function is run the same way
|
|
3964
4064
|
* as other field validation functions.
|
|
@@ -3971,13 +4071,6 @@ type RichTextAdapter<Value extends object = any, AdapterProps = any, ExtraFieldP
|
|
|
3971
4071
|
* `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.
|
|
3972
4072
|
*/
|
|
3973
4073
|
CellComponent: PayloadComponent<never>;
|
|
3974
|
-
/**
|
|
3975
|
-
* Client-only field component for non-RSC adapters (e.g. TanStack Start).
|
|
3976
|
-
* When provided, this component is used as a fallback when the RSC `FieldComponent`
|
|
3977
|
-
* cannot be rendered (e.g. because customComponents are stripped during serialization).
|
|
3978
|
-
* The component path is stored in field state and resolved from the import map on the client.
|
|
3979
|
-
*/
|
|
3980
|
-
ClientFieldComponent?: PayloadComponent<RichTextFieldClientProps>;
|
|
3981
4074
|
/**
|
|
3982
4075
|
* Component that will be displayed in the version diff view.
|
|
3983
4076
|
* If not provided, richtext content will be diffed as JSON.
|
|
@@ -3987,19 +4080,6 @@ type RichTextAdapter<Value extends object = any, AdapterProps = any, ExtraFieldP
|
|
|
3987
4080
|
* Component that will be displayed in the edit view.
|
|
3988
4081
|
*/
|
|
3989
4082
|
FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>;
|
|
3990
|
-
/**
|
|
3991
|
-
* Builds serializable props for the `ClientFieldComponent`.
|
|
3992
|
-
* Called during `renderField` on the server; the returned object is stored
|
|
3993
|
-
* in `fieldState.clientFieldComponentProps` and passed to the client component.
|
|
3994
|
-
*/
|
|
3995
|
-
getClientFieldProps?: (args: {
|
|
3996
|
-
clientFieldSchemaMap: Map<string, any>;
|
|
3997
|
-
path: string;
|
|
3998
|
-
payload: {
|
|
3999
|
-
importMap: Record<string, any>;
|
|
4000
|
-
};
|
|
4001
|
-
schemaPath: string;
|
|
4002
|
-
}) => Record<string, any>;
|
|
4003
4083
|
} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>;
|
|
4004
4084
|
type RichTextAdapterProvider<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = ({ config, isRoot, parentIsLocalized, }: {
|
|
4005
4085
|
config: SanitizedConfig;
|
|
@@ -4053,7 +4133,7 @@ declare function parseCookies(headers: Request['headers']): Map<string, string>;
|
|
|
4053
4133
|
|
|
4054
4134
|
declare const extractJWT: (args: Omit<AuthStrategyFunctionArgs, "strategyName">) => null | string;
|
|
4055
4135
|
|
|
4056
|
-
type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | 'jsonSchema' | 'label' | 'validate' | keyof Pick<FieldBase, 'access' | 'custom' | 'defaultValue' | 'hooks'>;
|
|
4136
|
+
type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | 'jsonSchema' | 'label' | 'slugify' | 'validate' | keyof Pick<FieldBase, 'access' | 'custom' | 'defaultValue' | 'hooks'>;
|
|
4057
4137
|
type ServerOnlyFieldAdminProperties = keyof Pick<FieldBase['admin'], 'components' | 'condition'>;
|
|
4058
4138
|
declare const createClientBlocks: ({ blocks, defaultIDType, i18n, importMap, }: {
|
|
4059
4139
|
blocks: (Block | string)[];
|
|
@@ -4229,7 +4309,7 @@ type ClientHierarchyConfig = Omit<SanitizedHierarchyConfig, 'slugify'>;
|
|
|
4229
4309
|
|
|
4230
4310
|
type ServerOnlyCollectionProperties = keyof Pick<SanitizedCollectionConfig, 'access' | 'custom' | 'endpoints' | 'flattenedFields' | 'hooks' | 'indexes' | 'joins' | 'polymorphicJoins' | 'sanitizedIndexes' | 'select'>;
|
|
4231
4311
|
type ServerOnlyCollectionAdminProperties = keyof Pick<SanitizedCollectionConfig['admin'], 'baseFilter' | 'baseListFilter' | 'components' | 'formatDocURL' | 'hidden'>;
|
|
4232
|
-
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4312
|
+
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'admin' | 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4233
4313
|
type ClientCollectionConfig = {
|
|
4234
4314
|
admin: {
|
|
4235
4315
|
description?: StaticDescription;
|
|
@@ -4328,7 +4408,7 @@ type CreateClientConfigArgs = {
|
|
|
4328
4408
|
* For example, allow `true` to generate a client config for the "create first user" page
|
|
4329
4409
|
* where there is no user yet, but the config should still be complete.
|
|
4330
4410
|
*/
|
|
4331
|
-
user: true |
|
|
4411
|
+
user: true | User;
|
|
4332
4412
|
};
|
|
4333
4413
|
declare const createUnauthenticatedClientConfig: ({ clientConfig, }: {
|
|
4334
4414
|
/**
|
|
@@ -5484,6 +5564,13 @@ type LivePreviewConfig = {
|
|
|
5484
5564
|
name: string;
|
|
5485
5565
|
width: number | string;
|
|
5486
5566
|
}[];
|
|
5567
|
+
/**
|
|
5568
|
+
* When `true`, Live Preview opens automatically the first time a user views a document,
|
|
5569
|
+
* before they have manually toggled it on. Once the user toggles Live Preview on or off,
|
|
5570
|
+
* their stored preference takes precedence and this setting is ignored.
|
|
5571
|
+
* @default false
|
|
5572
|
+
*/
|
|
5573
|
+
openByDefault?: boolean;
|
|
5487
5574
|
/**
|
|
5488
5575
|
* The URL of the frontend application. This will be rendered within an `iframe` as its `src`.
|
|
5489
5576
|
* Payload will send a `window.postMessage()` to this URL with the document data in real-time.
|
|
@@ -5721,8 +5808,8 @@ type ServerProps = {
|
|
|
5721
5808
|
*
|
|
5722
5809
|
* Optional because non-framework contexts (jobs, scripts, tests) may not have an adapter attached.
|
|
5723
5810
|
*/
|
|
5724
|
-
readonly server
|
|
5725
|
-
readonly user?:
|
|
5811
|
+
readonly server: ServerAdapter;
|
|
5812
|
+
readonly user?: User;
|
|
5726
5813
|
readonly viewType?: ViewTypes;
|
|
5727
5814
|
readonly visibleEntities?: VisibleEntities;
|
|
5728
5815
|
};
|
|
@@ -6702,6 +6789,31 @@ type Config = {
|
|
|
6702
6789
|
*/
|
|
6703
6790
|
ignoreTSError?: boolean;
|
|
6704
6791
|
} | false;
|
|
6792
|
+
/**
|
|
6793
|
+
* Also generate a write-shaped input type (e.g. `PostInput`) next to each read type, describing
|
|
6794
|
+
* what `create`/`update` accept: relationships and uploads as IDs only, `id` and `defaultValue`
|
|
6795
|
+
* fields optional, and `createdAt`/`updatedAt`/`_status`/virtual/join fields removed. These are
|
|
6796
|
+
* exposed on `Config['collectionsInput']` and `Config['globalsInput']`. Set `true` to turn them on.
|
|
6797
|
+
*
|
|
6798
|
+
* @default false
|
|
6799
|
+
*
|
|
6800
|
+
* @remarks
|
|
6801
|
+
* Off by default. The Local API's `create`/`update` still type their `data` against the read
|
|
6802
|
+
* type, so these input types aren't used internally - they're here for you to opt into, e.g. to
|
|
6803
|
+
* type a form payload, a seed script, or an API client. `@payloadcms/plugin-mcp` also uses the
|
|
6804
|
+
* input schema, but it builds that itself at runtime, so MCP gets the accurate write schema
|
|
6805
|
+
* whether or not this flag is on.
|
|
6806
|
+
*
|
|
6807
|
+
* @todo We'd like to turn this on by default (or have the Local API use the input type
|
|
6808
|
+
* directly), but there's a catch. When you read a document with `depth > 0`, its relationships
|
|
6809
|
+
* come back as full documents rather than IDs. A strict ID-only input type would reject that and
|
|
6810
|
+
* break the common "read a doc, change a field, save it back" pattern. To enable it by default,
|
|
6811
|
+
* the input type would first need to accept a relationship as either an ID or the full document
|
|
6812
|
+
* (which is what Payload already does at runtime), while keeping `id`, `defaultValue`, and
|
|
6813
|
+
* auto-managed fields optional. Until then it stays opt-in, so we don't put a type that's
|
|
6814
|
+
* stricter than the runtime on the main write path.
|
|
6815
|
+
*/
|
|
6816
|
+
generateInputTypes?: boolean;
|
|
6705
6817
|
/** Filename to write the generated types to */
|
|
6706
6818
|
outputFile?: string;
|
|
6707
6819
|
/**
|
|
@@ -6992,9 +7104,6 @@ type Data = {
|
|
|
6992
7104
|
type Row = {
|
|
6993
7105
|
addedByServer?: FieldState['addedByServer'];
|
|
6994
7106
|
blockType?: string;
|
|
6995
|
-
clientComponentPaths?: {
|
|
6996
|
-
RowLabel?: PayloadComponent;
|
|
6997
|
-
};
|
|
6998
7107
|
collapsed?: boolean;
|
|
6999
7108
|
customComponents?: {
|
|
7000
7109
|
RowLabel?: React.ReactNode;
|
|
@@ -7020,31 +7129,6 @@ type FieldState = {
|
|
|
7020
7129
|
* If this is an empty array, no blocks are allowed.
|
|
7021
7130
|
*/
|
|
7022
7131
|
blocksFilterOptions?: string[];
|
|
7023
|
-
/**
|
|
7024
|
-
* Serializable PayloadComponent references for field UI slots.
|
|
7025
|
-
* Used by non-RSC adapters (e.g. TanStack) to resolve custom components from the import map
|
|
7026
|
-
* when `customComponents` are unavailable (stripped during serialization).
|
|
7027
|
-
*/
|
|
7028
|
-
clientComponentPaths?: {
|
|
7029
|
-
AfterInput?: PayloadComponent | PayloadComponent[];
|
|
7030
|
-
BeforeInput?: PayloadComponent | PayloadComponent[];
|
|
7031
|
-
Description?: PayloadComponent;
|
|
7032
|
-
Error?: PayloadComponent;
|
|
7033
|
-
Label?: PayloadComponent;
|
|
7034
|
-
};
|
|
7035
|
-
/**
|
|
7036
|
-
* PayloadComponent reference for a client-safe field component.
|
|
7037
|
-
* Used by non-RSC adapters (e.g. TanStack) to resolve a fallback component from the import map
|
|
7038
|
-
* when `customComponents.Field` is unavailable (stripped during serialization).
|
|
7039
|
-
*/
|
|
7040
|
-
clientFieldComponentPath?: {
|
|
7041
|
-
clientProps?: Record<string, any>;
|
|
7042
|
-
path: string;
|
|
7043
|
-
} | string;
|
|
7044
|
-
/**
|
|
7045
|
-
* Serializable props for the client field component referenced by `clientFieldComponentPath`.
|
|
7046
|
-
*/
|
|
7047
|
-
clientFieldComponentProps?: Record<string, any>;
|
|
7048
7132
|
customComponents?: {
|
|
7049
7133
|
/**
|
|
7050
7134
|
* This is used by UI fields, as they can have arbitrary components defined if used
|
|
@@ -7803,91 +7887,6 @@ type FieldLabelServerComponent<TFieldServer extends Field = Field, TFieldClient
|
|
|
7803
7887
|
type RowLabelComponent = CustomComponent;
|
|
7804
7888
|
type RowLabel = Record<string, string> | string;
|
|
7805
7889
|
|
|
7806
|
-
type Slugify<T extends TypeWithID = any> = (args: {
|
|
7807
|
-
data: T;
|
|
7808
|
-
req: PayloadRequest;
|
|
7809
|
-
valueToSlugify?: any;
|
|
7810
|
-
}) => Promise<string | undefined> | string | undefined;
|
|
7811
|
-
type SlugFieldArgs = {
|
|
7812
|
-
/**
|
|
7813
|
-
* Override for the `generateSlug` checkbox field name.
|
|
7814
|
-
* @default 'generateSlug'
|
|
7815
|
-
*/
|
|
7816
|
-
checkboxName?: string;
|
|
7817
|
-
/**
|
|
7818
|
-
* Disables the unique index on the field.
|
|
7819
|
-
* This is useful if instead, you want to add a compound unique index to the collection `indexes` config,
|
|
7820
|
-
* for example with the multi tenant plugin, where the slug is only unique per tenant, not globally.
|
|
7821
|
-
* @default false
|
|
7822
|
-
*/
|
|
7823
|
-
disableUnique?: boolean;
|
|
7824
|
-
/**
|
|
7825
|
-
* @deprecated use `useAsSlug` instead.
|
|
7826
|
-
*/
|
|
7827
|
-
fieldToUse?: string;
|
|
7828
|
-
/**
|
|
7829
|
-
* Enable localization for the slug field.
|
|
7830
|
-
*/
|
|
7831
|
-
localized?: TextField['localized'];
|
|
7832
|
-
/**
|
|
7833
|
-
* Override for the `slug` field name.
|
|
7834
|
-
* @default 'slug'
|
|
7835
|
-
*/
|
|
7836
|
-
name?: string;
|
|
7837
|
-
/**
|
|
7838
|
-
* A function used to override the slug field(s) at a granular level.
|
|
7839
|
-
* Passes the row field to you to manipulate beyond the exposed options.
|
|
7840
|
-
* @example
|
|
7841
|
-
* ```ts
|
|
7842
|
-
* slugField({
|
|
7843
|
-
* overrides: (field) => {
|
|
7844
|
-
* field.fields[1].label = 'Custom Slug Label'
|
|
7845
|
-
* return field
|
|
7846
|
-
* }
|
|
7847
|
-
* })
|
|
7848
|
-
* ```
|
|
7849
|
-
*/
|
|
7850
|
-
overrides?: (field: RowField) => RowField;
|
|
7851
|
-
position?: FieldAdmin['position'];
|
|
7852
|
-
/**
|
|
7853
|
-
* Whether or not the `slug` field is required.
|
|
7854
|
-
* @default true
|
|
7855
|
-
*/
|
|
7856
|
-
required?: TextField['required'];
|
|
7857
|
-
/**
|
|
7858
|
-
* Provide your own slugify function to override the default.
|
|
7859
|
-
*/
|
|
7860
|
-
slugify?: Slugify;
|
|
7861
|
-
/**
|
|
7862
|
-
* The name of the top-level field to generate the slug from, when applicable.
|
|
7863
|
-
* @default 'title'
|
|
7864
|
-
*/
|
|
7865
|
-
useAsSlug?: string;
|
|
7866
|
-
};
|
|
7867
|
-
type SlugField = (args?: SlugFieldArgs) => RowField;
|
|
7868
|
-
type SlugFieldClientPropsOnly = Pick<SlugFieldArgs, 'useAsSlug'>;
|
|
7869
|
-
/**
|
|
7870
|
-
* These are the props that the `SlugField` client component accepts.
|
|
7871
|
-
* The `SlugField` server component is responsible for passing down the `slugify` function.
|
|
7872
|
-
*/
|
|
7873
|
-
type SlugFieldClientProps = SlugFieldClientPropsOnly & TextFieldClientProps;
|
|
7874
|
-
/**
|
|
7875
|
-
* A slug is a unique, indexed, URL-friendly string that identifies a particular document, often used to construct the URL of a webpage.
|
|
7876
|
-
* The `slug` field auto-generates its value based on another field, e.g. "My Title" → "my-title".
|
|
7877
|
-
*
|
|
7878
|
-
* The slug should continue to be generated through:
|
|
7879
|
-
* 1. The `create` operation, unless the user has modified the slug manually
|
|
7880
|
-
* 2. The `update` operation, if:
|
|
7881
|
-
* a. Autosave is _not_ enabled and there is no slug
|
|
7882
|
-
* b. Autosave _is_ enabled, the doc is unpublished, and the user has not modified the slug manually
|
|
7883
|
-
*
|
|
7884
|
-
* The slug should stabilize after all above criteria have been met, because the URL is typically derived from the slug.
|
|
7885
|
-
* This is to protect modifying potentially live URLs, breaking links, etc. without explicit intent.
|
|
7886
|
-
*
|
|
7887
|
-
* @experimental This field is experimental and may change or be removed in the future. Use at your own risk.
|
|
7888
|
-
*/
|
|
7889
|
-
declare const slugField: SlugField;
|
|
7890
|
-
|
|
7891
7890
|
type ColumnsFromURL = string[];
|
|
7892
7891
|
|
|
7893
7892
|
type InitReqResult = {
|
|
@@ -8221,6 +8220,7 @@ type DocumentSlots = {
|
|
|
8221
8220
|
UnpublishButton?: React$1.ReactNode;
|
|
8222
8221
|
Upload?: React$1.ReactNode;
|
|
8223
8222
|
UploadControls?: React$1.ReactNode;
|
|
8223
|
+
UploadFilePreview?: React$1.ReactNode;
|
|
8224
8224
|
};
|
|
8225
8225
|
|
|
8226
8226
|
type SchemaPath = {} & string;
|
|
@@ -8390,12 +8390,33 @@ type FileAllowList = Array<{
|
|
|
8390
8390
|
extensions: string[];
|
|
8391
8391
|
mimeType: string;
|
|
8392
8392
|
}>;
|
|
8393
|
+
type UploadFilePreviewClientProps = {
|
|
8394
|
+
filename: string;
|
|
8395
|
+
filesize: number;
|
|
8396
|
+
/** Resolved URL of the file (data.url). */
|
|
8397
|
+
fileSrc: string;
|
|
8398
|
+
height?: number;
|
|
8399
|
+
mimeType: string;
|
|
8400
|
+
width?: number;
|
|
8401
|
+
};
|
|
8402
|
+
type UploadFilePreviewMap = {
|
|
8403
|
+
[mimeTypePattern: string]: PayloadComponent;
|
|
8404
|
+
};
|
|
8393
8405
|
type Admin = {
|
|
8394
8406
|
components?: {
|
|
8395
8407
|
/**
|
|
8396
8408
|
* The Controls component to extend the upload controls in the admin panel.
|
|
8397
8409
|
*/
|
|
8398
8410
|
controls?: PayloadComponent[];
|
|
8411
|
+
/**
|
|
8412
|
+
* A custom component to render in place of the default Thumbnail in the upload side panel.
|
|
8413
|
+
*
|
|
8414
|
+
* Can be a single PayloadComponent (renders for all MIME types) or a Record keyed by
|
|
8415
|
+
* MIME type patterns. Pattern resolution priority: exact match → category wildcard
|
|
8416
|
+
* (e.g. `video/*`) → universal fallback (`*`). Falls back to the default Thumbnail
|
|
8417
|
+
* when nothing matches.
|
|
8418
|
+
*/
|
|
8419
|
+
filePreview?: PayloadComponent | UploadFilePreviewMap;
|
|
8399
8420
|
};
|
|
8400
8421
|
};
|
|
8401
8422
|
type UploadConfig = {
|
|
@@ -8639,7 +8660,7 @@ declare const forgotPasswordOperation: <TSlug extends AuthCollectionSlug>(incomi
|
|
|
8639
8660
|
type LoginResult<TSlug extends AuthCollectionSlug> = {
|
|
8640
8661
|
exp?: number;
|
|
8641
8662
|
token?: string;
|
|
8642
|
-
user?: DataFromCollectionSlug<TSlug>;
|
|
8663
|
+
user?: AuthRuntimeFields & DataFromCollectionSlug<TSlug>;
|
|
8643
8664
|
};
|
|
8644
8665
|
type Arguments$n<TSlug extends AuthCollectionSlug> = {
|
|
8645
8666
|
collection: Collection;
|
|
@@ -8999,7 +9020,7 @@ type BaseFindOptions<TSlug extends CollectionSlug, TSelect extends SelectType> =
|
|
|
8999
9020
|
/**
|
|
9000
9021
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
9001
9022
|
*/
|
|
9002
|
-
user?:
|
|
9023
|
+
user?: null | User;
|
|
9003
9024
|
/**
|
|
9004
9025
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
9005
9026
|
*/
|
|
@@ -9121,15 +9142,6 @@ type AfterOperationArg<TOperationGeneric extends CollectionSlug> = {
|
|
|
9121
9142
|
args: Parameters<OperationMap<TOperationGeneric>['deleteByID']>[0];
|
|
9122
9143
|
operation: 'deleteByID';
|
|
9123
9144
|
result: Awaited<ReturnType<OperationMap<TOperationGeneric>['deleteByID']>>;
|
|
9124
|
-
} | {
|
|
9125
|
-
args: Parameters<OperationMap<TOperationGeneric>['find']>[0];
|
|
9126
|
-
/**
|
|
9127
|
-
* @deprecated Use 'find' or 'findByID' operation instead
|
|
9128
|
-
*
|
|
9129
|
-
* TODO: v4 - remove this union option
|
|
9130
|
-
*/
|
|
9131
|
-
operation: 'read';
|
|
9132
|
-
result: Awaited<ReturnType<OperationMap<TOperationGeneric>['find']>>;
|
|
9133
9145
|
} | {
|
|
9134
9146
|
args: Parameters<OperationMap<TOperationGeneric>['find']>[0];
|
|
9135
9147
|
operation: 'find';
|
|
@@ -9265,6 +9277,12 @@ type BeforeOperationArg<TOperationGeneric extends CollectionSlug> = {
|
|
|
9265
9277
|
});
|
|
9266
9278
|
|
|
9267
9279
|
type DataFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollection[TSlug];
|
|
9280
|
+
/**
|
|
9281
|
+
* The ID type of a given collection (e.g. `string` or `number`), taken from its generated type.
|
|
9282
|
+
* Use this instead of the project-wide {@link DefaultDocumentIDType} when the collection slug is
|
|
9283
|
+
* known, since each collection can have its own ID type.
|
|
9284
|
+
*/
|
|
9285
|
+
type IDTypeForCollectionSlug<TSlug extends CollectionSlug> = DataFromCollectionSlug<TSlug>['id'];
|
|
9268
9286
|
type SelectFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollectionSelect[TSlug];
|
|
9269
9287
|
/**
|
|
9270
9288
|
* Collection slugs that do not have drafts enabled.
|
|
@@ -9966,6 +9984,11 @@ type SanitizedCompoundIndex = {
|
|
|
9966
9984
|
declare const validOperators: readonly ["equals", "contains", "not_equals", "in", "all", "not_in", "exists", "greater_than", "greater_than_equal", "less_than", "less_than_equal", "like", "not_like", "within", "intersects", "near"];
|
|
9967
9985
|
type Operator = (typeof validOperators)[number];
|
|
9968
9986
|
|
|
9987
|
+
interface PayloadRequestAPI {
|
|
9988
|
+
GraphQL: true;
|
|
9989
|
+
local: true;
|
|
9990
|
+
REST: true;
|
|
9991
|
+
}
|
|
9969
9992
|
type CustomPayloadRequestProperties = {
|
|
9970
9993
|
context: RequestContext;
|
|
9971
9994
|
/** The locale that should be used for a field when it is not translated to the requested locale */
|
|
@@ -9985,7 +10008,7 @@ type CustomPayloadRequestProperties = {
|
|
|
9985
10008
|
/**
|
|
9986
10009
|
* The context in which the request is being made
|
|
9987
10010
|
*/
|
|
9988
|
-
payloadAPI:
|
|
10011
|
+
payloadAPI: keyof PayloadRequestAPI;
|
|
9989
10012
|
/** Optimized document loader */
|
|
9990
10013
|
payloadDataLoader: {
|
|
9991
10014
|
/**
|
|
@@ -10029,7 +10052,7 @@ type CustomPayloadRequestProperties = {
|
|
|
10029
10052
|
*/
|
|
10030
10053
|
transactionID?: number | Promise<number | string> | string;
|
|
10031
10054
|
/** The signed-in user */
|
|
10032
|
-
user:
|
|
10055
|
+
user: AuthenticatedUser | null;
|
|
10033
10056
|
} & Pick<URL, 'hash' | 'host' | 'href' | 'origin' | 'pathname' | 'port' | 'protocol' | 'search' | 'searchParams'>;
|
|
10034
10057
|
type PayloadRequestData = {
|
|
10035
10058
|
/**
|
|
@@ -10249,7 +10272,7 @@ type AuthArgs = {
|
|
|
10249
10272
|
type AuthResult = {
|
|
10250
10273
|
permissions: SanitizedPermissions;
|
|
10251
10274
|
responseHeaders?: Headers;
|
|
10252
|
-
user:
|
|
10275
|
+
user: AuthenticatedUser | null;
|
|
10253
10276
|
};
|
|
10254
10277
|
|
|
10255
10278
|
/**
|
|
@@ -10443,7 +10466,7 @@ type CountOptions<TSlug extends CollectionSlug> = {
|
|
|
10443
10466
|
/**
|
|
10444
10467
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10445
10468
|
*/
|
|
10446
|
-
user?:
|
|
10469
|
+
user?: null | User;
|
|
10447
10470
|
/**
|
|
10448
10471
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10449
10472
|
*/
|
|
@@ -10529,7 +10552,7 @@ type BaseOptions$7<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10529
10552
|
/**
|
|
10530
10553
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10531
10554
|
*/
|
|
10532
|
-
user?:
|
|
10555
|
+
user?: null | User;
|
|
10533
10556
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10534
10557
|
type Options$b<TSlug extends CollectionSlug, TSelect extends SelectType> = GeneratedTypes extends {
|
|
10535
10558
|
strictDraftTypes: true;
|
|
@@ -10654,7 +10677,7 @@ type BaseOptions$6<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10654
10677
|
/**
|
|
10655
10678
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10656
10679
|
*/
|
|
10657
|
-
user?:
|
|
10680
|
+
user?: null | User;
|
|
10658
10681
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10659
10682
|
type ByIDOptions$1<TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>> = {
|
|
10660
10683
|
/**
|
|
@@ -10742,7 +10765,7 @@ type BaseOptions$5<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10742
10765
|
/**
|
|
10743
10766
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10744
10767
|
*/
|
|
10745
|
-
user?:
|
|
10768
|
+
user?: null | User;
|
|
10746
10769
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10747
10770
|
type Options$a<TSlug extends CollectionSlug, TSelect extends SelectType> = BaseOptions$5<TSlug, TSelect> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10748
10771
|
|
|
@@ -10830,7 +10853,7 @@ type BaseFindByIDOptions<TSlug extends CollectionSlug, TDisableErrors extends bo
|
|
|
10830
10853
|
/**
|
|
10831
10854
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10832
10855
|
*/
|
|
10833
|
-
user?:
|
|
10856
|
+
user?: null | User;
|
|
10834
10857
|
} & Pick<FindByIDArgs, 'flattenLocales'> & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10835
10858
|
type Options$9<TSlug extends CollectionSlug, TDisableErrors extends boolean, TSelect extends SelectType> = BaseFindByIDOptions<TSlug, TDisableErrors, TSelect> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10836
10859
|
|
|
@@ -10910,7 +10933,7 @@ type Options$8<TSlug extends CollectionSlug, TField extends keyof DataFromCollec
|
|
|
10910
10933
|
/**
|
|
10911
10934
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10912
10935
|
*/
|
|
10913
|
-
user?:
|
|
10936
|
+
user?: null | User;
|
|
10914
10937
|
/**
|
|
10915
10938
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10916
10939
|
*/
|
|
@@ -10982,7 +11005,7 @@ type BaseOptions$4<TSlug extends CollectionSlug> = {
|
|
|
10982
11005
|
/**
|
|
10983
11006
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10984
11007
|
*/
|
|
10985
|
-
user?:
|
|
11008
|
+
user?: null | User;
|
|
10986
11009
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
10987
11010
|
type Options$7<TSlug extends CollectionSlug> = BaseOptions$4<TSlug> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10988
11011
|
|
|
@@ -11064,7 +11087,7 @@ type BaseOptions$3<TSlug extends CollectionSlug> = {
|
|
|
11064
11087
|
/**
|
|
11065
11088
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11066
11089
|
*/
|
|
11067
|
-
user?:
|
|
11090
|
+
user?: null | User;
|
|
11068
11091
|
/**
|
|
11069
11092
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
11070
11093
|
*/
|
|
@@ -11123,7 +11146,7 @@ type BaseOptions$2<TSlug extends CollectionSlug> = {
|
|
|
11123
11146
|
/**
|
|
11124
11147
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11125
11148
|
*/
|
|
11126
|
-
user?:
|
|
11149
|
+
user?: null | User;
|
|
11127
11150
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
11128
11151
|
type Options$5<TSlug extends CollectionSlug> = BaseOptions$2<TSlug> & DraftFlagFromCollectionSlug<TSlug>;
|
|
11129
11152
|
|
|
@@ -11226,7 +11249,7 @@ type BaseOptions$1<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
11226
11249
|
/**
|
|
11227
11250
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11228
11251
|
*/
|
|
11229
|
-
user?:
|
|
11252
|
+
user?: null | User;
|
|
11230
11253
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
11231
11254
|
type ByIDOptions<TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>> = {
|
|
11232
11255
|
/**
|
|
@@ -11303,7 +11326,7 @@ type CountGlobalVersionsOptions<TSlug extends GlobalSlug> = {
|
|
|
11303
11326
|
/**
|
|
11304
11327
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11305
11328
|
*/
|
|
11306
|
-
user?:
|
|
11329
|
+
user?: null | User;
|
|
11307
11330
|
/**
|
|
11308
11331
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
11309
11332
|
*/
|
|
@@ -11393,7 +11416,7 @@ type BaseFindOneOptions<TSlug extends GlobalSlug, TSelect extends SelectType> =
|
|
|
11393
11416
|
/**
|
|
11394
11417
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11395
11418
|
*/
|
|
11396
|
-
user?:
|
|
11419
|
+
user?: null | User;
|
|
11397
11420
|
} & Pick<FindOptions<string, SelectType>, 'select'> & Pick<GlobalFindOneArgs, 'flattenLocales'>;
|
|
11398
11421
|
type Options$4<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseFindOneOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11399
11422
|
|
|
@@ -11453,7 +11476,7 @@ type Options$3<TSlug extends GlobalSlug> = {
|
|
|
11453
11476
|
/**
|
|
11454
11477
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11455
11478
|
*/
|
|
11456
|
-
user?:
|
|
11479
|
+
user?: null | User;
|
|
11457
11480
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11458
11481
|
|
|
11459
11482
|
type Options$2<TSlug extends GlobalSlug> = {
|
|
@@ -11525,7 +11548,7 @@ type Options$2<TSlug extends GlobalSlug> = {
|
|
|
11525
11548
|
/**
|
|
11526
11549
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11527
11550
|
*/
|
|
11528
|
-
user?:
|
|
11551
|
+
user?: null | User;
|
|
11529
11552
|
/**
|
|
11530
11553
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
11531
11554
|
*/
|
|
@@ -11583,7 +11606,7 @@ type Options$1<TSlug extends GlobalSlug> = {
|
|
|
11583
11606
|
/**
|
|
11584
11607
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11585
11608
|
*/
|
|
11586
|
-
user?:
|
|
11609
|
+
user?: null | User;
|
|
11587
11610
|
};
|
|
11588
11611
|
|
|
11589
11612
|
type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
@@ -11655,7 +11678,7 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
|
11655
11678
|
/**
|
|
11656
11679
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11657
11680
|
*/
|
|
11658
|
-
user?:
|
|
11681
|
+
user?: null | User;
|
|
11659
11682
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11660
11683
|
type Options<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11661
11684
|
|
|
@@ -12432,7 +12455,7 @@ type CountVersionsOptions<TSlug extends CollectionSlug> = {
|
|
|
12432
12455
|
/**
|
|
12433
12456
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
12434
12457
|
*/
|
|
12435
|
-
user?:
|
|
12458
|
+
user?: null | User;
|
|
12436
12459
|
/**
|
|
12437
12460
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
12438
12461
|
*/
|
|
@@ -12543,7 +12566,7 @@ declare const JWTAuthentication: AuthStrategyFunction;
|
|
|
12543
12566
|
type Args$i = {
|
|
12544
12567
|
collection: SanitizedCollectionConfig;
|
|
12545
12568
|
payload: Payload;
|
|
12546
|
-
user:
|
|
12569
|
+
user: User;
|
|
12547
12570
|
};
|
|
12548
12571
|
declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$i) => Promise<void>;
|
|
12549
12572
|
|
|
@@ -12636,26 +12659,22 @@ declare const restoreVersionOperation$1: <TData extends JsonObject & TypeWithID
|
|
|
12636
12659
|
*/
|
|
12637
12660
|
declare function buildConfig(config: Config): Promise<SanitizedConfig>;
|
|
12638
12661
|
|
|
12639
|
-
|
|
12640
|
-
* @deprecated - remove in 4.0. This is error-prone, as mutating this object will affect any objects that use the defaults as a base.
|
|
12641
|
-
*/
|
|
12642
|
-
declare const defaults: Omit<Config, 'db' | 'editor' | 'secret'>;
|
|
12662
|
+
declare const addDefaultsToConfig: (config: Config) => Config;
|
|
12643
12663
|
|
|
12644
12664
|
/**
|
|
12645
12665
|
* Helper for authoring plugins with order, slug, and typed options.
|
|
12646
12666
|
* Eliminates boilerplate and ensures metadata is always set consistently.
|
|
12647
12667
|
*
|
|
12648
|
-
* The `plugin` function receives
|
|
12649
|
-
*
|
|
12668
|
+
* The `plugin` function receives `config`, `plugins` (a slug-keyed map of other
|
|
12669
|
+
* plugins), and the user-provided `options`.
|
|
12650
12670
|
*
|
|
12651
12671
|
* @experimental
|
|
12652
12672
|
*
|
|
12653
12673
|
* @example
|
|
12654
12674
|
* // With options:
|
|
12655
|
-
* export const seoPlugin = definePlugin<
|
|
12675
|
+
* export const seoPlugin = definePlugin<SEOPluginConfig>({
|
|
12656
12676
|
* slug: 'plugin-seo',
|
|
12657
|
-
*
|
|
12658
|
-
* plugin: ({ config, plugins, collections }) => ({ ...config }),
|
|
12677
|
+
* plugin: ({ config, options }) => ({ ...config }),
|
|
12659
12678
|
* })
|
|
12660
12679
|
*
|
|
12661
12680
|
* // Without options:
|
|
@@ -12670,16 +12689,17 @@ declare function definePlugin(descriptor: {
|
|
|
12670
12689
|
config: Config;
|
|
12671
12690
|
plugins: PluginsMap;
|
|
12672
12691
|
}) => Config | Promise<Config>;
|
|
12673
|
-
slug
|
|
12692
|
+
slug: string;
|
|
12674
12693
|
}): () => Plugin;
|
|
12675
|
-
declare function definePlugin<TOptions
|
|
12694
|
+
declare function definePlugin<TOptions>(descriptor: {
|
|
12676
12695
|
order?: number;
|
|
12677
12696
|
plugin: (args: {
|
|
12678
12697
|
config: Config;
|
|
12698
|
+
options: TOptions;
|
|
12679
12699
|
plugins: PluginsMap;
|
|
12680
|
-
}
|
|
12681
|
-
slug
|
|
12682
|
-
}): (options: TOptions) => Plugin;
|
|
12700
|
+
}) => Config | Promise<Config>;
|
|
12701
|
+
slug: string;
|
|
12702
|
+
}): undefined extends TOptions ? (options?: TOptions) => Plugin : (options: TOptions) => Plugin;
|
|
12683
12703
|
|
|
12684
12704
|
/**
|
|
12685
12705
|
* The body of the reorder endpoint.
|
|
@@ -13597,7 +13617,7 @@ type CreateLocalReqOptions = {
|
|
|
13597
13617
|
locale?: string;
|
|
13598
13618
|
req?: Partial<PayloadRequest>;
|
|
13599
13619
|
urlSuffix?: string;
|
|
13600
|
-
user?:
|
|
13620
|
+
user?: User;
|
|
13601
13621
|
};
|
|
13602
13622
|
type CreateLocalReq = (options: CreateLocalReqOptions, payload: Payload) => Promise<PayloadRequest>;
|
|
13603
13623
|
declare const createLocalReq: CreateLocalReq;
|
|
@@ -14303,7 +14323,52 @@ interface UntypedPayloadTypes {
|
|
|
14303
14323
|
};
|
|
14304
14324
|
};
|
|
14305
14325
|
locale: null | string;
|
|
14306
|
-
|
|
14326
|
+
/**
|
|
14327
|
+
* User shape used when generated types are unavailable.
|
|
14328
|
+
* Includes common document fields and fields managed by Payload auth. Custom fields and
|
|
14329
|
+
* collection features such as drafts, trash, and uploads require generated types. Runtime fields
|
|
14330
|
+
* `_strategy` and `_sid` belong to `AuthenticatedUser`.
|
|
14331
|
+
*/
|
|
14332
|
+
user: {
|
|
14333
|
+
/** Email verification token. Hidden (needs `showHiddenFields`). Only with `auth.verify`, until verified. */
|
|
14334
|
+
_verificationToken?: null | string;
|
|
14335
|
+
/** Whether the email is verified. Only with `auth.verify`. */
|
|
14336
|
+
_verified?: boolean | null;
|
|
14337
|
+
/** The user's API key. Only with `auth.useAPIKey`, once enabled for this user. */
|
|
14338
|
+
apiKey?: null | string;
|
|
14339
|
+
/** Internal lookup index for the API key. Hidden (needs `showHiddenFields`). Only with `auth.useAPIKey`. */
|
|
14340
|
+
apiKeyIndex?: null | string;
|
|
14341
|
+
/** Slug of the auth collection this user belongs to. Always present; identifies the source collection. */
|
|
14342
|
+
collection: string;
|
|
14343
|
+
/** When the user was created. Not present when timestamps are disabled. */
|
|
14344
|
+
createdAt?: string;
|
|
14345
|
+
/** The user's email. Absent if email login is disabled via `auth.loginWithUsername`. */
|
|
14346
|
+
email?: null | string;
|
|
14347
|
+
/** Whether API key auth is enabled for this user. Only with `auth.useAPIKey`. */
|
|
14348
|
+
enableAPIKey?: boolean | null;
|
|
14349
|
+
/** Hashed password. Hidden (needs `showHiddenFields`). Only with the local strategy. */
|
|
14350
|
+
hash?: null | string;
|
|
14351
|
+
/** The user's ID. Always present. */
|
|
14352
|
+
id: UntypedPayloadTypes['db']['defaultIDType'];
|
|
14353
|
+
/** Locked-until timestamp. Hidden (needs `showHiddenFields`). Only with `auth.maxLoginAttempts`, while locked. */
|
|
14354
|
+
lockUntil?: null | string;
|
|
14355
|
+
/** Failed login attempt count. Hidden (needs `showHiddenFields`). Only with `auth.maxLoginAttempts`. */
|
|
14356
|
+
loginAttempts?: null | number;
|
|
14357
|
+
/** Plain-text password. Write-only: accepted on `create`/`update`, never returned on reads. */
|
|
14358
|
+
password?: null | string;
|
|
14359
|
+
/** Reset-token expiry. Hidden (needs `showHiddenFields`). Only after `forgotPassword`, until reset. */
|
|
14360
|
+
resetPasswordExpiration?: null | string;
|
|
14361
|
+
/** Active password-reset token. Hidden (needs `showHiddenFields`). Only after `forgotPassword`, until reset. */
|
|
14362
|
+
resetPasswordToken?: null | string;
|
|
14363
|
+
/** Password salt. Hidden (needs `showHiddenFields`). Only with the local strategy. */
|
|
14364
|
+
salt?: null | string;
|
|
14365
|
+
/** Active login sessions. Only with `auth.useSessions` (the default). */
|
|
14366
|
+
sessions?: Array<UserSession> | null;
|
|
14367
|
+
/** When the user was last updated. Not present when timestamps are disabled. */
|
|
14368
|
+
updatedAt?: string;
|
|
14369
|
+
/** The user's username. Only with `auth.loginWithUsername`. */
|
|
14370
|
+
username?: null | string;
|
|
14371
|
+
};
|
|
14307
14372
|
widgets: {
|
|
14308
14373
|
[slug: string]: JsonObject;
|
|
14309
14374
|
};
|
|
@@ -14366,13 +14431,13 @@ type GlobalSlug<T extends PayloadTypesShape = PayloadTypes> = StringKeyOf<T['glo
|
|
|
14366
14431
|
type TypedLocale<T extends PayloadTypesShape = PayloadTypes> = T['locale'];
|
|
14367
14432
|
type TypedFallbackLocale = PayloadTypes['fallbackLocale'];
|
|
14368
14433
|
/**
|
|
14434
|
+
* User document type for auth-enabled collections.
|
|
14435
|
+
* Uses generated types when available and the auth-only fallback above otherwise. Generated types
|
|
14436
|
+
* include custom fields and can be a union when several collections support auth.
|
|
14369
14437
|
*
|
|
14370
|
-
*
|
|
14371
|
-
* auth-enabled collections.
|
|
14372
|
-
*
|
|
14373
|
-
* @todo rename to `User` in 4.0
|
|
14438
|
+
* Not the signed-in `req.user`, which also has `_strategy` and `_sid` - use `AuthenticatedUser`.
|
|
14374
14439
|
*/
|
|
14375
|
-
type
|
|
14440
|
+
type User = PayloadTypes['user'];
|
|
14376
14441
|
type TypedAuthOperations<T extends PayloadTypesShape = PayloadTypes> = T['auth'];
|
|
14377
14442
|
type AuthCollectionSlug<T extends PayloadTypesShape = PayloadTypes> = StringKeyOf<T['auth']>;
|
|
14378
14443
|
type TypedJobs = PayloadTypes['jobs'];
|
|
@@ -14663,5 +14728,5 @@ interface GlobalAdminCustom extends Record<string, any> {
|
|
|
14663
14728
|
interface GlobalAdminCustom extends Record<string, any> {
|
|
14664
14729
|
}
|
|
14665
14730
|
|
|
14666
|
-
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, accountLockFields as baseAccountLockFields, baseAuthFields, baseBlockFields, emailFieldConfig as baseEmailField, baseIDField, sessionsFieldConfig as baseSessionsField, usernameFieldConfig as baseUsernameField, verificationFields as baseVerificationFields, traverseFields$2 as beforeChangeTraverseFields, traverseFields$1 as beforeValidateTraverseFields, buildConfig, buildVersionCollectionFields, buildVersionCompoundIndexes, buildVersionGlobalFields, canAccessAdmin, checkDependencies, checkLoginPermission, combineQueries, commitTransaction, configToJSONSchema, countOperation, countRunnableOrActiveJobsForQueue, createAPIKeyFields, createArrayFromCommaDelineated, createClientBlocks, createClientCollectionConfig, createClientCollectionConfigs, createClientConfig, createClientField, createClientFields, createClientGlobalConfig, createClientGlobalConfigs, createDatabaseAdapter, createDataloaderCacheKey, createFolderField, createLocalReq, createMigration, createOperation, createPayloadRequest, createTagField, createUnauthenticatedClientConfig, databaseKVAdapter, deepCopyObject, deepCopyObjectComplex, deepCopyObjectSimple, deepMergeSimple, deepMergeWithCombinedArrays, deepMergeWithReactComponents, deepMergeWithSourceArrays, initialized as default, defaultBeginTransaction, defaultLoggerOptions, defaultUserCollection,
|
|
14667
|
-
export type { Access, AccessArgs, AccessResult, AdminClient, AdminComponent, AdminDependencies, AdminFunction, AdminView, AdminViewAdapter, AdminViewClientProps, AdminViewComponent, AdminViewConfig, AdminViewKey, AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, AfterErrorHook$1 as AfterErrorHook, AfterErrorHookArgs, AfterErrorResult, AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, AllOperations, AllowList, Ancestor, ApplyDisableErrors, ArrayField, ArrayFieldClient, ArrayFieldClientComponent, ArrayFieldClientProps, ArrayFieldDescriptionClientComponent, ArrayFieldDescriptionServerComponent, ArrayFieldDiffClientComponent, ArrayFieldDiffServerComponent, ArrayFieldErrorClientComponent, ArrayFieldErrorServerComponent, ArrayFieldLabelClientComponent, ArrayFieldLabelServerComponent, ArrayFieldServerComponent, ArrayFieldServerProps, ArrayFieldValidation, Auth, AuthCollection, AuthCollectionSlug, AuthOperations, AuthOperationsFromCollectionSlug, 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, ComponentRenderer, CompoundIndex, ConcurrencyConfig, Condition, ConditionalDateProps, Config, ConfirmPasswordFieldValidation, Connect, CookieOptions$1 as CookieOptions, CookieStore, Count, CountArgs, CountGlobalVersionArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateClientConfigArgs, CreateFolderFieldOptions, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateTagFieldOptions, CreateVersion, CreateVersionArgs, CustomComponent, CustomDocumentViewConfig, CustomPayloadRequestProperties, CustomComponent as CustomPreviewButton, CustomComponent as CustomPublishButton, CustomComponent as CustomSaveButton, CustomComponent as CustomSaveDraftButton, CustomStatus, CustomUpload, CustomVersionParser, DBIdentifierName, DashboardConfig, Data, DataFromCollectionSlug, DataFromGlobalSlug, DataFromWidgetSlug, DatabaseAdapter, DatabaseAdapterResult as DatabaseAdapterObj, DatabaseKVAdapterOptions, DateField, DateFieldClient, DateFieldClientComponent, DateFieldClientProps, DateFieldDescriptionClientComponent, DateFieldDescriptionServerComponent, DateFieldDiffClientComponent, DateFieldDiffServerComponent, DateFieldErrorClientComponent, DateFieldErrorServerComponent, DateFieldLabelClientComponent, DateFieldLabelServerComponent, DateFieldServerComponent, DateFieldServerProps, DateFieldValidation, DayPickerProps, DefaultCellComponentProps, DefaultDocumentIDType, DefaultDocumentViewConfig, DefaultServerCellComponentProps, DefaultServerFunctionArgs, DefaultValue, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Description, DescriptionFunction, Destroy, DevReloadCleanup, DevReloadStrategy, Document, DocumentEvent, DocumentPermissions, DocumentPreferences, DocumentSlots, DocumentSubViewTypes, DocumentTabClientProps, DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabServerProps as DocumentTabProps, DocumentTabServerProps, DocumentTabServerPropsOnly, DocumentViewClientProps, DocumentViewComponent, DocumentViewConfig, DocumentViewServerProps, DocumentViewServerPropsOnly, DraftTransformCollectionWithSelect, DynamicMigrationTemplate, EditConfig, EditConfigWithRoot, EditConfigWithoutRoot, EditMenuItemsClientProps, EditMenuItemsServerProps, EditMenuItemsServerPropsOnly, EditViewComponent, EditViewConfig, EditViewProps, EmailAdapter, EmailField, EmailFieldClient, EmailFieldClientComponent, EmailFieldClientProps, EmailFieldDescriptionClientComponent, EmailFieldDescriptionServerComponent, EmailFieldDiffClientComponent, EmailFieldDiffServerComponent, EmailFieldErrorClientComponent, EmailFieldErrorServerComponent, EmailFieldLabelClientComponent, EmailFieldLabelServerComponent, EmailFieldServerComponent, EmailFieldServerProps, EmailFieldValidation, Endpoint, EntityDescription, EntityDescriptionComponent, EntityDescriptionFunction, EntityPolicies, ErrorResult, FetchAPIFileUploadOptions, Field, FieldAccess, FieldAccessArgs, FieldAffectingData, FieldAffectingDataClient, FieldBase, FieldBaseClient, FieldClientComponent, FieldCustom, FieldDescriptionClientComponent, FieldDescriptionClientProps, FieldDescriptionServerComponent, FieldDescriptionServerProps, FieldDiffClientComponent, FieldDiffClientProps, FieldDiffServerComponent, FieldDiffServerProps, FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, FieldHook, FieldHookArgs, FieldLabelClientComponent, FieldLabelClientProps, FieldLabelServerComponent, FieldLabelServerProps, FieldPaths, FieldPermissions, FieldPosition, FieldPresentationalOnly, FieldPresentationalOnlyClient, FieldRow, FieldSchemaMap, FieldServerComponent, FieldState, FieldTypes, FieldWithMany, FieldWithManyClient, FieldWithMaxDepth, FieldWithMaxDepthClient, FieldWithPath, FieldWithPathClient, FieldWithSubFields, FieldWithSubFieldsClient, FieldsPermissions, FieldsPreferences, FieldsToJSONSchemaArgs, File$1 as File, FileAllowList, FileData, FileSize, FileSizes, FileToSave, FilterOptions, FilterOptionsProps, FilterOptionsResult, Find, FindArgs, FindDistinct, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindOptions, FindVersions, FindVersionsArgs, FlattenedArrayField, FlattenedBlock, FlattenedBlocksField, FlattenedField$1 as FlattenedField, FlattenedGroupField, FlattenedJoinField, FlattenedTabAsField, FocalPoint, FoldersConfig, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FormState, FormStateWithoutComponents, GenerateImageName, GeneratePreviewURL, GenerateSchema, GenerateViewMetadata, GeneratedTypes, GenericDescriptionProps, GenericErrorProps, GenericLabelProps, GetAdminThumbnail, GetInitialTreeDataArgs, GlobalAdminCustom, GlobalAdminOptions, AfterChangeHook$1 as GlobalAfterChangeHook, AfterReadHook$1 as GlobalAfterReadHook, BeforeChangeHook$1 as GlobalBeforeChangeHook, BeforeOperationHook$1 as GlobalBeforeOperationHook, BeforeReadHook$1 as GlobalBeforeReadHook, BeforeValidateHook$1 as GlobalBeforeValidateHook, GlobalConfig, GlobalCustom, GlobalPermission, GlobalSlug, GraphQLExtension, GraphQLInfo, GroupField, GroupFieldClient, GroupFieldClientComponent, GroupFieldClientProps, GroupFieldDescriptionClientComponent, GroupFieldDescriptionServerComponent, GroupFieldDiffClientComponent, GroupFieldDiffServerComponent, GroupFieldErrorClientComponent, GroupFieldErrorServerComponent, GroupFieldLabelClientComponent, GroupFieldLabelServerComponent, GroupFieldServerComponent, GroupFieldServerProps, HiddenFieldProps, HierarchyConfig, HierarchyViewData, HookName, HookOperationType, IfAny, ImageSize, ImageUploadFormatOptions, ImageUploadTrimOptions, ImportMap, ImportMapGenerators, IncomingAuthType, Init, InitOptions, InitPageResult, InitReqResult, InitialTreeData, InsideFieldsPreferences, IsAny, JSONField, JSONFieldClient, JSONFieldClientComponent, JSONFieldClientProps, JSONFieldDescriptionClientComponent, JSONFieldDescriptionServerComponent, JSONFieldDiffClientComponent, JSONFieldDiffServerComponent, JSONFieldErrorClientComponent, JSONFieldErrorServerComponent, JSONFieldLabelClientComponent, JSONFieldLabelServerComponent, JSONFieldServerComponent, JSONFieldServerProps, JSONFieldValidation, Job, JobLog, JobTaskStatus, JobsConfig, JoinField, JoinFieldClient, JoinFieldClientComponent, JoinFieldClientProps, JoinFieldDescriptionClientComponent, JoinFieldDescriptionServerComponent, JoinFieldDiffClientComponent, JoinFieldDiffServerComponent, JoinFieldErrorClientComponent, JoinFieldErrorServerComponent, JoinFieldLabelClientComponent, JoinFieldLabelServerComponent, JoinFieldServerComponent, JoinFieldServerProps, JoinParams, JoinQuery, JsonArray, JsonObject, JsonValue, KVAdapter, KVAdapterResult, KVStoreValue, LabelFunction, Labels, LabelsClient, LanguageOptions, LinkAdapterProps, CollectionPreferences as ListPreferences, ListQuery, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlotSharedClientProps, ListViewSlots, LivePreviewConfig, LivePreviewURLType, Locale, LocalizationConfig, LocalizationConfigWithLabels, LocalizationConfigWithNoLabels, LoginResult, LoginWithUsernameOptions, MappedClientComponent, MappedEmptyComponent, MappedServerComponent, MaybePromise, MeOperationResult, MetaConfig, Migration, MigrationData, MigrationTemplateArgs, NamedGroupField, NamedGroupFieldClient, NamedTab, NavGroupPreferences, NavPreferences, NoResultsClientProps, NoResultsServerProps, NoResultsServerPropsOnly, NonPresentationalField, NonPresentationalFieldClient, NumberField, NumberFieldClient, NumberFieldClientComponent, NumberFieldClientProps, NumberFieldDescriptionClientComponent, NumberFieldDescriptionServerComponent, NumberFieldDiffClientComponent, NumberFieldDiffServerComponent, NumberFieldErrorClientComponent, NumberFieldErrorServerComponent, NumberFieldLabelClientComponent, NumberFieldLabelServerComponent, NumberFieldManyValidation, NumberFieldServerComponent, NumberFieldServerProps, NumberFieldSingleValidation, NumberFieldValidation, OGImageConfig, Operation, Operator, Option, OptionLabel, OptionObject, OrderableEndpointBody, PaginatedDistinctDocs, PaginatedDocs, Params, ParsedParams, PasswordFieldValidation, PathToQuery, Payload, PayloadClientComponentProps, PayloadClientReactComponent, PayloadComponent, PayloadComponentProps, EmailAdapter as PayloadEmailAdapter, PayloadHandler, PayloadLogger, PayloadReactComponent, PayloadRequest, PayloadServerAction, PayloadServerComponentProps, PayloadServerReactComponent, PayloadTypes, PayloadTypesShape, Permission, Permissions, PickPreserveOptional, Plugin, PluginsMap, PointField, PointFieldClient, PointFieldClientComponent, PointFieldClientProps, PointFieldDescriptionClientComponent, PointFieldDescriptionServerComponent, PointFieldDiffClientComponent, PointFieldDiffServerComponent, PointFieldErrorClientComponent, PointFieldErrorServerComponent, PointFieldLabelClientComponent, PointFieldLabelServerComponent, PointFieldServerComponent, PointFieldServerProps, PointFieldValidation, PolymorphicRelationshipField, PolymorphicRelationshipFieldClient, PopulateType, PreferenceRequest, PreferenceUpdateRequest, PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, ProbedImageSize, PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, QueryDrafts, QueryDraftsArgs, QueryPreset, RadioField, RadioFieldClient, RadioFieldClientComponent, RadioFieldClientProps, RadioFieldDescriptionClientComponent, RadioFieldDescriptionServerComponent, RadioFieldDiffClientComponent, RadioFieldDiffServerComponent, RadioFieldErrorClientComponent, RadioFieldErrorServerComponent, RadioFieldLabelClientComponent, RadioFieldLabelServerComponent, RadioFieldServerComponent, RadioFieldServerProps, RadioFieldValidation, RawParams, RawPayloadComponent, 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, ServerFunctionMode, ServerOnlyCollectionAdminProperties, ServerOnlyCollectionProperties, ServerOnlyFieldAdminProperties, ServerOnlyFieldProperties, ServerOnlyGlobalAdminProperties, ServerOnlyGlobalProperties, ServerOnlyLivePreviewProperties, ServerOnlyUploadProperties, ServerProps, ServerPropsFromView, DocumentViewServerProps as ServerSideEditViewProps, SharedAdminComponents, SharedEditViewComponents, SharedEntityViews, SharedProps, SharpDependency, SidebarTab, SidebarTabClientProps, SidebarTabServerProps, SidebarTabServerPropsOnly, SingleRelationshipField, SingleRelationshipFieldClient, SingleTaskStatus, SlugField, SlugFieldClientProps, SlugifyServerFunctionArgs, Sort, StaticDescription, StaticLabel, StorageAdapter, StringKeyOf, Tab, TabAsField, TabAsFieldClient, TabsField, TabsFieldClient, TabsFieldClientComponent, TabsFieldClientProps, TabsFieldDescriptionClientComponent, TabsFieldDescriptionServerComponent, TabsFieldDiffClientComponent, TabsFieldDiffServerComponent, TabsFieldErrorClientComponent, TabsFieldErrorServerComponent, TabsFieldLabelClientComponent, TabsFieldLabelServerComponent, TabsFieldServerComponent, TabsFieldServerProps, TabsPreferences, TagsConfig, TaskConfig, TaskHandler, TaskHandlerArgs, TaskHandlerResult, TaskHandlerResults, TaskInput, TaskOutput, TaskType, TextField, TextFieldClient, TextFieldClientComponent, TextFieldClientProps, TextFieldDescriptionClientComponent, TextFieldDescriptionServerComponent, TextFieldDiffClientComponent, TextFieldDiffServerComponent, TextFieldErrorClientComponent, TextFieldErrorServerComponent, TextFieldLabelClientComponent, TextFieldLabelServerComponent, TextFieldManyValidation, TextFieldServerComponent, TextFieldServerProps, TextFieldSingleValidation, TextFieldValidation, TextareaField, TextareaFieldClient, TextareaFieldClientComponent, TextareaFieldClientProps, TextareaFieldDescriptionClientComponent, TextareaFieldDescriptionServerComponent, TextareaFieldDiffClientComponent, TextareaFieldDiffServerComponent, TextareaFieldErrorClientComponent, TextareaFieldErrorServerComponent, TextareaFieldLabelClientComponent, TextareaFieldLabelServerComponent, TextareaFieldServerComponent, TextareaFieldServerProps, TextareaFieldValidation, TimePickerProps, Timezone, TimezonesConfig, Transaction, TransformCollectionWithSelect, TransformDataWithSelect, TransformGlobalWithSelect, TraverseFieldsCallback, TypeWithID, TypeWithTimestamps, TypeWithVersion, TypedAuthOperations, TypedBlock, TypedCollection, TypedCollectionJoins, TypedCollectionSelect, TypedFallbackLocale, TypedGlobal, TypedGlobalSelect, TypedJobs, TypedLocale, TypedUploadCollection, 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, UserMenuSettingsGroup, UserMenuSettingsItem, UserSession, UsernameFieldValidation, Validate, ValidateOptions, ValidationFieldError, ValueWithRelation, VerifyConfig, VersionField, VersionOperations, VersionTab, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, Where, WhereField, Widget, WidgetInstance, WidgetServerProps, WidgetSlug, WidgetWidth, WithSelectFn, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };
|
|
14731
|
+
export { APIError, APIErrorName, Action, AuthenticationError, BasePayload, DEFAULT_ALLOW_HAS_MANY, DEFAULT_HIERARCHY_TREE_LIMIT, DatabaseKVAdapter, DiffMethod, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, EntityType, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, HIERARCHY_DEFAULT_LOCALE, HIERARCHY_SLUG_PATH_FIELD, HIERARCHY_TITLE_PATH_FIELD, InMemoryKVAdapter, InvalidConfiguration, InvalidFieldName, InvalidFieldRelationship, JWTAuthentication, JobCancelledError, Locked, LockedAuth, MissingCollectionLabel, MissingEditorProp, MissingFieldInputOptions, MissingFieldType, MissingFile, NotFound, QueryError, UnauthorizedError, UnverifiedEmail, ValidationError, ValidationErrorName, _internal_jobSystemGlobals, _internal_resetJobSystemGlobals, _internal_safeFetchGlobal, accessOperation, addDataAndFileToRequest, addDefaultsToConfig, addLocalesToRequestFromData, traverseFields$4 as afterChangeTraverseFields, promise as afterReadPromise, traverseFields$3 as afterReadTraverseFields, appendVersionToQueryKey, accountLockFields as baseAccountLockFields, baseAuthFields, baseBlockFields, emailFieldConfig as baseEmailField, baseIDField, sessionsFieldConfig as baseSessionsField, usernameFieldConfig as baseUsernameField, verificationFields as baseVerificationFields, traverseFields$2 as beforeChangeTraverseFields, traverseFields$1 as beforeValidateTraverseFields, buildConfig, buildVersionCollectionFields, buildVersionCompoundIndexes, buildVersionGlobalFields, canAccessAdmin, checkDependencies, checkLoginPermission, combineQueries, commitTransaction, configToJSONSchema, countOperation, countRunnableOrActiveJobsForQueue, createAPIKeyFields, createArrayFromCommaDelineated, createClientBlocks, createClientCollectionConfig, createClientCollectionConfigs, createClientConfig, createClientField, createClientFields, createClientGlobalConfig, createClientGlobalConfigs, createDatabaseAdapter, createDataloaderCacheKey, createFolderField, createLocalReq, createMigration, createOperation, createPayloadRequest, createTagField, createUnauthenticatedClientConfig, databaseKVAdapter, deepCopyObject, deepCopyObjectComplex, deepCopyObjectSimple, deepMergeSimple, deepMergeWithCombinedArrays, deepMergeWithReactComponents, deepMergeWithSourceArrays, initialized as default, defaultBeginTransaction, defaultLoggerOptions, defaultUserCollection, definePlugin, deleteByIDOperation, deleteCollectionVersions, deleteOperation, docAccessOperation$1 as docAccessOperation, docAccessOperation as docAccessOperationGlobal, docHasTimestamps, duplicateOperation, dynamicImport, enforceMaxVersions, entityToJSONSchema, entityToStandaloneJSONSchema, escapeRegExp, executeAccess, executeAuthStrategies, extractAccessFromPermission, extractJWT, fieldsToJSONSchema, findByIDOperation, findMigrationDir, findOneOperation, findOperation, findUp, findUpSync, findVersionByIDOperation$1 as findVersionByIDOperation, findVersionByIDOperation as findVersionByIDOperationGlobal, findVersionsOperation$1 as findVersionsOperation, findVersionsOperation as findVersionsOperationGlobal, flattenAllFields, flattenTopLevelFields, flattenWhereToOperators, forgotPasswordOperation, formatErrors, formatLabels, formatNames, genImportMapIterateFields, generateCookie, generateExpiredPayloadCookie, generateImportMap, generatePayloadCookie, getAccessResults, getAncestors, getBlockSelect, getCollectionIDFieldTypes, getCookieExpiration, getCurrentDate, getDataLoader, getDefaultValue, getDependencies, getFieldByPath, getFieldsToSign, getFileByPath, getHierarchyFieldName, getInitialTreeData, getLatestCollectionVersion, getLatestGlobalVersion, getLocalI18n, getLocalizedPaths, getLoginOptions, getMigrations, getObjectDotNotation, getPayload, getPredefinedMigration, getQueryDraftsSort, getRequestLanguage, handleEndpoints, hasWhereAccessResult, headersWithCors, importHandlerPath, inMemoryKVAdapter, incrementLoginAttempts, initOperation, initTransaction, injectHierarchyButton, isEntityHidden, isPlainObject, isUserMenuSettingsGroup, isValidID, isolateObjectProperty, jobAfterRead, jwtSign, killTransaction, logError, loginOperation, logoutOperation, mapAsync, meOperation, mergeHeaders, migrate, migrate$1 as migrateCLI, migrateDown, migrateRefresh, migrateReset, migrateStatus, migrationTemplate, migrationsCollection, parseCookies, parseDocumentID, parseParams, pathExistsAndIsAccessible, pathExistsAndIsAccessibleSync, readMigrationFiles, refreshOperation, registerBlockInterface, registerFirstUserOperation, reload, resetLoginAttempts, resetPasswordOperation, resolveHierarchyCollections, restoreVersionOperation$1 as restoreVersionOperation, restoreVersionOperation as restoreVersionOperationGlobal, sanitizeConfig, sanitizeFallbackLocale, sanitizeField, sanitizeFields, sanitizeJoinParams, sanitizeLocales, sanitizePopulateParam, sanitizeSelectParam, sanitizeSortParams, saveVersion, serverOnlyAdminConfigProperties, serverOnlyConfigProperties, serverProps, sortableFieldTypes, stripUnselectedFields, toWords, traverseFields, unlockOperation, updateByIDOperation, updateOperation$1 as updateOperation, updateOperation as updateOperationGlobal, validateBlocksFilterOptions, validateQueryPaths, validateSearchParam, validations, verifyEmailOperation, versionDefaults, withNullableJSONSchemaType, writeMigrationIndex };
|
|
14732
|
+
export type { Access, AccessArgs, AccessResult, AdminClient, AdminComponent, AdminDependencies, AdminFunction, AdminView, AdminViewAdapter, AdminViewClientProps, AdminViewComponent, AdminViewConfig, AdminViewKey, AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, AfterErrorHook$1 as AfterErrorHook, AfterErrorHookArgs, AfterErrorResult, AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, AllOperations, AllowList, Ancestor, ApplyDisableErrors, ArrayField, ArrayFieldClient, ArrayFieldClientComponent, ArrayFieldClientProps, ArrayFieldDescriptionClientComponent, ArrayFieldDescriptionServerComponent, ArrayFieldDiffClientComponent, ArrayFieldDiffServerComponent, ArrayFieldErrorClientComponent, ArrayFieldErrorServerComponent, ArrayFieldLabelClientComponent, ArrayFieldLabelServerComponent, ArrayFieldServerComponent, ArrayFieldServerProps, ArrayFieldValidation, Auth, AuthCollection, AuthCollectionSlug, AuthOperations, AuthOperationsFromCollectionSlug, AuthRuntimeFields, AuthStrategy, AuthStrategyFunction, AuthStrategyFunctionArgs, AuthStrategyResult, AuthenticatedUser, BaseDatabaseAdapter, BaseFilter, BaseJob, BaseListFilter, BaseLocalizationConfig, BaseValidateOptions, BaseVersionField, BeforeDocumentControlsClientProps, BeforeDocumentControlsServerProps, BeforeDocumentControlsServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, BeginTransaction, BinScript, BinScriptConfig, Block, BlockJSX, BlockPermissions, BlockRowLabelClientComponent, BlockRowLabelServerComponent, BlockSlug, BlocksField, BlocksFieldClient, BlocksFieldClientComponent, BlocksFieldClientProps, BlocksFieldDescriptionClientComponent, BlocksFieldDescriptionServerComponent, BlocksFieldDiffClientComponent, BlocksFieldDiffServerComponent, BlocksFieldErrorClientComponent, BlocksFieldErrorServerComponent, BlocksFieldLabelClientComponent, BlocksFieldLabelServerComponent, BlocksFieldServerComponent, BlocksFieldServerProps, BlocksFieldValidation, BlocksPermissions, BuildFormStateArgs, BuildTableStateArgs, BulkOperationResult, CORSConfig, CheckboxField, CheckboxFieldClient, CheckboxFieldClientComponent, CheckboxFieldClientProps, CheckboxFieldDescriptionClientComponent, CheckboxFieldDescriptionServerComponent, CheckboxFieldDiffClientComponent, CheckboxFieldDiffServerComponent, CheckboxFieldErrorClientComponent, CheckboxFieldErrorServerComponent, CheckboxFieldLabelClientComponent, CheckboxFieldLabelServerComponent, CheckboxFieldServerComponent, CheckboxFieldServerProps, CheckboxFieldValidation, ClientBlock, ClientCollectionConfig, ClientComponentProps, ClientConfig, ClientField, ClientFieldBase, ClientFieldProps, ClientFieldSchemaMap, ClientFieldWithOptionalType, ClientGlobalConfig, DocumentViewClientProps as ClientSideEditViewProps, ClientTab, ClientUser, ClientWidget, CodeField, CodeFieldClient, CodeFieldClientComponent, CodeFieldClientProps, CodeFieldDescriptionClientComponent, CodeFieldDescriptionServerComponent, CodeFieldDiffClientComponent, CodeFieldDiffServerComponent, CodeFieldErrorClientComponent, CodeFieldErrorServerComponent, CodeFieldLabelClientComponent, CodeFieldLabelServerComponent, CodeFieldServerComponent, CodeFieldServerProps, CodeFieldValidation, CollapsedPreferences, CollapsibleField, CollapsibleFieldClient, CollapsibleFieldClientComponent, CollapsibleFieldClientProps, CollapsibleFieldDescriptionClientComponent, CollapsibleFieldDescriptionServerComponent, CollapsibleFieldDiffClientComponent, CollapsibleFieldDiffServerComponent, CollapsibleFieldErrorClientComponent, CollapsibleFieldErrorServerComponent, CollapsibleFieldLabelClientComponent, CollapsibleFieldLabelServerComponent, CollapsibleFieldServerComponent, CollapsibleFieldServerProps, Collection, CollectionAdminCustom, CollectionAdminOptions, AfterChangeHook as CollectionAfterChangeHook, AfterDeleteHook as CollectionAfterDeleteHook, AfterErrorHook as CollectionAfterErrorHook, AfterForgotPasswordHook as CollectionAfterForgotPasswordHook, AfterLoginHook as CollectionAfterLoginHook, AfterLogoutHook as CollectionAfterLogoutHook, AfterMeHook as CollectionAfterMeHook, AfterOperationHook as CollectionAfterOperationHook, AfterReadHook as CollectionAfterReadHook, AfterRefreshHook as CollectionAfterRefreshHook, BeforeChangeHook as CollectionBeforeChangeHook, BeforeDeleteHook as CollectionBeforeDeleteHook, BeforeLoginHook as CollectionBeforeLoginHook, BeforeOperationHook as CollectionBeforeOperationHook, BeforeReadHook as CollectionBeforeReadHook, BeforeValidateHook as CollectionBeforeValidateHook, CollectionConfig, CollectionCustom, MeHook as CollectionMeHook, CollectionPermission, CollectionPreferences, RefreshHook as CollectionRefreshHook, CollectionSlug, Column, ColumnPreference, CommitTransaction, ComponentRenderer, CompoundIndex, ConcurrencyConfig, Condition, ConditionalDateProps, Config, ConfirmPasswordFieldValidation, Connect, CookieOptions$1 as CookieOptions, CookieStore, Count, CountArgs, CountGlobalVersionArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateClientConfigArgs, CreateFolderFieldOptions, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateTagFieldOptions, CreateVersion, CreateVersionArgs, CustomComponent, CustomDocumentViewConfig, CustomPayloadRequestProperties, CustomComponent as CustomPreviewButton, CustomComponent as CustomPublishButton, CustomComponent as CustomSaveButton, CustomComponent as CustomSaveDraftButton, CustomStatus, CustomUpload, CustomVersionParser, DBIdentifierName, DashboardConfig, Data, DataFromCollectionSlug, DataFromGlobalSlug, DataFromWidgetSlug, DatabaseAdapter, DatabaseAdapterResult as DatabaseAdapterObj, DatabaseKVAdapterOptions, DateField, DateFieldClient, DateFieldClientComponent, DateFieldClientProps, DateFieldDescriptionClientComponent, DateFieldDescriptionServerComponent, DateFieldDiffClientComponent, DateFieldDiffServerComponent, DateFieldErrorClientComponent, DateFieldErrorServerComponent, DateFieldLabelClientComponent, DateFieldLabelServerComponent, DateFieldServerComponent, DateFieldServerProps, DateFieldValidation, DayPickerProps, DefaultCellComponentProps, DefaultDocumentIDType, DefaultDocumentViewConfig, DefaultServerCellComponentProps, DefaultServerFunctionArgs, DefaultValue, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Description, DescriptionFunction, Destroy, DevReloadCleanup, DevReloadStrategy, Document, DocumentEvent, DocumentPermissions, DocumentPreferences, DocumentSlots, DocumentSubViewTypes, DocumentTabClientProps, DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabServerProps as DocumentTabProps, DocumentTabServerProps, DocumentTabServerPropsOnly, DocumentViewClientProps, DocumentViewComponent, DocumentViewConfig, DocumentViewServerProps, DocumentViewServerPropsOnly, DraftTransformCollectionWithSelect, DynamicMigrationTemplate, EditConfig, EditConfigWithRoot, EditConfigWithoutRoot, EditMenuItemsClientProps, EditMenuItemsServerProps, EditMenuItemsServerPropsOnly, EditViewComponent, EditViewConfig, EditViewProps, EmailAdapter, EmailField, EmailFieldClient, EmailFieldClientComponent, EmailFieldClientProps, EmailFieldDescriptionClientComponent, EmailFieldDescriptionServerComponent, EmailFieldDiffClientComponent, EmailFieldDiffServerComponent, EmailFieldErrorClientComponent, EmailFieldErrorServerComponent, EmailFieldLabelClientComponent, EmailFieldLabelServerComponent, EmailFieldServerComponent, EmailFieldServerProps, EmailFieldValidation, Endpoint, EntityDescription, EntityDescriptionComponent, EntityDescriptionFunction, EntityPolicies, ErrorResult, FetchAPIFileUploadOptions, Field, FieldAccess, FieldAccessArgs, FieldAffectingData, FieldAffectingDataClient, FieldBase, FieldBaseClient, FieldClientComponent, FieldCustom, FieldDescriptionClientComponent, FieldDescriptionClientProps, FieldDescriptionServerComponent, FieldDescriptionServerProps, FieldDiffClientComponent, FieldDiffClientProps, FieldDiffServerComponent, FieldDiffServerProps, FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, FieldHook, FieldHookArgs, FieldLabelClientComponent, FieldLabelClientProps, FieldLabelServerComponent, FieldLabelServerProps, FieldPaths, FieldPermissions, FieldPosition, FieldPresentationalOnly, FieldPresentationalOnlyClient, FieldRow, FieldSchemaMap, FieldServerComponent, FieldState, FieldTypes, FieldWithMany, FieldWithManyClient, FieldWithMaxDepth, FieldWithMaxDepthClient, FieldWithPath, FieldWithPathClient, FieldWithSubFields, FieldWithSubFieldsClient, FieldsPermissions, FieldsPreferences, FieldsToJSONSchemaArgs, File$1 as File, FileAllowList, FileData, FileSize, FileSizes, FileToSave, FilterOptions, FilterOptionsProps, FilterOptionsResult, Find, FindArgs, FindDistinct, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindOptions, FindVersions, FindVersionsArgs, FlattenedArrayField, FlattenedBlock, FlattenedBlocksField, FlattenedField$1 as FlattenedField, FlattenedGroupField, FlattenedJoinField, FlattenedTabAsField, FocalPoint, FoldersConfig, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FormState, FormStateWithoutComponents, GenerateImageName, GeneratePreviewURL, GenerateSchema, GenerateViewMetadata, GeneratedTypes, GenericDescriptionProps, GenericErrorProps, GenericLabelProps, GetAdminThumbnail, GetInitialTreeDataArgs, GlobalAdminCustom, GlobalAdminOptions, AfterChangeHook$1 as GlobalAfterChangeHook, AfterReadHook$1 as GlobalAfterReadHook, BeforeChangeHook$1 as GlobalBeforeChangeHook, BeforeOperationHook$1 as GlobalBeforeOperationHook, BeforeReadHook$1 as GlobalBeforeReadHook, BeforeValidateHook$1 as GlobalBeforeValidateHook, GlobalConfig, GlobalCustom, GlobalPermission, GlobalSlug, GraphQLExtension, GraphQLInfo, GroupField, GroupFieldClient, GroupFieldClientComponent, GroupFieldClientProps, GroupFieldDescriptionClientComponent, GroupFieldDescriptionServerComponent, GroupFieldDiffClientComponent, GroupFieldDiffServerComponent, GroupFieldErrorClientComponent, GroupFieldErrorServerComponent, GroupFieldLabelClientComponent, GroupFieldLabelServerComponent, GroupFieldServerComponent, GroupFieldServerProps, HiddenFieldProps, HierarchyConfig, HierarchyViewData, HookName, HookOperationType, IDTypeForCollectionSlug, IfAny, ImageSize, ImageUploadFormatOptions, ImageUploadTrimOptions, ImportMap, ImportMapGenerators, IncomingAuthType, Init, InitOptions, InitPageResult, InitReqResult, InitialTreeData, InsideFieldsPreferences, IsAny, JSONField, JSONFieldClient, JSONFieldClientComponent, JSONFieldClientProps, JSONFieldDescriptionClientComponent, JSONFieldDescriptionServerComponent, JSONFieldDiffClientComponent, JSONFieldDiffServerComponent, JSONFieldErrorClientComponent, JSONFieldErrorServerComponent, JSONFieldLabelClientComponent, JSONFieldLabelServerComponent, JSONFieldServerComponent, JSONFieldServerProps, JSONFieldValidation, Job, JobLog, JobTaskStatus, JobsConfig, JoinField, JoinFieldClient, JoinFieldClientComponent, JoinFieldClientProps, JoinFieldDescriptionClientComponent, JoinFieldDescriptionServerComponent, JoinFieldDiffClientComponent, JoinFieldDiffServerComponent, JoinFieldErrorClientComponent, JoinFieldErrorServerComponent, JoinFieldLabelClientComponent, JoinFieldLabelServerComponent, JoinFieldServerComponent, JoinFieldServerProps, JoinParams, JoinQuery, JsonArray, JsonObject, JsonValue, KVAdapter, KVAdapterResult, KVStoreValue, LabelFunction, Labels, LabelsClient, LanguageOptions, LinkAdapterProps, CollectionPreferences as ListPreferences, ListQuery, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlotSharedClientProps, ListViewSlots, LivePreviewConfig, LivePreviewURLType, Locale, LocalizationConfig, LocalizationConfigWithLabels, LocalizationConfigWithNoLabels, LoginResult, LoginWithUsernameOptions, MappedClientComponent, MappedEmptyComponent, MappedServerComponent, MaybePromise, MeOperationResult, MetaConfig, Migration, MigrationData, MigrationTemplateArgs, NamedGroupField, NamedGroupFieldClient, NamedTab, NavGroupPreferences, NavPreferences, NoResultsClientProps, NoResultsServerProps, NoResultsServerPropsOnly, NonPresentationalField, NonPresentationalFieldClient, NumberField, NumberFieldClient, NumberFieldClientComponent, NumberFieldClientProps, NumberFieldDescriptionClientComponent, NumberFieldDescriptionServerComponent, NumberFieldDiffClientComponent, NumberFieldDiffServerComponent, NumberFieldErrorClientComponent, NumberFieldErrorServerComponent, NumberFieldLabelClientComponent, NumberFieldLabelServerComponent, NumberFieldManyValidation, NumberFieldServerComponent, NumberFieldServerProps, NumberFieldSingleValidation, NumberFieldValidation, OGImageConfig, Operation, Operator, Option, OptionLabel, OptionObject, OrderableEndpointBody, PaginatedDistinctDocs, PaginatedDocs, Params, ParsedParams, PasswordFieldValidation, PathToQuery, Payload, PayloadClientComponentProps, PayloadClientReactComponent, PayloadComponent, PayloadComponentProps, EmailAdapter as PayloadEmailAdapter, PayloadHandler, PayloadLogger, PayloadReactComponent, PayloadRequest, PayloadRequestAPI, PayloadServerAction, PayloadServerComponentProps, PayloadServerReactComponent, PayloadTypes, PayloadTypesShape, Permission, Permissions, PickPreserveOptional, Plugin, PluginsMap, PointField, PointFieldClient, PointFieldClientComponent, PointFieldClientProps, PointFieldDescriptionClientComponent, PointFieldDescriptionServerComponent, PointFieldDiffClientComponent, PointFieldDiffServerComponent, PointFieldErrorClientComponent, PointFieldErrorServerComponent, PointFieldLabelClientComponent, PointFieldLabelServerComponent, PointFieldServerComponent, PointFieldServerProps, PointFieldValidation, PolymorphicRelationshipField, PolymorphicRelationshipFieldClient, PopulateType, PreferenceRequest, PreferenceUpdateRequest, PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, ProbedImageSize, PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, QueryDrafts, QueryDraftsArgs, QueryPreset, RadioField, RadioFieldClient, RadioFieldClientComponent, RadioFieldClientProps, RadioFieldDescriptionClientComponent, RadioFieldDescriptionServerComponent, RadioFieldDiffClientComponent, RadioFieldDiffServerComponent, RadioFieldErrorClientComponent, RadioFieldErrorServerComponent, RadioFieldLabelClientComponent, RadioFieldLabelServerComponent, RadioFieldServerComponent, RadioFieldServerProps, RadioFieldValidation, RawParams, RawPayloadComponent, RecentlyViewedItem, RecentlyViewedPreferences, RegisteredPlugins, RelatedDocumentsGrouped, RelationshipField, RelationshipFieldClient, RelationshipFieldClientComponent, RelationshipFieldClientProps, RelationshipFieldDescriptionClientComponent, RelationshipFieldDescriptionServerComponent, RelationshipFieldDiffClientComponent, RelationshipFieldDiffServerComponent, RelationshipFieldErrorClientComponent, RelationshipFieldErrorServerComponent, RelationshipFieldLabelClientComponent, RelationshipFieldLabelServerComponent, RelationshipFieldManyValidation, RelationshipFieldServerComponent, RelationshipFieldServerProps, RelationshipFieldSingleValidation, RelationshipFieldValidation, RelationshipValue, RenderConfigArgs, RenderDocumentVersionsProperties, RenderEntityConfigArgs, RenderFieldConfigArgs, RenderRootConfigArgs, RenderedField, ReplaceAny, RequestContext, RequiredDataFromCollection, RequiredDataFromCollectionSlug, ResolvedComponent, ResolvedFilterOptions, RichTextAdapter, RichTextAdapterProvider, RichTextField, RichTextFieldClient, RichTextFieldClientComponent, RichTextFieldClientProps, RichTextFieldDescriptionClientComponent, RichTextFieldDescriptionServerComponent, RichTextFieldDiffClientComponent, RichTextFieldDiffServerComponent, RichTextFieldErrorClientComponent, RichTextFieldErrorServerComponent, RichTextFieldLabelClientComponent, RichTextFieldLabelServerComponent, RichTextFieldServerComponent, RichTextFieldServerProps, RichTextFieldValidation, RichTextHooks, RollbackTransaction, RootLivePreviewConfig, RouterAdapterComponent, RouterAdapterRouter, Row, RowField, RowFieldClient, RowFieldClientComponent, RowFieldClientProps, RowFieldDescriptionClientComponent, RowFieldDescriptionServerComponent, RowFieldDiffClientComponent, RowFieldDiffServerComponent, RowFieldErrorClientComponent, RowFieldErrorServerComponent, RowFieldLabelClientComponent, RowFieldLabelServerComponent, RowFieldServerComponent, RowFieldServerProps, RowLabel, RowLabelComponent, RunInlineTaskFunction, RunJobAccess, RunJobAccessArgs, RunTaskFunction, RunTaskFunctions, RunningJob, SanitizeFieldArgs, SanitizedBlockPermissions, SanitizedBlocksPermissions, SanitizedCollectionConfig, SanitizedCollectionPermission, SanitizedCompoundIndex, SanitizedConfig, SanitizedDashboardConfig, SanitizedDocumentPermissions, SanitizedFieldPermissions, SanitizedFieldsPermissions, SanitizedGlobalConfig, SanitizedGlobalPermission, SanitizedHierarchyConfig, SanitizedHierarchyRelatedCollection, SanitizedJoins, SanitizedLabelProps, SanitizedLocalizationConfig, SanitizedPermissions, SanitizedUploadConfig, SaveButtonClientProps, SaveButtonServerProps, SaveButtonServerPropsOnly, SaveDraftButtonClientProps, SaveDraftButtonServerProps, SaveDraftButtonServerPropsOnly, SchedulePublish, SchedulePublishTaskInput, SchemaVariant, SelectExcludeType, SelectField, SelectFieldClient, SelectFieldClientComponent, SelectFieldClientProps, SelectFieldDescriptionClientComponent, SelectFieldDescriptionServerComponent, SelectFieldDiffClientComponent, SelectFieldDiffServerComponent, SelectFieldErrorClientComponent, SelectFieldErrorServerComponent, SelectFieldLabelClientComponent, SelectFieldLabelServerComponent, SelectFieldManyValidation, SelectFieldServerComponent, SelectFieldServerProps, SelectFieldSingleValidation, SelectFieldValidation, SelectFn, SelectFnArgs, SelectFnOperation, SelectIncludeType, SelectMode, SelectType, SendEmailOptions, ServerAdapter, ServerComponentProps, ServerFieldBase, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, ServerFunctionMode, ServerOnlyCollectionAdminProperties, ServerOnlyCollectionProperties, ServerOnlyFieldAdminProperties, ServerOnlyFieldProperties, ServerOnlyGlobalAdminProperties, ServerOnlyGlobalProperties, ServerOnlyLivePreviewProperties, ServerOnlyUploadProperties, ServerProps, ServerPropsFromView, DocumentViewServerProps as ServerSideEditViewProps, SharedAdminComponents, SharedEditViewComponents, SharedEntityViews, SharedProps, SharpDependency, SidebarTab, SidebarTabClientProps, SidebarTabServerProps, SidebarTabServerPropsOnly, SingleRelationshipField, SingleRelationshipFieldClient, SingleTaskStatus, SlugField, SlugFieldClient, SlugFieldClientProps, SlugifyServerFunctionArgs, Sort, StaticDescription, StaticLabel, StorageAdapter, StringKeyOf, Tab, TabAsField, TabAsFieldClient, TabsField, TabsFieldClient, TabsFieldClientComponent, TabsFieldClientProps, TabsFieldDescriptionClientComponent, TabsFieldDescriptionServerComponent, TabsFieldDiffClientComponent, TabsFieldDiffServerComponent, TabsFieldErrorClientComponent, TabsFieldErrorServerComponent, TabsFieldLabelClientComponent, TabsFieldLabelServerComponent, TabsFieldServerComponent, TabsFieldServerProps, TabsPreferences, TagsConfig, TaskConfig, TaskHandler, TaskHandlerArgs, TaskHandlerResult, TaskHandlerResults, TaskInput, TaskOutput, TaskType, TextField, TextFieldClient, TextFieldClientComponent, TextFieldClientProps, TextFieldDescriptionClientComponent, TextFieldDescriptionServerComponent, TextFieldDiffClientComponent, TextFieldDiffServerComponent, TextFieldErrorClientComponent, TextFieldErrorServerComponent, TextFieldLabelClientComponent, TextFieldLabelServerComponent, TextFieldManyValidation, TextFieldServerComponent, TextFieldServerProps, TextFieldSingleValidation, TextFieldValidation, TextareaField, TextareaFieldClient, TextareaFieldClientComponent, TextareaFieldClientProps, TextareaFieldDescriptionClientComponent, TextareaFieldDescriptionServerComponent, TextareaFieldDiffClientComponent, TextareaFieldDiffServerComponent, TextareaFieldErrorClientComponent, TextareaFieldErrorServerComponent, TextareaFieldLabelClientComponent, TextareaFieldLabelServerComponent, TextareaFieldServerComponent, TextareaFieldServerProps, TextareaFieldValidation, TimePickerProps, Timezone, TimezonesConfig, Transaction, TransformCollectionWithSelect, TransformDataWithSelect, TransformGlobalWithSelect, TraverseFieldsCallback, TypeWithID, TypeWithTimestamps, TypeWithVersion, TypedAuthOperations, TypedBlock, TypedCollection, TypedCollectionJoins, TypedCollectionSelect, TypedFallbackLocale, TypedGlobal, TypedGlobalSelect, TypedJobs, TypedLocale, TypedUploadCollection, TypedWidget, UIField, UIFieldClient, UIFieldClientComponent, UIFieldClientProps, UIFieldDiffClientComponent, UIFieldDiffServerComponent, UIFieldServerComponent, UIFieldServerProps, UnauthenticatedClientConfig, UnnamedGroupField, UnnamedGroupFieldClient, UnnamedTab, UnpublishButtonClientProps, UnpublishButtonServerProps, UnpublishButtonServerPropsOnly, UntypedPayloadTypes, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateJobs, UpdateJobsArgs, UpdateMany, UpdateManyArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, UploadCollectionSlug, UploadConfig, UploadEdits, UploadField, UploadFieldClient, UploadFieldClientComponent, UploadFieldClientProps, UploadFieldDescriptionClientComponent, UploadFieldDescriptionServerComponent, UploadFieldDiffClientComponent, UploadFieldDiffServerComponent, UploadFieldErrorClientComponent, UploadFieldErrorServerComponent, UploadFieldLabelClientComponent, UploadFieldLabelServerComponent, UploadFieldManyValidation, UploadFieldServerComponent, UploadFieldServerProps, UploadFieldSingleValidation, UploadFieldValidation, UploadFilePreviewClientProps, Upsert, UpsertArgs, User, UserMenuSettingsGroup, UserMenuSettingsItem, UserSession, UsernameFieldValidation, Validate, ValidateOptions, ValidationFieldError, ValueWithRelation, VerifyConfig, VersionField, VersionOperations, VersionTab, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, Where, WhereField, Widget, WidgetInstance, WidgetServerProps, WidgetSlug, WidgetWidth, WithSelectFn, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };
|