diff --git a/src/controllers/sas.ts b/src/controllers/sas.ts index d64319f..0c29b2b 100644 --- a/src/controllers/sas.ts +++ b/src/controllers/sas.ts @@ -2,14 +2,15 @@ import { readFile, generateTimestamp, deleteFile, - fileExists + fileExists, + createFile } from '@sasjs/utils' import path from 'path' import { ExecutionResult, ExecutionQuery } from '../types' import { - getTmpFolderPath, getTmpFilesFolderPath, - getTmpLogFolderPath + getTmpLogFolderPath, + getTmpWeboutFolderPath } from '../utils' import { configuration } from '../../package.json' import { promisify } from 'util' diff --git a/src/types/request.ts b/src/types/request.ts index 10886b8..876dc89 100644 --- a/src/types/request.ts +++ b/src/types/request.ts @@ -1,5 +1,7 @@ +import { MacroVars } from '@sasjs/utils' export interface ExecutionQuery { _program: string + macroVars?: MacroVars } export const isRequestQuery = (arg: any): arg is ExecutionQuery => diff --git a/src/utils/file.ts b/src/utils/file.ts index fa459f5..5a6a88d 100644 --- a/src/utils/file.ts +++ b/src/utils/file.ts @@ -7,4 +7,7 @@ export const getTmpFolderPath = () => export const getTmpFilesFolderPath = () => path.join(getTmpFolderPath(), 'files') -export const getTmpLogFolderPath = () => path.join(getTmpFolderPath(), 'log') +export const getTmpLogFolderPath = () => path.join(getTmpFolderPath(), 'logs') + +export const getTmpWeboutFolderPath = () => + path.join(getTmpFolderPath(), 'webouts')