@noggin/elastic-noggin-sdk
Version:
Elastic Noggin SDK
30 lines (29 loc) • 1.1 kB
TypeScript
import { IClientT, IEno, II18n, IServerT, ISource, Sid, Tip } from './types';
export { Eno };
interface IToJSONOption {
propWhiteList?: string[];
}
declare class Eno implements IEno {
readonly tip: Tip;
readonly sid: Sid;
readonly serverT?: IServerT;
readonly clientT?: IClientT;
readonly source?: ISource;
constructor(proto: IEno);
createDeletedEno(branch?: Tip): Eno;
createSecurityChangedEno(security: Tip, branch?: Tip): Eno;
toJson(option?: IToJSONOption): IEno;
getBranch(): Tip | null;
getType(): Tip | null;
getSessionId(): Tip | null;
hasError(): boolean;
getFieldFormula(fieldTip: Tip): string | null;
getFieldValues(fieldTip: Tip, lang?: string): string[];
getFieldStringValue(fieldTip: Tip, lang?: string): string | null;
getFieldNumberValue(fieldTip: Tip, lang?: string): number | null;
getFieldBooleanValue(fieldTip: Tip, lang?: string): boolean;
getFieldJsonValue(fieldTip: Tip): any | null;
getFieldRawI18n(fieldTip: Tip): II18n[];
isContentDiff(eno: Eno): boolean;
private _isFieldDiff;
}