diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/use-home-todos-by-date.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/use-home-todos-by-date.ts index a5cd937f..5172aadd 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/use-home-todos-by-date.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/use-home-todos-by-date.ts @@ -3,24 +3,24 @@ import { useQueryClient } from "@tanstack/react-query"; import { useEffect, useState } from "react"; -import type { ErrorType } from "@/api/client/custom-instance"; -import type { ApiError } from "@/api/error/api-error"; -import type { ErrorDto } from "@/api/generated/models"; import type { HomeViewDay } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_types/home-view-type"; import type { Todo } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_types/todo-type"; +import type { ErrorDto } from "@/generated/models"; +import type { ApiError } from "@/http/api-error"; +import type { ErrorType } from "@/http/custom-instance"; +import { reorderTodos } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_utils/todo-order"; import { useChangeStatus, useStartTimer, useStopTimer, -} from "@/api/generated/endpoints/timer/timer"; +} from "@/generated/endpoints/timer/timer"; import { getGetTodoDetailQueryKey, useChangeSubtaskStatus, useChangeTodoStatus, useReorderTodo, -} from "@/api/generated/endpoints/todo/todo"; -import { reorderTodos } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_utils/todo-order"; +} from "@/generated/endpoints/todo/todo"; import { useActiveTimer } from "@/hooks/timer/use-active-timer"; import { useTimerQueryInvalidation } from "@/hooks/timer/use-timer-query-invalidation"; import { useTimeSidebarStore } from "@/stores/time-sidebar/useTimeSidebarStore"; diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_queries/use-home-view-query.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_queries/use-home-view-query.ts index 84cb7a82..174525b9 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_queries/use-home-view-query.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_queries/use-home-view-query.ts @@ -4,11 +4,8 @@ import { useSuspenseQuery } from "@tanstack/react-query"; import type { GetHomeViewParams } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_types/home-view-type"; -import { - getGetHomeQueryKey, - getHome, -} from "@/api/generated/endpoints/home/home"; import { homeViewDataSchema } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_types/home-view-type"; +import { getGetHomeQueryKey, getHome } from "@/generated/endpoints/home/home"; export const useHomeViewQuery = ({ filter, baseDate }: GetHomeViewParams) => useSuspenseQuery({ diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_hooks/todo-modal/use-create-todo-submit.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_hooks/todo-modal/use-create-todo-submit.ts index c5786846..1c68d6f6 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_hooks/todo-modal/use-create-todo-submit.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_hooks/todo-modal/use-create-todo-submit.ts @@ -3,11 +3,11 @@ import { useQueryClient } from "@tanstack/react-query"; import { useState } from "react"; -import type { TodoCreateRequest } from "@/api/generated/models"; +import type { TodoCreateRequest } from "@/generated/models"; import type { CreateTodoRequest } from "@/schemas/todo/todo-schema"; -import { getGetTodayQueryKey } from "@/api/generated/endpoints/home/home"; -import { useCreateTodo } from "@/api/generated/endpoints/todo/todo"; +import { getGetTodayQueryKey } from "@/generated/endpoints/home/home"; +import { useCreateTodo } from "@/generated/endpoints/todo/todo"; import { useStatisticsQueryInvalidation } from "@/hooks/statistics/use-statistics-query-invalidation"; const buildCreateTodoRequestBody = ( diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_hooks/useTodayTodoList.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_hooks/useTodayTodoList.ts index a42f0ab4..ec0cece8 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_hooks/useTodayTodoList.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_hooks/useTodayTodoList.ts @@ -3,20 +3,20 @@ import { useQueryClient } from "@tanstack/react-query"; import { useEffect, useState } from "react"; -import type { ErrorType } from "@/api/client/custom-instance"; -import type { ErrorDto } from "@/api/generated/models"; import type { TodayTodo } from "@/app/[locale]/(main)/(with-time-sidebar)/today/_types/today-type"; +import type { ErrorDto } from "@/generated/models"; +import type { ErrorType } from "@/http/custom-instance"; import { useChangeStatus, useStartTimer, useStopTimer, -} from "@/api/generated/endpoints/timer/timer"; +} from "@/generated/endpoints/timer/timer"; import { getGetTodoDetailQueryKey, useChangeSubtaskStatus, useChangeTodoStatus, -} from "@/api/generated/endpoints/todo/todo"; +} from "@/generated/endpoints/todo/todo"; import { useActiveTimer } from "@/hooks/timer/use-active-timer"; import { useTimerQueryInvalidation } from "@/hooks/timer/use-timer-query-invalidation"; import { useTimeSidebarStore } from "@/stores/time-sidebar/useTimeSidebarStore"; diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_queries/use-today-query.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_queries/use-today-query.ts index 31d93cae..d53524df 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_queries/use-today-query.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/today/_queries/use-today-query.ts @@ -2,11 +2,8 @@ import { useSuspenseQuery } from "@tanstack/react-query"; -import { - getGetTodayQueryKey, - getToday, -} from "@/api/generated/endpoints/home/home"; import { todayDataSchema } from "@/app/[locale]/(main)/(with-time-sidebar)/today/_types/today-type"; +import { getGetTodayQueryKey, getToday } from "@/generated/endpoints/home/home"; export const useTodayQuery = () => useSuspenseQuery({ diff --git a/apps/timo-web/app/[locale]/(main)/focus/_hooks/use-focus-session.ts b/apps/timo-web/app/[locale]/(main)/focus/_hooks/use-focus-session.ts index 6818c827..c99c65e4 100644 --- a/apps/timo-web/app/[locale]/(main)/focus/_hooks/use-focus-session.ts +++ b/apps/timo-web/app/[locale]/(main)/focus/_hooks/use-focus-session.ts @@ -5,20 +5,20 @@ import { useEffect, useRef } from "react"; import type { TimerSessionControlsHandle } from "@/components/timer/TimerSessionControls"; +import { useFocusTodoQuery } from "@/app/[locale]/(main)/focus/_queries/use-focus-todo-query"; +import { convertDateToBadgeText } from "@/app/[locale]/(main)/focus/_utils/date"; import { useChangeStatus, useCompleteTimer, useExtendTimer, useStartTimer, useStopTimer, -} from "@/api/generated/endpoints/timer/timer"; +} from "@/generated/endpoints/timer/timer"; import { getGetTodoDetailQueryKey, useChangeSubtaskStatus, useChangeTodoStatus, -} from "@/api/generated/endpoints/todo/todo"; -import { useFocusTodoQuery } from "@/app/[locale]/(main)/focus/_queries/use-focus-todo-query"; -import { convertDateToBadgeText } from "@/app/[locale]/(main)/focus/_utils/date"; +} from "@/generated/endpoints/todo/todo"; import { useActiveTimer } from "@/hooks/timer/use-active-timer"; import { useTimerActions } from "@/hooks/timer/use-timer-actions"; import { useTimerOvertime } from "@/hooks/timer/use-timer-overtime"; diff --git a/apps/timo-web/app/[locale]/(main)/focus/_queries/use-focus-todo-query.ts b/apps/timo-web/app/[locale]/(main)/focus/_queries/use-focus-todo-query.ts index d0329ca0..172e9838 100644 --- a/apps/timo-web/app/[locale]/(main)/focus/_queries/use-focus-todo-query.ts +++ b/apps/timo-web/app/[locale]/(main)/focus/_queries/use-focus-todo-query.ts @@ -2,11 +2,11 @@ import { useSuspenseQuery } from "@tanstack/react-query"; +import { focusViewSchema } from "@/app/[locale]/(main)/focus/_types/task-type"; import { getFocusTodo, getGetFocusTodoQueryKey, -} from "@/api/generated/endpoints/focus/focus"; -import { focusViewSchema } from "@/app/[locale]/(main)/focus/_types/task-type"; +} from "@/generated/endpoints/focus/focus"; export const useFocusTodoQuery = () => useSuspenseQuery({ diff --git a/apps/timo-web/app/[locale]/(main)/settings/_hooks/account/use-settings-profile.ts b/apps/timo-web/app/[locale]/(main)/settings/_hooks/account/use-settings-profile.ts index 43104439..0fede7f1 100644 --- a/apps/timo-web/app/[locale]/(main)/settings/_hooks/account/use-settings-profile.ts +++ b/apps/timo-web/app/[locale]/(main)/settings/_hooks/account/use-settings-profile.ts @@ -5,18 +5,18 @@ import { useTranslations } from "next-intl"; import type { SettingsLanguage } from "@/app/[locale]/(main)/settings/_types/account/profile-type"; +import { useSettingsLanguageParam } from "@/app/[locale]/(main)/settings/_hooks/account/use-settings-language-param"; +import { useLogoutMutation } from "@/app/[locale]/(main)/settings/_queries/account/use-logout-mutation"; import { authorize, useDisconnectCalendar, getGetCalendarEventsQueryKey, -} from "@/api/generated/endpoints/calendar/calendar"; +} from "@/generated/endpoints/calendar/calendar"; import { getGetMyProfileQueryKey, useUpdateLanguage, -} from "@/api/generated/endpoints/user/user"; -import { UpdateLanguageRequestLanguage } from "@/api/generated/models"; -import { useSettingsLanguageParam } from "@/app/[locale]/(main)/settings/_hooks/account/use-settings-language-param"; -import { useLogoutMutation } from "@/app/[locale]/(main)/settings/_queries/account/use-logout-mutation"; +} from "@/generated/endpoints/user/user"; +import { UpdateLanguageRequestLanguage } from "@/generated/models"; import { useMyProfileQuery } from "@/queries/auth/use-my-profile-query"; import { useCreateTagMutation } from "@/queries/tag/use-create-tag-mutation"; import { useDeleteTagMutation } from "@/queries/tag/use-delete-tag-mutation"; diff --git a/apps/timo-web/app/[locale]/(main)/settings/_queries/account/use-logout-mutation.ts b/apps/timo-web/app/[locale]/(main)/settings/_queries/account/use-logout-mutation.ts index 3c7b72dc..50c2e35e 100644 --- a/apps/timo-web/app/[locale]/(main)/settings/_queries/account/use-logout-mutation.ts +++ b/apps/timo-web/app/[locale]/(main)/settings/_queries/account/use-logout-mutation.ts @@ -2,8 +2,8 @@ import { useMutation } from "@tanstack/react-query"; -import { logout } from "@/api/generated/endpoints/auth/auth"; import { useClearSession } from "@/app/[locale]/(main)/settings/_hooks/use-clear-session"; +import { logout } from "@/generated/endpoints/auth/auth"; export const useLogoutMutation = () => { const clearSession = useClearSession(); diff --git a/apps/timo-web/app/[locale]/(main)/settings/_queries/withdrawal/use-withdraw-mutation.ts b/apps/timo-web/app/[locale]/(main)/settings/_queries/withdrawal/use-withdraw-mutation.ts index 6dddc62f..7964ef52 100644 --- a/apps/timo-web/app/[locale]/(main)/settings/_queries/withdrawal/use-withdraw-mutation.ts +++ b/apps/timo-web/app/[locale]/(main)/settings/_queries/withdrawal/use-withdraw-mutation.ts @@ -2,8 +2,8 @@ import { useMutation } from "@tanstack/react-query"; -import { withdraw } from "@/api/generated/endpoints/auth/auth"; import { useClearSession } from "@/app/[locale]/(main)/settings/_hooks/use-clear-session"; +import { withdraw } from "@/generated/endpoints/auth/auth"; export const useWithdrawMutation = () => { const clearSession = useClearSession(); diff --git a/apps/timo-web/app/[locale]/(main)/statistics/_queries/use-statistics-query.ts b/apps/timo-web/app/[locale]/(main)/statistics/_queries/use-statistics-query.ts index 0b3dfcee..1958e734 100644 --- a/apps/timo-web/app/[locale]/(main)/statistics/_queries/use-statistics-query.ts +++ b/apps/timo-web/app/[locale]/(main)/statistics/_queries/use-statistics-query.ts @@ -2,7 +2,7 @@ import { useGetCalendar, useGetDaily, useGetSummary, -} from "@/api/generated/endpoints/statistics/statistics"; +} from "@/generated/endpoints/statistics/statistics"; export const useStatisticsSummaryQuery = (yearMonth: string) => { return useGetSummary({ yearMonth }); diff --git a/apps/timo-web/app/[locale]/oauth/calendar/callback/_containers/CalendarCallbackContainer.tsx b/apps/timo-web/app/[locale]/oauth/calendar/callback/_containers/CalendarCallbackContainer.tsx index 3bcfd3c9..7df1e0ec 100644 --- a/apps/timo-web/app/[locale]/oauth/calendar/callback/_containers/CalendarCallbackContainer.tsx +++ b/apps/timo-web/app/[locale]/oauth/calendar/callback/_containers/CalendarCallbackContainer.tsx @@ -4,9 +4,9 @@ import { useQueryClient } from "@tanstack/react-query"; import { useSearchParams } from "next/navigation"; import { useEffect, useRef } from "react"; -import { useConnectCalendar } from "@/api/generated/endpoints/calendar/calendar"; -import { getGetMyProfileQueryKey } from "@/api/generated/endpoints/user/user"; import { ROUTES } from "@/constants/routes"; +import { useConnectCalendar } from "@/generated/endpoints/calendar/calendar"; +import { getGetMyProfileQueryKey } from "@/generated/endpoints/user/user"; import { useRouter } from "@/i18n/navigation"; export const CalendarCallbackContainer = () => { diff --git a/apps/timo-web/app/[locale]/oauth/callback/_containers/OauthCallbackContainer.tsx b/apps/timo-web/app/[locale]/oauth/callback/_containers/OauthCallbackContainer.tsx index c727f4b6..3e676d4b 100644 --- a/apps/timo-web/app/[locale]/oauth/callback/_containers/OauthCallbackContainer.tsx +++ b/apps/timo-web/app/[locale]/oauth/callback/_containers/OauthCallbackContainer.tsx @@ -3,9 +3,9 @@ import { useSearchParams } from "next/navigation"; import { useEffect, useRef } from "react"; -import { useToken } from "@/api/generated/endpoints/auth/auth"; -import { useUpdateTimezone } from "@/api/generated/endpoints/user/user"; import { ROUTES } from "@/constants/routes"; +import { useToken } from "@/generated/endpoints/auth/auth"; +import { useUpdateTimezone } from "@/generated/endpoints/user/user"; import { useRouter } from "@/i18n/navigation"; import { useAuthStore } from "@/stores/auth/useAuthStore"; diff --git a/apps/timo-web/app/[locale]/onboarding/_containers/CalendarConnectStepContainer.tsx b/apps/timo-web/app/[locale]/onboarding/_containers/CalendarConnectStepContainer.tsx index dbd4ed35..55e0026c 100644 --- a/apps/timo-web/app/[locale]/onboarding/_containers/CalendarConnectStepContainer.tsx +++ b/apps/timo-web/app/[locale]/onboarding/_containers/CalendarConnectStepContainer.tsx @@ -2,9 +2,9 @@ import { useTranslations } from "next-intl"; -import { authorize } from "@/api/generated/endpoints/calendar/calendar"; import { OnboardingButtonContainer } from "@/app/[locale]/onboarding/_containers/OnboardingButtonContainer"; import { OnboardingGoogleButtonContainer } from "@/app/[locale]/onboarding/_containers/OnboardingGoogleButtonContainer"; +import { authorize } from "@/generated/endpoints/calendar/calendar"; interface CalendarConnectStepContainerProps { isPending?: boolean; diff --git a/apps/timo-web/app/[locale]/onboarding/_containers/OnboardingFunnelContainer.tsx b/apps/timo-web/app/[locale]/onboarding/_containers/OnboardingFunnelContainer.tsx index bc3f21d7..91bbfb3e 100644 --- a/apps/timo-web/app/[locale]/onboarding/_containers/OnboardingFunnelContainer.tsx +++ b/apps/timo-web/app/[locale]/onboarding/_containers/OnboardingFunnelContainer.tsx @@ -4,8 +4,6 @@ import { useFunnel } from "@use-funnel/browser"; import { useTranslations } from "next-intl"; import { useState } from "react"; -import { useCompleteOnboarding } from "@/api/generated/endpoints/onboarding/onboarding"; -import { OnboardingRequestLanguage } from "@/api/generated/models"; import { OnboardingStepButton } from "@/app/[locale]/onboarding/_components/OnboardingStepButton"; import { CalendarConnectStepContainer } from "@/app/[locale]/onboarding/_containers/CalendarConnectStepContainer"; import { LanguageStepContainer } from "@/app/[locale]/onboarding/_containers/LanguageStepContainer"; @@ -15,6 +13,8 @@ import { OnboardingFunnelSteps } from "@/app/[locale]/onboarding/_types/onboardi import { LottiePlayer } from "@/components/lottie/LottiePlayer"; import { AnimatedToast } from "@/components/toast/AnimatedToast"; import { ROUTES } from "@/constants/routes"; +import { useCompleteOnboarding } from "@/generated/endpoints/onboarding/onboarding"; +import { OnboardingRequestLanguage } from "@/generated/models"; import { useRouter } from "@/i18n/navigation"; import { useAuthStore } from "@/stores/auth/useAuthStore"; diff --git a/apps/timo-web/app/[locale]/policy/page.tsx b/apps/timo-web/app/[locale]/policy/page.tsx index 3128300b..3bef9407 100644 --- a/apps/timo-web/app/[locale]/policy/page.tsx +++ b/apps/timo-web/app/[locale]/policy/page.tsx @@ -46,20 +46,20 @@ export default async function PolicyPage({ searchParams }: PolicyPageProps) { const parsedType = termsTypeSchema.safeParse(type); return ( -
-
+
+
-
+ -
+
-
-
+ + ); } diff --git a/apps/timo-web/components/layout/sidebar/time/TimerPanel.tsx b/apps/timo-web/components/layout/sidebar/time/TimerPanel.tsx index 2f4bc03d..48596284 100644 --- a/apps/timo-web/components/layout/sidebar/time/TimerPanel.tsx +++ b/apps/timo-web/components/layout/sidebar/time/TimerPanel.tsx @@ -2,18 +2,18 @@ import { useEffect, useRef, useState } from "react"; -import { - useChangeStatus, - useCompleteTimer, - useExtendTimer, - useStopTimer, -} from "@/api/generated/endpoints/timer/timer"; -import { useChangeTodoStatus } from "@/api/generated/endpoints/todo/todo"; import { Timer } from "@/components/timer/Timer"; import { TimerSessionControls, type TimerSessionControlsHandle, } from "@/components/timer/TimerSessionControls"; +import { + useChangeStatus, + useCompleteTimer, + useExtendTimer, + useStopTimer, +} from "@/generated/endpoints/timer/timer"; +import { useChangeTodoStatus } from "@/generated/endpoints/todo/todo"; import { useActiveTimer } from "@/hooks/timer/use-active-timer"; import { useTimerActions } from "@/hooks/timer/use-timer-actions"; import { useTimerOvertime } from "@/hooks/timer/use-timer-overtime"; diff --git a/apps/timo-web/components/policy/PolicyDocument.tsx b/apps/timo-web/components/policy/PolicyDocument.tsx index d7d293c0..6bb04b43 100644 --- a/apps/timo-web/components/policy/PolicyDocument.tsx +++ b/apps/timo-web/components/policy/PolicyDocument.tsx @@ -5,7 +5,7 @@ export interface PolicyDocumentProps { export const PolicyDocument = ({ title, content }: PolicyDocumentProps) => { return ( -
+

{title} diff --git a/apps/timo-web/components/timer/TimerExtendModalPanel.tsx b/apps/timo-web/components/timer/TimerExtendModalPanel.tsx index 7420cbb4..8de4e4be 100644 --- a/apps/timo-web/components/timer/TimerExtendModalPanel.tsx +++ b/apps/timo-web/components/timer/TimerExtendModalPanel.tsx @@ -2,7 +2,7 @@ import { Modal, ModalButton } from "@repo/timo-design-system/ui"; import { cn } from "@repo/timo-design-system/utils"; import { useTranslations } from "next-intl"; -import { extendTimerBodyExtendMinutesMax } from "@/api/generated/endpoints/timer/timer.zod"; +import { extendTimerBodyExtendMinutesMax } from "@/generated/endpoints/timer/timer.zod"; export type ExtendTimePreset = 10 | 30 | 60 | "custom"; diff --git a/apps/timo-web/components/todo-modal/detail/DetailTodoModalContent.tsx b/apps/timo-web/components/todo-modal/detail/DetailTodoModalContent.tsx index a7ff4c25..a2788899 100644 --- a/apps/timo-web/components/todo-modal/detail/DetailTodoModalContent.tsx +++ b/apps/timo-web/components/todo-modal/detail/DetailTodoModalContent.tsx @@ -11,7 +11,7 @@ import type { TodoDetailResponse, TodoDetailResponseTimerStatus, TodoUpdateRequest, -} from "@/api/generated/models"; +} from "@/generated/models"; import type { UpdateTodoSubmitHandlers } from "@/hooks/todo-modal/detail/use-update-todo-submit"; import { TagLimitToastContainer } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_containers/toast/TagLimitToastContainer"; diff --git a/apps/timo-web/components/todo-modal/detail/DetailTodoTaskFields.tsx b/apps/timo-web/components/todo-modal/detail/DetailTodoTaskFields.tsx index 383557a3..3ef108b6 100644 --- a/apps/timo-web/components/todo-modal/detail/DetailTodoTaskFields.tsx +++ b/apps/timo-web/components/todo-modal/detail/DetailTodoTaskFields.tsx @@ -5,7 +5,7 @@ import { } from "@repo/timo-design-system/icons"; import { Checkbox, PlayButton } from "@repo/timo-design-system/ui"; -import type { TodoDetailResponseTimerStatus } from "@/api/generated/models"; +import type { TodoDetailResponseTimerStatus } from "@/generated/models"; import type { KeyboardEvent, MouseEvent, PointerEvent } from "react"; const resizeTextarea = (element: HTMLTextAreaElement | null) => { diff --git a/apps/timo-web/containers/todo-modal/detail/DetailTodoModalContainer.tsx b/apps/timo-web/containers/todo-modal/detail/DetailTodoModalContainer.tsx index d0c0a1d0..93ab6ea8 100644 --- a/apps/timo-web/containers/todo-modal/detail/DetailTodoModalContainer.tsx +++ b/apps/timo-web/containers/todo-modal/detail/DetailTodoModalContainer.tsx @@ -5,14 +5,14 @@ import { useTranslations } from "next-intl"; import { overlay } from "overlay-kit"; import { useCallback, useEffect, useRef, useState } from "react"; -import type { ErrorType } from "@/api/client/custom-instance"; -import type { ErrorDto, TodoUpdateRequest } from "@/api/generated/models"; +import type { ErrorDto, TodoUpdateRequest } from "@/generated/models"; import type { UpdateTodoSubmitHandlers } from "@/hooks/todo-modal/detail/use-update-todo-submit"; +import type { ErrorType } from "@/http/custom-instance"; import type { ReactNode } from "react"; -import { useGetTodoDetail } from "@/api/generated/endpoints/todo/todo"; import { AnimatedToast } from "@/components/toast/AnimatedToast"; import { DetailTodoModalContent } from "@/components/todo-modal/detail/DetailTodoModalContent"; +import { useGetTodoDetail } from "@/generated/endpoints/todo/todo"; import { useActiveTimer } from "@/hooks/timer/use-active-timer"; import { useDeleteTodoSubmit } from "@/hooks/todo-modal/detail/use-delete-todo-submit"; import { useToggleSubtaskSubmit } from "@/hooks/todo-modal/detail/use-toggle-subtask-submit"; diff --git a/apps/timo-web/api/generated/endpoints/ai/ai.ts b/apps/timo-web/generated/endpoints/ai/ai.ts similarity index 96% rename from apps/timo-web/api/generated/endpoints/ai/ai.ts rename to apps/timo-web/generated/endpoints/ai/ai.ts index 723f804d..c5c33a24 100644 --- a/apps/timo-web/api/generated/endpoints/ai/ai.ts +++ b/apps/timo-web/generated/endpoints/ai/ai.ts @@ -7,9 +7,9 @@ */ import { useMutation } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { ErrorType, BodyType } from "../../../http/custom-instance"; import type { BaseResponseRecommendDurationResponse, ErrorDto, diff --git a/apps/timo-web/api/generated/endpoints/ai/ai.zod.ts b/apps/timo-web/generated/endpoints/ai/ai.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/ai/ai.zod.ts rename to apps/timo-web/generated/endpoints/ai/ai.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/auth/auth.ts b/apps/timo-web/generated/endpoints/auth/auth.ts similarity index 98% rename from apps/timo-web/api/generated/endpoints/auth/auth.ts rename to apps/timo-web/generated/endpoints/auth/auth.ts index a8446944..7ece3009 100644 --- a/apps/timo-web/api/generated/endpoints/auth/auth.ts +++ b/apps/timo-web/generated/endpoints/auth/auth.ts @@ -7,9 +7,9 @@ */ import { useMutation } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { ErrorType, BodyType } from "../../../http/custom-instance"; import type { AuthTokenRequest, BaseResponseAuthReissueResponse, diff --git a/apps/timo-web/api/generated/endpoints/auth/auth.zod.ts b/apps/timo-web/generated/endpoints/auth/auth.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/auth/auth.zod.ts rename to apps/timo-web/generated/endpoints/auth/auth.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/calendar/calendar.ts b/apps/timo-web/generated/endpoints/calendar/calendar.ts similarity index 99% rename from apps/timo-web/api/generated/endpoints/calendar/calendar.ts rename to apps/timo-web/generated/endpoints/calendar/calendar.ts index 193b7863..adfd5310 100644 --- a/apps/timo-web/api/generated/endpoints/calendar/calendar.ts +++ b/apps/timo-web/generated/endpoints/calendar/calendar.ts @@ -7,9 +7,9 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { ErrorType, BodyType } from "../../../http/custom-instance"; import type { BaseResponseCalendarAuthorizeResponse, BaseResponseCalendarConnectResponse, diff --git a/apps/timo-web/api/generated/endpoints/calendar/calendar.zod.ts b/apps/timo-web/generated/endpoints/calendar/calendar.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/calendar/calendar.zod.ts rename to apps/timo-web/generated/endpoints/calendar/calendar.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/focus/focus.ts b/apps/timo-web/generated/endpoints/focus/focus.ts similarity index 97% rename from apps/timo-web/api/generated/endpoints/focus/focus.ts rename to apps/timo-web/generated/endpoints/focus/focus.ts index 0c767fec..636a1df0 100644 --- a/apps/timo-web/api/generated/endpoints/focus/focus.ts +++ b/apps/timo-web/generated/endpoints/focus/focus.ts @@ -7,9 +7,9 @@ */ import { useQuery } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType } from "../../../client/custom-instance"; +import type { ErrorType } from "../../../http/custom-instance"; import type { BaseResponseFocusTodoResponse, ErrorDto } from "../../models"; import type { DataTag, diff --git a/apps/timo-web/api/generated/endpoints/focus/focus.zod.ts b/apps/timo-web/generated/endpoints/focus/focus.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/focus/focus.zod.ts rename to apps/timo-web/generated/endpoints/focus/focus.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/home/home.ts b/apps/timo-web/generated/endpoints/home/home.ts similarity index 98% rename from apps/timo-web/api/generated/endpoints/home/home.ts rename to apps/timo-web/generated/endpoints/home/home.ts index 9743660a..388fe4ac 100644 --- a/apps/timo-web/api/generated/endpoints/home/home.ts +++ b/apps/timo-web/generated/endpoints/home/home.ts @@ -7,9 +7,9 @@ */ import { useQuery } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType } from "../../../client/custom-instance"; +import type { ErrorType } from "../../../http/custom-instance"; import type { BaseResponseHomeResponse, BaseResponseTodayResponse, diff --git a/apps/timo-web/api/generated/endpoints/home/home.zod.ts b/apps/timo-web/generated/endpoints/home/home.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/home/home.zod.ts rename to apps/timo-web/generated/endpoints/home/home.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/onboarding/onboarding.ts b/apps/timo-web/generated/endpoints/onboarding/onboarding.ts similarity index 95% rename from apps/timo-web/api/generated/endpoints/onboarding/onboarding.ts rename to apps/timo-web/generated/endpoints/onboarding/onboarding.ts index dbd54bd5..57370f04 100644 --- a/apps/timo-web/api/generated/endpoints/onboarding/onboarding.ts +++ b/apps/timo-web/generated/endpoints/onboarding/onboarding.ts @@ -7,9 +7,9 @@ */ import { useMutation } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { ErrorType, BodyType } from "../../../http/custom-instance"; import type { BaseResponse, ErrorDto, OnboardingRequest } from "../../models"; import type { MutationFunction, diff --git a/apps/timo-web/api/generated/endpoints/onboarding/onboarding.zod.ts b/apps/timo-web/generated/endpoints/onboarding/onboarding.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/onboarding/onboarding.zod.ts rename to apps/timo-web/generated/endpoints/onboarding/onboarding.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/statistics/statistics.ts b/apps/timo-web/generated/endpoints/statistics/statistics.ts similarity index 99% rename from apps/timo-web/api/generated/endpoints/statistics/statistics.ts rename to apps/timo-web/generated/endpoints/statistics/statistics.ts index 72e82a9a..ca5e1ebf 100644 --- a/apps/timo-web/api/generated/endpoints/statistics/statistics.ts +++ b/apps/timo-web/generated/endpoints/statistics/statistics.ts @@ -7,9 +7,9 @@ */ import { useQuery } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType } from "../../../client/custom-instance"; +import type { ErrorType } from "../../../http/custom-instance"; import type { BaseResponseStatisticsCalendarResponse, BaseResponseStatisticsDailyResponse, diff --git a/apps/timo-web/api/generated/endpoints/statistics/statistics.zod.ts b/apps/timo-web/generated/endpoints/statistics/statistics.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/statistics/statistics.zod.ts rename to apps/timo-web/generated/endpoints/statistics/statistics.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/tag/tag.ts b/apps/timo-web/generated/endpoints/tag/tag.ts similarity index 98% rename from apps/timo-web/api/generated/endpoints/tag/tag.ts rename to apps/timo-web/generated/endpoints/tag/tag.ts index dac9a965..42dd6abf 100644 --- a/apps/timo-web/api/generated/endpoints/tag/tag.ts +++ b/apps/timo-web/generated/endpoints/tag/tag.ts @@ -7,9 +7,9 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { ErrorType, BodyType } from "../../../http/custom-instance"; import type { BaseResponseTagCreateResponse, BaseResponseTagListResponse, diff --git a/apps/timo-web/api/generated/endpoints/tag/tag.zod.ts b/apps/timo-web/generated/endpoints/tag/tag.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/tag/tag.zod.ts rename to apps/timo-web/generated/endpoints/tag/tag.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/terms/terms.ts b/apps/timo-web/generated/endpoints/terms/terms.ts similarity index 97% rename from apps/timo-web/api/generated/endpoints/terms/terms.ts rename to apps/timo-web/generated/endpoints/terms/terms.ts index 46039867..483b04c7 100644 --- a/apps/timo-web/api/generated/endpoints/terms/terms.ts +++ b/apps/timo-web/generated/endpoints/terms/terms.ts @@ -7,9 +7,9 @@ */ import { useQuery } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType } from "../../../client/custom-instance"; +import type { ErrorType } from "../../../http/custom-instance"; import type { BaseResponseTermsDetailResponse, ErrorDto, diff --git a/apps/timo-web/api/generated/endpoints/terms/terms.zod.ts b/apps/timo-web/generated/endpoints/terms/terms.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/terms/terms.zod.ts rename to apps/timo-web/generated/endpoints/terms/terms.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/time-box/time-box.ts b/apps/timo-web/generated/endpoints/time-box/time-box.ts similarity index 97% rename from apps/timo-web/api/generated/endpoints/time-box/time-box.ts rename to apps/timo-web/generated/endpoints/time-box/time-box.ts index caf10a2a..eda9a681 100644 --- a/apps/timo-web/api/generated/endpoints/time-box/time-box.ts +++ b/apps/timo-web/generated/endpoints/time-box/time-box.ts @@ -7,9 +7,9 @@ */ import { useQuery } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType } from "../../../client/custom-instance"; +import type { ErrorType } from "../../../http/custom-instance"; import type { BaseResponseListTimeBoxResponse, ErrorDto, diff --git a/apps/timo-web/api/generated/endpoints/time-box/time-box.zod.ts b/apps/timo-web/generated/endpoints/time-box/time-box.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/time-box/time-box.zod.ts rename to apps/timo-web/generated/endpoints/time-box/time-box.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/timer/timer.ts b/apps/timo-web/generated/endpoints/timer/timer.ts similarity index 99% rename from apps/timo-web/api/generated/endpoints/timer/timer.ts rename to apps/timo-web/generated/endpoints/timer/timer.ts index 76aa765e..70bd385d 100644 --- a/apps/timo-web/api/generated/endpoints/timer/timer.ts +++ b/apps/timo-web/generated/endpoints/timer/timer.ts @@ -7,9 +7,9 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { ErrorType, BodyType } from "../../../http/custom-instance"; import type { BaseResponseTimerActiveResponse, BaseResponseTimerExtendResponse, diff --git a/apps/timo-web/api/generated/endpoints/timer/timer.zod.ts b/apps/timo-web/generated/endpoints/timer/timer.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/timer/timer.zod.ts rename to apps/timo-web/generated/endpoints/timer/timer.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/todo/todo.ts b/apps/timo-web/generated/endpoints/todo/todo.ts similarity index 99% rename from apps/timo-web/api/generated/endpoints/todo/todo.ts rename to apps/timo-web/generated/endpoints/todo/todo.ts index 0fd8f0fe..09cedb56 100644 --- a/apps/timo-web/api/generated/endpoints/todo/todo.ts +++ b/apps/timo-web/generated/endpoints/todo/todo.ts @@ -7,9 +7,9 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { ErrorType, BodyType } from "../../../http/custom-instance"; import type { BaseResponseObject, BaseResponseSubtaskStatusChangeResponse, diff --git a/apps/timo-web/api/generated/endpoints/todo/todo.zod.ts b/apps/timo-web/generated/endpoints/todo/todo.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/todo/todo.zod.ts rename to apps/timo-web/generated/endpoints/todo/todo.zod.ts diff --git a/apps/timo-web/api/generated/endpoints/user/user.ts b/apps/timo-web/generated/endpoints/user/user.ts similarity index 98% rename from apps/timo-web/api/generated/endpoints/user/user.ts rename to apps/timo-web/generated/endpoints/user/user.ts index 353b9d08..c230afb1 100644 --- a/apps/timo-web/api/generated/endpoints/user/user.ts +++ b/apps/timo-web/generated/endpoints/user/user.ts @@ -7,9 +7,9 @@ */ import { useMutation, useQuery } from "@tanstack/react-query"; -import { customInstance } from "../../../client/custom-instance"; +import { customInstance } from "../../../http/custom-instance"; -import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { ErrorType, BodyType } from "../../../http/custom-instance"; import type { BaseResponseUpdateLanguageResponse, BaseResponseUpdateTimezoneResponse, diff --git a/apps/timo-web/api/generated/endpoints/user/user.zod.ts b/apps/timo-web/generated/endpoints/user/user.zod.ts similarity index 100% rename from apps/timo-web/api/generated/endpoints/user/user.zod.ts rename to apps/timo-web/generated/endpoints/user/user.zod.ts diff --git a/apps/timo-web/api/generated/models/authReissueResponse.ts b/apps/timo-web/generated/models/authReissueResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/authReissueResponse.ts rename to apps/timo-web/generated/models/authReissueResponse.ts diff --git a/apps/timo-web/api/generated/models/authTokenRequest.ts b/apps/timo-web/generated/models/authTokenRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/authTokenRequest.ts rename to apps/timo-web/generated/models/authTokenRequest.ts diff --git a/apps/timo-web/api/generated/models/authTokenResponse.ts b/apps/timo-web/generated/models/authTokenResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/authTokenResponse.ts rename to apps/timo-web/generated/models/authTokenResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponse.ts b/apps/timo-web/generated/models/baseResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponse.ts rename to apps/timo-web/generated/models/baseResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseAuthReissueResponse.ts b/apps/timo-web/generated/models/baseResponseAuthReissueResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseAuthReissueResponse.ts rename to apps/timo-web/generated/models/baseResponseAuthReissueResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseAuthTokenResponse.ts b/apps/timo-web/generated/models/baseResponseAuthTokenResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseAuthTokenResponse.ts rename to apps/timo-web/generated/models/baseResponseAuthTokenResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseCalendarAuthorizeResponse.ts b/apps/timo-web/generated/models/baseResponseCalendarAuthorizeResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseCalendarAuthorizeResponse.ts rename to apps/timo-web/generated/models/baseResponseCalendarAuthorizeResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseCalendarConnectResponse.ts b/apps/timo-web/generated/models/baseResponseCalendarConnectResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseCalendarConnectResponse.ts rename to apps/timo-web/generated/models/baseResponseCalendarConnectResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseCalendarDisconnectResponse.ts b/apps/timo-web/generated/models/baseResponseCalendarDisconnectResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseCalendarDisconnectResponse.ts rename to apps/timo-web/generated/models/baseResponseCalendarDisconnectResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseCalendarEventsResponse.ts b/apps/timo-web/generated/models/baseResponseCalendarEventsResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseCalendarEventsResponse.ts rename to apps/timo-web/generated/models/baseResponseCalendarEventsResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseFocusTodoResponse.ts b/apps/timo-web/generated/models/baseResponseFocusTodoResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseFocusTodoResponse.ts rename to apps/timo-web/generated/models/baseResponseFocusTodoResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseHomeResponse.ts b/apps/timo-web/generated/models/baseResponseHomeResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseHomeResponse.ts rename to apps/timo-web/generated/models/baseResponseHomeResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseListTimeBoxResponse.ts b/apps/timo-web/generated/models/baseResponseListTimeBoxResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseListTimeBoxResponse.ts rename to apps/timo-web/generated/models/baseResponseListTimeBoxResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseObject.ts b/apps/timo-web/generated/models/baseResponseObject.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseObject.ts rename to apps/timo-web/generated/models/baseResponseObject.ts diff --git a/apps/timo-web/api/generated/models/baseResponseRecommendDurationResponse.ts b/apps/timo-web/generated/models/baseResponseRecommendDurationResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseRecommendDurationResponse.ts rename to apps/timo-web/generated/models/baseResponseRecommendDurationResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseStatisticsCalendarResponse.ts b/apps/timo-web/generated/models/baseResponseStatisticsCalendarResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseStatisticsCalendarResponse.ts rename to apps/timo-web/generated/models/baseResponseStatisticsCalendarResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseStatisticsDailyResponse.ts b/apps/timo-web/generated/models/baseResponseStatisticsDailyResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseStatisticsDailyResponse.ts rename to apps/timo-web/generated/models/baseResponseStatisticsDailyResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseStatisticsSummaryResponse.ts b/apps/timo-web/generated/models/baseResponseStatisticsSummaryResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseStatisticsSummaryResponse.ts rename to apps/timo-web/generated/models/baseResponseStatisticsSummaryResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseSubtaskStatusChangeResponse.ts b/apps/timo-web/generated/models/baseResponseSubtaskStatusChangeResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseSubtaskStatusChangeResponse.ts rename to apps/timo-web/generated/models/baseResponseSubtaskStatusChangeResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTagCreateResponse.ts b/apps/timo-web/generated/models/baseResponseTagCreateResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTagCreateResponse.ts rename to apps/timo-web/generated/models/baseResponseTagCreateResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTagListResponse.ts b/apps/timo-web/generated/models/baseResponseTagListResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTagListResponse.ts rename to apps/timo-web/generated/models/baseResponseTagListResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTermsDetailResponse.ts b/apps/timo-web/generated/models/baseResponseTermsDetailResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTermsDetailResponse.ts rename to apps/timo-web/generated/models/baseResponseTermsDetailResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTimerActiveResponse.ts b/apps/timo-web/generated/models/baseResponseTimerActiveResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTimerActiveResponse.ts rename to apps/timo-web/generated/models/baseResponseTimerActiveResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTimerExtendResponse.ts b/apps/timo-web/generated/models/baseResponseTimerExtendResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTimerExtendResponse.ts rename to apps/timo-web/generated/models/baseResponseTimerExtendResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTimerFinishResponse.ts b/apps/timo-web/generated/models/baseResponseTimerFinishResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTimerFinishResponse.ts rename to apps/timo-web/generated/models/baseResponseTimerFinishResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTimerStartResponse.ts b/apps/timo-web/generated/models/baseResponseTimerStartResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTimerStartResponse.ts rename to apps/timo-web/generated/models/baseResponseTimerStartResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTimerStatusResponse.ts b/apps/timo-web/generated/models/baseResponseTimerStatusResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTimerStatusResponse.ts rename to apps/timo-web/generated/models/baseResponseTimerStatusResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTodayResponse.ts b/apps/timo-web/generated/models/baseResponseTodayResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTodayResponse.ts rename to apps/timo-web/generated/models/baseResponseTodayResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTodoCreateResponse.ts b/apps/timo-web/generated/models/baseResponseTodoCreateResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTodoCreateResponse.ts rename to apps/timo-web/generated/models/baseResponseTodoCreateResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTodoDetailResponse.ts b/apps/timo-web/generated/models/baseResponseTodoDetailResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTodoDetailResponse.ts rename to apps/timo-web/generated/models/baseResponseTodoDetailResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTodoReorderResponse.ts b/apps/timo-web/generated/models/baseResponseTodoReorderResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTodoReorderResponse.ts rename to apps/timo-web/generated/models/baseResponseTodoReorderResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseTodoStatusChangeResponse.ts b/apps/timo-web/generated/models/baseResponseTodoStatusChangeResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseTodoStatusChangeResponse.ts rename to apps/timo-web/generated/models/baseResponseTodoStatusChangeResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseUpdateLanguageResponse.ts b/apps/timo-web/generated/models/baseResponseUpdateLanguageResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseUpdateLanguageResponse.ts rename to apps/timo-web/generated/models/baseResponseUpdateLanguageResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseUpdateTimezoneResponse.ts b/apps/timo-web/generated/models/baseResponseUpdateTimezoneResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseUpdateTimezoneResponse.ts rename to apps/timo-web/generated/models/baseResponseUpdateTimezoneResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseUserProfileResponse.ts b/apps/timo-web/generated/models/baseResponseUserProfileResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseUserProfileResponse.ts rename to apps/timo-web/generated/models/baseResponseUserProfileResponse.ts diff --git a/apps/timo-web/api/generated/models/baseResponseVoid.ts b/apps/timo-web/generated/models/baseResponseVoid.ts similarity index 100% rename from apps/timo-web/api/generated/models/baseResponseVoid.ts rename to apps/timo-web/generated/models/baseResponseVoid.ts diff --git a/apps/timo-web/api/generated/models/calendarAuthorizeResponse.ts b/apps/timo-web/generated/models/calendarAuthorizeResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/calendarAuthorizeResponse.ts rename to apps/timo-web/generated/models/calendarAuthorizeResponse.ts diff --git a/apps/timo-web/api/generated/models/calendarConnectRequest.ts b/apps/timo-web/generated/models/calendarConnectRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/calendarConnectRequest.ts rename to apps/timo-web/generated/models/calendarConnectRequest.ts diff --git a/apps/timo-web/api/generated/models/calendarConnectResponse.ts b/apps/timo-web/generated/models/calendarConnectResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/calendarConnectResponse.ts rename to apps/timo-web/generated/models/calendarConnectResponse.ts diff --git a/apps/timo-web/api/generated/models/calendarDayResponse.ts b/apps/timo-web/generated/models/calendarDayResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/calendarDayResponse.ts rename to apps/timo-web/generated/models/calendarDayResponse.ts diff --git a/apps/timo-web/api/generated/models/calendarDisconnectResponse.ts b/apps/timo-web/generated/models/calendarDisconnectResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/calendarDisconnectResponse.ts rename to apps/timo-web/generated/models/calendarDisconnectResponse.ts diff --git a/apps/timo-web/api/generated/models/calendarEventResponse.ts b/apps/timo-web/generated/models/calendarEventResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/calendarEventResponse.ts rename to apps/timo-web/generated/models/calendarEventResponse.ts diff --git a/apps/timo-web/api/generated/models/calendarEventsResponse.ts b/apps/timo-web/generated/models/calendarEventsResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/calendarEventsResponse.ts rename to apps/timo-web/generated/models/calendarEventsResponse.ts diff --git a/apps/timo-web/api/generated/models/changeSubtaskStatusParams.ts b/apps/timo-web/generated/models/changeSubtaskStatusParams.ts similarity index 100% rename from apps/timo-web/api/generated/models/changeSubtaskStatusParams.ts rename to apps/timo-web/generated/models/changeSubtaskStatusParams.ts diff --git a/apps/timo-web/api/generated/models/dailyTodoResponse.ts b/apps/timo-web/generated/models/dailyTodoResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/dailyTodoResponse.ts rename to apps/timo-web/generated/models/dailyTodoResponse.ts diff --git a/apps/timo-web/api/generated/models/dayCompletionResponse.ts b/apps/timo-web/generated/models/dayCompletionResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/dayCompletionResponse.ts rename to apps/timo-web/generated/models/dayCompletionResponse.ts diff --git a/apps/timo-web/api/generated/models/dayResponse.ts b/apps/timo-web/generated/models/dayResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/dayResponse.ts rename to apps/timo-web/generated/models/dayResponse.ts diff --git a/apps/timo-web/api/generated/models/dayResponseDayOfWeek.ts b/apps/timo-web/generated/models/dayResponseDayOfWeek.ts similarity index 100% rename from apps/timo-web/api/generated/models/dayResponseDayOfWeek.ts rename to apps/timo-web/generated/models/dayResponseDayOfWeek.ts diff --git a/apps/timo-web/api/generated/models/errorDto.ts b/apps/timo-web/generated/models/errorDto.ts similarity index 100% rename from apps/timo-web/api/generated/models/errorDto.ts rename to apps/timo-web/generated/models/errorDto.ts diff --git a/apps/timo-web/api/generated/models/focusTodoDetailResponse.ts b/apps/timo-web/generated/models/focusTodoDetailResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/focusTodoDetailResponse.ts rename to apps/timo-web/generated/models/focusTodoDetailResponse.ts diff --git a/apps/timo-web/api/generated/models/focusTodoResponse.ts b/apps/timo-web/generated/models/focusTodoResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/focusTodoResponse.ts rename to apps/timo-web/generated/models/focusTodoResponse.ts diff --git a/apps/timo-web/api/generated/models/focusTodoResponseDayOfWeek.ts b/apps/timo-web/generated/models/focusTodoResponseDayOfWeek.ts similarity index 100% rename from apps/timo-web/api/generated/models/focusTodoResponseDayOfWeek.ts rename to apps/timo-web/generated/models/focusTodoResponseDayOfWeek.ts diff --git a/apps/timo-web/api/generated/models/getCalendarEventsParams.ts b/apps/timo-web/generated/models/getCalendarEventsParams.ts similarity index 100% rename from apps/timo-web/api/generated/models/getCalendarEventsParams.ts rename to apps/timo-web/generated/models/getCalendarEventsParams.ts diff --git a/apps/timo-web/api/generated/models/getCalendarParams.ts b/apps/timo-web/generated/models/getCalendarParams.ts similarity index 100% rename from apps/timo-web/api/generated/models/getCalendarParams.ts rename to apps/timo-web/generated/models/getCalendarParams.ts diff --git a/apps/timo-web/api/generated/models/getDailyParams.ts b/apps/timo-web/generated/models/getDailyParams.ts similarity index 100% rename from apps/timo-web/api/generated/models/getDailyParams.ts rename to apps/timo-web/generated/models/getDailyParams.ts diff --git a/apps/timo-web/api/generated/models/getHomeParams.ts b/apps/timo-web/generated/models/getHomeParams.ts similarity index 100% rename from apps/timo-web/api/generated/models/getHomeParams.ts rename to apps/timo-web/generated/models/getHomeParams.ts diff --git a/apps/timo-web/api/generated/models/getSummaryParams.ts b/apps/timo-web/generated/models/getSummaryParams.ts similarity index 100% rename from apps/timo-web/api/generated/models/getSummaryParams.ts rename to apps/timo-web/generated/models/getSummaryParams.ts diff --git a/apps/timo-web/api/generated/models/getTermsByConditionParams.ts b/apps/timo-web/generated/models/getTermsByConditionParams.ts similarity index 100% rename from apps/timo-web/api/generated/models/getTermsByConditionParams.ts rename to apps/timo-web/generated/models/getTermsByConditionParams.ts diff --git a/apps/timo-web/api/generated/models/getTimeBoxesParams.ts b/apps/timo-web/generated/models/getTimeBoxesParams.ts similarity index 100% rename from apps/timo-web/api/generated/models/getTimeBoxesParams.ts rename to apps/timo-web/generated/models/getTimeBoxesParams.ts diff --git a/apps/timo-web/api/generated/models/getTodoDetailParams.ts b/apps/timo-web/generated/models/getTodoDetailParams.ts similarity index 100% rename from apps/timo-web/api/generated/models/getTodoDetailParams.ts rename to apps/timo-web/generated/models/getTodoDetailParams.ts diff --git a/apps/timo-web/api/generated/models/homeResponse.ts b/apps/timo-web/generated/models/homeResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/homeResponse.ts rename to apps/timo-web/generated/models/homeResponse.ts diff --git a/apps/timo-web/api/generated/models/homeResponseFilter.ts b/apps/timo-web/generated/models/homeResponseFilter.ts similarity index 100% rename from apps/timo-web/api/generated/models/homeResponseFilter.ts rename to apps/timo-web/generated/models/homeResponseFilter.ts diff --git a/apps/timo-web/api/generated/models/index.ts b/apps/timo-web/generated/models/index.ts similarity index 100% rename from apps/timo-web/api/generated/models/index.ts rename to apps/timo-web/generated/models/index.ts diff --git a/apps/timo-web/api/generated/models/onboardingRequest.ts b/apps/timo-web/generated/models/onboardingRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/onboardingRequest.ts rename to apps/timo-web/generated/models/onboardingRequest.ts diff --git a/apps/timo-web/api/generated/models/onboardingRequestLanguage.ts b/apps/timo-web/generated/models/onboardingRequestLanguage.ts similarity index 100% rename from apps/timo-web/api/generated/models/onboardingRequestLanguage.ts rename to apps/timo-web/generated/models/onboardingRequestLanguage.ts diff --git a/apps/timo-web/api/generated/models/recommendDurationRequest.ts b/apps/timo-web/generated/models/recommendDurationRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/recommendDurationRequest.ts rename to apps/timo-web/generated/models/recommendDurationRequest.ts diff --git a/apps/timo-web/api/generated/models/recommendDurationResponse.ts b/apps/timo-web/generated/models/recommendDurationResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/recommendDurationResponse.ts rename to apps/timo-web/generated/models/recommendDurationResponse.ts diff --git a/apps/timo-web/api/generated/models/repeatResponse.ts b/apps/timo-web/generated/models/repeatResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/repeatResponse.ts rename to apps/timo-web/generated/models/repeatResponse.ts diff --git a/apps/timo-web/api/generated/models/repeatResponseWeekdaysItem.ts b/apps/timo-web/generated/models/repeatResponseWeekdaysItem.ts similarity index 100% rename from apps/timo-web/api/generated/models/repeatResponseWeekdaysItem.ts rename to apps/timo-web/generated/models/repeatResponseWeekdaysItem.ts diff --git a/apps/timo-web/api/generated/models/startTimerParams.ts b/apps/timo-web/generated/models/startTimerParams.ts similarity index 100% rename from apps/timo-web/api/generated/models/startTimerParams.ts rename to apps/timo-web/generated/models/startTimerParams.ts diff --git a/apps/timo-web/api/generated/models/statisticsCalendarResponse.ts b/apps/timo-web/generated/models/statisticsCalendarResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/statisticsCalendarResponse.ts rename to apps/timo-web/generated/models/statisticsCalendarResponse.ts diff --git a/apps/timo-web/api/generated/models/statisticsDailyResponse.ts b/apps/timo-web/generated/models/statisticsDailyResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/statisticsDailyResponse.ts rename to apps/timo-web/generated/models/statisticsDailyResponse.ts diff --git a/apps/timo-web/api/generated/models/statisticsSummaryResponse.ts b/apps/timo-web/generated/models/statisticsSummaryResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/statisticsSummaryResponse.ts rename to apps/timo-web/generated/models/statisticsSummaryResponse.ts diff --git a/apps/timo-web/api/generated/models/subtaskResponse.ts b/apps/timo-web/generated/models/subtaskResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/subtaskResponse.ts rename to apps/timo-web/generated/models/subtaskResponse.ts diff --git a/apps/timo-web/api/generated/models/subtaskStatusChangeResponse.ts b/apps/timo-web/generated/models/subtaskStatusChangeResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/subtaskStatusChangeResponse.ts rename to apps/timo-web/generated/models/subtaskStatusChangeResponse.ts diff --git a/apps/timo-web/api/generated/models/subtaskStatusUpdateRequest.ts b/apps/timo-web/generated/models/subtaskStatusUpdateRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/subtaskStatusUpdateRequest.ts rename to apps/timo-web/generated/models/subtaskStatusUpdateRequest.ts diff --git a/apps/timo-web/api/generated/models/tagCreateRequest.ts b/apps/timo-web/generated/models/tagCreateRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/tagCreateRequest.ts rename to apps/timo-web/generated/models/tagCreateRequest.ts diff --git a/apps/timo-web/api/generated/models/tagCreateResponse.ts b/apps/timo-web/generated/models/tagCreateResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/tagCreateResponse.ts rename to apps/timo-web/generated/models/tagCreateResponse.ts diff --git a/apps/timo-web/api/generated/models/tagListResponse.ts b/apps/timo-web/generated/models/tagListResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/tagListResponse.ts rename to apps/timo-web/generated/models/tagListResponse.ts diff --git a/apps/timo-web/api/generated/models/tagResponse.ts b/apps/timo-web/generated/models/tagResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/tagResponse.ts rename to apps/timo-web/generated/models/tagResponse.ts diff --git a/apps/timo-web/api/generated/models/termsDetailResponse.ts b/apps/timo-web/generated/models/termsDetailResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/termsDetailResponse.ts rename to apps/timo-web/generated/models/termsDetailResponse.ts diff --git a/apps/timo-web/api/generated/models/timeBoxResponse.ts b/apps/timo-web/generated/models/timeBoxResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/timeBoxResponse.ts rename to apps/timo-web/generated/models/timeBoxResponse.ts diff --git a/apps/timo-web/api/generated/models/timeBoxResponseEndAction.ts b/apps/timo-web/generated/models/timeBoxResponseEndAction.ts similarity index 100% rename from apps/timo-web/api/generated/models/timeBoxResponseEndAction.ts rename to apps/timo-web/generated/models/timeBoxResponseEndAction.ts diff --git a/apps/timo-web/api/generated/models/timeBoxResponseStartAction.ts b/apps/timo-web/generated/models/timeBoxResponseStartAction.ts similarity index 100% rename from apps/timo-web/api/generated/models/timeBoxResponseStartAction.ts rename to apps/timo-web/generated/models/timeBoxResponseStartAction.ts diff --git a/apps/timo-web/api/generated/models/timerActionRequest.ts b/apps/timo-web/generated/models/timerActionRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/timerActionRequest.ts rename to apps/timo-web/generated/models/timerActionRequest.ts diff --git a/apps/timo-web/api/generated/models/timerActionRequestAction.ts b/apps/timo-web/generated/models/timerActionRequestAction.ts similarity index 100% rename from apps/timo-web/api/generated/models/timerActionRequestAction.ts rename to apps/timo-web/generated/models/timerActionRequestAction.ts diff --git a/apps/timo-web/api/generated/models/timerActiveResponse.ts b/apps/timo-web/generated/models/timerActiveResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/timerActiveResponse.ts rename to apps/timo-web/generated/models/timerActiveResponse.ts diff --git a/apps/timo-web/api/generated/models/timerExtendRequest.ts b/apps/timo-web/generated/models/timerExtendRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/timerExtendRequest.ts rename to apps/timo-web/generated/models/timerExtendRequest.ts diff --git a/apps/timo-web/api/generated/models/timerExtendResponse.ts b/apps/timo-web/generated/models/timerExtendResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/timerExtendResponse.ts rename to apps/timo-web/generated/models/timerExtendResponse.ts diff --git a/apps/timo-web/api/generated/models/timerFinishResponse.ts b/apps/timo-web/generated/models/timerFinishResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/timerFinishResponse.ts rename to apps/timo-web/generated/models/timerFinishResponse.ts diff --git a/apps/timo-web/api/generated/models/timerStartResponse.ts b/apps/timo-web/generated/models/timerStartResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/timerStartResponse.ts rename to apps/timo-web/generated/models/timerStartResponse.ts diff --git a/apps/timo-web/api/generated/models/timerStatusResponse.ts b/apps/timo-web/generated/models/timerStatusResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/timerStatusResponse.ts rename to apps/timo-web/generated/models/timerStatusResponse.ts diff --git a/apps/timo-web/api/generated/models/todayResponse.ts b/apps/timo-web/generated/models/todayResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/todayResponse.ts rename to apps/timo-web/generated/models/todayResponse.ts diff --git a/apps/timo-web/api/generated/models/todayResponseDayOfWeek.ts b/apps/timo-web/generated/models/todayResponseDayOfWeek.ts similarity index 100% rename from apps/timo-web/api/generated/models/todayResponseDayOfWeek.ts rename to apps/timo-web/generated/models/todayResponseDayOfWeek.ts diff --git a/apps/timo-web/api/generated/models/todayTodoResponse.ts b/apps/timo-web/generated/models/todayTodoResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/todayTodoResponse.ts rename to apps/timo-web/generated/models/todayTodoResponse.ts diff --git a/apps/timo-web/api/generated/models/todayTodoResponseTimerStatus.ts b/apps/timo-web/generated/models/todayTodoResponseTimerStatus.ts similarity index 100% rename from apps/timo-web/api/generated/models/todayTodoResponseTimerStatus.ts rename to apps/timo-web/generated/models/todayTodoResponseTimerStatus.ts diff --git a/apps/timo-web/api/generated/models/todoCreateRequest.ts b/apps/timo-web/generated/models/todoCreateRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoCreateRequest.ts rename to apps/timo-web/generated/models/todoCreateRequest.ts diff --git a/apps/timo-web/api/generated/models/todoCreateRequestIcon.ts b/apps/timo-web/generated/models/todoCreateRequestIcon.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoCreateRequestIcon.ts rename to apps/timo-web/generated/models/todoCreateRequestIcon.ts diff --git a/apps/timo-web/api/generated/models/todoCreateRequestPriority.ts b/apps/timo-web/generated/models/todoCreateRequestPriority.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoCreateRequestPriority.ts rename to apps/timo-web/generated/models/todoCreateRequestPriority.ts diff --git a/apps/timo-web/api/generated/models/todoCreateRequestRepeatType.ts b/apps/timo-web/generated/models/todoCreateRequestRepeatType.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoCreateRequestRepeatType.ts rename to apps/timo-web/generated/models/todoCreateRequestRepeatType.ts diff --git a/apps/timo-web/api/generated/models/todoCreateRequestRepeatWeekdaysItem.ts b/apps/timo-web/generated/models/todoCreateRequestRepeatWeekdaysItem.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoCreateRequestRepeatWeekdaysItem.ts rename to apps/timo-web/generated/models/todoCreateRequestRepeatWeekdaysItem.ts diff --git a/apps/timo-web/api/generated/models/todoCreateResponse.ts b/apps/timo-web/generated/models/todoCreateResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoCreateResponse.ts rename to apps/timo-web/generated/models/todoCreateResponse.ts diff --git a/apps/timo-web/api/generated/models/todoDetailResponse.ts b/apps/timo-web/generated/models/todoDetailResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoDetailResponse.ts rename to apps/timo-web/generated/models/todoDetailResponse.ts diff --git a/apps/timo-web/api/generated/models/todoDetailResponseTimerStatus.ts b/apps/timo-web/generated/models/todoDetailResponseTimerStatus.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoDetailResponseTimerStatus.ts rename to apps/timo-web/generated/models/todoDetailResponseTimerStatus.ts diff --git a/apps/timo-web/api/generated/models/todoReorderRequest.ts b/apps/timo-web/generated/models/todoReorderRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoReorderRequest.ts rename to apps/timo-web/generated/models/todoReorderRequest.ts diff --git a/apps/timo-web/api/generated/models/todoReorderResponse.ts b/apps/timo-web/generated/models/todoReorderResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoReorderResponse.ts rename to apps/timo-web/generated/models/todoReorderResponse.ts diff --git a/apps/timo-web/api/generated/models/todoResponse.ts b/apps/timo-web/generated/models/todoResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoResponse.ts rename to apps/timo-web/generated/models/todoResponse.ts diff --git a/apps/timo-web/api/generated/models/todoResponseTimerStatus.ts b/apps/timo-web/generated/models/todoResponseTimerStatus.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoResponseTimerStatus.ts rename to apps/timo-web/generated/models/todoResponseTimerStatus.ts diff --git a/apps/timo-web/api/generated/models/todoStatusChangeResponse.ts b/apps/timo-web/generated/models/todoStatusChangeResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoStatusChangeResponse.ts rename to apps/timo-web/generated/models/todoStatusChangeResponse.ts diff --git a/apps/timo-web/api/generated/models/todoStatusUpdateRequest.ts b/apps/timo-web/generated/models/todoStatusUpdateRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoStatusUpdateRequest.ts rename to apps/timo-web/generated/models/todoStatusUpdateRequest.ts diff --git a/apps/timo-web/api/generated/models/todoSubtaskUpdateRequest.ts b/apps/timo-web/generated/models/todoSubtaskUpdateRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoSubtaskUpdateRequest.ts rename to apps/timo-web/generated/models/todoSubtaskUpdateRequest.ts diff --git a/apps/timo-web/api/generated/models/todoUpdateRequest.ts b/apps/timo-web/generated/models/todoUpdateRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoUpdateRequest.ts rename to apps/timo-web/generated/models/todoUpdateRequest.ts diff --git a/apps/timo-web/api/generated/models/todoUpdateRequestIcon.ts b/apps/timo-web/generated/models/todoUpdateRequestIcon.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoUpdateRequestIcon.ts rename to apps/timo-web/generated/models/todoUpdateRequestIcon.ts diff --git a/apps/timo-web/api/generated/models/todoUpdateRequestPriority.ts b/apps/timo-web/generated/models/todoUpdateRequestPriority.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoUpdateRequestPriority.ts rename to apps/timo-web/generated/models/todoUpdateRequestPriority.ts diff --git a/apps/timo-web/api/generated/models/todoUpdateRequestRepeatType.ts b/apps/timo-web/generated/models/todoUpdateRequestRepeatType.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoUpdateRequestRepeatType.ts rename to apps/timo-web/generated/models/todoUpdateRequestRepeatType.ts diff --git a/apps/timo-web/api/generated/models/todoUpdateRequestRepeatWeekdaysItem.ts b/apps/timo-web/generated/models/todoUpdateRequestRepeatWeekdaysItem.ts similarity index 100% rename from apps/timo-web/api/generated/models/todoUpdateRequestRepeatWeekdaysItem.ts rename to apps/timo-web/generated/models/todoUpdateRequestRepeatWeekdaysItem.ts diff --git a/apps/timo-web/api/generated/models/updateLanguageRequest.ts b/apps/timo-web/generated/models/updateLanguageRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/updateLanguageRequest.ts rename to apps/timo-web/generated/models/updateLanguageRequest.ts diff --git a/apps/timo-web/api/generated/models/updateLanguageRequestLanguage.ts b/apps/timo-web/generated/models/updateLanguageRequestLanguage.ts similarity index 100% rename from apps/timo-web/api/generated/models/updateLanguageRequestLanguage.ts rename to apps/timo-web/generated/models/updateLanguageRequestLanguage.ts diff --git a/apps/timo-web/api/generated/models/updateLanguageResponse.ts b/apps/timo-web/generated/models/updateLanguageResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/updateLanguageResponse.ts rename to apps/timo-web/generated/models/updateLanguageResponse.ts diff --git a/apps/timo-web/api/generated/models/updateLanguageResponseLanguage.ts b/apps/timo-web/generated/models/updateLanguageResponseLanguage.ts similarity index 100% rename from apps/timo-web/api/generated/models/updateLanguageResponseLanguage.ts rename to apps/timo-web/generated/models/updateLanguageResponseLanguage.ts diff --git a/apps/timo-web/api/generated/models/updateTimezoneRequest.ts b/apps/timo-web/generated/models/updateTimezoneRequest.ts similarity index 100% rename from apps/timo-web/api/generated/models/updateTimezoneRequest.ts rename to apps/timo-web/generated/models/updateTimezoneRequest.ts diff --git a/apps/timo-web/api/generated/models/updateTimezoneResponse.ts b/apps/timo-web/generated/models/updateTimezoneResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/updateTimezoneResponse.ts rename to apps/timo-web/generated/models/updateTimezoneResponse.ts diff --git a/apps/timo-web/api/generated/models/userInfo.ts b/apps/timo-web/generated/models/userInfo.ts similarity index 100% rename from apps/timo-web/api/generated/models/userInfo.ts rename to apps/timo-web/generated/models/userInfo.ts diff --git a/apps/timo-web/api/generated/models/userProfileResponse.ts b/apps/timo-web/generated/models/userProfileResponse.ts similarity index 100% rename from apps/timo-web/api/generated/models/userProfileResponse.ts rename to apps/timo-web/generated/models/userProfileResponse.ts diff --git a/apps/timo-web/hooks/statistics/use-statistics-query-invalidation.ts b/apps/timo-web/hooks/statistics/use-statistics-query-invalidation.ts index b5acb0c2..726cbcdf 100644 --- a/apps/timo-web/hooks/statistics/use-statistics-query-invalidation.ts +++ b/apps/timo-web/hooks/statistics/use-statistics-query-invalidation.ts @@ -6,7 +6,7 @@ import { getGetCalendarQueryKey, getGetDailyQueryKey, getGetSummaryQueryKey, -} from "@/api/generated/endpoints/statistics/statistics"; +} from "@/generated/endpoints/statistics/statistics"; export const useStatisticsQueryInvalidation = () => { const queryClient = useQueryClient(); diff --git a/apps/timo-web/hooks/timer/use-active-timer.ts b/apps/timo-web/hooks/timer/use-active-timer.ts index 5713a836..5ab323d1 100644 --- a/apps/timo-web/hooks/timer/use-active-timer.ts +++ b/apps/timo-web/hooks/timer/use-active-timer.ts @@ -6,7 +6,7 @@ import { useEffect, useMemo, useState } from "react"; import { getActiveTimer, getGetActiveTimerQueryKey, -} from "@/api/generated/endpoints/timer/timer"; +} from "@/generated/endpoints/timer/timer"; import { activeTimerSchema } from "@/schemas/timer/timer-schema"; export const useActiveTimer = () => { diff --git a/apps/timo-web/hooks/timer/use-timer-actions.ts b/apps/timo-web/hooks/timer/use-timer-actions.ts index 6860499d..96056364 100644 --- a/apps/timo-web/hooks/timer/use-timer-actions.ts +++ b/apps/timo-web/hooks/timer/use-timer-actions.ts @@ -5,8 +5,8 @@ import type { useCompleteTimer, useExtendTimer, useStopTimer, -} from "@/api/generated/endpoints/timer/timer"; -import type { useChangeTodoStatus } from "@/api/generated/endpoints/todo/todo"; +} from "@/generated/endpoints/timer/timer"; +import type { useChangeTodoStatus } from "@/generated/endpoints/todo/todo"; import type { ActiveTimer } from "@/schemas/timer/timer-schema"; type ChangeStatusMutate = ReturnType["mutate"]; diff --git a/apps/timo-web/hooks/timer/use-timer-query-invalidation.ts b/apps/timo-web/hooks/timer/use-timer-query-invalidation.ts index e7c0cd05..d2a693f6 100644 --- a/apps/timo-web/hooks/timer/use-timer-query-invalidation.ts +++ b/apps/timo-web/hooks/timer/use-timer-query-invalidation.ts @@ -2,14 +2,14 @@ import { useQueryClient } from "@tanstack/react-query"; -import { getGetFocusTodoQueryKey } from "@/api/generated/endpoints/focus/focus"; +import { getGetFocusTodoQueryKey } from "@/generated/endpoints/focus/focus"; import { getGetHomeQueryKey, getGetTodayQueryKey, -} from "@/api/generated/endpoints/home/home"; -import { getGetTimeBoxesQueryKey } from "@/api/generated/endpoints/time-box/time-box"; -import { getGetActiveTimerQueryKey } from "@/api/generated/endpoints/timer/timer"; -import { getGetTodoDetailQueryKey } from "@/api/generated/endpoints/todo/todo"; +} from "@/generated/endpoints/home/home"; +import { getGetTimeBoxesQueryKey } from "@/generated/endpoints/time-box/time-box"; +import { getGetActiveTimerQueryKey } from "@/generated/endpoints/timer/timer"; +import { getGetTodoDetailQueryKey } from "@/generated/endpoints/todo/todo"; import { useStatisticsQueryInvalidation } from "@/hooks/statistics/use-statistics-query-invalidation"; export const useTimerQueryInvalidation = () => { diff --git a/apps/timo-web/hooks/todo-modal/create/use-create-todo-submit.ts b/apps/timo-web/hooks/todo-modal/create/use-create-todo-submit.ts index 2db717c6..78f701be 100644 --- a/apps/timo-web/hooks/todo-modal/create/use-create-todo-submit.ts +++ b/apps/timo-web/hooks/todo-modal/create/use-create-todo-submit.ts @@ -3,11 +3,11 @@ import { useQueryClient } from "@tanstack/react-query"; import { useState } from "react"; -import type { TodoCreateRequest } from "@/api/generated/models"; +import type { TodoCreateRequest } from "@/generated/models"; import type { CreateTodoRequest } from "@/schemas/todo/todo-schema"; -import { getGetHomeQueryKey } from "@/api/generated/endpoints/home/home"; -import { useCreateTodo } from "@/api/generated/endpoints/todo/todo"; +import { getGetHomeQueryKey } from "@/generated/endpoints/home/home"; +import { useCreateTodo } from "@/generated/endpoints/todo/todo"; import { useStatisticsQueryInvalidation } from "@/hooks/statistics/use-statistics-query-invalidation"; import { todoCreateResponseSchema } from "@/schemas/todo/todo-schema"; diff --git a/apps/timo-web/hooks/todo-modal/create/use-time-field.ts b/apps/timo-web/hooks/todo-modal/create/use-time-field.ts index 5994bbbe..4572634a 100644 --- a/apps/timo-web/hooks/todo-modal/create/use-time-field.ts +++ b/apps/timo-web/hooks/todo-modal/create/use-time-field.ts @@ -5,8 +5,8 @@ import type { CreateTodoRequest } from "@/schemas/todo/todo-schema"; import type { TimeSelection } from "@repo/timo-design-system/ui"; import type { Control } from "react-hook-form"; -import { useRecommendDuration } from "@/api/generated/endpoints/ai/ai"; import { SECONDS_PER_HOUR, SECONDS_PER_MINUTE } from "@/constants/time"; +import { useRecommendDuration } from "@/generated/endpoints/ai/ai"; import { recommendDurationResponseSchema } from "@/schemas/todo/todo-schema"; import { convertApiDurationToSeconds, diff --git a/apps/timo-web/hooks/todo-modal/detail/use-delete-todo-submit.ts b/apps/timo-web/hooks/todo-modal/detail/use-delete-todo-submit.ts index 2d6de50b..e1935312 100644 --- a/apps/timo-web/hooks/todo-modal/detail/use-delete-todo-submit.ts +++ b/apps/timo-web/hooks/todo-modal/detail/use-delete-todo-submit.ts @@ -2,15 +2,15 @@ import { useQueryClient } from "@tanstack/react-query"; -import type { ErrorType } from "@/api/client/custom-instance"; -import type { ErrorDto } from "@/api/generated/models"; +import type { ErrorDto } from "@/generated/models"; +import type { ErrorType } from "@/http/custom-instance"; -import { getGetFocusTodoQueryKey } from "@/api/generated/endpoints/focus/focus"; +import { getGetFocusTodoQueryKey } from "@/generated/endpoints/focus/focus"; import { getGetHomeQueryKey, getGetTodayQueryKey, -} from "@/api/generated/endpoints/home/home"; -import { useDeleteTodo } from "@/api/generated/endpoints/todo/todo"; +} from "@/generated/endpoints/home/home"; +import { useDeleteTodo } from "@/generated/endpoints/todo/todo"; import { useStatisticsQueryInvalidation } from "@/hooks/statistics/use-statistics-query-invalidation"; export interface DeleteTodoSubmitHandlers { diff --git a/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-form.ts b/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-form.ts index a02b5d3c..d11fcf3e 100644 --- a/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-form.ts +++ b/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-form.ts @@ -1,10 +1,7 @@ import { TODO_ICON_VALUES } from "@repo/timo-design-system/ui"; import { useController, useForm } from "react-hook-form"; -import type { - TodoDetailResponse, - TodoUpdateRequest, -} from "@/api/generated/models"; +import type { TodoDetailResponse, TodoUpdateRequest } from "@/generated/models"; import type { UpdateTodoSubmitHandlers } from "@/hooks/todo-modal/detail/use-update-todo-submit"; import type { PriorityLevel, diff --git a/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-icon-submit.ts b/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-icon-submit.ts index 590ad94d..9d0fb2db 100644 --- a/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-icon-submit.ts +++ b/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-icon-submit.ts @@ -1,6 +1,6 @@ import { useState } from "react"; -import type { TodoUpdateRequest } from "@/api/generated/models"; +import type { TodoUpdateRequest } from "@/generated/models"; import type { UpdateTodoSubmitHandlers } from "@/hooks/todo-modal/detail/use-update-todo-submit"; import type { TodoIconValue } from "@repo/timo-design-system/ui"; diff --git a/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-patch-handlers.ts b/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-patch-handlers.ts index 86227810..74c520d7 100644 --- a/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-patch-handlers.ts +++ b/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-patch-handlers.ts @@ -1,6 +1,6 @@ import { useState } from "react"; -import type { TodoUpdateRequest } from "@/api/generated/models"; +import type { TodoUpdateRequest } from "@/generated/models"; import type { UseDetailTodoFormReturn } from "@/hooks/todo-modal/detail/use-detail-todo-form"; import type { UpdateTodoSubmitHandlers } from "@/hooks/todo-modal/detail/use-update-todo-submit"; import type { diff --git a/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-text-auto-save.ts b/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-text-auto-save.ts index 818b47e7..3f0898a1 100644 --- a/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-text-auto-save.ts +++ b/apps/timo-web/hooks/todo-modal/detail/use-detail-todo-text-auto-save.ts @@ -1,7 +1,7 @@ import { useCallback, useEffect, useMemo, useRef } from "react"; -import type { TodoUpdateRequest } from "@/api/generated/models"; import type { DetailTodoSubtaskInput } from "@/components/todo-modal/detail/DetailTodoTaskFields"; +import type { TodoUpdateRequest } from "@/generated/models"; import type { UpdateTodoSubmitHandlers } from "@/hooks/todo-modal/detail/use-update-todo-submit"; import { buildDetailTodoTextUpdateRequest } from "@/utils/todo/detail-todo-update-request"; diff --git a/apps/timo-web/hooks/todo-modal/detail/use-toggle-subtask-submit.ts b/apps/timo-web/hooks/todo-modal/detail/use-toggle-subtask-submit.ts index df429fb4..bf204f3c 100644 --- a/apps/timo-web/hooks/todo-modal/detail/use-toggle-subtask-submit.ts +++ b/apps/timo-web/hooks/todo-modal/detail/use-toggle-subtask-submit.ts @@ -2,17 +2,17 @@ import { useQueryClient } from "@tanstack/react-query"; -import type { ErrorType } from "@/api/client/custom-instance"; -import type { ErrorDto } from "@/api/generated/models"; +import type { ErrorDto } from "@/generated/models"; +import type { ErrorType } from "@/http/custom-instance"; import { getGetHomeQueryKey, getGetTodayQueryKey, -} from "@/api/generated/endpoints/home/home"; +} from "@/generated/endpoints/home/home"; import { getGetTodoDetailQueryKey, useChangeSubtaskStatus, -} from "@/api/generated/endpoints/todo/todo"; +} from "@/generated/endpoints/todo/todo"; export interface ToggleSubtaskSubmitParams { todoId: number; diff --git a/apps/timo-web/hooks/todo-modal/detail/use-update-todo-submit.ts b/apps/timo-web/hooks/todo-modal/detail/use-update-todo-submit.ts index 9e1d2140..60fa6bf7 100644 --- a/apps/timo-web/hooks/todo-modal/detail/use-update-todo-submit.ts +++ b/apps/timo-web/hooks/todo-modal/detail/use-update-todo-submit.ts @@ -2,18 +2,18 @@ import { useQueryClient } from "@tanstack/react-query"; -import type { ErrorType } from "@/api/client/custom-instance"; -import type { ErrorDto, TodoUpdateRequest } from "@/api/generated/models"; +import type { ErrorDto, TodoUpdateRequest } from "@/generated/models"; +import type { ErrorType } from "@/http/custom-instance"; -import { getGetFocusTodoQueryKey } from "@/api/generated/endpoints/focus/focus"; +import { getGetFocusTodoQueryKey } from "@/generated/endpoints/focus/focus"; import { getGetHomeQueryKey, getGetTodayQueryKey, -} from "@/api/generated/endpoints/home/home"; +} from "@/generated/endpoints/home/home"; import { getGetTodoDetailQueryKey, useUpdateTodo, -} from "@/api/generated/endpoints/todo/todo"; +} from "@/generated/endpoints/todo/todo"; import { useStatisticsQueryInvalidation } from "@/hooks/statistics/use-statistics-query-invalidation"; export interface UpdateTodoSubmitParams { diff --git a/apps/timo-web/api/error/api-error.ts b/apps/timo-web/http/api-error.ts similarity index 92% rename from apps/timo-web/api/error/api-error.ts rename to apps/timo-web/http/api-error.ts index 7b87428d..0062ed70 100644 --- a/apps/timo-web/api/error/api-error.ts +++ b/apps/timo-web/http/api-error.ts @@ -1,6 +1,6 @@ import axios from "axios"; -import { ApiErrorResponse, apiErrorSchema } from "@/api/schema/response"; +import { ApiErrorResponse, apiErrorSchema } from "@/http/response-schema"; export class ApiError extends Error { readonly status: number; diff --git a/apps/timo-web/api/client/axios.ts b/apps/timo-web/http/axios.ts similarity index 94% rename from apps/timo-web/api/client/axios.ts rename to apps/timo-web/http/axios.ts index b0ba7f5e..0d8e971c 100644 --- a/apps/timo-web/api/client/axios.ts +++ b/apps/timo-web/http/axios.ts @@ -1,9 +1,9 @@ import axios, { AxiosError } from "axios"; -import type { BaseResponseAuthReissueResponse } from "@/api/generated/models"; +import type { BaseResponseAuthReissueResponse } from "@/generated/models"; -import { parseApiError } from "@/api/error/api-error"; import { ROUTES } from "@/constants/routes"; +import { parseApiError } from "@/http/api-error"; import { useAuthStore } from "@/stores/auth/useAuthStore"; const baseURL = process.env.NEXT_PUBLIC_API_BASE_URL; diff --git a/apps/timo-web/api/client/custom-instance.ts b/apps/timo-web/http/custom-instance.ts similarity index 88% rename from apps/timo-web/api/client/custom-instance.ts rename to apps/timo-web/http/custom-instance.ts index c7c8eb18..1c979e14 100644 --- a/apps/timo-web/api/client/custom-instance.ts +++ b/apps/timo-web/http/custom-instance.ts @@ -1,6 +1,6 @@ import type { AxiosError, AxiosRequestConfig } from "axios"; -import { instance } from "@/api/client/axios"; +import { instance } from "@/http/axios"; export const customInstance = ( config: AxiosRequestConfig, diff --git a/apps/timo-web/api/client/query-client.ts b/apps/timo-web/http/query-client.ts similarity index 100% rename from apps/timo-web/api/client/query-client.ts rename to apps/timo-web/http/query-client.ts diff --git a/apps/timo-web/api/schema/response.ts b/apps/timo-web/http/response-schema.ts similarity index 100% rename from apps/timo-web/api/schema/response.ts rename to apps/timo-web/http/response-schema.ts diff --git a/apps/timo-web/orval.config.ts b/apps/timo-web/orval.config.ts index 19709b4d..101e581b 100644 --- a/apps/timo-web/orval.config.ts +++ b/apps/timo-web/orval.config.ts @@ -23,11 +23,11 @@ export default defineConfig({ mode: "tags-split", client: "react-query", httpClient: "axios", - target: "./api/generated/endpoints", - schemas: "./api/generated/models", + target: "./generated/endpoints", + schemas: "./generated/models", override: { mutator: { - path: "./api/client/custom-instance.ts", + path: "./http/custom-instance.ts", name: "customInstance", }, }, @@ -48,7 +48,7 @@ export default defineConfig({ output: { mode: "tags-split", client: "zod", - target: "./api/generated/endpoints", + target: "./generated/endpoints", fileExtension: ".zod.ts", }, hooks: { diff --git a/apps/timo-web/providers/auth/AuthProvider.tsx b/apps/timo-web/providers/auth/AuthProvider.tsx index f76a9c62..f31ad8c3 100644 --- a/apps/timo-web/providers/auth/AuthProvider.tsx +++ b/apps/timo-web/providers/auth/AuthProvider.tsx @@ -2,7 +2,7 @@ import { useEffect, useRef } from "react"; -import { useReissue } from "@/api/generated/endpoints/auth/auth"; +import { useReissue } from "@/generated/endpoints/auth/auth"; import { useAuthStore } from "@/stores/auth/useAuthStore"; interface AuthProviderProps { diff --git a/apps/timo-web/providers/query/QueryProvider.tsx b/apps/timo-web/providers/query/QueryProvider.tsx index 8c8dc383..f44b29f5 100644 --- a/apps/timo-web/providers/query/QueryProvider.tsx +++ b/apps/timo-web/providers/query/QueryProvider.tsx @@ -3,7 +3,7 @@ import { QueryClientProvider } from "@tanstack/react-query"; import dynamic from "next/dynamic"; -import { queryClient } from "@/api/client/query-client"; +import { queryClient } from "@/http/query-client"; const ReactQueryDevtools = process.env.NODE_ENV === "development" diff --git a/apps/timo-web/queries/auth/use-my-profile-query.ts b/apps/timo-web/queries/auth/use-my-profile-query.ts index 71e67bb3..b5b04303 100644 --- a/apps/timo-web/queries/auth/use-my-profile-query.ts +++ b/apps/timo-web/queries/auth/use-my-profile-query.ts @@ -5,7 +5,7 @@ import { useSuspenseQuery } from "@tanstack/react-query"; import { getGetMyProfileQueryKey, getMyProfile, -} from "@/api/generated/endpoints/user/user"; +} from "@/generated/endpoints/user/user"; import { userProfileSchema } from "@/schemas/auth/user-profile-schema"; /** diff --git a/apps/timo-web/queries/calendar/use-calendar-events-query.ts b/apps/timo-web/queries/calendar/use-calendar-events-query.ts index a0efaed2..ba3d811c 100644 --- a/apps/timo-web/queries/calendar/use-calendar-events-query.ts +++ b/apps/timo-web/queries/calendar/use-calendar-events-query.ts @@ -5,7 +5,7 @@ import { useQuery } from "@tanstack/react-query"; import { getCalendarEvents, getGetCalendarEventsQueryKey, -} from "@/api/generated/endpoints/calendar/calendar"; +} from "@/generated/endpoints/calendar/calendar"; import { calendarEventsDataSchema, type CalendarFilter, diff --git a/apps/timo-web/queries/settings/use-terms-query.ts b/apps/timo-web/queries/settings/use-terms-query.ts index 0c1dae93..f82f53b0 100644 --- a/apps/timo-web/queries/settings/use-terms-query.ts +++ b/apps/timo-web/queries/settings/use-terms-query.ts @@ -6,7 +6,7 @@ import { useLocale } from "next-intl"; import { getGetTermsByConditionQueryKey, getTermsByCondition, -} from "@/api/generated/endpoints/terms/terms"; +} from "@/generated/endpoints/terms/terms"; import { termsDetailSchema, type TermsType, diff --git a/apps/timo-web/queries/tag/use-create-tag-mutation.ts b/apps/timo-web/queries/tag/use-create-tag-mutation.ts index 2fffb2a4..ed80c42f 100644 --- a/apps/timo-web/queries/tag/use-create-tag-mutation.ts +++ b/apps/timo-web/queries/tag/use-create-tag-mutation.ts @@ -2,13 +2,10 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import type { BodyType } from "@/api/client/custom-instance"; -import type { TagCreateRequest } from "@/api/generated/models"; +import type { TagCreateRequest } from "@/generated/models"; +import type { BodyType } from "@/http/custom-instance"; -import { - createTag, - getGetTagsQueryKey, -} from "@/api/generated/endpoints/tag/tag"; +import { createTag, getGetTagsQueryKey } from "@/generated/endpoints/tag/tag"; export const useCreateTagMutation = () => { const queryClient = useQueryClient(); diff --git a/apps/timo-web/queries/tag/use-delete-tag-mutation.ts b/apps/timo-web/queries/tag/use-delete-tag-mutation.ts index 092295e0..4c1d868f 100644 --- a/apps/timo-web/queries/tag/use-delete-tag-mutation.ts +++ b/apps/timo-web/queries/tag/use-delete-tag-mutation.ts @@ -2,10 +2,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { - deleteTag, - getGetTagsQueryKey, -} from "@/api/generated/endpoints/tag/tag"; +import { deleteTag, getGetTagsQueryKey } from "@/generated/endpoints/tag/tag"; export const useDeleteTagMutation = () => { const queryClient = useQueryClient(); diff --git a/apps/timo-web/queries/tag/use-tags-query.ts b/apps/timo-web/queries/tag/use-tags-query.ts index b43a2e2d..0eb57155 100644 --- a/apps/timo-web/queries/tag/use-tags-query.ts +++ b/apps/timo-web/queries/tag/use-tags-query.ts @@ -1,6 +1,6 @@ "use client"; -import { useGetTags } from "@/api/generated/endpoints/tag/tag"; +import { useGetTags } from "@/generated/endpoints/tag/tag"; import { tagListDataSchema } from "@/schemas/tag/tag-schema"; export const useTagsQuery = () => diff --git a/apps/timo-web/queries/time-box/use-time-boxes-query.ts b/apps/timo-web/queries/time-box/use-time-boxes-query.ts index d8e3b9b8..983b2fd4 100644 --- a/apps/timo-web/queries/time-box/use-time-boxes-query.ts +++ b/apps/timo-web/queries/time-box/use-time-boxes-query.ts @@ -5,7 +5,7 @@ import { useQuery } from "@tanstack/react-query"; import { getGetTimeBoxesQueryKey, getTimeBoxes, -} from "@/api/generated/endpoints/time-box/time-box"; +} from "@/generated/endpoints/time-box/time-box"; import { timeBoxListSchema } from "@/schemas/timebox/timebox-schema"; export const useTimeBoxesQuery = (date: string) => diff --git a/apps/timo-web/utils/todo/detail-todo-update-request.ts b/apps/timo-web/utils/todo/detail-todo-update-request.ts index d31fd790..b55752ea 100644 --- a/apps/timo-web/utils/todo/detail-todo-update-request.ts +++ b/apps/timo-web/utils/todo/detail-todo-update-request.ts @@ -1,9 +1,9 @@ +import type { DetailTodoSubtaskInput } from "@/components/todo-modal/detail/DetailTodoTaskFields"; import type { TodoSubtaskUpdateRequest, TodoUpdateRequest, TodoUpdateRequestRepeatWeekdaysItem, -} from "@/api/generated/models"; -import type { DetailTodoSubtaskInput } from "@/components/todo-modal/detail/DetailTodoTaskFields"; +} from "@/generated/models"; const DETAIL_TODO_UPDATE_WEEKDAYS = [ "MON", diff --git a/docs/architecture/structure.md b/docs/architecture/structure.md index 727f35cb..5f41d201 100644 --- a/docs/architecture/structure.md +++ b/docs/architecture/structure.md @@ -13,11 +13,12 @@ timo-client/ │ │ ├── _types/ # 해당 도메인 전용 타입 │ │ ├── _utils/ # 해당 도메인 전용 유틸 │ │ └── page.tsx -│ ├── api/ # Orval 생성 API 클라이언트·타입 + 커스텀 axios 인스턴스 │ ├── components/ # 앱 전역 공유 컴포넌트 │ ├── constants/ # 앱 전역 상수 (라우트, 시간 단위 등) │ ├── containers/ # 여러 도메인에서 공유하는 클라이언트 컨테이너 +│ ├── generated/ # Orval 생성 API 클라이언트·타입 (직접 수정 금지) │ ├── hooks/ # 앱 전역 공유 커스텀 훅 +│ ├── http/ # 커스텀 axios 인스턴스·에러 파싱 등 수동 관리 HTTP 클라이언트 │ ├── i18n/ # next-intl 라우팅·요청·네비게이션 설정 │ ├── messages/ # 로케일별 번역 리소스 │ ├── providers/ # 전역 Provider (auth, query, overlay, locale 등) @@ -38,4 +39,4 @@ timo-client/ - `apps/timo-web` → `packages/timo-design-system` 참조 가능 - `packages/timo-design-system` → `apps/*` 참조 금지 - 패키지 간 참조는 반드시 `workspace:*`로 선언 -- 앱 내부 도메인 간 직접 import 금지 — 공유 로직은 앱 전역 디렉터리(`components/`, `hooks/`, `queries/`, `utils/`, `api/` 등) 또는 `packages/`로 추출 +- 앱 내부 도메인 간 직접 import 금지 — 공유 로직은 앱 전역 디렉터리(`components/`, `hooks/`, `queries/`, `utils/`, `generated/`, `http/` 등) 또는 `packages/`로 추출