@tomei/live-price
Version:
Tomei live-price Package
40 lines (39 loc) • 1.68 kB
TypeScript
import { ObjectBase } from '@tomei/general';
import { ManualPriceStatus, NonSourceFeedName, SourceFeedName } from '../../enum/feed.enum';
import { IPriceFeedManualPriceHistoryAttr } from '../../interfaces/price-feed-manual-price-history-attr.interface';
export declare class FeedManualPriceHistory extends ObjectBase implements IPriceFeedManualPriceHistoryAttr {
ObjectId: string;
ObjectName: string;
ObjectType: string;
TableName: string;
FeedName: SourceFeedName | NonSourceFeedName;
BuyPrice: number;
SellPrice: number;
Status: ManualPriceStatus;
ActivationDateTime: Date;
ActivatedById: string;
DeactivationDateTime: Date;
DeactivatedById: string;
private static _Repo;
get FeedManualPriceHistoryId(): string;
set FeedManualPriceHistoryId(value: string);
private constructor();
static init(feedManualPriceHistoryId?: string, dbTransaction?: any): Promise<FeedManualPriceHistory>;
create(feedName: SourceFeedName | NonSourceFeedName, activatedById: string, buyPrice: number, sellPrice: number, dbTransaction?: any): Promise<FeedManualPriceHistory>;
static deactivate(feedName: string, deactivatedById: string, dbTransaction?: any): Promise<FeedManualPriceHistory>;
static findAll(page: number, row: number, search?: {
ActivationDateTime?: {
startDate: Date;
endDate: Date;
};
DeactivationDateTime?: {
startDate: Date;
endDate: Date;
};
FeedName?: string;
Status?: ManualPriceStatus;
}, dbTransaction?: any): Promise<{
rows: IPriceFeedManualPriceHistoryAttr[];
count: number;
}>;
}