diff --git a/apps/timo-web/api/client/custom-instance.ts b/apps/timo-web/api/client/custom-instance.ts new file mode 100644 index 00000000..c7c8eb18 --- /dev/null +++ b/apps/timo-web/api/client/custom-instance.ts @@ -0,0 +1,12 @@ +import type { AxiosError, AxiosRequestConfig } from "axios"; + +import { instance } from "@/api/client/axios"; + +export const customInstance = ( + config: AxiosRequestConfig, + options?: AxiosRequestConfig, +): Promise => + instance({ ...config, ...options }).then((response) => response.data); + +export type ErrorType = AxiosError; +export type BodyType = TBodyData; diff --git a/apps/timo-web/api/generated/endpoints/ai/ai.ts b/apps/timo-web/api/generated/endpoints/ai/ai.ts new file mode 100644 index 00000000..723f804d --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/ai/ai.ts @@ -0,0 +1,124 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useMutation } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { + BaseResponseRecommendDurationResponse, + ErrorDto, + RecommendDurationRequest, +} from "../../models"; +import type { + MutationFunction, + QueryClient, + UseMutationOptions, + UseMutationResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +/** + * ํˆฌ๋‘๋ช…๊ณผ ํƒœ๊ทธ๋ฅผ ๊ธฐ์ค€์œผ๋กœ ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„์„ ์ถ”์ฒœํ•ฉ๋‹ˆ๋‹ค. + * + * ์„œ๋ฒ„๋Š” ์‚ฌ์šฉ์ž์˜ ํƒ€์ด๋จธ ๊ธฐ๋ฐ˜ ์‹ค์ œ ์†Œ์š”์‹œ๊ฐ„ ๊ธฐ๋ก์„ ์กฐํšŒํ•ด Gemini์— ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. + * 1. ํ˜„์žฌ ํˆฌ๋‘๋ช…๊ณผ ๋น„์Šทํ•œ ๊ณผ๊ฑฐ ํˆฌ๋‘์˜ ์‹ค์ œ ์†Œ์š”์‹œ๊ฐ„ ๊ธฐ๋ก + * 2. ์‚ฌ์šฉ์ž๊ฐ€ ์ง€์ •ํ•œ ํƒœ๊ทธ์˜ ์ตœ๊ทผ ์‹ค์ œ ์†Œ์š”์‹œ๊ฐ„ ๊ธฐ๋ก + * 3. ๊ธฐ๋ก์ด ์—†์œผ๋ฉด ํ˜„์žฌ ํˆฌ๋‘๋ช… ๊ธฐ์ค€ + * + * Gemini๋Š” ์œ„ ๊ธฐ๋ก์„ ์ข…ํ•ฉํ•ด ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. + * RPM, RPD, TPM ์ œํ•œ์„ ์ดˆ๊ณผํ•˜๋ฉด Gemini ํ˜ธ์ถœ ์ „ 429 ์‘๋‹ต์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary AI ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„ ์ถ”์ฒœ + */ +export const recommendDuration = ( + recommendDurationRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/ai/duration`, + method: "POST", + headers: { "Content-Type": "application/json" }, + data: recommendDurationRequest, + signal, + }, + options, + ); +}; + +export const getRecommendDurationMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + const mutationKey = ["recommendDuration"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { data: BodyType } + > = (props) => { + const { data } = props ?? {}; + + return recommendDuration(data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type RecommendDurationMutationResult = NonNullable< + Awaited> +>; +export type RecommendDurationMutationBody = BodyType; +export type RecommendDurationMutationError = ErrorType; + +/** + * @summary AI ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„ ์ถ”์ฒœ + */ +export const useRecommendDuration = < + TError = ErrorType, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + return useMutation(getRecommendDurationMutationOptions(options), queryClient); +}; diff --git a/apps/timo-web/api/generated/endpoints/ai/ai.zod.ts b/apps/timo-web/api/generated/endpoints/ai/ai.zod.ts new file mode 100644 index 00000000..5b42ecb5 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/ai/ai.zod.ts @@ -0,0 +1,34 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * ํˆฌ๋‘๋ช…๊ณผ ํƒœ๊ทธ๋ฅผ ๊ธฐ์ค€์œผ๋กœ ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„์„ ์ถ”์ฒœํ•ฉ๋‹ˆ๋‹ค. + * + * ์„œ๋ฒ„๋Š” ์‚ฌ์šฉ์ž์˜ ํƒ€์ด๋จธ ๊ธฐ๋ฐ˜ ์‹ค์ œ ์†Œ์š”์‹œ๊ฐ„ ๊ธฐ๋ก์„ ์กฐํšŒํ•ด Gemini์— ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. + * 1. ํ˜„์žฌ ํˆฌ๋‘๋ช…๊ณผ ๋น„์Šทํ•œ ๊ณผ๊ฑฐ ํˆฌ๋‘์˜ ์‹ค์ œ ์†Œ์š”์‹œ๊ฐ„ ๊ธฐ๋ก + * 2. ์‚ฌ์šฉ์ž๊ฐ€ ์ง€์ •ํ•œ ํƒœ๊ทธ์˜ ์ตœ๊ทผ ์‹ค์ œ ์†Œ์š”์‹œ๊ฐ„ ๊ธฐ๋ก + * 3. ๊ธฐ๋ก์ด ์—†์œผ๋ฉด ํ˜„์žฌ ํˆฌ๋‘๋ช… ๊ธฐ์ค€ + * + * Gemini๋Š” ์œ„ ๊ธฐ๋ก์„ ์ข…ํ•ฉํ•ด ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. + * RPM, RPD, TPM ์ œํ•œ์„ ์ดˆ๊ณผํ•˜๋ฉด Gemini ํ˜ธ์ถœ ์ „ 429 ์‘๋‹ต์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary AI ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„ ์ถ”์ฒœ + */ +export const recommendDurationBodyTitleMin = 0; +export const recommendDurationBodyTitleMax = 30; + +export const RecommendDurationBody = zod.object({ + title: zod + .string() + .min(recommendDurationBodyTitleMin) + .max(recommendDurationBodyTitleMax) + .describe("์ถ”์ฒœ๋ฐ›์„ ํˆฌ๋‘๋ช…"), + tagId: zod.number().nullish().describe("ํˆฌ๋‘ ํƒœ๊ทธ ID"), +}); + +export const RecommendDurationResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/endpoints/auth/auth.ts b/apps/timo-web/api/generated/endpoints/auth/auth.ts new file mode 100644 index 00000000..35839e4b --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/auth/auth.ts @@ -0,0 +1,351 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useMutation } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { + AuthTokenRequest, + BaseResponseAuthReissueResponse, + BaseResponseAuthTokenResponse, + BaseResponseVoid, + ErrorDto, +} from "../../models"; +import type { + MutationFunction, + QueryClient, + UseMutationOptions, + UseMutationResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +/** + * 1ํšŒ์„ฑ ์ธ์ฆ ์ฝ”๋“œ(code)๋ฅผ AccessToken์œผ๋กœ ๊ตํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary AccessToken ๋ฐœ๊ธ‰ + */ +export const token = ( + authTokenRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/auth/token`, + method: "POST", + headers: { "Content-Type": "application/json" }, + data: authTokenRequest, + signal, + }, + options, + ); +}; + +export const getTokenMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + const mutationKey = ["token"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { data: BodyType } + > = (props) => { + const { data } = props ?? {}; + + return token(data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type TokenMutationResult = NonNullable< + Awaited> +>; +export type TokenMutationBody = BodyType; +export type TokenMutationError = ErrorType; + +/** + * @summary AccessToken ๋ฐœ๊ธ‰ + */ +export const useToken = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + return useMutation(getTokenMutationOptions(options), queryClient); +}; +/** + * ์ฟ ํ‚ค๋กœ ์ „๋‹ฌ๋œ RefreshToken๊ณผ sessionId๋ฅผ ๊ฒ€์ฆํ•˜์—ฌ AccessToken ์žฌ๋ฐœ๊ธ‰ํ•ฉ๋‹ˆ๋‹ค.
+ * ์žฌ๋ฐœ๊ธ‰ ์„ฑ๊ณต ์‹œ RefreshToken๊ณผ sessionId ์ฟ ํ‚ค๋ฅผ ๊ฐฑ์‹ ํ•ฉ๋‹ˆ๋‹ค. + * @summary AccessToken ์žฌ๋ฐœ๊ธ‰ + */ +export const reissue = ( + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/auth/reissue`, method: "POST", signal }, + options, + ); +}; + +export const getReissueMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + void, + TContext +> => { + const mutationKey = ["reissue"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + void + > = () => { + return reissue(requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type ReissueMutationResult = NonNullable< + Awaited> +>; + +export type ReissueMutationError = ErrorType; + +/** + * @summary AccessToken ์žฌ๋ฐœ๊ธ‰ + */ +export const useReissue = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + void, + TContext +> => { + return useMutation(getReissueMutationOptions(options), queryClient); +}; +/** + * ํ˜„์žฌ ์„ธ์…˜์„ ๋กœ๊ทธ์•„์›ƒํ•˜๊ณ  RefreshToken ๋ฐ sessionId ์ฟ ํ‚ค๋ฅผ ๋งŒ๋ฃŒ์‹œํ‚ต๋‹ˆ๋‹ค. + * @summary ๋กœ๊ทธ์•„์›ƒ + */ +export const logout = ( + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/auth/logout`, method: "POST", signal }, + options, + ); +}; + +export const getLogoutMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + void, + TContext +> => { + const mutationKey = ["logout"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + void + > = () => { + return logout(requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type LogoutMutationResult = NonNullable< + Awaited> +>; + +export type LogoutMutationError = ErrorType; + +/** + * @summary ๋กœ๊ทธ์•„์›ƒ + */ +export const useLogout = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + void, + TContext +> => { + return useMutation(getLogoutMutationOptions(options), queryClient); +}; +/** + * ํšŒ์› ํƒˆํ‡ด๋ฅผ ์ง„ํ–‰ํ•˜๋ฉฐ, ์‚ฌ์šฉ์ž์™€ ๊ด€๋ จ๋œ ๋ชจ๋“  ๋ฐ์ดํ„ฐ๋ฅผ ์˜๊ตฌ ์‚ญ์ œํ•ฉ๋‹ˆ๋‹ค.
+ * ์ด ์ž‘์—…์€ ๋˜๋Œ๋ฆด ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. + * @summary ํšŒ์› ํƒˆํ‡ด + */ +export const withdraw = ( + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/auth/withdraw`, method: "DELETE", signal }, + options, + ); +}; + +export const getWithdrawMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + void, + TContext +> => { + const mutationKey = ["withdraw"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + void + > = () => { + return withdraw(requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type WithdrawMutationResult = NonNullable< + Awaited> +>; + +export type WithdrawMutationError = ErrorType; + +/** + * @summary ํšŒ์› ํƒˆํ‡ด + */ +export const useWithdraw = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + void, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + void, + TContext +> => { + return useMutation(getWithdrawMutationOptions(options), queryClient); +}; diff --git a/apps/timo-web/api/generated/endpoints/auth/auth.zod.ts b/apps/timo-web/api/generated/endpoints/auth/auth.zod.ts new file mode 100644 index 00000000..efdf15fd --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/auth/auth.zod.ts @@ -0,0 +1,44 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * 1ํšŒ์„ฑ ์ธ์ฆ ์ฝ”๋“œ(code)๋ฅผ AccessToken์œผ๋กœ ๊ตํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary AccessToken ๋ฐœ๊ธ‰ + */ + +export const TokenBody = zod.object({ + code: zod + .string() + .min(1) + .describe( + "๋กœ๊ทธ์ธ ์„ฑ๊ณต ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ ์‹œ ์ฟผ๋ฆฌ์ŠคํŠธ๋ง์œผ๋กœ ์ „๋‹ฌ๋ฐ›์€ ์ผํšŒ์šฉ ์ธ๊ฐ€์ฝ”๋“œ", + ), +}); + +export const TokenResponse = zod.unknown(); + +/** + * ์ฟ ํ‚ค๋กœ ์ „๋‹ฌ๋œ RefreshToken๊ณผ sessionId๋ฅผ ๊ฒ€์ฆํ•˜์—ฌ AccessToken ์žฌ๋ฐœ๊ธ‰ํ•ฉ๋‹ˆ๋‹ค.
+ * ์žฌ๋ฐœ๊ธ‰ ์„ฑ๊ณต ์‹œ RefreshToken๊ณผ sessionId ์ฟ ํ‚ค๋ฅผ ๊ฐฑ์‹ ํ•ฉ๋‹ˆ๋‹ค. + * @summary AccessToken ์žฌ๋ฐœ๊ธ‰ + */ +export const ReissueResponse = zod.unknown(); + +/** + * ํ˜„์žฌ ์„ธ์…˜์„ ๋กœ๊ทธ์•„์›ƒํ•˜๊ณ  RefreshToken ๋ฐ sessionId ์ฟ ํ‚ค๋ฅผ ๋งŒ๋ฃŒ์‹œํ‚ต๋‹ˆ๋‹ค. + * @summary ๋กœ๊ทธ์•„์›ƒ + */ +export const LogoutResponse = zod.unknown(); + +/** + * ํšŒ์› ํƒˆํ‡ด๋ฅผ ์ง„ํ–‰ํ•˜๋ฉฐ, ์‚ฌ์šฉ์ž์™€ ๊ด€๋ จ๋œ ๋ชจ๋“  ๋ฐ์ดํ„ฐ๋ฅผ ์˜๊ตฌ ์‚ญ์ œํ•ฉ๋‹ˆ๋‹ค.
+ * ์ด ์ž‘์—…์€ ๋˜๋Œ๋ฆด ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. + * @summary ํšŒ์› ํƒˆํ‡ด + */ +export const WithdrawResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/endpoints/focus/focus.ts b/apps/timo-web/api/generated/endpoints/focus/focus.ts new file mode 100644 index 00000000..316ee411 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/focus/focus.ts @@ -0,0 +1,180 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useQuery } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType } from "../../../client/custom-instance"; +import type { BaseResponseFocusTodoResponse, ErrorDto } from "../../models"; +import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, + QueryFunction, + QueryKey, + UndefinedInitialDataOptions, + UseQueryOptions, + UseQueryResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + +/** + * ์˜ค๋Š˜ TODO ์ค‘ ๋ฏธ์™„๋ฃŒ์ธ ์ตœ์ƒ๋‹จ TODO ํ•˜๋‚˜๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. (sortOrder๊ฐ€ ๊ฐ€์žฅ ์ž‘์€ ๋ฏธ์™„๋ฃŒ TODO) + * ์˜ค๋Š˜ TODO๊ฐ€ ํ•˜๋‚˜๋„ ์—†์œผ๋ฉด "์˜ค๋Š˜์˜ TODO๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.", + * ์˜ค๋Š˜ TODO๋ฅผ ๋ชจ๋‘ ์™„๋ฃŒํ–ˆ์œผ๋ฉด "์˜ค๋Š˜์˜ TODO๋ฅผ ๋ชจ๋‘ ์™„๋ฃŒํ–ˆ์Šต๋‹ˆ๋‹ค." ๋ฉ”์‹œ์ง€๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋ฉฐ, + * ๋‘ ๊ฒฝ์šฐ ๋ชจ๋‘ hasTodo๋Š” false, todo๋Š” null์ž…๋‹ˆ๋‹ค. + * @summary ์ง‘์ค‘ ๋ชจ๋“œ TODO ์กฐํšŒ + */ +export const getFocusTodo = ( + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/focus`, method: "GET", signal }, + options, + ); +}; + +export const getGetFocusTodoQueryKey = () => { + return [`/api/v1/focus`] as const; +}; + +export const getGetFocusTodoQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>(options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; +}) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetFocusTodoQueryKey(); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getFocusTodo(requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetFocusTodoQueryResult = NonNullable< + Awaited> +>; +export type GetFocusTodoQueryError = ErrorType; + +export function useGetFocusTodo< + TData = Awaited>, + TError = ErrorType, +>( + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetFocusTodo< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetFocusTodo< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary ์ง‘์ค‘ ๋ชจ๋“œ TODO ์กฐํšŒ + */ + +export function useGetFocusTodo< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetFocusTodoQueryOptions(options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/apps/timo-web/api/generated/endpoints/focus/focus.zod.ts b/apps/timo-web/api/generated/endpoints/focus/focus.zod.ts new file mode 100644 index 00000000..44f4f153 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/focus/focus.zod.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * ์˜ค๋Š˜ TODO ์ค‘ ๋ฏธ์™„๋ฃŒ์ธ ์ตœ์ƒ๋‹จ TODO ํ•˜๋‚˜๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. (sortOrder๊ฐ€ ๊ฐ€์žฅ ์ž‘์€ ๋ฏธ์™„๋ฃŒ TODO) + * ์˜ค๋Š˜ TODO๊ฐ€ ํ•˜๋‚˜๋„ ์—†์œผ๋ฉด "์˜ค๋Š˜์˜ TODO๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.", + * ์˜ค๋Š˜ TODO๋ฅผ ๋ชจ๋‘ ์™„๋ฃŒํ–ˆ์œผ๋ฉด "์˜ค๋Š˜์˜ TODO๋ฅผ ๋ชจ๋‘ ์™„๋ฃŒํ–ˆ์Šต๋‹ˆ๋‹ค." ๋ฉ”์‹œ์ง€๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋ฉฐ, + * ๋‘ ๊ฒฝ์šฐ ๋ชจ๋‘ hasTodo๋Š” false, todo๋Š” null์ž…๋‹ˆ๋‹ค. + * @summary ์ง‘์ค‘ ๋ชจ๋“œ TODO ์กฐํšŒ + */ +export const GetFocusTodoResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/endpoints/home/home.ts b/apps/timo-web/api/generated/endpoints/home/home.ts new file mode 100644 index 00000000..9743660a --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/home/home.ts @@ -0,0 +1,326 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useQuery } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType } from "../../../client/custom-instance"; +import type { + BaseResponseHomeResponse, + BaseResponseTodayResponse, + ErrorDto, + GetHomeParams, +} from "../../models"; +import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, + QueryFunction, + QueryKey, + UndefinedInitialDataOptions, + UseQueryOptions, + UseQueryResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + +/** + * HOME ํ™”๋ฉด์˜ ํ•„ํ„ฐ ์กฐ๊ฑด์— ๋”ฐ๋ผ ์ผ๋ณ„ TODO ๋ชฉ๋ก์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * DEFAULT๋Š” ๊ธฐ์ค€ ๋‚ ์งœ ์ „ํ›„ 7์ผ, WEEK๋Š” ๊ธฐ์ค€ ๋‚ ์งœ๋ถ€ํ„ฐ 7์ผ์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * ๊ฐ ๋‚ ์งœ์˜ TODO๋Š” ๋ฏธ์™„๋ฃŒ ๋จผ์ €, ๊ฐ™์€ ์™„๋ฃŒ ๊ทธ๋ฃน ์•ˆ์—์„œ๋Š” sortOrder ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌ๋ฉ๋‹ˆ๋‹ค. + * @summary HOME ํ™”๋ฉด TODO ๋ชฉ๋ก ์กฐํšŒ + */ +export const getHome = ( + params?: GetHomeParams, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/home`, method: "GET", params, signal }, + options, + ); +}; + +export const getGetHomeQueryKey = (params?: GetHomeParams) => { + return [`/api/v1/home`, ...(params ? [params] : [])] as const; +}; + +export const getGetHomeQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>( + params?: GetHomeParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetHomeQueryKey(params); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getHome(params, requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetHomeQueryResult = NonNullable< + Awaited> +>; +export type GetHomeQueryError = ErrorType; + +export function useGetHome< + TData = Awaited>, + TError = ErrorType, +>( + params: undefined | GetHomeParams, + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetHome< + TData = Awaited>, + TError = ErrorType, +>( + params?: GetHomeParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetHome< + TData = Awaited>, + TError = ErrorType, +>( + params?: GetHomeParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary HOME ํ™”๋ฉด TODO ๋ชฉ๋ก ์กฐํšŒ + */ + +export function useGetHome< + TData = Awaited>, + TError = ErrorType, +>( + params?: GetHomeParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetHomeQueryOptions(params, options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} + +/** + * ์˜ค๋Š˜ ํ•˜๋ฃจ์˜ TODO ๋ชฉ๋ก์„ ํ•˜์œ„ ํƒœ์Šคํฌ ์ƒ์„ธ ์ •๋ณด๊นŒ์ง€ ํฌํ•จํ•ด ๋‹จ์ผ ๊ฐ์ฒด๋กœ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * TODO๋Š” ๋ฏธ์™„๋ฃŒ ๋จผ์ €, ๊ฐ™์€ ์™„๋ฃŒ ๊ทธ๋ฃน ์•ˆ์—์„œ๋Š” sortOrder ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌ๋ฉ๋‹ˆ๋‹ค. + * @summary ์˜ค๋Š˜ ๋ทฐ TODO ๋ชฉ๋ก ์กฐํšŒ + */ +export const getToday = ( + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/home/today`, method: "GET", signal }, + options, + ); +}; + +export const getGetTodayQueryKey = () => { + return [`/api/v1/home/today`] as const; +}; + +export const getGetTodayQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>(options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; +}) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetTodayQueryKey(); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getToday(requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetTodayQueryResult = NonNullable< + Awaited> +>; +export type GetTodayQueryError = ErrorType; + +export function useGetToday< + TData = Awaited>, + TError = ErrorType, +>( + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetToday< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetToday< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary ์˜ค๋Š˜ ๋ทฐ TODO ๋ชฉ๋ก ์กฐํšŒ + */ + +export function useGetToday< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetTodayQueryOptions(options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/apps/timo-web/api/generated/endpoints/home/home.zod.ts b/apps/timo-web/api/generated/endpoints/home/home.zod.ts new file mode 100644 index 00000000..e34cfc9e --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/home/home.zod.ts @@ -0,0 +1,31 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * HOME ํ™”๋ฉด์˜ ํ•„ํ„ฐ ์กฐ๊ฑด์— ๋”ฐ๋ผ ์ผ๋ณ„ TODO ๋ชฉ๋ก์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * DEFAULT๋Š” ๊ธฐ์ค€ ๋‚ ์งœ ์ „ํ›„ 7์ผ, WEEK๋Š” ๊ธฐ์ค€ ๋‚ ์งœ๋ถ€ํ„ฐ 7์ผ์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * ๊ฐ ๋‚ ์งœ์˜ TODO๋Š” ๋ฏธ์™„๋ฃŒ ๋จผ์ €, ๊ฐ™์€ ์™„๋ฃŒ ๊ทธ๋ฃน ์•ˆ์—์„œ๋Š” sortOrder ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌ๋ฉ๋‹ˆ๋‹ค. + * @summary HOME ํ™”๋ฉด TODO ๋ชฉ๋ก ์กฐํšŒ + */ +export const GetHomeQueryParams = zod.object({ + filter: zod.string().optional().describe("์กฐํšŒ ํ•„ํ„ฐ(DEFAULT, WEEK)"), + baseDate: zod + .string() + .optional() + .describe("๊ธฐ์ค€ ๋‚ ์งœ(yyyy-MM-dd), ๋ฏธ์ž…๋ ฅ ์‹œ ์˜ค๋Š˜"), +}); + +export const GetHomeResponse = zod.unknown(); + +/** + * ์˜ค๋Š˜ ํ•˜๋ฃจ์˜ TODO ๋ชฉ๋ก์„ ํ•˜์œ„ ํƒœ์Šคํฌ ์ƒ์„ธ ์ •๋ณด๊นŒ์ง€ ํฌํ•จํ•ด ๋‹จ์ผ ๊ฐ์ฒด๋กœ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * TODO๋Š” ๋ฏธ์™„๋ฃŒ ๋จผ์ €, ๊ฐ™์€ ์™„๋ฃŒ ๊ทธ๋ฃน ์•ˆ์—์„œ๋Š” sortOrder ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌ๋ฉ๋‹ˆ๋‹ค. + * @summary ์˜ค๋Š˜ ๋ทฐ TODO ๋ชฉ๋ก ์กฐํšŒ + */ +export const GetTodayResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/endpoints/onboarding/onboarding.ts b/apps/timo-web/api/generated/endpoints/onboarding/onboarding.ts new file mode 100644 index 00000000..dbd54bd5 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/onboarding/onboarding.ts @@ -0,0 +1,116 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useMutation } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { BaseResponse, ErrorDto, OnboardingRequest } from "../../models"; +import type { + MutationFunction, + QueryClient, + UseMutationOptions, + UseMutationResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +/** + * ์–ธ์–ด, ์˜ˆ์ธก ์ •ํ™•๋„, ๊ธฐ์ƒ/์ทจ์นจ ์‹œ๊ฐ„์„ ์ €์žฅํ•˜๊ณ  ์˜จ๋ณด๋”ฉ์„ ์™„๋ฃŒ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. + * ์˜จ๋ณด๋”ฉ ์™„๋ฃŒ ์‹œ ์ด์šฉ์•ฝ๊ด€์— ๋™์˜ํ•œ ๊ฒƒ์œผ๋กœ ํ•จ๊ป˜ ์ฒ˜๋ฆฌ๋ฉ๋‹ˆ๋‹ค. + * @summary ์˜จ๋ณด๋”ฉ ์™„๋ฃŒ + */ +export const completeOnboarding = ( + onboardingRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/users/onboarding`, + method: "POST", + headers: { "Content-Type": "application/json" }, + data: onboardingRequest, + signal, + }, + options, + ); +}; + +export const getCompleteOnboardingMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + const mutationKey = ["completeOnboarding"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { data: BodyType } + > = (props) => { + const { data } = props ?? {}; + + return completeOnboarding(data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type CompleteOnboardingMutationResult = NonNullable< + Awaited> +>; +export type CompleteOnboardingMutationBody = BodyType; +export type CompleteOnboardingMutationError = ErrorType; + +/** + * @summary ์˜จ๋ณด๋”ฉ ์™„๋ฃŒ + */ +export const useCompleteOnboarding = < + TError = ErrorType, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + return useMutation( + getCompleteOnboardingMutationOptions(options), + queryClient, + ); +}; diff --git a/apps/timo-web/api/generated/endpoints/onboarding/onboarding.zod.ts b/apps/timo-web/api/generated/endpoints/onboarding/onboarding.zod.ts new file mode 100644 index 00000000..64f5110d --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/onboarding/onboarding.zod.ts @@ -0,0 +1,38 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * ์–ธ์–ด, ์˜ˆ์ธก ์ •ํ™•๋„, ๊ธฐ์ƒ/์ทจ์นจ ์‹œ๊ฐ„์„ ์ €์žฅํ•˜๊ณ  ์˜จ๋ณด๋”ฉ์„ ์™„๋ฃŒ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. + * ์˜จ๋ณด๋”ฉ ์™„๋ฃŒ ์‹œ ์ด์šฉ์•ฝ๊ด€์— ๋™์˜ํ•œ ๊ฒƒ์œผ๋กœ ํ•จ๊ป˜ ์ฒ˜๋ฆฌ๋ฉ๋‹ˆ๋‹ค. + * @summary ์˜จ๋ณด๋”ฉ ์™„๋ฃŒ + */ +export const completeOnboardingBodyPredictionAccuracyMax = 4; + +export const completeOnboardingBodyWakeUpTimeRegExp = new RegExp( + "^([01]\\d|2[0-3]):[0-5]\\d$", +); +export const completeOnboardingBodyBedTimeRegExp = new RegExp( + "^([01]\\d|2[0-3]):[0-5]\\d$", +); + +export const CompleteOnboardingBody = zod.object({ + language: zod.enum(["KO", "EN"]), + predictionAccuracy: zod + .number() + .min(1) + .max(completeOnboardingBodyPredictionAccuracyMax), + wakeUpTime: zod.string().regex(completeOnboardingBodyWakeUpTimeRegExp), + bedTime: zod.string().regex(completeOnboardingBodyBedTimeRegExp), +}); + +export const CompleteOnboardingResponse = zod.object({ + status: zod.number().optional(), + message: zod.string().optional(), + data: zod.unknown().optional(), +}); diff --git a/apps/timo-web/api/generated/endpoints/statistics/statistics.ts b/apps/timo-web/api/generated/endpoints/statistics/statistics.ts new file mode 100644 index 00000000..72e82a9a --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/statistics/statistics.ts @@ -0,0 +1,489 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useQuery } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType } from "../../../client/custom-instance"; +import type { + BaseResponseStatisticsCalendarResponse, + BaseResponseStatisticsDailyResponse, + BaseResponseStatisticsSummaryResponse, + ErrorDto, + GetCalendarParams, + GetDailyParams, + GetSummaryParams, +} from "../../models"; +import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, + QueryFunction, + QueryKey, + UndefinedInitialDataOptions, + UseQueryOptions, + UseQueryResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + +/** + * ์ง€์ •ํ•œ ์—ฐ์›”์˜ ์ „์ฒด ๊ธฐ๋ก ์‹œ๊ฐ„, ํ™œ๋™์ผ, ์ผํ‰๊ท , ๋ˆ„์  ํƒœ์Šคํฌ๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * + * - ์ „์ฒด ๊ธฐ๋ก ์‹œ๊ฐ„: ํ•ด๋‹น ์›”์— ๊ธฐ๋ก๋œ ํƒ€์ด๋จธ ์‹œ๊ฐ„์˜ ์ดํ•ฉ + * - ํ™œ๋™์ผ: ํ•ด๋‹น ์›”์— 1๊ฐœ ์ด์ƒ์˜ ํˆฌ๋‘๋ฅผ ์ƒ์„ฑํ•œ ๋‚ ์งœ ์ˆ˜ + * - ์ผํ‰๊ท : ํƒ€์ด๋จธ๋ฅผ 1ํšŒ ์ด์ƒ ์‹คํ–‰ํ•œ ๋‚ ์งœ๋“ค์˜ ๊ธฐ๋ก ์‹œ๊ฐ„ ์ดํ•ฉ์„ ํ•ด๋‹น ๋‚ ์งœ ์ˆ˜๋กœ ๋‚˜๋ˆˆ ๊ฐ’ + * - ๋ˆ„์  ํƒœ์Šคํฌ: ํ•ด๋‹น ์›”์— ์ž‘์„ฑ๋œ ์ „์ฒด ํˆฌ๋‘ ์ˆ˜์™€ ๊ทธ์ค‘ ์™„๋ฃŒํ•œ ํˆฌ๋‘ ์ˆ˜ + * @summary ์›”๋ณ„ ํ†ต๊ณ„ ์š”์•ฝ ์กฐํšŒ + */ +export const getSummary = ( + params: GetSummaryParams, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/statistics/summary`, method: "GET", params, signal }, + options, + ); +}; + +export const getGetSummaryQueryKey = (params?: GetSummaryParams) => { + return [`/api/v1/statistics/summary`, ...(params ? [params] : [])] as const; +}; + +export const getGetSummaryQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>( + params: GetSummaryParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetSummaryQueryKey(params); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getSummary(params, requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetSummaryQueryResult = NonNullable< + Awaited> +>; +export type GetSummaryQueryError = ErrorType; + +export function useGetSummary< + TData = Awaited>, + TError = ErrorType, +>( + params: GetSummaryParams, + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetSummary< + TData = Awaited>, + TError = ErrorType, +>( + params: GetSummaryParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetSummary< + TData = Awaited>, + TError = ErrorType, +>( + params: GetSummaryParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary ์›”๋ณ„ ํ†ต๊ณ„ ์š”์•ฝ ์กฐํšŒ + */ + +export function useGetSummary< + TData = Awaited>, + TError = ErrorType, +>( + params: GetSummaryParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetSummaryQueryOptions(params, options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} + +/** + * ํŠน์ • ๋‚ ์งœ์˜ ์ด ๊ธฐ๋ก์‹œ๊ฐ„๊ณผ ํ•ด๋‹น ๋‚ ์งœ์— ๊ณ„ํš๋œ ํˆฌ๋‘ ๋ชฉ๋ก์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * + * ํˆฌ๋‘๋ณ„๋กœ ํˆฌ๋‘๋ช…, ์‹ค์ œ ์†Œ์š” ์‹œ๊ฐ„, ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„, ํƒœ๊ทธ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. + * ์‹ค์ œ ์†Œ์š” ์‹œ๊ฐ„์€ ํ•ด๋‹น ๋‚ ์งœ์˜ ํƒ€์ด๋จธ ๊ธฐ๋ก ํ•ฉ๊ณ„์ด๋ฉฐ, ๊ธฐ๋ก์ด ์—†์œผ๋ฉด 0๋ถ„์ž…๋‹ˆ๋‹ค. + * @summary ์ผ๋ณ„ ๊ธฐ๋ก ์กฐํšŒ + */ +export const getDaily = ( + params: GetDailyParams, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/statistics/daily`, method: "GET", params, signal }, + options, + ); +}; + +export const getGetDailyQueryKey = (params?: GetDailyParams) => { + return [`/api/v1/statistics/daily`, ...(params ? [params] : [])] as const; +}; + +export const getGetDailyQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>( + params: GetDailyParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetDailyQueryKey(params); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getDaily(params, requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetDailyQueryResult = NonNullable< + Awaited> +>; +export type GetDailyQueryError = ErrorType; + +export function useGetDaily< + TData = Awaited>, + TError = ErrorType, +>( + params: GetDailyParams, + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetDaily< + TData = Awaited>, + TError = ErrorType, +>( + params: GetDailyParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetDaily< + TData = Awaited>, + TError = ErrorType, +>( + params: GetDailyParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary ์ผ๋ณ„ ๊ธฐ๋ก ์กฐํšŒ + */ + +export function useGetDaily< + TData = Awaited>, + TError = ErrorType, +>( + params: GetDailyParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetDailyQueryOptions(params, options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} + +/** + * ์ง€์ •ํ•œ ์—ฐ์›”์˜ ์ผ๋ณ„ ํˆฌ๋‘ ์™„๋ฃŒ ํ˜„ํ™ฉ์„ ํ†ต๊ณ„ ์บ˜๋ฆฐ๋”์— ํ‘œ์‹œํ•˜๊ธฐ ์œ„ํ•œ API์ž…๋‹ˆ๋‹ค. + * + * - yearMonth๋Š” yyyy-MM ํ˜•์‹์œผ๋กœ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. + * - today๋Š” UTC ๊ธฐ์ค€ ์˜ค๋Š˜ ๋‚ ์งœ์ž…๋‹ˆ๋‹ค. + * - ์กฐํšŒ ์›”์˜ ๋ชจ๋“  ๋‚ ์งœ๋ฅผ ๋‚ ์งœ ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * - ๋‚ ์งœ๊ฐ€ ์˜ค๋Š˜ ์ดํ›„์—ฌ๋„ ์ž‘์„ฑ๋œ ํˆฌ๋‘๊ฐ€ ์žˆ๋‹ค๋ฉด ์™„๋ฃŒ์œจ์„ ๊ณ„์‚ฐํ•ด์„œ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * - ํ•ด๋‹น ๋‚ ์งœ์— ํˆฌ๋‘๊ฐ€ ์—†์œผ๋ฉด completionRate๋Š” `0`์œผ๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary ํ†ต๊ณ„ ์บ˜๋ฆฐ๋” ์กฐํšŒ + */ +export const getCalendar = ( + params: GetCalendarParams, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/statistics/calendar`, method: "GET", params, signal }, + options, + ); +}; + +export const getGetCalendarQueryKey = (params?: GetCalendarParams) => { + return [`/api/v1/statistics/calendar`, ...(params ? [params] : [])] as const; +}; + +export const getGetCalendarQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>( + params: GetCalendarParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetCalendarQueryKey(params); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getCalendar(params, requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetCalendarQueryResult = NonNullable< + Awaited> +>; +export type GetCalendarQueryError = ErrorType; + +export function useGetCalendar< + TData = Awaited>, + TError = ErrorType, +>( + params: GetCalendarParams, + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetCalendar< + TData = Awaited>, + TError = ErrorType, +>( + params: GetCalendarParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetCalendar< + TData = Awaited>, + TError = ErrorType, +>( + params: GetCalendarParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary ํ†ต๊ณ„ ์บ˜๋ฆฐ๋” ์กฐํšŒ + */ + +export function useGetCalendar< + TData = Awaited>, + TError = ErrorType, +>( + params: GetCalendarParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetCalendarQueryOptions(params, options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/apps/timo-web/api/generated/endpoints/statistics/statistics.zod.ts b/apps/timo-web/api/generated/endpoints/statistics/statistics.zod.ts new file mode 100644 index 00000000..af851aba --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/statistics/statistics.zod.ts @@ -0,0 +1,52 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * ์ง€์ •ํ•œ ์—ฐ์›”์˜ ์ „์ฒด ๊ธฐ๋ก ์‹œ๊ฐ„, ํ™œ๋™์ผ, ์ผํ‰๊ท , ๋ˆ„์  ํƒœ์Šคํฌ๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * + * - ์ „์ฒด ๊ธฐ๋ก ์‹œ๊ฐ„: ํ•ด๋‹น ์›”์— ๊ธฐ๋ก๋œ ํƒ€์ด๋จธ ์‹œ๊ฐ„์˜ ์ดํ•ฉ + * - ํ™œ๋™์ผ: ํ•ด๋‹น ์›”์— 1๊ฐœ ์ด์ƒ์˜ ํˆฌ๋‘๋ฅผ ์ƒ์„ฑํ•œ ๋‚ ์งœ ์ˆ˜ + * - ์ผํ‰๊ท : ํƒ€์ด๋จธ๋ฅผ 1ํšŒ ์ด์ƒ ์‹คํ–‰ํ•œ ๋‚ ์งœ๋“ค์˜ ๊ธฐ๋ก ์‹œ๊ฐ„ ์ดํ•ฉ์„ ํ•ด๋‹น ๋‚ ์งœ ์ˆ˜๋กœ ๋‚˜๋ˆˆ ๊ฐ’ + * - ๋ˆ„์  ํƒœ์Šคํฌ: ํ•ด๋‹น ์›”์— ์ž‘์„ฑ๋œ ์ „์ฒด ํˆฌ๋‘ ์ˆ˜์™€ ๊ทธ์ค‘ ์™„๋ฃŒํ•œ ํˆฌ๋‘ ์ˆ˜ + * @summary ์›”๋ณ„ ํ†ต๊ณ„ ์š”์•ฝ ์กฐํšŒ + */ +export const GetSummaryQueryParams = zod.object({ + yearMonth: zod.string().describe("์กฐํšŒํ•  ์—ฐ์›”. yyyy-MM ํ˜•์‹"), +}); + +export const GetSummaryResponse = zod.unknown(); + +/** + * ํŠน์ • ๋‚ ์งœ์˜ ์ด ๊ธฐ๋ก์‹œ๊ฐ„๊ณผ ํ•ด๋‹น ๋‚ ์งœ์— ๊ณ„ํš๋œ ํˆฌ๋‘ ๋ชฉ๋ก์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * + * ํˆฌ๋‘๋ณ„๋กœ ํˆฌ๋‘๋ช…, ์‹ค์ œ ์†Œ์š” ์‹œ๊ฐ„, ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„, ํƒœ๊ทธ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. + * ์‹ค์ œ ์†Œ์š” ์‹œ๊ฐ„์€ ํ•ด๋‹น ๋‚ ์งœ์˜ ํƒ€์ด๋จธ ๊ธฐ๋ก ํ•ฉ๊ณ„์ด๋ฉฐ, ๊ธฐ๋ก์ด ์—†์œผ๋ฉด 0๋ถ„์ž…๋‹ˆ๋‹ค. + * @summary ์ผ๋ณ„ ๊ธฐ๋ก ์กฐํšŒ + */ +export const GetDailyQueryParams = zod.object({ + date: zod.string().describe("์กฐํšŒ ๋‚ ์งœ. yyyy-MM-dd ํ˜•์‹"), +}); + +export const GetDailyResponse = zod.unknown(); + +/** + * ์ง€์ •ํ•œ ์—ฐ์›”์˜ ์ผ๋ณ„ ํˆฌ๋‘ ์™„๋ฃŒ ํ˜„ํ™ฉ์„ ํ†ต๊ณ„ ์บ˜๋ฆฐ๋”์— ํ‘œ์‹œํ•˜๊ธฐ ์œ„ํ•œ API์ž…๋‹ˆ๋‹ค. + * + * - yearMonth๋Š” yyyy-MM ํ˜•์‹์œผ๋กœ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. + * - today๋Š” UTC ๊ธฐ์ค€ ์˜ค๋Š˜ ๋‚ ์งœ์ž…๋‹ˆ๋‹ค. + * - ์กฐํšŒ ์›”์˜ ๋ชจ๋“  ๋‚ ์งœ๋ฅผ ๋‚ ์งœ ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * - ๋‚ ์งœ๊ฐ€ ์˜ค๋Š˜ ์ดํ›„์—ฌ๋„ ์ž‘์„ฑ๋œ ํˆฌ๋‘๊ฐ€ ์žˆ๋‹ค๋ฉด ์™„๋ฃŒ์œจ์„ ๊ณ„์‚ฐํ•ด์„œ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * - ํ•ด๋‹น ๋‚ ์งœ์— ํˆฌ๋‘๊ฐ€ ์—†์œผ๋ฉด completionRate๋Š” `0`์œผ๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary ํ†ต๊ณ„ ์บ˜๋ฆฐ๋” ์กฐํšŒ + */ +export const GetCalendarQueryParams = zod.object({ + yearMonth: zod.string().describe("์กฐํšŒํ•  ์—ฐ์›”. yyyy-MM ํ˜•์‹"), +}); + +export const GetCalendarResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/endpoints/tag/tag.ts b/apps/timo-web/api/generated/endpoints/tag/tag.ts new file mode 100644 index 00000000..dac9a965 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/tag/tag.ts @@ -0,0 +1,358 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useMutation, useQuery } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { + BaseResponseTagCreateResponse, + BaseResponseTagListResponse, + BaseResponseVoid, + ErrorDto, + TagCreateRequest, +} from "../../models"; +import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + MutationFunction, + QueryClient, + QueryFunction, + QueryKey, + UndefinedInitialDataOptions, + UseMutationOptions, + UseMutationResult, + UseQueryOptions, + UseQueryResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + +/** + * ๋ชจ๋“  ์‚ฌ์šฉ์ž๊ฐ€ ๊ณต์œ ํ•˜๋Š” ๊ธฐ๋ณธ ํƒœ๊ทธ์™€ ๋ณธ์ธ์ด ์ƒ์„ฑํ•œ ํƒœ๊ทธ๋ฅผ ํ•จ๊ป˜ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * ๊ธฐ๋ณธ ํƒœ๊ทธ๊ฐ€ ๋จผ์ € ์˜ค๊ณ , ๊ฐ™์€ ๊ทธ๋ฃน ์•ˆ์—์„œ๋Š” ํƒœ๊ทธ ID ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌ๋ฉ๋‹ˆ๋‹ค. + * @summary ํƒœ๊ทธ ๋ชฉ๋ก ์กฐํšŒ + */ +export const getTags = ( + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/tags`, method: "GET", signal }, + options, + ); +}; + +export const getGetTagsQueryKey = () => { + return [`/api/v1/tags`] as const; +}; + +export const getGetTagsQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>(options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; +}) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetTagsQueryKey(); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getTags(requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetTagsQueryResult = NonNullable< + Awaited> +>; +export type GetTagsQueryError = ErrorType; + +export function useGetTags< + TData = Awaited>, + TError = ErrorType, +>( + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetTags< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetTags< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary ํƒœ๊ทธ ๋ชฉ๋ก ์กฐํšŒ + */ + +export function useGetTags< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetTagsQueryOptions(options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} + +/** + * ์‹ ๊ทœ ํƒœ๊ทธ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. ์ƒ์„ฑ๋œ ํƒœ๊ทธ๋Š” ์š”์ฒญํ•œ ์‚ฌ์šฉ์ž๋งŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ isDefault๋Š” ํ•ญ์ƒ false์ž…๋‹ˆ๋‹ค. + * ๋ชจ๋“  ์‚ฌ์šฉ์ž๊ฐ€ ๊ณต์œ ํ•˜๋Š” ๊ธฐ๋ณธ ํƒœ๊ทธ ๋˜๋Š” ๋ณธ์ธ์ด ์ด๋ฏธ ๋งŒ๋“  ํƒœ๊ทธ์™€ ์ด๋ฆ„์ด ๊ฐ™์œผ๋ฉด ์ƒ์„ฑํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. + * @summary ํƒœ๊ทธ ์ƒ์„ฑ + */ +export const createTag = ( + tagCreateRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/tags`, + method: "POST", + headers: { "Content-Type": "application/json" }, + data: tagCreateRequest, + signal, + }, + options, + ); +}; + +export const getCreateTagMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + const mutationKey = ["createTag"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { data: BodyType } + > = (props) => { + const { data } = props ?? {}; + + return createTag(data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type CreateTagMutationResult = NonNullable< + Awaited> +>; +export type CreateTagMutationBody = BodyType; +export type CreateTagMutationError = ErrorType; + +/** + * @summary ํƒœ๊ทธ ์ƒ์„ฑ + */ +export const useCreateTag = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + return useMutation(getCreateTagMutationOptions(options), queryClient); +}; +/** + * ๋ณธ์ธ์ด ๋“ฑ๋กํ•œ ํƒœ๊ทธ๋ฅผ ์‚ญ์ œํ•ฉ๋‹ˆ๋‹ค. + * ๋ชจ๋“  ์‚ฌ์šฉ์ž๊ฐ€ ๊ณต์œ ํ•˜๋Š” ๊ธฐ๋ณธ ํƒœ๊ทธ๋Š” ์‚ญ์ œํ•  ์ˆ˜ ์—†์œผ๋ฉฐ, ๋‹ค๋ฅธ ์‚ฌ์šฉ์ž์˜ ํƒœ๊ทธ๋Š” ์กฐํšŒ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. + * @summary ํƒœ๊ทธ ์‚ญ์ œ + */ +export const deleteTag = ( + tagId: number, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/tags/${tagId}`, method: "DELETE", signal }, + options, + ); +}; + +export const getDeleteTagMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { tagId: number }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { tagId: number }, + TContext +> => { + const mutationKey = ["deleteTag"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { tagId: number } + > = (props) => { + const { tagId } = props ?? {}; + + return deleteTag(tagId, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type DeleteTagMutationResult = NonNullable< + Awaited> +>; + +export type DeleteTagMutationError = ErrorType; + +/** + * @summary ํƒœ๊ทธ ์‚ญ์ œ + */ +export const useDeleteTag = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { tagId: number }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { tagId: number }, + TContext +> => { + return useMutation(getDeleteTagMutationOptions(options), queryClient); +}; diff --git a/apps/timo-web/api/generated/endpoints/tag/tag.zod.ts b/apps/timo-web/api/generated/endpoints/tag/tag.zod.ts new file mode 100644 index 00000000..984b6460 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/tag/tag.zod.ts @@ -0,0 +1,40 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * ๋ชจ๋“  ์‚ฌ์šฉ์ž๊ฐ€ ๊ณต์œ ํ•˜๋Š” ๊ธฐ๋ณธ ํƒœ๊ทธ์™€ ๋ณธ์ธ์ด ์ƒ์„ฑํ•œ ํƒœ๊ทธ๋ฅผ ํ•จ๊ป˜ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * ๊ธฐ๋ณธ ํƒœ๊ทธ๊ฐ€ ๋จผ์ € ์˜ค๊ณ , ๊ฐ™์€ ๊ทธ๋ฃน ์•ˆ์—์„œ๋Š” ํƒœ๊ทธ ID ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ์ •๋ ฌ๋ฉ๋‹ˆ๋‹ค. + * @summary ํƒœ๊ทธ ๋ชฉ๋ก ์กฐํšŒ + */ +export const GetTagsResponse = zod.unknown(); + +/** + * ์‹ ๊ทœ ํƒœ๊ทธ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. ์ƒ์„ฑ๋œ ํƒœ๊ทธ๋Š” ์š”์ฒญํ•œ ์‚ฌ์šฉ์ž๋งŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ isDefault๋Š” ํ•ญ์ƒ false์ž…๋‹ˆ๋‹ค. + * ๋ชจ๋“  ์‚ฌ์šฉ์ž๊ฐ€ ๊ณต์œ ํ•˜๋Š” ๊ธฐ๋ณธ ํƒœ๊ทธ ๋˜๋Š” ๋ณธ์ธ์ด ์ด๋ฏธ ๋งŒ๋“  ํƒœ๊ทธ์™€ ์ด๋ฆ„์ด ๊ฐ™์œผ๋ฉด ์ƒ์„ฑํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. + * @summary ํƒœ๊ทธ ์ƒ์„ฑ + */ +export const createTagBodyNameMin = 0; +export const createTagBodyNameMax = 10; + +export const CreateTagBody = zod.object({ + name: zod.string().min(createTagBodyNameMin).max(createTagBodyNameMax), +}); + +export const CreateTagResponse = zod.void(); + +/** + * ๋ณธ์ธ์ด ๋“ฑ๋กํ•œ ํƒœ๊ทธ๋ฅผ ์‚ญ์ œํ•ฉ๋‹ˆ๋‹ค. + * ๋ชจ๋“  ์‚ฌ์šฉ์ž๊ฐ€ ๊ณต์œ ํ•˜๋Š” ๊ธฐ๋ณธ ํƒœ๊ทธ๋Š” ์‚ญ์ œํ•  ์ˆ˜ ์—†์œผ๋ฉฐ, ๋‹ค๋ฅธ ์‚ฌ์šฉ์ž์˜ ํƒœ๊ทธ๋Š” ์กฐํšŒ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. + * @summary ํƒœ๊ทธ ์‚ญ์ œ + */ +export const DeleteTagParams = zod.object({ + tagId: zod.number().describe("์‚ญ์ œํ•  ํƒœ๊ทธ ID"), +}); + +export const DeleteTagResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/endpoints/terms/terms.ts b/apps/timo-web/api/generated/endpoints/terms/terms.ts new file mode 100644 index 00000000..78c585c1 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/terms/terms.ts @@ -0,0 +1,190 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useQuery } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType } from "../../../client/custom-instance"; +import type { + BaseResponseTermsListResponse, + ErrorDto, + GetTermsParams, +} from "../../models"; +import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, + QueryFunction, + QueryKey, + UndefinedInitialDataOptions, + UseQueryOptions, + UseQueryResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + +/** + * ์„œ๋น„์Šค ์ด์šฉ์•ฝ๊ด€ ๋ฐ ๊ฐœ์ธ์ •๋ณด ์ฒ˜๋ฆฌ๋ฐฉ์นจ์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * type์„ ์ง€์ •ํ•˜์ง€ ์•Š์œผ๋ฉด ์ „์ฒด ์•ฝ๊ด€์„ ์กฐํšŒํ•˜๊ณ , SERVICE ๋˜๋Š” PRIVACY๋ฅผ ์ง€์ •ํ•˜๋ฉด ํ•ด๋‹น ์•ฝ๊ด€๋งŒ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * @summary ์•ฝ๊ด€ ๋‚ด์šฉ ์กฐํšŒ + */ +export const getTerms = ( + params?: GetTermsParams, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/terms`, method: "GET", params, signal }, + options, + ); +}; + +export const getGetTermsQueryKey = (params?: GetTermsParams) => { + return [`/api/v1/terms`, ...(params ? [params] : [])] as const; +}; + +export const getGetTermsQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>( + params?: GetTermsParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetTermsQueryKey(params); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getTerms(params, requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetTermsQueryResult = NonNullable< + Awaited> +>; +export type GetTermsQueryError = ErrorType; + +export function useGetTerms< + TData = Awaited>, + TError = ErrorType, +>( + params: undefined | GetTermsParams, + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetTerms< + TData = Awaited>, + TError = ErrorType, +>( + params?: GetTermsParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetTerms< + TData = Awaited>, + TError = ErrorType, +>( + params?: GetTermsParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary ์•ฝ๊ด€ ๋‚ด์šฉ ์กฐํšŒ + */ + +export function useGetTerms< + TData = Awaited>, + TError = ErrorType, +>( + params?: GetTermsParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetTermsQueryOptions(params, options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/apps/timo-web/api/generated/endpoints/terms/terms.zod.ts b/apps/timo-web/api/generated/endpoints/terms/terms.zod.ts new file mode 100644 index 00000000..76a2ffa0 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/terms/terms.zod.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * ์„œ๋น„์Šค ์ด์šฉ์•ฝ๊ด€ ๋ฐ ๊ฐœ์ธ์ •๋ณด ์ฒ˜๋ฆฌ๋ฐฉ์นจ์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * type์„ ์ง€์ •ํ•˜์ง€ ์•Š์œผ๋ฉด ์ „์ฒด ์•ฝ๊ด€์„ ์กฐํšŒํ•˜๊ณ , SERVICE ๋˜๋Š” PRIVACY๋ฅผ ์ง€์ •ํ•˜๋ฉด ํ•ด๋‹น ์•ฝ๊ด€๋งŒ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * @summary ์•ฝ๊ด€ ๋‚ด์šฉ ์กฐํšŒ + */ +export const GetTermsQueryParams = zod.object({ + type: zod.string().optional().describe("์•ฝ๊ด€ ํƒ€์ž…(SERVICE, PRIVACY)"), +}); + +export const GetTermsResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/endpoints/time-box/time-box.ts b/apps/timo-web/api/generated/endpoints/time-box/time-box.ts new file mode 100644 index 00000000..caf10a2a --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/time-box/time-box.ts @@ -0,0 +1,196 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useQuery } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType } from "../../../client/custom-instance"; +import type { + BaseResponseListTimeBoxResponse, + ErrorDto, + GetTimeBoxesParams, +} from "../../models"; +import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + QueryClient, + QueryFunction, + QueryKey, + UndefinedInitialDataOptions, + UseQueryOptions, + UseQueryResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + +/** + * ์ง€์ •ํ•œ ๋‚ ์งœ์˜ ํƒ€์ž„๋ผ์ธ์— ํ‘œ์‹œํ•  ํƒ€์ž„๋ฐ•์Šค ๋ชฉ๋ก์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * ์‹ค์ œ๋กœ ํƒ€์ด๋จธ๊ฐ€ ์ž‘๋™ํ•œ TimerSession ๋‹จ์œ„๋กœ ๋ฐ˜ํ™˜ํ•˜๋ฏ€๋กœ ์ผ์‹œ์ •์ง€ ๊ตฌ๊ฐ„์€ ์ œ์™ธ๋ฉ๋‹ˆ๋‹ค. + * ํƒ€์ด๋จธ ์žฌ๊ฐœ ์‹œ ๊ฐ™์€ timerId์— ์ƒˆ๋กœ์šด sessionId๋ฅผ ๊ฐ€์ง„ ํƒ€์ž„๋ฐ•์Šค๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. + * startAction๊ณผ endAction์œผ๋กœ ์‹œ์ž‘, ์ผ์‹œ์ •์ง€, ์žฌ๊ฐœ, ์™„๋ฃŒ ์‹œ์ ์„ ๊ตฌ๋ถ„ํ•ฉ๋‹ˆ๋‹ค. + * ์‚ฌ์šฉ์ž ์ข…๋ฃŒ์™€ ์˜ˆ์ƒ์‹œ๊ฐ„ ์™„๋ฃŒ๋Š” ๋ชจ๋‘ COMPLETE ์•ก์…˜์œผ๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * ์™„๋ฃŒ ์•ก์…˜์ด ์žˆ๋Š” ๋งˆ์ง€๋ง‰ ํƒ€์ž„๋ฐ•์Šค์—๋งŒ ์ „์ฒด ์‹ค์ œ ์ˆ˜ํ–‰ ์‹œ๊ฐ„์„ ๋ถ„ ๋‹จ์œ„๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * ์ง„ํ–‰ ์ค‘์ธ ๊ตฌ๊ฐ„์€ endedAt๊ณผ endAction์ด null๋กœ ๋ฐ˜ํ™˜๋ฉ๋‹ˆ๋‹ค. + * ์กฐํšŒ ๊ฒฐ๊ณผ๊ฐ€ ์—†์œผ๋ฉด ๋นˆ ๋ฐฐ์—ด์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary ๋‚ ์งœ๋ณ„ ํƒ€์ž„๋ฐ•์Šค ์กฐํšŒ + */ +export const getTimeBoxes = ( + params: GetTimeBoxesParams, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/time-boxes`, method: "GET", params, signal }, + options, + ); +}; + +export const getGetTimeBoxesQueryKey = (params?: GetTimeBoxesParams) => { + return [`/api/v1/time-boxes`, ...(params ? [params] : [])] as const; +}; + +export const getGetTimeBoxesQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>( + params: GetTimeBoxesParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetTimeBoxesQueryKey(params); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getTimeBoxes(params, requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetTimeBoxesQueryResult = NonNullable< + Awaited> +>; +export type GetTimeBoxesQueryError = ErrorType; + +export function useGetTimeBoxes< + TData = Awaited>, + TError = ErrorType, +>( + params: GetTimeBoxesParams, + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetTimeBoxes< + TData = Awaited>, + TError = ErrorType, +>( + params: GetTimeBoxesParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetTimeBoxes< + TData = Awaited>, + TError = ErrorType, +>( + params: GetTimeBoxesParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary ๋‚ ์งœ๋ณ„ ํƒ€์ž„๋ฐ•์Šค ์กฐํšŒ + */ + +export function useGetTimeBoxes< + TData = Awaited>, + TError = ErrorType, +>( + params: GetTimeBoxesParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetTimeBoxesQueryOptions(params, options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/apps/timo-web/api/generated/endpoints/time-box/time-box.zod.ts b/apps/timo-web/api/generated/endpoints/time-box/time-box.zod.ts new file mode 100644 index 00000000..a10721c4 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/time-box/time-box.zod.ts @@ -0,0 +1,25 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * ์ง€์ •ํ•œ ๋‚ ์งœ์˜ ํƒ€์ž„๋ผ์ธ์— ํ‘œ์‹œํ•  ํƒ€์ž„๋ฐ•์Šค ๋ชฉ๋ก์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * ์‹ค์ œ๋กœ ํƒ€์ด๋จธ๊ฐ€ ์ž‘๋™ํ•œ TimerSession ๋‹จ์œ„๋กœ ๋ฐ˜ํ™˜ํ•˜๋ฏ€๋กœ ์ผ์‹œ์ •์ง€ ๊ตฌ๊ฐ„์€ ์ œ์™ธ๋ฉ๋‹ˆ๋‹ค. + * ํƒ€์ด๋จธ ์žฌ๊ฐœ ์‹œ ๊ฐ™์€ timerId์— ์ƒˆ๋กœ์šด sessionId๋ฅผ ๊ฐ€์ง„ ํƒ€์ž„๋ฐ•์Šค๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. + * startAction๊ณผ endAction์œผ๋กœ ์‹œ์ž‘, ์ผ์‹œ์ •์ง€, ์žฌ๊ฐœ, ์™„๋ฃŒ ์‹œ์ ์„ ๊ตฌ๋ถ„ํ•ฉ๋‹ˆ๋‹ค. + * ์‚ฌ์šฉ์ž ์ข…๋ฃŒ์™€ ์˜ˆ์ƒ์‹œ๊ฐ„ ์™„๋ฃŒ๋Š” ๋ชจ๋‘ COMPLETE ์•ก์…˜์œผ๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * ์™„๋ฃŒ ์•ก์…˜์ด ์žˆ๋Š” ๋งˆ์ง€๋ง‰ ํƒ€์ž„๋ฐ•์Šค์—๋งŒ ์ „์ฒด ์‹ค์ œ ์ˆ˜ํ–‰ ์‹œ๊ฐ„์„ ๋ถ„ ๋‹จ์œ„๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * ์ง„ํ–‰ ์ค‘์ธ ๊ตฌ๊ฐ„์€ endedAt๊ณผ endAction์ด null๋กœ ๋ฐ˜ํ™˜๋ฉ๋‹ˆ๋‹ค. + * ์กฐํšŒ ๊ฒฐ๊ณผ๊ฐ€ ์—†์œผ๋ฉด ๋นˆ ๋ฐฐ์—ด์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary ๋‚ ์งœ๋ณ„ ํƒ€์ž„๋ฐ•์Šค ์กฐํšŒ + */ +export const GetTimeBoxesQueryParams = zod.object({ + date: zod.string().describe("์กฐํšŒ ๋‚ ์งœ"), +}); + +export const GetTimeBoxesResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/endpoints/timer/timer.ts b/apps/timo-web/api/generated/endpoints/timer/timer.ts new file mode 100644 index 00000000..031578c4 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/timer/timer.ts @@ -0,0 +1,631 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useMutation, useQuery } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { + BaseResponseTimerActiveResponse, + BaseResponseTimerExtendResponse, + BaseResponseTimerFinishResponse, + BaseResponseTimerStartResponse, + BaseResponseTimerStatusResponse, + ErrorDto, + TimerActionRequest, + TimerExtendRequest, +} from "../../models"; +import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + MutationFunction, + QueryClient, + QueryFunction, + QueryKey, + UndefinedInitialDataOptions, + UseMutationOptions, + UseMutationResult, + UseQueryOptions, + UseQueryResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + +/** + * ํˆฌ๋‘์˜ ํƒ€์ด๋จธ๋ฅผ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.
+ * ํ•œ ๋ฒˆ์— ํ•œ ๊ฐœ์˜ ํƒ€์ด๋จธ๋งŒ ์‹คํ–‰ ๊ฐ€๋Šฅํ•˜๋ฉฐ, ์ด๋ฏธ ์‹คํ–‰/์ผ์‹œ์ •์ง€ ์ค‘์ธ ํƒ€์ด๋จธ๊ฐ€ ์žˆ์œผ๋ฉด 409๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary ํƒ€์ด๋จธ ์‹œ์ž‘ + */ +export const startTimer = ( + todoId: number, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/todos/${todoId}/timers/start`, method: "POST", signal }, + options, + ); +}; + +export const getStartTimerMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { todoId: number }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { todoId: number }, + TContext +> => { + const mutationKey = ["startTimer"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { todoId: number } + > = (props) => { + const { todoId } = props ?? {}; + + return startTimer(todoId, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type StartTimerMutationResult = NonNullable< + Awaited> +>; + +export type StartTimerMutationError = ErrorType; + +/** + * @summary ํƒ€์ด๋จธ ์‹œ์ž‘ + */ +export const useStartTimer = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { todoId: number }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { todoId: number }, + TContext +> => { + return useMutation(getStartTimerMutationOptions(options), queryClient); +}; +/** + * ์‚ฌ์šฉ์ž์˜ ์š”์ฒญ์œผ๋กœ ํƒ€์ด๋จธ๋ฅผ ์ข…๋ฃŒํ•ฉ๋‹ˆ๋‹ค. + * ์ข…๋ฃŒ ์‹œ๊ฐ ๊ธฐ๋ก, ์‹ค์ œ ์ˆ˜ํ–‰ ์‹œ๊ฐ„ ๊ณ„์‚ฐ (status โ†’ STOPPED) + * ํ•ด๋‹น ๋‚ ์งœ TodoInstance ์™„๋ฃŒ ์ฒ˜๋ฆฌ ๋ฐ ํƒ€์ด๋จธ ์ƒํƒœ ์ดˆ๊ธฐํ™” + * ๊ณ„ํš ์‹œ๊ฐ„๊ณผ ์‹ค์ œ ์ˆ˜ํ–‰ ๊ธฐ๋ก์„ ๋ถ„์„ํ•œ AI ํ”ผ๋“œ๋ฐฑ ๋ฐ˜ํ™˜ + * @summary ํƒ€์ด๋จธ ์ข…๋ฃŒ + */ +export const stopTimer = ( + timerId: number, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/timers/${timerId}/stop`, method: "PATCH", signal }, + options, + ); +}; + +export const getStopTimerMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { timerId: number }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { timerId: number }, + TContext +> => { + const mutationKey = ["stopTimer"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { timerId: number } + > = (props) => { + const { timerId } = props ?? {}; + + return stopTimer(timerId, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type StopTimerMutationResult = NonNullable< + Awaited> +>; + +export type StopTimerMutationError = ErrorType; + +/** + * @summary ํƒ€์ด๋จธ ์ข…๋ฃŒ + */ +export const useStopTimer = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { timerId: number }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { timerId: number }, + TContext +> => { + return useMutation(getStopTimerMutationOptions(options), queryClient); +}; +/** + * ์‹คํ–‰ ์ค‘์ธ ํƒ€์ด๋จธ์˜ ์ผ์‹œ์ •์ง€ / ์žฌ๊ฐœ๋ฅผ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
+ * PAUSE: ํ˜„์žฌ ์„ธ์…˜์˜ paused_at ๊ธฐ๋ก, status โ†’ PAUSED
+ * RESUME: ์ƒˆ ์„ธ์…˜ ์ƒ์„ฑ, status โ†’ RUNNING + * @summary ํƒ€์ด๋จธ ์ผ์‹œ์ •์ง€/์žฌ๊ฐœ + */ +export const changeStatus = ( + timerId: number, + timerActionRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/timers/${timerId}/status`, + method: "PATCH", + headers: { "Content-Type": "application/json" }, + data: timerActionRequest, + signal, + }, + options, + ); +}; + +export const getChangeStatusMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { timerId: number; data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { timerId: number; data: BodyType }, + TContext +> => { + const mutationKey = ["changeStatus"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { timerId: number; data: BodyType } + > = (props) => { + const { timerId, data } = props ?? {}; + + return changeStatus(timerId, data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type ChangeStatusMutationResult = NonNullable< + Awaited> +>; +export type ChangeStatusMutationBody = BodyType; +export type ChangeStatusMutationError = ErrorType; + +/** + * @summary ํƒ€์ด๋จธ ์ผ์‹œ์ •์ง€/์žฌ๊ฐœ + */ +export const useChangeStatus = < + TError = ErrorType, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { timerId: number; data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { timerId: number; data: BodyType }, + TContext +> => { + return useMutation(getChangeStatusMutationOptions(options), queryClient); +}; +/** + * ์‚ฌ์šฉ์ž๊ฐ€ ์ž…๋ ฅํ•œ ์—ฐ์žฅ ์‹œ๊ฐ„์„ ํ˜„์žฌ ํƒ€์ด๋จธ์— ๋ฐ˜์˜ํ•ฉ๋‹ˆ๋‹ค. + * ์—ฐ์žฅ ์‹œ๊ฐ„(๋ถ„)์„ ์ดˆ๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ extended_seconds์— ๋ˆ„์  + * RUNNING, PAUSED ์ƒํƒœ ๋ชจ๋‘์—์„œ ํ˜ธ์ถœ ๊ฐ€๋Šฅํ•˜๋ฉฐ, ํƒ€์ด๋จธ ์ƒํƒœ(status)๋Š” ๋ณ€๊ฒฝ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. + * @summary ํƒ€์ด๋จธ ์—ฐ์žฅ + */ +export const extendTimer = ( + timerId: number, + timerExtendRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/timers/${timerId}/extend`, + method: "PATCH", + headers: { "Content-Type": "application/json" }, + data: timerExtendRequest, + signal, + }, + options, + ); +}; + +export const getExtendTimerMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { timerId: number; data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { timerId: number; data: BodyType }, + TContext +> => { + const mutationKey = ["extendTimer"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { timerId: number; data: BodyType } + > = (props) => { + const { timerId, data } = props ?? {}; + + return extendTimer(timerId, data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type ExtendTimerMutationResult = NonNullable< + Awaited> +>; +export type ExtendTimerMutationBody = BodyType; +export type ExtendTimerMutationError = ErrorType; + +/** + * @summary ํƒ€์ด๋จธ ์—ฐ์žฅ + */ +export const useExtendTimer = < + TError = ErrorType, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { timerId: number; data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { timerId: number; data: BodyType }, + TContext +> => { + return useMutation(getExtendTimerMutationOptions(options), queryClient); +}; +/** + * ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„์ด ๋ชจ๋‘ ๊ฒฝ๊ณผํ•˜์—ฌ ํƒ€์ด๋จธ๋ฅผ ์ž๋™ ์ข…๋ฃŒํ•ฉ๋‹ˆ๋‹ค. + * ์ข…๋ฃŒ ์‹œ๊ฐ ๊ธฐ๋ก, ์‹ค์ œ ์ˆ˜ํ–‰ ์‹œ๊ฐ„ ๊ณ„์‚ฐ (status โ†’ COMPLETED) + * ํ•ด๋‹น ๋‚ ์งœ TodoInstance ์™„๋ฃŒ ์ฒ˜๋ฆฌ ๋ฐ ํƒ€์ด๋จธ ์ƒํƒœ ์ดˆ๊ธฐํ™” + * ๊ณ„ํš ์‹œ๊ฐ„๊ณผ ์‹ค์ œ ์ˆ˜ํ–‰ ๊ธฐ๋ก์„ ๋ถ„์„ํ•œ AI ํ”ผ๋“œ๋ฐฑ ๋ฐ˜ํ™˜ + * AI ํ”ผ๋“œ๋ฐฑ ์ƒ์„ฑ์— ์‹คํŒจํ•ด๋„ ํƒ€์ด๋จธ ์™„๋ฃŒ๋Š” ์ •์ƒ ์ฒ˜๋ฆฌ๋˜๋ฉฐ aiFeedback์€ null๋กœ ๋ฐ˜ํ™˜ + * @summary ํƒ€์ด๋จธ ์‹œ๊ฐ„ ์™„๋ฃŒ + */ +export const completeTimer = ( + timerId: number, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/timers/${timerId}/complete`, method: "PATCH", signal }, + options, + ); +}; + +export const getCompleteTimerMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { timerId: number }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { timerId: number }, + TContext +> => { + const mutationKey = ["completeTimer"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { timerId: number } + > = (props) => { + const { timerId } = props ?? {}; + + return completeTimer(timerId, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type CompleteTimerMutationResult = NonNullable< + Awaited> +>; + +export type CompleteTimerMutationError = ErrorType; + +/** + * @summary ํƒ€์ด๋จธ ์‹œ๊ฐ„ ์™„๋ฃŒ + */ +export const useCompleteTimer = < + TError = ErrorType, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { timerId: number }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { timerId: number }, + TContext +> => { + return useMutation(getCompleteTimerMutationOptions(options), queryClient); +}; +/** + * ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž์˜ ํ˜„์žฌ ์‹คํ–‰ ์ค‘(RUNNING/PAUSED)์ธ ํƒ€์ด๋จธ๋ฅผ ๋‹จ๊ฑด ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * ํ•œ ์‚ฌ์šฉ์ž๋‹น ์‹œ์ž‘ ์ดํ›„ ์™„๋ฃŒ/์ข…๋ฃŒ๋˜์ง€ ์•Š์€ ํƒ€์ด๋จธ๋Š” ์ตœ๋Œ€ 1๊ฐœ๋งŒ ์กด์žฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. + * ์‹คํ–‰ ์ค‘์ธ ํƒ€์ด๋จธ๊ฐ€ ์—†์œผ๋ฉด data: null์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary ํ˜„์žฌ ์‹คํ–‰ ์ค‘์ธ ํƒ€์ด๋จธ ์กฐํšŒ + */ +export const getActiveTimer = ( + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/timers/active`, method: "GET", signal }, + options, + ); +}; + +export const getGetActiveTimerQueryKey = () => { + return [`/api/v1/timers/active`] as const; +}; + +export const getGetActiveTimerQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>(options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; +}) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetActiveTimerQueryKey(); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getActiveTimer(requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetActiveTimerQueryResult = NonNullable< + Awaited> +>; +export type GetActiveTimerQueryError = ErrorType; + +export function useGetActiveTimer< + TData = Awaited>, + TError = ErrorType, +>( + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetActiveTimer< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetActiveTimer< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary ํ˜„์žฌ ์‹คํ–‰ ์ค‘์ธ ํƒ€์ด๋จธ ์กฐํšŒ + */ + +export function useGetActiveTimer< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetActiveTimerQueryOptions(options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} diff --git a/apps/timo-web/api/generated/endpoints/timer/timer.zod.ts b/apps/timo-web/api/generated/endpoints/timer/timer.zod.ts new file mode 100644 index 00000000..f40b9fbf --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/timer/timer.zod.ts @@ -0,0 +1,92 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * ํˆฌ๋‘์˜ ํƒ€์ด๋จธ๋ฅผ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.
+ * ํ•œ ๋ฒˆ์— ํ•œ ๊ฐœ์˜ ํƒ€์ด๋จธ๋งŒ ์‹คํ–‰ ๊ฐ€๋Šฅํ•˜๋ฉฐ, ์ด๋ฏธ ์‹คํ–‰/์ผ์‹œ์ •์ง€ ์ค‘์ธ ํƒ€์ด๋จธ๊ฐ€ ์žˆ์œผ๋ฉด 409๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary ํƒ€์ด๋จธ ์‹œ์ž‘ + */ +export const StartTimerParams = zod.object({ + todoId: zod.number().describe("ํƒ€์ด๋จธ๋ฅผ ์‹œ์ž‘ํ•  ํˆฌ๋‘ ID"), +}); + +export const StartTimerResponse = zod.void(); + +/** + * ์‚ฌ์šฉ์ž์˜ ์š”์ฒญ์œผ๋กœ ํƒ€์ด๋จธ๋ฅผ ์ข…๋ฃŒํ•ฉ๋‹ˆ๋‹ค. + * ์ข…๋ฃŒ ์‹œ๊ฐ ๊ธฐ๋ก, ์‹ค์ œ ์ˆ˜ํ–‰ ์‹œ๊ฐ„ ๊ณ„์‚ฐ (status โ†’ STOPPED) + * ํ•ด๋‹น ๋‚ ์งœ TodoInstance ์™„๋ฃŒ ์ฒ˜๋ฆฌ ๋ฐ ํƒ€์ด๋จธ ์ƒํƒœ ์ดˆ๊ธฐํ™” + * ๊ณ„ํš ์‹œ๊ฐ„๊ณผ ์‹ค์ œ ์ˆ˜ํ–‰ ๊ธฐ๋ก์„ ๋ถ„์„ํ•œ AI ํ”ผ๋“œ๋ฐฑ ๋ฐ˜ํ™˜ + * @summary ํƒ€์ด๋จธ ์ข…๋ฃŒ + */ +export const StopTimerParams = zod.object({ + timerId: zod.number().describe("ํƒ€์ด๋จธ ๊ธฐ๋ก ID"), +}); + +export const StopTimerResponse = zod.unknown(); + +/** + * ์‹คํ–‰ ์ค‘์ธ ํƒ€์ด๋จธ์˜ ์ผ์‹œ์ •์ง€ / ์žฌ๊ฐœ๋ฅผ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
+ * PAUSE: ํ˜„์žฌ ์„ธ์…˜์˜ paused_at ๊ธฐ๋ก, status โ†’ PAUSED
+ * RESUME: ์ƒˆ ์„ธ์…˜ ์ƒ์„ฑ, status โ†’ RUNNING + * @summary ํƒ€์ด๋จธ ์ผ์‹œ์ •์ง€/์žฌ๊ฐœ + */ +export const ChangeStatusParams = zod.object({ + timerId: zod.number().describe("ํƒ€์ด๋จธ ๊ธฐ๋ก ID"), +}); + +export const ChangeStatusBody = zod.object({ + action: zod.enum(["PAUSE", "RESUME"]).describe("ํƒ€์ด๋จธ ๋™์ž‘ (PAUSE/RESUME)"), +}); + +export const ChangeStatusResponse = zod.unknown(); + +/** + * ์‚ฌ์šฉ์ž๊ฐ€ ์ž…๋ ฅํ•œ ์—ฐ์žฅ ์‹œ๊ฐ„์„ ํ˜„์žฌ ํƒ€์ด๋จธ์— ๋ฐ˜์˜ํ•ฉ๋‹ˆ๋‹ค. + * ์—ฐ์žฅ ์‹œ๊ฐ„(๋ถ„)์„ ์ดˆ๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ extended_seconds์— ๋ˆ„์  + * RUNNING, PAUSED ์ƒํƒœ ๋ชจ๋‘์—์„œ ํ˜ธ์ถœ ๊ฐ€๋Šฅํ•˜๋ฉฐ, ํƒ€์ด๋จธ ์ƒํƒœ(status)๋Š” ๋ณ€๊ฒฝ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. + * @summary ํƒ€์ด๋จธ ์—ฐ์žฅ + */ +export const ExtendTimerParams = zod.object({ + timerId: zod.number().describe("ํƒ€์ด๋จธ ๊ธฐ๋ก ID"), +}); + +export const extendTimerBodyExtendMinutesMax = 720; + +export const ExtendTimerBody = zod.object({ + extendMinutes: zod + .number() + .min(1) + .max(extendTimerBodyExtendMinutesMax) + .describe("์—ฐ์žฅํ•  ์‹œ๊ฐ„ (๋ถ„), 1 ์ด์ƒ"), +}); + +export const ExtendTimerResponse = zod.unknown(); + +/** + * ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„์ด ๋ชจ๋‘ ๊ฒฝ๊ณผํ•˜์—ฌ ํƒ€์ด๋จธ๋ฅผ ์ž๋™ ์ข…๋ฃŒํ•ฉ๋‹ˆ๋‹ค. + * ์ข…๋ฃŒ ์‹œ๊ฐ ๊ธฐ๋ก, ์‹ค์ œ ์ˆ˜ํ–‰ ์‹œ๊ฐ„ ๊ณ„์‚ฐ (status โ†’ COMPLETED) + * ํ•ด๋‹น ๋‚ ์งœ TodoInstance ์™„๋ฃŒ ์ฒ˜๋ฆฌ ๋ฐ ํƒ€์ด๋จธ ์ƒํƒœ ์ดˆ๊ธฐํ™” + * ๊ณ„ํš ์‹œ๊ฐ„๊ณผ ์‹ค์ œ ์ˆ˜ํ–‰ ๊ธฐ๋ก์„ ๋ถ„์„ํ•œ AI ํ”ผ๋“œ๋ฐฑ ๋ฐ˜ํ™˜ + * AI ํ”ผ๋“œ๋ฐฑ ์ƒ์„ฑ์— ์‹คํŒจํ•ด๋„ ํƒ€์ด๋จธ ์™„๋ฃŒ๋Š” ์ •์ƒ ์ฒ˜๋ฆฌ๋˜๋ฉฐ aiFeedback์€ null๋กœ ๋ฐ˜ํ™˜ + * @summary ํƒ€์ด๋จธ ์‹œ๊ฐ„ ์™„๋ฃŒ + */ +export const CompleteTimerParams = zod.object({ + timerId: zod.number().describe("ํƒ€์ด๋จธ ๊ธฐ๋ก ID"), +}); + +export const CompleteTimerResponse = zod.unknown(); + +/** + * ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž์˜ ํ˜„์žฌ ์‹คํ–‰ ์ค‘(RUNNING/PAUSED)์ธ ํƒ€์ด๋จธ๋ฅผ ๋‹จ๊ฑด ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * ํ•œ ์‚ฌ์šฉ์ž๋‹น ์‹œ์ž‘ ์ดํ›„ ์™„๋ฃŒ/์ข…๋ฃŒ๋˜์ง€ ์•Š์€ ํƒ€์ด๋จธ๋Š” ์ตœ๋Œ€ 1๊ฐœ๋งŒ ์กด์žฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. + * ์‹คํ–‰ ์ค‘์ธ ํƒ€์ด๋จธ๊ฐ€ ์—†์œผ๋ฉด data: null์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * @summary ํ˜„์žฌ ์‹คํ–‰ ์ค‘์ธ ํƒ€์ด๋จธ ์กฐํšŒ + */ +export const GetActiveTimerResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/endpoints/todo/todo.ts b/apps/timo-web/api/generated/endpoints/todo/todo.ts new file mode 100644 index 00000000..af0ab788 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/todo/todo.ts @@ -0,0 +1,814 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useMutation, useQuery } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { + BaseResponseObject, + BaseResponseSubtaskStatusChangeResponse, + BaseResponseTodoCreateResponse, + BaseResponseTodoDetailResponse, + BaseResponseTodoReorderResponse, + BaseResponseTodoStatusChangeResponse, + ErrorDto, + GetTodoDetailParams, + SubtaskStatusUpdateRequest, + TodoCreateRequest, + TodoReorderRequest, + TodoStatusUpdateRequest, + TodoUpdateRequest, +} from "../../models"; +import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + MutationFunction, + QueryClient, + QueryFunction, + QueryKey, + UndefinedInitialDataOptions, + UseMutationOptions, + UseMutationResult, + UseQueryOptions, + UseQueryResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + +/** + * ์‚ฌ์šฉ์ž๊ฐ€ ์ƒˆ๋กœ์šด TODO๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. + * + * ์•„์ด์ฝ˜, ์ œ๋ชฉ, ํ•˜์œ„ ํƒœ์Šคํฌ, ๋‚ ์งœ, ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„, ์šฐ์„ ์ˆœ์œ„, ํƒœ๊ทธ, ๋ฐ˜๋ณต ์„ค์ •, ๋ฉ”๋ชจ๋ฅผ ํ•จ๊ป˜ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. + * ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„์€ duration ํ•„๋“œ์— ๋ถ„:์ดˆ ํ˜•์‹์œผ๋กœ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ: 00:15 + * ๋ฐ˜๋ณต ์ผ์ •์€ ์‹œ์ž‘์ผ ๊ธฐ์ค€ ์ตœ๋Œ€ 1๋…„๊นŒ์ง€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์ƒ์„ฑ + */ +export const createTodo = ( + todoCreateRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/todos`, + method: "POST", + headers: { "Content-Type": "application/json" }, + data: todoCreateRequest, + signal, + }, + options, + ); +}; + +export const getCreateTodoMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + const mutationKey = ["createTodo"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { data: BodyType } + > = (props) => { + const { data } = props ?? {}; + + return createTodo(data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type CreateTodoMutationResult = NonNullable< + Awaited> +>; +export type CreateTodoMutationBody = BodyType; +export type CreateTodoMutationError = ErrorType; + +/** + * @summary TODO ์ƒ์„ฑ + */ +export const useCreateTodo = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + return useMutation(getCreateTodoMutationOptions(options), queryClient); +}; +/** + * todoId์™€ ์กฐํšŒ ๊ธฐ์ค€ ๋‚ ์งœ(date)๋กœ ๋‹จ์ผ TODO์˜ ์ƒ์„ธ ์ •๋ณด๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * + * ์•„์ด์ฝ˜, ์ œ๋ชฉ, ์™„๋ฃŒ ์—ฌ๋ถ€, ๋‚ ์งœ/์š”์ผ, ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„, ์šฐ์„ ์ˆœ์œ„, ํƒœ๊ทธ, + * ๋ฐ˜๋ณต ์„ค์ •, ํƒ€์ด๋จธ ์ƒํƒœ, ๋ฉ”๋ชจ, ์ •๋ ฌ ์ˆœ์„œ, ํ•˜์œ„ ํƒœ์Šคํฌ ๋ชฉ๋ก์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * + * ์™„๋ฃŒ ์—ฌ๋ถ€ยทํƒ€์ด๋จธ ์ƒํƒœยท์ •๋ ฌ ์ˆœ์„œ๋Š” date์— ํ•ด๋‹นํ•˜๋Š” ์ธ์Šคํ„ด์Šค ๊ธฐ์ค€์œผ๋กœ ๋ฐ˜ํ™˜๋˜๋ฏ€๋กœ, + * ๋ฐ˜๋ณต TODO์˜ ๊ฒฝ์šฐ ์กฐํšŒํ•˜๋ ค๋Š” ๋‚ ์งœ๋ฅผ date๋กœ ์ „๋‹ฌํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์ƒ์„ธ ์กฐํšŒ + */ +export const getTodoDetail = ( + todoId: number, + params: GetTodoDetailParams, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/todos/${todoId}`, method: "GET", params, signal }, + options, + ); +}; + +export const getGetTodoDetailQueryKey = ( + todoId: number, + params?: GetTodoDetailParams, +) => { + return [`/api/v1/todos/${todoId}`, ...(params ? [params] : [])] as const; +}; + +export const getGetTodoDetailQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>( + todoId: number, + params: GetTodoDetailParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, +) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = + queryOptions?.queryKey ?? getGetTodoDetailQueryKey(todoId, params); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getTodoDetail(todoId, params, requestOptions, signal); + + return { + queryKey, + queryFn, + enabled: todoId !== null && todoId !== undefined, + ...queryOptions, + } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetTodoDetailQueryResult = NonNullable< + Awaited> +>; +export type GetTodoDetailQueryError = ErrorType; + +export function useGetTodoDetail< + TData = Awaited>, + TError = ErrorType, +>( + todoId: number, + params: GetTodoDetailParams, + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetTodoDetail< + TData = Awaited>, + TError = ErrorType, +>( + todoId: number, + params: GetTodoDetailParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetTodoDetail< + TData = Awaited>, + TError = ErrorType, +>( + todoId: number, + params: GetTodoDetailParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary TODO ์ƒ์„ธ ์กฐํšŒ + */ + +export function useGetTodoDetail< + TData = Awaited>, + TError = ErrorType, +>( + todoId: number, + params: GetTodoDetailParams, + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetTodoDetailQueryOptions(todoId, params, options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} + +/** + * TODO์™€ ์—ฐ๊ฒฐ๋œ ํ•˜์œ„ ํƒœ์Šคํฌ, ๋ฐ˜๋ณต ๊ทœ์น™์„ ํ•จ๊ป˜ ์‚ญ์ œํ•ฉ๋‹ˆ๋‹ค. + * ํ•ด๋‹น TODO์— ์‹คํ–‰ ์ค‘์ด๊ฑฐ๋‚˜ ์ผ์‹œ์ •์ง€๋œ ํƒ€์ด๋จธ๊ฐ€ ์žˆ์œผ๋ฉด ์‚ญ์ œํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์‚ญ์ œ + */ +export const deleteTodo = ( + todoId: number, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/todos/${todoId}`, method: "DELETE", signal }, + options, + ); +}; + +export const getDeleteTodoMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { todoId: number }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { todoId: number }, + TContext +> => { + const mutationKey = ["deleteTodo"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { todoId: number } + > = (props) => { + const { todoId } = props ?? {}; + + return deleteTodo(todoId, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type DeleteTodoMutationResult = NonNullable< + Awaited> +>; + +export type DeleteTodoMutationError = ErrorType; + +/** + * @summary TODO ์‚ญ์ œ + */ +export const useDeleteTodo = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { todoId: number }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { todoId: number }, + TContext +> => { + return useMutation(getDeleteTodoMutationOptions(options), queryClient); +}; +/** + * ๊ธฐ์กด TODO์˜ ์ œ๋ชฉ, ๋ฉ”๋ชจ, ๋‚ ์งœ, ํƒœ๊ทธ, ์šฐ์„ ์ˆœ์œ„, ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„, ์•„์ด์ฝ˜, ๋ฐ˜๋ณต ๊ทœ์น™, ํ•˜์œ„ ํƒœ์Šคํฌ๋ฅผ ๋ถ€๋ถ„ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค. + * + * ์š”์ฒญ body์— ํฌํ•จ๋œ(null์ด ์•„๋‹Œ) ํ•„๋“œ๋งŒ ์ˆ˜์ •๋ฉ๋‹ˆ๋‹ค. + * ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„์€ durationSeconds ํ•„๋“œ์— ์ดˆ ๋‹จ์œ„ ์ •์ˆ˜๋กœ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. + * subtasks๋ฅผ ์ „๋‹ฌํ•˜๋ฉด ํ•˜์œ„ ํƒœ์Šคํฌ ๋ชฉ๋ก ์ „์ฒด๊ฐ€ ๊ต์ฒด๋ฉ๋‹ˆ๋‹ค. + * subtaskId๊ฐ€ ์žˆ์œผ๋ฉด ๊ธฐ์กด ํƒœ์Šคํฌ๋ฅผ ์ˆ˜์ •ํ•˜๊ณ , null์ด๋ฉด ์‹ ๊ทœ ํƒœ์Šคํฌ๋กœ ์ถ”๊ฐ€ํ•˜๋ฉฐ, ์ „๋‹ฌ๋˜์ง€ ์•Š์€ ๊ธฐ์กด ํƒœ์Šคํฌ๋Š” ์‚ญ์ œ๋ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์ˆ˜์ • + */ +export const updateTodo = ( + todoId: number, + todoUpdateRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/todos/${todoId}`, + method: "PATCH", + headers: { "Content-Type": "application/json" }, + data: todoUpdateRequest, + signal, + }, + options, + ); +}; + +export const getUpdateTodoMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext +> => { + const mutationKey = ["updateTodo"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { todoId: number; data: BodyType } + > = (props) => { + const { todoId, data } = props ?? {}; + + return updateTodo(todoId, data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type UpdateTodoMutationResult = NonNullable< + Awaited> +>; +export type UpdateTodoMutationBody = BodyType; +export type UpdateTodoMutationError = ErrorType; + +/** + * @summary TODO ์ˆ˜์ • + */ +export const useUpdateTodo = , TContext = unknown>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext +> => { + return useMutation(getUpdateTodoMutationOptions(options), queryClient); +}; +/** + * ํ•˜์œ„ ํƒœ์Šคํฌ์˜ ์™„๋ฃŒ ์—ฌ๋ถ€๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. + * + * todoId๋กœ ์†Œ์œ ํ•œ TODO๋ฅผ ํ™•์ธํ•œ ๋’ค, ํ•ด๋‹น TODO์— ์†ํ•œ subtaskId์˜ ์™„๋ฃŒ ์ƒํƒœ๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary ํ•˜์œ„ ํƒœ์Šคํฌ ์™„๋ฃŒ ์ƒํƒœ ๋ณ€๊ฒฝ + */ +export const changeSubtaskStatus = ( + todoId: number, + subtaskId: number, + subtaskStatusUpdateRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/todos/${todoId}/subtasks/${subtaskId}/status`, + method: "PATCH", + headers: { "Content-Type": "application/json" }, + data: subtaskStatusUpdateRequest, + signal, + }, + options, + ); +}; + +export const getChangeSubtaskStatusMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { + todoId: number; + subtaskId: number; + data: BodyType; + }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { + todoId: number; + subtaskId: number; + data: BodyType; + }, + TContext +> => { + const mutationKey = ["changeSubtaskStatus"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { + todoId: number; + subtaskId: number; + data: BodyType; + } + > = (props) => { + const { todoId, subtaskId, data } = props ?? {}; + + return changeSubtaskStatus(todoId, subtaskId, data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type ChangeSubtaskStatusMutationResult = NonNullable< + Awaited> +>; +export type ChangeSubtaskStatusMutationBody = + BodyType; +export type ChangeSubtaskStatusMutationError = ErrorType; + +/** + * @summary ํ•˜์œ„ ํƒœ์Šคํฌ ์™„๋ฃŒ ์ƒํƒœ ๋ณ€๊ฒฝ + */ +export const useChangeSubtaskStatus = < + TError = ErrorType, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { + todoId: number; + subtaskId: number; + data: BodyType; + }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { + todoId: number; + subtaskId: number; + data: BodyType; + }, + TContext +> => { + return useMutation( + getChangeSubtaskStatusMutationOptions(options), + queryClient, + ); +}; +/** + * TODO์˜ ์™„๋ฃŒ ์—ฌ๋ถ€๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. + * + * ์™„๋ฃŒ/๋ฏธ์™„๋ฃŒ ์ƒํƒœ๋Š” ๋‚ ์งœ๋ณ„๋กœ ๊ด€๋ฆฌ๋˜๋ฏ€๋กœ date๋กœ ๋Œ€์ƒ ๋‚ ์งœ๋ฅผ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค. date๋ฅผ ์ƒ๋žตํ•˜๋ฉด ์‚ฌ์šฉ์ž ํƒ€์ž„์กด ๊ธฐ์ค€ ์˜ค๋Š˜๋กœ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. + * ์™„๋ฃŒ๋กœ ๋ณ€๊ฒฝ ์‹œ ํ•ด๋‹น ๋‚ ์งœ ์™„๋ฃŒ ๊ทธ๋ฃน์˜ ํ•˜๋‹จ์œผ๋กœ, ๋ฏธ์™„๋ฃŒ๋กœ ๋ณ€๊ฒฝ ์‹œ ๋ฏธ์™„๋ฃŒ ๊ทธ๋ฃน์˜ ์ตœ์ƒ๋‹จ์œผ๋กœ ์ •๋ ฌ ์ˆœ์„œ๋ฅผ ์žฌ์กฐ์ •ํ•˜์—ฌ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * ํ•ด๋‹น TODO์— ์‹คํ–‰ ์ค‘์ด๊ฑฐ๋‚˜ ์ผ์‹œ์ •์ง€๋œ ํƒ€์ด๋จธ๊ฐ€ ์žˆ์œผ๋ฉด ๋ณ€๊ฒฝํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์™„๋ฃŒ ์ƒํƒœ ๋ณ€๊ฒฝ + */ +export const changeTodoStatus = ( + todoId: number, + todoStatusUpdateRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/todos/${todoId}/status`, + method: "PATCH", + headers: { "Content-Type": "application/json" }, + data: todoStatusUpdateRequest, + signal, + }, + options, + ); +}; + +export const getChangeTodoStatusMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext +> => { + const mutationKey = ["changeTodoStatus"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { todoId: number; data: BodyType } + > = (props) => { + const { todoId, data } = props ?? {}; + + return changeTodoStatus(todoId, data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type ChangeTodoStatusMutationResult = NonNullable< + Awaited> +>; +export type ChangeTodoStatusMutationBody = BodyType; +export type ChangeTodoStatusMutationError = ErrorType; + +/** + * @summary TODO ์™„๋ฃŒ ์ƒํƒœ ๋ณ€๊ฒฝ + */ +export const useChangeTodoStatus = < + TError = ErrorType, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext +> => { + return useMutation(getChangeTodoStatusMutationOptions(options), queryClient); +}; +/** + * ๋“œ๋ž˜๊ทธ ์•ค ๋“œ๋กญ์œผ๋กœ ๋ณ€๊ฒฝ๋œ TODO์˜ ์ˆœ์„œ๋ฅผ ๋ฐ˜์˜ํ•ฉ๋‹ˆ๋‹ค. + * + * ์ˆœ์„œ ๋ณ€๊ฒฝ์€ ๊ฐ™์€ ๋‚ ์งœ์˜ ๊ฐ™์€ ์™„๋ฃŒ ๊ทธ๋ฃน(๋ฏธ์™„๋ฃŒ ๊ทธ๋ฃน) ๋‚ด๋ถ€์—์„œ๋งŒ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. + * ์™„๋ฃŒ๋œ TODO๋Š” ์ˆœ์„œ๋ฅผ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์—†์œผ๋ฉฐ, ์™„๋ฃŒ/๋ฏธ์™„๋ฃŒ ๊ทธ๋ฃน ๊ฐ„ ์ด๋™์€ ์™„๋ฃŒ ์ƒํƒœ ๋ณ€๊ฒฝ API๋กœ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. + * newIndex๋Š” ํ•ด๋‹น ๋‚ ์งœ ๋ฏธ์™„๋ฃŒ ๊ทธ๋ฃน ๋‚ด์—์„œ 0๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๋Š” ๋ชฉํ‘œ ์œ„์น˜์ž…๋‹ˆ๋‹ค. + * date๋ฅผ ์ƒ๋žตํ•˜๋ฉด ์‚ฌ์šฉ์ž ํƒ€์ž„์กด ๊ธฐ์ค€ ์˜ค๋Š˜๋กœ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. + * ์„œ๋ฒ„๋Š” ๋Œ€์ƒ TODO๋ฅผ ์ƒˆ ์ธ๋ฑ์Šค๋กœ ์˜ฎ๊ธฐ๊ณ  ์˜ํ–ฅ๋ฐ›๋Š” TODO๋“ค์˜ ์ •๋ ฌ ์ˆœ์„œ๋ฅผ ์žฌ๊ณ„์‚ฐํ•ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์ˆœ์„œ ๋ณ€๊ฒฝ + */ +export const reorderTodo = ( + todoId: number, + todoReorderRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/todos/${todoId}/order`, + method: "PATCH", + headers: { "Content-Type": "application/json" }, + data: todoReorderRequest, + signal, + }, + options, + ); +}; + +export const getReorderTodoMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext +> => { + const mutationKey = ["reorderTodo"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { todoId: number; data: BodyType } + > = (props) => { + const { todoId, data } = props ?? {}; + + return reorderTodo(todoId, data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type ReorderTodoMutationResult = NonNullable< + Awaited> +>; +export type ReorderTodoMutationBody = BodyType; +export type ReorderTodoMutationError = ErrorType; + +/** + * @summary TODO ์ˆœ์„œ ๋ณ€๊ฒฝ + */ +export const useReorderTodo = < + TError = ErrorType, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { todoId: number; data: BodyType }, + TContext +> => { + return useMutation(getReorderTodoMutationOptions(options), queryClient); +}; diff --git a/apps/timo-web/api/generated/endpoints/todo/todo.zod.ts b/apps/timo-web/api/generated/endpoints/todo/todo.zod.ts new file mode 100644 index 00000000..09a51b93 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/todo/todo.zod.ts @@ -0,0 +1,225 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * ์‚ฌ์šฉ์ž๊ฐ€ ์ƒˆ๋กœ์šด TODO๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. + * + * ์•„์ด์ฝ˜, ์ œ๋ชฉ, ํ•˜์œ„ ํƒœ์Šคํฌ, ๋‚ ์งœ, ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„, ์šฐ์„ ์ˆœ์œ„, ํƒœ๊ทธ, ๋ฐ˜๋ณต ์„ค์ •, ๋ฉ”๋ชจ๋ฅผ ํ•จ๊ป˜ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. + * ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„์€ duration ํ•„๋“œ์— ๋ถ„:์ดˆ ํ˜•์‹์œผ๋กœ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ: 00:15 + * ๋ฐ˜๋ณต ์ผ์ •์€ ์‹œ์ž‘์ผ ๊ธฐ์ค€ ์ตœ๋Œ€ 1๋…„๊นŒ์ง€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์ƒ์„ฑ + */ + +export const createTodoBodyRepeatDayOfMonthMax = 31; + +export const createTodoBodyMemoMin = 0; +export const createTodoBodyMemoMax = 300; + +export const CreateTodoBody = zod.object({ + icon: zod + .enum([ + "ICON_1", + "ICON_2", + "ICON_3", + "ICON_4", + "ICON_5", + "ICON_6", + "ICON_7", + "ICON_8", + ]) + .optional(), + title: zod.string().min(1), + subtasks: zod.array(zod.string().min(1)).optional(), + date: zod.iso.date(), + duration: zod.string().min(1), + priority: zod.enum(["VERY_HIGH", "HIGH", "MEDIUM", "LOW"]).optional(), + tagId: zod.number().optional(), + repeatType: zod.enum(["NONE", "DAILY", "WEEKLY", "MONTHLY"]), + repeatWeekdays: zod + .array(zod.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"])) + .optional(), + repeatDayOfMonth: zod + .number() + .min(1) + .max(createTodoBodyRepeatDayOfMonthMax) + .optional(), + memo: zod + .string() + .min(createTodoBodyMemoMin) + .max(createTodoBodyMemoMax) + .optional(), + repeatRuleValid: zod.boolean().optional(), +}); + +export const CreateTodoResponse = zod.void(); + +/** + * todoId์™€ ์กฐํšŒ ๊ธฐ์ค€ ๋‚ ์งœ(date)๋กœ ๋‹จ์ผ TODO์˜ ์ƒ์„ธ ์ •๋ณด๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * + * ์•„์ด์ฝ˜, ์ œ๋ชฉ, ์™„๋ฃŒ ์—ฌ๋ถ€, ๋‚ ์งœ/์š”์ผ, ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„, ์šฐ์„ ์ˆœ์œ„, ํƒœ๊ทธ, + * ๋ฐ˜๋ณต ์„ค์ •, ํƒ€์ด๋จธ ์ƒํƒœ, ๋ฉ”๋ชจ, ์ •๋ ฌ ์ˆœ์„œ, ํ•˜์œ„ ํƒœ์Šคํฌ ๋ชฉ๋ก์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * + * ์™„๋ฃŒ ์—ฌ๋ถ€ยทํƒ€์ด๋จธ ์ƒํƒœยท์ •๋ ฌ ์ˆœ์„œ๋Š” date์— ํ•ด๋‹นํ•˜๋Š” ์ธ์Šคํ„ด์Šค ๊ธฐ์ค€์œผ๋กœ ๋ฐ˜ํ™˜๋˜๋ฏ€๋กœ, + * ๋ฐ˜๋ณต TODO์˜ ๊ฒฝ์šฐ ์กฐํšŒํ•˜๋ ค๋Š” ๋‚ ์งœ๋ฅผ date๋กœ ์ „๋‹ฌํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์ƒ์„ธ ์กฐํšŒ + */ +export const GetTodoDetailParams = zod.object({ + todoId: zod.number().describe("์กฐํšŒํ•  TODO ID"), +}); + +export const GetTodoDetailQueryParams = zod.object({ + date: zod.string().describe("์กฐํšŒ ๊ธฐ์ค€ ๋‚ ์งœ (yyyy-MM-dd)"), +}); + +export const GetTodoDetailResponse = zod.unknown(); + +/** + * TODO์™€ ์—ฐ๊ฒฐ๋œ ํ•˜์œ„ ํƒœ์Šคํฌ, ๋ฐ˜๋ณต ๊ทœ์น™์„ ํ•จ๊ป˜ ์‚ญ์ œํ•ฉ๋‹ˆ๋‹ค. + * ํ•ด๋‹น TODO์— ์‹คํ–‰ ์ค‘์ด๊ฑฐ๋‚˜ ์ผ์‹œ์ •์ง€๋œ ํƒ€์ด๋จธ๊ฐ€ ์žˆ์œผ๋ฉด ์‚ญ์ œํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์‚ญ์ œ + */ +export const DeleteTodoParams = zod.object({ + todoId: zod.number().describe("์‚ญ์ œํ•  TODO ID"), +}); + +export const DeleteTodoResponse = zod.unknown(); + +/** + * ๊ธฐ์กด TODO์˜ ์ œ๋ชฉ, ๋ฉ”๋ชจ, ๋‚ ์งœ, ํƒœ๊ทธ, ์šฐ์„ ์ˆœ์œ„, ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„, ์•„์ด์ฝ˜, ๋ฐ˜๋ณต ๊ทœ์น™, ํ•˜์œ„ ํƒœ์Šคํฌ๋ฅผ ๋ถ€๋ถ„ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค. + * + * ์š”์ฒญ body์— ํฌํ•จ๋œ(null์ด ์•„๋‹Œ) ํ•„๋“œ๋งŒ ์ˆ˜์ •๋ฉ๋‹ˆ๋‹ค. + * ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„์€ durationSeconds ํ•„๋“œ์— ์ดˆ ๋‹จ์œ„ ์ •์ˆ˜๋กœ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. + * subtasks๋ฅผ ์ „๋‹ฌํ•˜๋ฉด ํ•˜์œ„ ํƒœ์Šคํฌ ๋ชฉ๋ก ์ „์ฒด๊ฐ€ ๊ต์ฒด๋ฉ๋‹ˆ๋‹ค. + * subtaskId๊ฐ€ ์žˆ์œผ๋ฉด ๊ธฐ์กด ํƒœ์Šคํฌ๋ฅผ ์ˆ˜์ •ํ•˜๊ณ , null์ด๋ฉด ์‹ ๊ทœ ํƒœ์Šคํฌ๋กœ ์ถ”๊ฐ€ํ•˜๋ฉฐ, ์ „๋‹ฌ๋˜์ง€ ์•Š์€ ๊ธฐ์กด ํƒœ์Šคํฌ๋Š” ์‚ญ์ œ๋ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์ˆ˜์ • + */ +export const UpdateTodoParams = zod.object({ + todoId: zod.number().describe("์ˆ˜์ •ํ•  TODO ID"), +}); + +export const updateTodoBodyRepeatDayOfMonthMax = 31; + +export const updateTodoBodyMemoMin = 0; +export const updateTodoBodyMemoMax = 300; + +export const UpdateTodoBody = zod.object({ + icon: zod + .enum([ + "ICON_1", + "ICON_2", + "ICON_3", + "ICON_4", + "ICON_5", + "ICON_6", + "ICON_7", + "ICON_8", + ]) + .optional(), + title: zod.string().optional(), + date: zod.iso.date().optional(), + durationSeconds: zod.number().min(1).optional(), + priority: zod.enum(["VERY_HIGH", "HIGH", "MEDIUM", "LOW"]).optional(), + tagId: zod.number().optional(), + repeatType: zod.enum(["NONE", "DAILY", "WEEKLY", "MONTHLY"]).optional(), + repeatWeekdays: zod + .array(zod.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"])) + .optional(), + repeatDayOfMonth: zod + .number() + .min(1) + .max(updateTodoBodyRepeatDayOfMonthMax) + .optional(), + memo: zod + .string() + .min(updateTodoBodyMemoMin) + .max(updateTodoBodyMemoMax) + .optional(), + subtasks: zod + .array( + zod.object({ + subtaskId: zod.number().optional(), + content: zod.string().min(1), + completed: zod.boolean(), + }), + ) + .optional(), +}); + +export const UpdateTodoResponse = zod.unknown(); + +/** + * ํ•˜์œ„ ํƒœ์Šคํฌ์˜ ์™„๋ฃŒ ์—ฌ๋ถ€๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. + * + * todoId๋กœ ์†Œ์œ ํ•œ TODO๋ฅผ ํ™•์ธํ•œ ๋’ค, ํ•ด๋‹น TODO์— ์†ํ•œ subtaskId์˜ ์™„๋ฃŒ ์ƒํƒœ๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary ํ•˜์œ„ ํƒœ์Šคํฌ ์™„๋ฃŒ ์ƒํƒœ ๋ณ€๊ฒฝ + */ +export const ChangeSubtaskStatusParams = zod.object({ + todoId: zod.number().describe("๋Œ€์ƒ TODO ID"), + subtaskId: zod.number().describe("๋Œ€์ƒ ํ•˜์œ„ ํƒœ์Šคํฌ ID"), +}); + +export const ChangeSubtaskStatusBody = zod.object({ + isCompleted: zod.boolean(), +}); + +export const ChangeSubtaskStatusResponse = zod.unknown(); + +/** + * TODO์˜ ์™„๋ฃŒ ์—ฌ๋ถ€๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. + * + * ์™„๋ฃŒ/๋ฏธ์™„๋ฃŒ ์ƒํƒœ๋Š” ๋‚ ์งœ๋ณ„๋กœ ๊ด€๋ฆฌ๋˜๋ฏ€๋กœ date๋กœ ๋Œ€์ƒ ๋‚ ์งœ๋ฅผ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค. date๋ฅผ ์ƒ๋žตํ•˜๋ฉด ์‚ฌ์šฉ์ž ํƒ€์ž„์กด ๊ธฐ์ค€ ์˜ค๋Š˜๋กœ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. + * ์™„๋ฃŒ๋กœ ๋ณ€๊ฒฝ ์‹œ ํ•ด๋‹น ๋‚ ์งœ ์™„๋ฃŒ ๊ทธ๋ฃน์˜ ํ•˜๋‹จ์œผ๋กœ, ๋ฏธ์™„๋ฃŒ๋กœ ๋ณ€๊ฒฝ ์‹œ ๋ฏธ์™„๋ฃŒ ๊ทธ๋ฃน์˜ ์ตœ์ƒ๋‹จ์œผ๋กœ ์ •๋ ฌ ์ˆœ์„œ๋ฅผ ์žฌ์กฐ์ •ํ•˜์—ฌ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. + * ํ•ด๋‹น TODO์— ์‹คํ–‰ ์ค‘์ด๊ฑฐ๋‚˜ ์ผ์‹œ์ •์ง€๋œ ํƒ€์ด๋จธ๊ฐ€ ์žˆ์œผ๋ฉด ๋ณ€๊ฒฝํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์™„๋ฃŒ ์ƒํƒœ ๋ณ€๊ฒฝ + */ +export const ChangeTodoStatusParams = zod.object({ + todoId: zod.number().describe("๋Œ€์ƒ TODO ID"), +}); + +export const ChangeTodoStatusBody = zod.object({ + isCompleted: zod.boolean(), + date: zod.iso.date().optional(), +}); + +export const ChangeTodoStatusResponse = zod.unknown(); + +/** + * ๋“œ๋ž˜๊ทธ ์•ค ๋“œ๋กญ์œผ๋กœ ๋ณ€๊ฒฝ๋œ TODO์˜ ์ˆœ์„œ๋ฅผ ๋ฐ˜์˜ํ•ฉ๋‹ˆ๋‹ค. + * + * ์ˆœ์„œ ๋ณ€๊ฒฝ์€ ๊ฐ™์€ ๋‚ ์งœ์˜ ๊ฐ™์€ ์™„๋ฃŒ ๊ทธ๋ฃน(๋ฏธ์™„๋ฃŒ ๊ทธ๋ฃน) ๋‚ด๋ถ€์—์„œ๋งŒ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. + * ์™„๋ฃŒ๋œ TODO๋Š” ์ˆœ์„œ๋ฅผ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์—†์œผ๋ฉฐ, ์™„๋ฃŒ/๋ฏธ์™„๋ฃŒ ๊ทธ๋ฃน ๊ฐ„ ์ด๋™์€ ์™„๋ฃŒ ์ƒํƒœ ๋ณ€๊ฒฝ API๋กœ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. + * newIndex๋Š” ํ•ด๋‹น ๋‚ ์งœ ๋ฏธ์™„๋ฃŒ ๊ทธ๋ฃน ๋‚ด์—์„œ 0๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๋Š” ๋ชฉํ‘œ ์œ„์น˜์ž…๋‹ˆ๋‹ค. + * date๋ฅผ ์ƒ๋žตํ•˜๋ฉด ์‚ฌ์šฉ์ž ํƒ€์ž„์กด ๊ธฐ์ค€ ์˜ค๋Š˜๋กœ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค. + * ์„œ๋ฒ„๋Š” ๋Œ€์ƒ TODO๋ฅผ ์ƒˆ ์ธ๋ฑ์Šค๋กœ ์˜ฎ๊ธฐ๊ณ  ์˜ํ–ฅ๋ฐ›๋Š” TODO๋“ค์˜ ์ •๋ ฌ ์ˆœ์„œ๋ฅผ ์žฌ๊ณ„์‚ฐํ•ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * @summary TODO ์ˆœ์„œ ๋ณ€๊ฒฝ + */ +export const ReorderTodoParams = zod.object({ + todoId: zod.number().describe("์ด๋™ํ•  TODO ID"), +}); + +export const ReorderTodoBody = zod.object({ + newIndex: zod.number().optional(), + date: zod.iso.date().optional(), +}); + +export const ReorderTodoResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/endpoints/user/user.ts b/apps/timo-web/api/generated/endpoints/user/user.ts new file mode 100644 index 00000000..353b9d08 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/user/user.ts @@ -0,0 +1,378 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import { useMutation, useQuery } from "@tanstack/react-query"; + +import { customInstance } from "../../../client/custom-instance"; + +import type { ErrorType, BodyType } from "../../../client/custom-instance"; +import type { + BaseResponseUpdateLanguageResponse, + BaseResponseUpdateTimezoneResponse, + BaseResponseUserProfileResponse, + ErrorDto, + UpdateLanguageRequest, + UpdateTimezoneRequest, +} from "../../models"; +import type { + DataTag, + DefinedInitialDataOptions, + DefinedUseQueryResult, + MutationFunction, + QueryClient, + QueryFunction, + QueryKey, + UndefinedInitialDataOptions, + UseMutationOptions, + UseMutationResult, + UseQueryOptions, + UseQueryResult, +} from "@tanstack/react-query"; + +type SecondParameter unknown> = Parameters[1]; + +const withQueryKey = ( + query: T, + queryKey: K, +): T & { queryKey: K } => { + const result = { queryKey } as T & { queryKey: K }; + for (const key of Object.keys(query)) { + // The explicit queryKey always wins, matching the previous + // `{ ...query, queryKey }` spread where it was set last. + if (key === "queryKey") continue; + Object.defineProperty(result, key, { + enumerable: true, + configurable: true, + get: () => (query as Record)[key], + }); + } + return result; +}; + +/** + * ํ˜„์žฌ ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž์˜ ํ”„๋กœํ•„ ์ •๋ณด๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * Access Token์˜ ์‚ฌ์šฉ์ž ID์™€ ์ผ์น˜ํ•˜๋Š” ์‚ฌ์šฉ์ž์˜ ์ •๋ณด๊ฐ€ ๋ฐ˜ํ™˜๋ฉ๋‹ˆ๋‹ค. + * @summary ๋‚ด ํ”„๋กœํ•„ ์กฐํšŒ + */ +export const getMyProfile = ( + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { url: `/api/v1/users`, method: "GET", signal }, + options, + ); +}; + +export const getGetMyProfileQueryKey = () => { + return [`/api/v1/users`] as const; +}; + +export const getGetMyProfileQueryOptions = < + TData = Awaited>, + TError = ErrorType, +>(options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; +}) => { + const { query: queryOptions, request: requestOptions } = options ?? {}; + + const queryKey = queryOptions?.queryKey ?? getGetMyProfileQueryKey(); + + const queryFn: QueryFunction>> = ({ + signal, + }) => getMyProfile(requestOptions, signal); + + return { queryKey, queryFn, ...queryOptions } as UseQueryOptions< + Awaited>, + TError, + TData + > & { queryKey: DataTag }; +}; + +export type GetMyProfileQueryResult = NonNullable< + Awaited> +>; +export type GetMyProfileQueryError = ErrorType; + +export function useGetMyProfile< + TData = Awaited>, + TError = ErrorType, +>( + options: { + query: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + DefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): DefinedUseQueryResult & { + queryKey: DataTag; +}; +export function useGetMyProfile< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + > & + Pick< + UndefinedInitialDataOptions< + Awaited>, + TError, + Awaited> + >, + "initialData" + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +export function useGetMyProfile< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +}; +/** + * @summary ๋‚ด ํ”„๋กœํ•„ ์กฐํšŒ + */ + +export function useGetMyProfile< + TData = Awaited>, + TError = ErrorType, +>( + options?: { + query?: Partial< + UseQueryOptions>, TError, TData> + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseQueryResult & { + queryKey: DataTag; +} { + const queryOptions = getGetMyProfileQueryOptions(options); + + const query = useQuery(queryOptions, queryClient) as UseQueryResult< + TData, + TError + > & { queryKey: DataTag }; + + return withQueryKey(query, queryOptions.queryKey); +} + +/** + * ํ˜„์žฌ ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž์˜ ์„œ๋น„์Šค ์–ธ์–ด๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. + * + * ๋ณ€๊ฒฝ ๊ฐ€๋Šฅํ•œ ๊ฐ’์€ `KO`, `EN`์ž…๋‹ˆ๋‹ค. + * ์ด๋ฆ„, ์ด๋ฉ”์ผ, ํ”„๋กœํ•„ ์ด๋ฏธ์ง€๋Š” ๊ตฌ๊ธ€ ๊ณ„์ • ๊ธฐ๋ฐ˜ ์ •๋ณด์ด๋ฏ€๋กœ ํ•ด๋‹น API์—์„œ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. + * @summary ์„œ๋น„์Šค ์–ธ์–ด ์ˆ˜์ • + */ +export const updateLanguage = ( + updateLanguageRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/users`, + method: "PATCH", + headers: { "Content-Type": "application/json" }, + data: updateLanguageRequest, + signal, + }, + options, + ); +}; + +export const getUpdateLanguageMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + const mutationKey = ["updateLanguage"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { data: BodyType } + > = (props) => { + const { data } = props ?? {}; + + return updateLanguage(data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type UpdateLanguageMutationResult = NonNullable< + Awaited> +>; +export type UpdateLanguageMutationBody = BodyType; +export type UpdateLanguageMutationError = ErrorType; + +/** + * @summary ์„œ๋น„์Šค ์–ธ์–ด ์ˆ˜์ • + */ +export const useUpdateLanguage = < + TError = ErrorType, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + return useMutation(getUpdateLanguageMutationOptions(options), queryClient); +}; +/** + * ํ˜„์žฌ ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž์˜ ์‹œ๊ฐ„๋Œ€๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. + * + * `zoneId`๋Š” IANA ์‹œ๊ฐ„๋Œ€ ID(์˜ˆ: `Asia/Seoul`, `America/New_York`, `UTC`)์—ฌ์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * ํด๋ผ์ด์–ธํŠธ๋Š” ๊ธฐ๊ธฐ์˜ ์‹ค์ œ ์‹œ๊ฐ„๋Œ€๋ฅผ ๊ฐ์ง€ํ•ด ์ „๋‹ฌํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค. + * ํ™ˆ ํ™”๋ฉด์˜ '์˜ค๋Š˜' ํŒ์ • ๋“ฑ ์„œ๋ฒ„์˜ ๋‚ ์งœ ๊ณ„์‚ฐ์ด ์ด ๊ฐ’์„ ๊ธฐ์ค€์œผ๋กœ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค. + * @summary ์‹œ๊ฐ„๋Œ€ ์ˆ˜์ • + */ +export const updateTimezone = ( + updateTimezoneRequest: BodyType, + options?: SecondParameter, + signal?: AbortSignal, +) => { + return customInstance( + { + url: `/api/v1/users/timezone`, + method: "PATCH", + headers: { "Content-Type": "application/json" }, + data: updateTimezoneRequest, + signal, + }, + options, + ); +}; + +export const getUpdateTimezoneMutationOptions = < + TError = ErrorType, + TContext = unknown, +>(options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; +}): UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + const mutationKey = ["updateTimezone"]; + const { mutation: mutationOptions, request: requestOptions } = options + ? options.mutation && + "mutationKey" in options.mutation && + options.mutation.mutationKey + ? options + : { ...options, mutation: { ...options.mutation, mutationKey } } + : { mutation: { mutationKey }, request: undefined }; + + const mutationFn: MutationFunction< + Awaited>, + { data: BodyType } + > = (props) => { + const { data } = props ?? {}; + + return updateTimezone(data, requestOptions); + }; + + return { mutationFn, ...mutationOptions }; +}; + +export type UpdateTimezoneMutationResult = NonNullable< + Awaited> +>; +export type UpdateTimezoneMutationBody = BodyType; +export type UpdateTimezoneMutationError = ErrorType; + +/** + * @summary ์‹œ๊ฐ„๋Œ€ ์ˆ˜์ • + */ +export const useUpdateTimezone = < + TError = ErrorType, + TContext = unknown, +>( + options?: { + mutation?: UseMutationOptions< + Awaited>, + TError, + { data: BodyType }, + TContext + >; + request?: SecondParameter; + }, + queryClient?: QueryClient, +): UseMutationResult< + Awaited>, + TError, + { data: BodyType }, + TContext +> => { + return useMutation(getUpdateTimezoneMutationOptions(options), queryClient); +}; diff --git a/apps/timo-web/api/generated/endpoints/user/user.zod.ts b/apps/timo-web/api/generated/endpoints/user/user.zod.ts new file mode 100644 index 00000000..a76bc062 --- /dev/null +++ b/apps/timo-web/api/generated/endpoints/user/user.zod.ts @@ -0,0 +1,45 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import * as zod from "zod"; + +/** + * ํ˜„์žฌ ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž์˜ ํ”„๋กœํ•„ ์ •๋ณด๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. + * + * Swagger UI ์˜ค๋ฅธ์ชฝ ์œ„์˜ Authorize ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์œ ํšจํ•œ Access Token์„ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * Access Token์˜ ์‚ฌ์šฉ์ž ID์™€ ์ผ์น˜ํ•˜๋Š” ์‚ฌ์šฉ์ž์˜ ์ •๋ณด๊ฐ€ ๋ฐ˜ํ™˜๋ฉ๋‹ˆ๋‹ค. + * @summary ๋‚ด ํ”„๋กœํ•„ ์กฐํšŒ + */ +export const GetMyProfileResponse = zod.unknown(); + +/** + * ํ˜„์žฌ ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž์˜ ์„œ๋น„์Šค ์–ธ์–ด๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. + * + * ๋ณ€๊ฒฝ ๊ฐ€๋Šฅํ•œ ๊ฐ’์€ `KO`, `EN`์ž…๋‹ˆ๋‹ค. + * ์ด๋ฆ„, ์ด๋ฉ”์ผ, ํ”„๋กœํ•„ ์ด๋ฏธ์ง€๋Š” ๊ตฌ๊ธ€ ๊ณ„์ • ๊ธฐ๋ฐ˜ ์ •๋ณด์ด๋ฏ€๋กœ ํ•ด๋‹น API์—์„œ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. + * @summary ์„œ๋น„์Šค ์–ธ์–ด ์ˆ˜์ • + */ +export const UpdateLanguageBody = zod.object({ + language: zod.enum(["KO", "EN"]).describe("๋ณ€๊ฒฝํ•  ์„œ๋น„์Šค ์–ธ์–ด"), +}); + +export const UpdateLanguageResponse = zod.unknown(); + +/** + * ํ˜„์žฌ ๋กœ๊ทธ์ธํ•œ ์‚ฌ์šฉ์ž์˜ ์‹œ๊ฐ„๋Œ€๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. + * + * `zoneId`๋Š” IANA ์‹œ๊ฐ„๋Œ€ ID(์˜ˆ: `Asia/Seoul`, `America/New_York`, `UTC`)์—ฌ์•ผ ํ•ฉ๋‹ˆ๋‹ค. + * ํด๋ผ์ด์–ธํŠธ๋Š” ๊ธฐ๊ธฐ์˜ ์‹ค์ œ ์‹œ๊ฐ„๋Œ€๋ฅผ ๊ฐ์ง€ํ•ด ์ „๋‹ฌํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค. + * ํ™ˆ ํ™”๋ฉด์˜ '์˜ค๋Š˜' ํŒ์ • ๋“ฑ ์„œ๋ฒ„์˜ ๋‚ ์งœ ๊ณ„์‚ฐ์ด ์ด ๊ฐ’์„ ๊ธฐ์ค€์œผ๋กœ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค. + * @summary ์‹œ๊ฐ„๋Œ€ ์ˆ˜์ • + */ + +export const UpdateTimezoneBody = zod.object({ + zoneId: zod.string().min(1).describe("IANA ์‹œ๊ฐ„๋Œ€ ID"), +}); + +export const UpdateTimezoneResponse = zod.unknown(); diff --git a/apps/timo-web/api/generated/models/authReissueResponse.ts b/apps/timo-web/api/generated/models/authReissueResponse.ts new file mode 100644 index 00000000..3bf1a203 --- /dev/null +++ b/apps/timo-web/api/generated/models/authReissueResponse.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface AuthReissueResponse { + /** ์ƒˆ๋กœ ๋ฐœ๊ธ‰๋œ AccessToken */ + accessToken?: string; +} diff --git a/apps/timo-web/api/generated/models/authTokenRequest.ts b/apps/timo-web/api/generated/models/authTokenRequest.ts new file mode 100644 index 00000000..117a175a --- /dev/null +++ b/apps/timo-web/api/generated/models/authTokenRequest.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface AuthTokenRequest { + /** + * ๋กœ๊ทธ์ธ ์„ฑ๊ณต ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ ์‹œ ์ฟผ๋ฆฌ์ŠคํŠธ๋ง์œผ๋กœ ์ „๋‹ฌ๋ฐ›์€ ์ผํšŒ์šฉ ์ธ๊ฐ€์ฝ”๋“œ + * @minLength 1 + */ + code: string; +} diff --git a/apps/timo-web/api/generated/models/authTokenResponse.ts b/apps/timo-web/api/generated/models/authTokenResponse.ts new file mode 100644 index 00000000..ee1cae2d --- /dev/null +++ b/apps/timo-web/api/generated/models/authTokenResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { UserInfo } from "./userInfo"; + +export interface AuthTokenResponse { + accessToken?: string; + user?: UserInfo; + isNewUser?: boolean; +} diff --git a/apps/timo-web/api/generated/models/baseResponse.ts b/apps/timo-web/api/generated/models/baseResponse.ts new file mode 100644 index 00000000..b9295684 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponse.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface BaseResponse { + status?: number; + message?: string; + data?: unknown; +} diff --git a/apps/timo-web/api/generated/models/baseResponseAuthReissueResponse.ts b/apps/timo-web/api/generated/models/baseResponseAuthReissueResponse.ts new file mode 100644 index 00000000..15d8273b --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseAuthReissueResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { AuthReissueResponse } from "./authReissueResponse"; + +export interface BaseResponseAuthReissueResponse { + status?: number; + message?: string; + data?: AuthReissueResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseAuthTokenResponse.ts b/apps/timo-web/api/generated/models/baseResponseAuthTokenResponse.ts new file mode 100644 index 00000000..253008fe --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseAuthTokenResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { AuthTokenResponse } from "./authTokenResponse"; + +export interface BaseResponseAuthTokenResponse { + status?: number; + message?: string; + data?: AuthTokenResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseFocusTodoResponse.ts b/apps/timo-web/api/generated/models/baseResponseFocusTodoResponse.ts new file mode 100644 index 00000000..8600316a --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseFocusTodoResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { FocusTodoResponse } from "./focusTodoResponse"; + +export interface BaseResponseFocusTodoResponse { + status?: number; + message?: string; + data?: FocusTodoResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseHomeResponse.ts b/apps/timo-web/api/generated/models/baseResponseHomeResponse.ts new file mode 100644 index 00000000..31a1423f --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseHomeResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { HomeResponse } from "./homeResponse"; + +export interface BaseResponseHomeResponse { + status?: number; + message?: string; + data?: HomeResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseListTimeBoxResponse.ts b/apps/timo-web/api/generated/models/baseResponseListTimeBoxResponse.ts new file mode 100644 index 00000000..97602ddf --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseListTimeBoxResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TimeBoxResponse } from "./timeBoxResponse"; + +export interface BaseResponseListTimeBoxResponse { + status?: number; + message?: string; + data?: TimeBoxResponse[]; +} diff --git a/apps/timo-web/api/generated/models/baseResponseObject.ts b/apps/timo-web/api/generated/models/baseResponseObject.ts new file mode 100644 index 00000000..82789f1b --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseObject.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface BaseResponseObject { + status?: number; + message?: string; + data?: unknown; +} diff --git a/apps/timo-web/api/generated/models/baseResponseRecommendDurationResponse.ts b/apps/timo-web/api/generated/models/baseResponseRecommendDurationResponse.ts new file mode 100644 index 00000000..8f4a373f --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseRecommendDurationResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { RecommendDurationResponse } from "./recommendDurationResponse"; + +export interface BaseResponseRecommendDurationResponse { + status?: number; + message?: string; + data?: RecommendDurationResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseStatisticsCalendarResponse.ts b/apps/timo-web/api/generated/models/baseResponseStatisticsCalendarResponse.ts new file mode 100644 index 00000000..ecf7df2f --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseStatisticsCalendarResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { StatisticsCalendarResponse } from "./statisticsCalendarResponse"; + +export interface BaseResponseStatisticsCalendarResponse { + status?: number; + message?: string; + data?: StatisticsCalendarResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseStatisticsDailyResponse.ts b/apps/timo-web/api/generated/models/baseResponseStatisticsDailyResponse.ts new file mode 100644 index 00000000..b1c03d1e --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseStatisticsDailyResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { StatisticsDailyResponse } from "./statisticsDailyResponse"; + +export interface BaseResponseStatisticsDailyResponse { + status?: number; + message?: string; + data?: StatisticsDailyResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseStatisticsSummaryResponse.ts b/apps/timo-web/api/generated/models/baseResponseStatisticsSummaryResponse.ts new file mode 100644 index 00000000..1cb7d2e6 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseStatisticsSummaryResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { StatisticsSummaryResponse } from "./statisticsSummaryResponse"; + +export interface BaseResponseStatisticsSummaryResponse { + status?: number; + message?: string; + data?: StatisticsSummaryResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseSubtaskStatusChangeResponse.ts b/apps/timo-web/api/generated/models/baseResponseSubtaskStatusChangeResponse.ts new file mode 100644 index 00000000..f453e25f --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseSubtaskStatusChangeResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { SubtaskStatusChangeResponse } from "./subtaskStatusChangeResponse"; + +export interface BaseResponseSubtaskStatusChangeResponse { + status?: number; + message?: string; + data?: SubtaskStatusChangeResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTagCreateResponse.ts b/apps/timo-web/api/generated/models/baseResponseTagCreateResponse.ts new file mode 100644 index 00000000..45dfe8bf --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTagCreateResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TagCreateResponse } from "./tagCreateResponse"; + +export interface BaseResponseTagCreateResponse { + status?: number; + message?: string; + data?: TagCreateResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTagListResponse.ts b/apps/timo-web/api/generated/models/baseResponseTagListResponse.ts new file mode 100644 index 00000000..9c565b2b --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTagListResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TagListResponse } from "./tagListResponse"; + +export interface BaseResponseTagListResponse { + status?: number; + message?: string; + data?: TagListResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTermsListResponse.ts b/apps/timo-web/api/generated/models/baseResponseTermsListResponse.ts new file mode 100644 index 00000000..fa4a1627 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTermsListResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TermsListResponse } from "./termsListResponse"; + +export interface BaseResponseTermsListResponse { + status?: number; + message?: string; + data?: TermsListResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTimerActiveResponse.ts b/apps/timo-web/api/generated/models/baseResponseTimerActiveResponse.ts new file mode 100644 index 00000000..3bb44907 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTimerActiveResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TimerActiveResponse } from "./timerActiveResponse"; + +export interface BaseResponseTimerActiveResponse { + status?: number; + message?: string; + data?: TimerActiveResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTimerExtendResponse.ts b/apps/timo-web/api/generated/models/baseResponseTimerExtendResponse.ts new file mode 100644 index 00000000..1d2342a8 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTimerExtendResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TimerExtendResponse } from "./timerExtendResponse"; + +export interface BaseResponseTimerExtendResponse { + status?: number; + message?: string; + data?: TimerExtendResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTimerFinishResponse.ts b/apps/timo-web/api/generated/models/baseResponseTimerFinishResponse.ts new file mode 100644 index 00000000..5aba0068 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTimerFinishResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TimerFinishResponse } from "./timerFinishResponse"; + +export interface BaseResponseTimerFinishResponse { + status?: number; + message?: string; + data?: TimerFinishResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTimerStartResponse.ts b/apps/timo-web/api/generated/models/baseResponseTimerStartResponse.ts new file mode 100644 index 00000000..8a5e7599 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTimerStartResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TimerStartResponse } from "./timerStartResponse"; + +export interface BaseResponseTimerStartResponse { + status?: number; + message?: string; + data?: TimerStartResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTimerStatusResponse.ts b/apps/timo-web/api/generated/models/baseResponseTimerStatusResponse.ts new file mode 100644 index 00000000..76771b6c --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTimerStatusResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TimerStatusResponse } from "./timerStatusResponse"; + +export interface BaseResponseTimerStatusResponse { + status?: number; + message?: string; + data?: TimerStatusResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTodayResponse.ts b/apps/timo-web/api/generated/models/baseResponseTodayResponse.ts new file mode 100644 index 00000000..141f5256 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTodayResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TodayResponse } from "./todayResponse"; + +export interface BaseResponseTodayResponse { + status?: number; + message?: string; + data?: TodayResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTodoCreateResponse.ts b/apps/timo-web/api/generated/models/baseResponseTodoCreateResponse.ts new file mode 100644 index 00000000..8b3283f7 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTodoCreateResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TodoCreateResponse } from "./todoCreateResponse"; + +export interface BaseResponseTodoCreateResponse { + status?: number; + message?: string; + data?: TodoCreateResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTodoDetailResponse.ts b/apps/timo-web/api/generated/models/baseResponseTodoDetailResponse.ts new file mode 100644 index 00000000..6ed8bae9 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTodoDetailResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TodoDetailResponse } from "./todoDetailResponse"; + +export interface BaseResponseTodoDetailResponse { + status?: number; + message?: string; + data?: TodoDetailResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTodoReorderResponse.ts b/apps/timo-web/api/generated/models/baseResponseTodoReorderResponse.ts new file mode 100644 index 00000000..08582784 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTodoReorderResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TodoReorderResponse } from "./todoReorderResponse"; + +export interface BaseResponseTodoReorderResponse { + status?: number; + message?: string; + data?: TodoReorderResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseTodoStatusChangeResponse.ts b/apps/timo-web/api/generated/models/baseResponseTodoStatusChangeResponse.ts new file mode 100644 index 00000000..813de689 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseTodoStatusChangeResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TodoStatusChangeResponse } from "./todoStatusChangeResponse"; + +export interface BaseResponseTodoStatusChangeResponse { + status?: number; + message?: string; + data?: TodoStatusChangeResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseUpdateLanguageResponse.ts b/apps/timo-web/api/generated/models/baseResponseUpdateLanguageResponse.ts new file mode 100644 index 00000000..1f675894 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseUpdateLanguageResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { UpdateLanguageResponse } from "./updateLanguageResponse"; + +export interface BaseResponseUpdateLanguageResponse { + status?: number; + message?: string; + data?: UpdateLanguageResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseUpdateTimezoneResponse.ts b/apps/timo-web/api/generated/models/baseResponseUpdateTimezoneResponse.ts new file mode 100644 index 00000000..3b4ef5a0 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseUpdateTimezoneResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { UpdateTimezoneResponse } from "./updateTimezoneResponse"; + +export interface BaseResponseUpdateTimezoneResponse { + status?: number; + message?: string; + data?: UpdateTimezoneResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseUserProfileResponse.ts b/apps/timo-web/api/generated/models/baseResponseUserProfileResponse.ts new file mode 100644 index 00000000..7f4daa9f --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseUserProfileResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { UserProfileResponse } from "./userProfileResponse"; + +export interface BaseResponseUserProfileResponse { + status?: number; + message?: string; + data?: UserProfileResponse; +} diff --git a/apps/timo-web/api/generated/models/baseResponseVoid.ts b/apps/timo-web/api/generated/models/baseResponseVoid.ts new file mode 100644 index 00000000..a016c3c8 --- /dev/null +++ b/apps/timo-web/api/generated/models/baseResponseVoid.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface BaseResponseVoid { + status?: number; + message?: string; + data?: unknown; +} diff --git a/apps/timo-web/api/generated/models/dailyTodoResponse.ts b/apps/timo-web/api/generated/models/dailyTodoResponse.ts new file mode 100644 index 00000000..661805cd --- /dev/null +++ b/apps/timo-web/api/generated/models/dailyTodoResponse.ts @@ -0,0 +1,24 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TagResponse } from "./tagResponse"; + +export interface DailyTodoResponse { + /** ํˆฌ๋‘ ID */ + todoId?: number; + /** ํˆฌ๋‘๋ช… */ + title?: string; + /** ์‹ค์ œ ์†Œ์š” ์‹œ๊ฐ„(๋ถ„), ๊ธฐ๋ก์ด ์—†์œผ๋ฉด 0 */ + actualTimeMinutes?: number; + /** ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„(๋ถ„) */ + estimatedTimeMinutes?: number; + /** + * ํˆฌ๋‘์— ์„ค์ •๋œ ํƒœ๊ทธ + * @nullable + */ + tag?: TagResponse; +} diff --git a/apps/timo-web/api/generated/models/dayCompletionResponse.ts b/apps/timo-web/api/generated/models/dayCompletionResponse.ts new file mode 100644 index 00000000..111f9abb --- /dev/null +++ b/apps/timo-web/api/generated/models/dayCompletionResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface DayCompletionResponse { + /** ํ†ต๊ณ„ ๋‚ ์งœ */ + date?: string; + /** ํˆฌ๋‘ ์™„๋ฃŒ์œจ. ํˆฌ๋‘๊ฐ€ ์—†์œผ๋ฉด 0 */ + completionRate?: number; +} diff --git a/apps/timo-web/api/generated/models/dayResponse.ts b/apps/timo-web/api/generated/models/dayResponse.ts new file mode 100644 index 00000000..e2072ac0 --- /dev/null +++ b/apps/timo-web/api/generated/models/dayResponse.ts @@ -0,0 +1,19 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { DayResponseDayOfWeek } from "./dayResponseDayOfWeek"; +import type { TodoResponse } from "./todoResponse"; + +export interface DayResponse { + date?: string; + dayOfWeek?: DayResponseDayOfWeek; + isHoliday?: boolean; + isToday?: boolean; + totalCount?: number; + completedCount?: number; + todos?: TodoResponse[]; +} diff --git a/apps/timo-web/api/generated/models/dayResponseDayOfWeek.ts b/apps/timo-web/api/generated/models/dayResponseDayOfWeek.ts new file mode 100644 index 00000000..7d5f28fb --- /dev/null +++ b/apps/timo-web/api/generated/models/dayResponseDayOfWeek.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type DayResponseDayOfWeek = + (typeof DayResponseDayOfWeek)[keyof typeof DayResponseDayOfWeek]; + +export const DayResponseDayOfWeek = { + MON: "MON", + TUE: "TUE", + WED: "WED", + THU: "THU", + FRI: "FRI", + SAT: "SAT", + SUN: "SUN", +} as const; diff --git a/apps/timo-web/api/generated/models/errorDto.ts b/apps/timo-web/api/generated/models/errorDto.ts new file mode 100644 index 00000000..2a483e30 --- /dev/null +++ b/apps/timo-web/api/generated/models/errorDto.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface ErrorDto { + timestamp?: string; + status?: number; + errorCode?: string; + message?: string; + path?: string; +} diff --git a/apps/timo-web/api/generated/models/focusTodoDetailResponse.ts b/apps/timo-web/api/generated/models/focusTodoDetailResponse.ts new file mode 100644 index 00000000..f2098dfb --- /dev/null +++ b/apps/timo-web/api/generated/models/focusTodoDetailResponse.ts @@ -0,0 +1,21 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { SubtaskResponse } from "./subtaskResponse"; +import type { TagResponse } from "./tagResponse"; + +export interface FocusTodoDetailResponse { + todoId?: number; + icon?: string; + title?: string; + completed?: boolean; + durationSeconds?: number; + priority?: string; + tag?: TagResponse; + isRepeated?: boolean; + subtasks?: SubtaskResponse[]; +} diff --git a/apps/timo-web/api/generated/models/focusTodoResponse.ts b/apps/timo-web/api/generated/models/focusTodoResponse.ts new file mode 100644 index 00000000..79324c26 --- /dev/null +++ b/apps/timo-web/api/generated/models/focusTodoResponse.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { FocusTodoDetailResponse } from "./focusTodoDetailResponse"; +import type { FocusTodoResponseDayOfWeek } from "./focusTodoResponseDayOfWeek"; + +export interface FocusTodoResponse { + date?: string; + dayOfWeek?: FocusTodoResponseDayOfWeek; + hasTodo?: boolean; + todo?: FocusTodoDetailResponse; +} diff --git a/apps/timo-web/api/generated/models/focusTodoResponseDayOfWeek.ts b/apps/timo-web/api/generated/models/focusTodoResponseDayOfWeek.ts new file mode 100644 index 00000000..1897a041 --- /dev/null +++ b/apps/timo-web/api/generated/models/focusTodoResponseDayOfWeek.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type FocusTodoResponseDayOfWeek = + (typeof FocusTodoResponseDayOfWeek)[keyof typeof FocusTodoResponseDayOfWeek]; + +export const FocusTodoResponseDayOfWeek = { + MON: "MON", + TUE: "TUE", + WED: "WED", + THU: "THU", + FRI: "FRI", + SAT: "SAT", + SUN: "SUN", +} as const; diff --git a/apps/timo-web/api/generated/models/getCalendarParams.ts b/apps/timo-web/api/generated/models/getCalendarParams.ts new file mode 100644 index 00000000..70229eff --- /dev/null +++ b/apps/timo-web/api/generated/models/getCalendarParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface GetCalendarParams { + /** + * ์กฐํšŒํ•  ์—ฐ์›”. yyyy-MM ํ˜•์‹ + */ + yearMonth: string; +} diff --git a/apps/timo-web/api/generated/models/getDailyParams.ts b/apps/timo-web/api/generated/models/getDailyParams.ts new file mode 100644 index 00000000..ede495c4 --- /dev/null +++ b/apps/timo-web/api/generated/models/getDailyParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface GetDailyParams { + /** + * ์กฐํšŒ ๋‚ ์งœ. yyyy-MM-dd ํ˜•์‹ + */ + date: string; +} diff --git a/apps/timo-web/api/generated/models/getHomeParams.ts b/apps/timo-web/api/generated/models/getHomeParams.ts new file mode 100644 index 00000000..fdc6ca5a --- /dev/null +++ b/apps/timo-web/api/generated/models/getHomeParams.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface GetHomeParams { + /** + * ์กฐํšŒ ํ•„ํ„ฐ(DEFAULT, WEEK) + */ + filter?: string; + /** + * ๊ธฐ์ค€ ๋‚ ์งœ(yyyy-MM-dd), ๋ฏธ์ž…๋ ฅ ์‹œ ์˜ค๋Š˜ + */ + baseDate?: string; +} diff --git a/apps/timo-web/api/generated/models/getSummaryParams.ts b/apps/timo-web/api/generated/models/getSummaryParams.ts new file mode 100644 index 00000000..e0f5bff1 --- /dev/null +++ b/apps/timo-web/api/generated/models/getSummaryParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface GetSummaryParams { + /** + * ์กฐํšŒํ•  ์—ฐ์›”. yyyy-MM ํ˜•์‹ + */ + yearMonth: string; +} diff --git a/apps/timo-web/api/generated/models/getTermsParams.ts b/apps/timo-web/api/generated/models/getTermsParams.ts new file mode 100644 index 00000000..45e88deb --- /dev/null +++ b/apps/timo-web/api/generated/models/getTermsParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface GetTermsParams { + /** + * ์•ฝ๊ด€ ํƒ€์ž…(SERVICE, PRIVACY) + */ + type?: string; +} diff --git a/apps/timo-web/api/generated/models/getTimeBoxesParams.ts b/apps/timo-web/api/generated/models/getTimeBoxesParams.ts new file mode 100644 index 00000000..46e4f831 --- /dev/null +++ b/apps/timo-web/api/generated/models/getTimeBoxesParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface GetTimeBoxesParams { + /** + * ์กฐํšŒ ๋‚ ์งœ + */ + date: string; +} diff --git a/apps/timo-web/api/generated/models/getTodoDetailParams.ts b/apps/timo-web/api/generated/models/getTodoDetailParams.ts new file mode 100644 index 00000000..f1c1858a --- /dev/null +++ b/apps/timo-web/api/generated/models/getTodoDetailParams.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface GetTodoDetailParams { + /** + * ์กฐํšŒ ๊ธฐ์ค€ ๋‚ ์งœ (yyyy-MM-dd) + */ + date: string; +} diff --git a/apps/timo-web/api/generated/models/homeResponse.ts b/apps/timo-web/api/generated/models/homeResponse.ts new file mode 100644 index 00000000..8aa3725b --- /dev/null +++ b/apps/timo-web/api/generated/models/homeResponse.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { DayResponse } from "./dayResponse"; +import type { HomeResponseFilter } from "./homeResponseFilter"; + +export interface HomeResponse { + filter?: HomeResponseFilter; + baseDate?: string; + days?: DayResponse[]; +} diff --git a/apps/timo-web/api/generated/models/homeResponseFilter.ts b/apps/timo-web/api/generated/models/homeResponseFilter.ts new file mode 100644 index 00000000..99dbd9df --- /dev/null +++ b/apps/timo-web/api/generated/models/homeResponseFilter.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type HomeResponseFilter = + (typeof HomeResponseFilter)[keyof typeof HomeResponseFilter]; + +export const HomeResponseFilter = { + DEFAULT: "DEFAULT", + WEEK: "WEEK", +} as const; diff --git a/apps/timo-web/api/generated/models/index.ts b/apps/timo-web/api/generated/models/index.ts new file mode 100644 index 00000000..b72c72dc --- /dev/null +++ b/apps/timo-web/api/generated/models/index.ts @@ -0,0 +1,118 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export * from "./authReissueResponse"; +export * from "./authTokenRequest"; +export * from "./authTokenResponse"; +export * from "./baseResponse"; +export * from "./baseResponseAuthReissueResponse"; +export * from "./baseResponseAuthTokenResponse"; +export * from "./baseResponseFocusTodoResponse"; +export * from "./baseResponseHomeResponse"; +export * from "./baseResponseListTimeBoxResponse"; +export * from "./baseResponseObject"; +export * from "./baseResponseRecommendDurationResponse"; +export * from "./baseResponseStatisticsCalendarResponse"; +export * from "./baseResponseStatisticsDailyResponse"; +export * from "./baseResponseStatisticsSummaryResponse"; +export * from "./baseResponseSubtaskStatusChangeResponse"; +export * from "./baseResponseTagCreateResponse"; +export * from "./baseResponseTagListResponse"; +export * from "./baseResponseTermsListResponse"; +export * from "./baseResponseTimerActiveResponse"; +export * from "./baseResponseTimerExtendResponse"; +export * from "./baseResponseTimerFinishResponse"; +export * from "./baseResponseTimerStartResponse"; +export * from "./baseResponseTimerStatusResponse"; +export * from "./baseResponseTodayResponse"; +export * from "./baseResponseTodoCreateResponse"; +export * from "./baseResponseTodoDetailResponse"; +export * from "./baseResponseTodoReorderResponse"; +export * from "./baseResponseTodoStatusChangeResponse"; +export * from "./baseResponseUpdateLanguageResponse"; +export * from "./baseResponseUpdateTimezoneResponse"; +export * from "./baseResponseUserProfileResponse"; +export * from "./baseResponseVoid"; +export * from "./dailyTodoResponse"; +export * from "./dayCompletionResponse"; +export * from "./dayResponse"; +export * from "./dayResponseDayOfWeek"; +export * from "./errorDto"; +export * from "./focusTodoDetailResponse"; +export * from "./focusTodoResponse"; +export * from "./focusTodoResponseDayOfWeek"; +export * from "./getCalendarParams"; +export * from "./getDailyParams"; +export * from "./getHomeParams"; +export * from "./getSummaryParams"; +export * from "./getTermsParams"; +export * from "./getTimeBoxesParams"; +export * from "./getTodoDetailParams"; +export * from "./homeResponse"; +export * from "./homeResponseFilter"; +export * from "./onboardingRequest"; +export * from "./onboardingRequestLanguage"; +export * from "./recommendDurationRequest"; +export * from "./recommendDurationResponse"; +export * from "./repeatResponse"; +export * from "./repeatResponseWeekdaysItem"; +export * from "./statisticsCalendarResponse"; +export * from "./statisticsDailyResponse"; +export * from "./statisticsSummaryResponse"; +export * from "./subtaskResponse"; +export * from "./subtaskStatusChangeResponse"; +export * from "./subtaskStatusUpdateRequest"; +export * from "./tagCreateRequest"; +export * from "./tagCreateResponse"; +export * from "./tagListResponse"; +export * from "./tagResponse"; +export * from "./termsListResponse"; +export * from "./termsResponse"; +export * from "./timeBoxResponse"; +export * from "./timeBoxResponseEndAction"; +export * from "./timeBoxResponseStartAction"; +export * from "./timerActionRequest"; +export * from "./timerActionRequestAction"; +export * from "./timerActiveResponse"; +export * from "./timerExtendRequest"; +export * from "./timerExtendResponse"; +export * from "./timerFinishResponse"; +export * from "./timerStartResponse"; +export * from "./timerStatusResponse"; +export * from "./todayResponse"; +export * from "./todayResponseDayOfWeek"; +export * from "./todayTodoResponse"; +export * from "./todayTodoResponseTimerStatus"; +export * from "./todoCreateRequest"; +export * from "./todoCreateRequestIcon"; +export * from "./todoCreateRequestPriority"; +export * from "./todoCreateRequestRepeatType"; +export * from "./todoCreateRequestRepeatWeekdaysItem"; +export * from "./todoCreateResponse"; +export * from "./todoDetailResponse"; +export * from "./todoDetailResponseTimerStatus"; +export * from "./todoReorderRequest"; +export * from "./todoReorderResponse"; +export * from "./todoResponse"; +export * from "./todoResponseTimerStatus"; +export * from "./todoStatusChangeResponse"; +export * from "./todoStatusUpdateRequest"; +export * from "./todoSubtaskUpdateRequest"; +export * from "./todoUpdateRequest"; +export * from "./todoUpdateRequestIcon"; +export * from "./todoUpdateRequestPriority"; +export * from "./todoUpdateRequestRepeatType"; +export * from "./todoUpdateRequestRepeatWeekdaysItem"; +export * from "./updateLanguageRequest"; +export * from "./updateLanguageRequestLanguage"; +export * from "./updateLanguageResponse"; +export * from "./updateLanguageResponseLanguage"; +export * from "./updateTimezoneRequest"; +export * from "./updateTimezoneResponse"; +export * from "./userInfo"; +export * from "./userProfileResponse"; diff --git a/apps/timo-web/api/generated/models/onboardingRequest.ts b/apps/timo-web/api/generated/models/onboardingRequest.ts new file mode 100644 index 00000000..c12d6284 --- /dev/null +++ b/apps/timo-web/api/generated/models/onboardingRequest.ts @@ -0,0 +1,21 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { OnboardingRequestLanguage } from "./onboardingRequestLanguage"; + +export interface OnboardingRequest { + language: OnboardingRequestLanguage; + /** + * @minimum 1 + * @maximum 4 + */ + predictionAccuracy: number; + /** @pattern ^([01]\d|2[0-3]):[0-5]\d$ */ + wakeUpTime: string; + /** @pattern ^([01]\d|2[0-3]):[0-5]\d$ */ + bedTime: string; +} diff --git a/apps/timo-web/api/generated/models/onboardingRequestLanguage.ts b/apps/timo-web/api/generated/models/onboardingRequestLanguage.ts new file mode 100644 index 00000000..3018f306 --- /dev/null +++ b/apps/timo-web/api/generated/models/onboardingRequestLanguage.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type OnboardingRequestLanguage = + (typeof OnboardingRequestLanguage)[keyof typeof OnboardingRequestLanguage]; + +export const OnboardingRequestLanguage = { + KO: "KO", + EN: "EN", +} as const; diff --git a/apps/timo-web/api/generated/models/recommendDurationRequest.ts b/apps/timo-web/api/generated/models/recommendDurationRequest.ts new file mode 100644 index 00000000..d51cfee9 --- /dev/null +++ b/apps/timo-web/api/generated/models/recommendDurationRequest.ts @@ -0,0 +1,21 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface RecommendDurationRequest { + /** + * ์ถ”์ฒœ๋ฐ›์„ ํˆฌ๋‘๋ช… + * @minLength 0 + * @maxLength 30 + */ + title: string; + /** + * ํˆฌ๋‘ ํƒœ๊ทธ ID + * @nullable + */ + tagId?: number | null; +} diff --git a/apps/timo-web/api/generated/models/recommendDurationResponse.ts b/apps/timo-web/api/generated/models/recommendDurationResponse.ts new file mode 100644 index 00000000..36f217bf --- /dev/null +++ b/apps/timo-web/api/generated/models/recommendDurationResponse.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface RecommendDurationResponse { + /** ์ถ”์ฒœ ์˜ˆ์ƒ ์†Œ์š” ์‹œ๊ฐ„(๋ถ„) */ + recommendedMinutes?: number; +} diff --git a/apps/timo-web/api/generated/models/repeatResponse.ts b/apps/timo-web/api/generated/models/repeatResponse.ts new file mode 100644 index 00000000..8f542815 --- /dev/null +++ b/apps/timo-web/api/generated/models/repeatResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { RepeatResponseWeekdaysItem } from "./repeatResponseWeekdaysItem"; + +export interface RepeatResponse { + type?: string; + weekdays?: RepeatResponseWeekdaysItem[]; + dayOfMonth?: number; +} diff --git a/apps/timo-web/api/generated/models/repeatResponseWeekdaysItem.ts b/apps/timo-web/api/generated/models/repeatResponseWeekdaysItem.ts new file mode 100644 index 00000000..df70c142 --- /dev/null +++ b/apps/timo-web/api/generated/models/repeatResponseWeekdaysItem.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type RepeatResponseWeekdaysItem = + (typeof RepeatResponseWeekdaysItem)[keyof typeof RepeatResponseWeekdaysItem]; + +export const RepeatResponseWeekdaysItem = { + MON: "MON", + TUE: "TUE", + WED: "WED", + THU: "THU", + FRI: "FRI", + SAT: "SAT", + SUN: "SUN", +} as const; diff --git a/apps/timo-web/api/generated/models/statisticsCalendarResponse.ts b/apps/timo-web/api/generated/models/statisticsCalendarResponse.ts new file mode 100644 index 00000000..a111a048 --- /dev/null +++ b/apps/timo-web/api/generated/models/statisticsCalendarResponse.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { DayCompletionResponse } from "./dayCompletionResponse"; + +export interface StatisticsCalendarResponse { + /** ์กฐํšŒํ•œ ์—ฐ์›” */ + yearMonth?: string; + /** UTC ๊ธฐ์ค€ ์˜ค๋Š˜ ๋‚ ์งœ */ + today?: string; + days?: DayCompletionResponse[]; +} diff --git a/apps/timo-web/api/generated/models/statisticsDailyResponse.ts b/apps/timo-web/api/generated/models/statisticsDailyResponse.ts new file mode 100644 index 00000000..c64532b6 --- /dev/null +++ b/apps/timo-web/api/generated/models/statisticsDailyResponse.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { DailyTodoResponse } from "./dailyTodoResponse"; + +export interface StatisticsDailyResponse { + /** ์กฐํšŒ ๋‚ ์งœ */ + date?: string; + /** ํ•ด๋‹น ๋‚ ์งœ์˜ ์ด ๊ธฐ๋ก์‹œ๊ฐ„(๋ถ„) */ + totalRecordMinutes?: number; + todos?: DailyTodoResponse[]; +} diff --git a/apps/timo-web/api/generated/models/statisticsSummaryResponse.ts b/apps/timo-web/api/generated/models/statisticsSummaryResponse.ts new file mode 100644 index 00000000..80f18cd3 --- /dev/null +++ b/apps/timo-web/api/generated/models/statisticsSummaryResponse.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface StatisticsSummaryResponse { + /** ํ•ด๋‹น ์›”์˜ ์ „์ฒด ํƒ€์ด๋จธ ๊ธฐ๋ก ์‹œ๊ฐ„(๋ถ„) */ + totalRecordMinutes?: number; + /** 1๊ฐœ ์ด์ƒ์˜ ํˆฌ๋‘๋ฅผ ์ƒ์„ฑํ•œ ๋‚ ์งœ ์ˆ˜ */ + activeDayCount?: number; + /** ํƒ€์ด๋จธ๋ฅผ ์‹คํ–‰ํ•œ ๋‚ ์งœ ๊ธฐ์ค€ ์ผํ‰๊ท  ๊ธฐ๋ก ์‹œ๊ฐ„(๋ถ„) */ + averageRecordedMinutes?: number; + /** ํ•ด๋‹น ์›”์— ์™„๋ฃŒํ•œ ํˆฌ๋‘ ์ˆ˜ */ + completedTodoCount?: number; + /** ํ•ด๋‹น ์›”์— ์ž‘์„ฑ๋œ ์ „์ฒด ํˆฌ๋‘ ์ˆ˜ */ + totalTodoCount?: number; +} diff --git a/apps/timo-web/api/generated/models/subtaskResponse.ts b/apps/timo-web/api/generated/models/subtaskResponse.ts new file mode 100644 index 00000000..20534d6f --- /dev/null +++ b/apps/timo-web/api/generated/models/subtaskResponse.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface SubtaskResponse { + subtaskId?: number; + content?: string; + completed?: boolean; +} diff --git a/apps/timo-web/api/generated/models/subtaskStatusChangeResponse.ts b/apps/timo-web/api/generated/models/subtaskStatusChangeResponse.ts new file mode 100644 index 00000000..4526aacd --- /dev/null +++ b/apps/timo-web/api/generated/models/subtaskStatusChangeResponse.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface SubtaskStatusChangeResponse { + subtaskId?: number; + completed?: boolean; +} diff --git a/apps/timo-web/api/generated/models/subtaskStatusUpdateRequest.ts b/apps/timo-web/api/generated/models/subtaskStatusUpdateRequest.ts new file mode 100644 index 00000000..f4403f3e --- /dev/null +++ b/apps/timo-web/api/generated/models/subtaskStatusUpdateRequest.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface SubtaskStatusUpdateRequest { + isCompleted: boolean; +} diff --git a/apps/timo-web/api/generated/models/tagCreateRequest.ts b/apps/timo-web/api/generated/models/tagCreateRequest.ts new file mode 100644 index 00000000..a2432e88 --- /dev/null +++ b/apps/timo-web/api/generated/models/tagCreateRequest.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TagCreateRequest { + /** + * @minLength 0 + * @maxLength 10 + */ + name: string; +} diff --git a/apps/timo-web/api/generated/models/tagCreateResponse.ts b/apps/timo-web/api/generated/models/tagCreateResponse.ts new file mode 100644 index 00000000..c781903c --- /dev/null +++ b/apps/timo-web/api/generated/models/tagCreateResponse.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TagCreateResponse { + tagId?: number; + name?: string; + isDefault?: boolean; +} diff --git a/apps/timo-web/api/generated/models/tagListResponse.ts b/apps/timo-web/api/generated/models/tagListResponse.ts new file mode 100644 index 00000000..adc29cf1 --- /dev/null +++ b/apps/timo-web/api/generated/models/tagListResponse.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TagResponse } from "./tagResponse"; + +export interface TagListResponse { + tags?: TagResponse[]; +} diff --git a/apps/timo-web/api/generated/models/tagResponse.ts b/apps/timo-web/api/generated/models/tagResponse.ts new file mode 100644 index 00000000..9c7aafaf --- /dev/null +++ b/apps/timo-web/api/generated/models/tagResponse.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TagResponse { + tagId?: number; + name?: string; +} diff --git a/apps/timo-web/api/generated/models/termsListResponse.ts b/apps/timo-web/api/generated/models/termsListResponse.ts new file mode 100644 index 00000000..ca0ca75f --- /dev/null +++ b/apps/timo-web/api/generated/models/termsListResponse.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TermsResponse } from "./termsResponse"; + +export interface TermsListResponse { + /** ์•ฝ๊ด€ ๋ชฉ๋ก */ + terms?: TermsResponse[]; +} diff --git a/apps/timo-web/api/generated/models/termsResponse.ts b/apps/timo-web/api/generated/models/termsResponse.ts new file mode 100644 index 00000000..f5791f22 --- /dev/null +++ b/apps/timo-web/api/generated/models/termsResponse.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TermsResponse { + /** ์•ฝ๊ด€ ID */ + termsId?: number; + /** ์•ฝ๊ด€ ํƒ€์ž… */ + type?: string; + /** ์•ฝ๊ด€ ์ œ๋ชฉ */ + title?: string; + /** ์•ฝ๊ด€ ์ „๋ฌธ */ + content?: string; +} diff --git a/apps/timo-web/api/generated/models/timeBoxResponse.ts b/apps/timo-web/api/generated/models/timeBoxResponse.ts new file mode 100644 index 00000000..23f7ca71 --- /dev/null +++ b/apps/timo-web/api/generated/models/timeBoxResponse.ts @@ -0,0 +1,44 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TimeBoxResponseEndAction } from "./timeBoxResponseEndAction"; +import type { TimeBoxResponseStartAction } from "./timeBoxResponseStartAction"; + +export interface TimeBoxResponse { + /** ํƒ€์ž„๋ฐ•์Šค์˜ ์›๋ณธ์ด ๋˜๋Š” ํƒ€์ด๋จธ ์„ธ์…˜ ID */ + sessionId?: number; + /** ํƒ€์ด๋จธ ๊ธฐ๋ก ID */ + timerId?: number; + /** ํˆฌ๋‘ ID */ + todoId?: number; + /** ํˆฌ๋‘๋ช… */ + todoName?: string; + /** ํƒ€์ž„๋ฐ•์Šค ํ‘œ์‹œ ๋‚ ์งœ */ + date?: string; + /** ํ•ด๋‹น ๋‚ ์งœ์— ํ‘œ์‹œํ•  ์‹œ์ž‘ ์ผ์‹œ */ + startedAt?: string; + /** + * ์‹œ์ž‘ ์ผ์‹œ์˜ ์•ก์…˜. ์ด์ „ ๋‚ ์งœ๋ถ€ํ„ฐ ์ด์–ด์ง„ ๊ตฌ๊ฐ„์ด๋ฉด null + * @nullable + */ + startAction?: TimeBoxResponseStartAction; + /** + * ํ•ด๋‹น ๋‚ ์งœ์— ํ‘œ์‹œํ•  ์ข…๋ฃŒ ์ผ์‹œ. ์ง„ํ–‰ ์ค‘์ด๋ฉด null + * @nullable + */ + endedAt?: string | null; + /** + * ์ข…๋ฃŒ ์ผ์‹œ์˜ ์•ก์…˜. ์ง„ํ–‰ ์ค‘์ด๊ฑฐ๋‚˜ ๋‹ค์Œ ๋‚ ์งœ๋กœ ์ด์–ด์ง€๋ฉด null + * @nullable + */ + endAction?: TimeBoxResponseEndAction; + /** + * ์ „์ฒด ์‹ค์ œ ์ˆ˜ํ–‰ ์‹œ๊ฐ„(๋ถ„). ์™„๋ฃŒ๋œ ๋งˆ์ง€๋ง‰ ํƒ€์ž„๋ฐ•์Šค์—๋งŒ ํฌํ•จ + * @nullable + */ + actualMinutes?: number | null; +} diff --git a/apps/timo-web/api/generated/models/timeBoxResponseEndAction.ts b/apps/timo-web/api/generated/models/timeBoxResponseEndAction.ts new file mode 100644 index 00000000..b7df760c --- /dev/null +++ b/apps/timo-web/api/generated/models/timeBoxResponseEndAction.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +/** + * ์ข…๋ฃŒ ์ผ์‹œ์˜ ์•ก์…˜. ์ง„ํ–‰ ์ค‘์ด๊ฑฐ๋‚˜ ๋‹ค์Œ ๋‚ ์งœ๋กœ ์ด์–ด์ง€๋ฉด null + * @nullable + */ +export type TimeBoxResponseEndAction = + | (typeof TimeBoxResponseEndAction)[keyof typeof TimeBoxResponseEndAction] + | null; + +export const TimeBoxResponseEndAction = { + PAUSE: "PAUSE", + COMPLETE: "COMPLETE", +} as const; diff --git a/apps/timo-web/api/generated/models/timeBoxResponseStartAction.ts b/apps/timo-web/api/generated/models/timeBoxResponseStartAction.ts new file mode 100644 index 00000000..896d0501 --- /dev/null +++ b/apps/timo-web/api/generated/models/timeBoxResponseStartAction.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +/** + * ์‹œ์ž‘ ์ผ์‹œ์˜ ์•ก์…˜. ์ด์ „ ๋‚ ์งœ๋ถ€ํ„ฐ ์ด์–ด์ง„ ๊ตฌ๊ฐ„์ด๋ฉด null + * @nullable + */ +export type TimeBoxResponseStartAction = + | (typeof TimeBoxResponseStartAction)[keyof typeof TimeBoxResponseStartAction] + | null; + +export const TimeBoxResponseStartAction = { + START: "START", + RESUME: "RESUME", +} as const; diff --git a/apps/timo-web/api/generated/models/timerActionRequest.ts b/apps/timo-web/api/generated/models/timerActionRequest.ts new file mode 100644 index 00000000..5cd43b7d --- /dev/null +++ b/apps/timo-web/api/generated/models/timerActionRequest.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TimerActionRequestAction } from "./timerActionRequestAction"; + +export interface TimerActionRequest { + /** ํƒ€์ด๋จธ ๋™์ž‘ (PAUSE/RESUME) */ + action: TimerActionRequestAction; +} diff --git a/apps/timo-web/api/generated/models/timerActionRequestAction.ts b/apps/timo-web/api/generated/models/timerActionRequestAction.ts new file mode 100644 index 00000000..3418a04b --- /dev/null +++ b/apps/timo-web/api/generated/models/timerActionRequestAction.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +/** + * ํƒ€์ด๋จธ ๋™์ž‘ (PAUSE/RESUME) + */ +export type TimerActionRequestAction = + (typeof TimerActionRequestAction)[keyof typeof TimerActionRequestAction]; + +export const TimerActionRequestAction = { + PAUSE: "PAUSE", + RESUME: "RESUME", +} as const; diff --git a/apps/timo-web/api/generated/models/timerActiveResponse.ts b/apps/timo-web/api/generated/models/timerActiveResponse.ts new file mode 100644 index 00000000..7b37d35f --- /dev/null +++ b/apps/timo-web/api/generated/models/timerActiveResponse.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TimerActiveResponse { + timerId?: number; + todoId?: number; + todoTitle?: string; + iconType?: string; + status?: string; + plannedSeconds?: number; + extendedSeconds?: number; + elapsedSeconds?: number; + remainingSeconds?: number; + startedAt?: string; +} diff --git a/apps/timo-web/api/generated/models/timerExtendRequest.ts b/apps/timo-web/api/generated/models/timerExtendRequest.ts new file mode 100644 index 00000000..52ef5056 --- /dev/null +++ b/apps/timo-web/api/generated/models/timerExtendRequest.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TimerExtendRequest { + /** + * ์—ฐ์žฅํ•  ์‹œ๊ฐ„ (๋ถ„), 1 ์ด์ƒ + * @minimum 1 + * @maximum 720 + */ + extendMinutes: number; +} diff --git a/apps/timo-web/api/generated/models/timerExtendResponse.ts b/apps/timo-web/api/generated/models/timerExtendResponse.ts new file mode 100644 index 00000000..39b47024 --- /dev/null +++ b/apps/timo-web/api/generated/models/timerExtendResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TimerExtendResponse { + timerId?: number; + status?: string; + extendedSeconds?: number; + remainingSeconds?: number; +} diff --git a/apps/timo-web/api/generated/models/timerFinishResponse.ts b/apps/timo-web/api/generated/models/timerFinishResponse.ts new file mode 100644 index 00000000..33c623f8 --- /dev/null +++ b/apps/timo-web/api/generated/models/timerFinishResponse.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TimerFinishResponse { + timerId?: number; + todoId?: number; + status?: string; + plannedSeconds?: number; + actualSeconds?: number; + /** + * AI ํ”ผ๋“œ๋ฐฑ ๋ฌธ๊ตฌ. AI ํ˜ธ์ถœ ์‹คํŒจ ์‹œ null + * @nullable + */ + aiFeedback?: string | null; +} diff --git a/apps/timo-web/api/generated/models/timerStartResponse.ts b/apps/timo-web/api/generated/models/timerStartResponse.ts new file mode 100644 index 00000000..58d95409 --- /dev/null +++ b/apps/timo-web/api/generated/models/timerStartResponse.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TimerStartResponse { + timerId?: number; + todoId?: number; + status?: string; + plannedSeconds?: number; + startedAt?: string; +} diff --git a/apps/timo-web/api/generated/models/timerStatusResponse.ts b/apps/timo-web/api/generated/models/timerStatusResponse.ts new file mode 100644 index 00000000..d0568486 --- /dev/null +++ b/apps/timo-web/api/generated/models/timerStatusResponse.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TimerStatusResponse { + timerId?: number; + status?: string; + elapsedSeconds?: number; + remainingSeconds?: number; +} diff --git a/apps/timo-web/api/generated/models/todayResponse.ts b/apps/timo-web/api/generated/models/todayResponse.ts new file mode 100644 index 00000000..b68f1e5e --- /dev/null +++ b/apps/timo-web/api/generated/models/todayResponse.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TodayResponseDayOfWeek } from "./todayResponseDayOfWeek"; +import type { TodayTodoResponse } from "./todayTodoResponse"; + +export interface TodayResponse { + date?: string; + dayOfWeek?: TodayResponseDayOfWeek; + totalCount?: number; + completedCount?: number; + todos?: TodayTodoResponse[]; +} diff --git a/apps/timo-web/api/generated/models/todayResponseDayOfWeek.ts b/apps/timo-web/api/generated/models/todayResponseDayOfWeek.ts new file mode 100644 index 00000000..4625f32f --- /dev/null +++ b/apps/timo-web/api/generated/models/todayResponseDayOfWeek.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodayResponseDayOfWeek = + (typeof TodayResponseDayOfWeek)[keyof typeof TodayResponseDayOfWeek]; + +export const TodayResponseDayOfWeek = { + MON: "MON", + TUE: "TUE", + WED: "WED", + THU: "THU", + FRI: "FRI", + SAT: "SAT", + SUN: "SUN", +} as const; diff --git a/apps/timo-web/api/generated/models/todayTodoResponse.ts b/apps/timo-web/api/generated/models/todayTodoResponse.ts new file mode 100644 index 00000000..734f4d0c --- /dev/null +++ b/apps/timo-web/api/generated/models/todayTodoResponse.ts @@ -0,0 +1,26 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { SubtaskResponse } from "./subtaskResponse"; +import type { TagResponse } from "./tagResponse"; +import type { TodayTodoResponseTimerStatus } from "./todayTodoResponseTimerStatus"; + +export interface TodayTodoResponse { + todoId?: number; + icon?: string; + title?: string; + completed?: boolean; + date?: string; + durationSeconds?: number; + priority?: string; + tag?: TagResponse; + isRepeated?: boolean; + hasMemo?: boolean; + timerStatus?: TodayTodoResponseTimerStatus; + sortOrder?: number; + subtasks?: SubtaskResponse[]; +} diff --git a/apps/timo-web/api/generated/models/todayTodoResponseTimerStatus.ts b/apps/timo-web/api/generated/models/todayTodoResponseTimerStatus.ts new file mode 100644 index 00000000..8146641f --- /dev/null +++ b/apps/timo-web/api/generated/models/todayTodoResponseTimerStatus.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodayTodoResponseTimerStatus = + (typeof TodayTodoResponseTimerStatus)[keyof typeof TodayTodoResponseTimerStatus]; + +export const TodayTodoResponseTimerStatus = { + STOPPED: "STOPPED", + RUNNING: "RUNNING", + PAUSED: "PAUSED", +} as const; diff --git a/apps/timo-web/api/generated/models/todoCreateRequest.ts b/apps/timo-web/api/generated/models/todoCreateRequest.ts new file mode 100644 index 00000000..0c101ad3 --- /dev/null +++ b/apps/timo-web/api/generated/models/todoCreateRequest.ts @@ -0,0 +1,37 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TodoCreateRequestIcon } from "./todoCreateRequestIcon"; +import type { TodoCreateRequestPriority } from "./todoCreateRequestPriority"; +import type { TodoCreateRequestRepeatType } from "./todoCreateRequestRepeatType"; +import type { TodoCreateRequestRepeatWeekdaysItem } from "./todoCreateRequestRepeatWeekdaysItem"; + +export interface TodoCreateRequest { + icon?: TodoCreateRequestIcon; + /** @minLength 1 */ + title: string; + /** @items.minLength 1 */ + subtasks?: string[]; + date: string; + /** @minLength 1 */ + duration: string; + priority?: TodoCreateRequestPriority; + tagId?: number; + repeatType: TodoCreateRequestRepeatType; + repeatWeekdays?: TodoCreateRequestRepeatWeekdaysItem[]; + /** + * @minimum 1 + * @maximum 31 + */ + repeatDayOfMonth?: number; + /** + * @minLength 0 + * @maxLength 300 + */ + memo?: string; + repeatRuleValid?: boolean; +} diff --git a/apps/timo-web/api/generated/models/todoCreateRequestIcon.ts b/apps/timo-web/api/generated/models/todoCreateRequestIcon.ts new file mode 100644 index 00000000..03aee0eb --- /dev/null +++ b/apps/timo-web/api/generated/models/todoCreateRequestIcon.ts @@ -0,0 +1,21 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodoCreateRequestIcon = + (typeof TodoCreateRequestIcon)[keyof typeof TodoCreateRequestIcon]; + +export const TodoCreateRequestIcon = { + ICON_1: "ICON_1", + ICON_2: "ICON_2", + ICON_3: "ICON_3", + ICON_4: "ICON_4", + ICON_5: "ICON_5", + ICON_6: "ICON_6", + ICON_7: "ICON_7", + ICON_8: "ICON_8", +} as const; diff --git a/apps/timo-web/api/generated/models/todoCreateRequestPriority.ts b/apps/timo-web/api/generated/models/todoCreateRequestPriority.ts new file mode 100644 index 00000000..526d9374 --- /dev/null +++ b/apps/timo-web/api/generated/models/todoCreateRequestPriority.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodoCreateRequestPriority = + (typeof TodoCreateRequestPriority)[keyof typeof TodoCreateRequestPriority]; + +export const TodoCreateRequestPriority = { + VERY_HIGH: "VERY_HIGH", + HIGH: "HIGH", + MEDIUM: "MEDIUM", + LOW: "LOW", +} as const; diff --git a/apps/timo-web/api/generated/models/todoCreateRequestRepeatType.ts b/apps/timo-web/api/generated/models/todoCreateRequestRepeatType.ts new file mode 100644 index 00000000..942c8275 --- /dev/null +++ b/apps/timo-web/api/generated/models/todoCreateRequestRepeatType.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodoCreateRequestRepeatType = + (typeof TodoCreateRequestRepeatType)[keyof typeof TodoCreateRequestRepeatType]; + +export const TodoCreateRequestRepeatType = { + NONE: "NONE", + DAILY: "DAILY", + WEEKLY: "WEEKLY", + MONTHLY: "MONTHLY", +} as const; diff --git a/apps/timo-web/api/generated/models/todoCreateRequestRepeatWeekdaysItem.ts b/apps/timo-web/api/generated/models/todoCreateRequestRepeatWeekdaysItem.ts new file mode 100644 index 00000000..39dde79d --- /dev/null +++ b/apps/timo-web/api/generated/models/todoCreateRequestRepeatWeekdaysItem.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodoCreateRequestRepeatWeekdaysItem = + (typeof TodoCreateRequestRepeatWeekdaysItem)[keyof typeof TodoCreateRequestRepeatWeekdaysItem]; + +export const TodoCreateRequestRepeatWeekdaysItem = { + MON: "MON", + TUE: "TUE", + WED: "WED", + THU: "THU", + FRI: "FRI", + SAT: "SAT", + SUN: "SUN", +} as const; diff --git a/apps/timo-web/api/generated/models/todoCreateResponse.ts b/apps/timo-web/api/generated/models/todoCreateResponse.ts new file mode 100644 index 00000000..a940820c --- /dev/null +++ b/apps/timo-web/api/generated/models/todoCreateResponse.ts @@ -0,0 +1,11 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TodoCreateResponse { + todoId?: number; +} diff --git a/apps/timo-web/api/generated/models/todoDetailResponse.ts b/apps/timo-web/api/generated/models/todoDetailResponse.ts new file mode 100644 index 00000000..bf4ec897 --- /dev/null +++ b/apps/timo-web/api/generated/models/todoDetailResponse.ts @@ -0,0 +1,28 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { RepeatResponse } from "./repeatResponse"; +import type { SubtaskResponse } from "./subtaskResponse"; +import type { TagResponse } from "./tagResponse"; +import type { TodoDetailResponseTimerStatus } from "./todoDetailResponseTimerStatus"; + +export interface TodoDetailResponse { + todoId?: number; + icon?: string; + title?: string; + completed?: boolean; + date?: string; + dayOfWeek?: string; + durationSeconds?: number; + priority?: string; + tag?: TagResponse; + repeat?: RepeatResponse; + timerStatus?: TodoDetailResponseTimerStatus; + memo?: string; + sortOrder?: number; + subtasks?: SubtaskResponse[]; +} diff --git a/apps/timo-web/api/generated/models/todoDetailResponseTimerStatus.ts b/apps/timo-web/api/generated/models/todoDetailResponseTimerStatus.ts new file mode 100644 index 00000000..995d915a --- /dev/null +++ b/apps/timo-web/api/generated/models/todoDetailResponseTimerStatus.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodoDetailResponseTimerStatus = + (typeof TodoDetailResponseTimerStatus)[keyof typeof TodoDetailResponseTimerStatus]; + +export const TodoDetailResponseTimerStatus = { + STOPPED: "STOPPED", + RUNNING: "RUNNING", + PAUSED: "PAUSED", +} as const; diff --git a/apps/timo-web/api/generated/models/todoReorderRequest.ts b/apps/timo-web/api/generated/models/todoReorderRequest.ts new file mode 100644 index 00000000..1436b08a --- /dev/null +++ b/apps/timo-web/api/generated/models/todoReorderRequest.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TodoReorderRequest { + newIndex?: number; + date?: string; +} diff --git a/apps/timo-web/api/generated/models/todoReorderResponse.ts b/apps/timo-web/api/generated/models/todoReorderResponse.ts new file mode 100644 index 00000000..de6a7e1d --- /dev/null +++ b/apps/timo-web/api/generated/models/todoReorderResponse.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TodoReorderResponse { + todoId?: number; + sortOrder?: number; +} diff --git a/apps/timo-web/api/generated/models/todoResponse.ts b/apps/timo-web/api/generated/models/todoResponse.ts new file mode 100644 index 00000000..4f573fdf --- /dev/null +++ b/apps/timo-web/api/generated/models/todoResponse.ts @@ -0,0 +1,25 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { SubtaskResponse } from "./subtaskResponse"; +import type { TagResponse } from "./tagResponse"; +import type { TodoResponseTimerStatus } from "./todoResponseTimerStatus"; + +export interface TodoResponse { + todoId?: number; + icon?: string; + title?: string; + completed?: boolean; + durationSeconds?: number; + priority?: string; + tag?: TagResponse; + hasMemo?: boolean; + isRepeated?: boolean; + timerStatus?: TodoResponseTimerStatus; + sortOrder?: number; + subtasks?: SubtaskResponse[]; +} diff --git a/apps/timo-web/api/generated/models/todoResponseTimerStatus.ts b/apps/timo-web/api/generated/models/todoResponseTimerStatus.ts new file mode 100644 index 00000000..77ade4f8 --- /dev/null +++ b/apps/timo-web/api/generated/models/todoResponseTimerStatus.ts @@ -0,0 +1,16 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodoResponseTimerStatus = + (typeof TodoResponseTimerStatus)[keyof typeof TodoResponseTimerStatus]; + +export const TodoResponseTimerStatus = { + STOPPED: "STOPPED", + RUNNING: "RUNNING", + PAUSED: "PAUSED", +} as const; diff --git a/apps/timo-web/api/generated/models/todoStatusChangeResponse.ts b/apps/timo-web/api/generated/models/todoStatusChangeResponse.ts new file mode 100644 index 00000000..e4e00359 --- /dev/null +++ b/apps/timo-web/api/generated/models/todoStatusChangeResponse.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TodoStatusChangeResponse { + todoId?: number; + completed?: boolean; + sortOrder?: number; +} diff --git a/apps/timo-web/api/generated/models/todoStatusUpdateRequest.ts b/apps/timo-web/api/generated/models/todoStatusUpdateRequest.ts new file mode 100644 index 00000000..e81ed7e7 --- /dev/null +++ b/apps/timo-web/api/generated/models/todoStatusUpdateRequest.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TodoStatusUpdateRequest { + isCompleted: boolean; + date?: string; +} diff --git a/apps/timo-web/api/generated/models/todoSubtaskUpdateRequest.ts b/apps/timo-web/api/generated/models/todoSubtaskUpdateRequest.ts new file mode 100644 index 00000000..550da0d5 --- /dev/null +++ b/apps/timo-web/api/generated/models/todoSubtaskUpdateRequest.ts @@ -0,0 +1,14 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface TodoSubtaskUpdateRequest { + subtaskId?: number; + /** @minLength 1 */ + content: string; + completed: boolean; +} diff --git a/apps/timo-web/api/generated/models/todoUpdateRequest.ts b/apps/timo-web/api/generated/models/todoUpdateRequest.ts new file mode 100644 index 00000000..c2c0bb3c --- /dev/null +++ b/apps/timo-web/api/generated/models/todoUpdateRequest.ts @@ -0,0 +1,35 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { TodoSubtaskUpdateRequest } from "./todoSubtaskUpdateRequest"; +import type { TodoUpdateRequestIcon } from "./todoUpdateRequestIcon"; +import type { TodoUpdateRequestPriority } from "./todoUpdateRequestPriority"; +import type { TodoUpdateRequestRepeatType } from "./todoUpdateRequestRepeatType"; +import type { TodoUpdateRequestRepeatWeekdaysItem } from "./todoUpdateRequestRepeatWeekdaysItem"; + +export interface TodoUpdateRequest { + icon?: TodoUpdateRequestIcon; + title?: string; + date?: string; + /** @minimum 1 */ + durationSeconds?: number; + priority?: TodoUpdateRequestPriority; + tagId?: number; + repeatType?: TodoUpdateRequestRepeatType; + repeatWeekdays?: TodoUpdateRequestRepeatWeekdaysItem[]; + /** + * @minimum 1 + * @maximum 31 + */ + repeatDayOfMonth?: number; + /** + * @minLength 0 + * @maxLength 300 + */ + memo?: string; + subtasks?: TodoSubtaskUpdateRequest[]; +} diff --git a/apps/timo-web/api/generated/models/todoUpdateRequestIcon.ts b/apps/timo-web/api/generated/models/todoUpdateRequestIcon.ts new file mode 100644 index 00000000..c290f59b --- /dev/null +++ b/apps/timo-web/api/generated/models/todoUpdateRequestIcon.ts @@ -0,0 +1,21 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodoUpdateRequestIcon = + (typeof TodoUpdateRequestIcon)[keyof typeof TodoUpdateRequestIcon]; + +export const TodoUpdateRequestIcon = { + ICON_1: "ICON_1", + ICON_2: "ICON_2", + ICON_3: "ICON_3", + ICON_4: "ICON_4", + ICON_5: "ICON_5", + ICON_6: "ICON_6", + ICON_7: "ICON_7", + ICON_8: "ICON_8", +} as const; diff --git a/apps/timo-web/api/generated/models/todoUpdateRequestPriority.ts b/apps/timo-web/api/generated/models/todoUpdateRequestPriority.ts new file mode 100644 index 00000000..e3feaf67 --- /dev/null +++ b/apps/timo-web/api/generated/models/todoUpdateRequestPriority.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodoUpdateRequestPriority = + (typeof TodoUpdateRequestPriority)[keyof typeof TodoUpdateRequestPriority]; + +export const TodoUpdateRequestPriority = { + VERY_HIGH: "VERY_HIGH", + HIGH: "HIGH", + MEDIUM: "MEDIUM", + LOW: "LOW", +} as const; diff --git a/apps/timo-web/api/generated/models/todoUpdateRequestRepeatType.ts b/apps/timo-web/api/generated/models/todoUpdateRequestRepeatType.ts new file mode 100644 index 00000000..de7c5a2e --- /dev/null +++ b/apps/timo-web/api/generated/models/todoUpdateRequestRepeatType.ts @@ -0,0 +1,17 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodoUpdateRequestRepeatType = + (typeof TodoUpdateRequestRepeatType)[keyof typeof TodoUpdateRequestRepeatType]; + +export const TodoUpdateRequestRepeatType = { + NONE: "NONE", + DAILY: "DAILY", + WEEKLY: "WEEKLY", + MONTHLY: "MONTHLY", +} as const; diff --git a/apps/timo-web/api/generated/models/todoUpdateRequestRepeatWeekdaysItem.ts b/apps/timo-web/api/generated/models/todoUpdateRequestRepeatWeekdaysItem.ts new file mode 100644 index 00000000..ee894cdc --- /dev/null +++ b/apps/timo-web/api/generated/models/todoUpdateRequestRepeatWeekdaysItem.ts @@ -0,0 +1,20 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export type TodoUpdateRequestRepeatWeekdaysItem = + (typeof TodoUpdateRequestRepeatWeekdaysItem)[keyof typeof TodoUpdateRequestRepeatWeekdaysItem]; + +export const TodoUpdateRequestRepeatWeekdaysItem = { + MON: "MON", + TUE: "TUE", + WED: "WED", + THU: "THU", + FRI: "FRI", + SAT: "SAT", + SUN: "SUN", +} as const; diff --git a/apps/timo-web/api/generated/models/updateLanguageRequest.ts b/apps/timo-web/api/generated/models/updateLanguageRequest.ts new file mode 100644 index 00000000..f2acf857 --- /dev/null +++ b/apps/timo-web/api/generated/models/updateLanguageRequest.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { UpdateLanguageRequestLanguage } from "./updateLanguageRequestLanguage"; + +export interface UpdateLanguageRequest { + /** ๋ณ€๊ฒฝํ•  ์„œ๋น„์Šค ์–ธ์–ด */ + language: UpdateLanguageRequestLanguage; +} diff --git a/apps/timo-web/api/generated/models/updateLanguageRequestLanguage.ts b/apps/timo-web/api/generated/models/updateLanguageRequestLanguage.ts new file mode 100644 index 00000000..5867d61d --- /dev/null +++ b/apps/timo-web/api/generated/models/updateLanguageRequestLanguage.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +/** + * ๋ณ€๊ฒฝํ•  ์„œ๋น„์Šค ์–ธ์–ด + */ +export type UpdateLanguageRequestLanguage = + (typeof UpdateLanguageRequestLanguage)[keyof typeof UpdateLanguageRequestLanguage]; + +export const UpdateLanguageRequestLanguage = { + KO: "KO", + EN: "EN", +} as const; diff --git a/apps/timo-web/api/generated/models/updateLanguageResponse.ts b/apps/timo-web/api/generated/models/updateLanguageResponse.ts new file mode 100644 index 00000000..accae166 --- /dev/null +++ b/apps/timo-web/api/generated/models/updateLanguageResponse.ts @@ -0,0 +1,13 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ +import type { UpdateLanguageResponseLanguage } from "./updateLanguageResponseLanguage"; + +export interface UpdateLanguageResponse { + /** ๋ณ€๊ฒฝ๋œ ์„œ๋น„์Šค ์–ธ์–ด */ + language?: UpdateLanguageResponseLanguage; +} diff --git a/apps/timo-web/api/generated/models/updateLanguageResponseLanguage.ts b/apps/timo-web/api/generated/models/updateLanguageResponseLanguage.ts new file mode 100644 index 00000000..463b6382 --- /dev/null +++ b/apps/timo-web/api/generated/models/updateLanguageResponseLanguage.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +/** + * ๋ณ€๊ฒฝ๋œ ์„œ๋น„์Šค ์–ธ์–ด + */ +export type UpdateLanguageResponseLanguage = + (typeof UpdateLanguageResponseLanguage)[keyof typeof UpdateLanguageResponseLanguage]; + +export const UpdateLanguageResponseLanguage = { + KO: "KO", + EN: "EN", +} as const; diff --git a/apps/timo-web/api/generated/models/updateTimezoneRequest.ts b/apps/timo-web/api/generated/models/updateTimezoneRequest.ts new file mode 100644 index 00000000..2a05ca6e --- /dev/null +++ b/apps/timo-web/api/generated/models/updateTimezoneRequest.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface UpdateTimezoneRequest { + /** + * IANA ์‹œ๊ฐ„๋Œ€ ID + * @minLength 1 + */ + zoneId: string; +} diff --git a/apps/timo-web/api/generated/models/updateTimezoneResponse.ts b/apps/timo-web/api/generated/models/updateTimezoneResponse.ts new file mode 100644 index 00000000..840071d1 --- /dev/null +++ b/apps/timo-web/api/generated/models/updateTimezoneResponse.ts @@ -0,0 +1,12 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface UpdateTimezoneResponse { + /** ๋ณ€๊ฒฝ๋œ ์‹œ๊ฐ„๋Œ€ ID */ + zoneId?: string; +} diff --git a/apps/timo-web/api/generated/models/userInfo.ts b/apps/timo-web/api/generated/models/userInfo.ts new file mode 100644 index 00000000..326a6742 --- /dev/null +++ b/apps/timo-web/api/generated/models/userInfo.ts @@ -0,0 +1,15 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface UserInfo { + id?: number; + name?: string; + email?: string; + profileImageUrl?: string; + onboardingCompleted?: boolean; +} diff --git a/apps/timo-web/api/generated/models/userProfileResponse.ts b/apps/timo-web/api/generated/models/userProfileResponse.ts new file mode 100644 index 00000000..26f31a56 --- /dev/null +++ b/apps/timo-web/api/generated/models/userProfileResponse.ts @@ -0,0 +1,18 @@ +/** + * Generated by orval v8.20.0 ๐Ÿบ + * Do not edit manually. + * Timo API + * Timo ์„œ๋ฒ„ API ๋ช…์„ธ์„œ + * OpenAPI spec version: v1 + */ + +export interface UserProfileResponse { + id?: number; + name?: string; + email?: string; + profileImageUrl?: string; + language?: string; + zoneId?: string; + calendarConnected?: boolean; + calendarEmail?: string; +} diff --git a/apps/timo-web/api/schema/response.ts b/apps/timo-web/api/schema/response.ts index 985f1bc5..31ac3a5f 100644 --- a/apps/timo-web/api/schema/response.ts +++ b/apps/timo-web/api/schema/response.ts @@ -1,13 +1,5 @@ import { z } from "zod"; -export function apiResponseSchema(dataSchema: T) { - return z.object({ - status: z.number(), - message: z.string(), - data: dataSchema, - }); -} - export const apiErrorSchema = z.object({ timestamp: z.string(), status: z.number(), diff --git a/apps/timo-web/api/todo/todo-schema.ts b/apps/timo-web/api/todo/todo-schema.ts index cdaa6fea..f1516663 100644 --- a/apps/timo-web/api/todo/todo-schema.ts +++ b/apps/timo-web/api/todo/todo-schema.ts @@ -1,8 +1,6 @@ import { TODO_ICON_VALUES } from "@repo/timo-design-system/ui"; import { z } from "zod"; -import { apiResponseSchema } from "@/api/schema/response"; - export const todoIconSchema = z.enum(TODO_ICON_VALUES); export const todoPrioritySchema = z.enum([ @@ -73,11 +71,3 @@ export type TodoIcon = z.infer; export type TodoPriority = z.infer; export type TodoRepeatType = z.infer; export type TodoRepeatWeekday = z.infer; - -export const createTodoResponseSchema = apiResponseSchema( - z.object({ - todoId: z.number(), - }), -); - -export type CreateTodoResponse = z.infer; diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-icon-field.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-icon-field.ts index b9071654..eb36a057 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-icon-field.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-icon-field.ts @@ -4,7 +4,6 @@ import { useController } from "react-hook-form"; import type { CreateTodoRequest, TodoIcon } from "@/api/todo/todo-schema"; import type { Control } from "react-hook-form"; - export interface UseIconFieldParams { control: Control; } diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-repeat-field.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-repeat-field.ts index 6661f604..11f2eae6 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-repeat-field.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-repeat-field.ts @@ -8,7 +8,6 @@ import type { import type { RepeatFrequency } from "@repo/timo-design-system/ui"; import type { Control } from "react-hook-form"; - const WEEKDAY_CODES: TodoRepeatWeekday[] = [ "MON", "TUE", diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-tag-field.tsx b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-tag-field.tsx index 1a501543..9e1ec51e 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-tag-field.tsx +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-tag-field.tsx @@ -6,7 +6,6 @@ import { useController } from "react-hook-form"; import type { CreateTodoRequest } from "@/api/todo/todo-schema"; import type { Control } from "react-hook-form"; - import { CreateTagModalContainer } from "@/app/[locale]/(main)/(with-time-sidebar)/home/_containers/tag-modal/CreateTagModalContainer"; const TAG_NAMES = [ diff --git a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-time-field.ts b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-time-field.ts index 602eb047..6243673f 100644 --- a/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-time-field.ts +++ b/apps/timo-web/app/[locale]/(main)/(with-time-sidebar)/home/_hooks/todo-modal/use-time-field.ts @@ -5,7 +5,6 @@ import type { CreateTodoRequest } from "@/api/todo/todo-schema"; import type { TimeSelection } from "@repo/timo-design-system/ui"; import type { Control } from "react-hook-form"; - const TIME_OPTIONS = [ { minute: 15, value: "15", unit: "min" }, { minute: 30, value: "30", unit: "min" }, diff --git a/apps/timo-web/app/[locale]/layout.tsx b/apps/timo-web/app/[locale]/layout.tsx index 640216c1..fb722c20 100644 --- a/apps/timo-web/app/[locale]/layout.tsx +++ b/apps/timo-web/app/[locale]/layout.tsx @@ -2,6 +2,7 @@ import "./globals.css"; import localFont from "next/font/local"; import { notFound } from "next/navigation"; import { hasLocale, NextIntlClientProvider } from "next-intl"; +import { setRequestLocale } from "next-intl/server"; import type { Metadata } from "next"; @@ -40,6 +41,8 @@ export default async function RootLayout({ notFound(); } + setRequestLocale(locale); + return ( diff --git a/apps/timo-web/orval.config.ts b/apps/timo-web/orval.config.ts new file mode 100644 index 00000000..19709b4d --- /dev/null +++ b/apps/timo-web/orval.config.ts @@ -0,0 +1,62 @@ +import { loadEnvConfig } from "@next/env"; +import { defineConfig } from "orval"; + +loadEnvConfig(process.cwd()); + +const apiBaseUrl = process.env.NEXT_PUBLIC_API_BASE_URL; +if (!apiBaseUrl) + throw new Error("NEXT_PUBLIC_API_BASE_URL์ด ์„ค์ •๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค."); + +const TIMO_API_SPEC_URL = `${apiBaseUrl}/v3/api-docs`; + +export default defineConfig({ + timo: { + input: { + target: TIMO_API_SPEC_URL, + // bearerAuth ์‹œํ๋ฆฌํ‹ฐ ์Šคํ‚ด์— ์ŠคํŽ™ ์ƒ ํ—ˆ์šฉ๋˜์ง€ ์•Š๋Š” name ํ•„๋“œ๊ฐ€ ๋ถ™์–ด ์žˆ์–ด + // ๊ธฐ๋ณธ ๊ฒ€์ฆ๊ธฐ๊ฐ€ ์˜คํƒ ์‹คํŒจํ•œ๋‹ค (springdoc-openapi ์ถœ๋ ฅ ํŠน์„ฑ, orval#3203). + // TODO: ์œ„ orval ์ด์Šˆ๊ฐ€ upstream์—์„œ ํ•ด๊ฒฐ๋˜๋ฉด unsafeDisableValidation์„ ์ œ๊ฑฐํ•˜๊ณ  + // ์ŠคํŽ™ ๊ฒ€์ฆ์„ ๋‹ค์‹œ ํ™œ์„ฑํ™”ํ•œ๋‹ค. + unsafeDisableValidation: true, + }, + output: { + mode: "tags-split", + client: "react-query", + httpClient: "axios", + target: "./api/generated/endpoints", + schemas: "./api/generated/models", + override: { + mutator: { + path: "./api/client/custom-instance.ts", + name: "customInstance", + }, + }, + }, + hooks: { + afterAllFilesWrite: ["prettier --write", "eslint --fix"], + }, + }, + timoZod: { + input: { + target: TIMO_API_SPEC_URL, + // bearerAuth ์‹œํ๋ฆฌํ‹ฐ ์Šคํ‚ด์— ์ŠคํŽ™ ์ƒ ํ—ˆ์šฉ๋˜์ง€ ์•Š๋Š” name ํ•„๋“œ๊ฐ€ ๋ถ™์–ด ์žˆ์–ด + // ๊ธฐ๋ณธ ๊ฒ€์ฆ๊ธฐ๊ฐ€ ์˜คํƒ ์‹คํŒจํ•œ๋‹ค (springdoc-openapi ์ถœ๋ ฅ ํŠน์„ฑ, orval#3203). + // TODO: ์œ„ orval ์ด์Šˆ๊ฐ€ upstream์—์„œ ํ•ด๊ฒฐ๋˜๋ฉด unsafeDisableValidation์„ ์ œ๊ฑฐํ•˜๊ณ  + // ์ŠคํŽ™ ๊ฒ€์ฆ์„ ๋‹ค์‹œ ํ™œ์„ฑํ™”ํ•œ๋‹ค. + unsafeDisableValidation: true, + }, + output: { + mode: "tags-split", + client: "zod", + target: "./api/generated/endpoints", + fileExtension: ".zod.ts", + }, + hooks: { + afterAllFilesWrite: [ + "node ./scripts/fix-generated-escapes.js", + "prettier --write", + "eslint --fix", + ], + }, + }, +}); diff --git a/apps/timo-web/package.json b/apps/timo-web/package.json index 40fa31eb..970bd3ab 100644 --- a/apps/timo-web/package.json +++ b/apps/timo-web/package.json @@ -8,7 +8,8 @@ "build": "next build", "start": "next start", "lint": "eslint --max-warnings 0", - "check-types": "next typegen && tsc --noEmit" + "check-types": "next typegen && tsc --noEmit", + "gen:api": "orval --config ./orval.config.ts" }, "dependencies": { "@dnd-kit/core": "^6.3.1", @@ -33,6 +34,7 @@ "zustand": "^5.0.14" }, "devDependencies": { + "@next/env": "16.2.0", "@repo/eslint-config": "workspace:*", "@repo/tailwind-config": "workspace:*", "@repo/typescript-config": "workspace:*", @@ -41,6 +43,7 @@ "@types/react": "19.2.2", "@types/react-dom": "19.2.2", "eslint": "^9.39.1", + "orval": "^8.20.0", "typescript": "5.9.2" } } diff --git a/apps/timo-web/scripts/fix-generated-escapes.js b/apps/timo-web/scripts/fix-generated-escapes.js new file mode 100644 index 00000000..5b3b4999 --- /dev/null +++ b/apps/timo-web/scripts/fix-generated-escapes.js @@ -0,0 +1,13 @@ +import fs from "fs"; +import process from "node:process"; + +const files = process.argv.slice(2); + +for (const filePath of files) { + const content = fs.readFileSync(filePath, "utf8"); + const fixed = content.split("\\/").join("/"); + + if (fixed !== content) { + fs.writeFileSync(filePath, fixed); + } +} diff --git a/package.json b/package.json index 7b59dd17..1e2014ae 100644 --- a/package.json +++ b/package.json @@ -31,5 +31,10 @@ "packageManager": "pnpm@9.0.0", "engines": { "node": ">=18" + }, + "pnpm": { + "overrides": { + "esbuild": "0.25.12" + } } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d66ff232..efcfafb6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,9 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + esbuild: 0.25.12 + importers: .: @@ -93,6 +96,9 @@ importers: specifier: ^5.0.14 version: 5.0.14(@types/react@19.2.2)(react@19.2.0) devDependencies: + '@next/env': + specifier: 16.2.0 + version: 16.2.0 '@repo/eslint-config': specifier: workspace:* version: link:../../packages/eslint-config @@ -117,6 +123,9 @@ importers: eslint: specifier: ^9.39.1 version: 9.39.1(jiti@2.7.0) + orval: + specifier: ^8.20.0 + version: 8.20.0(prettier@3.7.4)(typescript@5.9.2) typescript: specifier: 5.9.2 version: 5.9.2 @@ -344,6 +353,11 @@ packages: resolution: {integrity: sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==} engines: {node: '>=6.9.0'} + '@commander-js/extra-typings@15.0.0': + resolution: {integrity: sha512-yeJlba62xqmkgELUsn7356MEnzLLu/fw2x4lofFqGnXh6YysRdEs2BaLeLtg1+KU0AXvMeqQvTTp+3hBEBK+EA==} + peerDependencies: + commander: ~15.0.0 + '@dnd-kit/accessibility@3.1.1': resolution: {integrity: sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==} peerDependencies: @@ -595,6 +609,9 @@ packages: peerDependencies: react-hook-form: ^7.55.0 + '@gerrit0/mini-shiki@3.23.0': + resolution: {integrity: sha512-bEMORlG0cqdjVyCEuU0cDQbORWX+kYCeo0kV1lbxF5bt4r7SID2l9bqsxJEM0zndaxpOUT7riCyIVEuqq/Ynxg==} + '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} engines: {node: '>=18.18.0'} @@ -1028,6 +1045,52 @@ packages: resolution: {integrity: sha512-/UhIkaZgPutTFmQ7RnIJGgDXZmtEJ7Dvi86xNTFWcnRxVRNk/aotsqDJYeEvDP+FSMB2SdW+pQzNMcWP0rwuNA==} engines: {node: '>=14'} + '@orval/angular@8.20.0': + resolution: {integrity: sha512-MavI1m1bqw/p2xNsPYoJ2hvk1fo898OpeVTpLRFO3bckjfpAFyKE+wyi89Ces33qFC9NTedEwMKvt0nQresBgw==} + + '@orval/axios@8.20.0': + resolution: {integrity: sha512-YPEAVHGCJ+8LoKCFNQjcJPFpIzyAP+B6QjqkrYZ4i/L00JkVaqy0kRCb9q0+G/LtmPGoGfl/RB3lPlEeApaGdA==} + + '@orval/core@8.20.0': + resolution: {integrity: sha512-PYZlOzDmD5O+GlnamrvVkX4jdo8B3LuprlmLT7tct8wknwiKf/1SDxT8pR9cv3gcx8IlCQA+7zPSp41uX2LFkQ==} + peerDependencies: + '@faker-js/faker': '>=10' + peerDependenciesMeta: + '@faker-js/faker': + optional: true + + '@orval/effect@8.20.0': + resolution: {integrity: sha512-BPquvm7bhxIp8hJ/DHaugADjldhqZUvnHXF2caC520/Kx7/OWbvWYjHWQtZNgeNW3gLmB1OvOtt52q3IKhV2Jw==} + + '@orval/fetch@8.20.0': + resolution: {integrity: sha512-u2GDK6Fjcmlht8LpD7cNorLEifL96Du20zP1gqOce6Zc+Cd/nS4KMaLrYvf74nvjU8TbG8iIsxp0uN0+Y3iWRQ==} + + '@orval/hono@8.20.0': + resolution: {integrity: sha512-/9VoD5NmM+DuL+YUs7wTpJ22KwhmCSybvxTNeGv6oIFLTD5C7JJzM3ewlC9dvUNT6K30sjRBx784WMUChRlWdQ==} + peerDependencies: + typescript: '>=5' + peerDependenciesMeta: + typescript: + optional: true + + '@orval/mcp@8.20.0': + resolution: {integrity: sha512-8EuZdlscZiS89AHwaXjMJl8lbmlWJBpFkna3UJGQSw4pbGg08FOh9HbXvxiN5Lr/G9cCcnwIQ2gk3TmPfH3MGA==} + + '@orval/mock@8.20.0': + resolution: {integrity: sha512-6hnDtAFdP64SHuKlr1aOqps3RXPs4FUMUh3TWXrXvOf0s2HmWzYZOecNqowlswFFKLRWrh5fF5l1Nr0Q9zai7g==} + + '@orval/query@8.20.0': + resolution: {integrity: sha512-PTExKtAUtaYfkS6+xvgSvrIWxxmiOHLuCZwYnVc5U7c6Nthw+sS4dF3zFiOd80zX2vFSadxdveOxTFDks7AXIw==} + + '@orval/solid-start@8.20.0': + resolution: {integrity: sha512-xwH+VwN02JmpE5gemwSVw/jwsWzPUkaxkBm10Pa6Yr7Eu+tUtmot4upJAmQsLXq9ep+EMM97gtVuMbmT69SAUg==} + + '@orval/swr@8.20.0': + resolution: {integrity: sha512-92TFUIgllvdEY+34tcsB8BzGM6CaxYW8/P47xDDODvsksjHV0OcpkR9Hh1setzjJu7WpAyAGLsL0Sy71REfLug==} + + '@orval/zod@8.20.0': + resolution: {integrity: sha512-6/bC1i4MGcMwksEPURs8sR7QDU3ymFV0fKvTEttvdhacwLahz58DZZtXLYauVVEZV1cMSGLUX5jE4axmO3S+6w==} + '@oxc-project/types@0.137.0': resolution: {integrity: sha512-WT+Gb24i8hmvo85AIv2oEYouEXkRlKAlT9WaCa3TfLgNCN+GhrJOGZuIlMouAh38Qe4QOx26eUOVsq70qXrywA==} @@ -1355,9 +1418,36 @@ packages: '@rtsao/scc@1.1.0': resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==} + '@scalar/helpers@0.9.0': + resolution: {integrity: sha512-M34CLRCttqC1bXthI/QSzQj0s5C6nrU2PFWf/vOT3RpycbiGDGQbqR+5RfFzpOIQvRqbHfNdcRbeiZBw+vCbkQ==} + engines: {node: '>=22'} + + '@scalar/json-magic@0.12.17': + resolution: {integrity: sha512-Vw2nrUDIjhvMP6vxFtkiiFlabJ6SyTtfn1BsOxgnr1hIB+/rkngMguiDzl5em21VjyfFGIoADia+QWKM2hdcdA==} + engines: {node: '>=22'} + + '@scalar/openapi-parser@0.28.8': + resolution: {integrity: sha512-BO98D3TLfKNL80UnE1sIAmI6DQRmOaH0AHnlAooTn1sQjNbRDaeHyRO53EEjo7HjFEdHeQtiRzoXmMB4jvt8AA==} + engines: {node: '>=22'} + + '@scalar/openapi-types@0.8.0': + resolution: {integrity: sha512-WmaxVSfvY5K/TwcG2B2TU1WOe1As1uc2s7myswtP6dBlcjU3hM08SApxv/jmyGaCE8t4gO5BBhmHY4pDUfmr2g==} + engines: {node: '>=22'} + + '@scalar/openapi-types@0.9.1': + resolution: {integrity: sha512-gkGhSkxSzADaBiNg+ZAbJuwj+ZUmzP2Pg9CWZ7ZP+0fck2WjPeDDM7aAbouAm0aQQMF9xBjSPXSA9a/qTHYaTw==} + engines: {node: '>=22'} + + '@scalar/openapi-upgrader@0.2.9': + resolution: {integrity: sha512-D5b0rGLLZgmkO9mdW2j/ND1KBlH1u3RCpr87HPxv9P9ZSr6PtM5iLqFOJq0ACiaHjY2mikCrxgDmnUEhTzRpHQ==} + engines: {node: '>=22'} + '@schummar/icu-type-parser@1.21.5': resolution: {integrity: sha512-bXHSaW5jRTmke9Vd0h5P7BtWZG9Znqb8gSDxZnxaGSJnGwPLDPfS+3g0BKzeWqzgZPsIVZkM7m2tbo18cm5HBw==} + '@sec-ant/readable-stream@0.4.1': + resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} + '@sentry/babel-plugin-component-annotate@5.3.0': resolution: {integrity: sha512-p4q8gn8wcFqZGP/s2MnJCAAd8fTikaU6A0mM97RDHQgStcrYiaS0Sc5zUNfb1V+UOLPuvdEdL6MwyxfzjYJQTA==} engines: {node: '>= 18'} @@ -1508,6 +1598,25 @@ packages: '@standard-schema/utils@0.3.0': resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==} + '@shikijs/engine-oniguruma@3.23.0': + resolution: {integrity: sha512-1nWINwKXxKKLqPibT5f4pAFLej9oZzQTsby8942OTlsJzOBZ0MWKiwzMsd+jhzu8YPCHAswGnnN1YtQfirL35g==} + + '@shikijs/langs@3.23.0': + resolution: {integrity: sha512-2Ep4W3Re5aB1/62RSYQInK9mM3HsLeB91cHqznAJMuylqjzNVAVCMnNWRHFtcNHXsoNRayP9z1qj4Sq3nMqYXg==} + + '@shikijs/themes@3.23.0': + resolution: {integrity: sha512-5qySYa1ZgAT18HR/ypENL9cUSGOeI2x+4IvYJu4JgVJdizn6kG4ia5Q1jDEOi7gTbN4RbuYtmHh0W3eccOrjMA==} + + '@shikijs/types@3.23.0': + resolution: {integrity: sha512-3JZ5HXOZfYjsYSk0yPwBrkupyYSLpAE26Qc0HLghhZNGTZg/SKxXIIgoxOpmmeQP0RRSDJTk1/vPfw9tbw+jSQ==} + + '@shikijs/vscode-textmate@10.0.2': + resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==} + + '@sindresorhus/merge-streams@4.0.0': + resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==} + engines: {node: '>=18'} + '@storybook/addon-a11y@8.6.14': resolution: {integrity: sha512-fozv6enO9IgpWq2U8qqS8MZ21Nt+MVHiRQe3CjnCpBOejTyo/ATm690PeYYRVHVG6M/15TVePb0h3ngKQbrrzQ==} peerDependencies: @@ -2038,6 +2147,9 @@ packages: '@types/estree@1.0.9': resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + '@types/hast@3.0.5': + resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==} + '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} @@ -2061,6 +2173,9 @@ packages: '@types/resolve@1.20.6': resolution: {integrity: sha512-A4STmOXPhMUtHH+S6ymgE2GiBSMqf4oTvcQZMcHzokuTLVYzXTB8ttjcgxOVaAp2lGwEdzZ0J+cRbbeevQj1UQ==} + '@types/unist@3.0.3': + resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + '@types/uuid@9.0.8': resolution: {integrity: sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==} @@ -2222,6 +2337,14 @@ packages: resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} engines: {node: '>= 6.0.0'} + ajv-draft-04@1.0.0: + resolution: {integrity: sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==} + peerDependencies: + ajv: ^8.5.0 + peerDependenciesMeta: + ajv: + optional: true + ajv-formats@2.1.1: resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} peerDependencies: @@ -2230,6 +2353,14 @@ packages: ajv: optional: true + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + ajv-keywords@5.1.0: resolution: {integrity: sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==} peerDependencies: @@ -2438,6 +2569,10 @@ packages: resolution: {integrity: sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==} engines: {node: '>= 16'} + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + chromatic@17.7.2: resolution: {integrity: sha512-/y6LcCiOXG3ecWNLGhXgir29wKhkrmK1RIVAB/5gdDsakWNG/u7mPZFuUlMFkxvA8bMJ0cDHgt1J7K1MWTg3+A==} engines: {node: '>=22.0.0'} @@ -2491,6 +2626,10 @@ packages: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} + commander@15.0.0: + resolution: {integrity: sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==} + engines: {node: '>=22.12.0'} + commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -2505,6 +2644,9 @@ packages: commondir@1.0.1: resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} + compare-versions@6.1.1: + resolution: {integrity: sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==} + concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} @@ -2734,7 +2876,7 @@ packages: esbuild-register@3.6.0: resolution: {integrity: sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==} peerDependencies: - esbuild: '>=0.12 <1' + esbuild: 0.25.12 esbuild@0.25.12: resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} @@ -2889,6 +3031,10 @@ packages: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} + execa@9.6.1: + resolution: {integrity: sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==} + engines: {node: ^18.19.0 || >=20.5.0} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -2917,6 +3063,10 @@ packages: picomatch: optional: true + figures@6.1.0: + resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==} + engines: {node: '>=18'} + file-entry-cache@8.0.0: resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} engines: {node: '>=16.0.0'} @@ -2929,6 +3079,10 @@ packages: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} + find-up@8.0.0: + resolution: {integrity: sha512-JGG8pvDi2C+JxidYdIwQDyS/CgcrIdh18cvgxcBge3wSHRQOrooMD3GlFBcmMJAN9M42SAZjDp5zv1dglJjwww==} + engines: {node: '>=20'} + flat-cache@4.0.1: resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} engines: {node: '>=16'} @@ -2968,6 +3122,10 @@ packages: resolution: {integrity: sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==} engines: {node: '>= 6'} + fs-extra@11.3.6: + resolution: {integrity: sha512-w8ZNZr2mKIc7qeNaQ9AVPT1+iFaI+Avd4xudVOvdDJ8VytREi1Ft5Ih7hd9jjehod8vAM5GMsfQ/TpPf4EyoEA==} + engines: {node: '>=14.14'} + fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} @@ -3002,10 +3160,17 @@ packages: resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} engines: {node: '>= 0.4'} + get-stream@9.0.1: + resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==} + engines: {node: '>=18'} + get-symbol-description@1.1.0: resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==} engines: {node: '>= 0.4'} + get-tsconfig@4.14.0: + resolution: {integrity: sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==} + glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -3082,6 +3247,10 @@ packages: resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} engines: {node: '>= 6'} + human-signals@8.0.1: + resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==} + engines: {node: '>=18.18.0'} + husky@9.1.7: resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==} engines: {node: '>=18'} @@ -3220,6 +3389,10 @@ packages: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} + is-plain-obj@4.1.0: + resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} + engines: {node: '>=12'} + is-reference@1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} @@ -3235,6 +3408,10 @@ packages: resolution: {integrity: sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==} engines: {node: '>= 0.4'} + is-stream@4.0.1: + resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==} + engines: {node: '>=18'} + is-string@1.1.1: resolution: {integrity: sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==} engines: {node: '>= 0.4'} @@ -3247,6 +3424,10 @@ packages: resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==} engines: {node: '>= 0.4'} + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + is-weakmap@2.0.2: resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==} engines: {node: '>= 0.4'} @@ -3291,6 +3472,10 @@ packages: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true + js-yaml@4.2.0: + resolution: {integrity: sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==} + hasBin: true + jsdoc-type-pratt-parser@4.8.0: resolution: {integrity: sha512-iZ8Bdb84lWRuGHamRXFyML07r21pcwBrLkHEuHgEY5UbCouBwv7ECknDRKzsQIXMiqpPymqtIf8TC/shYKB5rw==} engines: {node: '>=12.0.0'} @@ -3324,6 +3509,13 @@ packages: engines: {node: '>=6'} hasBin: true + jsonfile@6.2.1: + resolution: {integrity: sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==} + + jsonpointer@5.0.1: + resolution: {integrity: sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==} + engines: {node: '>=0.10.0'} + jsx-ast-utils@3.3.5: resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==} engines: {node: '>=4.0'} @@ -3338,6 +3530,10 @@ packages: resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==} engines: {node: '>=0.10'} + leven@4.1.0: + resolution: {integrity: sha512-KZ9W9nWDT7rF7Dazg8xyLHGLrmpgq2nVNFUckhqdW3szVP6YhCpp/RAnpmVExA9JvrMynjwSLVrEj3AepHR6ew==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} @@ -3415,6 +3611,9 @@ packages: lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + linkify-it@5.0.2: + resolution: {integrity: sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==} + lint-staged@17.0.8: resolution: {integrity: sha512-B2P/d+jVW0UXOQ0MVMLrB/9ydA1P+zz6jYfdrbbEd9ur3S2rcbduFWKiUCC02Sm5hbC8nrm7y24WuYMG54HfxA==} engines: {node: '>=22.22.1'} @@ -3432,6 +3631,10 @@ packages: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} + locate-path@8.0.0: + resolution: {integrity: sha512-XT9ewWAC43tiAV7xDAPflMkG0qOPn2QjHqlgX8FOqmWa/rxnyYDulF9T0F7tRy1u+TVTmK/M//6VIOye+2zDXg==} + engines: {node: '>=20'} + lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} @@ -3470,6 +3673,9 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + lunr@2.3.9: + resolution: {integrity: sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==} + lz-string@1.5.0: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} hasBin: true @@ -3484,6 +3690,10 @@ packages: map-or-similar@1.5.0: resolution: {integrity: sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==} + markdown-it@14.3.0: + resolution: {integrity: sha512-RCEsPjR+sr0x+AuYp601tKTkgFG4YEPLCzHST3cQ/fhlJkqAkz1L2/Qbp1j9qw5SBwQHFBoW8+hoN5xssOF0Tw==} + hasBin: true + math-intrinsics@1.1.0: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} engines: {node: '>= 0.4'} @@ -3494,6 +3704,9 @@ packages: mdn-data@2.0.30: resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==} + mdurl@2.0.0: + resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==} + memoizerific@1.11.3: resolution: {integrity: sha512-/EuHYwAPdLtXwAwSZkh/Gutery6pD2KYd44oQLhAvQp/50mpyduZh8Q7PYHXTCJ+wuXxt7oij2LXyIJOOYFPog==} @@ -3684,6 +3897,10 @@ packages: resolution: {integrity: sha512-J6l92tKHX6w8Jy5nO1Vuc01NoIiRGi/d6qBKVxh+IQ8Cr3b6HbVNfKiF8ZpFKufTwpwxMmce2W3iQZ861ZRyTg==} engines: {node: '>=18'} + npm-run-path@6.0.0: + resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==} + engines: {node: '>=18'} + nth-check@2.1.1: resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} @@ -3739,6 +3956,16 @@ packages: peerDependencies: react: ^16.8 || ^17 || ^18 || ^19 + orval@8.20.0: + resolution: {integrity: sha512-iL7aA/seKMxw1Ga7sJTqgT4+LXsE3JcPiYclJtjSTlPa9kai8cO39zX2U+6M1JeVftmjs/BDE2r7quE2nZqfjg==} + engines: {node: '>=22.18.0'} + hasBin: true + peerDependencies: + prettier: '>=3.0.0' + peerDependenciesMeta: + prettier: + optional: true + own-keys@1.0.1: resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==} engines: {node: '>= 0.4'} @@ -3747,10 +3974,18 @@ packages: resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} engines: {node: '>=10'} + p-limit@4.0.0: + resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + p-locate@5.0.0: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} + p-locate@6.0.0: + resolution: {integrity: sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + package-json-from-dist@1.0.1: resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} @@ -3762,6 +3997,10 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} + parse-ms@4.0.0: + resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==} + engines: {node: '>=18'} + path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} @@ -3770,6 +4009,10 @@ packages: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} + path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} @@ -3785,6 +4028,9 @@ packages: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + pathval@2.0.1: resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==} engines: {node: '>= 14.16'} @@ -3895,6 +4141,10 @@ packages: resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + pretty-ms@9.3.0: + resolution: {integrity: sha512-gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==} + engines: {node: '>=18'} + process@0.11.10: resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} engines: {node: '>= 0.6.0'} @@ -3913,6 +4163,10 @@ packages: resolution: {integrity: sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==} engines: {node: '>=10'} + punycode.js@2.3.1: + resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} + engines: {node: '>=6'} + punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} @@ -3950,6 +4204,10 @@ packages: resolution: {integrity: sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==} engines: {node: '>=0.10.0'} + readdirp@5.0.0: + resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==} + engines: {node: '>= 20.19.0'} + recast@0.23.11: resolution: {integrity: sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==} engines: {node: '>= 4'} @@ -3966,6 +4224,10 @@ packages: resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==} engines: {node: '>= 0.4'} + remeda@2.39.0: + resolution: {integrity: sha512-3Ki8dU1o3OVu4dwIQ2Pj+yiuP7OnEbmWAGmJ3yDRqopily5jsj8NWzPvbS89H85d6UdONKEcUnrfuHY6jN9vyw==} + engines: {node: '>=18.0.0'} + require-from-string@2.0.2: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} @@ -3978,6 +4240,9 @@ packages: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + resolve@1.22.12: resolution: {integrity: sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==} engines: {node: '>= 0.4'} @@ -4191,6 +4456,10 @@ packages: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} + strip-final-newline@4.0.0: + resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==} + engines: {node: '>=18'} + strip-indent@3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -4332,6 +4601,25 @@ packages: resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==} engines: {node: '>= 0.4'} + typedoc-plugin-coverage@4.0.3: + resolution: {integrity: sha512-baim3wyMkqpX7rBzL/6iZ7wzKJuSr9ffP16RHOsdTUNoHUZeXLIZHSUBtUhXmNHaUNRgfqdmKLBwyggbJjGdeQ==} + engines: {node: '>= 18'} + peerDependencies: + typedoc: 0.28.x + + typedoc-plugin-markdown@4.12.0: + resolution: {integrity: sha512-eJDEMAfxCmede22c/Jw7d0FA13ggAQv+KkwQYKYCdqI02cin6Rc9QRwbG/7XvvHWinuFejySnZVUWDtvGk3Vbg==} + engines: {node: '>= 18'} + peerDependencies: + typedoc: 0.28.x + + typedoc@0.28.20: + resolution: {integrity: sha512-uSKqkh8Cr48vllnEy+jdaAgOeR6Y+QCBW7usgUsKj7gJEfR7stw9U/fE49LBnj2tPRKPY0c0EBJSWe9Appmplg==} + engines: {node: '>= 18', pnpm: '>= 10'} + hasBin: true + peerDependencies: + typescript: 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x || 5.9.x || 6.0.x + typescript-eslint@8.50.0: resolution: {integrity: sha512-Q1/6yNUmCpH94fbgMUMg2/BSAr/6U7GBk61kZTv1/asghQOWOjTlp9K8mixS5NcJmm2creY+UFfGeW/+OcA64A==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -4344,6 +4632,9 @@ packages: engines: {node: '>=14.17'} hasBin: true + uc.micro@2.1.0: + resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} + unbox-primitive@1.1.0: resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==} engines: {node: '>= 0.4'} @@ -4351,6 +4642,14 @@ packages: undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + unicorn-magic@0.3.0: + resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==} + engines: {node: '>=18'} + + universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + unplugin@1.16.1: resolution: {integrity: sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==} engines: {node: '>=14.0.0'} @@ -4384,7 +4683,7 @@ packages: peerDependencies: '@types/node': ^20.19.0 || >=22.12.0 '@vitejs/devtools': ^0.3.0 - esbuild: ^0.27.0 || ^0.28.0 + esbuild: 0.25.12 jiti: '>=1.21.0' less: ^4.0.0 sass: ^1.70.0 @@ -4519,10 +4818,18 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} + yocto-queue@1.2.2: + resolution: {integrity: sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==} + engines: {node: '>=12.20'} + yoctocolors-cjs@2.1.3: resolution: {integrity: sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==} engines: {node: '>=18'} + yoctocolors@2.1.2: + resolution: {integrity: sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==} + engines: {node: '>=18'} + zod@4.4.3: resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} @@ -4676,6 +4983,10 @@ snapshots: '@babel/helper-string-parser': 7.29.7 '@babel/helper-validator-identifier': 7.29.7 + '@commander-js/extra-typings@15.0.0(commander@15.0.0)': + dependencies: + commander: 15.0.0 + '@dnd-kit/accessibility@3.1.1(react@19.2.0)': dependencies: react: 19.2.0 @@ -4870,6 +5181,14 @@ snapshots: '@standard-schema/utils': 0.3.0 react-hook-form: 7.81.0(react@19.2.0) + '@gerrit0/mini-shiki@3.23.0': + dependencies: + '@shikijs/engine-oniguruma': 3.23.0 + '@shikijs/langs': 3.23.0 + '@shikijs/themes': 3.23.0 + '@shikijs/types': 3.23.0 + '@shikijs/vscode-textmate': 10.0.2 + '@humanfs/core@0.19.1': {} '@humanfs/node@0.16.7': @@ -5235,6 +5554,122 @@ snapshots: '@opentelemetry/semantic-conventions@1.41.1': {} + '@orval/angular@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + + '@orval/axios@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + + '@orval/core@8.20.0(typescript@5.9.2)': + dependencies: + '@scalar/openapi-types': 0.8.0 + acorn: 8.17.0 + compare-versions: 6.1.1 + debug: 4.4.3 + esbuild: 0.25.12 + esutils: 2.0.3 + fs-extra: 11.3.6 + jiti: 2.7.0 + remeda: 2.39.0 + tinyglobby: 0.2.17 + typedoc: 0.28.20(typescript@5.9.2) + transitivePeerDependencies: + - supports-color + - typescript + + '@orval/effect@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + remeda: 2.39.0 + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + + '@orval/fetch@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + + '@orval/hono@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + '@orval/zod': 8.20.0(typescript@5.9.2) + fs-extra: 11.3.6 + optionalDependencies: + typescript: 5.9.2 + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + + '@orval/mcp@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + '@orval/fetch': 8.20.0(typescript@5.9.2) + '@orval/zod': 8.20.0(typescript@5.9.2) + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + + '@orval/mock@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + remeda: 2.39.0 + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + + '@orval/query@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + '@orval/fetch': 8.20.0(typescript@5.9.2) + remeda: 2.39.0 + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + + '@orval/solid-start@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + + '@orval/swr@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + '@orval/fetch': 8.20.0(typescript@5.9.2) + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + + '@orval/zod@8.20.0(typescript@5.9.2)': + dependencies: + '@orval/core': 8.20.0(typescript@5.9.2) + remeda: 2.39.0 + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + '@oxc-project/types@0.137.0': {} '@parcel/watcher-android-arm64@2.5.6': @@ -5448,8 +5883,39 @@ snapshots: '@rtsao/scc@1.1.0': {} + '@scalar/helpers@0.9.0': {} + + '@scalar/json-magic@0.12.17': + dependencies: + '@scalar/helpers': 0.9.0 + pathe: 2.0.3 + yaml: 2.9.0 + + '@scalar/openapi-parser@0.28.8': + dependencies: + '@scalar/helpers': 0.9.0 + '@scalar/json-magic': 0.12.17 + '@scalar/openapi-types': 0.9.1 + '@scalar/openapi-upgrader': 0.2.9 + ajv: 8.20.0 + ajv-draft-04: 1.0.0(ajv@8.20.0) + ajv-formats: 3.0.1(ajv@8.20.0) + jsonpointer: 5.0.1 + leven: 4.1.0 + yaml: 2.9.0 + + '@scalar/openapi-types@0.8.0': {} + + '@scalar/openapi-types@0.9.1': {} + + '@scalar/openapi-upgrader@0.2.9': + dependencies: + '@scalar/openapi-types': 0.9.1 + '@schummar/icu-type-parser@1.21.5': {} + '@sec-ant/readable-stream@0.4.1': {} + '@sentry/babel-plugin-component-annotate@5.3.0': {} '@sentry/browser-utils@10.61.0': @@ -5632,6 +6098,28 @@ snapshots: '@standard-schema/utils@0.3.0': {} + '@shikijs/engine-oniguruma@3.23.0': + dependencies: + '@shikijs/types': 3.23.0 + '@shikijs/vscode-textmate': 10.0.2 + + '@shikijs/langs@3.23.0': + dependencies: + '@shikijs/types': 3.23.0 + + '@shikijs/themes@3.23.0': + dependencies: + '@shikijs/types': 3.23.0 + + '@shikijs/types@3.23.0': + dependencies: + '@shikijs/vscode-textmate': 10.0.2 + '@types/hast': 3.0.5 + + '@shikijs/vscode-textmate@10.0.2': {} + + '@sindresorhus/merge-streams@4.0.0': {} + '@storybook/addon-a11y@8.6.14(storybook@8.6.14(prettier@3.7.4))': dependencies: '@storybook/addon-highlight': 8.6.14(storybook@8.6.14(prettier@3.7.4)) @@ -6195,6 +6683,10 @@ snapshots: '@types/estree@1.0.9': {} + '@types/hast@3.0.5': + dependencies: + '@types/unist': 3.0.3 + '@types/json-schema@7.0.15': {} '@types/json5@0.0.29': {} @@ -6215,6 +6707,8 @@ snapshots: '@types/resolve@1.20.6': {} + '@types/unist@3.0.3': {} + '@types/uuid@9.0.8': {} '@typescript-eslint/eslint-plugin@8.50.0(@typescript-eslint/parser@8.50.0(eslint@9.39.1(jiti@2.7.0))(typescript@5.9.2))(eslint@9.39.1(jiti@2.7.0))(typescript@5.9.2)': @@ -6442,10 +6936,18 @@ snapshots: transitivePeerDependencies: - supports-color + ajv-draft-04@1.0.0(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + ajv-formats@2.1.1(ajv@8.20.0): optionalDependencies: ajv: 8.20.0 + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + ajv-keywords@5.1.0(ajv@8.20.0): dependencies: ajv: 8.20.0 @@ -6678,6 +7180,10 @@ snapshots: check-error@2.1.3: {} + chokidar@5.0.0: + dependencies: + readdirp: 5.0.0 + chromatic@17.7.2: dependencies: semver: 7.7.3 @@ -6711,6 +7217,8 @@ snapshots: dependencies: delayed-stream: 1.0.0 + commander@15.0.0: {} + commander@2.20.3: {} commander@7.2.0: {} @@ -6719,6 +7227,8 @@ snapshots: commondir@1.0.1: {} + compare-versions@6.1.1: {} + concat-map@0.0.1: {} convert-source-map@2.0.0: {} @@ -7233,6 +7743,21 @@ snapshots: events@3.3.0: {} + execa@9.6.1: + dependencies: + '@sindresorhus/merge-streams': 4.0.0 + cross-spawn: 7.0.6 + figures: 6.1.0 + get-stream: 9.0.1 + human-signals: 8.0.1 + is-plain-obj: 4.1.0 + is-stream: 4.0.1 + npm-run-path: 6.0.0 + pretty-ms: 9.3.0 + signal-exit: 4.1.0 + strip-final-newline: 4.0.0 + yoctocolors: 2.1.2 + fast-deep-equal@3.1.3: {} fast-glob@3.3.1: @@ -7261,6 +7786,10 @@ snapshots: optionalDependencies: picomatch: 4.0.4 + figures@6.1.0: + dependencies: + is-unicode-supported: 2.1.0 + file-entry-cache@8.0.0: dependencies: flat-cache: 4.0.1 @@ -7274,6 +7803,11 @@ snapshots: locate-path: 6.0.0 path-exists: 4.0.0 + find-up@8.0.0: + dependencies: + locate-path: 8.0.0 + unicorn-magic: 0.3.0 + flat-cache@4.0.1: dependencies: flatted: 3.3.3 @@ -7313,6 +7847,12 @@ snapshots: hasown: 2.0.4 mime-types: 2.1.35 + fs-extra@11.3.6: + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.2.1 + universalify: 2.0.1 + fs.realpath@1.0.0: {} fsevents@2.3.3: @@ -7353,12 +7893,21 @@ snapshots: dunder-proto: 1.0.1 es-object-atoms: 1.1.1 + get-stream@9.0.1: + dependencies: + '@sec-ant/readable-stream': 0.4.1 + is-stream: 4.0.1 + get-symbol-description@1.1.0: dependencies: call-bound: 1.0.4 es-errors: 1.3.0 get-intrinsic: 1.3.0 + get-tsconfig@4.14.0: + dependencies: + resolve-pkg-maps: 1.0.0 + glob-parent@5.1.2: dependencies: is-glob: 4.0.3 @@ -7436,6 +7985,8 @@ snapshots: transitivePeerDependencies: - supports-color + human-signals@8.0.1: {} + husky@9.1.7: {} iconv-lite@0.7.2: @@ -7571,6 +8122,8 @@ snapshots: is-number@7.0.0: {} + is-plain-obj@4.1.0: {} + is-reference@1.2.1: dependencies: '@types/estree': 1.0.8 @@ -7588,6 +8141,8 @@ snapshots: dependencies: call-bound: 1.0.4 + is-stream@4.0.1: {} + is-string@1.1.1: dependencies: call-bound: 1.0.4 @@ -7603,6 +8158,8 @@ snapshots: dependencies: which-typed-array: 1.1.19 + is-unicode-supported@2.1.0: {} + is-weakmap@2.0.2: {} is-weakref@1.1.1: @@ -7651,6 +8208,10 @@ snapshots: dependencies: argparse: 2.0.1 + js-yaml@4.2.0: + dependencies: + argparse: 2.0.1 + jsdoc-type-pratt-parser@4.8.0: {} jsesc@3.1.0: {} @@ -7671,6 +8232,14 @@ snapshots: json5@2.2.3: {} + jsonfile@6.2.1: + dependencies: + universalify: 2.0.1 + optionalDependencies: + graceful-fs: 4.2.11 + + jsonpointer@5.0.1: {} + jsx-ast-utils@3.3.5: dependencies: array-includes: 3.1.9 @@ -7688,6 +8257,8 @@ snapshots: dependencies: language-subtag-registry: 0.3.23 + leven@4.1.0: {} + levn@0.4.1: dependencies: prelude-ls: 1.2.1 @@ -7744,6 +8315,10 @@ snapshots: lines-and-columns@1.2.4: {} + linkify-it@5.0.2: + dependencies: + uc.micro: 2.1.0 + lint-staged@17.0.8: dependencies: listr2: 10.2.1 @@ -7767,6 +8342,10 @@ snapshots: dependencies: p-locate: 5.0.0 + locate-path@8.0.0: + dependencies: + p-locate: 6.0.0 + lodash.merge@4.6.2: {} lodash@4.18.1: {} @@ -7805,6 +8384,8 @@ snapshots: dependencies: yallist: 3.1.1 + lunr@2.3.9: {} + lz-string@1.5.0: {} magic-string@0.27.0: @@ -7817,12 +8398,23 @@ snapshots: map-or-similar@1.5.0: {} + markdown-it@14.3.0: + dependencies: + argparse: 2.0.1 + entities: 4.5.0 + linkify-it: 5.0.2 + mdurl: 2.0.0 + punycode.js: 2.3.1 + uc.micro: 2.1.0 + math-intrinsics@1.1.0: {} mdn-data@2.0.28: {} mdn-data@2.0.30: {} + mdurl@2.0.0: {} + memoizerific@1.11.3: dependencies: map-or-similar: 1.5.0 @@ -7958,6 +8550,11 @@ snapshots: node-releases@2.0.50: {} + npm-run-path@6.0.0: + dependencies: + path-key: 4.0.0 + unicorn-magic: 0.3.0 + nth-check@2.1.1: dependencies: boolbase: 1.0.0 @@ -8031,6 +8628,44 @@ snapshots: dependencies: react: 19.2.0 + orval@8.20.0(prettier@3.7.4)(typescript@5.9.2): + dependencies: + '@commander-js/extra-typings': 15.0.0(commander@15.0.0) + '@orval/angular': 8.20.0(typescript@5.9.2) + '@orval/axios': 8.20.0(typescript@5.9.2) + '@orval/core': 8.20.0(typescript@5.9.2) + '@orval/effect': 8.20.0(typescript@5.9.2) + '@orval/fetch': 8.20.0(typescript@5.9.2) + '@orval/hono': 8.20.0(typescript@5.9.2) + '@orval/mcp': 8.20.0(typescript@5.9.2) + '@orval/mock': 8.20.0(typescript@5.9.2) + '@orval/query': 8.20.0(typescript@5.9.2) + '@orval/solid-start': 8.20.0(typescript@5.9.2) + '@orval/swr': 8.20.0(typescript@5.9.2) + '@orval/zod': 8.20.0(typescript@5.9.2) + '@scalar/json-magic': 0.12.17 + '@scalar/openapi-parser': 0.28.8 + '@scalar/openapi-types': 0.8.0 + chokidar: 5.0.0 + commander: 15.0.0 + execa: 9.6.1 + find-up: 8.0.0 + fs-extra: 11.3.6 + get-tsconfig: 4.14.0 + jiti: 2.7.0 + js-yaml: 4.2.0 + remeda: 2.39.0 + string-argv: 0.3.2 + typedoc: 0.28.20(typescript@5.9.2) + typedoc-plugin-coverage: 4.0.3(typedoc@0.28.20(typescript@5.9.2)) + typedoc-plugin-markdown: 4.12.0(typedoc@0.28.20(typescript@5.9.2)) + optionalDependencies: + prettier: 3.7.4 + transitivePeerDependencies: + - '@faker-js/faker' + - supports-color + - typescript + own-keys@1.0.1: dependencies: get-intrinsic: 1.3.0 @@ -8041,10 +8676,18 @@ snapshots: dependencies: yocto-queue: 0.1.0 + p-limit@4.0.0: + dependencies: + yocto-queue: 1.2.2 + p-locate@5.0.0: dependencies: p-limit: 3.1.0 + p-locate@6.0.0: + dependencies: + p-limit: 4.0.0 + package-json-from-dist@1.0.1: {} parent-module@1.0.1: @@ -8058,10 +8701,14 @@ snapshots: json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 + parse-ms@4.0.0: {} + path-exists@4.0.0: {} path-key@3.1.1: {} + path-key@4.0.0: {} + path-parse@1.0.7: {} path-scurry@1.11.1: @@ -8076,6 +8723,8 @@ snapshots: path-type@4.0.0: {} + pathe@2.0.3: {} + pathval@2.0.1: {} picocolors@1.1.1: {} @@ -8122,6 +8771,10 @@ snapshots: ansi-styles: 5.2.0 react-is: 17.0.2 + pretty-ms@9.3.0: + dependencies: + parse-ms: 4.0.0 + process@0.11.10: {} progress@2.0.3: {} @@ -8136,6 +8789,8 @@ snapshots: proxy-from-env@2.1.0: {} + punycode.js@2.3.1: {} + punycode@2.3.1: {} queue-microtask@1.2.3: {} @@ -8174,6 +8829,8 @@ snapshots: react@19.2.0: {} + readdirp@5.0.0: {} + recast@0.23.11: dependencies: ast-types: 0.16.1 @@ -8207,6 +8864,8 @@ snapshots: gopd: 1.2.0 set-function-name: 2.0.2 + remeda@2.39.0: {} + require-from-string@2.0.2: {} require-in-the-middle@8.0.1: @@ -8218,6 +8877,8 @@ snapshots: resolve-from@4.0.0: {} + resolve-pkg-maps@1.0.0: {} + resolve@1.22.12: dependencies: es-errors: 1.3.0 @@ -8561,6 +9222,8 @@ snapshots: strip-bom@3.0.0: {} + strip-final-newline@4.0.0: {} + strip-indent@3.0.0: dependencies: min-indent: 1.0.1 @@ -8706,6 +9369,23 @@ snapshots: possible-typed-array-names: 1.1.0 reflect.getprototypeof: 1.0.10 + typedoc-plugin-coverage@4.0.3(typedoc@0.28.20(typescript@5.9.2)): + dependencies: + typedoc: 0.28.20(typescript@5.9.2) + + typedoc-plugin-markdown@4.12.0(typedoc@0.28.20(typescript@5.9.2)): + dependencies: + typedoc: 0.28.20(typescript@5.9.2) + + typedoc@0.28.20(typescript@5.9.2): + dependencies: + '@gerrit0/mini-shiki': 3.23.0 + lunr: 2.3.9 + markdown-it: 14.3.0 + minimatch: 10.2.5 + typescript: 5.9.2 + yaml: 2.9.0 + typescript-eslint@8.50.0(eslint@9.39.1(jiti@2.7.0))(typescript@5.9.2): dependencies: '@typescript-eslint/eslint-plugin': 8.50.0(@typescript-eslint/parser@8.50.0(eslint@9.39.1(jiti@2.7.0))(typescript@5.9.2))(eslint@9.39.1(jiti@2.7.0))(typescript@5.9.2) @@ -8719,6 +9399,8 @@ snapshots: typescript@5.9.2: {} + uc.micro@2.1.0: {} + unbox-primitive@1.1.0: dependencies: call-bound: 1.0.4 @@ -8728,6 +9410,10 @@ snapshots: undici-types@6.21.0: {} + unicorn-magic@0.3.0: {} + + universalify@2.0.1: {} + unplugin@1.16.1: dependencies: acorn: 8.15.0 @@ -8912,13 +9598,16 @@ snapshots: yallist@3.1.1: {} - yaml@2.9.0: - optional: true + yaml@2.9.0: {} yocto-queue@0.1.0: {} + yocto-queue@1.2.2: {} + yoctocolors-cjs@2.1.3: {} + yoctocolors@2.1.2: {} + zod@4.4.3: {} zustand@5.0.14(@types/react@19.2.2)(react@19.2.0):