remove duplicate project types

This commit is contained in:
Ramnique Singh 2025-07-03 15:34:20 +05:30
parent ddee06a54c
commit 7da96b1914
2 changed files with 1 additions and 32 deletions

View file

@ -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';

View file

@ -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(),
});