think/packages/domains/lib/util.d.ts

41 lines
994 B
TypeScript
Raw Permalink Normal View History

2022-06-30 14:20:38 +08:00
import { WikiStatus, DocumentStatus, IWiki, IDocument } from './models';
2022-05-18 16:02:29 +08:00
/**
*
*/
2022-03-11 13:57:55 +08:00
export declare const WIKI_STATUS_LIST: {
value: WikiStatus;
label: string;
}[];
2022-05-18 16:02:29 +08:00
/**
*
*/
2022-03-11 13:57:55 +08:00
export declare const WIKI_USER_ROLES: {
value: string;
label: string;
}[];
2022-05-18 16:02:29 +08:00
/**
*
*/
2022-03-11 13:57:55 +08:00
export declare const DOCUMENT_STATUS: {
value: DocumentStatus;
label: string;
}[];
2022-05-18 16:02:29 +08:00
/**
*
* @param wiki
* @returns
*/
2022-03-11 13:57:55 +08:00
export declare const getWikiStatusText: (wiki: IWiki) => string;
2022-05-18 16:02:29 +08:00
/**
*
* @param currentStatus wiki status
* @returns
*/
2022-04-02 17:57:30 +08:00
export declare const isPublicWiki: (currentStatus: IWiki['status']) => boolean;
2022-05-18 16:02:29 +08:00
/**
*
* @param currentStatus document status
* @returns
*/
2022-04-02 17:57:30 +08:00
export declare const isPublicDocument: (currentStatus: IDocument['status']) => boolean;