mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 11:43:56 +00:00
43 lines
899 B
TypeScript
43 lines
899 B
TypeScript
import { UsageSourceEnum } from './constants';
|
|
import { UsageListItemCountType, UsageListItemType } from './type';
|
|
|
|
export type CreateTrainingUsageProps = {
|
|
name: string;
|
|
datasetId: string;
|
|
};
|
|
|
|
export type GetUsageProps = {
|
|
dateStart: string;
|
|
dateEnd: string;
|
|
sources?: UsageSourceEnum[];
|
|
teamMemberIds?: string[];
|
|
projectName?: string;
|
|
};
|
|
|
|
export type GetUsageDashboardProps = GetUsageProps & {
|
|
unit: 'day' | 'month';
|
|
};
|
|
export type GetUsageDashboardResponseItem = {
|
|
date: Date;
|
|
totalPoints: number;
|
|
};
|
|
|
|
export type ConcatUsageProps = UsageListItemCountType & {
|
|
teamId: string;
|
|
tmbId: string;
|
|
billId?: string;
|
|
totalPoints: number;
|
|
listIndex?: number;
|
|
};
|
|
|
|
export type CreateUsageProps = {
|
|
teamId: string;
|
|
tmbId: string;
|
|
appName: string;
|
|
appId?: string;
|
|
pluginId?: string;
|
|
totalPoints: number;
|
|
source: `${UsageSourceEnum}`;
|
|
list: UsageListItemType[];
|
|
};
|