Skip to content

Commit

Permalink
renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
dsumer committed Oct 24, 2023
1 parent f93daa7 commit 2cced6b
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/clockodo.test.ts
Original file line number Diff line number Diff line change
@@ -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();
4 changes: 2 additions & 2 deletions src/clockodo.ts
Original file line number Diff line number Diff line change
@@ -786,7 +786,7 @@ export class Clockodo {
async getWorktimeRegulations(
params?: Params
): Promise<WorktimeRegulationsReturnType> {
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<WorktimeRegulation>;
worktimeRegulations: Array<WorktimeRegulation>;
};
Original file line number Diff line number Diff line change
@@ -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 */
4 changes: 2 additions & 2 deletions src/models/worktimeRegulation.ts
Original file line number Diff line number Diff line change
@@ -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<Omit<BreakRule, "worktimeRegulationsId">>;
rules: Array<Omit<WorktimeBreakRule, "worktimeRegulationsId">>;
};

0 comments on commit 2cced6b

Please sign in to comment.