feat: add run origin options, fix client code templates, buttons and badge styles

This commit is contained in:
BennyKok
2024-01-19 17:08:05 +08:00
parent 81cb44c5cf
commit e220921440
14 changed files with 1152 additions and 181 deletions
+4
View File
@@ -103,8 +103,12 @@ export const deploymentEnvironment = pgEnum("deployment_environment", [
export const workflowRunOrigin = pgEnum("workflow_run_origin", [
"manual",
"api",
"public-share",
]);
export const WorkflowRunOriginSchema = z.enum(workflowRunOrigin.enumValues);
export type WorkflowRunOriginType = z.infer<typeof WorkflowRunOriginSchema>;
export const machineGPUOptions = pgEnum("machine_gpu", ["T4", "A10G", "A100"]);
export const machinesType = pgEnum("machine_type", [