cloud-ide-lms-model
Version:
Package for Model management of Cloud IDEsys LMS
61 lines (60 loc) • 2.83 kB
TypeScript
import { MTableQueries } from "../../common-types/common";
import { FeeDiscountRule } from "../../schema";
import { controllerResponse } from "../../utilities";
type IFeeDiscountRuleErrorLogger = {
[key in keyof MFeeDiscountRule]: string;
};
type IFeeDiscountRuleGetByIdErrorLogger = {
[key in keyof MFeeDiscountRuleGetByIdPayload]: string;
};
type IFeeDiscountRuleDeleteErrorLogger = {
[key in keyof MFeeDiscountRuleDeletePayload]: string;
};
type IFeeDiscountRuleInsertUpdateErrorLogger = {
[key in keyof MFeeDiscountRuleInsertUpdatePayload]: string;
};
type IFeeDiscountRuleToggleStatusErrorLogger = {
[key in keyof MFeeDiscountRuleToggleStatusPayload]: string;
};
declare class MFeeDiscountRule extends MTableQueries {
feedr_entity_id_syen?: string;
feedr_academic_year_id_acayr?: string;
feedr_status?: 'ACTIVE' | 'INACTIVE' | 'EXPIRED';
constructor(init: MFeeDiscountRule);
Validate?(): Partial<IFeeDiscountRuleErrorLogger>;
}
declare class MFeeDiscountRuleGetByIdPayload {
feedr_id?: string;
constructor(init: MFeeDiscountRuleGetByIdPayload);
Validate?(): Partial<IFeeDiscountRuleGetByIdErrorLogger>;
}
declare class MFeeDiscountRuleDeletePayload {
feedr_id?: string;
constructor(init: MFeeDiscountRuleDeletePayload);
Validate?(): Partial<IFeeDiscountRuleDeleteErrorLogger>;
}
declare class MFeeDiscountRuleToggleStatusPayload {
feedr_id?: string;
constructor(init: MFeeDiscountRuleToggleStatusPayload);
Validate?(): Partial<IFeeDiscountRuleToggleStatusErrorLogger>;
}
declare class MFeeDiscountRuleInsertUpdatePayload extends FeeDiscountRule {
constructor(init: FeeDiscountRule);
Validate?(): Partial<IFeeDiscountRuleInsertUpdateErrorLogger>;
}
interface feeDiscountRuleControllerResponse extends controllerResponse {
data?: FeeDiscountRule[];
}
interface feeDiscountRuleByIdControllerResponse extends controllerResponse {
data?: FeeDiscountRule;
}
interface feeDiscountRuleInsertUpdateControllerResponse extends controllerResponse {
data?: FeeDiscountRule;
}
interface feeDiscountRuleDeleteControllerResponse extends controllerResponse {
data?: boolean;
}
interface feeDiscountRuleToggleStatusControllerResponse extends controllerResponse {
data?: boolean;
}
export { IFeeDiscountRuleErrorLogger, IFeeDiscountRuleGetByIdErrorLogger, IFeeDiscountRuleDeleteErrorLogger, IFeeDiscountRuleInsertUpdateErrorLogger, IFeeDiscountRuleToggleStatusErrorLogger, MFeeDiscountRule, MFeeDiscountRuleGetByIdPayload, MFeeDiscountRuleDeletePayload, MFeeDiscountRuleInsertUpdatePayload, MFeeDiscountRuleToggleStatusPayload, feeDiscountRuleControllerResponse, feeDiscountRuleByIdControllerResponse, feeDiscountRuleInsertUpdateControllerResponse, feeDiscountRuleDeleteControllerResponse, feeDiscountRuleToggleStatusControllerResponse };