-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With this resource you can read user and company seetings for the logged in user. Editing is currently not possible. See https://www.clockodo.com/en/api/aggregates/users/me/
- Loading branch information
Showing
5 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
export type Company = { | ||
/** ID of the company */ | ||
id: number; | ||
/** Name of the company */ | ||
name: string; | ||
/** Default timezone of the company */ | ||
timezoneDefault: string; | ||
/** Currency of the company */ | ||
currency: string; | ||
/** Are time and lump sum entries with multiline descriptions allowed? */ | ||
allowEntriesTextMultiline: boolean; | ||
/** Can time and lump sum entries be directly assigned to customers (or only to projects)? */ | ||
allowEntriesForCustomers: boolean; | ||
/** Does the duration of a time entry have to be equal to the difference between start and end? */ | ||
forceLinkedEntryTimes: boolean; | ||
/** ID of the default customer */ | ||
defaultCustomersId: number | null; | ||
/** ID of the default service */ | ||
defaultServicesId: number | null; | ||
/** Is the absence module active for the company? */ | ||
moduleAbsence: boolean; | ||
/** Is the target hours module active for the company? */ | ||
moduleTargetHours: boolean; | ||
/** Is the user report module active for the company? */ | ||
moduleUserReports: boolean; | ||
/** ID of the default nonbusiness group */ | ||
nonbusinessGroupDefault: number | null; | ||
/** ID of the default worktime regulation */ | ||
worktimeRegulationDefault: number | null; | ||
/** | ||
* Date from which worktime regulations are evaluated for the company in YYYY-MM-DD format | ||
*/ | ||
worktimeEvaluateRegulationsSince: string | null; | ||
/** Is missing break time subtracted from the tracked work time? */ | ||
worktimeForceBreaks: boolean; | ||
/** Number of days in the default holiday quota of the company */ | ||
holidaysCountDefault: number; | ||
/** | ||
* Are absences handled by reducing the target hours for the day? | ||
* If not, time is added to the worktime account for absences | ||
*/ | ||
absenceReducesTargetHours: boolean; | ||
/** Default value for automatically compensated overtime per day (in minutes) */ | ||
compensateDayDefault: number; | ||
/** Default value for automatically compensated overtime per month (in hours) */ | ||
compensateMonthDefault: number; | ||
targetHoursDefault: { | ||
/** Default value for targethours on mondays */ | ||
monday: number; | ||
/** Default value for targethours on tuesdays */ | ||
tuesday: number; | ||
/** Default value for targethours on wednesdays */ | ||
wednesday: number; | ||
/** Default value for targethours on thursdays */ | ||
thursday: number; | ||
/** Default value for targethours on fridays */ | ||
friday: number; | ||
/** Default value for targethours on saturdays */ | ||
saturday: number; | ||
/** Default value for targethours on sundays */ | ||
sunday: number; | ||
}; | ||
/** Has the registration process been completed? */ | ||
onboardingComplete: boolean; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
export const NO_WORKTIME_REGULATIONS_ID = 0 as const; | ||
|
||
export type WorktimeRegulation = { | ||
/** ID of the worktime regulation */ | ||
id: number; | ||
/** Do mandatory breaks count as worktime? */ | ||
addToWorktime: boolean; | ||
/** Maximum allowed worktime per week (in hours) */ | ||
weeklyMax: number; | ||
/** Maximum allowed worktime per day (in hours) */ | ||
dailyMax: number; | ||
/** Maximum allowed worktime without a break (in hours) */ | ||
intervalMax: number; | ||
/** Contains objects of the type "breakrule" */ | ||
rules: Array<BreakRule>; | ||
}; | ||
|
||
export type BreakRule = { | ||
/** Daily worktime (in hours), above which the rule applies */ | ||
worktime: number; | ||
/** Required total break time */ | ||
breakSum: number; | ||
/** | ||
* Contains the break splitting options as key-value pair. | ||
* The key represents the number of breaks into which the required time may be split, the value contains the minimum length of a single break (in minutes) | ||
**/ | ||
splitting: Record<number, number>; | ||
}; |