progress
This commit is contained in:
parent
6446da7e76
commit
6f86377685
18 changed files with 274 additions and 107 deletions
|
@ -1,10 +1,7 @@
|
|||
import { IsMongoId, IsEnum } from "class-validator";
|
||||
import { IsMongoId, IsEnum, IsOptional } from "class-validator";
|
||||
import { Schema, model } from "mongoose";
|
||||
import { IProcess, StackGenerateType } from "../../core/model/process_model";
|
||||
import {
|
||||
TriggerModel,
|
||||
triggerSchema,
|
||||
} from "../triggers/trigger_model";
|
||||
import { TriggerModel, triggerSchema } from "../triggers/trigger_model";
|
||||
import { schemaProcess } from "../process/process_model";
|
||||
|
||||
export const PipelineSchema = new Schema({
|
||||
|
@ -19,7 +16,7 @@ export const PipelineSchema = new Schema({
|
|||
ref: triggerSchema,
|
||||
autopopulate: true,
|
||||
default: null,
|
||||
}
|
||||
},
|
||||
}).plugin(require("mongoose-autopopulate"));
|
||||
|
||||
export const schemaPipeline = "Pipeline";
|
||||
|
@ -37,8 +34,9 @@ export class PipelineModel {
|
|||
//TODO(IDONTSUDO):NEED OPTION DECORATOR??
|
||||
public trigger: TriggerModel;
|
||||
|
||||
@IsOptional()
|
||||
public env = null;
|
||||
|
||||
@IsEnum(StackGenerateType)
|
||||
@IsOptional()
|
||||
public stackGenerateType: StackGenerateType;
|
||||
}
|
||||
|
|
|
@ -24,3 +24,4 @@ const socketSubscribers = [
|
|||
];
|
||||
|
||||
new App(httpRoutes, socketSubscribers).listen();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue