payload 4.0.0-internal.b6f3b9a → 4.0.0-internal.b8a92d2
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/bin.js +14 -10
- package/dist/admin/RichText.d.ts +1 -1
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- package/dist/admin/adapters/devReload.d.ts +13 -0
- package/dist/admin/adapters/devReload.d.ts.map +1 -1
- package/dist/admin/adapters/devReload.js +14 -1
- package/dist/admin/adapters/devReload.js.map +1 -1
- package/dist/admin/forms/Field.d.ts +2 -0
- 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 +2 -0
- package/dist/admin/forms/Form.d.ts.map +1 -1
- package/dist/admin/forms/Form.js.map +1 -1
- package/dist/admin/functions/index.d.ts +4 -2
- package/dist/admin/functions/index.d.ts.map +1 -1
- package/dist/admin/functions/index.js.map +1 -1
- package/dist/admin/types.d.ts +1 -1
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/admin/views/dashboard.d.ts +1 -1
- package/dist/admin/views/dashboard.d.ts.map +1 -1
- package/dist/admin/views/dashboard.js.map +1 -1
- package/dist/admin/views/index.d.ts +2 -2
- package/dist/admin/views/index.d.ts.map +1 -1
- package/dist/admin/views/index.js.map +1 -1
- package/dist/auth/applyUserReadAccess.d.ts +13 -0
- package/dist/auth/applyUserReadAccess.d.ts.map +1 -0
- package/dist/auth/applyUserReadAccess.js +41 -0
- package/dist/auth/applyUserReadAccess.js.map +1 -0
- package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.d.ts +4 -0
- package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.d.ts.map +1 -0
- package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.js +20 -0
- package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.js.map +1 -0
- package/dist/auth/baseFields/apiKey/encryptAPIKey.d.ts +4 -0
- package/dist/auth/baseFields/apiKey/encryptAPIKey.d.ts.map +1 -0
- package/dist/auth/baseFields/apiKey/encryptAPIKey.js +11 -0
- package/dist/auth/baseFields/apiKey/encryptAPIKey.js.map +1 -0
- package/dist/auth/baseFields/apiKey/getAPIKeyLast4.d.ts +3 -0
- package/dist/auth/baseFields/apiKey/getAPIKeyLast4.d.ts.map +1 -0
- package/dist/auth/baseFields/apiKey/getAPIKeyLast4.js +5 -0
- package/dist/auth/baseFields/apiKey/getAPIKeyLast4.js.map +1 -0
- package/dist/auth/baseFields/apiKey/omitAPIKey.d.ts +5 -0
- package/dist/auth/baseFields/apiKey/omitAPIKey.d.ts.map +1 -0
- package/dist/auth/baseFields/apiKey/omitAPIKey.js +11 -0
- package/dist/auth/baseFields/apiKey/omitAPIKey.js.map +1 -0
- package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.d.ts +4 -0
- package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.d.ts.map +1 -0
- package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.js +5 -0
- package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.js.map +1 -0
- package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.d.ts +4 -0
- package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.d.ts.map +1 -0
- package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.js +5 -0
- package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.js.map +1 -0
- package/dist/auth/baseFields/apiKey/setAPIKeyIndex.d.ts +4 -0
- package/dist/auth/baseFields/apiKey/setAPIKeyIndex.d.ts.map +1 -0
- package/dist/auth/baseFields/apiKey/setAPIKeyIndex.js +12 -0
- package/dist/auth/baseFields/apiKey/setAPIKeyIndex.js.map +1 -0
- package/dist/auth/baseFields/apiKey/setKeyLast4.d.ts +4 -0
- package/dist/auth/baseFields/apiKey/setKeyLast4.d.ts.map +1 -0
- package/dist/auth/baseFields/apiKey/setKeyLast4.js +12 -0
- package/dist/auth/baseFields/apiKey/setKeyLast4.js.map +1 -0
- package/dist/auth/baseFields/apiKey.d.ts +6 -6
- package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
- package/dist/auth/baseFields/apiKey.js +88 -57
- package/dist/auth/baseFields/apiKey.js.map +1 -1
- package/dist/auth/baseFields/auth.d.ts +1 -0
- package/dist/auth/baseFields/auth.d.ts.map +1 -1
- package/dist/auth/baseFields/auth.js +9 -0
- package/dist/auth/baseFields/auth.js.map +1 -1
- package/dist/auth/crypto.d.ts +73 -2
- package/dist/auth/crypto.d.ts.map +1 -1
- package/dist/auth/crypto.js +90 -13
- package/dist/auth/crypto.js.map +1 -1
- package/dist/auth/defaultUnlockAccess.d.ts +3 -0
- package/dist/auth/defaultUnlockAccess.d.ts.map +1 -0
- package/dist/auth/defaultUnlockAccess.js +8 -0
- package/dist/auth/defaultUnlockAccess.js.map +1 -0
- package/dist/auth/endpoints/index.d.ts +1 -0
- package/dist/auth/endpoints/index.d.ts.map +1 -1
- package/dist/auth/endpoints/index.js +8 -0
- package/dist/auth/endpoints/index.js.map +1 -1
- package/dist/auth/endpoints/refresh.d.ts.map +1 -1
- package/dist/auth/endpoints/refresh.js +4 -6
- package/dist/auth/endpoints/refresh.js.map +1 -1
- package/dist/auth/endpoints/revealAPIKey.d.ts +7 -0
- package/dist/auth/endpoints/revealAPIKey.d.ts.map +1 -0
- package/dist/auth/endpoints/revealAPIKey.js +122 -0
- package/dist/auth/endpoints/revealAPIKey.js.map +1 -0
- package/dist/auth/executeAccess.d.ts +2 -1
- package/dist/auth/executeAccess.d.ts.map +1 -1
- package/dist/auth/executeAccess.js +2 -1
- package/dist/auth/executeAccess.js.map +1 -1
- package/dist/auth/getAccessResults.js +1 -0
- package/dist/auth/getAccessResults.js.map +1 -1
- package/dist/auth/getAuthFields.d.ts +1 -1
- package/dist/auth/getAuthFields.d.ts.map +1 -1
- package/dist/auth/getAuthFields.js +7 -4
- package/dist/auth/getAuthFields.js.map +1 -1
- package/dist/auth/getFieldsToSign.d.ts.map +1 -1
- package/dist/auth/getFieldsToSign.js +20 -10
- package/dist/auth/getFieldsToSign.js.map +1 -1
- package/dist/auth/getLoginOptions.js.map +1 -1
- package/dist/auth/jwt.d.ts.map +1 -1
- package/dist/auth/jwt.js +2 -0
- package/dist/auth/jwt.js.map +1 -1
- package/dist/auth/jwtAuth.d.ts +9 -0
- package/dist/auth/jwtAuth.d.ts.map +1 -0
- package/dist/auth/jwtAuth.js +8 -0
- package/dist/auth/jwtAuth.js.map +1 -0
- package/dist/auth/operations/access.d.ts.map +1 -1
- package/dist/auth/operations/access.js +3 -9
- package/dist/auth/operations/access.js.map +1 -1
- package/dist/auth/operations/auth.d.ts.map +1 -1
- package/dist/auth/operations/auth.js +16 -21
- package/dist/auth/operations/auth.js.map +1 -1
- package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
- package/dist/auth/operations/forgotPassword.js +96 -14
- package/dist/auth/operations/forgotPassword.js.map +1 -1
- package/dist/auth/operations/local/auth.js +3 -1
- package/dist/auth/operations/local/auth.js.map +1 -1
- package/dist/auth/operations/login.d.ts.map +1 -1
- package/dist/auth/operations/login.js +48 -26
- package/dist/auth/operations/login.js.map +1 -1
- package/dist/auth/operations/me.d.ts +0 -7
- package/dist/auth/operations/me.d.ts.map +1 -1
- package/dist/auth/operations/me.js +0 -6
- package/dist/auth/operations/me.js.map +1 -1
- package/dist/auth/operations/refresh.d.ts +0 -7
- package/dist/auth/operations/refresh.d.ts.map +1 -1
- package/dist/auth/operations/refresh.js +32 -15
- package/dist/auth/operations/refresh.js.map +1 -1
- package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
- package/dist/auth/operations/registerFirstUser.js +3 -4
- package/dist/auth/operations/registerFirstUser.js.map +1 -1
- package/dist/auth/operations/resetPassword.d.ts.map +1 -1
- package/dist/auth/operations/resetPassword.js +31 -22
- package/dist/auth/operations/resetPassword.js.map +1 -1
- package/dist/auth/operations/unlock.d.ts.map +1 -1
- package/dist/auth/operations/unlock.js +1 -0
- package/dist/auth/operations/unlock.js.map +1 -1
- package/dist/auth/rotateSecret.d.ts +51 -0
- package/dist/auth/rotateSecret.d.ts.map +1 -0
- package/dist/auth/rotateSecret.js +131 -0
- package/dist/auth/rotateSecret.js.map +1 -0
- package/dist/auth/strategies/apiKey.d.ts.map +1 -1
- package/dist/auth/strategies/apiKey.js +42 -4
- package/dist/auth/strategies/apiKey.js.map +1 -1
- package/dist/auth/strategies/jwt.d.ts.map +1 -1
- package/dist/auth/strategies/jwt.js +82 -11
- package/dist/auth/strategies/jwt.js.map +1 -1
- package/dist/auth/strategies/local/authenticate.d.ts +5 -1
- package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
- package/dist/auth/strategies/local/authenticate.js +8 -3
- package/dist/auth/strategies/local/authenticate.js.map +1 -1
- package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts +9 -1
- package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
- package/dist/auth/strategies/local/generatePasswordSaltHash.js +61 -34
- package/dist/auth/strategies/local/generatePasswordSaltHash.js.map +1 -1
- package/dist/auth/types.d.ts +26 -18
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/types.js.map +1 -1
- package/dist/auth/withBaseAccess.d.ts +22 -0
- package/dist/auth/withBaseAccess.d.ts.map +1 -0
- package/dist/auth/withBaseAccess.js +61 -0
- package/dist/auth/withBaseAccess.js.map +1 -0
- package/dist/{bin → cli/commands/build}/build.d.ts +8 -13
- package/dist/cli/commands/build/build.d.ts.map +1 -0
- package/dist/{bin → cli/commands/build}/build.js +26 -27
- package/dist/cli/commands/build/build.js.map +1 -0
- package/dist/cli/commands/build/index.d.ts +2 -0
- package/dist/cli/commands/build/index.d.ts.map +1 -0
- package/dist/cli/commands/build/index.js +26 -0
- package/dist/cli/commands/build/index.js.map +1 -0
- package/dist/cli/commands/collections/countDocuments.d.ts +2 -0
- package/dist/cli/commands/collections/countDocuments.d.ts.map +1 -0
- package/dist/cli/commands/collections/countDocuments.js +37 -0
- package/dist/cli/commands/collections/countDocuments.js.map +1 -0
- package/dist/cli/commands/collections/countVersions.d.ts +2 -0
- package/dist/cli/commands/collections/countVersions.d.ts.map +1 -0
- package/dist/cli/commands/collections/countVersions.js +36 -0
- package/dist/cli/commands/collections/countVersions.js.map +1 -0
- package/dist/cli/commands/collections/createDocuments.d.ts +2 -0
- package/dist/cli/commands/collections/createDocuments.d.ts.map +1 -0
- package/dist/cli/commands/collections/createDocuments.js +130 -0
- package/dist/cli/commands/collections/createDocuments.js.map +1 -0
- package/dist/cli/commands/collections/deleteDocuments.d.ts +2 -0
- package/dist/cli/commands/collections/deleteDocuments.d.ts.map +1 -0
- package/dist/cli/commands/collections/deleteDocuments.js +64 -0
- package/dist/cli/commands/collections/deleteDocuments.js.map +1 -0
- package/dist/cli/commands/collections/duplicateDocument.d.ts +2 -0
- package/dist/cli/commands/collections/duplicateDocument.d.ts.map +1 -0
- package/dist/cli/commands/collections/duplicateDocument.js +107 -0
- package/dist/cli/commands/collections/duplicateDocument.js.map +1 -0
- package/dist/cli/commands/collections/findDistinct.d.ts +2 -0
- package/dist/cli/commands/collections/findDistinct.d.ts.map +1 -0
- package/dist/cli/commands/collections/findDistinct.js +52 -0
- package/dist/cli/commands/collections/findDistinct.js.map +1 -0
- package/dist/cli/commands/collections/findDocuments.d.ts +2 -0
- package/dist/cli/commands/collections/findDocuments.d.ts.map +1 -0
- package/dist/cli/commands/collections/findDocuments.js +79 -0
- package/dist/cli/commands/collections/findDocuments.js.map +1 -0
- package/dist/cli/commands/collections/findVersionByID.d.ts +2 -0
- package/dist/cli/commands/collections/findVersionByID.d.ts.map +1 -0
- package/dist/cli/commands/collections/findVersionByID.js +48 -0
- package/dist/cli/commands/collections/findVersionByID.js.map +1 -0
- package/dist/cli/commands/collections/findVersions.d.ts +2 -0
- package/dist/cli/commands/collections/findVersions.d.ts.map +1 -0
- package/dist/cli/commands/collections/findVersions.js +57 -0
- package/dist/cli/commands/collections/findVersions.js.map +1 -0
- package/dist/cli/commands/collections/getCollectionSchema.d.ts +2 -0
- package/dist/cli/commands/collections/getCollectionSchema.d.ts.map +1 -0
- package/dist/cli/commands/collections/getCollectionSchema.js +49 -0
- package/dist/cli/commands/collections/getCollectionSchema.js.map +1 -0
- package/dist/cli/commands/collections/restoreVersion.d.ts +2 -0
- package/dist/cli/commands/collections/restoreVersion.d.ts.map +1 -0
- package/dist/cli/commands/collections/restoreVersion.js +47 -0
- package/dist/cli/commands/collections/restoreVersion.js.map +1 -0
- package/dist/cli/commands/collections/updateDocument.d.ts +2 -0
- package/dist/cli/commands/collections/updateDocument.d.ts.map +1 -0
- package/dist/cli/commands/collections/updateDocument.js +190 -0
- package/dist/cli/commands/collections/updateDocument.js.map +1 -0
- package/dist/cli/commands/data/input.d.ts +28 -0
- package/dist/cli/commands/data/input.d.ts.map +1 -0
- package/dist/cli/commands/data/input.js +76 -0
- package/dist/cli/commands/data/input.js.map +1 -0
- package/dist/cli/commands/data/utilities.d.ts +65 -0
- package/dist/cli/commands/data/utilities.d.ts.map +1 -0
- package/dist/cli/commands/data/utilities.js +67 -0
- package/dist/cli/commands/data/utilities.js.map +1 -0
- package/dist/cli/commands/generateDBSchema.d.ts +2 -0
- package/dist/cli/commands/generateDBSchema.d.ts.map +1 -0
- package/dist/cli/commands/generateDBSchema.js +29 -0
- package/dist/cli/commands/generateDBSchema.js.map +1 -0
- package/dist/cli/commands/generateImportMap/frameworkConventions.d.ts.map +1 -0
- package/dist/cli/commands/generateImportMap/frameworkConventions.js.map +1 -0
- package/dist/{bin/generateImportMap/index.d.ts → cli/commands/generateImportMap/generateImportMap.d.ts} +8 -4
- package/dist/cli/commands/generateImportMap/generateImportMap.d.ts.map +1 -0
- package/dist/{bin/generateImportMap/index.js → cli/commands/generateImportMap/generateImportMap.js} +9 -4
- package/dist/cli/commands/generateImportMap/generateImportMap.js.map +1 -0
- package/dist/cli/commands/generateImportMap/index.d.ts +2 -0
- package/dist/cli/commands/generateImportMap/index.d.ts.map +1 -0
- package/dist/cli/commands/generateImportMap/index.js +18 -0
- package/dist/cli/commands/generateImportMap/index.js.map +1 -0
- package/dist/{bin → cli/commands}/generateImportMap/iterateCollections.d.ts +3 -3
- package/dist/cli/commands/generateImportMap/iterateCollections.d.ts.map +1 -0
- package/dist/cli/commands/generateImportMap/iterateCollections.js.map +1 -0
- package/dist/{bin → cli/commands}/generateImportMap/iterateConfig.d.ts +2 -2
- package/dist/cli/commands/generateImportMap/iterateConfig.d.ts.map +1 -0
- package/dist/{bin → cli/commands}/generateImportMap/iterateConfig.js +1 -1
- package/dist/cli/commands/generateImportMap/iterateConfig.js.map +1 -0
- package/dist/{bin → cli/commands}/generateImportMap/iterateFields.d.ts +3 -3
- package/dist/cli/commands/generateImportMap/iterateFields.d.ts.map +1 -0
- package/dist/cli/commands/generateImportMap/iterateFields.js.map +1 -0
- package/dist/{bin → cli/commands}/generateImportMap/iterateGlobals.d.ts +3 -3
- package/dist/cli/commands/generateImportMap/iterateGlobals.d.ts.map +1 -0
- package/dist/cli/commands/generateImportMap/iterateGlobals.js.map +1 -0
- package/dist/{bin → cli/commands}/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts +2 -2
- package/dist/cli/commands/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts.map +1 -0
- package/dist/cli/commands/generateImportMap/utilities/addPayloadComponentToImportMap.js.map +1 -0
- package/dist/{bin → cli/commands}/generateImportMap/utilities/getFromImportMap.d.ts +2 -2
- package/dist/cli/commands/generateImportMap/utilities/getFromImportMap.d.ts.map +1 -0
- package/dist/cli/commands/generateImportMap/utilities/getFromImportMap.js.map +1 -0
- package/dist/cli/commands/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts.map +1 -0
- package/dist/cli/commands/generateImportMap/utilities/getImportMapToBaseDirPath.js.map +1 -0
- package/dist/{bin → cli/commands}/generateImportMap/utilities/parsePayloadComponent.d.ts +1 -1
- package/dist/cli/commands/generateImportMap/utilities/parsePayloadComponent.d.ts.map +1 -0
- package/dist/cli/commands/generateImportMap/utilities/parsePayloadComponent.js.map +1 -0
- package/dist/cli/commands/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +1 -0
- package/dist/{bin → cli/commands}/generateImportMap/utilities/resolveImportMapFilePath.js +1 -1
- package/dist/cli/commands/generateImportMap/utilities/resolveImportMapFilePath.js.map +1 -0
- package/dist/cli/commands/generateTypes.d.ts +12 -0
- package/dist/cli/commands/generateTypes.d.ts.map +1 -0
- package/dist/{bin → cli/commands}/generateTypes.js +33 -7
- package/dist/cli/commands/generateTypes.js.map +1 -0
- package/dist/cli/commands/getConfigInfo.d.ts +2 -0
- package/dist/cli/commands/getConfigInfo.d.ts.map +1 -0
- package/dist/cli/commands/getConfigInfo.js +23 -0
- package/dist/cli/commands/getConfigInfo.js.map +1 -0
- package/dist/cli/commands/globals/countGlobalVersions.d.ts +2 -0
- package/dist/cli/commands/globals/countGlobalVersions.d.ts.map +1 -0
- package/dist/cli/commands/globals/countGlobalVersions.js +36 -0
- package/dist/cli/commands/globals/countGlobalVersions.js.map +1 -0
- package/dist/cli/commands/globals/findGlobal.d.ts +2 -0
- package/dist/cli/commands/globals/findGlobal.d.ts.map +1 -0
- package/dist/cli/commands/globals/findGlobal.js +42 -0
- package/dist/cli/commands/globals/findGlobal.js.map +1 -0
- package/dist/cli/commands/globals/findGlobalVersionByID.d.ts +2 -0
- package/dist/cli/commands/globals/findGlobalVersionByID.d.ts.map +1 -0
- package/dist/cli/commands/globals/findGlobalVersionByID.js +46 -0
- package/dist/cli/commands/globals/findGlobalVersionByID.js.map +1 -0
- package/dist/cli/commands/globals/findGlobalVersions.d.ts +2 -0
- package/dist/cli/commands/globals/findGlobalVersions.d.ts.map +1 -0
- package/dist/cli/commands/globals/findGlobalVersions.js +55 -0
- package/dist/cli/commands/globals/findGlobalVersions.js.map +1 -0
- package/dist/cli/commands/globals/getGlobalSchema.d.ts +2 -0
- package/dist/cli/commands/globals/getGlobalSchema.d.ts.map +1 -0
- package/dist/cli/commands/globals/getGlobalSchema.js +34 -0
- package/dist/cli/commands/globals/getGlobalSchema.js.map +1 -0
- package/dist/cli/commands/globals/restoreGlobalVersion.d.ts +2 -0
- package/dist/cli/commands/globals/restoreGlobalVersion.d.ts.map +1 -0
- package/dist/cli/commands/globals/restoreGlobalVersion.js +46 -0
- package/dist/cli/commands/globals/restoreGlobalVersion.js.map +1 -0
- package/dist/cli/commands/globals/updateGlobal.d.ts +2 -0
- package/dist/cli/commands/globals/updateGlobal.d.ts.map +1 -0
- package/dist/cli/commands/globals/updateGlobal.js +93 -0
- package/dist/cli/commands/globals/updateGlobal.js.map +1 -0
- package/dist/cli/commands/help.d.ts +2 -0
- package/dist/cli/commands/help.d.ts.map +1 -0
- package/dist/cli/commands/help.js +42 -0
- package/dist/cli/commands/help.js.map +1 -0
- package/dist/cli/commands/info.d.ts +2 -0
- package/dist/cli/commands/info.d.ts.map +1 -0
- package/dist/cli/commands/info.js +78 -0
- package/dist/cli/commands/info.js.map +1 -0
- package/dist/cli/commands/jobs/handleSchedules.d.ts +2 -0
- package/dist/cli/commands/jobs/handleSchedules.d.ts.map +1 -0
- package/dist/cli/commands/jobs/handleSchedules.js +17 -0
- package/dist/cli/commands/jobs/handleSchedules.js.map +1 -0
- package/dist/cli/commands/jobs/run.d.ts +2 -0
- package/dist/cli/commands/jobs/run.d.ts.map +1 -0
- package/dist/cli/commands/jobs/run.js +29 -0
- package/dist/cli/commands/jobs/run.js.map +1 -0
- package/dist/cli/commands/migrate/create.d.ts +2 -0
- package/dist/cli/commands/migrate/create.d.ts.map +1 -0
- package/dist/cli/commands/migrate/create.js +44 -0
- package/dist/cli/commands/migrate/create.js.map +1 -0
- package/dist/cli/commands/migrate/down.d.ts +2 -0
- package/dist/cli/commands/migrate/down.d.ts.map +1 -0
- package/dist/cli/commands/migrate/down.js +22 -0
- package/dist/cli/commands/migrate/down.js.map +1 -0
- package/dist/cli/commands/migrate/fresh.d.ts +2 -0
- package/dist/cli/commands/migrate/fresh.d.ts.map +1 -0
- package/dist/cli/commands/migrate/fresh.js +28 -0
- package/dist/cli/commands/migrate/fresh.js.map +1 -0
- package/dist/cli/commands/migrate/initialize.d.ts +11 -0
- package/dist/cli/commands/migrate/initialize.d.ts.map +1 -0
- package/dist/cli/commands/migrate/initialize.js +17 -0
- package/dist/cli/commands/migrate/initialize.js.map +1 -0
- package/dist/cli/commands/migrate/refresh.d.ts +2 -0
- package/dist/cli/commands/migrate/refresh.d.ts.map +1 -0
- package/dist/cli/commands/migrate/refresh.js +22 -0
- package/dist/cli/commands/migrate/refresh.js.map +1 -0
- package/dist/cli/commands/migrate/reset.d.ts +2 -0
- package/dist/cli/commands/migrate/reset.d.ts.map +1 -0
- package/dist/cli/commands/migrate/reset.js +22 -0
- package/dist/cli/commands/migrate/reset.js.map +1 -0
- package/dist/cli/commands/migrate/run.d.ts +2 -0
- package/dist/cli/commands/migrate/run.d.ts.map +1 -0
- package/dist/cli/commands/migrate/run.js +28 -0
- package/dist/cli/commands/migrate/run.js.map +1 -0
- package/dist/cli/commands/migrate/status.d.ts +2 -0
- package/dist/cli/commands/migrate/status.d.ts.map +1 -0
- package/dist/cli/commands/migrate/status.js +22 -0
- package/dist/cli/commands/migrate/status.js.map +1 -0
- package/dist/cli/commands/run.d.ts +2 -0
- package/dist/cli/commands/run.d.ts.map +1 -0
- package/dist/cli/commands/run.js +45 -0
- package/dist/cli/commands/run.js.map +1 -0
- package/dist/cli/defineCLICommand.d.ts +32 -0
- package/dist/cli/defineCLICommand.d.ts.map +1 -0
- package/dist/cli/defineCLICommand.js +26 -0
- package/dist/cli/defineCLICommand.js.map +1 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +95 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/program/createHelp.d.ts +8 -0
- package/dist/cli/program/createHelp.d.ts.map +1 -0
- package/dist/cli/program/createHelp.js +26 -0
- package/dist/cli/program/createHelp.js.map +1 -0
- package/dist/cli/program/loadCommands.d.ts +12 -0
- package/dist/cli/program/loadCommands.d.ts.map +1 -0
- package/dist/cli/program/loadCommands.js +62 -0
- package/dist/cli/program/loadCommands.js.map +1 -0
- package/dist/cli/program/normalizeHelpArguments.d.ts +12 -0
- package/dist/cli/program/normalizeHelpArguments.d.ts.map +1 -0
- package/dist/cli/program/normalizeHelpArguments.js +34 -0
- package/dist/cli/program/normalizeHelpArguments.js.map +1 -0
- package/dist/cli/program/registerCommand.d.ts +10 -0
- package/dist/cli/program/registerCommand.d.ts.map +1 -0
- package/dist/cli/program/registerCommand.js +185 -0
- package/dist/cli/program/registerCommand.js.map +1 -0
- package/dist/cli/runtime/createRuntime.d.ts +9 -0
- package/dist/cli/runtime/createRuntime.d.ts.map +1 -0
- package/dist/cli/runtime/createRuntime.js +81 -0
- package/dist/cli/runtime/createRuntime.js.map +1 -0
- package/dist/cli/runtime/getCommandInput.d.ts +17 -0
- package/dist/cli/runtime/getCommandInput.d.ts.map +1 -0
- package/dist/cli/runtime/getCommandInput.js +86 -0
- package/dist/cli/runtime/getCommandInput.js.map +1 -0
- package/dist/cli/runtime/invokeCommand.d.ts +23 -0
- package/dist/cli/runtime/invokeCommand.d.ts.map +1 -0
- package/dist/cli/runtime/invokeCommand.js +107 -0
- package/dist/cli/runtime/invokeCommand.js.map +1 -0
- package/dist/cli/runtime/loadEnv.d.ts.map +1 -0
- package/dist/{bin → cli/runtime}/loadEnv.js +1 -1
- package/dist/cli/runtime/loadEnv.js.map +1 -0
- package/dist/cli/runtime/output.d.ts +50 -0
- package/dist/cli/runtime/output.d.ts.map +1 -0
- package/dist/cli/runtime/output.js +125 -0
- package/dist/cli/runtime/output.js.map +1 -0
- package/dist/cli/runtime/redirectOutputToStderr.d.ts +8 -0
- package/dist/cli/runtime/redirectOutputToStderr.d.ts.map +1 -0
- package/dist/cli/runtime/redirectOutputToStderr.js +31 -0
- package/dist/cli/runtime/redirectOutputToStderr.js.map +1 -0
- package/dist/collections/config/client.d.ts +2 -1
- package/dist/collections/config/client.d.ts.map +1 -1
- package/dist/collections/config/client.js +3 -0
- package/dist/collections/config/client.js.map +1 -1
- package/dist/collections/config/defaults.d.ts +6 -4
- package/dist/collections/config/defaults.d.ts.map +1 -1
- package/dist/collections/config/defaults.js +48 -33
- package/dist/collections/config/defaults.js.map +1 -1
- package/dist/collections/config/sanitize.d.ts +4 -8
- package/dist/collections/config/sanitize.d.ts.map +1 -1
- package/dist/collections/config/sanitize.js +52 -27
- package/dist/collections/config/sanitize.js.map +1 -1
- package/dist/collections/config/types.d.ts +57 -48
- package/dist/collections/config/types.d.ts.map +1 -1
- package/dist/collections/config/types.js.map +1 -1
- package/dist/collections/endpoints/index.d.ts +1 -0
- package/dist/collections/endpoints/index.d.ts.map +1 -1
- package/dist/collections/endpoints/index.js +6 -5
- package/dist/collections/endpoints/index.js.map +1 -1
- package/dist/collections/operations/count.d.ts.map +1 -1
- package/dist/collections/operations/count.js +65 -70
- package/dist/collections/operations/count.js.map +1 -1
- package/dist/collections/operations/countVersions.d.ts.map +1 -1
- package/dist/collections/operations/countVersions.js +61 -66
- package/dist/collections/operations/countVersions.js.map +1 -1
- package/dist/collections/operations/create.d.ts.map +1 -1
- package/dist/collections/operations/create.js +134 -13
- package/dist/collections/operations/create.js.map +1 -1
- package/dist/collections/operations/delete.d.ts.map +1 -1
- package/dist/collections/operations/delete.js +215 -129
- package/dist/collections/operations/delete.js.map +1 -1
- package/dist/collections/operations/deleteByID.d.ts.map +1 -1
- package/dist/collections/operations/deleteByID.js +14 -13
- package/dist/collections/operations/deleteByID.js.map +1 -1
- package/dist/collections/operations/docAccess.d.ts.map +1 -1
- package/dist/collections/operations/docAccess.js +19 -25
- package/dist/collections/operations/docAccess.js.map +1 -1
- package/dist/collections/operations/find.d.ts.map +1 -1
- package/dist/collections/operations/find.js +248 -246
- package/dist/collections/operations/find.js.map +1 -1
- package/dist/collections/operations/findByID.d.ts.map +1 -1
- package/dist/collections/operations/findByID.js +215 -220
- package/dist/collections/operations/findByID.js.map +1 -1
- package/dist/collections/operations/findDistinct.d.ts.map +1 -1
- package/dist/collections/operations/findDistinct.js +235 -154
- package/dist/collections/operations/findDistinct.js.map +1 -1
- package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
- package/dist/collections/operations/findVersionByID.js +145 -128
- package/dist/collections/operations/findVersionByID.js.map +1 -1
- package/dist/collections/operations/findVersions.d.ts.map +1 -1
- package/dist/collections/operations/findVersions.js +152 -149
- package/dist/collections/operations/findVersions.js.map +1 -1
- package/dist/collections/operations/inputSchemas.d.ts +877 -0
- package/dist/collections/operations/inputSchemas.d.ts.map +1 -0
- package/dist/collections/operations/inputSchemas.js +217 -0
- package/dist/collections/operations/inputSchemas.js.map +1 -0
- package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
- package/dist/collections/operations/restoreVersion.js +41 -9
- package/dist/collections/operations/restoreVersion.js.map +1 -1
- package/dist/collections/operations/update.d.ts.map +1 -1
- package/dist/collections/operations/update.js +148 -24
- package/dist/collections/operations/update.js.map +1 -1
- package/dist/collections/operations/updateByID.d.ts.map +1 -1
- package/dist/collections/operations/updateByID.js +79 -2
- package/dist/collections/operations/updateByID.js.map +1 -1
- package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.d.ts +15 -0
- package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.d.ts.map +1 -0
- package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.js +54 -0
- package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.js.map +1 -0
- package/dist/collections/operations/utilities/update.d.ts.map +1 -1
- package/dist/collections/operations/utilities/update.js +83 -19
- package/dist/collections/operations/utilities/update.js.map +1 -1
- package/dist/config/build.js +1 -1
- package/dist/config/build.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 +2 -4
- package/dist/config/client.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +90 -40
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/orderable/index.d.ts +1 -1
- package/dist/config/orderable/index.d.ts.map +1 -1
- package/dist/config/orderable/index.js +70 -16
- package/dist/config/orderable/index.js.map +1 -1
- package/dist/config/sanitize.d.ts +1 -1
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/config/sanitize.js +67 -34
- package/dist/config/sanitize.js.map +1 -1
- package/dist/config/types.d.ts +505 -430
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js.map +1 -1
- package/dist/database/getLocalizedPaths.d.ts +2 -1
- package/dist/database/getLocalizedPaths.d.ts.map +1 -1
- package/dist/database/getLocalizedPaths.js +12 -3
- package/dist/database/getLocalizedPaths.js.map +1 -1
- package/dist/database/isNestedRelationshipQuery.d.ts +14 -0
- package/dist/database/isNestedRelationshipQuery.d.ts.map +1 -0
- package/dist/database/isNestedRelationshipQuery.js +19 -0
- package/dist/database/isNestedRelationshipQuery.js.map +1 -0
- package/dist/database/migrations/createMigration.d.ts.map +1 -1
- package/dist/database/migrations/createMigration.js +4 -0
- package/dist/database/migrations/createMigration.js.map +1 -1
- package/dist/database/migrations/getPredefinedMigration.js +2 -2
- package/dist/database/migrations/getPredefinedMigration.js.map +1 -1
- package/dist/database/migrations/migrate.d.ts.map +1 -1
- package/dist/database/migrations/migrate.js +9 -0
- package/dist/database/migrations/migrate.js.map +1 -1
- package/dist/database/migrations/migrateDown.d.ts +2 -2
- package/dist/database/migrations/migrateDown.d.ts.map +1 -1
- package/dist/database/migrations/migrateDown.js +12 -2
- package/dist/database/migrations/migrateDown.js.map +1 -1
- package/dist/database/migrations/migrateRefresh.d.ts +2 -2
- package/dist/database/migrations/migrateRefresh.d.ts.map +1 -1
- package/dist/database/migrations/migrateRefresh.js +10 -2
- package/dist/database/migrations/migrateRefresh.js.map +1 -1
- package/dist/database/migrations/migrateReset.d.ts +2 -2
- package/dist/database/migrations/migrateReset.d.ts.map +1 -1
- package/dist/database/migrations/migrateReset.js +11 -1
- package/dist/database/migrations/migrateReset.js.map +1 -1
- package/dist/database/migrations/migrateStatus.d.ts +2 -2
- package/dist/database/migrations/migrateStatus.d.ts.map +1 -1
- package/dist/database/migrations/migrateStatus.js +11 -6
- package/dist/database/migrations/migrateStatus.js.map +1 -1
- package/dist/database/prefixWherePaths.d.ts +6 -0
- package/dist/database/prefixWherePaths.d.ts.map +1 -0
- package/dist/database/prefixWherePaths.js +19 -0
- package/dist/database/prefixWherePaths.js.map +1 -0
- package/dist/database/queryValidation/validateQueryPaths.d.ts +2 -1
- package/dist/database/queryValidation/validateQueryPaths.d.ts.map +1 -1
- package/dist/database/queryValidation/validateQueryPaths.js +12 -2
- package/dist/database/queryValidation/validateQueryPaths.js.map +1 -1
- package/dist/database/queryValidation/validateSearchParams.d.ts +2 -1
- package/dist/database/queryValidation/validateSearchParams.d.ts.map +1 -1
- package/dist/database/queryValidation/validateSearchParams.js +88 -7
- package/dist/database/queryValidation/validateSearchParams.js.map +1 -1
- package/dist/database/queryValidation/validateSortQuery.d.ts +23 -0
- package/dist/database/queryValidation/validateSortQuery.d.ts.map +1 -0
- package/dist/database/queryValidation/validateSortQuery.js +54 -0
- package/dist/database/queryValidation/validateSortQuery.js.map +1 -0
- package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
- package/dist/database/sanitizeJoinQuery.js +7 -0
- package/dist/database/sanitizeJoinQuery.js.map +1 -1
- package/dist/database/sanitizeWhereQuery.d.ts +1 -1
- package/dist/database/sanitizeWhereQuery.d.ts.map +1 -1
- package/dist/database/sanitizeWhereQuery.js +44 -1
- package/dist/database/sanitizeWhereQuery.js.map +1 -1
- package/dist/database/types.d.ts +35 -8
- package/dist/database/types.d.ts.map +1 -1
- package/dist/database/types.js.map +1 -1
- package/dist/duplicateDocument/index.js +1 -0
- package/dist/duplicateDocument/index.js.map +1 -1
- package/dist/exports/cli.d.ts +4 -0
- package/dist/exports/cli.d.ts.map +1 -0
- package/dist/exports/cli.js +4 -0
- package/dist/exports/cli.js.map +1 -0
- package/dist/exports/cliBuiltin.d.ts +37 -0
- package/dist/exports/cliBuiltin.d.ts.map +1 -0
- package/dist/exports/cliBuiltin.js +38 -0
- package/dist/exports/cliBuiltin.js.map +1 -0
- package/dist/exports/internal.d.ts +11 -1
- package/dist/exports/internal.d.ts.map +1 -1
- package/dist/exports/internal.js +11 -2
- package/dist/exports/internal.js.map +1 -1
- package/dist/exports/node.d.ts +2 -2
- package/dist/exports/node.d.ts.map +1 -1
- package/dist/exports/node.js +2 -2
- package/dist/exports/node.js.map +1 -1
- package/dist/exports/shared.d.ts +9 -4
- package/dist/exports/shared.d.ts.map +1 -1
- package/dist/exports/shared.js +8 -4
- package/dist/exports/shared.js.map +1 -1
- package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.d.ts +2 -1
- package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.d.ts.map +1 -1
- package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.js +3 -1
- package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.js.map +1 -1
- package/dist/fields/baseFields/slug/generateSlug.d.ts.map +1 -1
- package/dist/fields/baseFields/slug/generateSlug.js +5 -1
- package/dist/fields/baseFields/slug/generateSlug.js.map +1 -1
- package/dist/fields/baseFields/slug/getSlugFallbackValue.d.ts +2 -1
- package/dist/fields/baseFields/slug/getSlugFallbackValue.d.ts.map +1 -1
- package/dist/fields/baseFields/slug/getSlugFallbackValue.js +2 -1
- package/dist/fields/baseFields/slug/getSlugFallbackValue.js.map +1 -1
- package/dist/fields/config/client.d.ts +1 -1
- package/dist/fields/config/client.d.ts.map +1 -1
- package/dist/fields/config/client.js +1 -1
- package/dist/fields/config/client.js.map +1 -1
- package/dist/fields/config/reservedFieldNames.js.map +1 -1
- package/dist/fields/config/sanitize.d.ts +6 -6
- package/dist/fields/config/sanitize.d.ts.map +1 -1
- package/dist/fields/config/sanitize.js +18 -19
- package/dist/fields/config/sanitize.js.map +1 -1
- package/dist/fields/config/types.d.ts +7 -5
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js +1 -1
- package/dist/fields/config/types.js.map +1 -1
- package/dist/fields/hooks/beforeChange/index.d.ts +7 -1
- package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/index.js +4 -2
- package/dist/fields/hooks/beforeChange/index.js.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.d.ts +2 -1
- package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/promise.js +52 -9
- package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
- package/dist/fields/hooks/beforeChange/traverseFields.d.ts +2 -1
- package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/beforeChange/traverseFields.js +3 -2
- package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
- package/dist/fields/hooks/beforeDuplicate/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeDuplicate/promise.js +4 -0
- package/dist/fields/hooks/beforeDuplicate/promise.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/getFallbackValue.d.ts +2 -1
- package/dist/fields/hooks/beforeValidate/getFallbackValue.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/getFallbackValue.js +2 -2
- package/dist/fields/hooks/beforeValidate/getFallbackValue.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/index.d.ts +6 -1
- package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/index.js +3 -1
- package/dist/fields/hooks/beforeValidate/index.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.d.ts +6 -1
- package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/promise.js +24 -9
- package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.d.ts +6 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.js +5 -1
- package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
- package/dist/fields/validations.d.ts.map +1 -1
- package/dist/fields/validations.js +10 -7
- package/dist/fields/validations.js.map +1 -1
- package/dist/globals/config/client.d.ts +1 -1
- package/dist/globals/config/client.d.ts.map +1 -1
- package/dist/globals/config/client.js.map +1 -1
- package/dist/globals/config/sanitize.d.ts +3 -7
- package/dist/globals/config/sanitize.d.ts.map +1 -1
- package/dist/globals/config/sanitize.js +41 -9
- package/dist/globals/config/sanitize.js.map +1 -1
- package/dist/globals/config/types.d.ts +21 -16
- package/dist/globals/config/types.d.ts.map +1 -1
- package/dist/globals/config/types.js.map +1 -1
- package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -1
- package/dist/globals/operations/countGlobalVersions.js +57 -56
- package/dist/globals/operations/countGlobalVersions.js.map +1 -1
- package/dist/globals/operations/docAccess.d.ts.map +1 -1
- package/dist/globals/operations/docAccess.js +19 -25
- package/dist/globals/operations/docAccess.js.map +1 -1
- package/dist/globals/operations/findOne.d.ts.map +1 -1
- package/dist/globals/operations/findOne.js +169 -174
- package/dist/globals/operations/findOne.js.map +1 -1
- package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
- package/dist/globals/operations/findVersionByID.js +111 -108
- package/dist/globals/operations/findVersionByID.js.map +1 -1
- package/dist/globals/operations/findVersions.d.ts.map +1 -1
- package/dist/globals/operations/findVersions.js +118 -109
- package/dist/globals/operations/findVersions.js.map +1 -1
- package/dist/globals/operations/inputSchemas.d.ts +365 -0
- package/dist/globals/operations/inputSchemas.d.ts.map +1 -0
- package/dist/globals/operations/inputSchemas.js +104 -0
- package/dist/globals/operations/inputSchemas.js.map +1 -0
- package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
- package/dist/globals/operations/restoreVersion.js +59 -14
- package/dist/globals/operations/restoreVersion.js.map +1 -1
- package/dist/globals/operations/update.d.ts.map +1 -1
- package/dist/globals/operations/update.js +106 -19
- package/dist/globals/operations/update.js.map +1 -1
- package/dist/hierarchy/addHierarchyToCollection.js +2 -0
- package/dist/hierarchy/addHierarchyToCollection.js.map +1 -1
- package/dist/index.bundled.d.ts +2417 -751
- package/dist/index.d.ts +57 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +83 -65
- package/dist/index.js.map +1 -1
- package/dist/preferences/config.d.ts.map +1 -1
- package/dist/preferences/config.js +2 -1
- package/dist/preferences/config.js.map +1 -1
- package/dist/preferences/keys.d.ts +3 -1
- package/dist/preferences/keys.d.ts.map +1 -1
- package/dist/preferences/keys.js +3 -2
- package/dist/preferences/keys.js.map +1 -1
- package/dist/query-presets/access.d.ts.map +1 -1
- package/dist/query-presets/access.js +2 -1
- package/dist/query-presets/access.js.map +1 -1
- package/dist/queues/config/collection.d.ts.map +1 -1
- package/dist/queues/config/collection.js +6 -0
- package/dist/queues/config/collection.js.map +1 -1
- package/dist/queues/config/types/index.d.ts +4 -1
- package/dist/queues/config/types/index.d.ts.map +1 -1
- package/dist/queues/config/types/index.js.map +1 -1
- package/dist/queues/endpoints/handleSchedules.d.ts.map +1 -1
- package/dist/queues/endpoints/handleSchedules.js +2 -1
- package/dist/queues/endpoints/handleSchedules.js.map +1 -1
- package/dist/queues/endpoints/run.d.ts.map +1 -1
- package/dist/queues/endpoints/run.js +2 -1
- package/dist/queues/endpoints/run.js.map +1 -1
- package/dist/types/constants.d.ts +21 -0
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/constants.js +23 -0
- package/dist/types/constants.js.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/uploads/assertClientUploadAccess.d.ts +7 -0
- package/dist/uploads/assertClientUploadAccess.d.ts.map +1 -0
- package/dist/uploads/assertClientUploadAccess.js +29 -0
- package/dist/uploads/assertClientUploadAccess.js.map +1 -0
- package/dist/uploads/assertClientUploadAllowed.d.ts +10 -0
- package/dist/uploads/assertClientUploadAllowed.d.ts.map +1 -0
- package/dist/uploads/assertClientUploadAllowed.js +41 -0
- package/dist/uploads/assertClientUploadAllowed.js.map +1 -0
- package/dist/uploads/checkFileAccess.js +1 -0
- package/dist/uploads/checkFileAccess.js.map +1 -1
- package/dist/uploads/checkFileRestrictions.d.ts +11 -1
- package/dist/uploads/checkFileRestrictions.d.ts.map +1 -1
- package/dist/uploads/checkFileRestrictions.js +79 -28
- package/dist/uploads/checkFileRestrictions.js.map +1 -1
- package/dist/uploads/clientUploadReceipt.d.ts +29 -0
- package/dist/uploads/clientUploadReceipt.d.ts.map +1 -0
- package/dist/uploads/clientUploadReceipt.js +76 -0
- package/dist/uploads/clientUploadReceipt.js.map +1 -0
- package/dist/uploads/cropImage.d.ts +1 -1
- package/dist/uploads/cropImage.d.ts.map +1 -1
- package/dist/uploads/cropImage.js +2 -5
- package/dist/uploads/cropImage.js.map +1 -1
- package/dist/uploads/deleteAssociatedFiles.d.ts.map +1 -1
- package/dist/uploads/deleteAssociatedFiles.js +57 -9
- package/dist/uploads/deleteAssociatedFiles.js.map +1 -1
- package/dist/uploads/detectSvgFromXml.d.ts +1 -4
- package/dist/uploads/detectSvgFromXml.d.ts.map +1 -1
- package/dist/uploads/detectSvgFromXml.js +2 -41
- package/dist/uploads/detectSvgFromXml.js.map +1 -1
- package/dist/uploads/docWithFilenameExists.d.ts +2 -1
- package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
- package/dist/uploads/docWithFilenameExists.js +27 -10
- package/dist/uploads/docWithFilenameExists.js.map +1 -1
- package/dist/uploads/downloadFileToBuffer.d.ts +11 -0
- package/dist/uploads/downloadFileToBuffer.d.ts.map +1 -0
- package/dist/uploads/downloadFileToBuffer.js +72 -0
- package/dist/uploads/downloadFileToBuffer.js.map +1 -0
- package/dist/uploads/endpoints/getFile.d.ts.map +1 -1
- package/dist/uploads/endpoints/getFile.js +5 -3
- package/dist/uploads/endpoints/getFile.js.map +1 -1
- package/dist/uploads/endpoints/index.js +2 -2
- package/dist/uploads/endpoints/index.js.map +1 -1
- package/dist/uploads/endpoints/pasteURL.d.ts +3 -0
- package/dist/uploads/endpoints/pasteURL.d.ts.map +1 -0
- package/dist/uploads/endpoints/{getFileFromURL.js → pasteURL.js} +19 -55
- package/dist/uploads/endpoints/pasteURL.js.map +1 -0
- package/dist/uploads/endpoints/uploadInstructions.d.ts.map +1 -1
- package/dist/uploads/endpoints/uploadInstructions.js +29 -26
- package/dist/uploads/endpoints/uploadInstructions.js.map +1 -1
- package/dist/uploads/fetchAPI-multipart/handlers.d.ts +2 -2
- package/dist/uploads/fetchAPI-multipart/handlers.d.ts.map +1 -1
- package/dist/uploads/fetchAPI-multipart/handlers.js +18 -5
- package/dist/uploads/fetchAPI-multipart/handlers.js.map +1 -1
- package/dist/uploads/fetchAPI-multipart/index.d.ts.map +1 -1
- package/dist/uploads/fetchAPI-multipart/index.js +24 -2
- package/dist/uploads/fetchAPI-multipart/index.js.map +1 -1
- package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js +1 -2
- package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js.map +1 -1
- package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts +0 -6
- package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts.map +1 -1
- package/dist/uploads/fetchAPI-multipart/processMultipart.js +146 -130
- package/dist/uploads/fetchAPI-multipart/processMultipart.js.map +1 -1
- package/dist/uploads/fetchWithRedirects.d.ts +19 -0
- package/dist/uploads/fetchWithRedirects.d.ts.map +1 -0
- package/dist/uploads/fetchWithRedirects.js +53 -0
- package/dist/uploads/fetchWithRedirects.js.map +1 -0
- package/dist/uploads/generateFileData.d.ts +31 -1
- package/dist/uploads/generateFileData.d.ts.map +1 -1
- package/dist/uploads/generateFileData.js +114 -65
- package/dist/uploads/generateFileData.js.map +1 -1
- package/dist/uploads/getBaseFields.d.ts.map +1 -1
- package/dist/uploads/getBaseFields.js +3 -1
- package/dist/uploads/getBaseFields.js.map +1 -1
- package/dist/uploads/getFileContentRequirement.d.ts +32 -0
- package/dist/uploads/getFileContentRequirement.d.ts.map +1 -0
- package/dist/uploads/getFileContentRequirement.js +40 -0
- package/dist/uploads/getFileContentRequirement.js.map +1 -0
- package/dist/uploads/getFileFromUploadInstructions.d.ts.map +1 -1
- package/dist/uploads/getFileFromUploadInstructions.js +226 -9
- package/dist/uploads/getFileFromUploadInstructions.js.map +1 -1
- package/dist/uploads/getFileTypeFallback.d.ts.map +1 -1
- package/dist/uploads/getFileTypeFallback.js +3 -1
- package/dist/uploads/getFileTypeFallback.js.map +1 -1
- package/dist/uploads/getFileTypeIdentity.d.ts +19 -0
- package/dist/uploads/getFileTypeIdentity.d.ts.map +1 -0
- package/dist/uploads/getFileTypeIdentity.js +34 -0
- package/dist/uploads/getFileTypeIdentity.js.map +1 -0
- package/dist/uploads/hasCropOrResizeEdit.d.ts +7 -0
- package/dist/uploads/hasCropOrResizeEdit.d.ts.map +1 -0
- package/dist/uploads/hasCropOrResizeEdit.js +6 -0
- package/dist/uploads/hasCropOrResizeEdit.js.map +1 -0
- package/dist/uploads/hasFullFileContents.d.ts +13 -0
- package/dist/uploads/hasFullFileContents.d.ts.map +1 -0
- package/dist/uploads/hasFullFileContents.js +12 -0
- package/dist/uploads/hasFullFileContents.js.map +1 -0
- package/dist/uploads/image-resizing/createImageSizes.d.ts.map +1 -1
- package/dist/uploads/image-resizing/createImageSizes.js +2 -5
- package/dist/uploads/image-resizing/createImageSizes.js.map +1 -1
- package/dist/uploads/isAnimatedImage.d.ts +8 -0
- package/dist/uploads/isAnimatedImage.d.ts.map +1 -0
- package/dist/uploads/isAnimatedImage.js +22 -0
- package/dist/uploads/isAnimatedImage.js.map +1 -0
- package/dist/uploads/isProcessableImage.d.ts +2 -0
- package/dist/uploads/isProcessableImage.d.ts.map +1 -0
- package/dist/uploads/isProcessableImage.js +7 -0
- package/dist/uploads/isProcessableImage.js.map +1 -0
- package/dist/uploads/resolveURLUploadInput.d.ts +25 -0
- package/dist/uploads/resolveURLUploadInput.d.ts.map +1 -0
- package/dist/uploads/resolveURLUploadInput.js +53 -0
- package/dist/uploads/resolveURLUploadInput.js.map +1 -0
- package/dist/uploads/safeFetch.d.ts.map +1 -1
- package/dist/uploads/safeFetch.js +3 -2
- package/dist/uploads/safeFetch.js.map +1 -1
- package/dist/uploads/sanitizeUploadData.d.ts +26 -0
- package/dist/uploads/sanitizeUploadData.d.ts.map +1 -0
- package/dist/uploads/sanitizeUploadData.js +161 -0
- package/dist/uploads/sanitizeUploadData.js.map +1 -0
- package/dist/uploads/types.d.ts +21 -4
- package/dist/uploads/types.d.ts.map +1 -1
- package/dist/uploads/types.js.map +1 -1
- package/dist/uploads/unlinkTempFiles.d.ts.map +1 -1
- package/dist/uploads/unlinkTempFiles.js +6 -2
- package/dist/uploads/unlinkTempFiles.js.map +1 -1
- package/dist/uploads/uploadContentSecurityPolicy.d.ts +2 -0
- package/dist/uploads/uploadContentSecurityPolicy.d.ts.map +1 -0
- package/dist/uploads/uploadContentSecurityPolicy.js +3 -0
- package/dist/uploads/uploadContentSecurityPolicy.js.map +1 -0
- package/dist/uploads/uploadFiles.d.ts.map +1 -1
- package/dist/uploads/uploadFiles.js +7 -2
- package/dist/uploads/uploadFiles.js.map +1 -1
- package/dist/uploads/validateISOBaseMediaFile.d.ts +4 -0
- package/dist/uploads/validateISOBaseMediaFile.d.ts.map +1 -0
- package/dist/uploads/validateISOBaseMediaFile.js +91 -0
- package/dist/uploads/validateISOBaseMediaFile.js.map +1 -0
- package/dist/uploads/validateSvg.d.ts +10 -4
- package/dist/uploads/validateSvg.d.ts.map +1 -1
- package/dist/uploads/validateSvg.js +280 -40
- package/dist/uploads/validateSvg.js.map +1 -1
- package/dist/uploads/validateUploadFilename.d.ts +3 -0
- package/dist/uploads/validateUploadFilename.d.ts.map +1 -0
- package/dist/uploads/validateUploadFilename.js +13 -0
- package/dist/uploads/validateUploadFilename.js.map +1 -0
- package/dist/uploads/validateUploadURL.d.ts +13 -0
- package/dist/uploads/validateUploadURL.d.ts.map +1 -0
- package/dist/uploads/validateUploadURL.js +37 -0
- package/dist/uploads/validateUploadURL.js.map +1 -0
- package/dist/utilities/addDataAndFileToRequest.js +3 -1
- package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
- package/dist/utilities/appendNonTrashedFilter.d.ts +1 -1
- package/dist/utilities/appendNonTrashedFilter.d.ts.map +1 -1
- package/dist/utilities/appendNonTrashedFilter.js.map +1 -1
- package/dist/utilities/canAccessAdmin.js +1 -0
- package/dist/utilities/canAccessAdmin.js.map +1 -1
- package/dist/utilities/checkDocumentLockStatus.d.ts +19 -0
- package/dist/utilities/checkDocumentLockStatus.d.ts.map +1 -1
- package/dist/utilities/checkDocumentLockStatus.js +74 -0
- package/dist/utilities/checkDocumentLockStatus.js.map +1 -1
- package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
- package/dist/utilities/createPayloadRequest.js +2 -1
- package/dist/utilities/createPayloadRequest.js.map +1 -1
- package/dist/utilities/deepCopyObject.d.ts.map +1 -1
- package/dist/utilities/deepCopyObject.js +110 -19
- package/dist/utilities/deepCopyObject.js.map +1 -1
- package/dist/utilities/entityInputSchema/filterFieldsByAccess.d.ts +30 -0
- package/dist/utilities/entityInputSchema/filterFieldsByAccess.d.ts.map +1 -0
- package/dist/utilities/entityInputSchema/filterFieldsByAccess.js +71 -0
- package/dist/utilities/entityInputSchema/filterFieldsByAccess.js.map +1 -0
- package/dist/utilities/entityInputSchema/getEntityInputSchema.d.ts +13 -0
- package/dist/utilities/entityInputSchema/getEntityInputSchema.d.ts.map +1 -0
- package/dist/utilities/entityInputSchema/getEntityInputSchema.js +66 -0
- package/dist/utilities/entityInputSchema/getEntityInputSchema.js.map +1 -0
- package/dist/utilities/entityInputSchema/sanitizeEntitySchema.d.ts +10 -0
- package/dist/utilities/entityInputSchema/sanitizeEntitySchema.d.ts.map +1 -0
- package/dist/utilities/entityInputSchema/sanitizeEntitySchema.js +384 -0
- package/dist/utilities/entityInputSchema/sanitizeEntitySchema.js.map +1 -0
- package/dist/utilities/entityInputSchema/types.d.ts +16 -0
- package/dist/utilities/entityInputSchema/types.d.ts.map +1 -0
- package/dist/utilities/entityInputSchema/types.js +3 -0
- package/dist/utilities/entityInputSchema/types.js.map +1 -0
- package/dist/utilities/entityInputSchema/validateEntityData.d.ts +13 -0
- package/dist/utilities/entityInputSchema/validateEntityData.d.ts.map +1 -0
- package/dist/utilities/entityInputSchema/validateEntityData.js +138 -0
- package/dist/utilities/entityInputSchema/validateEntityData.js.map +1 -0
- package/dist/utilities/fieldPath.d.ts +13 -0
- package/dist/utilities/fieldPath.d.ts.map +1 -0
- package/dist/utilities/fieldPath.js +51 -0
- package/dist/utilities/fieldPath.js.map +1 -0
- package/dist/utilities/fieldValueExists.d.ts +6 -6
- package/dist/utilities/fieldValueExists.d.ts.map +1 -1
- package/dist/utilities/fieldValueExists.js +17 -7
- package/dist/utilities/fieldValueExists.js.map +1 -1
- package/dist/utilities/formatAdminURL.d.ts +1 -0
- package/dist/utilities/formatAdminURL.d.ts.map +1 -1
- package/dist/utilities/formatAdminURL.js +22 -4
- package/dist/utilities/formatAdminURL.js.map +1 -1
- package/dist/utilities/getEntityPermissions/entityDocExists.d.ts.map +1 -1
- package/dist/utilities/getEntityPermissions/entityDocExists.js +36 -5
- package/dist/utilities/getEntityPermissions/entityDocExists.js.map +1 -1
- package/dist/utilities/getEntityPermissions/getEntityPermissions.d.ts.map +1 -1
- package/dist/utilities/getEntityPermissions/getEntityPermissions.js +1 -0
- package/dist/utilities/getEntityPermissions/getEntityPermissions.js.map +1 -1
- package/dist/utilities/getNextVersion.d.ts +7 -0
- package/dist/utilities/getNextVersion.d.ts.map +1 -0
- package/dist/utilities/getNextVersion.js +20 -0
- package/dist/utilities/getNextVersion.js.map +1 -0
- package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
- package/dist/utilities/getObjectDotNotation.js +7 -1
- package/dist/utilities/getObjectDotNotation.js.map +1 -1
- package/dist/utilities/getRequestOrigin.d.ts.map +1 -1
- package/dist/utilities/getRequestOrigin.js.map +1 -1
- package/dist/utilities/getSafeRedirect.d.ts.map +1 -1
- package/dist/utilities/getSafeRedirect.js +16 -9
- package/dist/utilities/getSafeRedirect.js.map +1 -1
- package/dist/utilities/getTopLevelFieldNames.d.ts +2 -0
- package/dist/utilities/getTopLevelFieldNames.d.ts.map +1 -0
- package/dist/utilities/getTopLevelFieldNames.js +3 -0
- package/dist/utilities/getTopLevelFieldNames.js.map +1 -0
- package/dist/utilities/getUniqueFieldValue.d.ts +2 -1
- package/dist/utilities/getUniqueFieldValue.d.ts.map +1 -1
- package/dist/utilities/getUniqueFieldValue.js +2 -1
- package/dist/utilities/getUniqueFieldValue.js.map +1 -1
- package/dist/utilities/getVirtualFieldNames.d.ts +14 -0
- package/dist/utilities/getVirtualFieldNames.d.ts.map +1 -0
- package/dist/utilities/getVirtualFieldNames.js +35 -0
- package/dist/utilities/getVirtualFieldNames.js.map +1 -0
- package/dist/utilities/handleEndpoints.d.ts.map +1 -1
- package/dist/utilities/handleEndpoints.js +5 -3
- package/dist/utilities/handleEndpoints.js.map +1 -1
- package/dist/utilities/headersWithCors.js +1 -1
- package/dist/utilities/headersWithCors.js.map +1 -1
- package/dist/utilities/killTransaction.d.ts +7 -0
- package/dist/utilities/killTransaction.d.ts.map +1 -1
- package/dist/utilities/killTransaction.js +7 -0
- package/dist/utilities/killTransaction.js.map +1 -1
- package/dist/utilities/logError.d.ts.map +1 -1
- package/dist/utilities/logError.js +5 -2
- package/dist/utilities/logError.js.map +1 -1
- package/dist/utilities/nextJsDevReloadStrategy.d.ts +7 -0
- package/dist/utilities/nextJsDevReloadStrategy.d.ts.map +1 -0
- package/dist/utilities/nextJsDevReloadStrategy.js +59 -0
- package/dist/utilities/nextJsDevReloadStrategy.js.map +1 -0
- package/dist/utilities/parseDocumentID.d.ts +4 -1
- package/dist/utilities/parseDocumentID.d.ts.map +1 -1
- package/dist/utilities/parseDocumentID.js +7 -1
- package/dist/utilities/parseDocumentID.js.map +1 -1
- package/dist/utilities/parseParams/index.d.ts.map +1 -1
- package/dist/utilities/parseParams/index.js +3 -1
- package/dist/utilities/parseParams/index.js.map +1 -1
- package/dist/utilities/sanitizeUploadPrefix.d.ts +5 -0
- package/dist/utilities/sanitizeUploadPrefix.d.ts.map +1 -0
- package/dist/utilities/sanitizeUploadPrefix.js +18 -0
- package/dist/utilities/sanitizeUploadPrefix.js.map +1 -0
- package/dist/utilities/sharedInputSchemas.d.ts +52 -0
- package/dist/utilities/sharedInputSchemas.d.ts.map +1 -0
- package/dist/utilities/sharedInputSchemas.js +101 -0
- package/dist/utilities/sharedInputSchemas.js.map +1 -0
- package/dist/utilities/telemetry/featureInfo/getFeatureInfo.d.ts +4 -0
- package/dist/utilities/telemetry/featureInfo/getFeatureInfo.d.ts.map +1 -0
- package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js +261 -0
- package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js.map +1 -0
- package/dist/utilities/telemetry/featureInfo/types.d.ts +63 -0
- package/dist/utilities/telemetry/featureInfo/types.d.ts.map +1 -0
- package/dist/utilities/telemetry/featureInfo/types.js +3 -0
- package/dist/utilities/telemetry/featureInfo/types.js.map +1 -0
- package/dist/utilities/telemetry/getProjectContext.d.ts +16 -0
- package/dist/utilities/telemetry/getProjectContext.d.ts.map +1 -0
- package/dist/utilities/telemetry/getProjectContext.js +43 -0
- package/dist/utilities/telemetry/getProjectContext.js.map +1 -0
- package/dist/utilities/telemetry/index.d.ts +6 -1
- package/dist/utilities/telemetry/index.d.ts.map +1 -1
- package/dist/utilities/telemetry/index.js +21 -1
- package/dist/utilities/telemetry/index.js.map +1 -1
- package/dist/utilities/transformPointDataToPayload.d.ts +7 -0
- package/dist/utilities/transformPointDataToPayload.d.ts.map +1 -0
- package/dist/utilities/transformPointDataToPayload.js +28 -0
- package/dist/utilities/transformPointDataToPayload.js.map +1 -0
- package/dist/utilities/traverseFields.d.ts.map +1 -1
- package/dist/utilities/traverseFields.js +25 -36
- package/dist/utilities/traverseFields.js.map +1 -1
- package/dist/utilities/unflatten.d.ts.map +1 -1
- package/dist/utilities/unflatten.js +21 -9
- package/dist/utilities/unflatten.js.map +1 -1
- package/dist/utilities/unflattenData.d.ts +3 -0
- package/dist/utilities/unflattenData.d.ts.map +1 -0
- package/dist/utilities/unflattenData.js +14 -0
- package/dist/utilities/unflattenData.js.map +1 -0
- package/dist/utilities/zod.d.ts +5 -0
- package/dist/utilities/zod.d.ts.map +1 -0
- package/dist/utilities/zod.js +21 -0
- package/dist/utilities/zod.js.map +1 -0
- package/dist/versions/allLocalesPublicationStatus.d.ts +38 -0
- package/dist/versions/allLocalesPublicationStatus.d.ts.map +1 -0
- package/dist/versions/allLocalesPublicationStatus.js +57 -0
- package/dist/versions/allLocalesPublicationStatus.js.map +1 -0
- package/dist/versions/deleteCollectionVersions.d.ts +11 -1
- package/dist/versions/deleteCollectionVersions.d.ts.map +1 -1
- package/dist/versions/deleteCollectionVersions.js +10 -3
- package/dist/versions/deleteCollectionVersions.js.map +1 -1
- package/dist/versions/deleteScheduledPublishJobs.d.ts +5 -1
- package/dist/versions/deleteScheduledPublishJobs.d.ts.map +1 -1
- package/dist/versions/deleteScheduledPublishJobs.js +9 -3
- package/dist/versions/deleteScheduledPublishJobs.js.map +1 -1
- package/dist/versions/drafts/appendVersionToQueryKey.d.ts +1 -0
- package/dist/versions/drafts/appendVersionToQueryKey.d.ts.map +1 -1
- package/dist/versions/drafts/appendVersionToQueryKey.js +6 -12
- package/dist/versions/drafts/appendVersionToQueryKey.js.map +1 -1
- package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
- package/dist/versions/getLatestGlobalVersion.js +10 -2
- package/dist/versions/getLatestGlobalVersion.js.map +1 -1
- package/dist/versions/getRestoredStatusesToAuthorize.d.ts +9 -0
- package/dist/versions/getRestoredStatusesToAuthorize.d.ts.map +1 -0
- package/dist/versions/getRestoredStatusesToAuthorize.js +22 -0
- package/dist/versions/getRestoredStatusesToAuthorize.js.map +1 -0
- package/dist/versions/isInheritedReadVersionsAccess.d.ts +6 -0
- package/dist/versions/isInheritedReadVersionsAccess.d.ts.map +1 -0
- package/dist/versions/isInheritedReadVersionsAccess.js +30 -0
- package/dist/versions/isInheritedReadVersionsAccess.js.map +1 -0
- package/dist/versions/schedule/job.d.ts +2 -2
- package/dist/versions/schedule/job.d.ts.map +1 -1
- package/dist/versions/schedule/job.js +10 -7
- package/dist/versions/schedule/job.js.map +1 -1
- package/dist/versions/schedule/types.d.ts +5 -1
- package/dist/versions/schedule/types.d.ts.map +1 -1
- package/dist/versions/schedule/types.js.map +1 -1
- package/package.json +22 -9
- package/skills/payload/SKILL.md +526 -0
- package/skills/payload/reference/ACCESS-CONTROL-ADVANCED.md +704 -0
- package/skills/payload/reference/ACCESS-CONTROL.md +696 -0
- package/skills/payload/reference/ADAPTERS.md +305 -0
- package/skills/payload/reference/ADVANCED.md +386 -0
- package/skills/payload/reference/COLLECTIONS.md +333 -0
- package/skills/payload/reference/ENDPOINTS.md +634 -0
- package/skills/payload/reference/FIELD-TYPE-GUARDS.md +553 -0
- package/skills/payload/reference/FIELDS.md +745 -0
- package/skills/payload/reference/HOOKS.md +186 -0
- package/skills/payload/reference/PLUGIN-DEVELOPMENT.md +1439 -0
- package/skills/payload/reference/QUERIES.md +274 -0
- package/dist/auth/cookies.spec.js +0 -34
- package/dist/auth/cookies.spec.js.map +0 -1
- package/dist/auth/strategies/local/authenticate.spec.js +0 -83
- package/dist/auth/strategies/local/authenticate.spec.js.map +0 -1
- package/dist/bin/build.d.ts.map +0 -1
- package/dist/bin/build.js.map +0 -1
- package/dist/bin/build.spec.js +0 -594
- package/dist/bin/build.spec.js.map +0 -1
- package/dist/bin/frameworkConventions.d.ts.map +0 -1
- package/dist/bin/frameworkConventions.js.map +0 -1
- package/dist/bin/generateImportMap/generateImportMap.spec.js +0 -176
- package/dist/bin/generateImportMap/generateImportMap.spec.js.map +0 -1
- package/dist/bin/generateImportMap/index.d.ts.map +0 -1
- package/dist/bin/generateImportMap/index.js.map +0 -1
- package/dist/bin/generateImportMap/iterateCollections.d.ts.map +0 -1
- package/dist/bin/generateImportMap/iterateCollections.js.map +0 -1
- package/dist/bin/generateImportMap/iterateConfig.d.ts.map +0 -1
- package/dist/bin/generateImportMap/iterateConfig.js.map +0 -1
- package/dist/bin/generateImportMap/iterateFields.d.ts.map +0 -1
- package/dist/bin/generateImportMap/iterateFields.js.map +0 -1
- package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +0 -1
- package/dist/bin/generateImportMap/iterateGlobals.js.map +0 -1
- package/dist/bin/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts.map +0 -1
- package/dist/bin/generateImportMap/utilities/addPayloadComponentToImportMap.js.map +0 -1
- package/dist/bin/generateImportMap/utilities/getFromImportMap.d.ts.map +0 -1
- package/dist/bin/generateImportMap/utilities/getFromImportMap.js.map +0 -1
- package/dist/bin/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts.map +0 -1
- package/dist/bin/generateImportMap/utilities/getImportMapToBaseDirPath.js.map +0 -1
- package/dist/bin/generateImportMap/utilities/parsePayloadComponent.d.ts.map +0 -1
- package/dist/bin/generateImportMap/utilities/parsePayloadComponent.js.map +0 -1
- package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +0 -1
- package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js.map +0 -1
- package/dist/bin/generateTypes.d.ts +0 -6
- package/dist/bin/generateTypes.d.ts.map +0 -1
- package/dist/bin/generateTypes.js.map +0 -1
- package/dist/bin/index.d.ts +0 -2
- package/dist/bin/index.d.ts.map +0 -1
- package/dist/bin/index.js +0 -200
- package/dist/bin/index.js.map +0 -1
- package/dist/bin/info.d.ts +0 -2
- package/dist/bin/info.d.ts.map +0 -1
- package/dist/bin/info.js +0 -56
- package/dist/bin/info.js.map +0 -1
- package/dist/bin/loadEnv.d.ts.map +0 -1
- package/dist/bin/loadEnv.js.map +0 -1
- package/dist/bin/migrate.d.ts +0 -15
- package/dist/bin/migrate.d.ts.map +0 -1
- package/dist/bin/migrate.js +0 -102
- package/dist/bin/migrate.js.map +0 -1
- package/dist/collections/config/defaults.spec.js +0 -47
- package/dist/collections/config/defaults.spec.js.map +0 -1
- package/dist/collections/config/sanitize.spec.js +0 -120
- package/dist/collections/config/sanitize.spec.js.map +0 -1
- package/dist/collections/config/useAsTitle.spec.js +0 -187
- package/dist/collections/config/useAsTitle.spec.js.map +0 -1
- package/dist/database/migrations/findMigrationDir.spec.js +0 -47
- package/dist/database/migrations/findMigrationDir.spec.js.map +0 -1
- package/dist/fields/config/reservedFieldNames.spec.js +0 -149
- package/dist/fields/config/reservedFieldNames.spec.js.map +0 -1
- package/dist/fields/config/sanitize.spec.js +0 -745
- package/dist/fields/config/sanitize.spec.js.map +0 -1
- package/dist/fields/isFieldDisabled.spec.js +0 -134
- package/dist/fields/isFieldDisabled.spec.js.map +0 -1
- package/dist/fields/validations.spec.js +0 -1014
- package/dist/fields/validations.spec.js.map +0 -1
- package/dist/globals/config/sanitize.spec.js +0 -43
- package/dist/globals/config/sanitize.spec.js.map +0 -1
- package/dist/hierarchy/utils/getLocalizedValue.spec.js +0 -250
- package/dist/hierarchy/utils/getLocalizedValue.spec.js.map +0 -1
- package/dist/locked-documents/config.spec.js +0 -298
- package/dist/locked-documents/config.spec.js.map +0 -1
- package/dist/uploads/checkFileAccess.spec.js +0 -109
- package/dist/uploads/checkFileAccess.spec.js.map +0 -1
- package/dist/uploads/endpoints/getFileFromURL.d.ts +0 -3
- package/dist/uploads/endpoints/getFileFromURL.d.ts.map +0 -1
- package/dist/uploads/endpoints/getFileFromURL.js.map +0 -1
- package/dist/uploads/fetchAPI-multipart/isEligibleRequest.spec.js +0 -29
- package/dist/uploads/fetchAPI-multipart/isEligibleRequest.spec.js.map +0 -1
- package/dist/uploads/getExternalFile.d.ts +0 -10
- package/dist/uploads/getExternalFile.d.ts.map +0 -1
- package/dist/uploads/getExternalFile.js +0 -73
- package/dist/uploads/getExternalFile.js.map +0 -1
- package/dist/uploads/getImageSize.spec.js +0 -298
- package/dist/uploads/getImageSize.spec.js.map +0 -1
- package/dist/uploads/getSafeFilename.spec.js +0 -274
- package/dist/uploads/getSafeFilename.spec.js.map +0 -1
- package/dist/uploads/matchMimeType.spec.js +0 -66
- package/dist/uploads/matchMimeType.spec.js.map +0 -1
- package/dist/uploads/mimeTypeValidator.spec.js +0 -84
- package/dist/uploads/mimeTypeValidator.spec.js.map +0 -1
- package/dist/uploads/probeImageSize.spec.js +0 -366
- package/dist/uploads/probeImageSize.spec.js.map +0 -1
- package/dist/utilities/addDataAndFileToRequest.spec.js +0 -41
- package/dist/utilities/addDataAndFileToRequest.spec.js.map +0 -1
- package/dist/utilities/addSelectGenericsToGeneratedTypes.spec.js +0 -563
- package/dist/utilities/addSelectGenericsToGeneratedTypes.spec.js.map +0 -1
- package/dist/utilities/combineWhereConstraints.spec.js +0 -131
- package/dist/utilities/combineWhereConstraints.spec.js.map +0 -1
- package/dist/utilities/configToJSONSchema.spec.js +0 -1162
- package/dist/utilities/configToJSONSchema.spec.js.map +0 -1
- package/dist/utilities/createLocalReq.spec.js +0 -125
- package/dist/utilities/createLocalReq.spec.js.map +0 -1
- package/dist/utilities/filterDataToSelectedLocales.spec.js +0 -529
- package/dist/utilities/filterDataToSelectedLocales.spec.js.map +0 -1
- package/dist/utilities/flattenTopLevelFields.spec.js +0 -659
- package/dist/utilities/flattenTopLevelFields.spec.js.map +0 -1
- package/dist/utilities/formatAdminURL.spec.js +0 -168
- package/dist/utilities/formatAdminURL.spec.js.map +0 -1
- package/dist/utilities/formatErrors.spec.js +0 -101
- package/dist/utilities/formatErrors.spec.js.map +0 -1
- package/dist/utilities/formatLabels.spec.js +0 -38
- package/dist/utilities/formatLabels.spec.js.map +0 -1
- package/dist/utilities/getFieldByPath.spec.js +0 -157
- package/dist/utilities/getFieldByPath.spec.js.map +0 -1
- package/dist/utilities/getFieldPermissions.spec.js +0 -78
- package/dist/utilities/getFieldPermissions.spec.js.map +0 -1
- package/dist/utilities/getRequestOrigin.spec.js +0 -151
- package/dist/utilities/getRequestOrigin.spec.js.map +0 -1
- package/dist/utilities/getSafeRedirect.spec.js +0 -84
- package/dist/utilities/getSafeRedirect.spec.js.map +0 -1
- package/dist/utilities/isURLAllowed.spec.js +0 -78
- package/dist/utilities/isURLAllowed.spec.js.map +0 -1
- package/dist/utilities/isolateObjectProperty.spec.js +0 -120
- package/dist/utilities/isolateObjectProperty.spec.js.map +0 -1
- package/dist/utilities/mergeLocalizedData.spec.js +0 -1108
- package/dist/utilities/mergeLocalizedData.spec.js.map +0 -1
- package/dist/utilities/optionsAreEqual.spec.js +0 -319
- package/dist/utilities/optionsAreEqual.spec.js.map +0 -1
- package/dist/utilities/parseParams/index.spec.js +0 -384
- package/dist/utilities/parseParams/index.spec.js.map +0 -1
- package/dist/utilities/profiling.spec.js +0 -53
- package/dist/utilities/profiling.spec.js.map +0 -1
- package/dist/utilities/sanitizePermissions.spec.js +0 -1639
- package/dist/utilities/sanitizePermissions.spec.js.map +0 -1
- package/dist/utilities/sanitizeUserDataForEmail.spec.js +0 -134
- package/dist/utilities/sanitizeUserDataForEmail.spec.js.map +0 -1
- package/dist/utilities/telemetry/index.spec.js +0 -43
- package/dist/utilities/telemetry/index.spec.js.map +0 -1
- package/dist/utilities/traverseFields.spec.js +0 -53
- package/dist/utilities/traverseFields.spec.js.map +0 -1
- package/dist/utilities/validateTimezones.spec.js +0 -493
- package/dist/utilities/validateTimezones.spec.js.map +0 -1
- /package/dist/{bin → cli/commands/generateImportMap}/frameworkConventions.d.ts +0 -0
- /package/dist/{bin → cli/commands/generateImportMap}/frameworkConventions.js +0 -0
- /package/dist/{bin → cli/commands}/generateImportMap/iterateCollections.js +0 -0
- /package/dist/{bin → cli/commands}/generateImportMap/iterateFields.js +0 -0
- /package/dist/{bin → cli/commands}/generateImportMap/iterateGlobals.js +0 -0
- /package/dist/{bin → cli/commands}/generateImportMap/utilities/addPayloadComponentToImportMap.js +0 -0
- /package/dist/{bin → cli/commands}/generateImportMap/utilities/getFromImportMap.js +0 -0
- /package/dist/{bin → cli/commands}/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts +0 -0
- /package/dist/{bin → cli/commands}/generateImportMap/utilities/getImportMapToBaseDirPath.js +0 -0
- /package/dist/{bin → cli/commands}/generateImportMap/utilities/parsePayloadComponent.js +0 -0
- /package/dist/{bin → cli/commands}/generateImportMap/utilities/resolveImportMapFilePath.d.ts +0 -0
- /package/dist/{bin → cli/runtime}/loadEnv.d.ts +0 -0
package/dist/config/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ClientTranslationKeys, DefaultTranslationsObject, I18n, I18nClient, I18nOptions, TFunction } from '@payloadcms/translations';
|
|
2
|
+
import type { StandardJSONSchemaV1, StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
3
|
import type { BusboyConfig } from 'busboy';
|
|
3
4
|
import type GraphQL from 'graphql';
|
|
4
5
|
import type { GraphQLFormattedError } from 'graphql';
|
|
@@ -7,23 +8,22 @@ import type { Metadata } from 'next';
|
|
|
7
8
|
import type { DestinationStream, Level, LoggerOptions } from 'pino';
|
|
8
9
|
import type React from 'react';
|
|
9
10
|
import type { default as sharp } from 'sharp';
|
|
10
|
-
import type { DeepRequired } from 'ts-essentials';
|
|
11
11
|
import type { ComponentRenderer } from '../admin/adapters/render.js';
|
|
12
12
|
import type { ServerAdapter } from '../admin/adapters/server.js';
|
|
13
13
|
import type { RichTextAdapterProvider } from '../admin/RichText.js';
|
|
14
14
|
import type { CustomStatus, DocumentSubViewTypes, DocumentTabConfig, DocumentViewServerProps, PublishButtonClientProps, PublishButtonServerProps, RichTextAdapter, UnpublishButtonClientProps, UnpublishButtonServerProps } from '../admin/types.js';
|
|
15
15
|
import type { AdminViewConfig, ViewTypes, VisibleEntities } from '../admin/views/index.js';
|
|
16
16
|
import type { SanitizedPermissions } from '../auth/index.js';
|
|
17
|
-
import type { AddToImportMap, ImportMap, Imports, InternalImportMap } from '../
|
|
18
|
-
import type { Collection, CollectionConfig, SanitizedCollectionConfig } from '../collections/config/types.js';
|
|
17
|
+
import type { AddToImportMap, ImportMap, Imports, InternalImportMap } from '../cli/commands/generateImportMap/generateImportMap.js';
|
|
18
|
+
import type { Collection, CollectionAccess, CollectionConfig, SanitizedCollectionConfig } from '../collections/config/types.js';
|
|
19
19
|
import type { DatabaseAdapterResult } from '../database/types.js';
|
|
20
20
|
import type { EmailAdapter, SendEmailOptions } from '../email/types.js';
|
|
21
21
|
import type { ErrorName } from '../errors/types.js';
|
|
22
|
-
import type { GlobalConfig, Globals, SanitizedGlobalConfig } from '../globals/config/types.js';
|
|
22
|
+
import type { GlobalAccess, GlobalConfig, Globals, SanitizedGlobalConfig } from '../globals/config/types.js';
|
|
23
23
|
import type { Block, ClientField, DataFromWidgetSlug, DefaultDocumentIDType, Field, FlattenedBlock, JobsConfig, KVAdapterResult, Payload, RegisteredPlugins, RequestContext, SelectField, TypedWidget, User, WidgetSlug } from '../index.js';
|
|
24
24
|
import type { QueryPreset, QueryPresetConstraints } from '../query-presets/types.js';
|
|
25
25
|
import type { SanitizedJobsConfig } from '../queues/config/types/index.js';
|
|
26
|
-
import type { PayloadRequest, Where } from '../types/index.js';
|
|
26
|
+
import type { MaybePromise, PayloadRequest, Where } from '../types/index.js';
|
|
27
27
|
import type { PayloadLogger } from '../utilities/logger.js';
|
|
28
28
|
/**
|
|
29
29
|
* The string path pointing to the React component. If one of the generics is `never`, you effectively mark it as a server-only or client-only component.
|
|
@@ -48,18 +48,81 @@ export type ResolvedComponent<TComponentServerProps extends never | object, TCom
|
|
|
48
48
|
Component: React.FC<TComponentClientProps | TComponentServerProps>;
|
|
49
49
|
serverProps?: TComponentServerProps;
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
/** Shared resources used while the Payload CLI is running. */
|
|
52
|
+
export type CLIRuntime = {
|
|
53
|
+
/** Directory containing the Payload config, used to resolve relative command paths. */
|
|
54
|
+
configDir: string;
|
|
55
|
+
destroy: () => Promise<void>;
|
|
56
|
+
getConfig: () => Promise<SanitizedConfig>;
|
|
57
|
+
getPayload: (options?: Omit<InitOptions, 'config'>) => Promise<Payload>;
|
|
58
|
+
readonly isScheduled: boolean;
|
|
59
|
+
markScheduled: () => void;
|
|
54
60
|
};
|
|
55
|
-
export type
|
|
61
|
+
export type CLICommandDescription = {
|
|
62
|
+
aliases?: string[];
|
|
63
|
+
description: string;
|
|
64
|
+
examples?: string[];
|
|
65
|
+
inputSchema: Record<string, unknown>;
|
|
66
|
+
name: string;
|
|
67
|
+
};
|
|
68
|
+
export type CLIGlobalOptionDescription = {
|
|
69
|
+
description: string;
|
|
70
|
+
flags: string;
|
|
71
|
+
};
|
|
72
|
+
export type CLIHelp = {
|
|
73
|
+
commands: CLICommandDescription[];
|
|
74
|
+
globalOptions: CLIGlobalOptionDescription[];
|
|
75
|
+
output: (args?: {
|
|
76
|
+
command?: string;
|
|
77
|
+
}) => void;
|
|
78
|
+
};
|
|
79
|
+
export type CLIInputSchema<Input extends Record<string, unknown> = Record<string, unknown>, Output extends Record<string, unknown> = Input> = StandardJSONSchemaV1<Input, Output> & StandardSchemaV1<Input, Output>;
|
|
80
|
+
export type CLIFieldOverride = 'argument' | {
|
|
81
|
+
flags?: string;
|
|
82
|
+
parse?: (value: string, previous: unknown) => unknown;
|
|
83
|
+
type?: 'option';
|
|
84
|
+
} | {
|
|
85
|
+
parse?: (value: string, previous: unknown) => unknown;
|
|
86
|
+
position?: number;
|
|
87
|
+
syntax?: string;
|
|
88
|
+
type: 'argument';
|
|
89
|
+
} | false;
|
|
90
|
+
/** A schema-backed command definition created with `defineCLICommand`. */
|
|
91
|
+
export type CLICommand = {
|
|
92
|
+
aliases?: string[];
|
|
93
|
+
allowUnknownOption: boolean;
|
|
94
|
+
cli: false | Partial<Record<string, CLIFieldOverride>>;
|
|
95
|
+
description: string;
|
|
96
|
+
examples?: string[];
|
|
97
|
+
handler: (context: {
|
|
98
|
+
args: Record<string, unknown>;
|
|
99
|
+
getConfig: CLIRuntime['getConfig'];
|
|
100
|
+
getPayload: CLIRuntime['getPayload'];
|
|
101
|
+
help: CLIHelp;
|
|
102
|
+
isJSON: boolean;
|
|
103
|
+
}) => MaybePromise<CLICommandResult | number | void>;
|
|
104
|
+
helpGroup?: string;
|
|
105
|
+
input: CLIInputSchema;
|
|
106
|
+
readonly schema: Record<string, unknown>;
|
|
107
|
+
};
|
|
108
|
+
/** Structured data and an optional exit code returned by a Payload CLI command. */
|
|
109
|
+
export type CLICommandResult = {
|
|
110
|
+
/** Process exit code. Omit this, or use `0`, when the command succeeds. */
|
|
111
|
+
exitCode?: number;
|
|
112
|
+
/** Data included under `result` when the command uses JSON output. */
|
|
113
|
+
result?: unknown;
|
|
114
|
+
};
|
|
115
|
+
/** A CLI command definition, import reference, or `false` to disable the command. */
|
|
116
|
+
export type CLICommandEntry = CLICommand | PayloadComponent;
|
|
117
|
+
/** CLI commands keyed by their command-line name. */
|
|
118
|
+
export type CLICommands = Record<string, CLICommandEntry>;
|
|
56
119
|
type Prettify<T> = {
|
|
57
120
|
[K in keyof T]: T[K];
|
|
58
121
|
} & NonNullable<unknown>;
|
|
59
122
|
/**
|
|
60
123
|
* @experimental The plugin API (`order`, `slug`, `options`) may change before being declared stable.
|
|
61
124
|
*/
|
|
62
|
-
export type Plugin = ((config: Config) =>
|
|
125
|
+
export type Plugin = ((config: Config) => MaybePromise<Config>) & {
|
|
63
126
|
/** @experimental Plugin options exposed for cross-plugin mutation. */
|
|
64
127
|
options?: Record<string, unknown>;
|
|
65
128
|
/** @experimental Execution order - lower values run first. Defaults to 0. */
|
|
@@ -168,14 +231,6 @@ export type OGImageConfig = {
|
|
|
168
231
|
url: string;
|
|
169
232
|
width?: number | string;
|
|
170
233
|
};
|
|
171
|
-
/**
|
|
172
|
-
* @todo find a way to remove the deep clone here.
|
|
173
|
-
* It can probably be removed after the `DeepRequired` from `Config` to `SanitizedConfig` is removed.
|
|
174
|
-
* Same with `CollectionConfig` to `SanitizedCollectionConfig`.
|
|
175
|
-
*/
|
|
176
|
-
type DeepClone<T> = T extends object ? {
|
|
177
|
-
[K in keyof T]: DeepClone<T[K]>;
|
|
178
|
-
} : T;
|
|
179
234
|
export type MetaConfig = {
|
|
180
235
|
/**
|
|
181
236
|
* When `static`, a pre-made image will be used for all pages.
|
|
@@ -189,7 +244,7 @@ export type MetaConfig = {
|
|
|
189
244
|
* @example `" - Custom CMS"`
|
|
190
245
|
*/
|
|
191
246
|
titleSuffix?: string;
|
|
192
|
-
} &
|
|
247
|
+
} & Metadata;
|
|
193
248
|
export type ServerOnlyLivePreviewProperties = keyof Pick<RootLivePreviewConfig, 'url'>;
|
|
194
249
|
type GeneratePreviewURLOptions = {
|
|
195
250
|
locale: string;
|
|
@@ -277,6 +332,8 @@ export type AccessArgs<TData = any> = {
|
|
|
277
332
|
isReadingStaticFile?: boolean;
|
|
278
333
|
/** The original request that requires an access check */
|
|
279
334
|
req: PayloadRequest;
|
|
335
|
+
/** The slug of the Collection or Global document being accessed */
|
|
336
|
+
slug: string;
|
|
280
337
|
};
|
|
281
338
|
/**
|
|
282
339
|
* Access function runs on the server
|
|
@@ -285,6 +342,10 @@ export type AccessArgs<TData = any> = {
|
|
|
285
342
|
* @see https://payloadcms.com/docs/access-control/overview
|
|
286
343
|
*/
|
|
287
344
|
export type Access<TData = any> = (args: AccessArgs<TData>) => AccessResult | Promise<AccessResult>;
|
|
345
|
+
export type BaseAccess = {
|
|
346
|
+
collections?: CollectionAccess;
|
|
347
|
+
globals?: GlobalAccess;
|
|
348
|
+
};
|
|
288
349
|
/** Web Request/Response model, but the req has more payload specific properties added to it. */
|
|
289
350
|
export type PayloadHandler = (req: PayloadRequest) => Promise<Response> | Response;
|
|
290
351
|
/**
|
|
@@ -370,6 +431,10 @@ export type ServerProps = {
|
|
|
370
431
|
* Optional because non-framework contexts (jobs, scripts, tests) may not have an adapter attached.
|
|
371
432
|
*/
|
|
372
433
|
readonly server: ServerAdapter;
|
|
434
|
+
/**
|
|
435
|
+
* Authenticated user with field read access applied. Use for values sent to the client.
|
|
436
|
+
* For access-control checks use the full principal at `req.user`.
|
|
437
|
+
*/
|
|
373
438
|
readonly user?: User;
|
|
374
439
|
readonly viewType?: ViewTypes;
|
|
375
440
|
readonly visibleEntities?: VisibleEntities;
|
|
@@ -432,14 +497,6 @@ export type BaseLocalizationConfig = {
|
|
|
432
497
|
* @example `"en"`
|
|
433
498
|
*/
|
|
434
499
|
defaultLocale: string;
|
|
435
|
-
/**
|
|
436
|
-
* Change the locale used by the default Publish button.
|
|
437
|
-
* If set to `all`, all locales will be published.
|
|
438
|
-
* If set to `active`, only the locale currently being edited will be published.
|
|
439
|
-
* The non-default option will be available via the secondary button.
|
|
440
|
-
* @default 'all'
|
|
441
|
-
*/
|
|
442
|
-
defaultLocalePublishOption?: 'active' | 'all';
|
|
443
500
|
/** Set to `true` to let missing values in localised fields fall back to the values in `defaultLocale`
|
|
444
501
|
*
|
|
445
502
|
* If false, then no requests will fallback unless a fallbackLocale is specified in the request.
|
|
@@ -479,7 +536,7 @@ export type SanitizedLocalizationConfig = Prettify<{
|
|
|
479
536
|
* @example `["en", "es", "fr", "nl", "de", "jp"]`
|
|
480
537
|
*/
|
|
481
538
|
localeCodes: string[];
|
|
482
|
-
} & LocalizationConfigWithLabels
|
|
539
|
+
} & Omit<LocalizationConfigWithLabels, 'fallback'> & Required<Pick<LocalizationConfigWithLabels, 'fallback'>>>;
|
|
483
540
|
/**
|
|
484
541
|
* @see https://payloadcms.com/docs/configuration/localization#localization
|
|
485
542
|
*/
|
|
@@ -512,7 +569,7 @@ export type FetchAPIFileUploadOptions = {
|
|
|
512
569
|
/**
|
|
513
570
|
* Returns a HTTP 413 when the file is bigger than the size limit if `true`.
|
|
514
571
|
* Otherwise, it will add a `truncated = true` to the resulting file structure.
|
|
515
|
-
* @default
|
|
572
|
+
* @default true
|
|
516
573
|
*/
|
|
517
574
|
abortOnLimit?: boolean | undefined;
|
|
518
575
|
/**
|
|
@@ -561,6 +618,12 @@ export type FetchAPIFileUploadOptions = {
|
|
|
561
618
|
* // myFileName.ext --> myFileNamee.xt
|
|
562
619
|
*/
|
|
563
620
|
preserveExtension?: boolean | number | undefined;
|
|
621
|
+
/**
|
|
622
|
+
* Maximum size in bytes for the complete raw multipart request, including files, fields, headers, and boundaries.
|
|
623
|
+
* Must be a non-negative safe integer. Set to `Infinity` to disable the request-wide limit.
|
|
624
|
+
* @default 50 * 1024 * 1024
|
|
625
|
+
*/
|
|
626
|
+
requestSizeLimit?: number | undefined;
|
|
564
627
|
/**
|
|
565
628
|
* Response which will be send to client if file size limit exceeded when `abortOnLimit` set to `true`.
|
|
566
629
|
* @default 'File size limit has been reached'
|
|
@@ -710,283 +773,409 @@ export type SidebarTab = {
|
|
|
710
773
|
/** Unique identifier for override/disable */
|
|
711
774
|
slug: string;
|
|
712
775
|
};
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
* @see https://payloadcms.com/docs/configuration/overview
|
|
717
|
-
*/
|
|
718
|
-
export type Config = {
|
|
719
|
-
/** Configure admin dashboard */
|
|
720
|
-
admin?: {
|
|
721
|
-
/** Automatically log in as a user */
|
|
722
|
-
autoLogin?: {
|
|
723
|
-
/**
|
|
724
|
-
* The email address of the user to login as
|
|
725
|
-
*/
|
|
726
|
-
email?: string;
|
|
727
|
-
/** The password of the user to login as. This is only needed if `prefillOnly` is set to true */
|
|
728
|
-
password?: string;
|
|
729
|
-
/**
|
|
730
|
-
* If set to true, the login credentials will be prefilled but the user will still need to click the login button.
|
|
731
|
-
*
|
|
732
|
-
* @default false
|
|
733
|
-
*/
|
|
734
|
-
prefillOnly?: boolean;
|
|
735
|
-
/** The username of the user to login as */
|
|
736
|
-
username?: string;
|
|
737
|
-
} | false;
|
|
776
|
+
type RootAdminConfig = {
|
|
777
|
+
/** Automatically log in as a user */
|
|
778
|
+
autoLogin?: {
|
|
738
779
|
/**
|
|
739
|
-
*
|
|
780
|
+
* The email address of the user to login as
|
|
781
|
+
*/
|
|
782
|
+
email?: string;
|
|
783
|
+
/** The password of the user to login as. This is only needed if `prefillOnly` is set to true */
|
|
784
|
+
password?: string;
|
|
785
|
+
/**
|
|
786
|
+
* If set to true, the login credentials will be prefilled but the user will still need to click the login button.
|
|
740
787
|
*
|
|
741
788
|
* @default false
|
|
742
789
|
*/
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
|
|
746
|
-
|
|
790
|
+
prefillOnly?: boolean;
|
|
791
|
+
/** The username of the user to login as */
|
|
792
|
+
username?: string;
|
|
793
|
+
} | false;
|
|
794
|
+
/**
|
|
795
|
+
* Automatically refresh user tokens for users logged into the dashboard
|
|
796
|
+
*
|
|
797
|
+
* @default false
|
|
798
|
+
*/
|
|
799
|
+
autoRefresh?: boolean;
|
|
800
|
+
/** Set account profile picture. Options: gravatar, default or a custom React component. */
|
|
801
|
+
avatar?: 'default' | 'gravatar' | {
|
|
802
|
+
Component: PayloadComponent;
|
|
803
|
+
};
|
|
804
|
+
/**
|
|
805
|
+
* Add extra and/or replace built-in components with custom components
|
|
806
|
+
*
|
|
807
|
+
* @see https://payloadcms.com/docs/custom-components/overview
|
|
808
|
+
*/
|
|
809
|
+
components?: {
|
|
810
|
+
/**
|
|
811
|
+
* Add custom components to the top right of the Admin Panel
|
|
812
|
+
*/
|
|
813
|
+
actions?: CustomComponent[];
|
|
814
|
+
/**
|
|
815
|
+
* Add custom components after the collection overview
|
|
816
|
+
*/
|
|
817
|
+
afterDashboard?: CustomComponent[];
|
|
818
|
+
/**
|
|
819
|
+
* Add custom components after the email/password field
|
|
820
|
+
*/
|
|
821
|
+
afterLogin?: CustomComponent[];
|
|
822
|
+
/**
|
|
823
|
+
* Add custom components after the navigation section
|
|
824
|
+
*/
|
|
825
|
+
afterNav?: CustomComponent[];
|
|
826
|
+
/**
|
|
827
|
+
* Add custom components after the navigation links
|
|
828
|
+
*/
|
|
829
|
+
afterNavLinks?: CustomComponent[];
|
|
830
|
+
/**
|
|
831
|
+
* Add custom components before the collection overview
|
|
832
|
+
*/
|
|
833
|
+
beforeDashboard?: CustomComponent[];
|
|
834
|
+
/**
|
|
835
|
+
* Add custom components before the email/password field
|
|
836
|
+
*/
|
|
837
|
+
beforeLogin?: CustomComponent[];
|
|
838
|
+
/**
|
|
839
|
+
* Add custom components before the navigation section
|
|
840
|
+
*/
|
|
841
|
+
beforeNav?: CustomComponent[];
|
|
842
|
+
/**
|
|
843
|
+
* Add custom components before the navigation links
|
|
844
|
+
*/
|
|
845
|
+
beforeNavLinks?: CustomComponent[];
|
|
846
|
+
/** Replace graphical components */
|
|
847
|
+
graphics?: {
|
|
848
|
+
/** Replace the icon in the navigation */
|
|
849
|
+
Icon?: CustomComponent;
|
|
850
|
+
/** Replace the logo on the login page */
|
|
851
|
+
Logo?: CustomComponent;
|
|
747
852
|
};
|
|
748
853
|
/**
|
|
749
|
-
* Add
|
|
750
|
-
*
|
|
751
|
-
* @see https://payloadcms.com/docs/custom-components/overview
|
|
854
|
+
* Add custom header to top of page globally
|
|
752
855
|
*/
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* Add custom components after the collection overview
|
|
760
|
-
*/
|
|
761
|
-
afterDashboard?: CustomComponent[];
|
|
762
|
-
/**
|
|
763
|
-
* Add custom components after the email/password field
|
|
764
|
-
*/
|
|
765
|
-
afterLogin?: CustomComponent[];
|
|
766
|
-
/**
|
|
767
|
-
* Add custom components after the navigation section
|
|
768
|
-
*/
|
|
769
|
-
afterNav?: CustomComponent[];
|
|
770
|
-
/**
|
|
771
|
-
* Add custom components after the navigation links
|
|
772
|
-
*/
|
|
773
|
-
afterNavLinks?: CustomComponent[];
|
|
774
|
-
/**
|
|
775
|
-
* Add custom components before the collection overview
|
|
776
|
-
*/
|
|
777
|
-
beforeDashboard?: CustomComponent[];
|
|
778
|
-
/**
|
|
779
|
-
* Add custom components before the email/password field
|
|
780
|
-
*/
|
|
781
|
-
beforeLogin?: CustomComponent[];
|
|
782
|
-
/**
|
|
783
|
-
* Add custom components before the navigation section
|
|
784
|
-
*/
|
|
785
|
-
beforeNav?: CustomComponent[];
|
|
786
|
-
/**
|
|
787
|
-
* Add custom components before the navigation links
|
|
788
|
-
*/
|
|
789
|
-
beforeNavLinks?: CustomComponent[];
|
|
790
|
-
/** Replace graphical components */
|
|
791
|
-
graphics?: {
|
|
792
|
-
/** Replace the icon in the navigation */
|
|
793
|
-
Icon?: CustomComponent;
|
|
794
|
-
/** Replace the logo on the login page */
|
|
795
|
-
Logo?: CustomComponent;
|
|
796
|
-
};
|
|
797
|
-
/**
|
|
798
|
-
* Add custom header to top of page globally
|
|
799
|
-
*/
|
|
800
|
-
header?: CustomComponent[];
|
|
801
|
-
/** Replace logout related components */
|
|
802
|
-
logout?: {
|
|
803
|
-
/** Replace the logout button */
|
|
804
|
-
Button?: CustomComponent;
|
|
805
|
-
};
|
|
806
|
-
/**
|
|
807
|
-
* Replace the navigation with a custom component
|
|
808
|
-
*/
|
|
809
|
-
Nav?: CustomComponent;
|
|
810
|
-
/**
|
|
811
|
-
* Wrap the admin dashboard in custom context providers
|
|
812
|
-
*/
|
|
813
|
-
providers?: PayloadComponent<{
|
|
814
|
-
children?: React.ReactNode;
|
|
815
|
-
}, {
|
|
816
|
-
children?: React.ReactNode;
|
|
817
|
-
}>[];
|
|
818
|
-
/**
|
|
819
|
-
* Add custom menu items to the navigation menu accessible via the gear icon.
|
|
820
|
-
* These components will be rendered in a popup menu above the logout button.
|
|
821
|
-
*/
|
|
822
|
-
settingsMenu?: CustomComponent[];
|
|
823
|
-
/** Sidebar configuration */
|
|
824
|
-
sidebar?: {
|
|
825
|
-
/** Extensible tab system */
|
|
826
|
-
tabs?: SidebarTab[];
|
|
827
|
-
};
|
|
828
|
-
/**
|
|
829
|
-
* Add custom items to the user menu popup in the admin panel header.
|
|
830
|
-
* These components will be rendered in the Settings sub-popup of the user menu.
|
|
831
|
-
* When empty or absent, the Settings sub-trigger is not shown.
|
|
832
|
-
*/
|
|
833
|
-
userMenuSettingsItems?: UserMenuSettingsItem[];
|
|
834
|
-
/**
|
|
835
|
-
* Replace or modify top-level admin routes, or add new ones:
|
|
836
|
-
* + `Account` - `/admin/account`
|
|
837
|
-
* + `Dashboard` - `/admin`
|
|
838
|
-
* + `:path` - `/admin/:path`
|
|
839
|
-
*/
|
|
840
|
-
views?: {
|
|
841
|
-
/** Add custom admin views */
|
|
842
|
-
[key: string]: AdminViewConfig;
|
|
843
|
-
/** Replace the account screen */
|
|
844
|
-
account?: AdminViewConfig;
|
|
845
|
-
/** Replace the admin homepage */
|
|
846
|
-
dashboard?: AdminViewConfig;
|
|
847
|
-
};
|
|
856
|
+
header?: CustomComponent[];
|
|
857
|
+
/** Replace logout related components */
|
|
858
|
+
logout?: {
|
|
859
|
+
/** Replace the logout button */
|
|
860
|
+
Button?: CustomComponent;
|
|
848
861
|
};
|
|
849
|
-
/** Extension point to add your custom data. Available in server and client. */
|
|
850
|
-
custom?: Record<string, any>;
|
|
851
862
|
/**
|
|
852
|
-
*
|
|
853
|
-
* @experimental This prop is subject to change in future releases.
|
|
863
|
+
* Replace the navigation with a custom component
|
|
854
864
|
*/
|
|
855
|
-
|
|
856
|
-
/** Global date format that will be used for all dates in the Admin panel. Any valid date-fns format pattern can be used. */
|
|
857
|
-
dateFormat?: string;
|
|
865
|
+
Nav?: CustomComponent;
|
|
858
866
|
/**
|
|
859
|
-
*
|
|
867
|
+
* Wrap the admin dashboard in custom context providers
|
|
860
868
|
*/
|
|
861
|
-
|
|
869
|
+
providers?: PayloadComponent<{
|
|
870
|
+
children?: React.ReactNode;
|
|
871
|
+
}, {
|
|
872
|
+
children?: React.ReactNode;
|
|
873
|
+
}>[];
|
|
862
874
|
/**
|
|
863
|
-
*
|
|
864
|
-
*
|
|
865
|
-
* To disable the admin panel itself, delete your `/app/(payload)/admin` directory.
|
|
866
|
-
* To disable all REST API and GraphQL endpoints, delete your `/app/(payload)/api` directory.
|
|
867
|
-
* Note: If you've modified the default paths via `admin.routes`, delete those directories instead.
|
|
875
|
+
* Add custom menu items to the navigation menu accessible via the gear icon.
|
|
876
|
+
* These components will be rendered in a popup menu above the logout button.
|
|
868
877
|
*/
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
*/
|
|
875
|
-
autoGenerate?: boolean;
|
|
876
|
-
/**
|
|
877
|
-
* The base directory for component paths starting with /.
|
|
878
|
-
* @default process.cwd()
|
|
879
|
-
**/
|
|
880
|
-
baseDir?: string;
|
|
881
|
-
/**
|
|
882
|
-
* You can use generators to add custom components to the component import map.
|
|
883
|
-
* This allows you to import custom components in the admin panel.
|
|
884
|
-
*/
|
|
885
|
-
generators?: ImportMapGenerators;
|
|
886
|
-
/**
|
|
887
|
-
* If Payload cannot find the import map file location automatically,
|
|
888
|
-
* you can manually provide it here.
|
|
889
|
-
*/
|
|
890
|
-
importMapFile?: string;
|
|
878
|
+
settingsMenu?: CustomComponent[];
|
|
879
|
+
/** Sidebar configuration */
|
|
880
|
+
sidebar?: {
|
|
881
|
+
/** Extensible tab system */
|
|
882
|
+
tabs?: SidebarTab[];
|
|
891
883
|
};
|
|
892
884
|
/**
|
|
893
|
-
*
|
|
894
|
-
*
|
|
895
|
-
*
|
|
885
|
+
* Add custom items to the user menu popup in the admin panel header.
|
|
886
|
+
* These components will be rendered in the Settings sub-popup of the user menu.
|
|
887
|
+
* When empty or absent, the Settings sub-trigger is not shown.
|
|
888
|
+
*/
|
|
889
|
+
userMenuSettingsItems?: UserMenuSettingsItem[];
|
|
890
|
+
/**
|
|
891
|
+
* Replace or modify top-level admin routes, or add new ones:
|
|
892
|
+
* + `Account` - `/admin/account`
|
|
893
|
+
* + `Dashboard` - `/admin`
|
|
894
|
+
* + `:path` - `/admin/:path`
|
|
896
895
|
*/
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
*/
|
|
905
|
-
account?: `/${string}`;
|
|
906
|
-
/** The route for the create first user page.
|
|
907
|
-
*
|
|
908
|
-
* @default '/create-first-user'
|
|
909
|
-
*/
|
|
910
|
-
createFirstUser?: `/${string}`;
|
|
911
|
-
/** The route for the forgot password page.
|
|
912
|
-
*
|
|
913
|
-
* @default '/forgot'
|
|
914
|
-
*/
|
|
915
|
-
forgot?: `/${string}`;
|
|
916
|
-
/** The route the user will be redirected to after being inactive for too long.
|
|
917
|
-
*
|
|
918
|
-
* @default '/logout-inactivity'
|
|
919
|
-
*/
|
|
920
|
-
inactivity?: `/${string}`;
|
|
921
|
-
/** The route for the login page.
|
|
922
|
-
*
|
|
923
|
-
* @default '/login'
|
|
924
|
-
*/
|
|
925
|
-
login?: `/${string}`;
|
|
926
|
-
/** The route for the logout page.
|
|
927
|
-
*
|
|
928
|
-
* @default '/logout'
|
|
929
|
-
*/
|
|
930
|
-
logout?: `/${string}`;
|
|
931
|
-
/** The route for the reset password page.
|
|
932
|
-
*
|
|
933
|
-
* @default '/reset'
|
|
934
|
-
*/
|
|
935
|
-
reset?: `/${string}`;
|
|
936
|
-
/** The route for the unauthorized page.
|
|
937
|
-
*
|
|
938
|
-
* @default '/unauthorized'
|
|
939
|
-
*/
|
|
940
|
-
unauthorized?: `/${string}`;
|
|
896
|
+
views?: {
|
|
897
|
+
/** Add custom admin views */
|
|
898
|
+
[key: string]: AdminViewConfig;
|
|
899
|
+
/** Replace the account screen */
|
|
900
|
+
account?: AdminViewConfig;
|
|
901
|
+
/** Replace the admin homepage */
|
|
902
|
+
dashboard?: AdminViewConfig;
|
|
941
903
|
};
|
|
904
|
+
};
|
|
905
|
+
/** Extension point to add your custom data. Available in server and client. */
|
|
906
|
+
custom?: Record<string, any>;
|
|
907
|
+
/**
|
|
908
|
+
* Customize the dashboard widgets
|
|
909
|
+
* @experimental This prop is subject to change in future releases.
|
|
910
|
+
*/
|
|
911
|
+
dashboard?: DashboardConfig;
|
|
912
|
+
/** Global date format that will be used for all dates in the Admin panel. Any valid date-fns format pattern can be used. */
|
|
913
|
+
dateFormat?: string;
|
|
914
|
+
/**
|
|
915
|
+
* Each entry in this map generates an entry in the importMap.
|
|
916
|
+
*/
|
|
917
|
+
dependencies?: AdminDependencies;
|
|
918
|
+
/**
|
|
919
|
+
* @deprecated
|
|
920
|
+
* This option is deprecated and will be removed in v4.
|
|
921
|
+
* To disable the admin panel itself, delete your `/app/(payload)/admin` directory.
|
|
922
|
+
* To disable all REST API and GraphQL endpoints, delete your `/app/(payload)/api` directory.
|
|
923
|
+
* Note: If you've modified the default paths via `admin.routes`, delete those directories instead.
|
|
924
|
+
*/
|
|
925
|
+
disable?: boolean;
|
|
926
|
+
importMap?: {
|
|
942
927
|
/**
|
|
943
|
-
*
|
|
944
|
-
*
|
|
945
|
-
* @default false
|
|
928
|
+
* Automatically generate component map during development
|
|
929
|
+
* @default true
|
|
946
930
|
*/
|
|
947
|
-
|
|
931
|
+
autoGenerate?: boolean;
|
|
932
|
+
/**
|
|
933
|
+
* The base directory for component paths starting with /.
|
|
934
|
+
* @default process.cwd()
|
|
935
|
+
**/
|
|
936
|
+
baseDir?: string;
|
|
937
|
+
/**
|
|
938
|
+
* You can use generators to add custom components to the component import map.
|
|
939
|
+
* This allows you to import custom components in the admin panel.
|
|
940
|
+
*/
|
|
941
|
+
generators?: ImportMapGenerators;
|
|
948
942
|
/**
|
|
949
|
-
*
|
|
943
|
+
* If Payload cannot find the import map file location automatically,
|
|
944
|
+
* you can manually provide it here.
|
|
945
|
+
*/
|
|
946
|
+
importMapFile?: string;
|
|
947
|
+
};
|
|
948
|
+
/**
|
|
949
|
+
* Live Preview options.
|
|
950
|
+
*
|
|
951
|
+
* @see https://payloadcms.com/docs/live-preview/overview
|
|
952
|
+
*/
|
|
953
|
+
livePreview?: RootLivePreviewConfig;
|
|
954
|
+
/** Base meta data to use for the Admin Panel. Included properties are titleSuffix, ogImage, and favicon. */
|
|
955
|
+
meta?: MetaConfig;
|
|
956
|
+
routes?: {
|
|
957
|
+
/** The route for the account page.
|
|
950
958
|
*
|
|
951
|
-
* @default '
|
|
959
|
+
* @default '/account'
|
|
960
|
+
*/
|
|
961
|
+
account?: `/${string}`;
|
|
962
|
+
/** The route for the create first user page.
|
|
963
|
+
*
|
|
964
|
+
* @default '/create-first-user'
|
|
965
|
+
*/
|
|
966
|
+
createFirstUser?: `/${string}`;
|
|
967
|
+
/** The route for the forgot password page.
|
|
968
|
+
*
|
|
969
|
+
* @default '/forgot'
|
|
970
|
+
*/
|
|
971
|
+
forgot?: `/${string}`;
|
|
972
|
+
/** The route the user will be redirected to after being inactive for too long.
|
|
973
|
+
*
|
|
974
|
+
* @default '/logout-inactivity'
|
|
975
|
+
*/
|
|
976
|
+
inactivity?: `/${string}`;
|
|
977
|
+
/** The route for the login page.
|
|
978
|
+
*
|
|
979
|
+
* @default '/login'
|
|
980
|
+
*/
|
|
981
|
+
login?: `/${string}`;
|
|
982
|
+
/** The route for the logout page.
|
|
983
|
+
*
|
|
984
|
+
* @default '/logout'
|
|
985
|
+
*/
|
|
986
|
+
logout?: `/${string}`;
|
|
987
|
+
/** The route for the reset password page.
|
|
988
|
+
*
|
|
989
|
+
* @default '/reset'
|
|
990
|
+
*/
|
|
991
|
+
reset?: `/${string}`;
|
|
992
|
+
/** The route for the unauthorized page.
|
|
993
|
+
*
|
|
994
|
+
* @default '/unauthorized'
|
|
995
|
+
*/
|
|
996
|
+
unauthorized?: `/${string}`;
|
|
997
|
+
};
|
|
998
|
+
/**
|
|
999
|
+
* Suppresses React hydration mismatch warnings during the hydration of the root <html> tag.
|
|
1000
|
+
* Useful in scenarios where the server-rendered HTML might intentionally differ from the client-rendered DOM.
|
|
1001
|
+
* @default false
|
|
1002
|
+
*/
|
|
1003
|
+
suppressHydrationWarning?: boolean;
|
|
1004
|
+
/**
|
|
1005
|
+
* Restrict the Admin Panel theme to use only one of your choice
|
|
1006
|
+
*
|
|
1007
|
+
* @default 'all' // The theme can be configured by users
|
|
1008
|
+
*/
|
|
1009
|
+
theme?: 'all' | 'dark' | 'light';
|
|
1010
|
+
/**
|
|
1011
|
+
* Configure timezone related settings for the admin panel.
|
|
1012
|
+
*/
|
|
1013
|
+
timezones?: TimezonesConfig;
|
|
1014
|
+
/**
|
|
1015
|
+
* Configure toast message behavior and appearance in the admin panel.
|
|
1016
|
+
* Currently using [Sonner](https://sonner.emilkowal.ski) for toast notifications.
|
|
1017
|
+
*
|
|
1018
|
+
* @experimental This property is experimental and may change in future releases. Use at your own risk.
|
|
1019
|
+
*/
|
|
1020
|
+
toast?: {
|
|
1021
|
+
/**
|
|
1022
|
+
* Time in milliseconds until the toast automatically closes.
|
|
1023
|
+
* @default 4000
|
|
1024
|
+
*/
|
|
1025
|
+
duration?: number;
|
|
1026
|
+
/**
|
|
1027
|
+
* If `true`, will expand the message stack so that all messages are shown simultaneously without user interaction.
|
|
1028
|
+
* Otherwise only the latest notification can be read until the user hovers the stack.
|
|
1029
|
+
* @default false
|
|
952
1030
|
*/
|
|
953
|
-
|
|
1031
|
+
expand?: boolean;
|
|
954
1032
|
/**
|
|
955
|
-
*
|
|
1033
|
+
* The maximum number of toasts that can be visible on the screen at once.
|
|
1034
|
+
* @default 5
|
|
956
1035
|
*/
|
|
957
|
-
|
|
1036
|
+
limit?: number;
|
|
958
1037
|
/**
|
|
959
|
-
*
|
|
960
|
-
*
|
|
1038
|
+
* The position of the toast on the screen.
|
|
1039
|
+
* @default 'bottom-right'
|
|
1040
|
+
*/
|
|
1041
|
+
position?: 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right';
|
|
1042
|
+
};
|
|
1043
|
+
/** The slug of a Collection that you want to be used to log in to the Admin dashboard. */
|
|
1044
|
+
user?: string;
|
|
1045
|
+
};
|
|
1046
|
+
type RootGraphQLConfig = {
|
|
1047
|
+
disable?: boolean;
|
|
1048
|
+
/**
|
|
1049
|
+
* Disable introspection queries in production.
|
|
1050
|
+
*
|
|
1051
|
+
* @default true
|
|
1052
|
+
*/
|
|
1053
|
+
disableIntrospectionInProduction?: boolean;
|
|
1054
|
+
/**
|
|
1055
|
+
* Disable the GraphQL Playground in production.
|
|
1056
|
+
*
|
|
1057
|
+
* @default true
|
|
1058
|
+
*/
|
|
1059
|
+
disablePlaygroundInProduction?: boolean;
|
|
1060
|
+
maxComplexity?: number;
|
|
1061
|
+
/**
|
|
1062
|
+
* Function that returns an object containing keys to custom GraphQL mutations
|
|
1063
|
+
*
|
|
1064
|
+
* @see https://payloadcms.com/docs/graphql/extending
|
|
1065
|
+
*/
|
|
1066
|
+
mutations?: GraphQLExtension;
|
|
1067
|
+
/**
|
|
1068
|
+
* Function that returns an object containing keys to custom GraphQL queries
|
|
1069
|
+
*
|
|
1070
|
+
* @see https://payloadcms.com/docs/graphql/extending
|
|
1071
|
+
*/
|
|
1072
|
+
queries?: GraphQLExtension;
|
|
1073
|
+
/**
|
|
1074
|
+
* Filepath to write the generated schema to
|
|
1075
|
+
*/
|
|
1076
|
+
schemaOutputFile?: string;
|
|
1077
|
+
/**
|
|
1078
|
+
* Function that returns an array of validation rules to apply to the GraphQL schema
|
|
1079
|
+
*
|
|
1080
|
+
* @see https://payloadcms.com/docs/graphql/overview#custom-validation-rules
|
|
1081
|
+
*/
|
|
1082
|
+
validationRules?: (args: GraphQL.ExecutionArgs) => GraphQL.ValidationRule[];
|
|
1083
|
+
};
|
|
1084
|
+
type RootTypeScriptConfig = {
|
|
1085
|
+
/**
|
|
1086
|
+
* Automatically generate types during development
|
|
1087
|
+
* @default true
|
|
1088
|
+
*/
|
|
1089
|
+
autoGenerate?: boolean;
|
|
1090
|
+
/** Disable declare block in generated types file */
|
|
1091
|
+
declare?: {
|
|
1092
|
+
/**
|
|
1093
|
+
* @internal internal use only to allow for multiple declarations within a monorepo and suppress the "Duplicate identifier GeneratedTypes" error
|
|
1094
|
+
*
|
|
1095
|
+
* Adds a @ts-ignore flag above the GeneratedTypes interface declaration
|
|
961
1096
|
*
|
|
962
|
-
* @
|
|
1097
|
+
* @default false
|
|
963
1098
|
*/
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1099
|
+
ignoreTSError?: boolean;
|
|
1100
|
+
} | false;
|
|
1101
|
+
/**
|
|
1102
|
+
* Also generate a write-shaped input type (e.g. `PostInput`) next to each read type, describing
|
|
1103
|
+
* what `create`/`update` accept: relationships and uploads as IDs only, `id` and `defaultValue`
|
|
1104
|
+
* fields optional, and `createdAt`/`updatedAt`/virtual/join fields removed. These are
|
|
1105
|
+
* exposed on `Config['collectionsInput']` and `Config['globalsInput']`. Set `true` to turn them on.
|
|
1106
|
+
* Draft-enabled entities retain `_status` because it is a writable create/update field.
|
|
1107
|
+
*
|
|
1108
|
+
* @default false
|
|
1109
|
+
*
|
|
1110
|
+
* @remarks
|
|
1111
|
+
* Off by default. The Local API's `create`/`update` still type their `data` against the read
|
|
1112
|
+
* type, so these input types aren't used internally - they're here for you to opt into, e.g. to
|
|
1113
|
+
* type a form payload, a seed script, or an API client. `@payloadcms/plugin-mcp` also uses the
|
|
1114
|
+
* input schema, but it builds that itself at runtime, so MCP gets the accurate write schema
|
|
1115
|
+
* whether or not this flag is on.
|
|
1116
|
+
*
|
|
1117
|
+
* @todo We'd like to turn this on by default (or have the Local API use the input type
|
|
1118
|
+
* directly), but there's a catch. When you read a document with `depth > 0`, its relationships
|
|
1119
|
+
* come back as full documents rather than IDs. A strict ID-only input type would reject that and
|
|
1120
|
+
* break the common "read a doc, change a field, save it back" pattern. To enable it by default,
|
|
1121
|
+
* the input type would first need to accept a relationship as either an ID or the full document
|
|
1122
|
+
* (which is what Payload already does at runtime), while keeping `id`, `defaultValue`, and
|
|
1123
|
+
* auto-managed fields optional. Until then it stays opt-in, so we don't put a type that's
|
|
1124
|
+
* stricter than the runtime on the main write path.
|
|
1125
|
+
*/
|
|
1126
|
+
generateInputTypes?: boolean;
|
|
1127
|
+
/** Filename to write the generated types to */
|
|
1128
|
+
outputFile?: string;
|
|
1129
|
+
/**
|
|
1130
|
+
* Post-process the generated TypeScript types string before writing to file.
|
|
1131
|
+
* Useful for plugins that need to inject generic types that JSON Schema cannot express.
|
|
1132
|
+
*
|
|
1133
|
+
* Functions are applied in order after the built-in Select generics are added.
|
|
1134
|
+
*
|
|
1135
|
+
* @example
|
|
1136
|
+
* ```ts
|
|
1137
|
+
* postProcess: [
|
|
1138
|
+
* ({ compiledTypes, config }) => {
|
|
1139
|
+
* const genericType = `export type MyGeneric<T> = { value: T };`
|
|
1140
|
+
* return compiledTypes.replace(/(\/\*[\s\S]*?\*\/\n)/, `$1\n${genericType}\n`)
|
|
1141
|
+
* },
|
|
1142
|
+
* ]
|
|
1143
|
+
* ```
|
|
1144
|
+
*/
|
|
1145
|
+
postProcess?: Array<(args: {
|
|
1146
|
+
compiledTypes: string;
|
|
1147
|
+
config: SanitizedConfig;
|
|
1148
|
+
}) => string>;
|
|
1149
|
+
/**
|
|
1150
|
+
* Allows you to modify the base JSON schema that is generated during generate:types. This JSON schema will be used
|
|
1151
|
+
* to generate the TypeScript interfaces.
|
|
1152
|
+
*/
|
|
1153
|
+
schema?: Array<(args: {
|
|
1154
|
+
collectionIDFieldTypes: {
|
|
1155
|
+
[key: string]: 'number' | 'string';
|
|
986
1156
|
};
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1157
|
+
config: SanitizedConfig;
|
|
1158
|
+
i18n: I18n;
|
|
1159
|
+
jsonSchema: JSONSchema4;
|
|
1160
|
+
}) => JSONSchema4>;
|
|
1161
|
+
/**
|
|
1162
|
+
* Enable strict type safety for draft operations. When enabled, the `draft` parameter is forbidden
|
|
1163
|
+
* on collections without drafts, and query results with `draft: true` type required fields as optional.
|
|
1164
|
+
* This prevents invalid draft usage at compile time and ensures type correctness across all Local API operations.
|
|
1165
|
+
*
|
|
1166
|
+
* @default false
|
|
1167
|
+
* @todo Remove in v4. Strict draft types will become the default behavior.
|
|
1168
|
+
*/
|
|
1169
|
+
strictDraftTypes?: boolean;
|
|
1170
|
+
};
|
|
1171
|
+
/**
|
|
1172
|
+
* This is the central configuration
|
|
1173
|
+
*
|
|
1174
|
+
* @see https://payloadcms.com/docs/configuration/overview
|
|
1175
|
+
*/
|
|
1176
|
+
export type Config = {
|
|
1177
|
+
/** Configure admin dashboard */
|
|
1178
|
+
admin?: RootAdminConfig;
|
|
990
1179
|
/**
|
|
991
1180
|
* Configure authentication-related Payload-wide settings.
|
|
992
1181
|
*/
|
|
@@ -995,10 +1184,12 @@ export type Config = {
|
|
|
995
1184
|
* Define which JWT identification methods you'd like to support for Payload's local auth strategy, as well as the order that they're retrieved in.
|
|
996
1185
|
* Defaults to ['JWT', 'Bearer', 'cookie]
|
|
997
1186
|
*/
|
|
998
|
-
jwtOrder
|
|
1187
|
+
jwtOrder?: ('Bearer' | 'cookie' | 'JWT')[];
|
|
999
1188
|
};
|
|
1000
|
-
/**
|
|
1001
|
-
|
|
1189
|
+
/**
|
|
1190
|
+
* Define Collection and Global access constraints that are combined with document Access Control using AND semantics.
|
|
1191
|
+
*/
|
|
1192
|
+
baseAccess?: BaseAccess;
|
|
1002
1193
|
blocks?: Block[];
|
|
1003
1194
|
/**
|
|
1004
1195
|
* Pass additional options to the parser used to process `multipart/form-data` requests.
|
|
@@ -1009,6 +1200,11 @@ export type Config = {
|
|
|
1009
1200
|
* @experimental This property is experimental and may change in future releases. Use at your own risk.
|
|
1010
1201
|
*/
|
|
1011
1202
|
bodyParser?: Partial<BusboyConfig>;
|
|
1203
|
+
/** Customize the Payload CLI, or set to `false` to disable it. */
|
|
1204
|
+
cli?: {
|
|
1205
|
+
/** Add, replace, or disable commands by name. Built-in commands are added during sanitization. */
|
|
1206
|
+
commands?: CLICommands;
|
|
1207
|
+
} | false;
|
|
1012
1208
|
/**
|
|
1013
1209
|
* Manage the datamodel of your application
|
|
1014
1210
|
*
|
|
@@ -1066,44 +1262,7 @@ export type Config = {
|
|
|
1066
1262
|
*
|
|
1067
1263
|
* @see https://payloadcms.com/docs/graphql/overview
|
|
1068
1264
|
*/
|
|
1069
|
-
graphQL?:
|
|
1070
|
-
disable?: boolean;
|
|
1071
|
-
/**
|
|
1072
|
-
* Disable introspection queries in production.
|
|
1073
|
-
*
|
|
1074
|
-
* @default true
|
|
1075
|
-
*/
|
|
1076
|
-
disableIntrospectionInProduction?: boolean;
|
|
1077
|
-
/**
|
|
1078
|
-
* Disable the GraphQL Playground in production.
|
|
1079
|
-
*
|
|
1080
|
-
* @default true
|
|
1081
|
-
*/
|
|
1082
|
-
disablePlaygroundInProduction?: boolean;
|
|
1083
|
-
maxComplexity?: number;
|
|
1084
|
-
/**
|
|
1085
|
-
* Function that returns an object containing keys to custom GraphQL mutations
|
|
1086
|
-
*
|
|
1087
|
-
* @see https://payloadcms.com/docs/graphql/extending
|
|
1088
|
-
*/
|
|
1089
|
-
mutations?: GraphQLExtension;
|
|
1090
|
-
/**
|
|
1091
|
-
* Function that returns an object containing keys to custom GraphQL queries
|
|
1092
|
-
*
|
|
1093
|
-
* @see https://payloadcms.com/docs/graphql/extending
|
|
1094
|
-
*/
|
|
1095
|
-
queries?: GraphQLExtension;
|
|
1096
|
-
/**
|
|
1097
|
-
* Filepath to write the generated schema to
|
|
1098
|
-
*/
|
|
1099
|
-
schemaOutputFile?: string;
|
|
1100
|
-
/**
|
|
1101
|
-
* Function that returns an array of validation rules to apply to the GraphQL schema
|
|
1102
|
-
*
|
|
1103
|
-
* @see https://payloadcms.com/docs/graphql/overview#custom-validation-rules
|
|
1104
|
-
*/
|
|
1105
|
-
validationRules?: (args: GraphQL.ExecutionArgs) => GraphQL.ValidationRule[];
|
|
1106
|
-
};
|
|
1265
|
+
graphQL?: RootGraphQLConfig;
|
|
1107
1266
|
/**
|
|
1108
1267
|
* Tap into Payload-wide hooks.
|
|
1109
1268
|
*
|
|
@@ -1200,6 +1359,13 @@ export type Config = {
|
|
|
1200
1359
|
* @see https://payloadcms.com/docs/plugins/overview
|
|
1201
1360
|
*/
|
|
1202
1361
|
plugins?: Plugin[];
|
|
1362
|
+
/**
|
|
1363
|
+
* Previous `secret` values that should still be accepted for reads (verifying
|
|
1364
|
+
* JWTs, matching API keys, decrypting stored values) during a bounded key
|
|
1365
|
+
* rotation. New data is always written with the current `secret`. Retire these
|
|
1366
|
+
* once `rotateSecret` has re-keyed existing data.
|
|
1367
|
+
*/
|
|
1368
|
+
previousSecrets?: string[];
|
|
1203
1369
|
/**
|
|
1204
1370
|
* Allow you to save and share filters, columns, and sort orders for your collections.
|
|
1205
1371
|
* @see https://payloadcms.com/docs/query-presets/overview
|
|
@@ -1333,136 +1499,45 @@ export type Config = {
|
|
|
1333
1499
|
/** Send anonymous telemetry data about general usage. */
|
|
1334
1500
|
telemetry?: boolean;
|
|
1335
1501
|
/** Control how typescript interfaces are generated from your collections. */
|
|
1336
|
-
typescript?:
|
|
1337
|
-
/**
|
|
1338
|
-
* Automatically generate types during development
|
|
1339
|
-
* @default true
|
|
1340
|
-
*/
|
|
1341
|
-
autoGenerate?: boolean;
|
|
1342
|
-
/** Disable declare block in generated types file */
|
|
1343
|
-
declare?: {
|
|
1344
|
-
/**
|
|
1345
|
-
* @internal internal use only to allow for multiple declarations within a monorepo and suppress the "Duplicate identifier GeneratedTypes" error
|
|
1346
|
-
*
|
|
1347
|
-
* Adds a @ts-ignore flag above the GeneratedTypes interface declaration
|
|
1348
|
-
*
|
|
1349
|
-
* @default false
|
|
1350
|
-
*/
|
|
1351
|
-
ignoreTSError?: boolean;
|
|
1352
|
-
} | false;
|
|
1353
|
-
/**
|
|
1354
|
-
* Also generate a write-shaped input type (e.g. `PostInput`) next to each read type, describing
|
|
1355
|
-
* what `create`/`update` accept: relationships and uploads as IDs only, `id` and `defaultValue`
|
|
1356
|
-
* fields optional, and `createdAt`/`updatedAt`/virtual/join fields removed. These are
|
|
1357
|
-
* exposed on `Config['collectionsInput']` and `Config['globalsInput']`. Set `true` to turn them on.
|
|
1358
|
-
* Draft-enabled entities retain `_status` because it is a writable create/update field.
|
|
1359
|
-
*
|
|
1360
|
-
* @default false
|
|
1361
|
-
*
|
|
1362
|
-
* @remarks
|
|
1363
|
-
* Off by default. The Local API's `create`/`update` still type their `data` against the read
|
|
1364
|
-
* type, so these input types aren't used internally - they're here for you to opt into, e.g. to
|
|
1365
|
-
* type a form payload, a seed script, or an API client. `@payloadcms/plugin-mcp` also uses the
|
|
1366
|
-
* input schema, but it builds that itself at runtime, so MCP gets the accurate write schema
|
|
1367
|
-
* whether or not this flag is on.
|
|
1368
|
-
*
|
|
1369
|
-
* @todo We'd like to turn this on by default (or have the Local API use the input type
|
|
1370
|
-
* directly), but there's a catch. When you read a document with `depth > 0`, its relationships
|
|
1371
|
-
* come back as full documents rather than IDs. A strict ID-only input type would reject that and
|
|
1372
|
-
* break the common "read a doc, change a field, save it back" pattern. To enable it by default,
|
|
1373
|
-
* the input type would first need to accept a relationship as either an ID or the full document
|
|
1374
|
-
* (which is what Payload already does at runtime), while keeping `id`, `defaultValue`, and
|
|
1375
|
-
* auto-managed fields optional. Until then it stays opt-in, so we don't put a type that's
|
|
1376
|
-
* stricter than the runtime on the main write path.
|
|
1377
|
-
*/
|
|
1378
|
-
generateInputTypes?: boolean;
|
|
1379
|
-
/** Filename to write the generated types to */
|
|
1380
|
-
outputFile?: string;
|
|
1381
|
-
/**
|
|
1382
|
-
* Post-process the generated TypeScript types string before writing to file.
|
|
1383
|
-
* Useful for plugins that need to inject generic types that JSON Schema cannot express.
|
|
1384
|
-
*
|
|
1385
|
-
* Functions are applied in order after the built-in Select generics are added.
|
|
1386
|
-
*
|
|
1387
|
-
* @example
|
|
1388
|
-
* ```ts
|
|
1389
|
-
* postProcess: [
|
|
1390
|
-
* ({ compiledTypes, config }) => {
|
|
1391
|
-
* const genericType = `export type MyGeneric<T> = { value: T };`
|
|
1392
|
-
* return compiledTypes.replace(/(\/\*[\s\S]*?\*\/\n)/, `$1\n${genericType}\n`)
|
|
1393
|
-
* },
|
|
1394
|
-
* ]
|
|
1395
|
-
* ```
|
|
1396
|
-
*/
|
|
1397
|
-
postProcess?: Array<(args: {
|
|
1398
|
-
compiledTypes: string;
|
|
1399
|
-
config: SanitizedConfig;
|
|
1400
|
-
}) => string>;
|
|
1401
|
-
/**
|
|
1402
|
-
* Allows you to modify the base JSON schema that is generated during generate:types. This JSON schema will be used
|
|
1403
|
-
* to generate the TypeScript interfaces.
|
|
1404
|
-
*/
|
|
1405
|
-
schema?: Array<(args: {
|
|
1406
|
-
collectionIDFieldTypes: {
|
|
1407
|
-
[key: string]: 'number' | 'string';
|
|
1408
|
-
};
|
|
1409
|
-
config: SanitizedConfig;
|
|
1410
|
-
i18n: I18n;
|
|
1411
|
-
jsonSchema: JSONSchema4;
|
|
1412
|
-
}) => JSONSchema4>;
|
|
1413
|
-
/**
|
|
1414
|
-
* Enable strict type safety for draft operations. When enabled, the `draft` parameter is forbidden
|
|
1415
|
-
* on collections without drafts, and query results with `draft: true` type required fields as optional.
|
|
1416
|
-
* This prevents invalid draft usage at compile time and ensures type correctness across all Local API operations.
|
|
1417
|
-
*
|
|
1418
|
-
* @default false
|
|
1419
|
-
* @todo Remove in v4. Strict draft types will become the default behavior.
|
|
1420
|
-
*/
|
|
1421
|
-
strictDraftTypes?: boolean;
|
|
1422
|
-
};
|
|
1502
|
+
typescript?: RootTypeScriptConfig;
|
|
1423
1503
|
/**
|
|
1424
1504
|
* Customize the handling of incoming file uploads for collections that have uploads enabled.
|
|
1425
1505
|
*/
|
|
1426
1506
|
upload?: FetchAPIFileUploadOptions;
|
|
1427
1507
|
};
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
}
|
|
1444
|
-
blocks?: FlattenedBlock[];
|
|
1508
|
+
interface SanitizedAdminConfig extends Omit<RootAdminConfig, 'avatar' | 'components' | 'custom' | 'dashboard' | 'dateFormat' | 'dependencies' | 'importMap' | 'meta' | 'routes' | 'theme' | 'timezones' | 'user'>, Required<Pick<RootAdminConfig, 'avatar' | 'components' | 'custom' | 'dateFormat' | 'dependencies' | 'theme' | 'user'>> {
|
|
1509
|
+
dashboard: Required<DashboardConfig>;
|
|
1510
|
+
importMap: Omit<NonNullable<RootAdminConfig['importMap']>, 'baseDir'> & Required<Pick<NonNullable<RootAdminConfig['importMap']>, 'baseDir'>>;
|
|
1511
|
+
meta: Omit<MetaConfig, 'defaultOGImageType' | 'robots' | 'titleSuffix'> & Required<Pick<MetaConfig, 'defaultOGImageType' | 'robots' | 'titleSuffix'>>;
|
|
1512
|
+
routes: Required<NonNullable<RootAdminConfig['routes']>>;
|
|
1513
|
+
timezones: SanitizedTimezoneConfig;
|
|
1514
|
+
}
|
|
1515
|
+
type SanitizedGraphQLConfig = Omit<RootGraphQLConfig, 'disableIntrospectionInProduction' | 'disablePlaygroundInProduction' | 'maxComplexity' | 'schemaOutputFile'> & Required<Pick<RootGraphQLConfig, 'disableIntrospectionInProduction' | 'disablePlaygroundInProduction' | 'maxComplexity' | 'schemaOutputFile'>>;
|
|
1516
|
+
type SanitizedTypeScriptConfig = Omit<RootTypeScriptConfig, 'autoGenerate' | 'outputFile'> & Required<Pick<RootTypeScriptConfig, 'autoGenerate' | 'outputFile'>>;
|
|
1517
|
+
export interface SanitizedConfig extends Omit<Config, 'admin' | 'auth' | 'blocks' | 'cli' | 'collections' | 'cookiePrefix' | 'cors' | 'csrf' | 'custom' | 'defaultDepth' | 'defaultMaxTextLength' | 'editor' | 'endpoints' | 'globals' | 'graphQL' | 'hooks' | 'i18n' | 'jobs' | 'kv' | 'localization' | 'loggingLevels' | 'maxDepth' | 'routes' | 'serverURL' | 'storage' | 'telemetry' | 'typescript' | 'upload'>, Required<Pick<Config, 'cookiePrefix' | 'cors' | 'csrf' | 'custom' | 'defaultDepth' | 'defaultMaxTextLength' | 'endpoints' | 'hooks' | 'kv' | 'loggingLevels' | 'maxDepth' | 'serverURL' | 'storage' | 'telemetry'>> {
|
|
1518
|
+
admin: SanitizedAdminConfig;
|
|
1519
|
+
auth: Required<NonNullable<Config['auth']>>;
|
|
1520
|
+
blocks: FlattenedBlock[];
|
|
1521
|
+
cli: {
|
|
1522
|
+
commands: CLICommands;
|
|
1523
|
+
} | false;
|
|
1445
1524
|
collections: SanitizedCollectionConfig[];
|
|
1446
1525
|
/** Default richtext editor to use for richText fields */
|
|
1447
1526
|
editor?: RichTextAdapter<any, any, any>;
|
|
1448
|
-
endpoints: Endpoint[];
|
|
1449
1527
|
globals: SanitizedGlobalConfig[];
|
|
1528
|
+
graphQL: SanitizedGraphQLConfig;
|
|
1450
1529
|
i18n: Required<I18nOptions>;
|
|
1451
1530
|
jobs: SanitizedJobsConfig;
|
|
1452
1531
|
localization: false | SanitizedLocalizationConfig;
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
configDir: string;
|
|
1456
|
-
rawConfig: string;
|
|
1457
|
-
};
|
|
1458
|
-
storage: StorageAdapter[];
|
|
1532
|
+
routes: Required<NonNullable<Config['routes']>>;
|
|
1533
|
+
typescript: SanitizedTypeScriptConfig;
|
|
1459
1534
|
upload: {
|
|
1460
1535
|
/**
|
|
1461
1536
|
* Deduped list of adapters used in the project
|
|
1462
1537
|
*/
|
|
1463
1538
|
adapters: string[];
|
|
1464
1539
|
} & FetchAPIFileUploadOptions;
|
|
1465
|
-
}
|
|
1540
|
+
}
|
|
1466
1541
|
export type EditConfig = EditConfigWithoutRoot | EditConfigWithRoot;
|
|
1467
1542
|
/**
|
|
1468
1543
|
* Replace or modify _all_ nested document views and routes, including the document header, controls, and tabs. This cannot be used in conjunction with other nested views.
|