feat: Add in 033 new features

This commit is contained in:
BluJ
2022-10-24 09:57:49 -06:00
parent 66a3697819
commit bc78461423

101
types.ts
View File

@@ -58,6 +58,29 @@ export type Effects = {
input: { volumeId: string; path: string }, input: { volumeId: string; path: string },
): Promise<Record<string, unknown>>; ): Promise<Record<string, unknown>>;
runCommand(
input: {
command: string,
args?: string[],
timeoutMillis?: number
},
): Promise<ResultType<string>>;
runDaemon(
input: {
command: string,
args?: string[],
},
): {
wait(): Promise<ResultType<string>>,
term(): Promise<void>
};
sleep(
timeMs: number,
): Promise<null>;
/** Log at the trace level */ /** Log at the trace level */
trace(whatToPrint: string): void; trace(whatToPrint: string): void;
/** Log at the warn level */ /** Log at the warn level */
@@ -76,12 +99,12 @@ export type Effects = {
fetch(url: string, options?: { fetch(url: string, options?: {
method?: method?:
| "GET" | "GET"
| "POST" | "POST"
| "PUT" | "PUT"
| "DELETE" | "DELETE"
| "HEAD" | "HEAD"
| "PATCH"; | "PATCH";
headers?: Record<string, string>; headers?: Record<string, string>;
body?: string; body?: string;
}): Promise<{ }): Promise<{
@@ -340,39 +363,39 @@ export type ValueSpecEnum = {
export type SetResult = { export type SetResult = {
/** These are the unix process signals */ /** These are the unix process signals */
signal: signal:
| "SIGTERM" | "SIGTERM"
| "SIGHUP" | "SIGHUP"
| "SIGINT" | "SIGINT"
| "SIGQUIT" | "SIGQUIT"
| "SIGILL" | "SIGILL"
| "SIGTRAP" | "SIGTRAP"
| "SIGABRT" | "SIGABRT"
| "SIGBUS" | "SIGBUS"
| "SIGFPE" | "SIGFPE"
| "SIGKILL" | "SIGKILL"
| "SIGUSR1" | "SIGUSR1"
| "SIGSEGV" | "SIGSEGV"
| "SIGUSR2" | "SIGUSR2"
| "SIGPIPE" | "SIGPIPE"
| "SIGALRM" | "SIGALRM"
| "SIGSTKFLT" | "SIGSTKFLT"
| "SIGCHLD" | "SIGCHLD"
| "SIGCONT" | "SIGCONT"
| "SIGSTOP" | "SIGSTOP"
| "SIGTSTP" | "SIGTSTP"
| "SIGTTIN" | "SIGTTIN"
| "SIGTTOU" | "SIGTTOU"
| "SIGURG" | "SIGURG"
| "SIGXCPU" | "SIGXCPU"
| "SIGXFSZ" | "SIGXFSZ"
| "SIGVTALRM" | "SIGVTALRM"
| "SIGPROF" | "SIGPROF"
| "SIGWINCH" | "SIGWINCH"
| "SIGIO" | "SIGIO"
| "SIGPWR" | "SIGPWR"
| "SIGSYS" | "SIGSYS"
| "SIGEMT" | "SIGEMT"
| "SIGINFO"; | "SIGINFO";
"depends-on": DependsOn; "depends-on": DependsOn;
}; };