From 7da96b19149b8514e28e9a1540add14643cfdcad Mon Sep 17 00:00:00 2001 From: Ramnique Singh <30795890+ramnique@users.noreply.github.com> Date: Thu, 3 Jul 2025 15:34:20 +0530 Subject: [PATCH] remove duplicate project types --- .../select/components/project-list.tsx | 2 +- apps/rowboat/types/project_types.ts | 31 ------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 apps/rowboat/types/project_types.ts diff --git a/apps/rowboat/app/projects/select/components/project-list.tsx b/apps/rowboat/app/projects/select/components/project-list.tsx index 4fe69ea9..645290b1 100644 --- a/apps/rowboat/app/projects/select/components/project-list.tsx +++ b/apps/rowboat/app/projects/select/components/project-list.tsx @@ -1,5 +1,5 @@ 'use client'; -import { Project } from "@/types/project_types"; +import { Project } from "@/app/lib/types/project_types"; import { z } from "zod"; import { useState } from "react"; import clsx from 'clsx'; diff --git a/apps/rowboat/types/project_types.ts b/apps/rowboat/types/project_types.ts deleted file mode 100644 index 4a463f5e..00000000 --- a/apps/rowboat/types/project_types.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { z } from "zod"; -import { MCPServer } from "@/app/lib/types/types"; - -export const Project = z.object({ - _id: z.string().uuid(), - name: z.string(), - createdAt: z.string().datetime(), - lastUpdatedAt: z.string().datetime(), - createdByUserId: z.string(), - secret: z.string(), - chatClientId: z.string(), - webhookUrl: z.string().optional(), - publishedWorkflowId: z.string().optional(), - nextWorkflowNumber: z.number().optional(), - testRunCounter: z.number().default(0), - mcpServers: z.array(MCPServer).optional(), -}); - -export const ProjectMember = z.object({ - userId: z.string(), - projectId: z.string(), - createdAt: z.string().datetime(), - lastUpdatedAt: z.string().datetime(), -}); - -export const ApiKey = z.object({ - projectId: z.string(), - key: z.string(), - createdAt: z.string().datetime(), - lastUsedAt: z.string().datetime().optional(), -}); \ No newline at end of file