Comparing version
@@ -75,2 +75,6 @@ /** Special id that is used when no worktime regulation should be applied */ | ||
boss: number | null; | ||
/** | ||
* The ids of the co-workers that are allowed to manage the absences of this co-worker | ||
*/ | ||
absenceManagersId: Array<number> | null; | ||
}; | ||
@@ -77,0 +81,0 @@ export declare enum UserRole { |
import { User, WorkTimeEditLock } from "./user.js"; | ||
export declare const createUserMocks: ({ count, workTimeEditLockDays, boss, }: { | ||
export declare const createUserMocks: ({ count, workTimeEditLockDays, boss, absenceManagersId, }: { | ||
count?: number | undefined; | ||
workTimeEditLockDays?: WorkTimeEditLock | undefined; | ||
boss?: number | undefined; | ||
absenceManagersId?: number[] | undefined; | ||
}) => User[]; |
import { faker } from "@faker-js/faker"; | ||
import { UserRole, UserLanguage } from "./user.js"; | ||
export const createUserMocks = ({ count = 1, workTimeEditLockDays = 0, boss, }) => Array.from({ length: count }, (_, index) => { | ||
export const createUserMocks = ({ count = 1, workTimeEditLockDays = 0, boss, absenceManagersId, }) => Array.from({ length: count }, (_, index) => { | ||
const userId = index; | ||
@@ -29,4 +29,5 @@ return { | ||
boss: boss !== null && boss !== void 0 ? boss : null, | ||
absenceManagersId: absenceManagersId !== null && absenceManagersId !== void 0 ? absenceManagersId : null, | ||
}; | ||
}); | ||
//# sourceMappingURL=user.mocks.js.map |
{ | ||
"name": "clockodo", | ||
"version": "23.1.0", | ||
"version": "23.2.0", | ||
"description": "Unofficial JavaScript/TypeScript SDK for Clockodo", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
495048
0.14%6204
0.1%