feat: work shift pauses
This commit is contained in:
9
src/client/models/FinishPauseByShiftIdResponse.ts
Normal file
9
src/client/models/FinishPauseByShiftIdResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type FinishPauseByShiftIdResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/FinishPauseByUserIdResponse.ts
Normal file
9
src/client/models/FinishPauseByUserIdResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type FinishPauseByUserIdResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { PaginationInfoSchema } from './PaginationInfoSchema';
|
||||
import type { WorkShiftSchema } from './WorkShiftSchema';
|
||||
import type { WorkShiftRowSchema } from './WorkShiftRowSchema';
|
||||
export type GetWorkShiftsResponse = {
|
||||
shifts: Array<WorkShiftSchema>;
|
||||
shifts: Array<WorkShiftRowSchema>;
|
||||
paginationInfo: PaginationInfoSchema;
|
||||
};
|
||||
|
||||
|
||||
9
src/client/models/StartPauseByShiftIdResponse.ts
Normal file
9
src/client/models/StartPauseByShiftIdResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type StartPauseByShiftIdResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/StartPauseByUserIdResponse.ts
Normal file
9
src/client/models/StartPauseByUserIdResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type StartPauseByUserIdResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
11
src/client/models/WorkShiftRowSchema.ts
Normal file
11
src/client/models/WorkShiftRowSchema.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { WorkShiftSchema } from './WorkShiftSchema';
|
||||
export type WorkShiftRowSchema = {
|
||||
workShift: WorkShiftSchema;
|
||||
totalHours?: (number | null);
|
||||
pauseHours?: (number | null);
|
||||
};
|
||||
|
||||
@@ -7,7 +7,7 @@ export type WorkShiftSchema = {
|
||||
id: number;
|
||||
startedAt: string;
|
||||
finishedAt?: (string | null);
|
||||
hours?: (number | null);
|
||||
isPaused?: (boolean | null);
|
||||
user: UserSchema;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user