@sasjs/adapter 4.9.0 → 4.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SASjs.d.ts CHANGED
@@ -3,7 +3,7 @@ import { SASjsConfig, UploadFile, EditContextInput, PollOptions, VerboseMode, Lo
3
3
  import { SASViyaApiClient } from './SASViyaApiClient';
4
4
  import { SASjsAuthResponse } from './SASjsApiClient';
5
5
  import { MacroVar, AuthConfig, ExtraResponseAttributes, SasAuthResponse, AuthConfigSas9 } from '@sasjs/utils/types';
6
- import { AxiosResponse } from 'axios';
6
+ import { AxiosResponse, AxiosError } from 'axios';
7
7
  interface ExecuteScriptParams {
8
8
  linesOfCode: string[];
9
9
  fileName?: string;
@@ -343,7 +343,7 @@ export default class SASjs {
343
343
  * @param successCallBack - function that should be triggered on every HTTP response with the status 2**.
344
344
  * @param errorCallBack - function that should be triggered on every HTTP response with the status different from 2**.
345
345
  */
346
- enableVerboseMode(successCallBack?: (response: AxiosResponse) => AxiosResponse, errorCallBack?: (response: AxiosResponse) => AxiosResponse): void;
346
+ enableVerboseMode(successCallBack?: (response: AxiosResponse | AxiosError) => AxiosResponse, errorCallBack?: (response: AxiosResponse | AxiosError) => AxiosResponse): void;
347
347
  /**
348
348
  * Turns off verbose mode to log every HTTP response.
349
349
  */
@@ -3,7 +3,7 @@ import { PollOptions } from '../..';
3
3
  import { RequestClient } from '../../request/RequestClient';
4
4
  import { SessionManager } from '../../SessionManager';
5
5
  /**
6
- * Executes code on the current SAS Viya server.
6
+ * Executes SAS program on the current SAS Viya server using Compute API.
7
7
  * @param jobPath - the path to the file being submitted for execution.
8
8
  * @param linesOfCode - an array of code lines to execute.
9
9
  * @param contextName - the context to execute the code in.
@@ -16,4 +16,4 @@ import { SessionManager } from '../../SessionManager';
16
16
  * @param printPid - a boolean that indicates whether the function should print (PID) of the started job.
17
17
  * @param variables - an object that represents macro variables.
18
18
  */
19
- export declare function executeScript(requestClient: RequestClient, sessionManager: SessionManager, rootFolderName: string, jobPath: string, linesOfCode: string[], contextName: string, authConfig?: AuthConfig, data?: any, debug?: boolean, expectWebout?: boolean, waitForResult?: boolean, pollOptions?: PollOptions, printPid?: boolean, variables?: MacroVar): Promise<any>;
19
+ export declare function executeOnComputeApi(requestClient: RequestClient, sessionManager: SessionManager, rootFolderName: string, jobPath: string, linesOfCode: string[], contextName: string, authConfig?: AuthConfig, data?: any, debug?: boolean, expectWebout?: boolean, waitForResult?: boolean, pollOptions?: PollOptions, printPid?: boolean, variables?: MacroVar): Promise<any>;