- Add projectDir field to Project model for workspace directory management - Implement workspace directory creation, validation and Git initialization - Add workspace status query endpoint with directory info and Git status - Create GitManager for Git repository operations (clone, branch, commit info) - Add PathValidator for secure path validation and traversal attack prevention - Implement execution queue with concurrency control for build tasks - Refactor project list UI to remove edit/delete actions from cards - Add project settings tab in detail page with edit/delete functionality - Add icons to all tabs (History, Code, Settings) - Implement time formatting with dayjs in YYYY-MM-DD HH:mm:ss format - Display all timestamps using browser's local timezone - Update PipelineRunner to use workspace directory for command execution - Add workspace status card showing directory path, size, Git info - Enhance CreateProjectModal with repository URL validation
176 lines
4.7 KiB
TypeScript
176 lines
4.7 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* WARNING: This is an internal file that is subject to change!
|
|
*
|
|
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
*
|
|
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
|
|
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
*
|
|
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
* model files in the `model` directory!
|
|
*/
|
|
|
|
import * as runtime from "@prisma/client/runtime/index-browser"
|
|
|
|
export type * from '../models.ts'
|
|
export type * from './prismaNamespace.ts'
|
|
|
|
export const Decimal = runtime.Decimal
|
|
|
|
|
|
export const NullTypes = {
|
|
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
|
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
|
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
|
}
|
|
/**
|
|
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const DbNull = runtime.DbNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const JsonNull = runtime.JsonNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const AnyNull = runtime.AnyNull
|
|
|
|
|
|
export const ModelName = {
|
|
Project: 'Project',
|
|
User: 'User',
|
|
Pipeline: 'Pipeline',
|
|
Step: 'Step',
|
|
Deployment: 'Deployment'
|
|
} as const
|
|
|
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
|
|
/*
|
|
* Enums
|
|
*/
|
|
|
|
export const TransactionIsolationLevel = {
|
|
Serializable: 'Serializable'
|
|
} as const
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
export const ProjectScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
repository: 'repository',
|
|
projectDir: 'projectDir',
|
|
valid: 'valid',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
createdBy: 'createdBy',
|
|
updatedBy: 'updatedBy'
|
|
} as const
|
|
|
|
export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]
|
|
|
|
|
|
export const UserScalarFieldEnum = {
|
|
id: 'id',
|
|
username: 'username',
|
|
login: 'login',
|
|
email: 'email',
|
|
avatar_url: 'avatar_url',
|
|
active: 'active',
|
|
valid: 'valid',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
createdBy: 'createdBy',
|
|
updatedBy: 'updatedBy'
|
|
} as const
|
|
|
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
|
|
|
|
export const PipelineScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
valid: 'valid',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
createdBy: 'createdBy',
|
|
updatedBy: 'updatedBy',
|
|
projectId: 'projectId'
|
|
} as const
|
|
|
|
export type PipelineScalarFieldEnum = (typeof PipelineScalarFieldEnum)[keyof typeof PipelineScalarFieldEnum]
|
|
|
|
|
|
export const StepScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
order: 'order',
|
|
script: 'script',
|
|
valid: 'valid',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
createdBy: 'createdBy',
|
|
updatedBy: 'updatedBy',
|
|
pipelineId: 'pipelineId'
|
|
} as const
|
|
|
|
export type StepScalarFieldEnum = (typeof StepScalarFieldEnum)[keyof typeof StepScalarFieldEnum]
|
|
|
|
|
|
export const DeploymentScalarFieldEnum = {
|
|
id: 'id',
|
|
branch: 'branch',
|
|
env: 'env',
|
|
status: 'status',
|
|
commitHash: 'commitHash',
|
|
commitMessage: 'commitMessage',
|
|
buildLog: 'buildLog',
|
|
sparseCheckoutPaths: 'sparseCheckoutPaths',
|
|
startedAt: 'startedAt',
|
|
finishedAt: 'finishedAt',
|
|
valid: 'valid',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
createdBy: 'createdBy',
|
|
updatedBy: 'updatedBy',
|
|
projectId: 'projectId',
|
|
pipelineId: 'pipelineId'
|
|
} as const
|
|
|
|
export type DeploymentScalarFieldEnum = (typeof DeploymentScalarFieldEnum)[keyof typeof DeploymentScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
} as const
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
export const NullsOrder = {
|
|
first: 'first',
|
|
last: 'last'
|
|
} as const
|
|
|
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
|