UNPKG

@localazy/strapi-plugin

Version:

The official Strapi Plugin by Localazy.

24 lines (23 loc) 887 B
import { Core } from '@strapi/strapi'; declare const EntryExclusionService: ({ strapi }: { strapi: Core.Strapi; }) => { /** * Generate a unique key for an entry based on contentType and documentId */ getEntryKey(contentType: string, documentId: string): string; /** * Get entry exclusion state for a specific entry */ getEntryExclusion(contentType: string, documentId: string): Promise<boolean>; /** * Set entry exclusion state for a specific entry */ setEntryExclusion(contentType: string, documentId: string, excludeFromTranslation: boolean): Promise<void>; /** * Get all exclusions for a specific content type */ getContentTypeExclusions(contentType: string): Promise<string[]>; }; export type EntryExclusionServiceReturnType = ReturnType<typeof EntryExclusionService>; export default EntryExclusionService;