UNPKG

@webuildbots/webuildbots-sdk

Version:
30 lines (29 loc) 974 B
import { Languages } from '../../const/languages-enums'; import { UserStatuses } from '../../const/user-statuses-enums'; import { DeepPartial } from '../../helpers/helpers-types'; import Choice from '../../interfaces/choice'; import Polylang from '../../interfaces/polylang'; export default abstract class ChoiceBuilder { action: { type: string; value?: any; view?: string; track?: boolean; }; protected session?: any; private profile?; private functionArgs?; choice: DeepPartial<Choice>; constructor(action: { type: string; value?: any; view?: string; track?: boolean; }, session?: any, profile?: any, functionArgs?: any); addTitle(lang: Languages, text: string): this; setTitle(polylang: Polylang): this; selectedTitle(text: string): this; persistentMenu(isPersistentMenu: boolean): this; userStatus(userStatus: UserStatuses): this; build(): Choice; }