* The `pagination` property was missing in `findVersions` and
`findGlobalVersions` Local API operations, although the actual functions
did have it -
1b93c4becc/packages/payload/src/collections/operations/findVersions.ts (L25)
* The handling of the `pagination` property in those functions was
broken, this PR fixes it.
60 lines
1.8 KiB
TypeScript
60 lines
1.8 KiB
TypeScript
export const autosaveCollectionSlug = 'autosave-posts'
|
|
export const autosaveWithMultiSelectCollectionSlug = 'autosave-multi-select-posts'
|
|
|
|
export const autosaveWithDraftButtonSlug = 'autosave-with-draft-button-posts'
|
|
|
|
export const autosaveWithDraftValidateSlug = 'autosave-with-validate-posts'
|
|
|
|
export const customIDSlug = 'custom-ids'
|
|
|
|
export const draftCollectionSlug = 'draft-posts'
|
|
|
|
export const draftWithValidateCollectionSlug = 'draft-with-validate-posts'
|
|
export const draftWithMaxCollectionSlug = 'draft-with-max-posts'
|
|
|
|
export const draftWithChangeHookCollectionSlug = 'draft-posts-with-change-hook'
|
|
|
|
export const postCollectionSlug = 'posts'
|
|
|
|
export const diffCollectionSlug = 'diff'
|
|
export const mediaCollectionSlug = 'media'
|
|
export const media2CollectionSlug = 'media2'
|
|
|
|
export const versionCollectionSlug = 'version-posts'
|
|
|
|
export const disablePublishSlug = 'disable-publish'
|
|
export const errorOnUnpublishSlug = 'error-on-unpublish'
|
|
|
|
export const disablePublishGlobalSlug = 'disable-publish-global'
|
|
|
|
export const textCollectionSlug = 'text'
|
|
|
|
export const collectionSlugs = [
|
|
autosaveCollectionSlug,
|
|
autosaveWithMultiSelectCollectionSlug,
|
|
draftCollectionSlug,
|
|
draftWithChangeHookCollectionSlug,
|
|
postCollectionSlug,
|
|
diffCollectionSlug,
|
|
mediaCollectionSlug,
|
|
media2CollectionSlug,
|
|
versionCollectionSlug,
|
|
textCollectionSlug,
|
|
]
|
|
|
|
export const autoSaveGlobalSlug = 'autosave-global'
|
|
|
|
export const autosaveWithDraftButtonGlobal = 'autosave-with-draft-button-global'
|
|
|
|
export const draftGlobalSlug = 'draft-global'
|
|
|
|
export const draftUnlimitedGlobalSlug = 'draft-unlimited-global'
|
|
|
|
export const draftWithMaxGlobalSlug = 'draft-with-max-global'
|
|
|
|
export const globalSlugs = [autoSaveGlobalSlug, draftGlobalSlug]
|
|
|
|
export const localizedCollectionSlug = 'localized-posts'
|
|
|
|
export const localizedGlobalSlug = 'localized-global'
|