feat: work shifts history

This commit is contained in:
2024-11-28 18:01:47 +04:00
parent f41083d2a8
commit 900427275f
14 changed files with 434 additions and 248 deletions

View File

@@ -1,9 +0,0 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ActiveWorkShiftSchema } from './ActiveWorkShiftSchema';
export type ActiveWorkShiftsResponse = {
shifts: Array<ActiveWorkShiftSchema>;
};

View File

@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PaginationInfoSchema } from './PaginationInfoSchema';
import type { WorkShiftSchema } from './WorkShiftSchema';
export type GetWorkShiftsResponse = {
shifts: Array<WorkShiftSchema>;
paginationInfo: PaginationInfoSchema;
};

View File

@@ -3,9 +3,11 @@
/* tslint:disable */
/* eslint-disable */
import type { UserSchema } from './UserSchema';
export type ActiveWorkShiftSchema = {
export type WorkShiftSchema = {
id: number;
startedAt: string;
finishedAt?: (string | null);
hours?: (number | null);
user: UserSchema;
};