UNPKG

cloud-ide-lms-model

Version:

Package for Model management of Cloud IDEsys LMS

75 lines (74 loc) 2.69 kB
import { MTableQueries } from "../../common-types/common"; import { IEmailList } from "../../schema/email/email_list"; import { controllerResponse } from "../../utilities"; type IEmailListErrorLogger = { [key in keyof MEmailList]: string; }; type IEmailListGetByIdErrorLogger = { [key in keyof MEmailListGetByIdPayload]: string; }; type IEmailListDeleteErrorLogger = { [key in keyof MEmailListDeletePayload]: string; }; type IEmailListInsertUpdateErrorLogger = { [key in keyof MEmailListInsertUpdatePayload]: string; }; type IEmailListToggleStatusErrorLogger = { [key in keyof MEmailListToggleStatusPayload]: string; }; declare class MEmailList extends MTableQueries { elst_email?: string; elst_id_evdr?: string; elst_isactive?: boolean; query?: string; constructor(init: MEmailList); Validate?(): Partial<IEmailListErrorLogger>; } declare class MEmailListGetByIdPayload { elst_id?: string; _id?: string; constructor(init: MEmailListGetByIdPayload); Validate?(): Partial<IEmailListGetByIdErrorLogger>; } declare class MEmailListDeletePayload { elst_id?: string; _id?: string; constructor(init: MEmailListDeletePayload); Validate?(): Partial<IEmailListDeleteErrorLogger>; } declare class MEmailListToggleStatusPayload { elst_id?: string; _id?: string; elst_isactive?: boolean; constructor(init: MEmailListToggleStatusPayload); Validate?(): Partial<IEmailListToggleStatusErrorLogger>; } declare class MEmailListInsertUpdatePayload implements IEmailList { _id?: string; elst_email: string; elst_id_evdr: string; elst_sender_reciver_name: string; elst_isactive: boolean; constructor(init: Partial<IEmailList> & { _id?: string; }); Validate?(): Partial<IEmailListInsertUpdateErrorLogger>; } interface emailListControllerResponse extends controllerResponse { data?: any[] | any | null; total?: number; totalDocument?: number; } interface emailListByIdControllerResponse extends controllerResponse { data?: any | null; } interface emailListInsertUpdateControllerResponse extends controllerResponse { data?: any | null; } interface emailListDeleteControllerResponse extends controllerResponse { data?: any | null; } interface emailListToggleStatusControllerResponse extends controllerResponse { data?: any | null; } export { MEmailList, MEmailListGetByIdPayload, MEmailListDeletePayload, MEmailListInsertUpdatePayload, MEmailListToggleStatusPayload, emailListControllerResponse, emailListByIdControllerResponse, emailListInsertUpdateControllerResponse, emailListDeleteControllerResponse, emailListToggleStatusControllerResponse };