umbot
Version:
Universal bot(vk, telegram, viber) or skills for Yandex.Alisa, Маруся and sber
30 lines (29 loc) • 833 B
TypeScript
import { Model } from './db/Model';
import { IModelRules } from './interface';
export interface IUserDataModelState {
userId: string;
meta: string;
data: string;
type: string;
}
export declare class UsersData extends Model<IUserDataModelState> {
static readonly TABLE_NAME = "UsersData";
static readonly T_ALISA = 0;
static readonly T_VK = 1;
static readonly T_TELEGRAM = 2;
static readonly T_VIBER = 3;
static readonly T_MARUSIA = 4;
static readonly T_SMART_APP = 5;
static readonly T_USER_APP = 512;
userId: string | number | null;
meta: any;
data: any;
type: number;
constructor();
tableName(): string;
rules(): IModelRules[];
attributeLabels(): IUserDataModelState;
getOne(): Promise<boolean>;
validate(): void;
init(data: any): void;
}