1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-12 16:40:05 +00:00

feat(api): set up endpoint for sas code execution

This commit is contained in:
Yury Shkoda
2021-06-10 20:12:23 +03:00
parent cb841ddcac
commit f6046b15ae
6 changed files with 84 additions and 9 deletions

2
src/types/index.ts Normal file
View File

@@ -0,0 +1,2 @@
export * from './sas'
export * from './request'

6
src/types/request.ts Normal file
View File

@@ -0,0 +1,6 @@
export interface RequestQuery {
_program: string
}
export const isRequestQuery = (arg: any): arg is RequestQuery =>
arg && !Array.isArray(arg) && typeof arg._program === 'string'

4
src/types/sas.ts Normal file
View File

@@ -0,0 +1,4 @@
export interface ExecutionResult {
log: string
logPath: string
}