@tomei/live-price
Version:
Tomei live-price Package
39 lines (38 loc) • 1.52 kB
TypeScript
import { ObjectBase } from '@tomei/general';
import { CutOffStatus, ActivationTrigger, SourceFeedName } from '../../enum/feed.enum';
import { IPriceFeedCutOffHistoryAttr } from '../../interfaces/price-feed-cut-off-history-attr.interface';
export declare class FeedCutOffHistory extends ObjectBase implements IPriceFeedCutOffHistoryAttr {
ObjectId: string;
ObjectName: string;
ObjectType: string;
TableName: string;
FeedName: SourceFeedName;
Status: CutOffStatus;
ActivationDateTime: Date;
ActivationTrigger: ActivationTrigger;
ActivatedById: string;
DeactivationDateTime: Date;
DeactivatedById: string;
private static _Repo;
get FeedCutOffHistoryId(): string;
set FeedCutOffHistoryId(value: string);
private constructor();
static init(feedCutOffHistoryId?: string, dbTransaction?: any): Promise<FeedCutOffHistory>;
create(dbTransaction?: any, activatedById?: string): Promise<FeedCutOffHistory>;
static deactivate(feedName: string, deactivatedById: string, dbTransaction?: any): Promise<FeedCutOffHistory>;
static findAll(page: number, row: number, search?: {
ActivationDateTime?: {
startDate: Date;
endDate: Date;
};
DeactivationDateTime?: {
startDate: Date;
endDate: Date;
};
ActivationTrigger?: ActivationTrigger;
FeedName?: string;
}, dbTransaction?: any): Promise<{
rows: IPriceFeedCutOffHistoryAttr[];
count: number;
}>;
}