perf: usages list;perf: move components (#3654)
* perf: usages list * team sub plan load * perf: usage dashboard code * perf: dashboard ui * perf: move components
This commit is contained in:
17
packages/global/support/wallet/usage/api.d.ts
vendored
17
packages/global/support/wallet/usage/api.d.ts
vendored
@@ -6,21 +6,20 @@ export type CreateTrainingUsageProps = {
|
||||
datasetId: string;
|
||||
};
|
||||
|
||||
export type GetTotalPointsProps = {
|
||||
dateStart: Date;
|
||||
dateEnd: Date;
|
||||
teamMemberIds: string[];
|
||||
sources: UsageSourceEnum[];
|
||||
unit: 'day' | 'week' | 'month';
|
||||
};
|
||||
|
||||
export type GetUsageProps = {
|
||||
dateStart: Date;
|
||||
dateEnd: Date;
|
||||
sources?: UsageSourceEnum[];
|
||||
teamMemberIds?: string[];
|
||||
projectName?: string;
|
||||
isSelectAllTmb?: boolean;
|
||||
};
|
||||
|
||||
export type GetUsageDashboardProps = GetUsageProps & {
|
||||
unit: 'day' | 'month';
|
||||
};
|
||||
export type GetUsageDashboardResponseItem = {
|
||||
date: Date;
|
||||
totalPoints: number;
|
||||
};
|
||||
|
||||
export type ConcatUsageProps = UsageListItemCountType & {
|
||||
|
||||
Reference in New Issue
Block a user