import { CoreStrapi, PathValue } from '../@types';
import { CommentsPluginConfig } from '../config';
import { REPORT_REASON } from '../const';
import { Either } from '../utils/Either';
export declare const getStoreRepositorySource: (strapi: CoreStrapi) => {
getLocalConfig
(prop?: P, defaultValue?: PathValue): PathValue<{
enabledCollections?: string[];
approvalFlow?: string[];
entryLabel?: Record;
moderatorRoles?: string[];
badWords?: boolean;
blockedAuthorProps?: string[];
isValidationEnabled?: boolean;
reportReasons?: {
BAD_LANGUAGE?: REPORT_REASON.BAD_LANGUAGE;
DISCRIMINATION?: REPORT_REASON.DISCRIMINATION;
OTHER?: REPORT_REASON.OTHER;
};
isGQLPluginEnabled?: boolean;
gql?: {
auth?: boolean;
};
client?: {
url?: string;
contactEmail?: string;
};
}, P>;
getStore(): Promise<{
get(params?: Partial<{
key: string;
type?: string;
environment?: string;
name?: string;
tag?: string;
}>): Promise;
set(params?: Partial<{
key: string;
value: unknown;
type?: string;
environment?: string;
name?: string;
tag?: string;
}>): Promise;
delete(params?: Partial<{
key: string;
type?: string;
environment?: string;
name?: string;
tag?: string;
}>): Promise;
}>;
getConfig(): Promise>;
get(viaSettingsPage?: T): Promise>>;
update(config: CommentsPluginConfig): Promise;
moderatorRoles?: string[];
badWords?: boolean;
blockedAuthorProps?: string[];
isValidationEnabled?: boolean;
reportReasons?: {
BAD_LANGUAGE?: REPORT_REASON.BAD_LANGUAGE;
DISCRIMINATION?: REPORT_REASON.DISCRIMINATION;
OTHER?: REPORT_REASON.OTHER;
};
isGQLPluginEnabled?: boolean;
gql?: {
auth?: boolean;
};
client?: {
url?: string;
contactEmail?: string;
};
} | Omit<{
enabledCollections?: string[];
approvalFlow?: string[];
entryLabel?: Record;
moderatorRoles?: string[];
badWords?: boolean;
blockedAuthorProps?: string[];
isValidationEnabled?: boolean;
reportReasons?: {
BAD_LANGUAGE?: REPORT_REASON.BAD_LANGUAGE;
DISCRIMINATION?: REPORT_REASON.DISCRIMINATION;
OTHER?: REPORT_REASON.OTHER;
};
isGQLPluginEnabled?: boolean;
gql?: {
auth?: boolean;
};
client?: {
url?: string;
contactEmail?: string;
};
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
restore(): Promise;
moderatorRoles?: string[];
badWords?: boolean;
blockedAuthorProps?: string[];
isValidationEnabled?: boolean;
reportReasons?: {
BAD_LANGUAGE?: REPORT_REASON.BAD_LANGUAGE;
DISCRIMINATION?: REPORT_REASON.DISCRIMINATION;
OTHER?: REPORT_REASON.OTHER;
};
isGQLPluginEnabled?: boolean;
gql?: {
auth?: boolean;
};
client?: {
url?: string;
contactEmail?: string;
};
} | Omit<{
enabledCollections?: string[];
approvalFlow?: string[];
entryLabel?: Record;
moderatorRoles?: string[];
badWords?: boolean;
blockedAuthorProps?: string[];
isValidationEnabled?: boolean;
reportReasons?: {
BAD_LANGUAGE?: REPORT_REASON.BAD_LANGUAGE;
DISCRIMINATION?: REPORT_REASON.DISCRIMINATION;
OTHER?: REPORT_REASON.OTHER;
};
isGQLPluginEnabled?: boolean;
gql?: {
auth?: boolean;
};
client?: {
url?: string;
contactEmail?: string;
};
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
};
export declare const getStoreRepository: (strapi: CoreStrapi) => {
getLocalConfig(prop?: P, defaultValue?: PathValue): PathValue<{
enabledCollections?: string[];
approvalFlow?: string[];
entryLabel?: Record;
moderatorRoles?: string[];
badWords?: boolean;
blockedAuthorProps?: string[];
isValidationEnabled?: boolean;
reportReasons?: {
BAD_LANGUAGE?: REPORT_REASON.BAD_LANGUAGE;
DISCRIMINATION?: REPORT_REASON.DISCRIMINATION;
OTHER?: REPORT_REASON.OTHER;
};
isGQLPluginEnabled?: boolean;
gql?: {
auth?: boolean;
};
client?: {
url?: string;
contactEmail?: string;
};
}, P>;
getStore(): Promise<{
get(params?: Partial<{
key: string;
type?: string;
environment?: string;
name?: string;
tag?: string;
}>): Promise;
set(params?: Partial<{
key: string;
value: unknown;
type?: string;
environment?: string;
name?: string;
tag?: string;
}>): Promise;
delete(params?: Partial<{
key: string;
type?: string;
environment?: string;
name?: string;
tag?: string;
}>): Promise;
}>;
getConfig(): Promise>;
get(viaSettingsPage?: T): Promise>>;
update(config: CommentsPluginConfig): Promise;
moderatorRoles?: string[];
badWords?: boolean;
blockedAuthorProps?: string[];
isValidationEnabled?: boolean;
reportReasons?: {
BAD_LANGUAGE?: REPORT_REASON.BAD_LANGUAGE;
DISCRIMINATION?: REPORT_REASON.DISCRIMINATION;
OTHER?: REPORT_REASON.OTHER;
};
isGQLPluginEnabled?: boolean;
gql?: {
auth?: boolean;
};
client?: {
url?: string;
contactEmail?: string;
};
} | Omit<{
enabledCollections?: string[];
approvalFlow?: string[];
entryLabel?: Record;
moderatorRoles?: string[];
badWords?: boolean;
blockedAuthorProps?: string[];
isValidationEnabled?: boolean;
reportReasons?: {
BAD_LANGUAGE?: REPORT_REASON.BAD_LANGUAGE;
DISCRIMINATION?: REPORT_REASON.DISCRIMINATION;
OTHER?: REPORT_REASON.OTHER;
};
isGQLPluginEnabled?: boolean;
gql?: {
auth?: boolean;
};
client?: {
url?: string;
contactEmail?: string;
};
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
restore(): Promise;
moderatorRoles?: string[];
badWords?: boolean;
blockedAuthorProps?: string[];
isValidationEnabled?: boolean;
reportReasons?: {
BAD_LANGUAGE?: REPORT_REASON.BAD_LANGUAGE;
DISCRIMINATION?: REPORT_REASON.DISCRIMINATION;
OTHER?: REPORT_REASON.OTHER;
};
isGQLPluginEnabled?: boolean;
gql?: {
auth?: boolean;
};
client?: {
url?: string;
contactEmail?: string;
};
} | Omit<{
enabledCollections?: string[];
approvalFlow?: string[];
entryLabel?: Record;
moderatorRoles?: string[];
badWords?: boolean;
blockedAuthorProps?: string[];
isValidationEnabled?: boolean;
reportReasons?: {
BAD_LANGUAGE?: REPORT_REASON.BAD_LANGUAGE;
DISCRIMINATION?: REPORT_REASON.DISCRIMINATION;
OTHER?: REPORT_REASON.OTHER;
};
isGQLPluginEnabled?: boolean;
gql?: {
auth?: boolean;
};
client?: {
url?: string;
contactEmail?: string;
};
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
};
export type StoreRepository = ReturnType;