From 2cced6b24b57afeb98fe48a75830a7ee5051db93 Mon Sep 17 00:00:00 2001 From: Dominik Sumer Date: Tue, 24 Oct 2023 15:37:06 +0200 Subject: [PATCH] renamings --- src/clockodo.test.ts | 2 +- src/clockodo.ts | 4 ++-- src/models/{breakRule.ts => worktimeBreakRule.ts} | 2 +- src/models/worktimeRegulation.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/models/{breakRule.ts => worktimeBreakRule.ts} (95%) diff --git a/src/clockodo.test.ts b/src/clockodo.test.ts index e6d3675b..19fc0277 100644 --- a/src/clockodo.test.ts +++ b/src/clockodo.test.ts @@ -620,7 +620,7 @@ describe("Clockodo (instance)", () => { describe("getWorktimeRegulations()", () => { it("correctly builds getWorktimeRegulations() request", async () => { const nockScope = nock(CLOCKODO_API) - .get("/v2/worktimeregulations") + .get("/v2/worktimeRegulations") .reply(200, {}); await clockodo.getWorktimeRegulations(); diff --git a/src/clockodo.ts b/src/clockodo.ts index c978e873..62659d8a 100644 --- a/src/clockodo.ts +++ b/src/clockodo.ts @@ -786,7 +786,7 @@ export class Clockodo { async getWorktimeRegulations( params?: Params ): Promise { - return this.api.get("/v2/worktimeregulations", params); + return this.api.get("/v2/worktimeRegulations", params); } } @@ -1097,5 +1097,5 @@ export type HolidayscarryRowParams = { /** The user ID by which the overtime carry rows should be filtered */ export type WorktimeRegulationsReturnType = { - worktimeregulations: Array; + worktimeRegulations: Array; }; diff --git a/src/models/breakRule.ts b/src/models/worktimeBreakRule.ts similarity index 95% rename from src/models/breakRule.ts rename to src/models/worktimeBreakRule.ts index eff35f22..c2909fd2 100644 --- a/src/models/breakRule.ts +++ b/src/models/worktimeBreakRule.ts @@ -1,4 +1,4 @@ -export type BreakRule = { +export type WorktimeBreakRule = { /** ID of the corresponding worktime regulation */ worktimeRegulationsId: number; /** Daily worktime (in hours), above which the rule applies */ diff --git a/src/models/worktimeRegulation.ts b/src/models/worktimeRegulation.ts index e78f1722..2aea8122 100644 --- a/src/models/worktimeRegulation.ts +++ b/src/models/worktimeRegulation.ts @@ -1,4 +1,4 @@ -import { BreakRule } from "./breakRule.js"; +import { WorktimeBreakRule } from "./worktimeBreakRule.js"; export type WorktimeRegulation = { /** ID of the worktime regulation */ @@ -22,5 +22,5 @@ export type WorktimeRegulationWithRules = Omit< "name" | "preset" > & { /** Contains objects of the type "breakrule" */ - rules: Array>; + rules: Array>; };