Skip to content

Commit

Permalink
chore: wip update
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebigard committed Oct 17, 2024
1 parent bdfdf97 commit 912bd7e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions ui/utils/api.utils.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { IDeleteRoutes, IGetRoutes, IPostRoutes, IPutRoutes, IRequest, IResponse } from "shared";
import { generateUri, PathParam, QueryString, WithQueryStringAndPathParam } from "shared/helpers/generateUri";
import { IResErrorJson, IRouteSchema, IRouteSchemaWrite } from "shared/routes/common.routes";
import { EmptyObject } from "type-fest";
import z, { ZodType } from "zod";

import { publicConfig } from "../config.public";
import type { IDeleteRoutes, IGetRoutes, IPostRoutes, IPutRoutes, IRequest, IResponse } from "shared";
import type { PathParam, QueryString, WithQueryStringAndPathParam } from "shared/src//helpers/generateUri";
import { generateUri } from "shared/src/helpers/generateUri";
import type { IResErrorJson } from "shared/src/models/errors/errors.model";
import type { IRouteSchema, IRouteSchemaWrite } from "shared/src/routes/common.routes";
import type { EmptyObject } from "type-fest";
import type { ZodType } from "zod";
import type z from "zod";

import { publicConfig } from "@/config.public";

type OptionsGet = {
[Prop in keyof Pick<IRouteSchema, "params" | "querystring" | "headers">]: IRouteSchema[Prop] extends ZodType
Expand Down

0 comments on commit 912bd7e

Please sign in to comment.