@tomei/rental
Version:
Tomei Rental Package
28 lines (27 loc) • 1.6 kB
TypeScript
import { ObjectBase } from '@tomei/general';
import { AggrementStatusEnum } from '../../enum/aggrement-status.enum';
import { IAgreementAttr } from '../../interfaces/agreement-attr.interface';
import { LoginUser } from '@tomei/sso';
import { AgreementSignatureRepository } from '../agreement-signature/agreement-signature.repository';
import { IResponseAgreementSignature } from '../../interfaces/response-hirer-signature-attr.interface';
import { AgreementHistoryRepository } from '../agreement-history/agreement-history.repository';
import { IAgreementHistoryAttr } from '../../interfaces/agreement-history-attr.interface';
export declare class Agreement extends ObjectBase {
ObjectId: string;
ObjectName: string;
ObjectType: string;
TableName: string;
Status: AggrementStatusEnum;
DateSigned: Date;
MediaId: string;
private static _Repo;
protected static _AgreementSignatureRepo: AgreementSignatureRepository;
protected static _AgreementHistoryRepo: AgreementHistoryRepository;
get AgreementNo(): string;
set AgreementNo(value: string);
protected constructor(agreementAttr?: IAgreementAttr);
static init(agreementNo?: string, dbTransaction?: any): Promise<Agreement>;
static getSignatureList(loginUser: LoginUser, agreementNo: string, dbTransaction: any): Promise<IResponseAgreementSignature[]>;
getAllActivities(loginUser: LoginUser, dbTransaction?: any): Promise<IAgreementHistoryAttr[]>;
createActivity(activityCompleted: string, MediaId: string, dbTransaction: any, loginUser: LoginUser): Promise<IAgreementHistoryAttr>;
}