@sasjs/adapter 4.7.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/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;
@@ -327,5 +328,15 @@ export default class SASjs {
327
328
  private setupConfiguration;
328
329
  private createFoldersAndServices;
329
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;
330
341
  }
331
342
  export {};