cloud-ide-lms-model
Version:
Package for Model management of Cloud IDEsys LMS
68 lines (67 loc) • 2.76 kB
TypeScript
import { MTableQueries } from "../../common-types/common";
import { controllerResponse } from "../../utilities";
interface CoreApiEndpointMaster {
_id?: string;
api_endpoint: string;
api_method: string;
api_description: string;
api_category: string;
api_requires_auth: boolean;
api_isactive: boolean;
api_created_date?: Date;
api_modified_date?: Date;
api_created_by_user?: string;
api_modified_by_user?: string;
}
type IApiEndpointMasterErrorLogger = {
[key in keyof MApiEndpointMaster]: string;
};
type ApiEndpointMasterErrorLogger = {
[key in keyof CoreApiEndpointMaster]: string;
};
type IApiEndpointMasterGetByIdErrorLogger = {
[key in keyof MApiEndpointMasterGetByIdPayload]: string;
};
type IApiEndpointMasterDeleteErrorLogger = {
[key in keyof MApiEndpointMasterDeletePayload]: string;
};
declare class ApiEndpointMasterSaveUpdatePayload {
core_api_endpoint_master?: CoreApiEndpointMaster;
constructor(init: ApiEndpointMasterSaveUpdatePayload);
Validate?(): Partial<ApiEndpointMasterErrorLogger>;
}
declare class MApiEndpointMaster extends MTableQueries {
api_id?: string;
constructor(init: MApiEndpointMaster);
Validate?(): Partial<IApiEndpointMasterErrorLogger>;
}
declare class MApiEndpointMasterGetByIdPayload {
api_id?: string;
constructor(init: MApiEndpointMasterGetByIdPayload);
Validate?(): Partial<IApiEndpointMasterGetByIdErrorLogger>;
}
declare class MApiEndpointMasterDeletePayload {
api_id?: string;
constructor(init: MApiEndpointMasterDeletePayload);
Validate?(): Partial<IApiEndpointMasterDeleteErrorLogger>;
}
interface apiEndpointMasterControllerResponse extends controllerResponse {
data?: ApiEndpointMasterListResponse[];
}
interface apiEndpointMasterInsertUpdateControllerResponse extends controllerResponse {
data?: CoreApiEndpointMaster;
}
interface apiEndpointMasterByIdControllerResponse extends controllerResponse {
data?: CoreApiEndpointMaster;
}
interface ApiEndpointMasterListResponse extends Omit<CoreApiEndpointMaster, 'api_created_by_user' | 'api_modified_by_user'> {
api_created_by_user?: {
_id?: string;
user_fullname?: string;
};
api_modified_by_user?: {
_id?: string;
user_fullname?: string;
};
}
export { CoreApiEndpointMaster, IApiEndpointMasterErrorLogger, ApiEndpointMasterErrorLogger, IApiEndpointMasterGetByIdErrorLogger, IApiEndpointMasterDeleteErrorLogger, ApiEndpointMasterSaveUpdatePayload, MApiEndpointMaster, MApiEndpointMasterGetByIdPayload, MApiEndpointMasterDeletePayload, apiEndpointMasterControllerResponse, apiEndpointMasterInsertUpdateControllerResponse, apiEndpointMasterByIdControllerResponse, ApiEndpointMasterListResponse };