mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-10-16 09:43:18 +01:00
Add goals feature for personal goals with filters
This commit is contained in:
@@ -108,6 +108,19 @@ export type UpdateReportBody = ZodiosBodyByAlias<SolidTimeApi, 'updateReport'>;
|
||||
export type CreateReportBodyProperties = CreateReportBody['properties'];
|
||||
export type Report = ReportIndexResponse['data'][0];
|
||||
|
||||
export type GoalIndexResponse = ZodiosResponseByAlias<SolidTimeApi, 'getGoals'>;
|
||||
export type Goal = GoalIndexResponse['data'][0];
|
||||
export type GoalFilters = Goal['filters'];
|
||||
export type GoalProgress = Goal['progress'];
|
||||
export type GoalComparison = Goal['comparison'];
|
||||
export type GoalPeriod = Goal['period'];
|
||||
export type GoalType = Goal['type'];
|
||||
export type GoalWeekStart = Goal['week_start'];
|
||||
export type Weekday = GoalWeekStart;
|
||||
export type GoalStatus = GoalProgress['status'];
|
||||
export type CreateGoalBody = ZodiosBodyByAlias<SolidTimeApi, 'createGoal'>;
|
||||
export type UpdateGoalBody = ZodiosBodyByAlias<SolidTimeApi, 'updateGoal'>;
|
||||
|
||||
export type ApiTokenIndexResponse = ZodiosResponseByAlias<SolidTimeApi, 'getApiTokens'>;
|
||||
|
||||
export type CreateApiTokenBody = ZodiosBodyByAlias<SolidTimeApi, 'createApiToken'>;
|
||||
|
||||
Reference in New Issue
Block a user