payload 4.0.0-internal.40de3ec → 4.0.0-internal.45cfa3d
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/fields/Row.d.ts +2 -2
- package/dist/admin/fields/Row.d.ts.map +1 -1
- package/dist/admin/fields/Row.js.map +1 -1
- package/dist/admin/forms/Description.d.ts +2 -2
- package/dist/admin/forms/Description.d.ts.map +1 -1
- package/dist/admin/forms/Description.js.map +1 -1
- package/dist/admin/forms/Field.d.ts +3 -5
- 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/types.d.ts +2 -1
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/admin/views/document.d.ts +0 -4
- package/dist/admin/views/document.d.ts.map +1 -1
- package/dist/admin/views/document.js.map +1 -1
- package/dist/admin/views/list.d.ts +5 -0
- package/dist/admin/views/list.d.ts.map +1 -1
- package/dist/admin/views/list.js.map +1 -1
- package/dist/auth/baseFields/apiKey.d.ts +10 -2
- package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
- package/dist/auth/baseFields/apiKey.js +35 -24
- package/dist/auth/baseFields/apiKey.js.map +1 -1
- package/dist/auth/getAuthFields.js +2 -2
- package/dist/auth/getAuthFields.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 +11 -0
- package/dist/bin/generateImportMap/iterateCollections.js.map +1 -1
- package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -1
- package/dist/bin/generateImportMap/iterateConfig.js +12 -0
- package/dist/bin/generateImportMap/iterateConfig.js.map +1 -1
- package/dist/bin/generateImportMap/utilities/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/sanitize.d.ts.map +1 -1
- package/dist/collections/config/sanitize.js +1 -11
- package/dist/collections/config/sanitize.js.map +1 -1
- package/dist/collections/config/types.d.ts +7 -0
- package/dist/collections/config/types.d.ts.map +1 -1
- package/dist/collections/config/types.js.map +1 -1
- package/dist/collections/endpoints/create.d.ts.map +1 -1
- package/dist/collections/endpoints/create.js +0 -2
- package/dist/collections/endpoints/create.js.map +1 -1
- package/dist/collections/endpoints/updateByID.d.ts.map +1 -1
- package/dist/collections/endpoints/updateByID.js +1 -2
- package/dist/collections/endpoints/updateByID.js.map +1 -1
- package/dist/collections/operations/count.d.ts.map +1 -1
- package/dist/collections/operations/count.js +1 -0
- package/dist/collections/operations/count.js.map +1 -1
- package/dist/collections/operations/create.d.ts +0 -1
- package/dist/collections/operations/create.d.ts.map +1 -1
- package/dist/collections/operations/create.js +14 -6
- package/dist/collections/operations/create.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 +7 -11
- package/dist/collections/operations/local/update.d.ts.map +1 -1
- package/dist/collections/operations/local/update.js +1 -2
- package/dist/collections/operations/local/update.js.map +1 -1
- package/dist/collections/operations/update.d.ts +0 -1
- package/dist/collections/operations/update.d.ts.map +1 -1
- package/dist/collections/operations/update.js +8 -4
- package/dist/collections/operations/update.js.map +1 -1
- package/dist/collections/operations/updateByID.d.ts +0 -1
- package/dist/collections/operations/updateByID.d.ts.map +1 -1
- package/dist/collections/operations/updateByID.js +1 -5
- package/dist/collections/operations/updateByID.js.map +1 -1
- package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.d.ts +9 -0
- package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.d.ts.map +1 -0
- package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.js +170 -0
- package/dist/collections/operations/utilities/copyDataWithFreshRowIDs.js.map +1 -0
- package/dist/collections/operations/utilities/types.d.ts +0 -9
- package/dist/collections/operations/utilities/types.d.ts.map +1 -1
- package/dist/collections/operations/utilities/types.js.map +1 -1
- package/dist/collections/operations/utilities/update.d.ts +1 -2
- package/dist/collections/operations/utilities/update.d.ts.map +1 -1
- package/dist/collections/operations/utilities/update.js +48 -57
- package/dist/collections/operations/utilities/update.js.map +1 -1
- package/dist/config/client.d.ts +2 -2
- package/dist/config/client.d.ts.map +1 -1
- package/dist/config/client.js.map +1 -1
- package/dist/config/defaults.d.ts +0 -4
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +0 -78
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/definePlugin.d.ts +10 -10
- package/dist/config/definePlugin.d.ts.map +1 -1
- package/dist/config/definePlugin.js +7 -11
- package/dist/config/definePlugin.js.map +1 -1
- package/dist/config/orderable/index.d.ts.map +1 -1
- package/dist/config/orderable/index.js +23 -0
- package/dist/config/orderable/index.js.map +1 -1
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/config/sanitize.js +137 -13
- package/dist/config/sanitize.js.map +1 -1
- package/dist/config/types.d.ts +49 -20
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +1 -0
- package/dist/config/types.js.map +1 -1
- package/dist/errors/ValidationError.d.ts +1 -0
- package/dist/errors/ValidationError.d.ts.map +1 -1
- package/dist/errors/ValidationError.js.map +1 -1
- package/dist/exports/migrations.d.ts +5 -13
- package/dist/exports/migrations.d.ts.map +1 -1
- package/dist/exports/migrations.js +5 -13
- package/dist/exports/migrations.js.map +1 -1
- package/dist/exports/shared.d.ts +3 -2
- package/dist/exports/shared.d.ts.map +1 -1
- package/dist/exports/shared.js +3 -2
- package/dist/exports/shared.js.map +1 -1
- package/dist/fields/config/client.d.ts.map +1 -1
- package/dist/fields/config/client.js +10 -3
- package/dist/fields/config/client.js.map +1 -1
- package/dist/fields/config/types.d.ts +13 -1
- 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 +10 -1
- package/dist/fields/hooks/afterRead/promise.js.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.js.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/globals/config/sanitize.d.ts.map +1 -1
- package/dist/globals/config/sanitize.js +1 -6
- package/dist/globals/config/sanitize.js.map +1 -1
- package/dist/globals/endpoints/update.d.ts.map +1 -1
- package/dist/globals/endpoints/update.js +0 -2
- package/dist/globals/endpoints/update.js.map +1 -1
- package/dist/globals/operations/local/countVersions.d.ts +3 -3
- package/dist/globals/operations/local/countVersions.d.ts.map +1 -1
- package/dist/globals/operations/local/countVersions.js.map +1 -1
- package/dist/globals/operations/local/findOne.d.ts +3 -3
- package/dist/globals/operations/local/findOne.d.ts.map +1 -1
- package/dist/globals/operations/local/findOne.js.map +1 -1
- package/dist/globals/operations/local/findVersionByID.d.ts +3 -3
- package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/local/findVersionByID.js.map +1 -1
- package/dist/globals/operations/local/findVersions.d.ts +3 -3
- package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
- package/dist/globals/operations/local/findVersions.js.map +1 -1
- package/dist/globals/operations/local/restoreVersion.d.ts +3 -3
- package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
- package/dist/globals/operations/local/restoreVersion.js.map +1 -1
- package/dist/globals/operations/local/update.d.ts +7 -9
- package/dist/globals/operations/local/update.d.ts.map +1 -1
- package/dist/globals/operations/local/update.js +1 -2
- package/dist/globals/operations/local/update.js.map +1 -1
- package/dist/globals/operations/update.d.ts +0 -1
- package/dist/globals/operations/update.d.ts.map +1 -1
- package/dist/globals/operations/update.js +52 -58
- package/dist/globals/operations/update.js.map +1 -1
- package/dist/index.bundled.d.ts +441 -311
- package/dist/index.d.ts +62 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- 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/query-presets/config.d.ts.map +1 -1
- package/dist/query-presets/config.js +73 -34
- package/dist/query-presets/config.js.map +1 -1
- package/dist/query-presets/constraints.d.ts.map +1 -1
- package/dist/query-presets/constraints.js +2 -1
- package/dist/query-presets/constraints.js.map +1 -1
- package/dist/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 +138 -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/deepCopyObject.d.ts.map +1 -1
- package/dist/utilities/deepCopyObject.js +8 -0
- package/dist/utilities/deepCopyObject.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/getFieldByPath.d.ts.map +1 -1
- package/dist/utilities/getFieldByPath.js.map +1 -1
- package/dist/utilities/getVersionsConfig.js.map +1 -1
- package/dist/utilities/mergeLocalizedData.d.ts +14 -4
- package/dist/utilities/mergeLocalizedData.d.ts.map +1 -1
- package/dist/utilities/mergeLocalizedData.js +49 -34
- package/dist/utilities/mergeLocalizedData.js.map +1 -1
- package/dist/utilities/mergeLocalizedData.spec.js +23 -23
- package/dist/utilities/mergeLocalizedData.spec.js.map +1 -1
- package/dist/utilities/parseParams/index.d.ts +2 -5
- package/dist/utilities/parseParams/index.d.ts.map +1 -1
- package/dist/utilities/parseParams/index.js.map +1 -1
- package/dist/utilities/parseParams/index.spec.js +0 -9
- package/dist/utilities/parseParams/index.spec.js.map +1 -1
- package/dist/utilities/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/traverseFields.d.ts.map +1 -1
- package/dist/utilities/traverseFields.js.map +1 -1
- package/dist/versions/baseFields.d.ts +1 -2
- package/dist/versions/baseFields.d.ts.map +1 -1
- package/dist/versions/baseFields.js +0 -13
- package/dist/versions/baseFields.js.map +1 -1
- package/dist/versions/buildCollectionFields.d.ts.map +1 -1
- package/dist/versions/buildCollectionFields.js +0 -2
- package/dist/versions/buildCollectionFields.js.map +1 -1
- package/dist/versions/buildGlobalFields.d.ts.map +1 -1
- package/dist/versions/buildGlobalFields.js +0 -2
- package/dist/versions/buildGlobalFields.js.map +1 -1
- package/dist/versions/buildSingleLocalePublishData.d.ts +32 -0
- package/dist/versions/buildSingleLocalePublishData.d.ts.map +1 -0
- package/dist/versions/buildSingleLocalePublishData.js +37 -0
- package/dist/versions/buildSingleLocalePublishData.js.map +1 -0
- package/dist/versions/saveVersion.d.ts +0 -2
- package/dist/versions/saveVersion.d.ts.map +1 -1
- package/dist/versions/saveVersion.js +12 -17
- package/dist/versions/saveVersion.js.map +1 -1
- package/dist/versions/schedule/job.d.ts.map +1 -1
- package/dist/versions/schedule/job.js +2 -9
- package/dist/versions/schedule/job.js.map +1 -1
- package/dist/versions/types.d.ts +2 -15
- package/dist/versions/types.d.ts.map +1 -1
- package/dist/versions/types.js.map +1 -1
- package/package.json +3 -3
- package/dist/database/migrations/templates/localizeStatus.d.ts +0 -10
- package/dist/database/migrations/templates/localizeStatus.d.ts.map +0 -1
- package/dist/database/migrations/templates/localizeStatus.js +0 -54
- package/dist/database/migrations/templates/localizeStatus.js.map +0 -1
- package/dist/utilities/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/versions/migrations/localizeStatus/index.d.ts +0 -12
- package/dist/versions/migrations/localizeStatus/index.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/index.js +0 -33
- package/dist/versions/migrations/localizeStatus/index.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/down.d.ts +0 -9
- package/dist/versions/migrations/localizeStatus/mongo/down.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/down.js +0 -112
- package/dist/versions/migrations/localizeStatus/mongo/down.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/index.d.ts +0 -8
- package/dist/versions/migrations/localizeStatus/mongo/index.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/index.js +0 -8
- package/dist/versions/migrations/localizeStatus/mongo/index.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/up.d.ts +0 -9
- package/dist/versions/migrations/localizeStatus/mongo/up.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/mongo/up.js +0 -220
- package/dist/versions/migrations/localizeStatus/mongo/up.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/down.d.ts +0 -11
- package/dist/versions/migrations/localizeStatus/sql/down.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/down.js +0 -213
- package/dist/versions/migrations/localizeStatus/sql/down.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/index.d.ts +0 -8
- package/dist/versions/migrations/localizeStatus/sql/index.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/index.js +0 -8
- package/dist/versions/migrations/localizeStatus/sql/index.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.d.ts +0 -13
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.js +0 -51
- package/dist/versions/migrations/localizeStatus/sql/migrateMainCollection.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.d.ts +0 -13
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.js +0 -54
- package/dist/versions/migrations/localizeStatus/sql/migrateMainGlobal.js.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/up.d.ts +0 -11
- package/dist/versions/migrations/localizeStatus/sql/up.d.ts.map +0 -1
- package/dist/versions/migrations/localizeStatus/sql/up.js +0 -277
- package/dist/versions/migrations/localizeStatus/sql/up.js.map +0 -1
- package/dist/versions/saveSnapshot.d.ts +0 -18
- package/dist/versions/saveSnapshot.d.ts.map +0 -1
- package/dist/versions/saveSnapshot.js +0 -38
- package/dist/versions/saveSnapshot.js.map +0 -1
package/dist/index.bundled.d.ts
CHANGED
|
@@ -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:addBelow" | "general:addFilter" | "general:adminTheme" | "general:all" | "general:allCollections" | "general:allLocales" | "general:and" | "general:anotherUser" | "general:anotherUserTakenOver" | "general:applyChanges" | "general:ascending" | "general:automatic" | "general:backToDashboard" | "general:by" | "general:cancel" | "general:changesNotSaved" | "general:checked" | "general:clear" | "general:clearAll" | "general:close" | "general:collapse" | "general:collection" | "general:collections" | "general:columns" | "general:columnToSort" | "general:confirm" | "general:confirmCopy" | "general:confirmDeletion" | "general:confirmDuplication" | "general:confirmMove" | "general:confirmReindex" | "general:confirmReindexAll" | "general:confirmReindexDescription" | "general:confirmReindexDescriptionAll" | "general:confirmRestoration" | "general:copied" | "general:copy" | "general:copyField" | "general:copying" | "general:copyRow" | "general:copyWarning" | "general:create" | "general:created" | "general:createdAt" | "general:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:custom" | "general:dark" | "general:decrement" | "general:delete" | "general:deleted" | "general:deletedAgo" | "general:deletedAt" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleteLabel" | "general:deletePermanently" | "general:deleting" | "general:depth" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documentIsTrashed" | "general:documentLocked" | "general:documentModified" | "general:documentOutOfDate" | "general:documents" | "general:dragToReorder" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editColumns" | "general:editedSince" | "general:editing" | "general:editingTakenOver" | "general:editLabel" | "general:email" | "general:emailAddress" | "general:emptyTrash" | "general:emptyTrashLabel" | "general:enhancedContrastMode" | "general:enterANumber" | "general:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:expand" | "general:export" | "general:fallbackToDefaultLocale" | "general:false" | "general:field" | "general:filter" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:hideSidebar" | "general:import" | "general:increment" | "general:isEditing" | "general:item" | "general:lastModified" | "general:layout" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:loadMore" | "general:locale" | "general:locales" | "general:lock" | "general:manageLabel" | "general:menu" | "general:moreOptions" | "general:move" | "general:moveConfirm" | "general:moveCount" | "general:moveDown" | "general:moveUp" | "general:moving" | "general:movingCount" | "general:next" | "general:no" | "general:noDateSelected" | "general:noFiltersSet" | "general:noLabel" | "general:noMatchesFound" | "general:none" | "general:noOptions" | "general:noResultsDescription" | "general:noResultsFound" | "general:nothingFound" | "general:noTrashResults" | "general:notShownInTable" | "general:noUpcomingEventsScheduled" | "general:noValue" | "general:only" | "general:open" | "general:openInNewWindow" | "general:or" | "general:order" | "general:overwriteExistingData" | "general:pageNotFound" | "general:password" | "general:pasteField" | "general:pasteRow" | "general:payloadSettings" | "general:permanentlyDelete" | "general:permanentlyDeletedCountSuccessfully" | "general:perPage" | "general:perPageLabel" | "general:previous" | "general:reindex" | "general:reindexingAll" | "general:reloadDocument" | "general:remove" | "general:rename" | "general:reset" | "general:resetPreferences" | "general:resetPreferencesDescription" | "general:resettingPreferences" | "general:restore" | "general:restoreAsPublished" | "general:restoredCountSuccessfully" | "general:restoring" | "general:retry" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:schedulePublishFor" | "general:searchBy" | "general:searchColumns" | "general:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:showAllLabel" | "general:shownInTable" | "general:showSidebar" | "general:sorryNotFound" | "general:sort" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:successfullyReindexed" | "general:takeOver" | "general:thisLanguage" | "general:time" | "general:timezone" | "general:titleDeleted" | "general:titleRestored" | "general:titleTrashed" | "general:toggle" | "general:trash" | "general:trashedCountSuccessfully" | "general:true" | "general:unchecked" | "general:unlock" | "general:unsavedChanges" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:upcomingEvents" | "general:updatedAgo" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedLabelSuccessfully" | "general:updatedSuccessfully" | "general:updateForEveryone" | "general:updating" | "general:uploading" | "general:uploadingBulk" | "general:user" | "general:users" | "general:value" | "general:viewing" | "general:viewReadOnly" | "general:welcome" | "general: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;
|
|
@@ -241,6 +258,7 @@ declare const enTranslations: {
|
|
|
241
258
|
aboutToTrash: string;
|
|
242
259
|
aboutToTrashCount: string;
|
|
243
260
|
accepts: string;
|
|
261
|
+
access: string;
|
|
244
262
|
addBelow: string;
|
|
245
263
|
addFilter: string;
|
|
246
264
|
adminTheme: string;
|
|
@@ -252,6 +270,7 @@ declare const enTranslations: {
|
|
|
252
270
|
anotherUserTakenOver: string;
|
|
253
271
|
applyChanges: string;
|
|
254
272
|
ascending: string;
|
|
273
|
+
auto: string;
|
|
255
274
|
automatic: string;
|
|
256
275
|
backToDashboard: string;
|
|
257
276
|
by: string;
|
|
@@ -399,6 +418,7 @@ declare const enTranslations: {
|
|
|
399
418
|
openInNewWindow: string;
|
|
400
419
|
or: string;
|
|
401
420
|
order: string;
|
|
421
|
+
original: string;
|
|
402
422
|
overwriteExistingData: string;
|
|
403
423
|
pageNotFound: string;
|
|
404
424
|
password: string;
|
|
@@ -409,6 +429,7 @@ declare const enTranslations: {
|
|
|
409
429
|
permanentlyDeletedCountSuccessfully: string;
|
|
410
430
|
perPage: string;
|
|
411
431
|
perPageLabel: string;
|
|
432
|
+
presets: string;
|
|
412
433
|
previous: string;
|
|
413
434
|
reindex: string;
|
|
414
435
|
reindexingAll: string;
|
|
@@ -438,6 +459,7 @@ declare const enTranslations: {
|
|
|
438
459
|
selectedCount: string;
|
|
439
460
|
selectLabel: string;
|
|
440
461
|
selectValue: string;
|
|
462
|
+
settings: string;
|
|
441
463
|
showAllLabel: string;
|
|
442
464
|
shownInTable: string;
|
|
443
465
|
showSidebar: string;
|
|
@@ -453,6 +475,7 @@ declare const enTranslations: {
|
|
|
453
475
|
successfullyDuplicated: string;
|
|
454
476
|
successfullyReindexed: string;
|
|
455
477
|
takeOver: string;
|
|
478
|
+
theme: string;
|
|
456
479
|
thisLanguage: string;
|
|
457
480
|
time: string;
|
|
458
481
|
timezone: string;
|
|
@@ -542,12 +565,16 @@ declare const enTranslations: {
|
|
|
542
565
|
fileToUpload: string;
|
|
543
566
|
focalPoint: string;
|
|
544
567
|
focalPointDescription: string;
|
|
568
|
+
fromURL: string;
|
|
545
569
|
height: string;
|
|
546
570
|
lessInfo: string;
|
|
571
|
+
linkToFile: string;
|
|
547
572
|
moreInfo: string;
|
|
548
573
|
noFile: string;
|
|
549
574
|
pasteURL: string;
|
|
550
575
|
previewSizes: string;
|
|
576
|
+
renameFile: string;
|
|
577
|
+
replaceFile: string;
|
|
551
578
|
selectCollectionToBrowse: string;
|
|
552
579
|
selectFile: string;
|
|
553
580
|
setCropArea: string;
|
|
@@ -688,11 +715,14 @@ type NestedKeysStripped<T> = T extends object ? {
|
|
|
688
715
|
* Default nested translations object
|
|
689
716
|
*/
|
|
690
717
|
type DefaultTranslationsObject = typeof enTranslations;
|
|
718
|
+
interface CustomTranslationKeys {
|
|
719
|
+
}
|
|
720
|
+
type CustomTranslationKey = CustomTranslationKeys[keyof CustomTranslationKeys] & string;
|
|
691
721
|
/**
|
|
692
722
|
* All translation keys sanitized. E.g. 'general:aboutToDeleteCount'
|
|
693
723
|
*/
|
|
694
|
-
type DefaultTranslationKeys = NestedKeysStripped<DefaultTranslationsObject>;
|
|
695
|
-
type ClientTranslationKeys<TExtraProps = (typeof clientTranslationKeys)[number]> = TExtraProps;
|
|
724
|
+
type DefaultTranslationKeys = CustomTranslationKey | NestedKeysStripped<DefaultTranslationsObject>;
|
|
725
|
+
type ClientTranslationKeys<TExtraProps = (typeof clientTranslationKeys)[number] | CustomTranslationKey> = TExtraProps;
|
|
696
726
|
type ClientTranslationsObject = GenericTranslationsObject;
|
|
697
727
|
type TFunction<TTranslationKeys = DefaultTranslationKeys> = (key: TTranslationKeys, options?: Record<string, any>) => string;
|
|
698
728
|
type I18n<TTranslations = DefaultTranslationsObject, TTranslationKeys = DefaultTranslationKeys> = {
|
|
@@ -851,6 +881,7 @@ type ValidationFieldError = {
|
|
|
851
881
|
label?: LabelFunction | StaticLabel;
|
|
852
882
|
message: string;
|
|
853
883
|
path: string;
|
|
884
|
+
tableName?: string;
|
|
854
885
|
};
|
|
855
886
|
declare class ValidationError extends APIError<{
|
|
856
887
|
collection?: string;
|
|
@@ -957,28 +988,38 @@ type SanitizedPermissions = {
|
|
|
957
988
|
[globalSlug: string]: SanitizedGlobalPermission;
|
|
958
989
|
};
|
|
959
990
|
};
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
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;
|
|
966
1005
|
};
|
|
967
1006
|
/**
|
|
968
|
-
*
|
|
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
|
|
969
1010
|
*/
|
|
970
|
-
type UntypedUser = {
|
|
971
|
-
[key: string]: any;
|
|
972
|
-
} & BaseUser;
|
|
973
1011
|
/**
|
|
974
|
-
*
|
|
975
|
-
*
|
|
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.
|
|
976
1014
|
*/
|
|
977
|
-
type
|
|
978
|
-
|
|
979
|
-
|
|
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;
|
|
980
1021
|
type UserSession = {
|
|
981
|
-
createdAt
|
|
1022
|
+
createdAt?: Date | null | string;
|
|
982
1023
|
expiresAt: Date | string;
|
|
983
1024
|
id: string;
|
|
984
1025
|
};
|
|
@@ -1017,10 +1058,7 @@ type AuthStrategyFunctionArgs = {
|
|
|
1017
1058
|
};
|
|
1018
1059
|
type AuthStrategyResult = {
|
|
1019
1060
|
responseHeaders?: Headers;
|
|
1020
|
-
user:
|
|
1021
|
-
_strategy?: string;
|
|
1022
|
-
collection?: string;
|
|
1023
|
-
} & TypedUser) | null;
|
|
1061
|
+
user: AuthenticatedUser | null;
|
|
1024
1062
|
};
|
|
1025
1063
|
type AuthStrategyFunction = (args: AuthStrategyFunctionArgs) => AuthStrategyResult | Promise<AuthStrategyResult>;
|
|
1026
1064
|
type AuthStrategy = {
|
|
@@ -1174,6 +1212,21 @@ type CollectionPreferences = {
|
|
|
1174
1212
|
preset?: DefaultDocumentIDType;
|
|
1175
1213
|
sort?: string;
|
|
1176
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
|
+
};
|
|
1177
1230
|
|
|
1178
1231
|
type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
|
|
1179
1232
|
type ClientComponentProps = {
|
|
@@ -1219,11 +1272,9 @@ type FieldPaths = {
|
|
|
1219
1272
|
* Nested fields will have a path that includes the parent field names
|
|
1220
1273
|
* if they are nested within a group, array, block or named tab.
|
|
1221
1274
|
*
|
|
1222
|
-
* Collapsibles and unnamed tabs will have arbitrary paths
|
|
1275
|
+
* Collapsibles, rows and unnamed tabs will have arbitrary paths
|
|
1223
1276
|
* that look like _index-0, _index-1, etc.
|
|
1224
1277
|
*
|
|
1225
|
-
* Row fields will not have a path.
|
|
1226
|
-
*
|
|
1227
1278
|
* @example 'parentGroupField.childTextField'
|
|
1228
1279
|
*
|
|
1229
1280
|
* @default field.name
|
|
@@ -1262,7 +1313,7 @@ type ServerComponentProps = {
|
|
|
1262
1313
|
renderComponent?: ComponentRenderer;
|
|
1263
1314
|
req: PayloadRequest;
|
|
1264
1315
|
siblingData: Data;
|
|
1265
|
-
user:
|
|
1316
|
+
user: User;
|
|
1266
1317
|
value?: unknown;
|
|
1267
1318
|
};
|
|
1268
1319
|
type ClientFieldBase<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
|
|
@@ -1347,15 +1398,6 @@ type IncomingDrafts = {
|
|
|
1347
1398
|
* To enable, set to true or pass an object with options.
|
|
1348
1399
|
*/
|
|
1349
1400
|
autosave?: Autosave | boolean;
|
|
1350
|
-
/**
|
|
1351
|
-
* Localizes the status field.
|
|
1352
|
-
*
|
|
1353
|
-
* Only effective if the experimental `experimental.localizeStatus` is enabled.
|
|
1354
|
-
*
|
|
1355
|
-
* @experimental
|
|
1356
|
-
* @default false
|
|
1357
|
-
*/
|
|
1358
|
-
localizeStatus?: boolean;
|
|
1359
1401
|
/**
|
|
1360
1402
|
* Allow for editors to schedule publish / unpublish events in the future.
|
|
1361
1403
|
*/
|
|
@@ -1374,12 +1416,8 @@ type SanitizedDrafts = {
|
|
|
1374
1416
|
*/
|
|
1375
1417
|
autosave: Autosave | false;
|
|
1376
1418
|
/**
|
|
1377
|
-
*
|
|
1378
|
-
*
|
|
1379
|
-
* Only effective if the experimental `experimental.localizeStatus` is enabled.
|
|
1380
|
-
*
|
|
1381
|
-
* @experimental
|
|
1382
|
-
* @default false
|
|
1419
|
+
* Automatically set to true when localization is configured and the collection/global
|
|
1420
|
+
* has localized fields. Controls whether `_status` is stored per-locale.
|
|
1383
1421
|
*/
|
|
1384
1422
|
localizeStatus?: boolean;
|
|
1385
1423
|
/**
|
|
@@ -2285,6 +2323,91 @@ type Globals = {
|
|
|
2285
2323
|
} | false;
|
|
2286
2324
|
};
|
|
2287
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
|
+
|
|
2288
2411
|
type DisabledOptions = {
|
|
2289
2412
|
bulkEdit?: boolean;
|
|
2290
2413
|
column?: boolean;
|
|
@@ -2450,7 +2573,7 @@ type FieldHookArgs<TData extends TypeWithID = any, TValue = any, TSiblingData =
|
|
|
2450
2573
|
value?: TValue;
|
|
2451
2574
|
};
|
|
2452
2575
|
type FieldHook<TData extends TypeWithID = any, TValue = any, TSiblingData = any> = (args: FieldHookArgs<TData, TValue, TSiblingData>) => Promise<TValue> | TValue;
|
|
2453
|
-
type
|
|
2576
|
+
type SharedFieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = {
|
|
2454
2577
|
/**
|
|
2455
2578
|
* The data of the nearest parent block. If the field is not within a block, `blockData` will be equal to `undefined`.
|
|
2456
2579
|
*/
|
|
@@ -2474,6 +2597,13 @@ type FieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = {
|
|
|
2474
2597
|
*/
|
|
2475
2598
|
siblingData?: Partial<TSiblingData>;
|
|
2476
2599
|
};
|
|
2600
|
+
type FieldAccessArgs<TData extends TypeWithID = any, TSiblingData = any> = ({
|
|
2601
|
+
collection: SanitizedCollectionConfig;
|
|
2602
|
+
global?: never;
|
|
2603
|
+
} & SharedFieldAccessArgs<TData, TSiblingData>) | ({
|
|
2604
|
+
collection?: never;
|
|
2605
|
+
global: SanitizedGlobalConfig;
|
|
2606
|
+
} & SharedFieldAccessArgs<TData, TSiblingData>);
|
|
2477
2607
|
type FieldAccess<TData extends TypeWithID = any, TSiblingData = any> = (args: FieldAccessArgs<TData, TSiblingData>) => boolean | Promise<boolean>;
|
|
2478
2608
|
type Condition<TData extends TypeWithID = any, TSiblingData = any> = (
|
|
2479
2609
|
/**
|
|
@@ -2672,9 +2802,13 @@ interface FieldBase {
|
|
|
2672
2802
|
* Allows you to modify the base JSON schema that is generated for this field.
|
|
2673
2803
|
* This JSON schema will be used to generate the TypeScript interface of this field, and to
|
|
2674
2804
|
* validate the field's value in the MCP plugin.
|
|
2805
|
+
*
|
|
2806
|
+
* `variant` is `'input'` when generating the write shape (`create`/`update`) and `'output'` when
|
|
2807
|
+
* generating the read shape, so a transform can differ between the two.
|
|
2675
2808
|
*/
|
|
2676
2809
|
jsonSchema?: Array<(args: {
|
|
2677
2810
|
jsonSchema: JSONSchema4;
|
|
2811
|
+
variant: SchemaVariant;
|
|
2678
2812
|
}) => JSONSchema4>;
|
|
2679
2813
|
label?: false | LabelFunction | StaticLabel;
|
|
2680
2814
|
localized?: boolean;
|
|
@@ -3713,82 +3847,6 @@ type FieldWithMaxDepth = RelationshipField | UploadField;
|
|
|
3713
3847
|
type FieldWithMaxDepthClient = JoinFieldClient | RelationshipFieldClient | UploadFieldClient;
|
|
3714
3848
|
type HookName = 'afterChange' | 'afterRead' | 'beforeChange' | 'beforeRead' | 'beforeValidate';
|
|
3715
3849
|
|
|
3716
|
-
/**
|
|
3717
|
-
* Returns a JSON Schema Type with 'null' added if the field is not required.
|
|
3718
|
-
*/
|
|
3719
|
-
declare function withNullableJSONSchemaType(fieldType: JSONSchema4TypeName, isRequired: boolean): JSONSchema4TypeName | JSONSchema4TypeName[];
|
|
3720
|
-
type ConfigToJSONSchemaOptions = {
|
|
3721
|
-
forceInlineBlocks?: boolean;
|
|
3722
|
-
};
|
|
3723
|
-
type FieldsToJSONSchemaArgs = {
|
|
3724
|
-
/**
|
|
3725
|
-
* Used for relationship fields, to determine whether to use a string or
|
|
3726
|
-
* number type for the ID. While there is a default ID field type set by
|
|
3727
|
-
* the db adapter, they can differ on a collection-level if they have
|
|
3728
|
-
* custom ID fields.
|
|
3729
|
-
*/
|
|
3730
|
-
collectionIDFieldTypes: {
|
|
3731
|
-
[key: string]: 'number' | 'string';
|
|
3732
|
-
};
|
|
3733
|
-
config?: SanitizedConfig;
|
|
3734
|
-
fields: FlattenedField$1[];
|
|
3735
|
-
/**
|
|
3736
|
-
* If true, blocks are inlined into each `block` field instead of being
|
|
3737
|
-
* lifted to a top-level definition. Used by the MCP plugin.
|
|
3738
|
-
*/
|
|
3739
|
-
forceInlineBlocks?: boolean;
|
|
3740
|
-
i18n?: I18n;
|
|
3741
|
-
/** Allows you to define new top-level interfaces that can be re-used in the output schema. */
|
|
3742
|
-
interfaceNameDefinitions: Map<string, JSONSchema4>;
|
|
3743
|
-
/**
|
|
3744
|
-
* Allows you to append raw TS source to `payload-types.ts`. Identical
|
|
3745
|
-
* strings de-dupe naturally, so the same helper written from many fields
|
|
3746
|
-
* ends up emitted once.
|
|
3747
|
-
*/
|
|
3748
|
-
typeStringDefinitions: Set<string>;
|
|
3749
|
-
};
|
|
3750
|
-
declare function fieldsToJSONSchema({ collectionIDFieldTypes, config, fields, forceInlineBlocks, i18n, interfaceNameDefinitions, typeStringDefinitions, }: FieldsToJSONSchemaArgs): {
|
|
3751
|
-
properties: {
|
|
3752
|
-
[k: string]: JSONSchema4;
|
|
3753
|
-
};
|
|
3754
|
-
required: string[];
|
|
3755
|
-
};
|
|
3756
|
-
declare function entityToJSONSchema(config: SanitizedConfig, entity: SanitizedCollectionConfig | SanitizedGlobalConfig, interfaceNameDefinitions: Map<string, JSONSchema4>, defaultIDType: 'number' | 'text', typeStringDefinitions: Set<string>, collectionIDFieldTypes?: {
|
|
3757
|
-
[key: string]: 'number' | 'string';
|
|
3758
|
-
}, i18n?: I18n, forceInlineBlocks?: boolean): JSONSchema4;
|
|
3759
|
-
/**
|
|
3760
|
-
* Like {@link entityToJSONSchema}, but returns a standalone schema for one collection or global:
|
|
3761
|
-
* the entity plus only the `$defs` it actually uses, so it resolves on its own rather than
|
|
3762
|
-
* as part of the whole config schema.
|
|
3763
|
-
*
|
|
3764
|
-
* Relationship/upload `$ref`s to other collections are left in place - the caller handles those.
|
|
3765
|
-
*/
|
|
3766
|
-
declare function entityToStandaloneJSONSchema({ config, defaultIDType, entity, i18n, }: {
|
|
3767
|
-
config: SanitizedConfig;
|
|
3768
|
-
defaultIDType: 'number' | 'text';
|
|
3769
|
-
entity: SanitizedCollectionConfig | SanitizedGlobalConfig;
|
|
3770
|
-
i18n?: I18n;
|
|
3771
|
-
}): JSONSchema4;
|
|
3772
|
-
/**
|
|
3773
|
-
* Registers a block's schema as a top-level definition and returns its name.
|
|
3774
|
-
*
|
|
3775
|
-
* The name is the block's `interfaceName`, or a PascalCase form of its slug. If a different block
|
|
3776
|
-
* already uses that name - whether it was auto-generated or an explicit `interfaceName` - this one
|
|
3777
|
-
* gets a content-hash suffix (`Hero_3F2A1B0C`) so the two don't overwrite each other. Registering
|
|
3778
|
-
* the same block shape again reuses its name.
|
|
3779
|
-
*/
|
|
3780
|
-
declare function registerBlockInterface(block: {
|
|
3781
|
-
interfaceName?: string;
|
|
3782
|
-
slug: string;
|
|
3783
|
-
}, blockSchema: JSONSchema4, interfaceNameDefinitions: Map<string, JSONSchema4>): string;
|
|
3784
|
-
/**
|
|
3785
|
-
* This is used for generating the TypeScript types (payload-types.ts) with the payload generate:types command.
|
|
3786
|
-
*/
|
|
3787
|
-
declare function configToJSONSchema(config: SanitizedConfig, defaultIDType?: 'number' | 'text', i18n?: I18n, { forceInlineBlocks }?: ConfigToJSONSchemaOptions): {
|
|
3788
|
-
jsonSchema: JSONSchema4;
|
|
3789
|
-
typeStringDefinitions: Set<string>;
|
|
3790
|
-
};
|
|
3791
|
-
|
|
3792
3850
|
type RichTextFieldClientWithoutType<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = MarkOptional<RichTextFieldClient<TValue, TAdapterProps, TExtraProperties>, 'type'>;
|
|
3793
3851
|
type RichTextFieldBaseClientProps<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = {
|
|
3794
3852
|
readonly path: string;
|
|
@@ -3964,7 +4022,7 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
|
|
|
3964
4022
|
jsonSchema?: (args: {
|
|
3965
4023
|
field: RichTextField<Value, AdapterProps, ExtraFieldProperties>;
|
|
3966
4024
|
isRequired: boolean;
|
|
3967
|
-
} & Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions'>) => JSONSchema4;
|
|
4025
|
+
} & Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions' | 'variant'>) => JSONSchema4;
|
|
3968
4026
|
/**
|
|
3969
4027
|
* Provide validation function for the richText field. This function is run the same way
|
|
3970
4028
|
* as other field validation functions.
|
|
@@ -3977,13 +4035,6 @@ type RichTextAdapter<Value extends object = any, AdapterProps = any, ExtraFieldP
|
|
|
3977
4035
|
* `DefaultCellComponentProps` or `DefaultServerCellComponentProps`.
|
|
3978
4036
|
*/
|
|
3979
4037
|
CellComponent: PayloadComponent<never>;
|
|
3980
|
-
/**
|
|
3981
|
-
* Client-only field component for non-RSC adapters (e.g. TanStack Start).
|
|
3982
|
-
* When provided, this component is used as a fallback when the RSC `FieldComponent`
|
|
3983
|
-
* cannot be rendered (e.g. because customComponents are stripped during serialization).
|
|
3984
|
-
* The component path is stored in field state and resolved from the import map on the client.
|
|
3985
|
-
*/
|
|
3986
|
-
ClientFieldComponent?: PayloadComponent<RichTextFieldClientProps>;
|
|
3987
4038
|
/**
|
|
3988
4039
|
* Component that will be displayed in the version diff view.
|
|
3989
4040
|
* If not provided, richtext content will be diffed as JSON.
|
|
@@ -3993,19 +4044,6 @@ type RichTextAdapter<Value extends object = any, AdapterProps = any, ExtraFieldP
|
|
|
3993
4044
|
* Component that will be displayed in the edit view.
|
|
3994
4045
|
*/
|
|
3995
4046
|
FieldComponent: PayloadComponent<RichTextFieldServerProps, RichTextFieldClientProps>;
|
|
3996
|
-
/**
|
|
3997
|
-
* Builds serializable props for the `ClientFieldComponent`.
|
|
3998
|
-
* Called during `renderField` on the server; the returned object is stored
|
|
3999
|
-
* in `fieldState.clientFieldComponentProps` and passed to the client component.
|
|
4000
|
-
*/
|
|
4001
|
-
getClientFieldProps?: (args: {
|
|
4002
|
-
clientFieldSchemaMap: Map<string, any>;
|
|
4003
|
-
path: string;
|
|
4004
|
-
payload: {
|
|
4005
|
-
importMap: Record<string, any>;
|
|
4006
|
-
};
|
|
4007
|
-
schemaPath: string;
|
|
4008
|
-
}) => Record<string, any>;
|
|
4009
4047
|
} & RichTextAdapterBase<Value, AdapterProps, ExtraFieldProperties>;
|
|
4010
4048
|
type RichTextAdapterProvider<Value extends object = object, AdapterProps = any, ExtraFieldProperties = {}> = ({ config, isRoot, parentIsLocalized, }: {
|
|
4011
4049
|
config: SanitizedConfig;
|
|
@@ -4235,7 +4273,7 @@ type ClientHierarchyConfig = Omit<SanitizedHierarchyConfig, 'slugify'>;
|
|
|
4235
4273
|
|
|
4236
4274
|
type ServerOnlyCollectionProperties = keyof Pick<SanitizedCollectionConfig, 'access' | 'custom' | 'endpoints' | 'flattenedFields' | 'hooks' | 'indexes' | 'joins' | 'polymorphicJoins' | 'sanitizedIndexes' | 'select'>;
|
|
4237
4275
|
type ServerOnlyCollectionAdminProperties = keyof Pick<SanitizedCollectionConfig['admin'], 'baseFilter' | 'baseListFilter' | 'components' | 'formatDocURL' | 'hidden'>;
|
|
4238
|
-
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4276
|
+
type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'admin' | 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
|
|
4239
4277
|
type ClientCollectionConfig = {
|
|
4240
4278
|
admin: {
|
|
4241
4279
|
description?: StaticDescription;
|
|
@@ -4334,7 +4372,7 @@ type CreateClientConfigArgs = {
|
|
|
4334
4372
|
* For example, allow `true` to generate a client config for the "create first user" page
|
|
4335
4373
|
* where there is no user yet, but the config should still be complete.
|
|
4336
4374
|
*/
|
|
4337
|
-
user: true |
|
|
4375
|
+
user: true | User;
|
|
4338
4376
|
};
|
|
4339
4377
|
declare const createUnauthenticatedClientConfig: ({ clientConfig, }: {
|
|
4340
4378
|
/**
|
|
@@ -4364,10 +4402,6 @@ type RenderDocumentVersionsProperties = {
|
|
|
4364
4402
|
* rather than perform a full navigation.
|
|
4365
4403
|
*/
|
|
4366
4404
|
CreatedAtCellOverride?: (props: any) => any;
|
|
4367
|
-
/**
|
|
4368
|
-
* @default false
|
|
4369
|
-
*/
|
|
4370
|
-
disableGutter?: boolean;
|
|
4371
4405
|
/**
|
|
4372
4406
|
* @deprecated Pass `CreatedAtCellOverride` directly instead.
|
|
4373
4407
|
* @default false
|
|
@@ -5494,6 +5528,13 @@ type LivePreviewConfig = {
|
|
|
5494
5528
|
name: string;
|
|
5495
5529
|
width: number | string;
|
|
5496
5530
|
}[];
|
|
5531
|
+
/**
|
|
5532
|
+
* When `true`, Live Preview opens automatically the first time a user views a document,
|
|
5533
|
+
* before they have manually toggled it on. Once the user toggles Live Preview on or off,
|
|
5534
|
+
* their stored preference takes precedence and this setting is ignored.
|
|
5535
|
+
* @default false
|
|
5536
|
+
*/
|
|
5537
|
+
openByDefault?: boolean;
|
|
5497
5538
|
/**
|
|
5498
5539
|
* The URL of the frontend application. This will be rendered within an `iframe` as its `src`.
|
|
5499
5540
|
* Payload will send a `window.postMessage()` to this URL with the document data in real-time.
|
|
@@ -5731,8 +5772,8 @@ type ServerProps = {
|
|
|
5731
5772
|
*
|
|
5732
5773
|
* Optional because non-framework contexts (jobs, scripts, tests) may not have an adapter attached.
|
|
5733
5774
|
*/
|
|
5734
|
-
readonly server
|
|
5735
|
-
readonly user?:
|
|
5775
|
+
readonly server: ServerAdapter;
|
|
5776
|
+
readonly user?: User;
|
|
5736
5777
|
readonly viewType?: ViewTypes;
|
|
5737
5778
|
readonly visibleEntities?: VisibleEntities;
|
|
5738
5779
|
};
|
|
@@ -5762,6 +5803,12 @@ type SanitizedTimezoneConfig = {
|
|
|
5762
5803
|
supportedTimezones: Timezone[];
|
|
5763
5804
|
} & Omit<TimezonesConfig, 'supportedTimezones'>;
|
|
5764
5805
|
type CustomComponent<TAdditionalProps extends object = Record<string, any>> = PayloadComponent<ServerProps & TAdditionalProps, TAdditionalProps>;
|
|
5806
|
+
type UserMenuSettingsGroup = {
|
|
5807
|
+
group: LabelFunction | StaticLabel;
|
|
5808
|
+
items: CustomComponent[];
|
|
5809
|
+
};
|
|
5810
|
+
type UserMenuSettingsItem = CustomComponent | UserMenuSettingsGroup;
|
|
5811
|
+
declare const isUserMenuSettingsGroup: (userMenuSettingsItem: UserMenuSettingsItem) => userMenuSettingsItem is UserMenuSettingsGroup;
|
|
5765
5812
|
type Locale = {
|
|
5766
5813
|
/**
|
|
5767
5814
|
* value of supported locale
|
|
@@ -6181,6 +6228,12 @@ type Config = {
|
|
|
6181
6228
|
/** Extensible tab system */
|
|
6182
6229
|
tabs?: SidebarTab[];
|
|
6183
6230
|
};
|
|
6231
|
+
/**
|
|
6232
|
+
* Add custom items to the user menu popup in the admin panel header.
|
|
6233
|
+
* These components will be rendered in the Settings sub-popup of the user menu.
|
|
6234
|
+
* When empty or absent, the Settings sub-trigger is not shown.
|
|
6235
|
+
*/
|
|
6236
|
+
userMenuSettingsItems?: UserMenuSettingsItem[];
|
|
6184
6237
|
/**
|
|
6185
6238
|
* Replace or modify top-level admin routes, or add new ones:
|
|
6186
6239
|
* + `Account` - `/admin/account`
|
|
@@ -6405,22 +6458,6 @@ type Config = {
|
|
|
6405
6458
|
email?: EmailAdapter | Promise<EmailAdapter>;
|
|
6406
6459
|
/** Custom REST endpoints */
|
|
6407
6460
|
endpoints?: Endpoint[];
|
|
6408
|
-
/**
|
|
6409
|
-
* Experimental features may be unstable or change in future versions.
|
|
6410
|
-
*/
|
|
6411
|
-
experimental?: {
|
|
6412
|
-
/**
|
|
6413
|
-
* Enable per-locale status for documents.
|
|
6414
|
-
*
|
|
6415
|
-
* Requires:
|
|
6416
|
-
* - `localization` enabled
|
|
6417
|
-
* - `versions.drafts` enabled
|
|
6418
|
-
* - `versions.drafts.localizeStatus` set at collection or global level
|
|
6419
|
-
*
|
|
6420
|
-
* @experimental
|
|
6421
|
-
*/
|
|
6422
|
-
localizeStatus?: boolean;
|
|
6423
|
-
};
|
|
6424
6461
|
/**
|
|
6425
6462
|
* @see https://payloadcms.com/docs/configuration/globals#global-configs
|
|
6426
6463
|
*/
|
|
@@ -6716,6 +6753,31 @@ type Config = {
|
|
|
6716
6753
|
*/
|
|
6717
6754
|
ignoreTSError?: boolean;
|
|
6718
6755
|
} | false;
|
|
6756
|
+
/**
|
|
6757
|
+
* Also generate a write-shaped input type (e.g. `PostInput`) next to each read type, describing
|
|
6758
|
+
* what `create`/`update` accept: relationships and uploads as IDs only, `id` and `defaultValue`
|
|
6759
|
+
* fields optional, and `createdAt`/`updatedAt`/`_status`/virtual/join fields removed. These are
|
|
6760
|
+
* exposed on `Config['collectionsInput']` and `Config['globalsInput']`. Set `true` to turn them on.
|
|
6761
|
+
*
|
|
6762
|
+
* @default false
|
|
6763
|
+
*
|
|
6764
|
+
* @remarks
|
|
6765
|
+
* Off by default. The Local API's `create`/`update` still type their `data` against the read
|
|
6766
|
+
* type, so these input types aren't used internally - they're here for you to opt into, e.g. to
|
|
6767
|
+
* type a form payload, a seed script, or an API client. `@payloadcms/plugin-mcp` also uses the
|
|
6768
|
+
* input schema, but it builds that itself at runtime, so MCP gets the accurate write schema
|
|
6769
|
+
* whether or not this flag is on.
|
|
6770
|
+
*
|
|
6771
|
+
* @todo We'd like to turn this on by default (or have the Local API use the input type
|
|
6772
|
+
* directly), but there's a catch. When you read a document with `depth > 0`, its relationships
|
|
6773
|
+
* come back as full documents rather than IDs. A strict ID-only input type would reject that and
|
|
6774
|
+
* break the common "read a doc, change a field, save it back" pattern. To enable it by default,
|
|
6775
|
+
* the input type would first need to accept a relationship as either an ID or the full document
|
|
6776
|
+
* (which is what Payload already does at runtime), while keeping `id`, `defaultValue`, and
|
|
6777
|
+
* auto-managed fields optional. Until then it stays opt-in, so we don't put a type that's
|
|
6778
|
+
* stricter than the runtime on the main write path.
|
|
6779
|
+
*/
|
|
6780
|
+
generateInputTypes?: boolean;
|
|
6719
6781
|
/** Filename to write the generated types to */
|
|
6720
6782
|
outputFile?: string;
|
|
6721
6783
|
/**
|
|
@@ -6914,6 +6976,7 @@ type SharedEntityViews = {
|
|
|
6914
6976
|
[key: string]: {
|
|
6915
6977
|
actions?: CustomComponent[];
|
|
6916
6978
|
Component?: PayloadComponent;
|
|
6979
|
+
NoResults?: CustomComponent;
|
|
6917
6980
|
} | AdminViewConfig | EditConfig | undefined;
|
|
6918
6981
|
/**
|
|
6919
6982
|
* Replace, modify, or add new "document" views.
|
|
@@ -6938,7 +7001,7 @@ type SharedAdminComponents = {
|
|
|
6938
7001
|
views?: SharedEntityViews;
|
|
6939
7002
|
};
|
|
6940
7003
|
type EntityDescriptionFunction = ({ t }: {
|
|
6941
|
-
t: TFunction
|
|
7004
|
+
t: TFunction<ClientTranslationKeys>;
|
|
6942
7005
|
}) => string;
|
|
6943
7006
|
type EntityDescription = EntityDescriptionFunction | Record<string, string> | string;
|
|
6944
7007
|
|
|
@@ -7005,9 +7068,6 @@ type Data = {
|
|
|
7005
7068
|
type Row = {
|
|
7006
7069
|
addedByServer?: FieldState['addedByServer'];
|
|
7007
7070
|
blockType?: string;
|
|
7008
|
-
clientComponentPaths?: {
|
|
7009
|
-
RowLabel?: PayloadComponent;
|
|
7010
|
-
};
|
|
7011
7071
|
collapsed?: boolean;
|
|
7012
7072
|
customComponents?: {
|
|
7013
7073
|
RowLabel?: React.ReactNode;
|
|
@@ -7033,31 +7093,6 @@ type FieldState = {
|
|
|
7033
7093
|
* If this is an empty array, no blocks are allowed.
|
|
7034
7094
|
*/
|
|
7035
7095
|
blocksFilterOptions?: string[];
|
|
7036
|
-
/**
|
|
7037
|
-
* Serializable PayloadComponent references for field UI slots.
|
|
7038
|
-
* Used by non-RSC adapters (e.g. TanStack) to resolve custom components from the import map
|
|
7039
|
-
* when `customComponents` are unavailable (stripped during serialization).
|
|
7040
|
-
*/
|
|
7041
|
-
clientComponentPaths?: {
|
|
7042
|
-
AfterInput?: PayloadComponent | PayloadComponent[];
|
|
7043
|
-
BeforeInput?: PayloadComponent | PayloadComponent[];
|
|
7044
|
-
Description?: PayloadComponent;
|
|
7045
|
-
Error?: PayloadComponent;
|
|
7046
|
-
Label?: PayloadComponent;
|
|
7047
|
-
};
|
|
7048
|
-
/**
|
|
7049
|
-
* PayloadComponent reference for a client-safe field component.
|
|
7050
|
-
* Used by non-RSC adapters (e.g. TanStack) to resolve a fallback component from the import map
|
|
7051
|
-
* when `customComponents.Field` is unavailable (stripped during serialization).
|
|
7052
|
-
*/
|
|
7053
|
-
clientFieldComponentPath?: {
|
|
7054
|
-
clientProps?: Record<string, any>;
|
|
7055
|
-
path: string;
|
|
7056
|
-
} | string;
|
|
7057
|
-
/**
|
|
7058
|
-
* Serializable props for the client field component referenced by `clientFieldComponentPath`.
|
|
7059
|
-
*/
|
|
7060
|
-
clientFieldComponentProps?: Record<string, any>;
|
|
7061
7096
|
customComponents?: {
|
|
7062
7097
|
/**
|
|
7063
7098
|
* This is used by UI fields, as they can have arbitrary components defined if used
|
|
@@ -7593,8 +7628,8 @@ type RelationshipFieldDiffServerComponent = FieldDiffServerComponent<Relationshi
|
|
|
7593
7628
|
type RelationshipFieldDiffClientComponent = FieldDiffClientComponent<RelationshipFieldClient>;
|
|
7594
7629
|
|
|
7595
7630
|
type RowFieldClientWithoutType = MarkOptional<RowFieldClient, 'type'>;
|
|
7596
|
-
type RowFieldBaseClientProps =
|
|
7597
|
-
type RowFieldClientProps =
|
|
7631
|
+
type RowFieldBaseClientProps = FieldPaths & Pick<ClientComponentProps, 'forceRender'>;
|
|
7632
|
+
type RowFieldClientProps = ClientFieldBase<RowFieldClientWithoutType> & RowFieldBaseClientProps;
|
|
7598
7633
|
type RowFieldServerProps = ServerFieldBase<RowField, RowFieldClientWithoutType>;
|
|
7599
7634
|
type RowFieldServerComponent = FieldServerComponent<RowField, RowFieldClientWithoutType>;
|
|
7600
7635
|
type RowFieldClientComponent = FieldClientComponent<RowFieldClientWithoutType, RowFieldBaseClientProps>;
|
|
@@ -7703,7 +7738,7 @@ type UploadFieldDiffClientComponent = FieldDiffClientComponent<UploadFieldClient
|
|
|
7703
7738
|
|
|
7704
7739
|
type DescriptionFunction = (args: {
|
|
7705
7740
|
i18n: I18nClient;
|
|
7706
|
-
t: TFunction
|
|
7741
|
+
t: TFunction<ClientTranslationKeys>;
|
|
7707
7742
|
}) => string;
|
|
7708
7743
|
type FieldDescriptionClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionClientProps<TFieldClient>>;
|
|
7709
7744
|
type FieldDescriptionServerComponent<TFieldServer extends Field = Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionServerProps<TFieldServer, TFieldClient>>;
|
|
@@ -8079,6 +8114,7 @@ type ListViewSlots = {
|
|
|
8079
8114
|
BeforeListTable?: React.ReactNode;
|
|
8080
8115
|
Description?: React.ReactNode;
|
|
8081
8116
|
listMenuItems?: React.ReactNode[];
|
|
8117
|
+
NoResults?: React.ReactNode;
|
|
8082
8118
|
Table: React.ReactNode | React.ReactNode[];
|
|
8083
8119
|
};
|
|
8084
8120
|
/**
|
|
@@ -8140,6 +8176,7 @@ type ListViewSlotSharedClientProps = {
|
|
|
8140
8176
|
hasDeletePermission?: boolean;
|
|
8141
8177
|
hasTrashPermission?: boolean;
|
|
8142
8178
|
newDocumentURL: string;
|
|
8179
|
+
viewType: ViewTypes;
|
|
8143
8180
|
};
|
|
8144
8181
|
type BeforeListClientProps = ListViewSlotSharedClientProps;
|
|
8145
8182
|
type BeforeListServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
@@ -8147,6 +8184,9 @@ type BeforeListServerProps = BeforeListClientProps & BeforeListServerPropsOnly;
|
|
|
8147
8184
|
type BeforeListTableClientProps = ListViewSlotSharedClientProps;
|
|
8148
8185
|
type BeforeListTableServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
8149
8186
|
type BeforeListTableServerProps = BeforeListTableClientProps & BeforeListTableServerPropsOnly;
|
|
8187
|
+
type NoResultsClientProps = ListViewSlotSharedClientProps;
|
|
8188
|
+
type NoResultsServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
8189
|
+
type NoResultsServerProps = NoResultsClientProps & NoResultsServerPropsOnly;
|
|
8150
8190
|
type AfterListClientProps = ListViewSlotSharedClientProps;
|
|
8151
8191
|
type AfterListServerPropsOnly = {} & ListViewServerPropsOnly;
|
|
8152
8192
|
type AfterListServerProps = AfterListClientProps & AfterListServerPropsOnly;
|
|
@@ -8229,6 +8269,7 @@ type DocumentSlots = {
|
|
|
8229
8269
|
UnpublishButton?: React$1.ReactNode;
|
|
8230
8270
|
Upload?: React$1.ReactNode;
|
|
8231
8271
|
UploadControls?: React$1.ReactNode;
|
|
8272
|
+
UploadFilePreview?: React$1.ReactNode;
|
|
8232
8273
|
};
|
|
8233
8274
|
|
|
8234
8275
|
type SchemaPath = {} & string;
|
|
@@ -8398,12 +8439,33 @@ type FileAllowList = Array<{
|
|
|
8398
8439
|
extensions: string[];
|
|
8399
8440
|
mimeType: string;
|
|
8400
8441
|
}>;
|
|
8442
|
+
type UploadFilePreviewClientProps = {
|
|
8443
|
+
filename: string;
|
|
8444
|
+
filesize: number;
|
|
8445
|
+
/** Resolved URL of the file (data.url). */
|
|
8446
|
+
fileSrc: string;
|
|
8447
|
+
height?: number;
|
|
8448
|
+
mimeType: string;
|
|
8449
|
+
width?: number;
|
|
8450
|
+
};
|
|
8451
|
+
type UploadFilePreviewMap = {
|
|
8452
|
+
[mimeTypePattern: string]: PayloadComponent;
|
|
8453
|
+
};
|
|
8401
8454
|
type Admin = {
|
|
8402
8455
|
components?: {
|
|
8403
8456
|
/**
|
|
8404
8457
|
* The Controls component to extend the upload controls in the admin panel.
|
|
8405
8458
|
*/
|
|
8406
8459
|
controls?: PayloadComponent[];
|
|
8460
|
+
/**
|
|
8461
|
+
* A custom component to render in place of the default Thumbnail in the upload side panel.
|
|
8462
|
+
*
|
|
8463
|
+
* Can be a single PayloadComponent (renders for all MIME types) or a Record keyed by
|
|
8464
|
+
* MIME type patterns. Pattern resolution priority: exact match → category wildcard
|
|
8465
|
+
* (e.g. `video/*`) → universal fallback (`*`). Falls back to the default Thumbnail
|
|
8466
|
+
* when nothing matches.
|
|
8467
|
+
*/
|
|
8468
|
+
filePreview?: PayloadComponent | UploadFilePreviewMap;
|
|
8407
8469
|
};
|
|
8408
8470
|
};
|
|
8409
8471
|
type UploadConfig = {
|
|
@@ -8647,7 +8709,7 @@ declare const forgotPasswordOperation: <TSlug extends AuthCollectionSlug>(incomi
|
|
|
8647
8709
|
type LoginResult<TSlug extends AuthCollectionSlug> = {
|
|
8648
8710
|
exp?: number;
|
|
8649
8711
|
token?: string;
|
|
8650
|
-
user?: DataFromCollectionSlug<TSlug>;
|
|
8712
|
+
user?: AuthRuntimeFields & DataFromCollectionSlug<TSlug>;
|
|
8651
8713
|
};
|
|
8652
8714
|
type Arguments$n<TSlug extends AuthCollectionSlug> = {
|
|
8653
8715
|
collection: Collection;
|
|
@@ -8730,7 +8792,6 @@ type Arguments$i<TSlug extends CollectionSlug> = {
|
|
|
8730
8792
|
overwriteExistingFiles?: boolean;
|
|
8731
8793
|
populate?: PopulateType;
|
|
8732
8794
|
publishAllLocales?: boolean;
|
|
8733
|
-
publishSpecificLocale?: string;
|
|
8734
8795
|
req: PayloadRequest;
|
|
8735
8796
|
selectedLocales?: string[];
|
|
8736
8797
|
showHiddenFields?: boolean;
|
|
@@ -9008,7 +9069,7 @@ type BaseFindOptions<TSlug extends CollectionSlug, TSelect extends SelectType> =
|
|
|
9008
9069
|
/**
|
|
9009
9070
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
9010
9071
|
*/
|
|
9011
|
-
user?:
|
|
9072
|
+
user?: null | User;
|
|
9012
9073
|
/**
|
|
9013
9074
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
9014
9075
|
*/
|
|
@@ -9047,7 +9108,6 @@ type Arguments$b<TSlug extends CollectionSlug> = {
|
|
|
9047
9108
|
overwriteExistingFiles?: boolean;
|
|
9048
9109
|
populate?: PopulateType;
|
|
9049
9110
|
publishAllLocales?: boolean;
|
|
9050
|
-
publishSpecificLocale?: string;
|
|
9051
9111
|
req: PayloadRequest;
|
|
9052
9112
|
showHiddenFields?: boolean;
|
|
9053
9113
|
/**
|
|
@@ -9076,7 +9136,6 @@ type Arguments$a<TSlug extends CollectionSlug> = {
|
|
|
9076
9136
|
overwriteExistingFiles?: boolean;
|
|
9077
9137
|
populate?: PopulateType;
|
|
9078
9138
|
publishAllLocales?: boolean;
|
|
9079
|
-
publishSpecificLocale?: string;
|
|
9080
9139
|
req: PayloadRequest;
|
|
9081
9140
|
showHiddenFields?: boolean;
|
|
9082
9141
|
trash?: boolean;
|
|
@@ -9132,15 +9191,6 @@ type AfterOperationArg<TOperationGeneric extends CollectionSlug> = {
|
|
|
9132
9191
|
args: Parameters<OperationMap<TOperationGeneric>['deleteByID']>[0];
|
|
9133
9192
|
operation: 'deleteByID';
|
|
9134
9193
|
result: Awaited<ReturnType<OperationMap<TOperationGeneric>['deleteByID']>>;
|
|
9135
|
-
} | {
|
|
9136
|
-
args: Parameters<OperationMap<TOperationGeneric>['find']>[0];
|
|
9137
|
-
/**
|
|
9138
|
-
* @deprecated Use 'find' or 'findByID' operation instead
|
|
9139
|
-
*
|
|
9140
|
-
* TODO: v4 - remove this union option
|
|
9141
|
-
*/
|
|
9142
|
-
operation: 'read';
|
|
9143
|
-
result: Awaited<ReturnType<OperationMap<TOperationGeneric>['find']>>;
|
|
9144
9194
|
} | {
|
|
9145
9195
|
args: Parameters<OperationMap<TOperationGeneric>['find']>[0];
|
|
9146
9196
|
operation: 'find';
|
|
@@ -9276,6 +9326,12 @@ type BeforeOperationArg<TOperationGeneric extends CollectionSlug> = {
|
|
|
9276
9326
|
});
|
|
9277
9327
|
|
|
9278
9328
|
type DataFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollection[TSlug];
|
|
9329
|
+
/**
|
|
9330
|
+
* The ID type of a given collection (e.g. `string` or `number`), taken from its generated type.
|
|
9331
|
+
* Use this instead of the project-wide {@link DefaultDocumentIDType} when the collection slug is
|
|
9332
|
+
* known, since each collection can have its own ID type.
|
|
9333
|
+
*/
|
|
9334
|
+
type IDTypeForCollectionSlug<TSlug extends CollectionSlug> = DataFromCollectionSlug<TSlug>['id'];
|
|
9279
9335
|
type SelectFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollectionSelect[TSlug];
|
|
9280
9336
|
/**
|
|
9281
9337
|
* Collection slugs that do not have drafts enabled.
|
|
@@ -9571,6 +9627,7 @@ type CollectionAdminOptions = {
|
|
|
9571
9627
|
list?: {
|
|
9572
9628
|
actions?: CustomComponent[];
|
|
9573
9629
|
Component?: PayloadComponent;
|
|
9630
|
+
NoResults?: CustomComponent;
|
|
9574
9631
|
};
|
|
9575
9632
|
} & SharedEntityViews;
|
|
9576
9633
|
} & Omit<SharedAdminComponents, 'edit' | 'views'>;
|
|
@@ -9976,6 +10033,11 @@ type SanitizedCompoundIndex = {
|
|
|
9976
10033
|
declare const validOperators: readonly ["equals", "contains", "not_equals", "in", "all", "not_in", "exists", "greater_than", "greater_than_equal", "less_than", "less_than_equal", "like", "not_like", "within", "intersects", "near"];
|
|
9977
10034
|
type Operator = (typeof validOperators)[number];
|
|
9978
10035
|
|
|
10036
|
+
interface PayloadRequestAPI {
|
|
10037
|
+
GraphQL: true;
|
|
10038
|
+
local: true;
|
|
10039
|
+
REST: true;
|
|
10040
|
+
}
|
|
9979
10041
|
type CustomPayloadRequestProperties = {
|
|
9980
10042
|
context: RequestContext;
|
|
9981
10043
|
/** The locale that should be used for a field when it is not translated to the requested locale */
|
|
@@ -9995,7 +10057,7 @@ type CustomPayloadRequestProperties = {
|
|
|
9995
10057
|
/**
|
|
9996
10058
|
* The context in which the request is being made
|
|
9997
10059
|
*/
|
|
9998
|
-
payloadAPI:
|
|
10060
|
+
payloadAPI: keyof PayloadRequestAPI;
|
|
9999
10061
|
/** Optimized document loader */
|
|
10000
10062
|
payloadDataLoader: {
|
|
10001
10063
|
/**
|
|
@@ -10039,7 +10101,7 @@ type CustomPayloadRequestProperties = {
|
|
|
10039
10101
|
*/
|
|
10040
10102
|
transactionID?: number | Promise<number | string> | string;
|
|
10041
10103
|
/** The signed-in user */
|
|
10042
|
-
user:
|
|
10104
|
+
user: AuthenticatedUser | null;
|
|
10043
10105
|
} & Pick<URL, 'hash' | 'host' | 'href' | 'origin' | 'pathname' | 'port' | 'protocol' | 'search' | 'searchParams'>;
|
|
10044
10106
|
type PayloadRequestData = {
|
|
10045
10107
|
/**
|
|
@@ -10259,7 +10321,7 @@ type AuthArgs = {
|
|
|
10259
10321
|
type AuthResult = {
|
|
10260
10322
|
permissions: SanitizedPermissions;
|
|
10261
10323
|
responseHeaders?: Headers;
|
|
10262
|
-
user:
|
|
10324
|
+
user: AuthenticatedUser | null;
|
|
10263
10325
|
};
|
|
10264
10326
|
|
|
10265
10327
|
/**
|
|
@@ -10453,7 +10515,7 @@ type CountOptions<TSlug extends CollectionSlug> = {
|
|
|
10453
10515
|
/**
|
|
10454
10516
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10455
10517
|
*/
|
|
10456
|
-
user?:
|
|
10518
|
+
user?: null | User;
|
|
10457
10519
|
/**
|
|
10458
10520
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10459
10521
|
*/
|
|
@@ -10539,7 +10601,7 @@ type BaseOptions$7<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10539
10601
|
/**
|
|
10540
10602
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10541
10603
|
*/
|
|
10542
|
-
user?:
|
|
10604
|
+
user?: null | User;
|
|
10543
10605
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10544
10606
|
type Options$b<TSlug extends CollectionSlug, TSelect extends SelectType> = GeneratedTypes extends {
|
|
10545
10607
|
strictDraftTypes: true;
|
|
@@ -10664,7 +10726,7 @@ type BaseOptions$6<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10664
10726
|
/**
|
|
10665
10727
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10666
10728
|
*/
|
|
10667
|
-
user?:
|
|
10729
|
+
user?: null | User;
|
|
10668
10730
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10669
10731
|
type ByIDOptions$1<TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>> = {
|
|
10670
10732
|
/**
|
|
@@ -10752,7 +10814,7 @@ type BaseOptions$5<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
10752
10814
|
/**
|
|
10753
10815
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10754
10816
|
*/
|
|
10755
|
-
user?:
|
|
10817
|
+
user?: null | User;
|
|
10756
10818
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10757
10819
|
type Options$a<TSlug extends CollectionSlug, TSelect extends SelectType> = BaseOptions$5<TSlug, TSelect> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10758
10820
|
|
|
@@ -10840,7 +10902,7 @@ type BaseFindByIDOptions<TSlug extends CollectionSlug, TDisableErrors extends bo
|
|
|
10840
10902
|
/**
|
|
10841
10903
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10842
10904
|
*/
|
|
10843
|
-
user?:
|
|
10905
|
+
user?: null | User;
|
|
10844
10906
|
} & Pick<FindByIDArgs, 'flattenLocales'> & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
10845
10907
|
type Options$9<TSlug extends CollectionSlug, TDisableErrors extends boolean, TSelect extends SelectType> = BaseFindByIDOptions<TSlug, TDisableErrors, TSelect> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10846
10908
|
|
|
@@ -10920,7 +10982,7 @@ type Options$8<TSlug extends CollectionSlug, TField extends keyof DataFromCollec
|
|
|
10920
10982
|
/**
|
|
10921
10983
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10922
10984
|
*/
|
|
10923
|
-
user?:
|
|
10985
|
+
user?: null | User;
|
|
10924
10986
|
/**
|
|
10925
10987
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
10926
10988
|
*/
|
|
@@ -10992,7 +11054,7 @@ type BaseOptions$4<TSlug extends CollectionSlug> = {
|
|
|
10992
11054
|
/**
|
|
10993
11055
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
10994
11056
|
*/
|
|
10995
|
-
user?:
|
|
11057
|
+
user?: null | User;
|
|
10996
11058
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
10997
11059
|
type Options$7<TSlug extends CollectionSlug> = BaseOptions$4<TSlug> & DraftFlagFromCollectionSlug<TSlug>;
|
|
10998
11060
|
|
|
@@ -11074,7 +11136,7 @@ type BaseOptions$3<TSlug extends CollectionSlug> = {
|
|
|
11074
11136
|
/**
|
|
11075
11137
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11076
11138
|
*/
|
|
11077
|
-
user?:
|
|
11139
|
+
user?: null | User;
|
|
11078
11140
|
/**
|
|
11079
11141
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
11080
11142
|
*/
|
|
@@ -11133,7 +11195,7 @@ type BaseOptions$2<TSlug extends CollectionSlug> = {
|
|
|
11133
11195
|
/**
|
|
11134
11196
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11135
11197
|
*/
|
|
11136
|
-
user?:
|
|
11198
|
+
user?: null | User;
|
|
11137
11199
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
11138
11200
|
type Options$5<TSlug extends CollectionSlug> = BaseOptions$2<TSlug> & DraftFlagFromCollectionSlug<TSlug>;
|
|
11139
11201
|
|
|
@@ -11205,17 +11267,12 @@ type BaseOptions$1<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
11205
11267
|
*/
|
|
11206
11268
|
populate?: PopulateType;
|
|
11207
11269
|
/**
|
|
11208
|
-
* Publish the document / documents in all locales.
|
|
11270
|
+
* Publish the document / documents in all locales. Only applies when localization is enabled
|
|
11271
|
+
* and the collection has localized fields.
|
|
11209
11272
|
*
|
|
11210
11273
|
* @default undefined
|
|
11211
11274
|
*/
|
|
11212
11275
|
publishAllLocales?: boolean;
|
|
11213
|
-
/**
|
|
11214
|
-
* Publish the document / documents with a specific locale.
|
|
11215
|
-
*
|
|
11216
|
-
* @default undefined
|
|
11217
|
-
*/
|
|
11218
|
-
publishSpecificLocale?: string;
|
|
11219
11276
|
/**
|
|
11220
11277
|
* The `PayloadRequest` object. You can pass it to thread the current [transaction](https://payloadcms.com/docs/database/transactions), user and locale to the operation.
|
|
11221
11278
|
* Recommended to pass when using the Local API from hooks, as usually you want to execute the operation within the current transaction.
|
|
@@ -11234,13 +11291,14 @@ type BaseOptions$1<TSlug extends CollectionSlug, TSelect extends SelectType> = {
|
|
|
11234
11291
|
*/
|
|
11235
11292
|
trash?: boolean;
|
|
11236
11293
|
/**
|
|
11237
|
-
* Unpublish the document / documents in all locales.
|
|
11294
|
+
* Unpublish the document / documents in all locales. Only applies when localization is enabled
|
|
11295
|
+
* and the collection has localized fields.
|
|
11238
11296
|
*/
|
|
11239
11297
|
unpublishAllLocales?: boolean;
|
|
11240
11298
|
/**
|
|
11241
11299
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11242
11300
|
*/
|
|
11243
|
-
user?:
|
|
11301
|
+
user?: null | User;
|
|
11244
11302
|
} & Pick<FindOptions<TSlug, TSelect>, 'select'>;
|
|
11245
11303
|
type ByIDOptions<TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>> = {
|
|
11246
11304
|
/**
|
|
@@ -11317,7 +11375,7 @@ type CountGlobalVersionsOptions<TSlug extends GlobalSlug> = {
|
|
|
11317
11375
|
/**
|
|
11318
11376
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11319
11377
|
*/
|
|
11320
|
-
user?:
|
|
11378
|
+
user?: null | User;
|
|
11321
11379
|
/**
|
|
11322
11380
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
11323
11381
|
*/
|
|
@@ -11407,7 +11465,7 @@ type BaseFindOneOptions<TSlug extends GlobalSlug, TSelect extends SelectType> =
|
|
|
11407
11465
|
/**
|
|
11408
11466
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11409
11467
|
*/
|
|
11410
|
-
user?:
|
|
11468
|
+
user?: null | User;
|
|
11411
11469
|
} & Pick<FindOptions<string, SelectType>, 'select'> & Pick<GlobalFindOneArgs, 'flattenLocales'>;
|
|
11412
11470
|
type Options$4<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseFindOneOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11413
11471
|
|
|
@@ -11467,7 +11525,7 @@ type Options$3<TSlug extends GlobalSlug> = {
|
|
|
11467
11525
|
/**
|
|
11468
11526
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11469
11527
|
*/
|
|
11470
|
-
user?:
|
|
11528
|
+
user?: null | User;
|
|
11471
11529
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11472
11530
|
|
|
11473
11531
|
type Options$2<TSlug extends GlobalSlug> = {
|
|
@@ -11539,7 +11597,7 @@ type Options$2<TSlug extends GlobalSlug> = {
|
|
|
11539
11597
|
/**
|
|
11540
11598
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11541
11599
|
*/
|
|
11542
|
-
user?:
|
|
11600
|
+
user?: null | User;
|
|
11543
11601
|
/**
|
|
11544
11602
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
11545
11603
|
*/
|
|
@@ -11597,7 +11655,7 @@ type Options$1<TSlug extends GlobalSlug> = {
|
|
|
11597
11655
|
/**
|
|
11598
11656
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11599
11657
|
*/
|
|
11600
|
-
user?:
|
|
11658
|
+
user?: null | User;
|
|
11601
11659
|
};
|
|
11602
11660
|
|
|
11603
11661
|
type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
@@ -11641,15 +11699,12 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
|
11641
11699
|
*/
|
|
11642
11700
|
populate?: PopulateType;
|
|
11643
11701
|
/**
|
|
11644
|
-
* Publish the document / documents in all locales.
|
|
11702
|
+
* Publish the document / documents in all locales. Only applies when localization is enabled
|
|
11703
|
+
* and the global has localized fields.
|
|
11645
11704
|
*
|
|
11646
11705
|
* @default undefined
|
|
11647
11706
|
*/
|
|
11648
11707
|
publishAllLocales?: boolean;
|
|
11649
|
-
/**
|
|
11650
|
-
* Publish the document / documents with a specific locale.
|
|
11651
|
-
*/
|
|
11652
|
-
publishSpecificLocale?: TypedLocale;
|
|
11653
11708
|
/**
|
|
11654
11709
|
* The `PayloadRequest` object. You can pass it to thread the current [transaction](https://payloadcms.com/docs/database/transactions), user and locale to the operation.
|
|
11655
11710
|
* Recommended to pass when using the Local API from hooks, as usually you want to execute the operation within the current transaction.
|
|
@@ -11665,13 +11720,14 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
|
|
|
11665
11720
|
*/
|
|
11666
11721
|
slug: TSlug;
|
|
11667
11722
|
/**
|
|
11668
|
-
* Unpublish the document / documents in all locales.
|
|
11723
|
+
* Unpublish the document / documents in all locales. Only applies when localization is enabled
|
|
11724
|
+
* and the global has localized fields.
|
|
11669
11725
|
*/
|
|
11670
11726
|
unpublishAllLocales?: boolean;
|
|
11671
11727
|
/**
|
|
11672
11728
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
11673
11729
|
*/
|
|
11674
|
-
user?:
|
|
11730
|
+
user?: null | User;
|
|
11675
11731
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
11676
11732
|
type Options<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
|
|
11677
11733
|
|
|
@@ -12448,14 +12504,21 @@ type CountVersionsOptions<TSlug extends CollectionSlug> = {
|
|
|
12448
12504
|
/**
|
|
12449
12505
|
* If you set `overrideAccess` to `false`, you can pass a user to use against the access control checks.
|
|
12450
12506
|
*/
|
|
12451
|
-
user?:
|
|
12507
|
+
user?: null | User;
|
|
12452
12508
|
/**
|
|
12453
12509
|
* A filter [query](https://payloadcms.com/docs/queries/overview)
|
|
12454
12510
|
*/
|
|
12455
12511
|
where?: Where;
|
|
12456
12512
|
};
|
|
12457
12513
|
|
|
12458
|
-
|
|
12514
|
+
type APIKeyCheckboxFieldOverride = Omit<Partial<CheckboxField>, 'name' | 'type'>;
|
|
12515
|
+
type APIKeyTextFieldOverride = Omit<Partial<TextField>, 'hasMany' | 'maxRows' | 'minRows' | 'name' | 'type' | 'validate'>;
|
|
12516
|
+
declare const createAPIKeyFields: ({ apiKeyField, apiKeyIndexField, enableAPIKeyField, includeEnableAPIKey, }?: {
|
|
12517
|
+
apiKeyField?: APIKeyTextFieldOverride;
|
|
12518
|
+
apiKeyIndexField?: APIKeyTextFieldOverride;
|
|
12519
|
+
enableAPIKeyField?: APIKeyCheckboxFieldOverride;
|
|
12520
|
+
includeEnableAPIKey?: boolean;
|
|
12521
|
+
}) => Field[];
|
|
12459
12522
|
|
|
12460
12523
|
declare const baseAuthFields: Field[];
|
|
12461
12524
|
|
|
@@ -12552,7 +12615,7 @@ declare const JWTAuthentication: AuthStrategyFunction;
|
|
|
12552
12615
|
type Args$i = {
|
|
12553
12616
|
collection: SanitizedCollectionConfig;
|
|
12554
12617
|
payload: Payload;
|
|
12555
|
-
user:
|
|
12618
|
+
user: User;
|
|
12556
12619
|
};
|
|
12557
12620
|
declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$i) => Promise<void>;
|
|
12558
12621
|
|
|
@@ -12645,26 +12708,22 @@ declare const restoreVersionOperation$1: <TData extends JsonObject & TypeWithID
|
|
|
12645
12708
|
*/
|
|
12646
12709
|
declare function buildConfig(config: Config): Promise<SanitizedConfig>;
|
|
12647
12710
|
|
|
12648
|
-
|
|
12649
|
-
* @deprecated - remove in 4.0. This is error-prone, as mutating this object will affect any objects that use the defaults as a base.
|
|
12650
|
-
*/
|
|
12651
|
-
declare const defaults: Omit<Config, 'db' | 'editor' | 'secret'>;
|
|
12711
|
+
declare const addDefaultsToConfig: (config: Config) => Config;
|
|
12652
12712
|
|
|
12653
12713
|
/**
|
|
12654
12714
|
* Helper for authoring plugins with order, slug, and typed options.
|
|
12655
12715
|
* Eliminates boilerplate and ensures metadata is always set consistently.
|
|
12656
12716
|
*
|
|
12657
|
-
* The `plugin` function receives
|
|
12658
|
-
*
|
|
12717
|
+
* The `plugin` function receives `config`, `plugins` (a slug-keyed map of other
|
|
12718
|
+
* plugins), and the user-provided `options`.
|
|
12659
12719
|
*
|
|
12660
12720
|
* @experimental
|
|
12661
12721
|
*
|
|
12662
12722
|
* @example
|
|
12663
12723
|
* // With options:
|
|
12664
|
-
* export const seoPlugin = definePlugin<
|
|
12724
|
+
* export const seoPlugin = definePlugin<SEOPluginConfig>({
|
|
12665
12725
|
* slug: 'plugin-seo',
|
|
12666
|
-
*
|
|
12667
|
-
* plugin: ({ config, plugins, collections }) => ({ ...config }),
|
|
12726
|
+
* plugin: ({ config, options }) => ({ ...config }),
|
|
12668
12727
|
* })
|
|
12669
12728
|
*
|
|
12670
12729
|
* // Without options:
|
|
@@ -12679,16 +12738,17 @@ declare function definePlugin(descriptor: {
|
|
|
12679
12738
|
config: Config;
|
|
12680
12739
|
plugins: PluginsMap;
|
|
12681
12740
|
}) => Config | Promise<Config>;
|
|
12682
|
-
slug
|
|
12741
|
+
slug: string;
|
|
12683
12742
|
}): () => Plugin;
|
|
12684
|
-
declare function definePlugin<TOptions
|
|
12743
|
+
declare function definePlugin<TOptions>(descriptor: {
|
|
12685
12744
|
order?: number;
|
|
12686
12745
|
plugin: (args: {
|
|
12687
12746
|
config: Config;
|
|
12747
|
+
options: TOptions;
|
|
12688
12748
|
plugins: PluginsMap;
|
|
12689
|
-
}
|
|
12690
|
-
slug
|
|
12691
|
-
}): (options: TOptions) => Plugin;
|
|
12749
|
+
}) => Config | Promise<Config>;
|
|
12750
|
+
slug: string;
|
|
12751
|
+
}): undefined extends TOptions ? (options?: TOptions) => Plugin : (options: TOptions) => Plugin;
|
|
12692
12752
|
|
|
12693
12753
|
/**
|
|
12694
12754
|
* The body of the reorder endpoint.
|
|
@@ -13276,7 +13336,6 @@ type Args$7<TSlug extends GlobalSlug> = {
|
|
|
13276
13336
|
overrideLock?: boolean;
|
|
13277
13337
|
populate?: PopulateType;
|
|
13278
13338
|
publishAllLocales?: boolean;
|
|
13279
|
-
publishSpecificLocale?: string;
|
|
13280
13339
|
req: PayloadRequest;
|
|
13281
13340
|
showHiddenFields?: boolean;
|
|
13282
13341
|
slug: string;
|
|
@@ -13607,7 +13666,7 @@ type CreateLocalReqOptions = {
|
|
|
13607
13666
|
locale?: string;
|
|
13608
13667
|
req?: Partial<PayloadRequest>;
|
|
13609
13668
|
urlSuffix?: string;
|
|
13610
|
-
user?:
|
|
13669
|
+
user?: User;
|
|
13611
13670
|
};
|
|
13612
13671
|
type CreateLocalReq = (options: CreateLocalReqOptions, payload: Payload) => Promise<PayloadRequest>;
|
|
13613
13672
|
declare const createLocalReq: CreateLocalReq;
|
|
@@ -13963,6 +14022,71 @@ type ParseDocumentIDArgs = {
|
|
|
13963
14022
|
};
|
|
13964
14023
|
declare function parseDocumentID({ id, collectionSlug, payload }: ParseDocumentIDArgs): string | number | undefined;
|
|
13965
14024
|
|
|
14025
|
+
type JoinParams = {
|
|
14026
|
+
[schemaPath: string]: {
|
|
14027
|
+
limit?: unknown;
|
|
14028
|
+
sort?: string;
|
|
14029
|
+
where?: unknown;
|
|
14030
|
+
} | false;
|
|
14031
|
+
} | false;
|
|
14032
|
+
/**
|
|
14033
|
+
* Convert request JoinQuery object from strings to numbers
|
|
14034
|
+
* @param joins
|
|
14035
|
+
*/
|
|
14036
|
+
declare const sanitizeJoinParams: (_joins?: JoinParams) => JoinQuery;
|
|
14037
|
+
|
|
14038
|
+
type RawParams = {
|
|
14039
|
+
[key: string]: unknown;
|
|
14040
|
+
autosave?: string;
|
|
14041
|
+
data?: string;
|
|
14042
|
+
depth?: string;
|
|
14043
|
+
draft?: string;
|
|
14044
|
+
field?: string;
|
|
14045
|
+
flattenLocales?: string;
|
|
14046
|
+
joins?: JoinParams;
|
|
14047
|
+
limit?: string;
|
|
14048
|
+
overrideLock?: string;
|
|
14049
|
+
page?: string;
|
|
14050
|
+
pagination?: string;
|
|
14051
|
+
populate?: unknown;
|
|
14052
|
+
publishAllLocales?: string;
|
|
14053
|
+
select?: unknown;
|
|
14054
|
+
selectedLocales?: string;
|
|
14055
|
+
sort?: string | string[];
|
|
14056
|
+
trash?: string;
|
|
14057
|
+
unpublishAllLocales?: string;
|
|
14058
|
+
where?: string | Where;
|
|
14059
|
+
};
|
|
14060
|
+
type ParsedParams = {
|
|
14061
|
+
autosave?: boolean;
|
|
14062
|
+
data?: Record<string, unknown>;
|
|
14063
|
+
depth?: number;
|
|
14064
|
+
draft?: boolean;
|
|
14065
|
+
field?: string;
|
|
14066
|
+
flattenLocales?: boolean;
|
|
14067
|
+
joins?: JoinQuery;
|
|
14068
|
+
limit?: number;
|
|
14069
|
+
overrideLock?: boolean;
|
|
14070
|
+
page?: number;
|
|
14071
|
+
pagination?: boolean;
|
|
14072
|
+
populate?: PopulateType;
|
|
14073
|
+
publishAllLocales?: boolean;
|
|
14074
|
+
select?: SelectType;
|
|
14075
|
+
selectedLocales?: string[];
|
|
14076
|
+
sort?: string[];
|
|
14077
|
+
trash?: boolean;
|
|
14078
|
+
unpublishAllLocales?: boolean;
|
|
14079
|
+
where?: Where;
|
|
14080
|
+
} & Record<string, unknown>;
|
|
14081
|
+
/**
|
|
14082
|
+
* Takes raw query parameters and parses them into the correct types that Payload expects.
|
|
14083
|
+
* Examples:
|
|
14084
|
+
* a. `draft` provided as a string of "true" is converted to a boolean
|
|
14085
|
+
* b. `depth` provided as a string of "0" is converted to a number
|
|
14086
|
+
* c. `sort` provided as a comma-separated string or array is converted to an array of strings
|
|
14087
|
+
*/
|
|
14088
|
+
declare const parseParams: (params: RawParams) => ParsedParams;
|
|
14089
|
+
|
|
13966
14090
|
interface Args$5 {
|
|
13967
14091
|
fallbackLocale: TypedFallbackLocale;
|
|
13968
14092
|
locale: string;
|
|
@@ -13978,19 +14102,6 @@ interface Args$5 {
|
|
|
13978
14102
|
*/
|
|
13979
14103
|
declare const sanitizeFallbackLocale: ({ fallbackLocale, locale, localization, }: Args$5) => TypedFallbackLocale;
|
|
13980
14104
|
|
|
13981
|
-
type JoinParams = {
|
|
13982
|
-
[schemaPath: string]: {
|
|
13983
|
-
limit?: unknown;
|
|
13984
|
-
sort?: string;
|
|
13985
|
-
where?: unknown;
|
|
13986
|
-
} | false;
|
|
13987
|
-
} | false;
|
|
13988
|
-
/**
|
|
13989
|
-
* Convert request JoinQuery object from strings to numbers
|
|
13990
|
-
* @param joins
|
|
13991
|
-
*/
|
|
13992
|
-
declare const sanitizeJoinParams: (_joins?: JoinParams) => JoinQuery;
|
|
13993
|
-
|
|
13994
14105
|
/**
|
|
13995
14106
|
* Sanitizes REST populate query to PopulateType
|
|
13996
14107
|
*/
|
|
@@ -14001,6 +14112,8 @@ declare const sanitizePopulateParam: (unsanitizedPopulate: unknown) => PopulateT
|
|
|
14001
14112
|
*/
|
|
14002
14113
|
declare const sanitizeSelectParam: (unsanitizedSelect: unknown) => SelectType | undefined;
|
|
14003
14114
|
|
|
14115
|
+
declare const sanitizeSortParams: (sort: unknown) => string[] | undefined;
|
|
14116
|
+
|
|
14004
14117
|
/**
|
|
14005
14118
|
* This is used for the Select API to strip out fields that are not selected.
|
|
14006
14119
|
* It will mutate the given data object and determine if your recursive function should continue to run.
|
|
@@ -14129,32 +14242,6 @@ declare const getLatestGlobalVersion: ({ slug, config, locale, payload, publishe
|
|
|
14129
14242
|
globalExists: boolean;
|
|
14130
14243
|
}>;
|
|
14131
14244
|
|
|
14132
|
-
type LocalizeStatusArgs$1 = {
|
|
14133
|
-
collectionSlug?: string;
|
|
14134
|
-
globalSlug?: string;
|
|
14135
|
-
payload: Payload;
|
|
14136
|
-
req?: any;
|
|
14137
|
-
};
|
|
14138
|
-
|
|
14139
|
-
type LocalizeStatusArgs = {
|
|
14140
|
-
collectionSlug?: string;
|
|
14141
|
-
db: any;
|
|
14142
|
-
globalSlug?: string;
|
|
14143
|
-
payload: Payload;
|
|
14144
|
-
req?: any;
|
|
14145
|
-
sql: any;
|
|
14146
|
-
};
|
|
14147
|
-
|
|
14148
|
-
type LocalizeStatusMigration = {
|
|
14149
|
-
down: (args: any) => Promise<void>;
|
|
14150
|
-
up: (args: any) => Promise<void>;
|
|
14151
|
-
};
|
|
14152
|
-
/**
|
|
14153
|
-
* Main entry point for localizeStatus migration.
|
|
14154
|
-
* Detects database type and dispatches to appropriate implementation.
|
|
14155
|
-
*/
|
|
14156
|
-
declare const localizeStatus: LocalizeStatusMigration;
|
|
14157
|
-
|
|
14158
14245
|
type Args<T extends JsonObject = JsonObject> = {
|
|
14159
14246
|
autosave?: boolean;
|
|
14160
14247
|
collection?: SanitizedCollectionConfig;
|
|
@@ -14164,11 +14251,9 @@ type Args<T extends JsonObject = JsonObject> = {
|
|
|
14164
14251
|
id?: number | string;
|
|
14165
14252
|
operation?: 'create' | 'restoreVersion' | 'update';
|
|
14166
14253
|
payload: Payload;
|
|
14167
|
-
publishSpecificLocale?: string;
|
|
14168
14254
|
req?: PayloadRequest;
|
|
14169
14255
|
returning?: boolean;
|
|
14170
14256
|
select?: SelectType;
|
|
14171
|
-
snapshot?: any;
|
|
14172
14257
|
unpublish?: boolean;
|
|
14173
14258
|
};
|
|
14174
14259
|
declare function saveVersion<TData extends JsonObject = JsonObject>(args: {
|
|
@@ -14287,7 +14372,52 @@ interface UntypedPayloadTypes {
|
|
|
14287
14372
|
};
|
|
14288
14373
|
};
|
|
14289
14374
|
locale: null | string;
|
|
14290
|
-
|
|
14375
|
+
/**
|
|
14376
|
+
* User shape used when generated types are unavailable.
|
|
14377
|
+
* Includes common document fields and fields managed by Payload auth. Custom fields and
|
|
14378
|
+
* collection features such as drafts, trash, and uploads require generated types. Runtime fields
|
|
14379
|
+
* `_strategy` and `_sid` belong to `AuthenticatedUser`.
|
|
14380
|
+
*/
|
|
14381
|
+
user: {
|
|
14382
|
+
/** Email verification token. Hidden (needs `showHiddenFields`). Only with `auth.verify`, until verified. */
|
|
14383
|
+
_verificationToken?: null | string;
|
|
14384
|
+
/** Whether the email is verified. Only with `auth.verify`. */
|
|
14385
|
+
_verified?: boolean | null;
|
|
14386
|
+
/** The user's API key. Only with `auth.useAPIKey`, once enabled for this user. */
|
|
14387
|
+
apiKey?: null | string;
|
|
14388
|
+
/** Internal lookup index for the API key. Hidden (needs `showHiddenFields`). Only with `auth.useAPIKey`. */
|
|
14389
|
+
apiKeyIndex?: null | string;
|
|
14390
|
+
/** Slug of the auth collection this user belongs to. Always present; identifies the source collection. */
|
|
14391
|
+
collection: string;
|
|
14392
|
+
/** When the user was created. Not present when timestamps are disabled. */
|
|
14393
|
+
createdAt?: string;
|
|
14394
|
+
/** The user's email. Absent if email login is disabled via `auth.loginWithUsername`. */
|
|
14395
|
+
email?: null | string;
|
|
14396
|
+
/** Whether API key auth is enabled for this user. Only with `auth.useAPIKey`. */
|
|
14397
|
+
enableAPIKey?: boolean | null;
|
|
14398
|
+
/** Hashed password. Hidden (needs `showHiddenFields`). Only with the local strategy. */
|
|
14399
|
+
hash?: null | string;
|
|
14400
|
+
/** The user's ID. Always present. */
|
|
14401
|
+
id: UntypedPayloadTypes['db']['defaultIDType'];
|
|
14402
|
+
/** Locked-until timestamp. Hidden (needs `showHiddenFields`). Only with `auth.maxLoginAttempts`, while locked. */
|
|
14403
|
+
lockUntil?: null | string;
|
|
14404
|
+
/** Failed login attempt count. Hidden (needs `showHiddenFields`). Only with `auth.maxLoginAttempts`. */
|
|
14405
|
+
loginAttempts?: null | number;
|
|
14406
|
+
/** Plain-text password. Write-only: accepted on `create`/`update`, never returned on reads. */
|
|
14407
|
+
password?: null | string;
|
|
14408
|
+
/** Reset-token expiry. Hidden (needs `showHiddenFields`). Only after `forgotPassword`, until reset. */
|
|
14409
|
+
resetPasswordExpiration?: null | string;
|
|
14410
|
+
/** Active password-reset token. Hidden (needs `showHiddenFields`). Only after `forgotPassword`, until reset. */
|
|
14411
|
+
resetPasswordToken?: null | string;
|
|
14412
|
+
/** Password salt. Hidden (needs `showHiddenFields`). Only with the local strategy. */
|
|
14413
|
+
salt?: null | string;
|
|
14414
|
+
/** Active login sessions. Only with `auth.useSessions` (the default). */
|
|
14415
|
+
sessions?: Array<UserSession> | null;
|
|
14416
|
+
/** When the user was last updated. Not present when timestamps are disabled. */
|
|
14417
|
+
updatedAt?: string;
|
|
14418
|
+
/** The user's username. Only with `auth.loginWithUsername`. */
|
|
14419
|
+
username?: null | string;
|
|
14420
|
+
};
|
|
14291
14421
|
widgets: {
|
|
14292
14422
|
[slug: string]: JsonObject;
|
|
14293
14423
|
};
|
|
@@ -14350,13 +14480,13 @@ type GlobalSlug<T extends PayloadTypesShape = PayloadTypes> = StringKeyOf<T['glo
|
|
|
14350
14480
|
type TypedLocale<T extends PayloadTypesShape = PayloadTypes> = T['locale'];
|
|
14351
14481
|
type TypedFallbackLocale = PayloadTypes['fallbackLocale'];
|
|
14352
14482
|
/**
|
|
14483
|
+
* User document type for auth-enabled collections.
|
|
14484
|
+
* Uses generated types when available and the auth-only fallback above otherwise. Generated types
|
|
14485
|
+
* include custom fields and can be a union when several collections support auth.
|
|
14353
14486
|
*
|
|
14354
|
-
*
|
|
14355
|
-
* auth-enabled collections.
|
|
14356
|
-
*
|
|
14357
|
-
* @todo rename to `User` in 4.0
|
|
14487
|
+
* Not the signed-in `req.user`, which also has `_strategy` and `_sid` - use `AuthenticatedUser`.
|
|
14358
14488
|
*/
|
|
14359
|
-
type
|
|
14489
|
+
type User = PayloadTypes['user'];
|
|
14360
14490
|
type TypedAuthOperations<T extends PayloadTypesShape = PayloadTypes> = T['auth'];
|
|
14361
14491
|
type AuthCollectionSlug<T extends PayloadTypesShape = PayloadTypes> = StringKeyOf<T['auth']>;
|
|
14362
14492
|
type TypedJobs = PayloadTypes['jobs'];
|
|
@@ -14647,5 +14777,5 @@ interface GlobalAdminCustom extends Record<string, any> {
|
|
|
14647
14777
|
interface GlobalAdminCustom extends Record<string, any> {
|
|
14648
14778
|
}
|
|
14649
14779
|
|
|
14650
|
-
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,
|
|
14651
|
-
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, JoinQuery, JsonArray, JsonObject, JsonValue, KVAdapter, KVAdapterResult, KVStoreValue, LabelFunction, Labels, LabelsClient, LanguageOptions, LinkAdapterProps, CollectionPreferences as ListPreferences, ListQuery, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlotSharedClientProps, ListViewSlots, LivePreviewConfig, LivePreviewURLType, Locale, LocalizationConfig, LocalizationConfigWithLabels, LocalizationConfigWithNoLabels, LoginResult, LoginWithUsernameOptions, MappedClientComponent, MappedEmptyComponent, MappedServerComponent, MaybePromise, MeOperationResult, MetaConfig, Migration, MigrationData, MigrationTemplateArgs, LocalizeStatusArgs$1 as MongoLocalizeStatusArgs, NamedGroupField, NamedGroupFieldClient, NamedTab, NavGroupPreferences, NavPreferences, NonPresentationalField, NonPresentationalFieldClient, NumberField, NumberFieldClient, NumberFieldClientComponent, NumberFieldClientProps, NumberFieldDescriptionClientComponent, NumberFieldDescriptionServerComponent, NumberFieldDiffClientComponent, NumberFieldDiffServerComponent, NumberFieldErrorClientComponent, NumberFieldErrorServerComponent, NumberFieldLabelClientComponent, NumberFieldLabelServerComponent, NumberFieldManyValidation, NumberFieldServerComponent, NumberFieldServerProps, NumberFieldSingleValidation, NumberFieldValidation, OGImageConfig, Operation, Operator, Option, OptionLabel, OptionObject, OrderableEndpointBody, PaginatedDistinctDocs, PaginatedDocs, Params, PasswordFieldValidation, PathToQuery, Payload, PayloadClientComponentProps, PayloadClientReactComponent, PayloadComponent, PayloadComponentProps, EmailAdapter as PayloadEmailAdapter, PayloadHandler, PayloadLogger, PayloadReactComponent, PayloadRequest, PayloadServerAction, PayloadServerComponentProps, PayloadServerReactComponent, PayloadTypes, PayloadTypesShape, Permission, Permissions, PickPreserveOptional, Plugin, PluginsMap, PointField, PointFieldClient, PointFieldClientComponent, PointFieldClientProps, PointFieldDescriptionClientComponent, PointFieldDescriptionServerComponent, PointFieldDiffClientComponent, PointFieldDiffServerComponent, PointFieldErrorClientComponent, PointFieldErrorServerComponent, PointFieldLabelClientComponent, PointFieldLabelServerComponent, PointFieldServerComponent, PointFieldServerProps, PointFieldValidation, PolymorphicRelationshipField, PolymorphicRelationshipFieldClient, PopulateType, PreferenceRequest, PreferenceUpdateRequest, PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, ProbedImageSize, PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, QueryDrafts, QueryDraftsArgs, QueryPreset, RadioField, RadioFieldClient, RadioFieldClientComponent, RadioFieldClientProps, RadioFieldDescriptionClientComponent, RadioFieldDescriptionServerComponent, RadioFieldDiffClientComponent, RadioFieldDiffServerComponent, RadioFieldErrorClientComponent, RadioFieldErrorServerComponent, RadioFieldLabelClientComponent, RadioFieldLabelServerComponent, RadioFieldServerComponent, RadioFieldServerProps, RadioFieldValidation, RawPayloadComponent, RegisteredPlugins, RelatedDocumentsGrouped, RelationshipField, RelationshipFieldClient, RelationshipFieldClientComponent, RelationshipFieldClientProps, RelationshipFieldDescriptionClientComponent, RelationshipFieldDescriptionServerComponent, RelationshipFieldDiffClientComponent, RelationshipFieldDiffServerComponent, RelationshipFieldErrorClientComponent, RelationshipFieldErrorServerComponent, RelationshipFieldLabelClientComponent, RelationshipFieldLabelServerComponent, RelationshipFieldManyValidation, RelationshipFieldServerComponent, RelationshipFieldServerProps, RelationshipFieldSingleValidation, RelationshipFieldValidation, RelationshipValue, RenderConfigArgs, RenderDocumentVersionsProperties, RenderEntityConfigArgs, RenderFieldConfigArgs, RenderRootConfigArgs, RenderedField, ReplaceAny, RequestContext, RequiredDataFromCollection, RequiredDataFromCollectionSlug, ResolvedComponent, ResolvedFilterOptions, RichTextAdapter, RichTextAdapterProvider, RichTextField, RichTextFieldClient, RichTextFieldClientComponent, RichTextFieldClientProps, RichTextFieldDescriptionClientComponent, RichTextFieldDescriptionServerComponent, RichTextFieldDiffClientComponent, RichTextFieldDiffServerComponent, RichTextFieldErrorClientComponent, RichTextFieldErrorServerComponent, RichTextFieldLabelClientComponent, RichTextFieldLabelServerComponent, RichTextFieldServerComponent, RichTextFieldServerProps, RichTextFieldValidation, RichTextHooks, RollbackTransaction, RootLivePreviewConfig, RouterAdapterComponent, RouterAdapterRouter, Row, RowField, RowFieldClient, RowFieldClientComponent, RowFieldClientProps, RowFieldDescriptionClientComponent, RowFieldDescriptionServerComponent, RowFieldDiffClientComponent, RowFieldDiffServerComponent, RowFieldErrorClientComponent, RowFieldErrorServerComponent, RowFieldLabelClientComponent, RowFieldLabelServerComponent, RowFieldServerComponent, RowFieldServerProps, RowLabel, RowLabelComponent, RunInlineTaskFunction, RunJobAccess, RunJobAccessArgs, RunTaskFunction, RunTaskFunctions, RunningJob, SanitizeFieldArgs, SanitizedBlockPermissions, SanitizedBlocksPermissions, SanitizedCollectionConfig, SanitizedCollectionPermission, SanitizedCompoundIndex, SanitizedConfig, SanitizedDashboardConfig, SanitizedDocumentPermissions, SanitizedFieldPermissions, SanitizedFieldsPermissions, SanitizedGlobalConfig, SanitizedGlobalPermission, SanitizedHierarchyConfig, SanitizedHierarchyRelatedCollection, SanitizedJoins, SanitizedLabelProps, SanitizedLocalizationConfig, SanitizedPermissions, SanitizedUploadConfig, SaveButtonClientProps, SaveButtonServerProps, SaveButtonServerPropsOnly, SaveDraftButtonClientProps, SaveDraftButtonServerProps, SaveDraftButtonServerPropsOnly, SchedulePublish, SchedulePublishTaskInput, SelectExcludeType, SelectField, SelectFieldClient, SelectFieldClientComponent, SelectFieldClientProps, SelectFieldDescriptionClientComponent, SelectFieldDescriptionServerComponent, SelectFieldDiffClientComponent, SelectFieldDiffServerComponent, SelectFieldErrorClientComponent, SelectFieldErrorServerComponent, SelectFieldLabelClientComponent, SelectFieldLabelServerComponent, SelectFieldManyValidation, SelectFieldServerComponent, SelectFieldServerProps, SelectFieldSingleValidation, SelectFieldValidation, SelectFn, SelectFnArgs, SelectFnOperation, SelectIncludeType, SelectMode, SelectType, SendEmailOptions, ServerAdapter, ServerComponentProps, ServerFieldBase, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, 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, LocalizeStatusArgs as SqlLocalizeStatusArgs, StaticDescription, StaticLabel, StorageAdapter, StringKeyOf, Tab, TabAsField, TabAsFieldClient, TabsField, TabsFieldClient, TabsFieldClientComponent, TabsFieldClientProps, TabsFieldDescriptionClientComponent, TabsFieldDescriptionServerComponent, TabsFieldDiffClientComponent, TabsFieldDiffServerComponent, TabsFieldErrorClientComponent, TabsFieldErrorServerComponent, TabsFieldLabelClientComponent, TabsFieldLabelServerComponent, TabsFieldServerComponent, TabsFieldServerProps, TabsPreferences, TagsConfig, TaskConfig, TaskHandler, TaskHandlerArgs, TaskHandlerResult, TaskHandlerResults, TaskInput, TaskOutput, TaskType, TextField, TextFieldClient, TextFieldClientComponent, TextFieldClientProps, TextFieldDescriptionClientComponent, TextFieldDescriptionServerComponent, TextFieldDiffClientComponent, TextFieldDiffServerComponent, TextFieldErrorClientComponent, TextFieldErrorServerComponent, TextFieldLabelClientComponent, TextFieldLabelServerComponent, TextFieldManyValidation, TextFieldServerComponent, TextFieldServerProps, TextFieldSingleValidation, TextFieldValidation, TextareaField, TextareaFieldClient, TextareaFieldClientComponent, TextareaFieldClientProps, TextareaFieldDescriptionClientComponent, TextareaFieldDescriptionServerComponent, TextareaFieldDiffClientComponent, TextareaFieldDiffServerComponent, TextareaFieldErrorClientComponent, TextareaFieldErrorServerComponent, TextareaFieldLabelClientComponent, TextareaFieldLabelServerComponent, TextareaFieldServerComponent, TextareaFieldServerProps, TextareaFieldValidation, TimePickerProps, Timezone, TimezonesConfig, Transaction, TransformCollectionWithSelect, TransformDataWithSelect, TransformGlobalWithSelect, TraverseFieldsCallback, TypeWithID, TypeWithTimestamps, TypeWithVersion, TypedAuthOperations, TypedBlock, TypedCollection, TypedCollectionJoins, TypedCollectionSelect, TypedFallbackLocale, TypedGlobal, TypedGlobalSelect, TypedJobs, TypedLocale, TypedUploadCollection, TypedUser, TypedWidget, UIField, UIFieldClient, UIFieldClientComponent, UIFieldClientProps, UIFieldDiffClientComponent, UIFieldDiffServerComponent, UIFieldServerComponent, UIFieldServerProps, UnauthenticatedClientConfig, UnnamedGroupField, UnnamedGroupFieldClient, UnnamedTab, UnpublishButtonClientProps, UnpublishButtonServerProps, UnpublishButtonServerPropsOnly, UntypedPayloadTypes, UntypedUser, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateJobs, UpdateJobsArgs, UpdateMany, UpdateManyArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, UploadCollectionSlug, UploadConfig, UploadEdits, UploadField, UploadFieldClient, UploadFieldClientComponent, UploadFieldClientProps, UploadFieldDescriptionClientComponent, UploadFieldDescriptionServerComponent, UploadFieldDiffClientComponent, UploadFieldDiffServerComponent, UploadFieldErrorClientComponent, UploadFieldErrorServerComponent, UploadFieldLabelClientComponent, UploadFieldLabelServerComponent, UploadFieldManyValidation, UploadFieldServerComponent, UploadFieldServerProps, UploadFieldSingleValidation, UploadFieldValidation, Upsert, UpsertArgs, UntypedUser as User, UserSession, UsernameFieldValidation, Validate, ValidateOptions, ValidationFieldError, ValueWithRelation, VerifyConfig, VersionField, VersionOperations, VersionTab, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, Where, WhereField, Widget, WidgetInstance, WidgetServerProps, WidgetSlug, WidgetWidth, WithSelectFn, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };
|
|
14780
|
+
export { APIError, APIErrorName, Action, AuthenticationError, BasePayload, DEFAULT_ALLOW_HAS_MANY, DEFAULT_HIERARCHY_TREE_LIMIT, DatabaseKVAdapter, DiffMethod, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, EntityType, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, HIERARCHY_DEFAULT_LOCALE, HIERARCHY_SLUG_PATH_FIELD, HIERARCHY_TITLE_PATH_FIELD, InMemoryKVAdapter, InvalidConfiguration, InvalidFieldName, InvalidFieldRelationship, JWTAuthentication, JobCancelledError, Locked, LockedAuth, MissingCollectionLabel, MissingEditorProp, MissingFieldInputOptions, MissingFieldType, MissingFile, NotFound, QueryError, UnauthorizedError, UnverifiedEmail, ValidationError, ValidationErrorName, _internal_jobSystemGlobals, _internal_resetJobSystemGlobals, _internal_safeFetchGlobal, accessOperation, addDataAndFileToRequest, addDefaultsToConfig, addLocalesToRequestFromData, traverseFields$4 as afterChangeTraverseFields, promise as afterReadPromise, traverseFields$3 as afterReadTraverseFields, appendVersionToQueryKey, accountLockFields as baseAccountLockFields, baseAuthFields, baseBlockFields, emailFieldConfig as baseEmailField, baseIDField, sessionsFieldConfig as baseSessionsField, usernameFieldConfig as baseUsernameField, verificationFields as baseVerificationFields, traverseFields$2 as beforeChangeTraverseFields, traverseFields$1 as beforeValidateTraverseFields, buildConfig, buildVersionCollectionFields, buildVersionCompoundIndexes, buildVersionGlobalFields, canAccessAdmin, checkDependencies, checkLoginPermission, combineQueries, commitTransaction, configToJSONSchema, countOperation, countRunnableOrActiveJobsForQueue, createAPIKeyFields, createArrayFromCommaDelineated, createClientBlocks, createClientCollectionConfig, createClientCollectionConfigs, createClientConfig, createClientField, createClientFields, createClientGlobalConfig, createClientGlobalConfigs, createDatabaseAdapter, createDataloaderCacheKey, createFolderField, createLocalReq, createMigration, createOperation, createPayloadRequest, createTagField, createUnauthenticatedClientConfig, databaseKVAdapter, deepCopyObject, deepCopyObjectComplex, deepCopyObjectSimple, deepMergeSimple, deepMergeWithCombinedArrays, deepMergeWithReactComponents, deepMergeWithSourceArrays, initialized as default, defaultBeginTransaction, defaultLoggerOptions, defaultUserCollection, definePlugin, deleteByIDOperation, deleteCollectionVersions, deleteOperation, docAccessOperation$1 as docAccessOperation, docAccessOperation as docAccessOperationGlobal, docHasTimestamps, duplicateOperation, dynamicImport, enforceMaxVersions, entityToJSONSchema, entityToStandaloneJSONSchema, escapeRegExp, executeAccess, executeAuthStrategies, extractAccessFromPermission, extractJWT, fieldsToJSONSchema, findByIDOperation, findMigrationDir, findOneOperation, findOperation, findUp, findUpSync, findVersionByIDOperation$1 as findVersionByIDOperation, findVersionByIDOperation as findVersionByIDOperationGlobal, findVersionsOperation$1 as findVersionsOperation, findVersionsOperation as findVersionsOperationGlobal, flattenAllFields, flattenTopLevelFields, flattenWhereToOperators, forgotPasswordOperation, formatErrors, formatLabels, formatNames, genImportMapIterateFields, generateCookie, generateExpiredPayloadCookie, generateImportMap, generatePayloadCookie, getAccessResults, getAncestors, getBlockSelect, getCollectionIDFieldTypes, getCookieExpiration, getCurrentDate, getDataLoader, getDefaultValue, getDependencies, getFieldByPath, getFieldsToSign, getFileByPath, getHierarchyFieldName, getInitialTreeData, getLatestCollectionVersion, getLatestGlobalVersion, getLocalI18n, getLocalizedPaths, getLoginOptions, getMigrations, getObjectDotNotation, getPayload, getPredefinedMigration, getQueryDraftsSort, getRequestLanguage, handleEndpoints, hasWhereAccessResult, headersWithCors, importHandlerPath, inMemoryKVAdapter, incrementLoginAttempts, initOperation, initTransaction, injectHierarchyButton, isEntityHidden, isPlainObject, isUserMenuSettingsGroup, isValidID, isolateObjectProperty, jobAfterRead, jwtSign, killTransaction, logError, loginOperation, logoutOperation, mapAsync, meOperation, mergeHeaders, migrate, migrate$1 as migrateCLI, migrateDown, migrateRefresh, migrateReset, migrateStatus, migrationTemplate, migrationsCollection, parseCookies, parseDocumentID, parseParams, pathExistsAndIsAccessible, pathExistsAndIsAccessibleSync, readMigrationFiles, refreshOperation, registerBlockInterface, registerFirstUserOperation, reload, resetLoginAttempts, resetPasswordOperation, resolveHierarchyCollections, restoreVersionOperation$1 as restoreVersionOperation, restoreVersionOperation as restoreVersionOperationGlobal, sanitizeConfig, sanitizeFallbackLocale, sanitizeField, sanitizeFields, sanitizeJoinParams, sanitizeLocales, sanitizePopulateParam, sanitizeSelectParam, sanitizeSortParams, saveVersion, serverOnlyAdminConfigProperties, serverOnlyConfigProperties, serverProps, slugField, sortableFieldTypes, stripUnselectedFields, toWords, traverseFields, unlockOperation, updateByIDOperation, updateOperation$1 as updateOperation, updateOperation as updateOperationGlobal, validateBlocksFilterOptions, validateQueryPaths, validateSearchParam, validations, verifyEmailOperation, versionDefaults, withNullableJSONSchemaType, writeMigrationIndex };
|
|
14781
|
+
export type { Access, AccessArgs, AccessResult, AdminClient, AdminComponent, AdminDependencies, AdminFunction, AdminView, AdminViewAdapter, AdminViewClientProps, AdminViewComponent, AdminViewConfig, AdminViewKey, AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, AfterErrorHook$1 as AfterErrorHook, AfterErrorHookArgs, AfterErrorResult, AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, AllOperations, AllowList, Ancestor, ApplyDisableErrors, ArrayField, ArrayFieldClient, ArrayFieldClientComponent, ArrayFieldClientProps, ArrayFieldDescriptionClientComponent, ArrayFieldDescriptionServerComponent, ArrayFieldDiffClientComponent, ArrayFieldDiffServerComponent, ArrayFieldErrorClientComponent, ArrayFieldErrorServerComponent, ArrayFieldLabelClientComponent, ArrayFieldLabelServerComponent, ArrayFieldServerComponent, ArrayFieldServerProps, ArrayFieldValidation, Auth, AuthCollection, AuthCollectionSlug, AuthOperations, AuthOperationsFromCollectionSlug, AuthRuntimeFields, AuthStrategy, AuthStrategyFunction, AuthStrategyFunctionArgs, AuthStrategyResult, AuthenticatedUser, BaseDatabaseAdapter, BaseFilter, BaseJob, BaseListFilter, BaseLocalizationConfig, BaseValidateOptions, BaseVersionField, BeforeDocumentControlsClientProps, BeforeDocumentControlsServerProps, BeforeDocumentControlsServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, BeginTransaction, BinScript, BinScriptConfig, Block, BlockJSX, BlockPermissions, BlockRowLabelClientComponent, BlockRowLabelServerComponent, BlockSlug, BlocksField, BlocksFieldClient, BlocksFieldClientComponent, BlocksFieldClientProps, BlocksFieldDescriptionClientComponent, BlocksFieldDescriptionServerComponent, BlocksFieldDiffClientComponent, BlocksFieldDiffServerComponent, BlocksFieldErrorClientComponent, BlocksFieldErrorServerComponent, BlocksFieldLabelClientComponent, BlocksFieldLabelServerComponent, BlocksFieldServerComponent, BlocksFieldServerProps, BlocksFieldValidation, BlocksPermissions, BuildFormStateArgs, BuildTableStateArgs, BulkOperationResult, CORSConfig, CheckboxField, CheckboxFieldClient, CheckboxFieldClientComponent, CheckboxFieldClientProps, CheckboxFieldDescriptionClientComponent, CheckboxFieldDescriptionServerComponent, CheckboxFieldDiffClientComponent, CheckboxFieldDiffServerComponent, CheckboxFieldErrorClientComponent, CheckboxFieldErrorServerComponent, CheckboxFieldLabelClientComponent, CheckboxFieldLabelServerComponent, CheckboxFieldServerComponent, CheckboxFieldServerProps, CheckboxFieldValidation, ClientBlock, ClientCollectionConfig, ClientComponentProps, ClientConfig, ClientField, ClientFieldBase, ClientFieldProps, ClientFieldSchemaMap, ClientFieldWithOptionalType, ClientGlobalConfig, DocumentViewClientProps as ClientSideEditViewProps, ClientTab, ClientUser, ClientWidget, CodeField, CodeFieldClient, CodeFieldClientComponent, CodeFieldClientProps, CodeFieldDescriptionClientComponent, CodeFieldDescriptionServerComponent, CodeFieldDiffClientComponent, CodeFieldDiffServerComponent, CodeFieldErrorClientComponent, CodeFieldErrorServerComponent, CodeFieldLabelClientComponent, CodeFieldLabelServerComponent, CodeFieldServerComponent, CodeFieldServerProps, CodeFieldValidation, CollapsedPreferences, CollapsibleField, CollapsibleFieldClient, CollapsibleFieldClientComponent, CollapsibleFieldClientProps, CollapsibleFieldDescriptionClientComponent, CollapsibleFieldDescriptionServerComponent, CollapsibleFieldDiffClientComponent, CollapsibleFieldDiffServerComponent, CollapsibleFieldErrorClientComponent, CollapsibleFieldErrorServerComponent, CollapsibleFieldLabelClientComponent, CollapsibleFieldLabelServerComponent, CollapsibleFieldServerComponent, CollapsibleFieldServerProps, Collection, CollectionAdminCustom, CollectionAdminOptions, AfterChangeHook as CollectionAfterChangeHook, AfterDeleteHook as CollectionAfterDeleteHook, AfterErrorHook as CollectionAfterErrorHook, AfterForgotPasswordHook as CollectionAfterForgotPasswordHook, AfterLoginHook as CollectionAfterLoginHook, AfterLogoutHook as CollectionAfterLogoutHook, AfterMeHook as CollectionAfterMeHook, AfterOperationHook as CollectionAfterOperationHook, AfterReadHook as CollectionAfterReadHook, AfterRefreshHook as CollectionAfterRefreshHook, BeforeChangeHook as CollectionBeforeChangeHook, BeforeDeleteHook as CollectionBeforeDeleteHook, BeforeLoginHook as CollectionBeforeLoginHook, BeforeOperationHook as CollectionBeforeOperationHook, BeforeReadHook as CollectionBeforeReadHook, BeforeValidateHook as CollectionBeforeValidateHook, CollectionConfig, CollectionCustom, MeHook as CollectionMeHook, CollectionPermission, CollectionPreferences, RefreshHook as CollectionRefreshHook, CollectionSlug, Column, ColumnPreference, CommitTransaction, ComponentRenderer, CompoundIndex, ConcurrencyConfig, Condition, ConditionalDateProps, Config, ConfirmPasswordFieldValidation, Connect, CookieOptions$1 as CookieOptions, CookieStore, Count, CountArgs, CountGlobalVersionArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateClientConfigArgs, CreateFolderFieldOptions, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateTagFieldOptions, CreateVersion, CreateVersionArgs, CustomComponent, CustomDocumentViewConfig, CustomPayloadRequestProperties, CustomComponent as CustomPreviewButton, CustomComponent as CustomPublishButton, CustomComponent as CustomSaveButton, CustomComponent as CustomSaveDraftButton, CustomStatus, CustomUpload, CustomVersionParser, DBIdentifierName, DashboardConfig, Data, DataFromCollectionSlug, DataFromGlobalSlug, DataFromWidgetSlug, DatabaseAdapter, DatabaseAdapterResult as DatabaseAdapterObj, DatabaseKVAdapterOptions, DateField, DateFieldClient, DateFieldClientComponent, DateFieldClientProps, DateFieldDescriptionClientComponent, DateFieldDescriptionServerComponent, DateFieldDiffClientComponent, DateFieldDiffServerComponent, DateFieldErrorClientComponent, DateFieldErrorServerComponent, DateFieldLabelClientComponent, DateFieldLabelServerComponent, DateFieldServerComponent, DateFieldServerProps, DateFieldValidation, DayPickerProps, DefaultCellComponentProps, DefaultDocumentIDType, DefaultDocumentViewConfig, DefaultServerCellComponentProps, DefaultServerFunctionArgs, DefaultValue, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Description, DescriptionFunction, Destroy, DevReloadCleanup, DevReloadStrategy, Document, DocumentEvent, DocumentPermissions, DocumentPreferences, DocumentSlots, DocumentSubViewTypes, DocumentTabClientProps, DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabServerProps as DocumentTabProps, DocumentTabServerProps, DocumentTabServerPropsOnly, DocumentViewClientProps, DocumentViewComponent, DocumentViewConfig, DocumentViewServerProps, DocumentViewServerPropsOnly, DraftTransformCollectionWithSelect, DynamicMigrationTemplate, EditConfig, EditConfigWithRoot, EditConfigWithoutRoot, EditMenuItemsClientProps, EditMenuItemsServerProps, EditMenuItemsServerPropsOnly, EditViewComponent, EditViewConfig, EditViewProps, EmailAdapter, EmailField, EmailFieldClient, EmailFieldClientComponent, EmailFieldClientProps, EmailFieldDescriptionClientComponent, EmailFieldDescriptionServerComponent, EmailFieldDiffClientComponent, EmailFieldDiffServerComponent, EmailFieldErrorClientComponent, EmailFieldErrorServerComponent, EmailFieldLabelClientComponent, EmailFieldLabelServerComponent, EmailFieldServerComponent, EmailFieldServerProps, EmailFieldValidation, Endpoint, EntityDescription, EntityDescriptionComponent, EntityDescriptionFunction, EntityPolicies, ErrorResult, FetchAPIFileUploadOptions, Field, FieldAccess, FieldAccessArgs, FieldAffectingData, FieldAffectingDataClient, FieldBase, FieldBaseClient, FieldClientComponent, FieldCustom, FieldDescriptionClientComponent, FieldDescriptionClientProps, FieldDescriptionServerComponent, FieldDescriptionServerProps, FieldDiffClientComponent, FieldDiffClientProps, FieldDiffServerComponent, FieldDiffServerProps, FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, FieldHook, FieldHookArgs, FieldLabelClientComponent, FieldLabelClientProps, FieldLabelServerComponent, FieldLabelServerProps, FieldPaths, FieldPermissions, FieldPosition, FieldPresentationalOnly, FieldPresentationalOnlyClient, FieldRow, FieldSchemaMap, FieldServerComponent, FieldState, FieldTypes, FieldWithMany, FieldWithManyClient, FieldWithMaxDepth, FieldWithMaxDepthClient, FieldWithPath, FieldWithPathClient, FieldWithSubFields, FieldWithSubFieldsClient, FieldsPermissions, FieldsPreferences, FieldsToJSONSchemaArgs, File$1 as File, FileAllowList, FileData, FileSize, FileSizes, FileToSave, FilterOptions, FilterOptionsProps, FilterOptionsResult, Find, FindArgs, FindDistinct, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindOptions, FindVersions, FindVersionsArgs, FlattenedArrayField, FlattenedBlock, FlattenedBlocksField, FlattenedField$1 as FlattenedField, FlattenedGroupField, FlattenedJoinField, FlattenedTabAsField, FocalPoint, FoldersConfig, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FormState, FormStateWithoutComponents, GenerateImageName, GeneratePreviewURL, GenerateSchema, GenerateViewMetadata, GeneratedTypes, GenericDescriptionProps, GenericErrorProps, GenericLabelProps, GetAdminThumbnail, GetInitialTreeDataArgs, GlobalAdminCustom, GlobalAdminOptions, AfterChangeHook$1 as GlobalAfterChangeHook, AfterReadHook$1 as GlobalAfterReadHook, BeforeChangeHook$1 as GlobalBeforeChangeHook, BeforeOperationHook$1 as GlobalBeforeOperationHook, BeforeReadHook$1 as GlobalBeforeReadHook, BeforeValidateHook$1 as GlobalBeforeValidateHook, GlobalConfig, GlobalCustom, GlobalPermission, GlobalSlug, GraphQLExtension, GraphQLInfo, GroupField, GroupFieldClient, GroupFieldClientComponent, GroupFieldClientProps, GroupFieldDescriptionClientComponent, GroupFieldDescriptionServerComponent, GroupFieldDiffClientComponent, GroupFieldDiffServerComponent, GroupFieldErrorClientComponent, GroupFieldErrorServerComponent, GroupFieldLabelClientComponent, GroupFieldLabelServerComponent, GroupFieldServerComponent, GroupFieldServerProps, HiddenFieldProps, HierarchyConfig, HierarchyViewData, HookName, HookOperationType, IDTypeForCollectionSlug, IfAny, ImageSize, ImageUploadFormatOptions, ImageUploadTrimOptions, ImportMap, ImportMapGenerators, IncomingAuthType, Init, InitOptions, InitPageResult, InitReqResult, InitialTreeData, InsideFieldsPreferences, IsAny, JSONField, JSONFieldClient, JSONFieldClientComponent, JSONFieldClientProps, JSONFieldDescriptionClientComponent, JSONFieldDescriptionServerComponent, JSONFieldDiffClientComponent, JSONFieldDiffServerComponent, JSONFieldErrorClientComponent, JSONFieldErrorServerComponent, JSONFieldLabelClientComponent, JSONFieldLabelServerComponent, JSONFieldServerComponent, JSONFieldServerProps, JSONFieldValidation, Job, JobLog, JobTaskStatus, JobsConfig, JoinField, JoinFieldClient, JoinFieldClientComponent, JoinFieldClientProps, JoinFieldDescriptionClientComponent, JoinFieldDescriptionServerComponent, JoinFieldDiffClientComponent, JoinFieldDiffServerComponent, JoinFieldErrorClientComponent, JoinFieldErrorServerComponent, JoinFieldLabelClientComponent, JoinFieldLabelServerComponent, JoinFieldServerComponent, JoinFieldServerProps, JoinParams, JoinQuery, JsonArray, JsonObject, JsonValue, KVAdapter, KVAdapterResult, KVStoreValue, LabelFunction, Labels, LabelsClient, LanguageOptions, LinkAdapterProps, CollectionPreferences as ListPreferences, ListQuery, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlotSharedClientProps, ListViewSlots, LivePreviewConfig, LivePreviewURLType, Locale, LocalizationConfig, LocalizationConfigWithLabels, LocalizationConfigWithNoLabels, LoginResult, LoginWithUsernameOptions, MappedClientComponent, MappedEmptyComponent, MappedServerComponent, MaybePromise, MeOperationResult, MetaConfig, Migration, MigrationData, MigrationTemplateArgs, NamedGroupField, NamedGroupFieldClient, NamedTab, NavGroupPreferences, NavPreferences, NoResultsClientProps, NoResultsServerProps, NoResultsServerPropsOnly, NonPresentationalField, NonPresentationalFieldClient, NumberField, NumberFieldClient, NumberFieldClientComponent, NumberFieldClientProps, NumberFieldDescriptionClientComponent, NumberFieldDescriptionServerComponent, NumberFieldDiffClientComponent, NumberFieldDiffServerComponent, NumberFieldErrorClientComponent, NumberFieldErrorServerComponent, NumberFieldLabelClientComponent, NumberFieldLabelServerComponent, NumberFieldManyValidation, NumberFieldServerComponent, NumberFieldServerProps, NumberFieldSingleValidation, NumberFieldValidation, OGImageConfig, Operation, Operator, Option, OptionLabel, OptionObject, OrderableEndpointBody, PaginatedDistinctDocs, PaginatedDocs, Params, ParsedParams, PasswordFieldValidation, PathToQuery, Payload, PayloadClientComponentProps, PayloadClientReactComponent, PayloadComponent, PayloadComponentProps, EmailAdapter as PayloadEmailAdapter, PayloadHandler, PayloadLogger, PayloadReactComponent, PayloadRequest, PayloadRequestAPI, PayloadServerAction, PayloadServerComponentProps, PayloadServerReactComponent, PayloadTypes, PayloadTypesShape, Permission, Permissions, PickPreserveOptional, Plugin, PluginsMap, PointField, PointFieldClient, PointFieldClientComponent, PointFieldClientProps, PointFieldDescriptionClientComponent, PointFieldDescriptionServerComponent, PointFieldDiffClientComponent, PointFieldDiffServerComponent, PointFieldErrorClientComponent, PointFieldErrorServerComponent, PointFieldLabelClientComponent, PointFieldLabelServerComponent, PointFieldServerComponent, PointFieldServerProps, PointFieldValidation, PolymorphicRelationshipField, PolymorphicRelationshipFieldClient, PopulateType, PreferenceRequest, PreferenceUpdateRequest, PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, ProbedImageSize, PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, QueryDrafts, QueryDraftsArgs, QueryPreset, RadioField, RadioFieldClient, RadioFieldClientComponent, RadioFieldClientProps, RadioFieldDescriptionClientComponent, RadioFieldDescriptionServerComponent, RadioFieldDiffClientComponent, RadioFieldDiffServerComponent, RadioFieldErrorClientComponent, RadioFieldErrorServerComponent, RadioFieldLabelClientComponent, RadioFieldLabelServerComponent, RadioFieldServerComponent, RadioFieldServerProps, RadioFieldValidation, RawParams, RawPayloadComponent, RecentlyViewedItem, RecentlyViewedPreferences, RegisteredPlugins, RelatedDocumentsGrouped, RelationshipField, RelationshipFieldClient, RelationshipFieldClientComponent, RelationshipFieldClientProps, RelationshipFieldDescriptionClientComponent, RelationshipFieldDescriptionServerComponent, RelationshipFieldDiffClientComponent, RelationshipFieldDiffServerComponent, RelationshipFieldErrorClientComponent, RelationshipFieldErrorServerComponent, RelationshipFieldLabelClientComponent, RelationshipFieldLabelServerComponent, RelationshipFieldManyValidation, RelationshipFieldServerComponent, RelationshipFieldServerProps, RelationshipFieldSingleValidation, RelationshipFieldValidation, RelationshipValue, RenderConfigArgs, RenderDocumentVersionsProperties, RenderEntityConfigArgs, RenderFieldConfigArgs, RenderRootConfigArgs, RenderedField, ReplaceAny, RequestContext, RequiredDataFromCollection, RequiredDataFromCollectionSlug, ResolvedComponent, ResolvedFilterOptions, RichTextAdapter, RichTextAdapterProvider, RichTextField, RichTextFieldClient, RichTextFieldClientComponent, RichTextFieldClientProps, RichTextFieldDescriptionClientComponent, RichTextFieldDescriptionServerComponent, RichTextFieldDiffClientComponent, RichTextFieldDiffServerComponent, RichTextFieldErrorClientComponent, RichTextFieldErrorServerComponent, RichTextFieldLabelClientComponent, RichTextFieldLabelServerComponent, RichTextFieldServerComponent, RichTextFieldServerProps, RichTextFieldValidation, RichTextHooks, RollbackTransaction, RootLivePreviewConfig, RouterAdapterComponent, RouterAdapterRouter, Row, RowField, RowFieldClient, RowFieldClientComponent, RowFieldClientProps, RowFieldDescriptionClientComponent, RowFieldDescriptionServerComponent, RowFieldDiffClientComponent, RowFieldDiffServerComponent, RowFieldErrorClientComponent, RowFieldErrorServerComponent, RowFieldLabelClientComponent, RowFieldLabelServerComponent, RowFieldServerComponent, RowFieldServerProps, RowLabel, RowLabelComponent, RunInlineTaskFunction, RunJobAccess, RunJobAccessArgs, RunTaskFunction, RunTaskFunctions, RunningJob, SanitizeFieldArgs, SanitizedBlockPermissions, SanitizedBlocksPermissions, SanitizedCollectionConfig, SanitizedCollectionPermission, SanitizedCompoundIndex, SanitizedConfig, SanitizedDashboardConfig, SanitizedDocumentPermissions, SanitizedFieldPermissions, SanitizedFieldsPermissions, SanitizedGlobalConfig, SanitizedGlobalPermission, SanitizedHierarchyConfig, SanitizedHierarchyRelatedCollection, SanitizedJoins, SanitizedLabelProps, SanitizedLocalizationConfig, SanitizedPermissions, SanitizedUploadConfig, SaveButtonClientProps, SaveButtonServerProps, SaveButtonServerPropsOnly, SaveDraftButtonClientProps, SaveDraftButtonServerProps, SaveDraftButtonServerPropsOnly, SchedulePublish, SchedulePublishTaskInput, SchemaVariant, SelectExcludeType, SelectField, SelectFieldClient, SelectFieldClientComponent, SelectFieldClientProps, SelectFieldDescriptionClientComponent, SelectFieldDescriptionServerComponent, SelectFieldDiffClientComponent, SelectFieldDiffServerComponent, SelectFieldErrorClientComponent, SelectFieldErrorServerComponent, SelectFieldLabelClientComponent, SelectFieldLabelServerComponent, SelectFieldManyValidation, SelectFieldServerComponent, SelectFieldServerProps, SelectFieldSingleValidation, SelectFieldValidation, SelectFn, SelectFnArgs, SelectFnOperation, SelectIncludeType, SelectMode, SelectType, SendEmailOptions, ServerAdapter, ServerComponentProps, ServerFieldBase, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, ServerFunctionMode, ServerOnlyCollectionAdminProperties, ServerOnlyCollectionProperties, ServerOnlyFieldAdminProperties, ServerOnlyFieldProperties, ServerOnlyGlobalAdminProperties, ServerOnlyGlobalProperties, ServerOnlyLivePreviewProperties, ServerOnlyUploadProperties, ServerProps, ServerPropsFromView, DocumentViewServerProps as ServerSideEditViewProps, SharedAdminComponents, SharedEditViewComponents, SharedEntityViews, SharedProps, SharpDependency, SidebarTab, SidebarTabClientProps, SidebarTabServerProps, SidebarTabServerPropsOnly, SingleRelationshipField, SingleRelationshipFieldClient, SingleTaskStatus, SlugField, SlugFieldClientProps, SlugifyServerFunctionArgs, Sort, StaticDescription, StaticLabel, StorageAdapter, StringKeyOf, Tab, TabAsField, TabAsFieldClient, TabsField, TabsFieldClient, TabsFieldClientComponent, TabsFieldClientProps, TabsFieldDescriptionClientComponent, TabsFieldDescriptionServerComponent, TabsFieldDiffClientComponent, TabsFieldDiffServerComponent, TabsFieldErrorClientComponent, TabsFieldErrorServerComponent, TabsFieldLabelClientComponent, TabsFieldLabelServerComponent, TabsFieldServerComponent, TabsFieldServerProps, TabsPreferences, TagsConfig, TaskConfig, TaskHandler, TaskHandlerArgs, TaskHandlerResult, TaskHandlerResults, TaskInput, TaskOutput, TaskType, TextField, TextFieldClient, TextFieldClientComponent, TextFieldClientProps, TextFieldDescriptionClientComponent, TextFieldDescriptionServerComponent, TextFieldDiffClientComponent, TextFieldDiffServerComponent, TextFieldErrorClientComponent, TextFieldErrorServerComponent, TextFieldLabelClientComponent, TextFieldLabelServerComponent, TextFieldManyValidation, TextFieldServerComponent, TextFieldServerProps, TextFieldSingleValidation, TextFieldValidation, TextareaField, TextareaFieldClient, TextareaFieldClientComponent, TextareaFieldClientProps, TextareaFieldDescriptionClientComponent, TextareaFieldDescriptionServerComponent, TextareaFieldDiffClientComponent, TextareaFieldDiffServerComponent, TextareaFieldErrorClientComponent, TextareaFieldErrorServerComponent, TextareaFieldLabelClientComponent, TextareaFieldLabelServerComponent, TextareaFieldServerComponent, TextareaFieldServerProps, TextareaFieldValidation, TimePickerProps, Timezone, TimezonesConfig, Transaction, TransformCollectionWithSelect, TransformDataWithSelect, TransformGlobalWithSelect, TraverseFieldsCallback, TypeWithID, TypeWithTimestamps, TypeWithVersion, TypedAuthOperations, TypedBlock, TypedCollection, TypedCollectionJoins, TypedCollectionSelect, TypedFallbackLocale, TypedGlobal, TypedGlobalSelect, TypedJobs, TypedLocale, TypedUploadCollection, TypedWidget, UIField, UIFieldClient, UIFieldClientComponent, UIFieldClientProps, UIFieldDiffClientComponent, UIFieldDiffServerComponent, UIFieldServerComponent, UIFieldServerProps, UnauthenticatedClientConfig, UnnamedGroupField, UnnamedGroupFieldClient, UnnamedTab, UnpublishButtonClientProps, UnpublishButtonServerProps, UnpublishButtonServerPropsOnly, UntypedPayloadTypes, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateJobs, UpdateJobsArgs, UpdateMany, UpdateManyArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, UploadCollectionSlug, UploadConfig, UploadEdits, UploadField, UploadFieldClient, UploadFieldClientComponent, UploadFieldClientProps, UploadFieldDescriptionClientComponent, UploadFieldDescriptionServerComponent, UploadFieldDiffClientComponent, UploadFieldDiffServerComponent, UploadFieldErrorClientComponent, UploadFieldErrorServerComponent, UploadFieldLabelClientComponent, UploadFieldLabelServerComponent, UploadFieldManyValidation, UploadFieldServerComponent, UploadFieldServerProps, UploadFieldSingleValidation, UploadFieldValidation, UploadFilePreviewClientProps, Upsert, UpsertArgs, User, UserMenuSettingsGroup, UserMenuSettingsItem, UserSession, UsernameFieldValidation, Validate, ValidateOptions, ValidationFieldError, ValueWithRelation, VerifyConfig, VersionField, VersionOperations, VersionTab, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, Where, WhereField, Widget, WidgetInstance, WidgetServerProps, WidgetSlug, WidgetWidth, WithSelectFn, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };
|