cloud-ide-lms-model
Version:
Package for Model management of Cloud IDEsys LMS
60 lines (59 loc) • 2.42 kB
TypeScript
import { MTableQueries } from "../../common-types/common";
import { CoreDashboardCards } from "../../schema";
import { controllerResponse } from "../../utilities";
type IDashboardCardsErrorLogger = {
[key in keyof MDashboardCards]: string;
};
type DashboardCardsErrorLogger = {
[key in keyof CoreDashboardCards]: string;
};
type IDashboardCardsGetByIdErrorLogger = {
[key in keyof MDashboardCardsGetByIdPayload]: string;
};
type IDashboardCardsDeleteErrorLogger = {
[key in keyof MDashboardCardsDeletePayload]: string;
};
declare class DashboardCardsSaveUpdatePayload {
core_dashboard_cards?: CoreDashboardCards;
constructor(init: DashboardCardsSaveUpdatePayload);
Validate?(): Partial<DashboardCardsErrorLogger>;
}
declare class MDashboardCards extends MTableQueries {
cdc_id?: string;
constructor(init: MDashboardCards);
Validate?(): Partial<IDashboardCardsErrorLogger>;
}
declare class MDashboardCardsGetByIdPayload {
cdc_id?: string;
constructor(init: MDashboardCardsGetByIdPayload);
Validate?(): Partial<IDashboardCardsGetByIdErrorLogger>;
}
declare class MDashboardCardsDeletePayload {
cdc_id?: string;
constructor(init: MDashboardCardsDeletePayload);
Validate?(): Partial<IDashboardCardsDeleteErrorLogger>;
}
interface dashboardCardsControllerResponse extends controllerResponse {
data?: DashboardCardsListResponse[];
}
interface dashboardCardsInsertUpdateControllerResponse extends controllerResponse {
data?: CoreDashboardCards;
}
interface dashboardCardsByIdControllerResponse extends controllerResponse {
data?: CoreDashboardCards;
}
interface DashboardCardsListResponse extends Omit<CoreDashboardCards, 'cdc_entity_id_syen' | 'cdc_created_by_user' | 'cdc_modified_by_user'> {
cdc_entity_id_syen?: {
_id?: string;
syen_name?: string;
};
cdc_created_by_user?: {
_id?: string;
user_fullname?: string;
};
cdc_modified_by_user?: {
_id?: string;
user_fullname?: string;
};
}
export { IDashboardCardsErrorLogger, DashboardCardsErrorLogger, IDashboardCardsGetByIdErrorLogger, IDashboardCardsDeleteErrorLogger, DashboardCardsSaveUpdatePayload, MDashboardCards, MDashboardCardsGetByIdPayload, MDashboardCardsDeletePayload, dashboardCardsControllerResponse, dashboardCardsInsertUpdateControllerResponse, dashboardCardsByIdControllerResponse, DashboardCardsListResponse };