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:
2
src/types/index.ts
Normal file
2
src/types/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './sas'
|
||||
export * from './request'
|
||||
6
src/types/request.ts
Normal file
6
src/types/request.ts
Normal 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
4
src/types/sas.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface ExecutionResult {
|
||||
log: string
|
||||
logPath: string
|
||||
}
|
||||
Reference in New Issue
Block a user