@sasjs/adapter 4.6.0 → 4.8.0
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/README.md +6 -1
- package/SASjs.d.ts +13 -1
- package/index-dev.js +2 -2
- package/index.js +1 -1
- package/minified_sas9.js +1 -1
- package/node/SASjs.d.ts +13 -1
- package/node/index.js +1 -1
- package/node/request/RequestClient.d.ts +25 -1
- package/node/types/SASjsConfig.d.ts +4 -0
- package/package.json +1 -1
- package/request/RequestClient.d.ts +25 -1
- package/src/SASjs.ts +28 -2
- package/src/minified/sas9/SASjs.ts +2 -1
- package/src/minified/sas9/WebJobExecutor.ts +0 -1
- package/src/request/RequestClient.ts +107 -1
- package/src/types/SASjsConfig.ts +4 -0
- package/types/SASjsConfig.d.ts +4 -0
package/node/SASjs.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { SASViyaApiClient } from './SASViyaApiClient';
|
|
|
4
4
|
import { SASjsAuthResponse } from './SASjsApiClient';
|
|
5
5
|
import { MacroVar, AuthConfig, ExtraResponseAttributes, SasAuthResponse, AuthConfigSas9 } from '@sasjs/utils/types';
|
|
6
6
|
import { LoginOptions, LoginResult } from './types/Login';
|
|
7
|
+
import { AxiosResponse } from 'axios';
|
|
7
8
|
interface ExecuteScriptParams {
|
|
8
9
|
linesOfCode: string[];
|
|
9
10
|
fileName?: string;
|
|
@@ -308,8 +309,9 @@ export default class SASjs {
|
|
|
308
309
|
* @param pollOptions - an object that represents poll interval(milliseconds) and maximum amount of attempts. Object example: { maxPollCount: 24 * 60 * 60, pollInterval: 1000 }. More information available at src/api/viya/pollJobState.ts.
|
|
309
310
|
* @param printPid - a boolean that indicates whether the function should print (PID) of the started job.
|
|
310
311
|
* @param variables - an object that represents macro variables.
|
|
312
|
+
* @param verboseMode - boolean to enable verbose mode (log every HTTP response).
|
|
311
313
|
*/
|
|
312
|
-
startComputeJob(sasJob: string, data: any, config?: any, authConfig?: AuthConfig, waitForResult?: boolean, pollOptions?: PollOptions, printPid?: boolean, variables?: MacroVar): Promise<any>;
|
|
314
|
+
startComputeJob(sasJob: string, data: any, config?: any, authConfig?: AuthConfig, waitForResult?: boolean, pollOptions?: PollOptions, printPid?: boolean, variables?: MacroVar, verboseMode?: boolean): Promise<any>;
|
|
313
315
|
private resendWaitingRequests;
|
|
314
316
|
/**
|
|
315
317
|
* Fetches content of the log file
|
|
@@ -326,5 +328,15 @@ export default class SASjs {
|
|
|
326
328
|
private setupConfiguration;
|
|
327
329
|
private createFoldersAndServices;
|
|
328
330
|
private isMethodSupported;
|
|
331
|
+
/**
|
|
332
|
+
* Enables verbose mode that will log a summary of every HTTP response.
|
|
333
|
+
* @param successCallBack - function that should be triggered on every HTTP response with the status 2**.
|
|
334
|
+
* @param errorCallBack - function that should be triggered on every HTTP response with the status different from 2**.
|
|
335
|
+
*/
|
|
336
|
+
enableVerboseMode(successCallBack?: (response: AxiosResponse) => AxiosResponse, errorCallBack?: (response: AxiosResponse) => AxiosResponse): void;
|
|
337
|
+
/**
|
|
338
|
+
* Turns off verbose mode to log every HTTP response.
|
|
339
|
+
*/
|
|
340
|
+
disableVerboseMode(): void;
|
|
329
341
|
}
|
|
330
342
|
export {};
|