payload 4.0.0-internal.ea6e8f8 → 4.0.0-internal.ec73d44

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.
Files changed (191) hide show
  1. package/dist/admin/adapters/router.d.ts +1 -1
  2. package/dist/admin/adapters/router.d.ts.map +1 -1
  3. package/dist/admin/adapters/router.js.map +1 -1
  4. package/dist/admin/forms/Diff.d.ts +0 -4
  5. package/dist/admin/forms/Diff.d.ts.map +1 -1
  6. package/dist/admin/forms/Diff.js.map +1 -1
  7. package/dist/admin/getAdminPreferences.js +1 -1
  8. package/dist/admin/getAdminPreferences.js.map +1 -1
  9. package/dist/admin/initAdminContext.js.map +1 -1
  10. package/dist/auth/getFieldsToSign.js.map +1 -1
  11. package/dist/auth/loginWithCookie.js.map +1 -1
  12. package/dist/auth/operations/resetPassword.d.ts.map +1 -1
  13. package/dist/auth/operations/resetPassword.js +50 -1
  14. package/dist/auth/operations/resetPassword.js.map +1 -1
  15. package/dist/auth/serverFunctions/cookies.js.map +1 -1
  16. package/dist/auth/serverFunctions/login.js.map +1 -1
  17. package/dist/auth/types.d.ts.map +1 -1
  18. package/dist/auth/types.js.map +1 -1
  19. package/dist/branching/discard.js +1 -1
  20. package/dist/branching/discard.js.map +1 -1
  21. package/dist/branching/merge/prepareMerge.js +1 -1
  22. package/dist/branching/merge/prepareMerge.js.map +1 -1
  23. package/dist/branching/merge/retryFailedCleanups.js.map +1 -1
  24. package/dist/branching/resolveBranchQuery.d.ts.map +1 -1
  25. package/dist/branching/resolveBranchQuery.js +0 -3
  26. package/dist/branching/resolveBranchQuery.js.map +1 -1
  27. package/dist/branching/sanitizeBranchingConfig.d.ts.map +1 -1
  28. package/dist/branching/sanitizeBranchingConfig.js +0 -3
  29. package/dist/branching/sanitizeBranchingConfig.js.map +1 -1
  30. package/dist/branching/schedule/job.d.ts.map +1 -1
  31. package/dist/branching/schedule/job.js +7 -0
  32. package/dist/branching/schedule/job.js.map +1 -1
  33. package/dist/branching/types.d.ts +4 -13
  34. package/dist/branching/types.d.ts.map +1 -1
  35. package/dist/branching/types.js.map +1 -1
  36. package/dist/cli/commands/data/utilities.d.ts +1 -1
  37. package/dist/cli/commands/data/utilities.d.ts.map +1 -1
  38. package/dist/cli/commands/data/utilities.js.map +1 -1
  39. package/dist/cli/defineCLICommand.js +1 -1
  40. package/dist/cli/defineCLICommand.js.map +1 -1
  41. package/dist/collections/config/client.js.map +1 -1
  42. package/dist/collections/config/types.d.ts +4 -1
  43. package/dist/collections/config/types.d.ts.map +1 -1
  44. package/dist/collections/config/types.js.map +1 -1
  45. package/dist/collections/operations/delete.js.map +1 -1
  46. package/dist/collections/operations/deleteByID.js.map +1 -1
  47. package/dist/collections/operations/findByID.js.map +1 -1
  48. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  49. package/dist/collections/operations/findVersionByID.js +11 -0
  50. package/dist/collections/operations/findVersionByID.js.map +1 -1
  51. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  52. package/dist/collections/operations/findVersions.js +11 -0
  53. package/dist/collections/operations/findVersions.js.map +1 -1
  54. package/dist/collections/operations/local/findDistinct.js.map +1 -1
  55. package/dist/collections/operations/renameFile.js +1 -1
  56. package/dist/collections/operations/renameFile.js.map +1 -1
  57. package/dist/collections/operations/update.js.map +1 -1
  58. package/dist/collections/operations/updateByID.js.map +1 -1
  59. package/dist/collections/operations/utilities/update.js +1 -1
  60. package/dist/collections/operations/utilities/update.js.map +1 -1
  61. package/dist/collections/operations/validate.js +4 -4
  62. package/dist/collections/operations/validate.js.map +1 -1
  63. package/dist/config/client.d.ts.map +1 -1
  64. package/dist/config/client.js +1 -0
  65. package/dist/config/client.js.map +1 -1
  66. package/dist/config/defaults.d.ts.map +1 -1
  67. package/dist/config/defaults.js +1 -0
  68. package/dist/config/defaults.js.map +1 -1
  69. package/dist/config/definePlugin.js.map +1 -1
  70. package/dist/config/sanitize.js +2 -2
  71. package/dist/config/sanitize.js.map +1 -1
  72. package/dist/config/types.d.ts +8 -1
  73. package/dist/config/types.d.ts.map +1 -1
  74. package/dist/config/types.js.map +1 -1
  75. package/dist/database/types.d.ts +4 -0
  76. package/dist/database/types.d.ts.map +1 -1
  77. package/dist/database/types.js.map +1 -1
  78. package/dist/exports/build-config.d.ts +9 -0
  79. package/dist/exports/build-config.d.ts.map +1 -0
  80. package/dist/exports/build-config.js +38 -0
  81. package/dist/exports/build-config.js.map +1 -0
  82. package/dist/fields/config/client.js.map +1 -1
  83. package/dist/fields/config/reservedFieldNames.d.ts.map +1 -1
  84. package/dist/fields/config/reservedFieldNames.js.map +1 -1
  85. package/dist/fields/config/types.d.ts.map +1 -1
  86. package/dist/fields/config/types.js.map +1 -1
  87. package/dist/fields/hooks/afterChange/promise.js.map +1 -1
  88. package/dist/fields/hooks/afterRead/promise.js.map +1 -1
  89. package/dist/fields/hooks/beforeChange/flattenValidationData.d.ts +14 -0
  90. package/dist/fields/hooks/beforeChange/flattenValidationData.d.ts.map +1 -0
  91. package/dist/fields/hooks/beforeChange/flattenValidationData.js +36 -0
  92. package/dist/fields/hooks/beforeChange/flattenValidationData.js.map +1 -0
  93. package/dist/fields/hooks/beforeChange/promise.d.ts +2 -1
  94. package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
  95. package/dist/fields/hooks/beforeChange/promise.js +96 -22
  96. package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
  97. package/dist/fields/hooks/beforeChange/traverseFields.d.ts +2 -1
  98. package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
  99. package/dist/fields/hooks/beforeChange/traverseFields.js +2 -1
  100. package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
  101. package/dist/fields/validations.d.ts.map +1 -1
  102. package/dist/fields/validations.js +4 -1
  103. package/dist/fields/validations.js.map +1 -1
  104. package/dist/globals/config/types.d.ts +2 -1
  105. package/dist/globals/config/types.d.ts.map +1 -1
  106. package/dist/globals/config/types.js.map +1 -1
  107. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  108. package/dist/globals/operations/findVersionByID.js +7 -0
  109. package/dist/globals/operations/findVersionByID.js.map +1 -1
  110. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  111. package/dist/globals/operations/findVersions.js +5 -0
  112. package/dist/globals/operations/findVersions.js.map +1 -1
  113. package/dist/globals/operations/local/findOne.js.map +1 -1
  114. package/dist/globals/operations/local/update.js.map +1 -1
  115. package/dist/globals/operations/restoreVersion.d.ts +2 -3
  116. package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
  117. package/dist/globals/operations/restoreVersion.js +24 -20
  118. package/dist/globals/operations/restoreVersion.js.map +1 -1
  119. package/dist/globals/operations/validate.js +1 -1
  120. package/dist/globals/operations/validate.js.map +1 -1
  121. package/dist/hierarchy/addHierarchyToCollection.d.ts.map +1 -1
  122. package/dist/hierarchy/addHierarchyToCollection.js +32 -21
  123. package/dist/hierarchy/addHierarchyToCollection.js.map +1 -1
  124. package/dist/hierarchy/createFolderField.js.map +1 -1
  125. package/dist/hierarchy/resolveHierarchyCollections.js +9 -3
  126. package/dist/hierarchy/resolveHierarchyCollections.js.map +1 -1
  127. package/dist/hierarchy/utils/computePaths.d.ts.map +1 -1
  128. package/dist/hierarchy/utils/computePaths.js.map +1 -1
  129. package/dist/index.bundled.d.ts +47 -27
  130. package/dist/llm-instructions/getInstructionsCollection.d.ts.map +1 -1
  131. package/dist/llm-instructions/getInstructionsCollection.js +2 -0
  132. package/dist/llm-instructions/getInstructionsCollection.js.map +1 -1
  133. package/dist/preferences/keys.d.ts +3 -9
  134. package/dist/preferences/keys.d.ts.map +1 -1
  135. package/dist/preferences/keys.js +3 -9
  136. package/dist/preferences/keys.js.map +1 -1
  137. package/dist/preferences/types.d.ts +1 -1
  138. package/dist/preferences/types.js.map +1 -1
  139. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js +1 -1
  140. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js.map +1 -1
  141. package/dist/types/index.d.ts +9 -3
  142. package/dist/types/index.d.ts.map +1 -1
  143. package/dist/types/index.js.map +1 -1
  144. package/dist/uploads/fileVersioning/archive.js.map +1 -1
  145. package/dist/uploads/fileVersioning/cloudStorage.js.map +1 -1
  146. package/dist/uploads/fileVersioning/resolveHistoricalFile.js.map +1 -1
  147. package/dist/uploads/formatFilesize.js +1 -1
  148. package/dist/uploads/formatFilesize.js.map +1 -1
  149. package/dist/uploads/generateFileData.d.ts.map +1 -1
  150. package/dist/uploads/generateFileData.js.map +1 -1
  151. package/dist/uploads/getFileContentRequirement.js.map +1 -1
  152. package/dist/uploads/getFileFromUploadInstructions.js.map +1 -1
  153. package/dist/uploads/safeFetch.js.map +1 -1
  154. package/dist/uploads/stagedUpload.js.map +1 -1
  155. package/dist/uploads/transformers/handleDynamicFileRequest.js +11 -2
  156. package/dist/uploads/transformers/handleDynamicFileRequest.js.map +1 -1
  157. package/dist/utilities/addSelectGenericsToGeneretedTypes.d.ts.map +1 -1
  158. package/dist/utilities/addSelectGenericsToGeneretedTypes.js +0 -1
  159. package/dist/utilities/addSelectGenericsToGeneretedTypes.js.map +1 -1
  160. package/dist/utilities/appendDateTimezoneSelectFields.js.map +1 -1
  161. package/dist/utilities/cloneValidationRequest.js.map +1 -1
  162. package/dist/utilities/createPayloadRequest.js.map +1 -1
  163. package/dist/utilities/deepCopyObject.js.map +1 -1
  164. package/dist/utilities/documentMatchingWhereExists.js +1 -1
  165. package/dist/utilities/documentMatchingWhereExists.js.map +1 -1
  166. package/dist/utilities/entityInputSchema/validateEntityData.d.ts.map +1 -1
  167. package/dist/utilities/entityInputSchema/validateEntityData.js.map +1 -1
  168. package/dist/utilities/filterDataToSelectedLocales.js.map +1 -1
  169. package/dist/utilities/getEntityPermissions/getEntityPermissions.d.ts.map +1 -1
  170. package/dist/utilities/getEntityPermissions/getEntityPermissions.js +1 -0
  171. package/dist/utilities/getEntityPermissions/getEntityPermissions.js.map +1 -1
  172. package/dist/utilities/getEntityPermissions/populateFieldPermissions.js.map +1 -1
  173. package/dist/utilities/getVersionsConfig.d.ts +4 -0
  174. package/dist/utilities/getVersionsConfig.d.ts.map +1 -1
  175. package/dist/utilities/getVersionsConfig.js +5 -0
  176. package/dist/utilities/getVersionsConfig.js.map +1 -1
  177. package/dist/utilities/parseParams/index.js.map +1 -1
  178. package/dist/utilities/parseValidationLocale.js.map +1 -1
  179. package/dist/utilities/sanitizePopulateParam.js.map +1 -1
  180. package/dist/utilities/telemetry/conf/index.d.ts +4 -1
  181. package/dist/utilities/telemetry/conf/index.d.ts.map +1 -1
  182. package/dist/utilities/telemetry/conf/index.js.map +1 -1
  183. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js.map +1 -1
  184. package/dist/versions/allLocalesPublicationStatus.js.map +1 -1
  185. package/dist/versions/isInheritedReadVersionsAccess.js.map +1 -1
  186. package/dist/versions/types.d.ts +2 -0
  187. package/dist/versions/types.d.ts.map +1 -1
  188. package/dist/versions/types.js.map +1 -1
  189. package/package.json +30 -28
  190. package/skills/payload/reference/ENDPOINTS.md +3 -9
  191. package/skills/payload/reference/PLUGIN-DEVELOPMENT.md +4 -4
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/branching/types.ts"],"sourcesContent":["import type { CollectionSlug } from '../index.js'\nimport type { PayloadRequest } from '../types/index.js'\nimport type { Access } from './../config/types.js'\nimport type { BranchMergeValidate } from './validation.js'\n\n/**\n * The reserved `_branch` value for production content.\n *\n * A non-null sentinel rather than NULL: Postgres treats NULLs as distinct in\n * unique indexes, so a compound `(field, _branch)` unique index would stop\n * enforcing uniqueness among main rows if this were null.\n */\nexport const MAIN_BRANCH = 'main'\n\nexport const branchesCollectionSlug = 'payload-branches'\nexport const branchChangesCollectionSlug = 'payload-branch-changes'\n/**\n * One row per merge event, append-only.\n *\n * Merging consumes the change rows it applies and drops the shadow rows behind\n * them, so without this a merged branch has no record of what it did. It is a\n * separate collection rather than a flag on `payload-branch-changes` because a\n * branch can be merged more than once (§16) — a change row belongs to exactly one\n * merge, so the event, not the change, is what needs its own identity.\n */\nexport const branchMergesCollectionSlug = 'payload-branch-merges'\n\n/** Field injected onto every branch-enabled collection and its version collection. */\nexport const branchField = '_branch'\nexport const branchDocIDField = '_branchDocID'\nexport const branchParentField = '_branchParent'\n\nexport const branchOperations = ['create', 'update', 'delete'] as const\nexport const mergeApplicationOutcomes = [\n 'unattempted',\n 'attempted',\n 'applied',\n 'committed',\n 'failed',\n 'rolledBack',\n 'unknown',\n] as const\nexport const mergeCleanupOutcomes = [\n 'pending',\n 'completed',\n 'failed',\n 'notNeeded',\n 'superseded',\n 'unknown',\n] as const\nexport const mergeRecoveryOutcomes = [\n 'notNeeded',\n 'pending',\n 'restored',\n 'deleted',\n 'unavailable',\n 'failed',\n 'unknown',\n] as const\n\nexport type BranchOperation = (typeof branchOperations)[number]\nexport type MergeApplicationOutcome = (typeof mergeApplicationOutcomes)[number]\nexport type MergeCleanupOutcome = (typeof mergeCleanupOutcomes)[number]\nexport type MergeRecoveryOutcome = (typeof mergeRecoveryOutcomes)[number]\n\nexport type MergeableChange = {\n changeID: number | string\n /** Absent for a global, which is identified by `globalSlug` instead. */\n collectionSlug?: string\n /** Absent for a global: there is one of it, so there is nothing to identify. */\n docID?: number | string\n entityType: 'collection' | 'global'\n globalSlug?: string\n operation: BranchOperation\n}\n\nexport type MergeEventChange = {\n after?: unknown\n afterVersionID?: string\n applicationOutcome: MergeApplicationOutcome\n before?: unknown\n beforeVersionID?: string\n changeID: string\n cleanupError?: string\n cleanupOutcome: MergeCleanupOutcome\n collectionSlug?: string\n docID?: string\n docTitle: string\n error?: string\n globalSlug?: string\n operation: BranchOperation\n recoveryError?: string\n recoveryOutcome: MergeRecoveryOutcome\n sourceID?: string\n sourceRevision?: string\n sourceUpdatedAt?: string\n sourceVersionIDs?: (number | string)[]\n targetID?: string\n}\n\nexport type MergeProgress = {\n collectionSlug: string\n /** 1-based position of the change being applied. */\n current: number\n docID: number | string\n operation: BranchOperation\n /** Total changes this merge will apply. */\n total: number\n}\n\nexport type MergeWarning = {\n changeID: number | string\n collectionSlug: string\n docID: number | string\n message: string\n reason: 'main-moved'\n}\n\nexport type BranchingConfig = {\n /**\n * Access control for branch lifecycle operations. Document-level access is\n * unchanged — `req.branch` is in scope inside existing access functions.\n */\n access?: {\n createBranch?: Access\n deleteBranch?: Access\n /** Controls whether a caller can discard pending changes from a readable branch. */\n discardBranch?: Access\n /** Controls whether a caller can merge pending changes from a readable branch. */\n mergeBranch?: Access\n readBranch?: Access\n updateBranch?: Access\n }\n /**\n * Collections to exclude from branching, in addition to the defaults.\n */\n exclude?: CollectionSlug[]\n /**\n * Branch lifecycle hooks. Document hooks are unaffected — every one of them\n * runs on merge, since merge is a genuine write to main.\n */\n hooks?: {\n /** Fires after commit, so a failing webhook cannot undo a merge. */\n afterMerge?: (args: {\n branch: string\n req: PayloadRequest\n results: MergeableChange[]\n }) => Promise<void> | void\n /** Throw to block a merge. */\n beforeMerge?: (args: {\n branch: string\n changes: MergeableChange[]\n req: PayloadRequest\n warnings: MergeWarning[]\n }) => Promise<void> | void\n }\n /**\n * Ceiling on the number of shadowed document IDs injected into a single read\n * predicate by database adapters that use the legacy branch visibility fallback.\n * Official adapters use database-native branch visibility instead.\n *\n * @deprecated Retained for adapters that use the legacy branch visibility fallback.\n * @default 2000\n */\n maxShadowedIDs?: number\n /**\n * Replaces the default best-effort pre-merge content validation policy.\n * Ordinary write validation, hooks, access control, and database constraints still apply.\n */\n validate?: BranchMergeValidate\n}\n\nexport type SanitizedBranchingConfig = {\n /** Slugs of every collection branching is active for. */\n branchableCollections: Set<string>\n /** Slugs of every global branching is active for. */\n branchableGlobals: Set<string>\n enabled: boolean\n maxShadowedIDs: number\n validate: BranchMergeValidate\n} & Omit<BranchingConfig, 'exclude' | 'validate'>\n\n/**\n * The branching config as it reaches the browser: which entities branch, and\n * nothing else. Access functions and merge hooks stay on the server, and the\n * `Set`s become arrays so the config remains plain JSON.\n */\nexport type ClientBranchingConfig = {\n branchableCollections: string[]\n branchableGlobals: string[]\n enabled: boolean\n}\n"],"names":["MAIN_BRANCH","branchesCollectionSlug","branchChangesCollectionSlug","branchMergesCollectionSlug","branchField","branchDocIDField","branchParentField","branchOperations","mergeApplicationOutcomes","mergeCleanupOutcomes","mergeRecoveryOutcomes"],"mappings":"AAKA;;;;;;CAMC,GACD,OAAO,MAAMA,cAAc,OAAM;AAEjC,OAAO,MAAMC,yBAAyB,mBAAkB;AACxD,OAAO,MAAMC,8BAA8B,yBAAwB;AACnE;;;;;;;;CAQC,GACD,OAAO,MAAMC,6BAA6B,wBAAuB;AAEjE,oFAAoF,GACpF,OAAO,MAAMC,cAAc,UAAS;AACpC,OAAO,MAAMC,mBAAmB,eAAc;AAC9C,OAAO,MAAMC,oBAAoB,gBAAe;AAEhD,OAAO,MAAMC,mBAAmB;IAAC;IAAU;IAAU;CAAS,CAAS;AACvE,OAAO,MAAMC,2BAA2B;IACtC;IACA;IACA;IACA;IACA;IACA;IACA;CACD,CAAS;AACV,OAAO,MAAMC,uBAAuB;IAClC;IACA;IACA;IACA;IACA;IACA;CACD,CAAS;AACV,OAAO,MAAMC,wBAAwB;IACnC;IACA;IACA;IACA;IACA;IACA;IACA;CACD,CAAS"}
1
+ {"version":3,"sources":["../../src/branching/types.ts"],"sourcesContent":["import type { CollectionSlug, GlobalSlug } from '../index.js'\nimport type { PayloadRequest } from '../types/index.js'\nimport type { Access } from './../config/types.js'\nimport type { BranchMergeValidate } from './validation.js'\n\n/**\n * The reserved `_branch` value for production content.\n *\n * A non-null sentinel rather than NULL: Postgres treats NULLs as distinct in\n * unique indexes, so a compound `(field, _branch)` unique index would stop\n * enforcing uniqueness among main rows if this were null.\n */\nexport const MAIN_BRANCH = 'main'\n\nexport const branchesCollectionSlug = 'payload-branches'\nexport const branchChangesCollectionSlug = 'payload-branch-changes'\n/**\n * One row per merge event, append-only.\n *\n * Merging consumes the change rows it applies and drops the shadow rows behind\n * them, so without this a merged branch has no record of what it did. It is a\n * separate collection rather than a flag on `payload-branch-changes` because a\n * branch can be merged more than once (§16) — a change row belongs to exactly one\n * merge, so the event, not the change, is what needs its own identity.\n */\nexport const branchMergesCollectionSlug = 'payload-branch-merges'\n\n/** Field injected onto every branch-enabled collection and its version collection. */\nexport const branchField = '_branch'\nexport const branchDocIDField = '_branchDocID'\nexport const branchParentField = '_branchParent'\n\nexport const branchOperations = ['create', 'update', 'delete'] as const\nexport const mergeApplicationOutcomes = [\n 'unattempted',\n 'attempted',\n 'applied',\n 'committed',\n 'failed',\n 'rolledBack',\n 'unknown',\n] as const\nexport const mergeCleanupOutcomes = [\n 'pending',\n 'completed',\n 'failed',\n 'notNeeded',\n 'superseded',\n 'unknown',\n] as const\nexport const mergeRecoveryOutcomes = [\n 'notNeeded',\n 'pending',\n 'restored',\n 'deleted',\n 'unavailable',\n 'failed',\n 'unknown',\n] as const\n\nexport type BranchOperation = (typeof branchOperations)[number]\nexport type MergeApplicationOutcome = (typeof mergeApplicationOutcomes)[number]\nexport type MergeCleanupOutcome = (typeof mergeCleanupOutcomes)[number]\nexport type MergeRecoveryOutcome = (typeof mergeRecoveryOutcomes)[number]\n\nexport type MergeableChange = {\n changeID: number | string\n /** Absent for a global, which is identified by `globalSlug` instead. */\n collectionSlug?: string\n /** Absent for a global: there is one of it, so there is nothing to identify. */\n docID?: number | string\n entityType: 'collection' | 'global'\n globalSlug?: string\n operation: BranchOperation\n}\n\nexport type MergeEventChange = {\n after?: unknown\n afterVersionID?: string\n applicationOutcome: MergeApplicationOutcome\n before?: unknown\n beforeVersionID?: string\n changeID: string\n cleanupError?: string\n cleanupOutcome: MergeCleanupOutcome\n collectionSlug?: string\n docID?: string\n docTitle: string\n error?: string\n globalSlug?: string\n operation: BranchOperation\n recoveryError?: string\n recoveryOutcome: MergeRecoveryOutcome\n sourceID?: string\n sourceRevision?: string\n sourceUpdatedAt?: string\n sourceVersionIDs?: (number | string)[]\n targetID?: string\n}\n\nexport type MergeProgress = {\n collectionSlug: string\n /** 1-based position of the change being applied. */\n current: number\n docID: number | string\n operation: BranchOperation\n /** Total changes this merge will apply. */\n total: number\n}\n\nexport type MergeWarning = {\n changeID: number | string\n collectionSlug: string\n docID: number | string\n message: string\n reason: 'main-moved'\n}\n\nexport type BranchingConfig = {\n /**\n * Access control for branch lifecycle operations. Document-level access is\n * unchanged — `req.branch` is in scope inside existing access functions.\n */\n access?: {\n createBranch?: Access\n deleteBranch?: Access\n /** Controls whether a caller can discard pending changes from a readable branch. */\n discardBranch?: Access\n /** Controls whether a caller can merge pending changes from a readable branch. */\n mergeBranch?: Access\n readBranch?: Access\n updateBranch?: Access\n }\n /**\n * Collection and global slugs to exclude from branching, in addition to the defaults.\n * Exclusions take precedence over an entity's `branching: true` setting.\n */\n // Both slug types fall back to string without generated types.\n // eslint-disable-next-line @typescript-eslint/no-duplicate-type-constituents\n exclude?: (CollectionSlug | GlobalSlug)[]\n /**\n * Branch lifecycle hooks. Document hooks are unaffected — every one of them\n * runs on merge, since merge is a genuine write to main.\n */\n hooks?: {\n /** Fires after commit, so a failing webhook cannot undo a merge. */\n afterMerge?: (args: {\n branch: string\n req: PayloadRequest\n results: MergeableChange[]\n }) => Promise<void> | void\n /** Throw to block a merge. */\n beforeMerge?: (args: {\n branch: string\n changes: MergeableChange[]\n req: PayloadRequest\n warnings: MergeWarning[]\n }) => Promise<void> | void\n }\n /**\n * Replaces the default best-effort pre-merge content validation policy.\n * Ordinary write validation, hooks, access control, and database constraints still apply.\n */\n validate?: BranchMergeValidate\n}\n\nexport type SanitizedBranchingConfig = {\n /** Slugs of every collection branching is active for. */\n branchableCollections: Set<string>\n /** Slugs of every global branching is active for. */\n branchableGlobals: Set<string>\n enabled: boolean\n validate: BranchMergeValidate\n} & Omit<BranchingConfig, 'exclude' | 'validate'>\n\n/**\n * The branching config as it reaches the browser: which entities branch, and\n * nothing else. Access functions and merge hooks stay on the server, and the\n * `Set`s become arrays so the config remains plain JSON.\n */\nexport type ClientBranchingConfig = {\n branchableCollections: string[]\n branchableGlobals: string[]\n enabled: boolean\n}\n"],"names":["MAIN_BRANCH","branchesCollectionSlug","branchChangesCollectionSlug","branchMergesCollectionSlug","branchField","branchDocIDField","branchParentField","branchOperations","mergeApplicationOutcomes","mergeCleanupOutcomes","mergeRecoveryOutcomes"],"mappings":"AAKA;;;;;;CAMC,GACD,OAAO,MAAMA,cAAc,OAAM;AAEjC,OAAO,MAAMC,yBAAyB,mBAAkB;AACxD,OAAO,MAAMC,8BAA8B,yBAAwB;AACnE;;;;;;;;CAQC,GACD,OAAO,MAAMC,6BAA6B,wBAAuB;AAEjE,oFAAoF,GACpF,OAAO,MAAMC,cAAc,UAAS;AACpC,OAAO,MAAMC,mBAAmB,eAAc;AAC9C,OAAO,MAAMC,oBAAoB,gBAAe;AAEhD,OAAO,MAAMC,mBAAmB;IAAC;IAAU;IAAU;CAAS,CAAS;AACvE,OAAO,MAAMC,2BAA2B;IACtC;IACA;IACA;IACA;IACA;IACA;IACA;CACD,CAAS;AACV,OAAO,MAAMC,uBAAuB;IAClC;IACA;IACA;IACA;IACA;IACA;CACD,CAAS;AACV,OAAO,MAAMC,wBAAwB;IACnC;IACA;IACA;IACA;IACA;IACA;IACA;CACD,CAAS"}
@@ -18,7 +18,7 @@ export declare const getGlobalValidationResult: ({ slug, error, req, }: {
18
18
  errors: import("../../../index.js").ValidationFieldError[];
19
19
  schema?: import("../../../index.js").EntityInputSchema | undefined;
20
20
  } | undefined;
21
- export declare const getCollectionSchema: ({ slug, req, }: {
21
+ export declare const getCollectionSchema: ({ slug, req }: {
22
22
  req: PayloadRequest;
23
23
  slug: CollectionSlug;
24
24
  }) => import("../../../index.js").EntityInputSchema | null;
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/data/utilities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,OAAO,EACP,cAAc,EACd,YAAY,EACZ,UAAU,EACX,MAAM,mBAAmB,CAAA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AG,MAAM,CAAC,MAAM,EAAE,OAAO,CAC4D,CAAA;AAEtF,eAAO,MAAM,iBAAiB,6BAI3B;IACD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,UAAU,CAAA;CACjB,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CACsD,CAAA;AAEhF,eAAO,MAAM,wBAAwB,6BAIlC;IACD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,UAAU,CAAA;CACjB,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CACkD,CAAA;AAE5E,eAAO,MAAM,SAAS,UAAW,OAAO,KAAG,IAI1C,CAAA"}
1
+ {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/data/utilities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,OAAO,EACP,cAAc,EACd,YAAY,EACZ,UAAU,EACX,MAAM,mBAAmB,CAAA;AAc1B,OAAO,EACL,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,4DAA4D,CAAA;AAEnE,eAAO,MAAM,6BAA6B,0BAIvC;IACD,KAAK,EAAE,OAAO,CAAA;IACd,GAAG,EAAE,cAAc,CAAA;IACnB,IAAI,EAAE,cAAc,CAAA;CACrB;;;;aAQA,CAAA;AAED,eAAO,MAAM,yBAAyB,0BAInC;IACD,KAAK,EAAE,OAAO,CAAA;IACd,GAAG,EAAE,cAAc,CAAA;IACnB,IAAI,EAAE,UAAU,CAAA;CACjB;;;;aAQA,CAAA;AAED,eAAO,MAAM,mBAAmB,kBAAmB;IAAE,GAAG,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,yDACvC,CAAA;AAEzD,eAAO,MAAM,cAAc,YAAa;IACtC,KAAK,EA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1C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/cli/commands/data/utilities.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport type {\n CollectionSlug,\n GlobalSlug,\n Payload,\n PayloadRequest,\n PopulateType,\n SelectType,\n} from '../../../index.js'\n\nimport { ValidationError } from '../../../errors/ValidationError.js'\nimport {\n getCollectionInputSchema,\n getGlobalInputSchema,\n} from '../../../utilities/entityInputSchema/getEntityInputSchema.js'\nimport {\n getCollectionVirtualFieldNames,\n getGlobalVirtualFieldNames,\n stripVirtualFields,\n} from '../../../utilities/getVirtualFieldNames.js'\nimport { transformPointDataToPayload } from '../../../utilities/transformPointDataToPayload.js'\n\nexport {\n validateCollectionData,\n validateGlobalData,\n} from '../../../utilities/entityInputSchema/validateEntityData.js'\n\nexport const getCollectionValidationResult = ({\n slug,\n error,\n req,\n}: {\n error: unknown\n req: PayloadRequest\n slug: CollectionSlug\n}) => {\n if (!(error instanceof ValidationError)) {\n return undefined\n }\n\n const schema = getCollectionInputSchema({ collectionSlug: slug, req })\n\n return { slug, errors: error.data.errors, ...(schema ? { schema } : {}) }\n}\n\nexport const getGlobalValidationResult = ({\n slug,\n error,\n req,\n}: {\n error: unknown\n req: PayloadRequest\n slug: GlobalSlug\n}) => {\n if (!(error instanceof ValidationError)) {\n return undefined\n }\n\n const schema = getGlobalInputSchema({ globalSlug: slug, req })\n\n return { slug, errors: error.data.errors, ...(schema ? { schema } : {}) }\n}\n\nexport const getCollectionSchema = ({\n slug,\n req,\n}: {\n req: PayloadRequest\n slug: CollectionSlug\n}) => getCollectionInputSchema({ collectionSlug: slug, req })\n\nexport const getReadOptions = (options: {\n depth: number\n fallbackLocale?: false | string\n locale?: string\n overrideAccess: boolean\n populate?: PopulateType\n select?: SelectType\n showHiddenFields?: boolean\n}) => ({\n depth: options.depth,\n fallbackLocale: options.fallbackLocale,\n locale: options.locale,\n overrideAccess: options.overrideAccess,\n populate: options.populate,\n select: options.select,\n showHiddenFields: options.showHiddenFields,\n})\n\nexport const prepareCollectionData = ({\n collection,\n data,\n payload,\n}: {\n collection: CollectionSlug\n data: Record<string, unknown>\n payload: Payload\n}): Record<string, unknown> =>\n transformPointDataToPayload(stripCollectionVirtualFields({ collection, data, payload }))\n\nexport const stripCollectionVirtualFields = ({\n collection,\n data,\n payload,\n}: {\n collection: CollectionSlug\n data: Record<string, unknown>\n payload: Payload\n}): Record<string, unknown> =>\n stripVirtualFields(data, getCollectionVirtualFieldNames(payload.config, collection))\n\nexport const prepareGlobalData = ({\n slug,\n data,\n payload,\n}: {\n data: Record<string, unknown>\n payload: Payload\n slug: GlobalSlug\n}): Record<string, unknown> =>\n transformPointDataToPayload(stripGlobalVirtualFields({ slug, data, payload }))\n\nexport const stripGlobalVirtualFields = ({\n slug,\n data,\n payload,\n}: {\n data: Record<string, unknown>\n payload: Payload\n slug: GlobalSlug\n}): Record<string, unknown> =>\n stripVirtualFields(data, getGlobalVirtualFieldNames(payload.config, slug))\n\nexport const printJSON = (value: unknown): void => {\n console.log(\n JSON.stringify(value, (_key, item) => (typeof item === 'bigint' ? item.toString() : item), 2),\n )\n}\n"],"names":["ValidationError","getCollectionInputSchema","getGlobalInputSchema","getCollectionVirtualFieldNames","getGlobalVirtualFieldNames","stripVirtualFields","transformPointDataToPayload","validateCollectionData","validateGlobalData","getCollectionValidationResult","slug","error","req","undefined","schema","collectionSlug","errors","data","getGlobalValidationResult","globalSlug","getCollectionSchema","getReadOptions","options","depth","fallbackLocale","locale","overrideAccess","populate","select","showHiddenFields","prepareCollectionData","collection","payload","stripCollectionVirtualFields","config","prepareGlobalData","stripGlobalVirtualFields","printJSON","value","console","log","JSON","stringify","_key","item","toString"],"mappings":"AAAA,6BAA6B,GAU7B,SAASA,eAAe,QAAQ,qCAAoC;AACpE,SACEC,wBAAwB,EACxBC,oBAAoB,QACf,+DAA8D;AACrE,SACEC,8BAA8B,EAC9BC,0BAA0B,EAC1BC,kBAAkB,QACb,6CAA4C;AACnD,SAASC,2BA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Yd;QAAMe;IAAQ,IAAG;AAE1F,OAAO,MAAMC,+BAA+B,CAAC,EAC3CF,UAAU,EACVd,IAAI,EACJe,OAAO,EAKR,GACC3B,mBAAmBY,MAAMd,+BAA+B6B,QAAQE,MAAM,EAAEH,aAAY;AAEtF,OAAO,MAAMI,oBAAoB,CAAC,EAChCzB,IAAI,EACJO,IAAI,EACJe,OAAO,EAKR,GACC1B,4BAA4B8B,yBAAyB;QAAE1B;QAAMO;QAAMe;IAAQ,IAAG;AAEhF,OAAO,MAAMI,2BAA2B,CAAC,EACvC1B,IAAI,EACJO,IAAI,EACJe,OAAO,EAKR,GACC3B,mBAAmBY,MAAMb,2BAA2B4B,QAAQE,MAAM,EAAExB,OAAM;AAE5E,OAAO,MAAM2B,YAAY,CAACC;IACxBC,QAAQC,GAAG,CACTC,KAAKC,SAAS,CAACJ,OAAO,CAACK,MAAMC,OAAU,OAAOA,SAAS,WAAWA,KAAKC,QAAQ,KAAKD,MAAO;AAE/F,EAAC"}
1
+ {"version":3,"sources":["../../../../src/cli/commands/data/utilities.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport type {\n CollectionSlug,\n GlobalSlug,\n Payload,\n PayloadRequest,\n PopulateType,\n SelectType,\n} from '../../../index.js'\n\nimport { ValidationError } from '../../../errors/ValidationError.js'\nimport {\n getCollectionInputSchema,\n getGlobalInputSchema,\n} from '../../../utilities/entityInputSchema/getEntityInputSchema.js'\nimport {\n getCollectionVirtualFieldNames,\n getGlobalVirtualFieldNames,\n stripVirtualFields,\n} from '../../../utilities/getVirtualFieldNames.js'\nimport { transformPointDataToPayload } from '../../../utilities/transformPointDataToPayload.js'\n\nexport {\n validateCollectionData,\n validateGlobalData,\n} from '../../../utilities/entityInputSchema/validateEntityData.js'\n\nexport const getCollectionValidationResult = ({\n slug,\n error,\n req,\n}: {\n error: unknown\n req: PayloadRequest\n slug: CollectionSlug\n}) => {\n if (!(error instanceof ValidationError)) {\n return undefined\n }\n\n const schema = getCollectionInputSchema({ collectionSlug: slug, req })\n\n return { slug, errors: error.data.errors, ...(schema ? { schema } : {}) }\n}\n\nexport const getGlobalValidationResult = ({\n slug,\n error,\n req,\n}: {\n error: unknown\n req: PayloadRequest\n slug: GlobalSlug\n}) => {\n if (!(error instanceof ValidationError)) {\n return undefined\n }\n\n const schema = getGlobalInputSchema({ globalSlug: slug, req })\n\n return { slug, errors: error.data.errors, ...(schema ? { schema } : {}) }\n}\n\nexport const getCollectionSchema = ({ slug, req }: { req: PayloadRequest; slug: CollectionSlug }) =>\n getCollectionInputSchema({ collectionSlug: slug, req })\n\nexport const getReadOptions = (options: {\n depth: number\n fallbackLocale?: false | string\n locale?: string\n overrideAccess: boolean\n populate?: PopulateType\n select?: SelectType\n showHiddenFields?: boolean\n}) => ({\n depth: options.depth,\n fallbackLocale: options.fallbackLocale,\n locale: options.locale,\n overrideAccess: options.overrideAccess,\n populate: options.populate,\n select: options.select,\n showHiddenFields: options.showHiddenFields,\n})\n\nexport const prepareCollectionData = ({\n collection,\n data,\n payload,\n}: {\n collection: CollectionSlug\n data: Record<string, unknown>\n payload: Payload\n}): Record<string, unknown> =>\n transformPointDataToPayload(stripCollectionVirtualFields({ collection, data, payload }))\n\nexport const stripCollectionVirtualFields = ({\n collection,\n data,\n payload,\n}: {\n collection: CollectionSlug\n data: Record<string, unknown>\n payload: Payload\n}): Record<string, unknown> =>\n stripVirtualFields(data, getCollectionVirtualFieldNames(payload.config, collection))\n\nexport const prepareGlobalData = ({\n slug,\n data,\n payload,\n}: {\n data: Record<string, unknown>\n payload: Payload\n slug: GlobalSlug\n}): Record<string, unknown> =>\n transformPointDataToPayload(stripGlobalVirtualFields({ slug, data, payload }))\n\nexport const stripGlobalVirtualFields = ({\n slug,\n data,\n payload,\n}: {\n data: Record<string, unknown>\n payload: Payload\n slug: GlobalSlug\n}): Record<string, unknown> =>\n stripVirtualFields(data, getGlobalVirtualFieldNames(payload.config, slug))\n\nexport const printJSON = (value: unknown): void => {\n console.log(\n JSON.stringify(value, (_key, item) => (typeof item === 'bigint' ? item.toString() : item), 2),\n )\n}\n"],"names":["ValidationError","getCollectionInputSchema","getGlobalInputSchema","getCollectionVirtualFieldNames","getGlobalVirtualFieldNames","stripVirtualFields","transformPointDataToPayload","validateCollectionData","validateGlobalData","getCollectionValidationResult","slug","error","req","undefined","schema","collectionSlug","errors","data","getGlobalValidationResult","globalSlug","getCollectionSchema","getReadOptions","options","depth","fallbackLocale","locale","overrideAccess","populate","select","showHiddenFields","prepareCollectionData","collection","payload","stripCollectionVirtualFields","config","prepareGlobalData","stripGlobalVirtualFields","printJSON","value","console","log","JSON","stringify","_key","item","toString"],"mappings":"AAAA,6BAA6B,GAU7B,SAASA,eAAe,QAAQ,qCAAoC;AACpE,SACEC,wBAAwB,EACxBC,oBAAoB,QACf,+DAA8D;AACrE,SACEC,8BAA8B,EAC9BC,0BAA0B,EAC1BC,kBAAkB,QACb,6CAA4C;AACnD,SAASC,2BAA2B,QAAQ,oDAAmD;AAE/F,SACEC,sBAAsB,EACtBC,kBAAkB,QACb,6DAA4D;AAEnE,OAAO,MAAMC,gCAAgC,CAAC,EAC5CC,IAAI,EACJC,KAAK,EACLC,GAAG,EAKJ;IACC,IAAI,CAAED,CAAAA,iBAAiBX,eAAc,GAAI;QACvC,OAAOa;IACT;IAEA,MAAMC,SAASb,yBAAyB;QAAEc,gBAAgBL;QAAME;IAAI;IAEpE,OAAO;QAAEF;QAAMM,QAAQL,MAAMM,IAAI,CAACD,MAAM;QAAE,GAAIF,SAAS;YAAEA;QAAO,IAAI,CAAC,CAAC;IAAE;AAC1E,EAAC;AAED,OAAO,MAAMI,4BAA4B,CAAC,EACxCR,IAAI,EACJC,KAAK,EACLC,GAAG,EAKJ;IACC,IAAI,CAAED,CAAAA,iBAAiBX,eAAc,GAAI;QACvC,OAAOa;IACT;IAEA,MAAMC,SAASZ,qBAAqB;QAAEiB,YAAYT;QAAME;IAAI;IAE5D,OAAO;QAAEF;QAAMM,QAAQL,MAAMM,IAAI,CA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knownOption: definition.allowUnknownOption ?? false,
19
19
  cli: cli === false ? false : overrides,
20
20
  handler: definition.handler,
21
- input: input,
21
+ input,
22
22
  schema
23
23
  };
24
24
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/cli/defineCLICommand.ts"],"sourcesContent":["import type { StandardSchemaV1 } from '@standard-schema/spec'\n\nimport type {\n CLICommand,\n CLICommandResult,\n CLIFieldOverride,\n CLIHelp,\n CLIInputSchema,\n CLIRuntime,\n} from '../config/types.js'\nimport type { MaybePromise } from '../types/index.js'\n\ntype CLICommandDefinition<TInput extends CLIInputSchema> = {\n aliases?: string[]\n allowUnknownOption?: boolean\n cli?:\n | false\n | Partial<Record<Extract<keyof StandardSchemaV1.InferInput<TInput>, string>, CLIFieldOverride>>\n description: string\n examples?: string[]\n /**\n * Runs after Payload validates the command input. `args` contains the validated values.\n *\n * - Return nothing when the command succeeds without a result.\n * - Return a number to set the process exit code.\n * - Return `{ result }` to include data in JSON output.\n * - Return `{ exitCode, result }` when the command needs both.\n *\n * Console and Payload logger output is sent to stderr in JSON mode. Use `isJSON` when the\n * command's behavior itself needs to change for machine-readable output.\n */\n handler: (\n context: {\n args: StandardSchemaV1.InferOutput<TInput>\n help: CLIHelp\n isJSON: boolean\n } & Pick<CLIRuntime, 'getConfig' | 'getPayload'>,\n ) => MaybePromise<CLICommandResult | number | void>\n helpGroup?: string\n input: TInput\n}\n\n/** Defines a CLI command from its input schema, shell input, and handler. */\nexport const defineCLICommand = <TInput extends CLIInputSchema>(\n definition: CLICommandDefinition<TInput>,\n): CLICommand => {\n const { cli, input } = definition\n const schema = input['~standard'].jsonSchema.input({ target: 'draft-2020-12' })\n\n if (schema.type !== 'object') {\n throw new Error('CLI command input schema must describe an object.')\n }\n\n const properties = (schema.properties ?? {}) as Record<string, unknown>\n const overrides = cli === false ? {} : (cli ?? {})\n\n for (const field of Object.keys(overrides)) {\n if (!(field in properties)) {\n throw new Error(`CLI command configures unknown input '${field}'.`)\n }\n }\n\n return {\n ...definition,\n allowUnknownOption: definition.allowUnknownOption ?? false,\n cli: cli === false ? false : overrides,\n handler: definition.handler as CLICommand['handler'],\n input: input as CLIInputSchema,\n schema,\n }\n}\n"],"names":["defineCLICommand","definition","cli","input","schema","jsonSchema","target","type","Error","properties","overrides","field","Object","keys","allowUnknownOption","handler"],"mappings":"AA0CA,2EAA2E,GAC3E,OAAO,MAAMA,mBAAmB,CAC9BC;IAEA,MAAM,EAAEC,GAAG,EAAEC,KAAK,EAAE,GAAGF;IACvB,MAAMG,SAASD,KAAK,CAAC,YAAY,CAACE,UAAU,CAACF,KAAK,CAAC;QAAEG,QAAQ;IAAgB;IAE7E,IAAIF,OAAOG,IAAI,KAAK,UAAU;QAC5B,MAAM,IAAIC,MAAM;IAClB;IAEA,MAAMC,aAAcL,OAAOK,UAAU,IAAI,CAAC;IAC1C,MAAMC,YAAYR,QAAQ,QAAQ,CAAC,IAAKA,OAAO,CAAC;IAEhD,KAAK,MAAMS,SAASC,OAAOC,IAAI,CAACH,WAAY;QAC1C,IAAI,CAAEC,CAAAA,SAASF,UAAS,GAAI;YAC1B,MAAM,IAAID,MAAM,CAAC,sCAAsC,EAAEG,MAAM,EAAE,CAAC;QACpE;IACF;IAEA,OAAO;QACL,GAAGV,UAAU;QACba,oBAAoBb,WAAWa,kBAAkB,IAAI;QACrDZ,KAAKA,QAAQ,QAAQ,QAAQQ;QAC7BK,SAASd,WAAWc,OAAO;QAC3BZ,OAAOA;QACPC;IACF;AACF,EAAC"}
1
+ {"version":3,"sources":["../../src/cli/defineCLICommand.ts"],"sourcesContent":["import type { StandardSchemaV1 } from '@standard-schema/spec'\n\nimport type {\n CLICommand,\n CLICommandResult,\n CLIFieldOverride,\n CLIHelp,\n CLIInputSchema,\n CLIRuntime,\n} from '../config/types.js'\nimport type { MaybePromise } from '../types/index.js'\n\ntype CLICommandDefinition<TInput extends CLIInputSchema> = {\n aliases?: string[]\n allowUnknownOption?: boolean\n cli?:\n | false\n | Partial<Record<Extract<keyof StandardSchemaV1.InferInput<TInput>, string>, CLIFieldOverride>>\n description: string\n examples?: string[]\n /**\n * Runs after Payload validates the command input. `args` contains the validated values.\n *\n * - Return nothing when the command succeeds without a result.\n * - Return a number to set the process exit code.\n * - Return `{ result }` to include data in JSON output.\n * - Return `{ exitCode, result }` when the command needs both.\n *\n * Console and Payload logger output is sent to stderr in JSON mode. Use `isJSON` when the\n * command's behavior itself needs to change for machine-readable output.\n */\n handler: (\n context: {\n args: StandardSchemaV1.InferOutput<TInput>\n help: CLIHelp\n isJSON: boolean\n } & Pick<CLIRuntime, 'getConfig' | 'getPayload'>,\n ) => MaybePromise<CLICommandResult | number | void>\n helpGroup?: string\n input: TInput\n}\n\n/** Defines a CLI command from its input schema, shell input, and handler. */\nexport const defineCLICommand = <TInput extends CLIInputSchema>(\n definition: CLICommandDefinition<TInput>,\n): CLICommand => {\n const { cli, input } = definition\n const schema = input['~standard'].jsonSchema.input({ target: 'draft-2020-12' })\n\n if (schema.type !== 'object') {\n throw new Error('CLI command input schema must describe an object.')\n }\n\n const properties = (schema.properties ?? {}) as Record<string, unknown>\n const overrides = cli === false ? {} : (cli ?? {})\n\n for (const field of Object.keys(overrides)) {\n if (!(field in properties)) {\n throw new Error(`CLI command configures unknown input '${field}'.`)\n }\n }\n\n return {\n ...definition,\n allowUnknownOption: definition.allowUnknownOption ?? false,\n cli: cli === false ? false : overrides,\n handler: definition.handler,\n input,\n schema,\n }\n}\n"],"names":["defineCLICommand","definition","cli","input","schema","jsonSchema","target","type","Error","properties","overrides","field","Object","keys","allowUnknownOption","handler"],"mappings":"AA0CA,2EAA2E,GAC3E,OAAO,MAAMA,mBAAmB,CAC9BC;IAEA,MAAM,EAAEC,GAAG,EAAEC,KAAK,EAAE,GAAGF;IACvB,MAAMG,SAASD,KAAK,CAAC,YAAY,CAACE,UAAU,CAACF,KAAK,CAAC;QAAEG,QAAQ;IAAgB;IAE7E,IAAIF,OAAOG,IAAI,KAAK,UAAU;QAC5B,MAAM,IAAIC,MAAM;IAClB;IAEA,MAAMC,aAAcL,OAAOK,UAAU,IAAI,CAAC;IAC1C,MAAMC,YAAYR,QAAQ,QAAQ,CAAC,IAAKA,OAAO,CAAC;IAEhD,KAAK,MAAMS,SAASC,OAAOC,IAAI,CAACH,WAAY;QAC1C,IAAI,CAAEC,CAAAA,SAASF,UAAS,GAAI;YAC1B,MAAM,IAAID,MAAM,CAAC,sCAAsC,EAAEG,MAAM,EAAE,CAAC;QACpE;IACF;IAEA,OAAO;QACL,GAAGV,UAAU;QACba,oBAAoBb,WAAWa,kBAAkB,IAAI;QACrDZ,KAAKA,QAAQ,QAAQ,QAAQQ;QAC7BK,SAASd,WAAWc,OAAO;QAC3BZ;QACAC;IACF;AACF,EAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/collections/config/client.ts"],"sourcesContent":["import type { I18nClient, TFunction } from '@payloadcms/translations'\n\nimport type { StaticDescription } from '../../admin/types.js'\nimport type { ImportMap } from '../../cli/commands/generateImportMap/generateImportMap.js'\nimport type {\n LivePreviewConfig,\n ServerOnlyLivePreviewProperties,\n StaticLabel,\n} from '../../config/types.js'\nimport type { ClientField } from '../../fields/config/client.js'\nimport type { ClientHierarchyConfig } from '../../hierarchy/types.js'\nimport type { Payload } from '../../types/index.js'\nimport type { SanitizedUploadConfig, UploadInstructionsCapability } from '../../uploads/types.js'\nimport type { SanitizedCollectionConfig } from './types.js'\n\nimport { createClientFields } from '../../fields/config/client.js'\n\nexport type ServerOnlyCollectionProperties = keyof Pick<\n SanitizedCollectionConfig,\n | 'access'\n | 'custom'\n | 'endpoints'\n | 'flattenedFields'\n | 'hooks'\n | 'indexes'\n | 'joins'\n | 'llmInstructions'\n | 'polymorphicJoins'\n | 'sanitizedIndexes'\n | 'select'\n>\n\nexport type ServerOnlyCollectionAdminProperties = keyof Pick<\n SanitizedCollectionConfig['admin'],\n 'baseFilter' | 'baseListFilter' | 'components' | 'formatDocURL' | 'hidden'\n>\n\nexport type ServerOnlyUploadProperties = keyof Pick<\n SanitizedCollectionConfig['upload'],\n | 'admin'\n | 'adminThumbnail'\n | 'deleteFiles'\n | 'externalFileHeaderFilter'\n | 'fileOperations'\n | 'handlers'\n | 'modifyResponseHeaders'\n | 'uploadInstructions'\n>\n\ntype ClientUploadConfig = {\n uploadInstructions: Pick<UploadInstructionsCapability, 'useInAdmin'>\n} & Omit<SanitizedUploadConfig, 'fileOperations' | 'uploadInstructions'>\n\nexport type ClientCollectionConfig = {\n admin: {\n description?: StaticDescription\n livePreview?: Omit<LivePreviewConfig, ServerOnlyLivePreviewProperties>\n preview?: boolean\n } & Omit<\n SanitizedCollectionConfig['admin'],\n | 'components'\n | 'description'\n | 'formatDocURL'\n | 'joins'\n | 'livePreview'\n | 'preview'\n | ServerOnlyCollectionAdminProperties\n >\n auth?: {\n forgotPassword: Pick<SanitizedCollectionConfig['auth']['forgotPassword'], 'minRequestInterval'>\n verify?: true\n } & Omit<SanitizedCollectionConfig['auth'], 'forgotPassword' | 'strategies' | 'verify'>\n fields: ClientField[]\n hierarchy?: ClientHierarchyConfig | false\n labels: {\n plural: StaticLabel\n singular: StaticLabel\n }\n upload: ClientUploadConfig\n} & Omit<\n SanitizedCollectionConfig,\n 'admin' | 'auth' | 'fields' | 'hierarchy' | 'labels' | 'upload' | ServerOnlyCollectionProperties\n>\n\nconst serverOnlyCollectionProperties: Partial<ServerOnlyCollectionProperties>[] = [\n 'hooks',\n 'access',\n 'endpoints',\n 'custom',\n 'joins',\n 'llmInstructions',\n 'polymorphicJoins',\n 'flattenedFields',\n 'indexes',\n 'sanitizedIndexes',\n 'select',\n // `upload`\n // `admin`\n // are all handled separately\n]\n\nconst serverOnlyUploadProperties: Partial<ServerOnlyUploadProperties>[] = [\n 'admin',\n 'adminThumbnail',\n 'deleteFiles',\n 'externalFileHeaderFilter',\n 'fileOperations',\n 'handlers',\n 'modifyResponseHeaders',\n 'uploadInstructions',\n]\n\nconst serverOnlyCollectionAdminProperties: Partial<ServerOnlyCollectionAdminProperties>[] = [\n 'hidden',\n 'baseFilter',\n 'baseListFilter',\n 'components',\n 'formatDocURL',\n // 'preview' is handled separately\n // `livePreview` is handled separately\n]\n\nexport const createClientCollectionConfig = ({\n collection,\n defaultIDType,\n i18n,\n importMap,\n}: {\n collection: SanitizedCollectionConfig\n defaultIDType: Payload['config']['db']['defaultIDType']\n i18n: I18nClient\n importMap: ImportMap\n}): ClientCollectionConfig => {\n const clientCollection = {} as Partial<ClientCollectionConfig>\n\n for (const key in collection) {\n if (serverOnlyCollectionProperties.includes(key as any)) {\n continue\n }\n switch (key) {\n case 'admin':\n if (!collection.admin) {\n break\n }\n\n clientCollection.admin = {} as ClientCollectionConfig['admin']\n\n for (const adminKey in collection.admin) {\n if (serverOnlyCollectionAdminProperties.includes(adminKey as any)) {\n continue\n }\n\n switch (adminKey) {\n case 'description':\n if (\n typeof collection.admin.description === 'string' ||\n typeof collection.admin.description === 'object'\n ) {\n if (collection.admin.description) {\n clientCollection.admin.description = collection.admin.description\n }\n } else if (typeof collection.admin.description === 'function') {\n const description = collection.admin.description({ t: i18n.t as TFunction })\n\n if (description) {\n clientCollection.admin.description = description\n }\n }\n break\n\n case 'livePreview':\n clientCollection.admin.livePreview = {}\n\n if (collection.admin.livePreview?.breakpoints) {\n clientCollection.admin.livePreview.breakpoints =\n collection.admin.livePreview.breakpoints\n }\n\n break\n\n case 'preview':\n if (collection.admin.preview) {\n clientCollection.admin.preview = true\n }\n\n break\n\n default:\n ;(clientCollection as any).admin[adminKey] =\n collection.admin[adminKey as keyof SanitizedCollectionConfig['admin']]\n }\n }\n\n break\n\n case 'auth':\n if (!collection.auth) {\n break\n }\n\n clientCollection.auth = {} as { verify?: true } & SanitizedCollectionConfig['auth']\n\n clientCollection.auth.forgotPassword = {\n minRequestInterval: collection.auth.forgotPassword.minRequestInterval,\n }\n\n if (collection.auth.cookies) {\n clientCollection.auth.cookies = collection.auth.cookies\n }\n\n if (collection.auth.depth !== undefined) {\n // Check for undefined as it can be a number (0)\n clientCollection.auth.depth = collection.auth.depth\n }\n\n if (collection.auth.disableLocalStrategy) {\n clientCollection.auth.disableLocalStrategy = collection.auth.disableLocalStrategy\n }\n\n if (collection.auth.lockTime !== undefined) {\n // Check for undefined as it can be a number (0)\n clientCollection.auth.lockTime = collection.auth.lockTime\n }\n\n if (collection.auth.loginWithUsername) {\n clientCollection.auth.loginWithUsername = collection.auth.loginWithUsername\n }\n\n if (collection.auth.maxLoginAttempts !== undefined) {\n // Check for undefined as it can be a number (0)\n clientCollection.auth.maxLoginAttempts = collection.auth.maxLoginAttempts\n }\n\n if (collection.auth.removeTokenFromResponses) {\n clientCollection.auth.removeTokenFromResponses = collection.auth.removeTokenFromResponses\n }\n\n if (collection.auth.useAPIKey) {\n clientCollection.auth.useAPIKey = collection.auth.useAPIKey\n }\n\n if (collection.auth.tokenExpiration) {\n clientCollection.auth.tokenExpiration = collection.auth.tokenExpiration\n }\n\n if (collection.auth.verify) {\n clientCollection.auth.verify = true\n }\n\n break\n\n case 'fields':\n clientCollection.fields = createClientFields({\n defaultIDType,\n fields: collection.fields,\n i18n,\n importMap,\n })\n\n break\n\n case 'hierarchy': {\n if (!collection.hierarchy || typeof collection.hierarchy !== 'object') {\n clientCollection.hierarchy = false\n break\n }\n\n // Strip slugify function as it can't cross server-client boundary\n const { slugify: _slugify, ...clientHierarchy } = collection.hierarchy\n clientCollection.hierarchy = clientHierarchy as ClientHierarchyConfig\n\n break\n }\n\n case 'labels':\n clientCollection.labels = {\n plural:\n typeof collection.labels.plural === 'function'\n ? collection.labels.plural({ i18n, t: i18n.t as TFunction })\n : collection.labels.plural,\n singular:\n typeof collection.labels.singular === 'function'\n ? collection.labels.singular({ i18n, t: i18n.t as TFunction })\n : collection.labels.singular,\n }\n\n break\n\n case 'upload':\n if (!collection.upload) {\n break\n }\n\n clientCollection.upload = {\n uploadInstructions: {\n useInAdmin: collection.upload.uploadInstructions?.useInAdmin ?? false,\n },\n } as ClientUploadConfig\n\n for (const uploadKey in collection.upload) {\n if (serverOnlyUploadProperties.includes(uploadKey as any)) {\n continue\n }\n\n if (uploadKey === 'variants') {\n clientCollection.upload.variants = collection.upload.variants?.map((size) => {\n const sanitizedSize = { ...size }\n if ('generateImageName' in sanitizedSize) {\n delete sanitizedSize.generateImageName\n }\n return sanitizedSize\n })\n } else {\n ;(clientCollection.upload as any)[uploadKey] =\n collection.upload[uploadKey as keyof SanitizedUploadConfig]\n }\n }\n\n break\n\n default:\n ;(clientCollection as any)[key] = collection[key as keyof SanitizedCollectionConfig]\n }\n }\n\n return clientCollection as ClientCollectionConfig\n}\n\nexport const createClientCollectionConfigs = ({\n collections,\n defaultIDType,\n i18n,\n importMap,\n}: {\n collections: SanitizedCollectionConfig[]\n defaultIDType: Payload['config']['db']['defaultIDType']\n i18n: I18nClient\n importMap: ImportMap\n}): ClientCollectionConfig[] => {\n const clientCollections = new Array(collections.length)\n\n for (let i = 0; i < collections.length; i++) {\n const collection = collections[i]!\n\n clientCollections[i] = createClientCollectionConfig({\n collection,\n defaultIDType,\n i18n,\n importMap,\n })\n }\n\n return clientCollections\n}\n"],"names":["createClientFields","serverOnlyCollectionProperties","serverOnlyUploadProperties","serverOnlyCollectionAdminProperties","createClientCollectionConfig","collection","defaultIDType","i18n","importMap","clientCollection","key","includes","admin","adminKey","description","t","livePreview","breakpoints","preview","auth","forgotPassword","minRequestInterval","cookies","depth","undefined","disableLocalStrategy","lockTime","loginWithUsername","maxLoginAttempts","removeTokenFromResponses","useAPIKey","tokenExpiration","verify","fields","hierarchy","slugify","_slugify","clientHierarchy","labels","plural","singular","upload","uploadInstructions","useInAdmin","uploadKey","variants","map","size","sanitizedSize","generateImageName","createClientCollectionConfigs","collections","clientCollections","Array","length","i"],"mappings":"AAeA,SAASA,kBAAkB,QAAQ,gCAA+B;AAqElE,MAAMC,iCAA4E;IAChF;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CAID;AAED,MAAMC,6BAAoE;IACxE;IACA;IACA;IACA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"version":3,"sources":["../../../src/collections/config/client.ts"],"sourcesContent":["import type { I18nClient, TFunction } from '@payloadcms/translations'\n\nimport type { StaticDescription } from '../../admin/types.js'\nimport type { ImportMap } from '../../cli/commands/generateImportMap/generateImportMap.js'\nimport type {\n LivePreviewConfig,\n ServerOnlyLivePreviewProperties,\n StaticLabel,\n} from '../../config/types.js'\nimport type { ClientField } from '../../fields/config/client.js'\nimport type { ClientHierarchyConfig } from '../../hierarchy/types.js'\nimport type { Payload } from '../../types/index.js'\nimport type { SanitizedUploadConfig, UploadInstructionsCapability } from '../../uploads/types.js'\nimport type { SanitizedCollectionConfig } from './types.js'\n\nimport { createClientFields } from '../../fields/config/client.js'\n\nexport type ServerOnlyCollectionProperties = keyof Pick<\n SanitizedCollectionConfig,\n | 'access'\n | 'custom'\n | 'endpoints'\n | 'flattenedFields'\n | 'hooks'\n | 'indexes'\n | 'joins'\n | 'llmInstructions'\n | 'polymorphicJoins'\n | 'sanitizedIndexes'\n | 'select'\n>\n\nexport type ServerOnlyCollectionAdminProperties = keyof Pick<\n SanitizedCollectionConfig['admin'],\n 'baseFilter' | 'baseListFilter' | 'components' | 'formatDocURL' | 'hidden'\n>\n\nexport type ServerOnlyUploadProperties = keyof Pick<\n SanitizedCollectionConfig['upload'],\n | 'admin'\n | 'adminThumbnail'\n | 'deleteFiles'\n | 'externalFileHeaderFilter'\n | 'fileOperations'\n | 'handlers'\n | 'modifyResponseHeaders'\n | 'uploadInstructions'\n>\n\ntype ClientUploadConfig = {\n uploadInstructions: Pick<UploadInstructionsCapability, 'useInAdmin'>\n} & Omit<SanitizedUploadConfig, 'fileOperations' | 'uploadInstructions'>\n\nexport type ClientCollectionConfig = {\n admin: {\n description?: StaticDescription\n livePreview?: Omit<LivePreviewConfig, ServerOnlyLivePreviewProperties>\n preview?: boolean\n } & Omit<\n SanitizedCollectionConfig['admin'],\n | 'components'\n | 'description'\n | 'formatDocURL'\n | 'joins'\n | 'livePreview'\n | 'preview'\n | ServerOnlyCollectionAdminProperties\n >\n auth?: {\n forgotPassword: Pick<SanitizedCollectionConfig['auth']['forgotPassword'], 'minRequestInterval'>\n verify?: true\n } & Omit<SanitizedCollectionConfig['auth'], 'forgotPassword' | 'strategies' | 'verify'>\n fields: ClientField[]\n hierarchy?: ClientHierarchyConfig | false\n labels: {\n plural: StaticLabel\n singular: StaticLabel\n }\n upload: ClientUploadConfig\n} & Omit<\n SanitizedCollectionConfig,\n 'admin' | 'auth' | 'fields' | 'hierarchy' | 'labels' | 'upload' | ServerOnlyCollectionProperties\n>\n\nconst serverOnlyCollectionProperties: Partial<ServerOnlyCollectionProperties>[] = [\n 'hooks',\n 'access',\n 'endpoints',\n 'custom',\n 'joins',\n 'llmInstructions',\n 'polymorphicJoins',\n 'flattenedFields',\n 'indexes',\n 'sanitizedIndexes',\n 'select',\n // `upload`\n // `admin`\n // are all handled separately\n]\n\nconst serverOnlyUploadProperties: Partial<ServerOnlyUploadProperties>[] = [\n 'admin',\n 'adminThumbnail',\n 'deleteFiles',\n 'externalFileHeaderFilter',\n 'fileOperations',\n 'handlers',\n 'modifyResponseHeaders',\n 'uploadInstructions',\n]\n\nconst serverOnlyCollectionAdminProperties: Partial<ServerOnlyCollectionAdminProperties>[] = [\n 'hidden',\n 'baseFilter',\n 'baseListFilter',\n 'components',\n 'formatDocURL',\n // 'preview' is handled separately\n // `livePreview` is handled separately\n]\n\nexport const createClientCollectionConfig = ({\n collection,\n defaultIDType,\n i18n,\n importMap,\n}: {\n collection: SanitizedCollectionConfig\n defaultIDType: Payload['config']['db']['defaultIDType']\n i18n: I18nClient\n importMap: ImportMap\n}): ClientCollectionConfig => {\n const clientCollection = {} as Partial<ClientCollectionConfig>\n\n for (const key in collection) {\n if (serverOnlyCollectionProperties.includes(key as any)) {\n continue\n }\n switch (key) {\n case 'admin':\n if (!collection.admin) {\n break\n }\n\n clientCollection.admin = {}\n\n for (const adminKey in collection.admin) {\n if (serverOnlyCollectionAdminProperties.includes(adminKey as any)) {\n continue\n }\n\n switch (adminKey) {\n case 'description':\n if (\n typeof collection.admin.description === 'string' ||\n typeof collection.admin.description === 'object'\n ) {\n if (collection.admin.description) {\n clientCollection.admin.description = collection.admin.description\n }\n } else if (typeof collection.admin.description === 'function') {\n const description = collection.admin.description({ t: i18n.t as TFunction })\n\n if (description) {\n clientCollection.admin.description = description\n }\n }\n break\n\n case 'livePreview':\n clientCollection.admin.livePreview = {}\n\n if (collection.admin.livePreview?.breakpoints) {\n clientCollection.admin.livePreview.breakpoints =\n collection.admin.livePreview.breakpoints\n }\n\n break\n\n case 'preview':\n if (collection.admin.preview) {\n clientCollection.admin.preview = true\n }\n\n break\n\n default:\n ;(clientCollection as any).admin[adminKey] =\n collection.admin[adminKey as keyof SanitizedCollectionConfig['admin']]\n }\n }\n\n break\n\n case 'auth':\n if (!collection.auth) {\n break\n }\n\n clientCollection.auth = {} as { verify?: true } & SanitizedCollectionConfig['auth']\n\n clientCollection.auth.forgotPassword = {\n minRequestInterval: collection.auth.forgotPassword.minRequestInterval,\n }\n\n if (collection.auth.cookies) {\n clientCollection.auth.cookies = collection.auth.cookies\n }\n\n if (collection.auth.depth !== undefined) {\n // Check for undefined as it can be a number (0)\n clientCollection.auth.depth = collection.auth.depth\n }\n\n if (collection.auth.disableLocalStrategy) {\n clientCollection.auth.disableLocalStrategy = collection.auth.disableLocalStrategy\n }\n\n if (collection.auth.lockTime !== undefined) {\n // Check for undefined as it can be a number (0)\n clientCollection.auth.lockTime = collection.auth.lockTime\n }\n\n if (collection.auth.loginWithUsername) {\n clientCollection.auth.loginWithUsername = collection.auth.loginWithUsername\n }\n\n if (collection.auth.maxLoginAttempts !== undefined) {\n // Check for undefined as it can be a number (0)\n clientCollection.auth.maxLoginAttempts = collection.auth.maxLoginAttempts\n }\n\n if (collection.auth.removeTokenFromResponses) {\n clientCollection.auth.removeTokenFromResponses = collection.auth.removeTokenFromResponses\n }\n\n if (collection.auth.useAPIKey) {\n clientCollection.auth.useAPIKey = collection.auth.useAPIKey\n }\n\n if (collection.auth.tokenExpiration) {\n clientCollection.auth.tokenExpiration = collection.auth.tokenExpiration\n }\n\n if (collection.auth.verify) {\n clientCollection.auth.verify = true\n }\n\n break\n\n case 'fields':\n clientCollection.fields = createClientFields({\n defaultIDType,\n fields: collection.fields,\n i18n,\n importMap,\n })\n\n break\n\n case 'hierarchy': {\n if (!collection.hierarchy || typeof collection.hierarchy !== 'object') {\n clientCollection.hierarchy = false\n break\n }\n\n // Strip slugify function as it can't cross server-client boundary\n const { slugify: _slugify, ...clientHierarchy } = collection.hierarchy\n clientCollection.hierarchy = clientHierarchy\n\n break\n }\n\n case 'labels':\n clientCollection.labels = {\n plural:\n typeof collection.labels.plural === 'function'\n ? collection.labels.plural({ i18n, t: i18n.t as TFunction })\n : collection.labels.plural,\n singular:\n typeof collection.labels.singular === 'function'\n ? collection.labels.singular({ i18n, t: i18n.t as TFunction })\n : collection.labels.singular,\n }\n\n break\n\n case 'upload':\n if (!collection.upload) {\n break\n }\n\n clientCollection.upload = {\n uploadInstructions: {\n useInAdmin: collection.upload.uploadInstructions?.useInAdmin ?? false,\n },\n } as ClientUploadConfig\n\n for (const uploadKey in collection.upload) {\n if (serverOnlyUploadProperties.includes(uploadKey as any)) {\n continue\n }\n\n if (uploadKey === 'variants') {\n clientCollection.upload.variants = collection.upload.variants?.map((size) => {\n const sanitizedSize = { ...size }\n if ('generateImageName' in sanitizedSize) {\n delete sanitizedSize.generateImageName\n }\n return sanitizedSize\n })\n } else {\n ;(clientCollection.upload as any)[uploadKey] =\n collection.upload[uploadKey as keyof SanitizedUploadConfig]\n }\n }\n\n break\n\n default:\n ;(clientCollection as any)[key] = collection[key as keyof SanitizedCollectionConfig]\n }\n }\n\n return clientCollection as ClientCollectionConfig\n}\n\nexport const createClientCollectionConfigs = ({\n collections,\n defaultIDType,\n i18n,\n importMap,\n}: {\n collections: SanitizedCollectionConfig[]\n defaultIDType: Payload['config']['db']['defaultIDType']\n i18n: I18nClient\n importMap: ImportMap\n}): ClientCollectionConfig[] => {\n const clientCollections = new Array(collections.length)\n\n for (let i = 0; i < collections.length; i++) {\n const collection = collections[i]!\n\n clientCollections[i] = createClientCollectionConfig({\n collection,\n defaultIDType,\n i18n,\n importMap,\n })\n }\n\n return clientCollections\n}\n"],"names":["createClientFields","serverOnlyCollectionProperties","serverOnlyUploadProperties","serverOnlyCollectionAdminProperties","createClientCollectionConfig","collection","defaultIDType","i18n","importMap","clientCollection","key","includes","admin","adminKey","description","t","livePreview","breakpoints","preview","auth","forgotPassword","minRequestInterval","cookies","depth","undefined","disableLocalStrategy","lockTime","loginWithUsername","maxLoginAttempts","removeTokenFromResponses","useAPIKey","tokenExpiration","verify","fields","hierarchy","slugify","_slugify","clientHierarchy","labels","plural","singular","upload","uploadInstructions","useInAdmin","uploadKey","variants","map","size","sanitizedSize","generateImageName","createClientCollectionConfigs","collections","clientCollections","Array","length","i"],"mappings":"AAeA,SAASA,kBAAkB,QAAQ,gCAA+B;AAqElE,MAAMC,iCAA4E;IAChF;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CAID;AAED,MAAMC,6BAAoE;IACxE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAED,MAAMC,sCAAsF;IAC1F;IACA;IACA;IACA;IACA;CAGD;AAED,OAAO,MAAMC,+BAA+B,CAAC,EAC3CC,UAAU,EACVC,aAAa,EACbC,IAAI,EACJC,SAAS,EAMV;IACC,MAAMC,mBAAmB,CAAC;IAE1B,IAAK,MAAMC,OAAOL,WAAY;QAC5B,IAAIJ,+BAA+BU,QAAQ,CAACD,MAAa;YACvD;QACF;QACA,OAAQA;YACN,KAAK;gBACH,IAAI,CAACL,WAAWO,KAAK,EAAE;oBACrB;gBACF;gBAEAH,iBAAiBG,KAAK,GAAG,CAAC;gBAE1B,IAAK,MAAMC,YAAYR,WAAWO,KAAK,CAAE;oBACvC,IAAIT,oCAAoCQ,QAAQ,CAACE,WAAkB;wBACjE;oBACF;oBAEA,OAAQA;w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C;4BAClE,MAAMC,gBAAgB;gCAAE,GAAGD,IAAI;4BAAC;4BAChC,IAAI,uBAAuBC,eAAe;gCACxC,OAAOA,cAAcC,iBAAiB;4BACxC;4BACA,OAAOD;wBACT;oBACF,OAAO;;wBACHvC,iBAAiBgC,MAAM,AAAQ,CAACG,UAAU,GAC1CvC,WAAWoC,MAAM,CAACG,UAAyC;oBAC/D;gBACF;gBAEA;YAEF;;gBACInC,gBAAwB,CAACC,IAAI,GAAGL,UAAU,CAACK,IAAuC;QACxF;IACF;IAEA,OAAOD;AACT,EAAC;AAED,OAAO,MAAMyC,gCAAgC,CAAC,EAC5CC,WAAW,EACX7C,aAAa,EACbC,IAAI,EACJC,SAAS,EAMV;IACC,MAAM4C,oBAAoB,IAAIC,MAAMF,YAAYG,MAAM;IAEtD,IAAK,IAAIC,IAAI,GAAGA,IAAIJ,YAAYG,MAAM,EAAEC,IAAK;QAC3C,MAAMlD,aAAa8C,WAAW,CAACI,EAAE;QAEjCH,iBAAiB,CAACG,EAAE,GAAGnD,6BAA6B;YAClDC;YACAC;YACAC;YACAC;QACF;IACF;IAEA,OAAO4C;AACT,EAAC"}
@@ -368,7 +368,10 @@ export type CollectionAdminOptions = {
368
368
  * Specify a navigational group for collections in the admin sidebar.
369
369
  * - Provide a string to place the entity in a custom group.
370
370
  * - Provide a record to define localized group names.
371
- * - Set to `false` to exclude the entity from the sidebar / dashboard without disabling its routes.
371
+ * - Set to `false` to exclude the collection from the sidebar, command palette, dashboard collection cards,
372
+ * and pin picker, and its documents from both the Pinned and Recently viewed dashboard tabs, including existing pins.
373
+ * This does not disable routes or change access control or rich text link and relationship eligibility.
374
+ * Use `enableRichTextLink` and `enableRichTextRelationship` to configure rich text eligibility separately.
372
375
  */
373
376
  group?: false | Record<string, string> | string;
374
377
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/collections/config/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,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AC7B,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IACzB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE;QACN,KAAK,EAAE,cAAc,CAAA;QACrB,aAAa,EAAE,MAAM,CAAA;QACrB,IAAI,EAAE,MAAM,CAAA;QACZ,gBAAgB,EAAE,OAAO,CAAA;KAC1B,EAAE,CAAA;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/collections/config/types.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { GraphQLInputObjectType, GraphQLNonNull, GraphQLObjectType } from 'graphql'\nimport type { IsAny, MarkOptional } from 'ts-essentials'\n\nimport type { CustomUpload, ViewTypes } from '../../admin/types.js'\nimport type { Arguments as MeArguments } from '../../auth/operations/me.js'\nimport type {\n Arguments as RefreshArguments,\n Result as RefreshResult,\n} from '../../auth/operations/refresh.js'\nimport type { Auth, IncomingAuthType } from '../../auth/types.js'\nimport type {\n Access,\n AfterErrorHookArgs,\n AfterErrorResult,\n CustomComponent,\n Endpoint,\n EntityDescription,\n GeneratePreviewURL,\n LabelFunction,\n LivePreviewConfig,\n MetaConfig,\n PayloadComponent,\n SharedAdminComponents,\n SharedEditViewComponents,\n SharedEntityViews,\n StaticLabel,\n} from '../../config/types.js'\nimport type { DBIdentifierName } from '../../database/types.js'\nimport type { Authorship, SanitizedAuthorship } from '../../fields/baseFields/authorship/types.js'\nimport type {\n Field,\n FlattenedField,\n JoinField,\n RelationshipField,\n UploadField,\n} from '../../fields/config/types.js'\nimport type {\n HierarchyConfig,\n HierarchyJoinFieldConfig,\n SanitizedHierarchyConfig,\n} from '../../hierarchy/types.js'\nimport type {\n CollectionAdminCustom,\n CollectionCustom,\n CollectionSlug,\n GeneratedTypes,\n JsonObject,\n RequestContext,\n TypedAuthOperations,\n TypedCollection,\n TypedCollectionSelect,\n TypedLocale,\n} from '../../index.js'\nimport type {\n PayloadRequest,\n SelectIncludeType,\n SelectType,\n Sort,\n TransformCollectionWithSelect,\n Where,\n WithSelectFn,\n} from '../../types/index.js'\nimport type { SanitizedUploadConfig, UploadConfig } from '../../uploads/types.js'\nimport type {\n IncomingCollectionVersions,\n SanitizedCollectionVersions,\n} from '../../versions/types.js'\nimport type {\n AfterOperationArg,\n BeforeOperationArg,\n OperationMap,\n} from '../operations/utilities/types.js'\n\nexport type DataFromCollectionSlug<TSlug extends CollectionSlug> =\n TypedCollection[string extends CollectionSlug ? CollectionSlug : TSlug]\n\n/**\n * The ID type of a given collection (e.g. `string` or `number`), taken from its generated type.\n * Use this instead of the project-wide {@link DefaultDocumentIDType} when the collection slug is\n * known, since each collection can have its own ID type.\n */\nexport type IDTypeForCollectionSlug<TSlug extends CollectionSlug> =\n DataFromCollectionSlug<TSlug>['id']\n\nexport type SelectFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollectionSelect[TSlug]\n\n/**\n * Collection slugs that do not have drafts enabled.\n * Detects collections without drafts by checking for the absence of the `_status` field.\n */\nexport type CollectionsWithoutDrafts = {\n [TSlug in CollectionSlug]: DataFromCollectionSlug<TSlug> extends { _status?: any } ? never : TSlug\n}[CollectionSlug]\n\n/**\n * Conditionally allows or forbids the `draft` property based on collection configuration.\n * When `strictDraftTypes` is enabled, the `draft` property is forbidden on collections without drafts.\n */\nexport type DraftFlagFromCollectionSlug<TSlug extends CollectionSlug> = GeneratedTypes extends {\n strictDraftTypes: true\n}\n ? TSlug extends CollectionsWithoutDrafts\n ? {\n /**\n * The `draft` property is not allowed because this collection does not have `versions.drafts` enabled.\n */\n draft?: never\n }\n : {\n /**\n * Whether the document(s) should be queried from the versions table/collection or not. [More](https://payloadcms.com/docs/versions/drafts#draft-api)\n */\n draft?: boolean\n }\n : {\n /**\n * Whether the document(s) should be queried from the versions table/collection or not. [More](https://payloadcms.com/docs/versions/drafts#draft-api)\n */\n draft?: boolean\n }\n\nexport type AuthOperationsFromCollectionSlug<TSlug extends CollectionSlug> =\n TypedAuthOperations[TSlug]\n\nexport type RequiredDataFromCollection<TData extends JsonObject> = MarkOptional<\n TData,\n 'collection' | 'createdAt' | 'deletedAt' | 'id' | 'updatedAt'\n>\n\nexport type RequiredDataFromCollectionSlug<TSlug extends CollectionSlug> =\n RequiredDataFromCollection<DataFromCollectionSlug<TSlug>>\n\n/**\n * Helper type for draft data INPUT (e.g., create operations) - makes all fields optional except system fields\n * When creating a draft, required fields don't need to be provided as validation is skipped\n * The id field is optional since it's auto-generated\n */\nexport type DraftDataFromCollection<TData extends JsonObject> = Partial<\n Omit<TData, 'collection' | 'createdAt' | 'deletedAt' | 'id' | 'updatedAt' | 'variants'>\n> &\n Partial<Pick<TData, 'collection' | 'createdAt' | 'deletedAt' | 'id' | 'updatedAt' | 'variants'>>\n\nexport type DraftDataFromCollectionSlug<TSlug extends CollectionSlug> = DraftDataFromCollection<\n DataFromCollectionSlug<TSlug>\n>\n\n/**\n * Helper type for draft data OUTPUT (e.g., query results) - makes user fields optional but keeps id required\n * When querying drafts, required fields may be null/undefined as validation is skipped, but system fields like id are always present\n */\nexport type QueryDraftDataFromCollection<TData extends JsonObject> = Partial<\n Omit<TData, 'createdAt' | 'deletedAt' | 'id' | 'updatedAt' | 'variants'>\n> &\n Partial<Pick<TData, 'createdAt' | 'deletedAt' | 'updatedAt' | 'variants'>> &\n Pick<TData, 'id'>\n\nexport type QueryDraftDataFromCollectionSlug<TSlug extends CollectionSlug> =\n QueryDraftDataFromCollection<DataFromCollectionSlug<TSlug>>\n\nexport type HookOperationType =\n | 'autosave'\n | 'count'\n | 'countVersions'\n | 'create'\n | 'delete'\n | 'forgotPassword'\n | 'login'\n | 'read'\n | 'readDistinct'\n | 'refresh'\n | 'resetPassword'\n | 'restoreVersion'\n | 'update'\n | 'validate'\n\ntype CreateOrUpdateOperation = Extract<HookOperationType, 'create' | 'update'>\ntype CreateUpdateOrValidateOperation = Extract<HookOperationType, 'create' | 'update' | 'validate'>\n\nexport type BeforeOperationHook<TOperationGeneric extends CollectionSlug = string> = (\n arg: BeforeOperationArg<TOperationGeneric>,\n) =>\n | Parameters<OperationMap<TOperationGeneric>[keyof OperationMap<TOperationGeneric>]>[0]\n | Promise<Parameters<OperationMap<TOperationGeneric>[keyof OperationMap<TOperationGeneric>]>[0]>\n | Promise<void>\n | void\n\nexport type BeforeValidateHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data?: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateUpdateOrValidateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateUpdateOrValidateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type AfterChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data: Partial<T>\n doc: T\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Whether access control is being overridden for this operation\n */\n overrideAccess?: boolean\n previousDoc: T\n req: PayloadRequest\n /** Resolved field selection for the operation's response. */\n select?: SelectType\n}) => any\n\nexport type BeforeReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n /**\n * Whether access control is being overridden for this operation\n */\n overrideAccess?: boolean\n query: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type AfterReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n findMany?: boolean\n /**\n * Whether access control is being overridden for this operation\n */\n overrideAccess?: boolean\n query?: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type BeforeDeleteHook = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterDeleteHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterOperationHook<TOperationGeneric extends CollectionSlug = string> = (\n arg: AfterOperationArg<TOperationGeneric>,\n) =>\n | Awaited<ReturnType<OperationMap<TOperationGeneric>[keyof OperationMap<TOperationGeneric>]>>\n | Promise<\n Awaited<ReturnType<OperationMap<TOperationGeneric>[keyof OperationMap<TOperationGeneric>]>>\n >\n\nexport type BeforeLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n user: T\n}) => any\n\nexport type AfterLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n token: string\n user: T\n}) => any\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type AfterLogoutHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n}) => any\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type AfterMeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n response: unknown\n}) => any\n\nexport type RefreshHook<T extends TypeWithID = any> = (args: {\n args: RefreshArguments\n user: T\n}) => Promise<RefreshResult | void> | (RefreshResult | void)\n\nexport type MeHook<T extends TypeWithID = any> = (args: {\n args: MeArguments\n user: T\n}) => ({ exp: number; user: T } | void) | Promise<{ exp: number; user: T } | void>\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type AfterRefreshHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n exp: number\n req: PayloadRequest\n token: string\n}) => any\n\nexport type AfterErrorHook = (\n args: { collection: SanitizedCollectionConfig } & AfterErrorHookArgs,\n) => AfterErrorResult | Promise<AfterErrorResult>\n\nexport type AfterForgotPasswordHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n}) => any\n\nexport type EnableFoldersOptions = {\n // Displays the folder collection and parentFolder field in the document view\n debug?: boolean\n}\n\n/**\n * Configuration options for folder hierarchy preset.\n * Subset of HierarchyConfig with folder-appropriate defaults applied.\n */\nexport type FoldersConfig = {\n admin?: {\n components?: {\n Icon?: PayloadComponent\n }\n injectSidebarTab?: boolean\n treeLimit?: number\n useHeaderButton?: boolean\n }\n collectionSpecific?:\n | {\n fieldName?: string\n }\n | boolean\n joinField?: HierarchyJoinFieldConfig\n parentFieldName?: string\n slugField?: string\n slugify?: (text: string) => string\n slugPathFieldName?: string\n titlePathFieldName?: string\n}\n\n/**\n * Configuration options for tags hierarchy preset.\n * Same as FoldersConfig but allowHasMany can be overridden.\n */\nexport type TagsConfig = {\n allowHasMany?: boolean\n} & FoldersConfig\n\nexport type BaseFilter = (args: {\n limit: number\n locale?: TypedLocale\n page: number\n req: PayloadRequest\n sort: string\n}) => null | Promise<null | Where> | Where\n\n/**\n * @deprecated Use `BaseFilter` instead.\n */\nexport type BaseListFilter = BaseFilter\n\nexport type CollectionAdminOptions = {\n /**\n * Defines a default base filter which will be applied in the following parts of the admin panel:\n * - List View\n * - Relationship fields for internal links within the Lexical editor\n *\n * This is especially useful for plugins like multi-tenant. For example,\n * a user may have access to multiple tenants, but should only see content\n * related to the currently active or selected tenant in those places.\n */\n baseFilter?: BaseFilter\n /**\n * @deprecated Use `baseFilter` instead. If both are defined,\n * `baseFilter` will take precedence. This property remains only\n * for backward compatibility and may be removed in a future version.\n *\n * Originally, `baseListFilter` was intended to filter only the List View\n * in the admin panel. However, base filtering is often required in other areas\n * such as internal link relationships in the Lexical editor.\n */\n baseListFilter?: BaseListFilter\n /**\n * Custom admin components\n */\n components?: {\n afterList?: CustomComponent[]\n afterListTable?: CustomComponent[]\n beforeList?: CustomComponent[]\n beforeListTable?: CustomComponent[]\n /**\n * Components within the edit view\n */\n edit?: {\n /**\n * Replaces the \"Upload\" section\n * + upload must be enabled\n */\n Upload?: CustomUpload\n } & SharedEditViewComponents\n listMenuItems?: CustomComponent[]\n views?: {\n /**\n * Replace or modify the \"list\" view.\n * @link https://payloadcms.com/docs/custom-components/list-view\n */\n list?: {\n actions?: CustomComponent[]\n Component?: PayloadComponent\n NoResults?: CustomComponent\n }\n } & SharedEntityViews\n } & Omit<SharedAdminComponents, 'edit' | 'views'>\n /** Extension point to add your custom data. Available in server and client. */\n custom?: CollectionAdminCustom\n /**\n * Default columns to show in list view\n */\n defaultColumns?: string[]\n /**\n * Custom description for collection. This will also be used as JSDoc for the generated types\n */\n description?: EntityDescription\n /**\n * Disable the Copy To Locale button in the edit document view\n * @default false\n */\n disableCopyToLocale?: boolean\n enableRichTextLink?: boolean\n enableRichTextRelationship?: boolean\n /**\n * Function to format the URL for document links in the list view.\n * Return null to disable linking for that document.\n * Return a string to customize the link destination.\n * If not provided, uses the default admin edit URL.\n */\n formatDocURL?: (args: {\n collectionSlug: string\n /**\n * The default URL that would normally be used for this document link.\n * You can return this as-is, modify it, or completely replace it.\n */\n defaultURL: string\n doc: Record<string, unknown>\n req: PayloadRequest\n /**\n * The current view context where the link is being generated.\n * Most relevant values for document linking are 'list' and 'trash'.\n */\n viewType?: ViewTypes\n }) => null | string\n /**\n * Specify a navigational group for collections in the admin sidebar.\n * - Provide a string to place the entity in a custom group.\n * - Provide a record to define localized group names.\n * - Set to `false` to exclude the entity from the sidebar / dashboard without disabling its routes.\n */\n group?: false | Record<string, string> | string\n /**\n * Exclude the collection from the admin nav and routes\n */\n hidden?: ((args: { user: PayloadRequest['user'] }) => boolean) | boolean\n /**\n * Additional fields to be searched via the full text search\n */\n listSearchableFields?: string[]\n /**\n * Live Preview options.\n *\n * @see https://payloadcms.com/docs/live-preview/overview\n */\n livePreview?: LivePreviewConfig\n meta?: MetaConfig\n pagination?: {\n defaultLimit?: number\n limits?: number[]\n }\n /**\n * Function to generate custom preview URL\n */\n preview?: GeneratePreviewURL\n /**\n * Field to use as the thumbnail image in grid/card views. Defaults to the first field of type `upload`.\n */\n useAsThumbnail?: string\n /**\n * Field to use as title in Edit View and first column in List view\n */\n useAsTitle?: string\n}\n\nexport type CollectionAccess<TData = any> = {\n admin?: ({ slug, req }: { req: PayloadRequest; slug: string }) => boolean | Promise<boolean>\n create?: Access<TData>\n delete?: Access<TData>\n read?: Access<TData>\n readVersions?: Access<TData>\n unlock?: Access<TData>\n update?: Access<TData>\n /**\n * Controls on-demand validation for this collection.\n * Falls back to `update` access when omitted.\n * The access function receives `req.operation === 'validate'`.\n * @see https://payloadcms.com/docs/validation/overview#access-control-and-hooks\n */\n validate?: Access<TData>\n}\n\ntype CollectionHooks<TSlug extends CollectionSlug = any> = {\n afterChange?: AfterChangeHook[]\n afterDelete?: AfterDeleteHook[]\n afterError?: AfterErrorHook[]\n afterForgotPassword?: AfterForgotPasswordHook[]\n afterLogin?: AfterLoginHook[]\n afterLogout?: AfterLogoutHook[]\n afterMe?: AfterMeHook[]\n afterOperation?: AfterOperationHook<TSlug>[]\n afterRead?: AfterReadHook[]\n afterRefresh?: AfterRefreshHook[]\n beforeChange?: BeforeChangeHook[]\n beforeDelete?: BeforeDeleteHook[]\n beforeLogin?: BeforeLoginHook[]\n beforeOperation?: BeforeOperationHook<TSlug>[]\n beforeRead?: BeforeReadHook[]\n beforeValidate?: BeforeValidateHook[]\n /**\n /**\n * Use the `me` hook to control the `me` operation.\n * Here, you can optionally instruct the me operation to return early,\n * and skip its default logic.\n */\n me?: MeHook[]\n /**\n * Use the `refresh` hook to control the refresh operation.\n * Here, you can optionally instruct the refresh operation to return early,\n * and skip its default logic.\n */\n refresh?: RefreshHook[]\n}\n\n/** Manage all aspects of a data collection */\nexport type CollectionConfig<TSlug extends CollectionSlug = any> = {\n /**\n * Do not set this property manually. This is set to true during sanitization, to avoid\n * sanitizing the same collection multiple times.\n */\n _sanitized?: boolean\n /**\n * Access control\n */\n access?: CollectionAccess\n /**\n * Collection admin options\n */\n admin?: CollectionAdminOptions\n /**\n * Collection login options\n *\n * Use `true` to enable with default options\n */\n auth?: boolean | IncomingAuthType\n /**\n * Automatically track the user that created and last updated each document via\n * polymorphic `createdBy` / `updatedBy` relationship fields to your auth collections.\n *\n * Use `true` (default) to enable both, `false` to disable both, or an object to\n * toggle each field independently, e.g. `{ updatedBy: false }`.\n *\n * @default true\n */\n authorship?: Authorship | boolean\n /**\n * Opt this collection into or out of content branching.\n *\n * Defaults to the root `branching` setting, except for built-in Payload\n * collections, which default to `false` and must opt in explicitly.\n *\n * Auth-enabled collections cannot use branching. A branch merge must not\n * replace authentication credentials or sessions with data from a shadow\n * row.\n */\n branching?: boolean\n /**\n * Configuration for bulk operations\n */\n /** Extension point to add your custom data. Server only. */\n custom?: CollectionCustom\n /**\n * Used to override the default naming of the database table or collection with your using a function or string\n * @WARNING: If you change this property with existing data, you will need to handle the renaming of the table in your database or by using migrations\n */\n dbName?: DBIdentifierName\n defaultPopulate?: IsAny<SelectFromCollectionSlug<TSlug>> extends true\n ? SelectType\n : SelectFromCollectionSlug<TSlug>\n /**\n * Default field to sort by in collection list view\n */\n defaultSort?: Sort\n /**\n * Disable the bulk delete operation for the collection in the admin panel and the API\n */\n disableBulkDelete?: boolean\n /**\n * Disable the bulk edit operation for the collection in the admin panel and the API\n */\n disableBulkEdit?: boolean\n /**\n * When true, do not show the \"Duplicate\" button while editing documents within this collection and prevent `duplicate` from all APIs\n */\n disableDuplicate?: boolean\n /**\n * Opt-in to enable query presets for this collection.\n * @see https://payloadcms.com/docs/query-presets/overview\n */\n enableQueryPresets?: boolean\n /**\n * Custom rest api endpoints, set false to disable all rest endpoints for this collection.\n */\n endpoints?: false | Omit<Endpoint, 'root'>[]\n fields: Field[]\n /**\n * Enable folder hierarchy preset for this collection.\n * Sets hierarchy with folder defaults: allowHasMany: false, FolderIcon, useHeaderButton: true\n *\n * Use `true` for defaults, or object for customization.\n * Cannot be used together with `tags` or `hierarchy`.\n */\n folders?: boolean | FoldersConfig\n /**\n * GraphQL configuration\n */\n graphQL?:\n | {\n disableMutations?: true\n disableQueries?: true\n pluralName?: string\n singularName?: string\n }\n | false\n /**\n * Enable hierarchical tree structure for this collection\n *\n * Use `true` to enable with defaults (auto-detects parent field)\n * or provide configuration object\n *\n * @example\n * // Enable with defaults\n * hierarchy: true\n *\n * @example\n * // Customize field names and slugify function\n * hierarchy: {\n * parentFieldName: 'parent',\n * slugify: (text) => customSlugify(text),\n * slugPathFieldName: '_breadcrumbPath'\n * }\n */\n hierarchy?: boolean | HierarchyConfig\n /**\n * Hooks to modify Payload functionality\n */\n hooks?: CollectionHooks<TSlug>\n /**\n * Define compound indexes for this collection.\n * This can be used to either speed up querying/sorting by 2 or more fields at the same time or\n * to ensure uniqueness between several fields.\n * Specify field paths\n * @example\n * [{ unique: true, fields: ['title', 'group.name'] }]\n * @default []\n */\n indexes?: CompoundIndex[]\n /**\n * Label configuration\n */\n labels?: {\n plural?: LabelFunction | StaticLabel\n singular?: LabelFunction | StaticLabel\n }\n /** Read-only Markdown instructions included in this collection's MCP and CLI schema responses. */\n llmInstructions?: string\n /**\n * Enables / Disables the ability to lock documents while editing\n * @default true\n */\n lockDocuments?:\n | {\n duration: number\n }\n | false\n /**\n * If true, enables custom ordering for the collection, and documents in the listView can be reordered via drag and drop.\n * New documents are inserted at the end of the list according to this parameter.\n *\n * Under the hood, a field with {@link https://payloadcms.com/docs/configuration/collections#fractional-indexing|fractional indexing} is used to optimize inserts and reorderings.\n *\n * @default false\n *\n * @experimental There may be frequent breaking changes to this API\n */\n orderable?: boolean\n slug: string\n /**\n * Enable tags hierarchy preset for this collection.\n * Sets hierarchy with tag defaults: allowHasMany: true, TagIcon\n *\n * Use `true` for defaults, or object for customization.\n * Cannot be used together with `folders` or `hierarchy`.\n */\n tags?: boolean | TagsConfig\n /**\n * Add `createdAt`, `deletedAt` and `updatedAt` fields\n *\n * @default true\n */\n timestamps?: boolean\n /**\n * Enables trash support for this collection.\n *\n * When enabled, documents will include a `deletedAt` timestamp field.\n * This allows documents to be marked as deleted without being permanently removed.\n * The `deletedAt` field will be set to the current date and time when a document is trashed.\n *\n * @default false\n */\n trash?: boolean\n /**\n * Options used in typescript generation\n */\n typescript?: {\n /**\n * Typescript generation name given to the interface type\n */\n interface?: string\n }\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable uploads\n */\n upload?: boolean | UploadConfig\n /**\n * Enable versioning. Set it to true to enable default versions settings,\n * or customize versions options by setting the property equal to an object\n * containing the version options.\n *\n * @default false // disable versioning\n */\n versions?: boolean | IncomingCollectionVersions\n} & Pick<\n WithSelectFn<\n IsAny<SelectFromCollectionSlug<TSlug>> extends true\n ? SelectIncludeType\n : SelectFromCollectionSlug<TSlug>\n >,\n 'select'\n>\n\nexport type SanitizedJoin = {\n /**\n * The field configuration defining the join\n */\n field: JoinField\n getForeignPath?(args: { locale?: TypedLocale }): string\n /**\n * The path of the join field in dot notation\n */\n joinPath: string\n /**\n * `parentIsLocalized` is true if any parent field of the\n * field configuration defining the join is localized\n */\n parentIsLocalized: boolean\n targetField: RelationshipField | UploadField\n}\n\nexport type SanitizedJoins = {\n [collectionSlug: string]: SanitizedJoin[]\n}\n\n/**\n * Properties populated during sanitization are redefined below. All other collection properties\n * preserve their incoming optionality.\n */\nexport interface SanitizedCollectionConfig\n extends Omit<\n CollectionConfig,\n | '_sanitized'\n | 'access'\n | 'admin'\n | 'auth'\n | 'authorship'\n | 'custom'\n | 'endpoints'\n | 'folder'\n | 'folders'\n | 'hierarchy'\n | 'hooks'\n | 'indexes'\n | 'labels'\n | 'slug'\n | 'tags'\n | 'timestamps'\n | 'upload'\n | 'versions'\n >,\n Required<Pick<CollectionConfig, 'admin' | 'custom' | 'indexes' | 'timestamps'>> {\n _sanitized: true\n access: Pick<CollectionAccess, 'admin'> &\n Required<\n Pick<\n CollectionAccess,\n 'create' | 'delete' | 'read' | 'readVersions' | 'unlock' | 'update' | 'validate'\n >\n >\n auth: Auth\n authorship: SanitizedAuthorship\n endpoints: Endpoint[] | false\n /**\n * Fields in the database schema structure\n * Rows / collapsible / tabs w/o name `fields` merged to top, UIs are excluded\n */\n flattenedFields: FlattenedField[]\n /**\n * Hierarchy configuration (when collection is a hierarchy type like folders or tags)\n */\n hierarchy: false | SanitizedHierarchyConfig\n hooks: Required<CollectionHooks>\n /**\n * Object of collections to join 'Join Fields object keyed by collection\n */\n joins: SanitizedJoins\n labels: Required<NonNullable<CollectionConfig['labels']>>\n /**\n * List of all polymorphic join fields\n */\n polymorphicJoins: SanitizedJoin[]\n\n sanitizedIndexes: SanitizedCompoundIndex[]\n\n slug: CollectionSlug\n\n upload: SanitizedUploadConfig\n versions?: SanitizedCollectionVersions\n}\n\nexport type Collection = {\n config: SanitizedCollectionConfig\n customIDType?: 'number' | 'text'\n graphQL?: {\n countType: GraphQLObjectType\n JWT: GraphQLObjectType\n mutationInputType: GraphQLNonNull<any>\n paginatedType: GraphQLObjectType\n type: GraphQLObjectType\n updateMutationInputType: GraphQLNonNull<any>\n versionType: GraphQLObjectType\n whereInputType: GraphQLInputObjectType\n }\n}\n\nexport type BulkOperationResult<TSlug extends CollectionSlug, TSelect extends SelectType> = {\n docs: TransformCollectionWithSelect<TSlug, TSelect>[]\n errors: {\n id: DataFromCollectionSlug<TSlug>['id']\n isPublic: boolean\n message: string\n }[]\n}\n\nexport type AuthCollection = {\n config: SanitizedCollectionConfig\n}\n\nexport type LocalizedMeta = {\n [locale: string]: {\n status: 'draft' | 'published'\n updatedAt: string\n }\n}\n\nexport type TypeWithID = {\n id: number | string\n}\n\nexport type TypeWithTimestamps = {\n [key: string]: unknown\n createdAt: string\n deletedAt?: null | string\n id: number | string\n updatedAt: string\n}\n\nexport type CompoundIndex = {\n fields: string[]\n /**\n * MongoDB-only: scopes the unique constraint to documents where every field\n * named here is present. Postgres and SQLite need no equivalent — a NULL in\n * any column of a composite unique constraint already excludes that row from\n * the comparison, but MongoDB's compound unique indexes treat a missing\n * field as an ordinary value that can collide with another document's.\n */\n requireExists?: string[]\n unique?: boolean\n}\n\nexport type SanitizedCompoundIndex = {\n fields: {\n field: FlattenedField\n localizedPath: string\n path: string\n pathHasLocalized: boolean\n }[]\n requireExists?: string[]\n unique: boolean\n}\n"],"names":[],"mappings":"AAAA,qDAAqD,GA87BrD,WASC"}
1
+ {"version":3,"sources":["../../../src/collections/config/types.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { GraphQLInputObjectType, GraphQLNonNull, GraphQLObjectType } from 'graphql'\nimport type { IsAny, MarkOptional } from 'ts-essentials'\n\nimport type { CustomUpload, ViewTypes } from '../../admin/types.js'\nimport type { Arguments as MeArguments } from '../../auth/operations/me.js'\nimport type {\n Arguments as RefreshArguments,\n Result as RefreshResult,\n} from '../../auth/operations/refresh.js'\nimport type { Auth, IncomingAuthType } from '../../auth/types.js'\nimport type {\n Access,\n AfterErrorHookArgs,\n AfterErrorResult,\n CustomComponent,\n Endpoint,\n EntityDescription,\n GeneratePreviewURL,\n LabelFunction,\n LivePreviewConfig,\n MetaConfig,\n PayloadComponent,\n SharedAdminComponents,\n SharedEditViewComponents,\n SharedEntityViews,\n StaticLabel,\n} from '../../config/types.js'\nimport type { DBIdentifierName } from '../../database/types.js'\nimport type { Authorship, SanitizedAuthorship } from '../../fields/baseFields/authorship/types.js'\nimport type {\n Field,\n FlattenedField,\n JoinField,\n RelationshipField,\n UploadField,\n} from '../../fields/config/types.js'\nimport type {\n HierarchyConfig,\n HierarchyJoinFieldConfig,\n SanitizedHierarchyConfig,\n} from '../../hierarchy/types.js'\nimport type {\n CollectionAdminCustom,\n CollectionCustom,\n CollectionSlug,\n GeneratedTypes,\n JsonObject,\n RequestContext,\n TypedAuthOperations,\n TypedCollection,\n TypedCollectionSelect,\n TypedLocale,\n} from '../../index.js'\nimport type {\n PayloadRequest,\n SelectIncludeType,\n SelectType,\n Sort,\n TransformCollectionWithSelect,\n Where,\n WithSelectFn,\n} from '../../types/index.js'\nimport type { SanitizedUploadConfig, UploadConfig } from '../../uploads/types.js'\nimport type {\n IncomingCollectionVersions,\n SanitizedCollectionVersions,\n} from '../../versions/types.js'\nimport type {\n AfterOperationArg,\n BeforeOperationArg,\n OperationMap,\n} from '../operations/utilities/types.js'\n\nexport type DataFromCollectionSlug<TSlug extends CollectionSlug> =\n TypedCollection[string extends CollectionSlug ? CollectionSlug : TSlug]\n\n/**\n * The ID type of a given collection (e.g. `string` or `number`), taken from its generated type.\n * Use this instead of the project-wide {@link DefaultDocumentIDType} when the collection slug is\n * known, since each collection can have its own ID type.\n */\nexport type IDTypeForCollectionSlug<TSlug extends CollectionSlug> =\n DataFromCollectionSlug<TSlug>['id']\n\nexport type SelectFromCollectionSlug<TSlug extends CollectionSlug> = TypedCollectionSelect[TSlug]\n\n/**\n * Collection slugs that do not have drafts enabled.\n * Detects collections without drafts by checking for the absence of the `_status` field.\n */\nexport type CollectionsWithoutDrafts = {\n [TSlug in CollectionSlug]: DataFromCollectionSlug<TSlug> extends { _status?: any } ? never : TSlug\n}[CollectionSlug]\n\n/**\n * Conditionally allows or forbids the `draft` property based on collection configuration.\n * When `strictDraftTypes` is enabled, the `draft` property is forbidden on collections without drafts.\n */\nexport type DraftFlagFromCollectionSlug<TSlug extends CollectionSlug> = GeneratedTypes extends {\n strictDraftTypes: true\n}\n ? TSlug extends CollectionsWithoutDrafts\n ? {\n /**\n * The `draft` property is not allowed because this collection does not have `versions.drafts` enabled.\n */\n draft?: never\n }\n : {\n /**\n * Whether the document(s) should be queried from the versions table/collection or not. [More](https://payloadcms.com/docs/versions/drafts#draft-api)\n */\n draft?: boolean\n }\n : {\n /**\n * Whether the document(s) should be queried from the versions table/collection or not. [More](https://payloadcms.com/docs/versions/drafts#draft-api)\n */\n draft?: boolean\n }\n\nexport type AuthOperationsFromCollectionSlug<TSlug extends CollectionSlug> =\n TypedAuthOperations[TSlug]\n\nexport type RequiredDataFromCollection<TData extends JsonObject> = MarkOptional<\n TData,\n 'collection' | 'createdAt' | 'deletedAt' | 'id' | 'updatedAt'\n>\n\nexport type RequiredDataFromCollectionSlug<TSlug extends CollectionSlug> =\n RequiredDataFromCollection<DataFromCollectionSlug<TSlug>>\n\n/**\n * Helper type for draft data INPUT (e.g., create operations) - makes all fields optional except system fields\n * When creating a draft, required fields don't need to be provided as validation is skipped\n * The id field is optional since it's auto-generated\n */\nexport type DraftDataFromCollection<TData extends JsonObject> = Partial<\n Omit<TData, 'collection' | 'createdAt' | 'deletedAt' | 'id' | 'updatedAt' | 'variants'>\n> &\n Partial<Pick<TData, 'collection' | 'createdAt' | 'deletedAt' | 'id' | 'updatedAt' | 'variants'>>\n\nexport type DraftDataFromCollectionSlug<TSlug extends CollectionSlug> = DraftDataFromCollection<\n DataFromCollectionSlug<TSlug>\n>\n\n/**\n * Helper type for draft data OUTPUT (e.g., query results) - makes user fields optional but keeps id required\n * When querying drafts, required fields may be null/undefined as validation is skipped, but system fields like id are always present\n */\nexport type QueryDraftDataFromCollection<TData extends JsonObject> = Partial<\n Omit<TData, 'createdAt' | 'deletedAt' | 'id' | 'updatedAt' | 'variants'>\n> &\n Partial<Pick<TData, 'createdAt' | 'deletedAt' | 'updatedAt' | 'variants'>> &\n Pick<TData, 'id'>\n\nexport type QueryDraftDataFromCollectionSlug<TSlug extends CollectionSlug> =\n QueryDraftDataFromCollection<DataFromCollectionSlug<TSlug>>\n\nexport type HookOperationType =\n | 'autosave'\n | 'count'\n | 'countVersions'\n | 'create'\n | 'delete'\n | 'forgotPassword'\n | 'login'\n | 'read'\n | 'readDistinct'\n | 'refresh'\n | 'resetPassword'\n | 'restoreVersion'\n | 'update'\n | 'validate'\n\ntype CreateOrUpdateOperation = Extract<HookOperationType, 'create' | 'update'>\ntype CreateUpdateOrValidateOperation = Extract<HookOperationType, 'create' | 'update' | 'validate'>\n\nexport type BeforeOperationHook<TOperationGeneric extends CollectionSlug = string> = (\n arg: BeforeOperationArg<TOperationGeneric>,\n) =>\n | Parameters<OperationMap<TOperationGeneric>[keyof OperationMap<TOperationGeneric>]>[0]\n | Promise<Parameters<OperationMap<TOperationGeneric>[keyof OperationMap<TOperationGeneric>]>[0]>\n | Promise<void>\n | void\n\nexport type BeforeValidateHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data?: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateUpdateOrValidateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type BeforeChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data: Partial<T>\n /**\n * Hook operation being performed\n */\n operation: CreateUpdateOrValidateOperation\n /**\n * Original document before change\n *\n * `undefined` on 'create' operation\n */\n originalDoc?: T\n req: PayloadRequest\n}) => any\n\nexport type AfterChangeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n data: Partial<T>\n doc: T\n /**\n * Hook operation being performed\n */\n operation: CreateOrUpdateOperation\n /**\n * Whether access control is being overridden for this operation\n */\n overrideAccess?: boolean\n previousDoc: T\n req: PayloadRequest\n /** Resolved field selection for the operation's response. */\n select?: SelectType\n}) => any\n\nexport type BeforeReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n /**\n * Whether access control is being overridden for this operation\n */\n overrideAccess?: boolean\n query: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type AfterReadHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n findMany?: boolean\n /**\n * Whether access control is being overridden for this operation\n */\n overrideAccess?: boolean\n query?: { [key: string]: any }\n req: PayloadRequest\n}) => any\n\nexport type BeforeDeleteHook = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterDeleteHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n doc: T\n id: number | string\n req: PayloadRequest\n}) => any\n\nexport type AfterOperationHook<TOperationGeneric extends CollectionSlug = string> = (\n arg: AfterOperationArg<TOperationGeneric>,\n) =>\n | Awaited<ReturnType<OperationMap<TOperationGeneric>[keyof OperationMap<TOperationGeneric>]>>\n | Promise<\n Awaited<ReturnType<OperationMap<TOperationGeneric>[keyof OperationMap<TOperationGeneric>]>>\n >\n\nexport type BeforeLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n user: T\n}) => any\n\nexport type AfterLoginHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n token: string\n user: T\n}) => any\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type AfterLogoutHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n}) => any\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type AfterMeHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n req: PayloadRequest\n response: unknown\n}) => any\n\nexport type RefreshHook<T extends TypeWithID = any> = (args: {\n args: RefreshArguments\n user: T\n}) => Promise<RefreshResult | void> | (RefreshResult | void)\n\nexport type MeHook<T extends TypeWithID = any> = (args: {\n args: MeArguments\n user: T\n}) => ({ exp: number; user: T } | void) | Promise<{ exp: number; user: T } | void>\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type AfterRefreshHook<T extends TypeWithID = any> = (args: {\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n exp: number\n req: PayloadRequest\n token: string\n}) => any\n\nexport type AfterErrorHook = (\n args: { collection: SanitizedCollectionConfig } & AfterErrorHookArgs,\n) => AfterErrorResult | Promise<AfterErrorResult>\n\nexport type AfterForgotPasswordHook = (args: {\n args?: any\n /** The collection which this hook is being run on */\n collection: SanitizedCollectionConfig\n context: RequestContext\n}) => any\n\nexport type EnableFoldersOptions = {\n // Displays the folder collection and parentFolder field in the document view\n debug?: boolean\n}\n\n/**\n * Configuration options for folder hierarchy preset.\n * Subset of HierarchyConfig with folder-appropriate defaults applied.\n */\nexport type FoldersConfig = {\n admin?: {\n components?: {\n Icon?: PayloadComponent\n }\n injectSidebarTab?: boolean\n treeLimit?: number\n useHeaderButton?: boolean\n }\n collectionSpecific?:\n | {\n fieldName?: string\n }\n | boolean\n joinField?: HierarchyJoinFieldConfig\n parentFieldName?: string\n slugField?: string\n slugify?: (text: string) => string\n slugPathFieldName?: string\n titlePathFieldName?: string\n}\n\n/**\n * Configuration options for tags hierarchy preset.\n * Same as FoldersConfig but allowHasMany can be overridden.\n */\nexport type TagsConfig = {\n allowHasMany?: boolean\n} & FoldersConfig\n\nexport type BaseFilter = (args: {\n limit: number\n locale?: TypedLocale\n page: number\n req: PayloadRequest\n sort: string\n}) => null | Promise<null | Where> | Where\n\n/**\n * @deprecated Use `BaseFilter` instead.\n */\nexport type BaseListFilter = BaseFilter\n\nexport type CollectionAdminOptions = {\n /**\n * Defines a default base filter which will be applied in the following parts of the admin panel:\n * - List View\n * - Relationship fields for internal links within the Lexical editor\n *\n * This is especially useful for plugins like multi-tenant. For example,\n * a user may have access to multiple tenants, but should only see content\n * related to the currently active or selected tenant in those places.\n */\n baseFilter?: BaseFilter\n /**\n * @deprecated Use `baseFilter` instead. If both are defined,\n * `baseFilter` will take precedence. This property remains only\n * for backward compatibility and may be removed in a future version.\n *\n * Originally, `baseListFilter` was intended to filter only the List View\n * in the admin panel. However, base filtering is often required in other areas\n * such as internal link relationships in the Lexical editor.\n */\n baseListFilter?: BaseListFilter\n /**\n * Custom admin components\n */\n components?: {\n afterList?: CustomComponent[]\n afterListTable?: CustomComponent[]\n beforeList?: CustomComponent[]\n beforeListTable?: CustomComponent[]\n /**\n * Components within the edit view\n */\n edit?: {\n /**\n * Replaces the \"Upload\" section\n * + upload must be enabled\n */\n Upload?: CustomUpload\n } & SharedEditViewComponents\n listMenuItems?: CustomComponent[]\n views?: {\n /**\n * Replace or modify the \"list\" view.\n * @link https://payloadcms.com/docs/custom-components/list-view\n */\n list?: {\n actions?: CustomComponent[]\n Component?: PayloadComponent\n NoResults?: CustomComponent\n }\n } & SharedEntityViews\n } & Omit<SharedAdminComponents, 'edit' | 'views'>\n /** Extension point to add your custom data. Available in server and client. */\n custom?: CollectionAdminCustom\n /**\n * Default columns to show in list view\n */\n defaultColumns?: string[]\n /**\n * Custom description for collection. This will also be used as JSDoc for the generated types\n */\n description?: EntityDescription\n /**\n * Disable the Copy To Locale button in the edit document view\n * @default false\n */\n disableCopyToLocale?: boolean\n enableRichTextLink?: boolean\n enableRichTextRelationship?: boolean\n /**\n * Function to format the URL for document links in the list view.\n * Return null to disable linking for that document.\n * Return a string to customize the link destination.\n * If not provided, uses the default admin edit URL.\n */\n formatDocURL?: (args: {\n collectionSlug: string\n /**\n * The default URL that would normally be used for this document link.\n * You can return this as-is, modify it, or completely replace it.\n */\n defaultURL: string\n doc: Record<string, unknown>\n req: PayloadRequest\n /**\n * The current view context where the link is being generated.\n * Most relevant values for document linking are 'list' and 'trash'.\n */\n viewType?: ViewTypes\n }) => null | string\n /**\n * Specify a navigational group for collections in the admin sidebar.\n * - Provide a string to place the entity in a custom group.\n * - Provide a record to define localized group names.\n * - Set to `false` to exclude the collection from the sidebar, command palette, dashboard collection cards,\n * and pin picker, and its documents from both the Pinned and Recently viewed dashboard tabs, including existing pins.\n * This does not disable routes or change access control or rich text link and relationship eligibility.\n * Use `enableRichTextLink` and `enableRichTextRelationship` to configure rich text eligibility separately.\n */\n group?: false | Record<string, string> | string\n /**\n * Exclude the collection from the admin nav and routes\n */\n hidden?: ((args: { user: PayloadRequest['user'] }) => boolean) | boolean\n /**\n * Additional fields to be searched via the full text search\n */\n listSearchableFields?: string[]\n /**\n * Live Preview options.\n *\n * @see https://payloadcms.com/docs/live-preview/overview\n */\n livePreview?: LivePreviewConfig\n meta?: MetaConfig\n pagination?: {\n defaultLimit?: number\n limits?: number[]\n }\n /**\n * Function to generate custom preview URL\n */\n preview?: GeneratePreviewURL\n /**\n * Field to use as the thumbnail image in grid/card views. Defaults to the first field of type `upload`.\n */\n useAsThumbnail?: string\n /**\n * Field to use as title in Edit View and first column in List view\n */\n useAsTitle?: string\n}\n\nexport type CollectionAccess<TData = any> = {\n admin?: ({ slug, req }: { req: PayloadRequest; slug: string }) => boolean | Promise<boolean>\n create?: Access<TData>\n delete?: Access<TData>\n read?: Access<TData>\n readVersions?: Access<TData>\n unlock?: Access<TData>\n update?: Access<TData>\n /**\n * Controls on-demand validation for this collection.\n * Falls back to `update` access when omitted.\n * The access function receives `req.operation === 'validate'`.\n * @see https://payloadcms.com/docs/validation/overview#access-control-and-hooks\n */\n validate?: Access<TData>\n}\n\ntype CollectionHooks<TSlug extends CollectionSlug = any> = {\n afterChange?: AfterChangeHook[]\n afterDelete?: AfterDeleteHook[]\n afterError?: AfterErrorHook[]\n afterForgotPassword?: AfterForgotPasswordHook[]\n afterLogin?: AfterLoginHook[]\n afterLogout?: AfterLogoutHook[]\n afterMe?: AfterMeHook[]\n afterOperation?: AfterOperationHook<TSlug>[]\n afterRead?: AfterReadHook[]\n afterRefresh?: AfterRefreshHook[]\n beforeChange?: BeforeChangeHook[]\n beforeDelete?: BeforeDeleteHook[]\n beforeLogin?: BeforeLoginHook[]\n beforeOperation?: BeforeOperationHook<TSlug>[]\n beforeRead?: BeforeReadHook[]\n beforeValidate?: BeforeValidateHook[]\n /**\n /**\n * Use the `me` hook to control the `me` operation.\n * Here, you can optionally instruct the me operation to return early,\n * and skip its default logic.\n */\n me?: MeHook[]\n /**\n * Use the `refresh` hook to control the refresh operation.\n * Here, you can optionally instruct the refresh operation to return early,\n * and skip its default logic.\n */\n refresh?: RefreshHook[]\n}\n\n/** Manage all aspects of a data collection */\nexport type CollectionConfig<TSlug extends CollectionSlug = any> = {\n /**\n * Do not set this property manually. This is set to true during sanitization, to avoid\n * sanitizing the same collection multiple times.\n */\n _sanitized?: boolean\n /**\n * Access control\n */\n access?: CollectionAccess\n /**\n * Collection admin options\n */\n admin?: CollectionAdminOptions\n /**\n * Collection login options\n *\n * Use `true` to enable with default options\n */\n auth?: boolean | IncomingAuthType\n /**\n * Automatically track the user that created and last updated each document via\n * polymorphic `createdBy` / `updatedBy` relationship fields to your auth collections.\n *\n * Use `true` (default) to enable both, `false` to disable both, or an object to\n * toggle each field independently, e.g. `{ updatedBy: false }`.\n *\n * @default true\n */\n authorship?: Authorship | boolean\n /**\n * Opt this collection into or out of content branching.\n *\n * Defaults to the root `branching` setting, except for built-in Payload\n * collections, which default to `false` and must opt in explicitly.\n *\n * Auth-enabled collections cannot use branching. A branch merge must not\n * replace authentication credentials or sessions with data from a shadow\n * row.\n */\n branching?: boolean\n /**\n * Configuration for bulk operations\n */\n /** Extension point to add your custom data. Server only. */\n custom?: CollectionCustom\n /**\n * Used to override the default naming of the database table or collection with your using a function or string\n * @WARNING: If you change this property with existing data, you will need to handle the renaming of the table in your database or by using migrations\n */\n dbName?: DBIdentifierName\n defaultPopulate?: IsAny<SelectFromCollectionSlug<TSlug>> extends true\n ? SelectType\n : SelectFromCollectionSlug<TSlug>\n /**\n * Default field to sort by in collection list view\n */\n defaultSort?: Sort\n /**\n * Disable the bulk delete operation for the collection in the admin panel and the API\n */\n disableBulkDelete?: boolean\n /**\n * Disable the bulk edit operation for the collection in the admin panel and the API\n */\n disableBulkEdit?: boolean\n /**\n * When true, do not show the \"Duplicate\" button while editing documents within this collection and prevent `duplicate` from all APIs\n */\n disableDuplicate?: boolean\n /**\n * Opt-in to enable query presets for this collection.\n * @see https://payloadcms.com/docs/query-presets/overview\n */\n enableQueryPresets?: boolean\n /**\n * Custom rest api endpoints, set false to disable all rest endpoints for this collection.\n */\n endpoints?: false | Omit<Endpoint, 'root'>[]\n fields: Field[]\n /**\n * Enable folder hierarchy preset for this collection.\n * Sets hierarchy with folder defaults: allowHasMany: false, FolderIcon, useHeaderButton: true\n *\n * Use `true` for defaults, or object for customization.\n * Cannot be used together with `tags` or `hierarchy`.\n */\n folders?: boolean | FoldersConfig\n /**\n * GraphQL configuration\n */\n graphQL?:\n | {\n disableMutations?: true\n disableQueries?: true\n pluralName?: string\n singularName?: string\n }\n | false\n /**\n * Enable hierarchical tree structure for this collection\n *\n * Use `true` to enable with defaults (auto-detects parent field)\n * or provide configuration object\n *\n * @example\n * // Enable with defaults\n * hierarchy: true\n *\n * @example\n * // Customize field names and slugify function\n * hierarchy: {\n * parentFieldName: 'parent',\n * slugify: (text) => customSlugify(text),\n * slugPathFieldName: '_breadcrumbPath'\n * }\n */\n hierarchy?: boolean | HierarchyConfig\n /**\n * Hooks to modify Payload functionality\n */\n hooks?: CollectionHooks<TSlug>\n /**\n * Define compound indexes for this collection.\n * This can be used to either speed up querying/sorting by 2 or more fields at the same time or\n * to ensure uniqueness between several fields.\n * Specify field paths\n * @example\n * [{ unique: true, fields: ['title', 'group.name'] }]\n * @default []\n */\n indexes?: CompoundIndex[]\n /**\n * Label configuration\n */\n labels?: {\n plural?: LabelFunction | StaticLabel\n singular?: LabelFunction | StaticLabel\n }\n /** Read-only Markdown instructions included in this collection's MCP and CLI schema responses. */\n llmInstructions?: string\n /**\n * Enables / Disables the ability to lock documents while editing\n * @default true\n */\n lockDocuments?:\n | {\n duration: number\n }\n | false\n /**\n * If true, enables custom ordering for the collection, and documents in the listView can be reordered via drag and drop.\n * New documents are inserted at the end of the list according to this parameter.\n *\n * Under the hood, a field with {@link https://payloadcms.com/docs/configuration/collections#fractional-indexing|fractional indexing} is used to optimize inserts and reorderings.\n *\n * @default false\n *\n * @experimental There may be frequent breaking changes to this API\n */\n orderable?: boolean\n slug: string\n /**\n * Enable tags hierarchy preset for this collection.\n * Sets hierarchy with tag defaults: allowHasMany: true, TagIcon\n *\n * Use `true` for defaults, or object for customization.\n * Cannot be used together with `folders` or `hierarchy`.\n */\n tags?: boolean | TagsConfig\n /**\n * Add `createdAt`, `deletedAt` and `updatedAt` fields\n *\n * @default true\n */\n timestamps?: boolean\n /**\n * Enables trash support for this collection.\n *\n * When enabled, documents will include a `deletedAt` timestamp field.\n * This allows documents to be marked as deleted without being permanently removed.\n * The `deletedAt` field will be set to the current date and time when a document is trashed.\n *\n * @default false\n */\n trash?: boolean\n /**\n * Options used in typescript generation\n */\n typescript?: {\n /**\n * Typescript generation name given to the interface type\n */\n interface?: string\n }\n /**\n * Customize the handling of incoming file uploads\n *\n * @default false // disable uploads\n */\n upload?: boolean | UploadConfig\n /**\n * Enable versioning. Set it to true to enable default versions settings,\n * or customize versions options by setting the property equal to an object\n * containing the version options.\n *\n * @default false // disable versioning\n */\n versions?: boolean | IncomingCollectionVersions\n} & Pick<\n WithSelectFn<\n IsAny<SelectFromCollectionSlug<TSlug>> extends true\n ? SelectIncludeType\n : SelectFromCollectionSlug<TSlug>\n >,\n 'select'\n>\n\nexport type SanitizedJoin = {\n /**\n * The field configuration defining the join\n */\n field: JoinField\n getForeignPath?(args: { locale?: TypedLocale }): string\n /**\n * The path of the join field in dot notation\n */\n joinPath: string\n /**\n * `parentIsLocalized` is true if any parent field of the\n * field configuration defining the join is localized\n */\n parentIsLocalized: boolean\n targetField: RelationshipField | UploadField\n}\n\nexport type SanitizedJoins = {\n [collectionSlug: string]: SanitizedJoin[]\n}\n\n/**\n * Properties populated during sanitization are redefined below. All other collection properties\n * preserve their incoming optionality.\n */\nexport interface SanitizedCollectionConfig\n extends\n Omit<\n CollectionConfig,\n | '_sanitized'\n | 'access'\n | 'admin'\n | 'auth'\n | 'authorship'\n | 'custom'\n | 'endpoints'\n | 'folder'\n | 'folders'\n | 'hierarchy'\n | 'hooks'\n | 'indexes'\n | 'labels'\n | 'slug'\n | 'tags'\n | 'timestamps'\n | 'upload'\n | 'versions'\n >,\n Required<Pick<CollectionConfig, 'admin' | 'custom' | 'indexes' | 'timestamps'>> {\n _sanitized: true\n access: Pick<CollectionAccess, 'admin'> &\n Required<\n Pick<\n CollectionAccess,\n 'create' | 'delete' | 'read' | 'readVersions' | 'unlock' | 'update' | 'validate'\n >\n >\n auth: Auth\n authorship: SanitizedAuthorship\n endpoints: Endpoint[] | false\n /**\n * Fields in the database schema structure\n * Rows / collapsible / tabs w/o name `fields` merged to top, UIs are excluded\n */\n flattenedFields: FlattenedField[]\n /**\n * Hierarchy configuration (when collection is a hierarchy type like folders or tags)\n */\n hierarchy: false | SanitizedHierarchyConfig\n hooks: Required<CollectionHooks>\n /**\n * Object of collections to join 'Join Fields object keyed by collection\n */\n joins: SanitizedJoins\n labels: Required<NonNullable<CollectionConfig['labels']>>\n /**\n * List of all polymorphic join fields\n */\n polymorphicJoins: SanitizedJoin[]\n\n sanitizedIndexes: SanitizedCompoundIndex[]\n\n slug: CollectionSlug\n\n upload: SanitizedUploadConfig\n versions?: SanitizedCollectionVersions\n}\n\nexport type Collection = {\n config: SanitizedCollectionConfig\n customIDType?: 'number' | 'text'\n graphQL?: {\n countType: GraphQLObjectType\n JWT: GraphQLObjectType\n mutationInputType: GraphQLNonNull<any>\n paginatedType: GraphQLObjectType\n type: GraphQLObjectType\n updateMutationInputType: GraphQLNonNull<any>\n versionType: GraphQLObjectType\n whereInputType: GraphQLInputObjectType\n }\n}\n\nexport type BulkOperationResult<TSlug extends CollectionSlug, TSelect extends SelectType> = {\n docs: TransformCollectionWithSelect<TSlug, TSelect>[]\n errors: {\n id: DataFromCollectionSlug<TSlug>['id']\n isPublic: boolean\n message: string\n }[]\n}\n\nexport type AuthCollection = {\n config: SanitizedCollectionConfig\n}\n\nexport type LocalizedMeta = {\n [locale: string]: {\n status: 'draft' | 'published'\n updatedAt: string\n }\n}\n\nexport type TypeWithID = {\n id: number | string\n}\n\nexport type TypeWithTimestamps = {\n [key: string]: unknown\n createdAt: string\n deletedAt?: null | string\n id: number | string\n updatedAt: string\n}\n\nexport type CompoundIndex = {\n fields: string[]\n /**\n * MongoDB-only: scopes the unique constraint to documents where every field\n * named here is present. Postgres and SQLite need no equivalent — a NULL in\n * any column of a composite unique constraint already excludes that row from\n * the comparison, but MongoDB's compound unique indexes treat a missing\n * field as an ordinary value that can collide with another document's.\n */\n requireExists?: string[]\n unique?: boolean\n}\n\nexport type SanitizedCompoundIndex = {\n fields: {\n field: FlattenedField\n localizedPath: string\n path: string\n pathHasLocalized: boolean\n }[]\n requireExists?: string[]\n unique: boolean\n}\n"],"names":[],"mappings":"AAAA,qDAAqD,GAk8BrD,WASC"}