stack service and trigger service

This commit is contained in:
IDONTSUDO 2023-09-11 19:49:45 +03:00
parent 1ed6449ac6
commit cba12be4b1
16 changed files with 784 additions and 177 deletions

View file

@ -1,20 +1,18 @@
export class CalculationProcess {
process: ProcessMetaData[];
constructor(process: ProcessMetaData[]) {
this.process = process;
}
}
import { EXEC_TYPE } from "./exec_error_model.js";
export interface ProcessMetaData {
process: Process;
trigger: Trigger;
env: Env | null;
stackGenerateType:StackGenerateType;
}
export enum ProcessType {
EXEC = "EXEC",
SPAWN = "SPAWN",
export enum StackGenerateType{
MAP = 'MAP',
SINGLETON = 'SINGLETON'
}
export interface Env {
ssh_key: string;
isUserInput: boolean;
@ -22,12 +20,13 @@ export interface Env {
}
export interface Process {
type: ProcessType;
type: EXEC_TYPE;
command: string;
isGenerating: boolean;
isLocaleCode: boolean;
issueType: IssueType;
timeout: number;
timeout?: number;
commit?:string | undefined;
}
export enum IssueType {
@ -41,5 +40,5 @@ export enum TriggerType {
}
export interface Trigger {
type: TriggerType;
value: string;
value: string[];
}