@sasjs/adapter 3.10.15 → 3.10.17

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
@@ -219,11 +219,7 @@ export default class SASjs {
219
219
  * Checks whether a session is active, or login is required.
220
220
  * @returns - a promise which resolves with an object containing two values - a boolean `isLoggedIn`, and a string `userName`.
221
221
  */
222
- checkSession(): Promise<{
223
- isLoggedIn: boolean;
224
- userName: string;
225
- loginForm?: any;
226
- }>;
222
+ checkSession(): Promise<import("./types/Login").LoginResultInternal>;
227
223
  /**
228
224
  * Logs into the SAS server with the supplied credentials.
229
225
  * @param username - a string representing the username.
@@ -313,12 +309,8 @@ export default class SASjs {
313
309
  example?: {} | undefined;
314
310
  } | undefined>;
315
311
  executeJobSASjs(query: ExecutionQuery, authConfig?: AuthConfig): Promise<{
316
- status: string;
317
- message: string;
318
- log?: string | undefined;
319
- logPath?: string | undefined;
320
- error?: {} | undefined;
321
- _webout?: string | undefined;
312
+ result: any;
313
+ log: any;
322
314
  } | undefined>;
323
315
  /**
324
316
  * Kicks off execution of the given job via the compute API.
@@ -10,13 +10,9 @@ export declare class SASjsApiClient {
10
10
  streamServiceName?: string | undefined;
11
11
  example?: {} | undefined;
12
12
  }>;
13
- executeJob(query: ExecutionQuery, authConfig?: AuthConfig): Promise<{
14
- status: string;
15
- message: string;
16
- log?: string | undefined;
17
- logPath?: string | undefined;
18
- error?: {} | undefined;
19
- _webout?: string | undefined;
13
+ executeJob(query: ExecutionQuery, appLoc: string, authConfig?: AuthConfig): Promise<{
14
+ result: any;
15
+ log: any;
20
16
  }>;
21
17
  /**
22
18
  * Executes code on a SASJS server.
@@ -1,2 +1,2 @@
1
1
  import { Job } from '../../types';
2
- export declare const getFileStream: (job: Job, filePath?: string | undefined) => Promise<any>;
2
+ export declare const getFileStream: (job: Job, filePath?: string) => Promise<any>;
@@ -1,12 +1,13 @@
1
1
  import { ServerType } from '@sasjs/utils/types';
2
2
  import { RequestClient } from '../request/RequestClient';
3
- import { LoginOptions, LoginResult } from '../types/Login';
3
+ import { LoginOptions, LoginResult, LoginResultInternal } from '../types/Login';
4
4
  export declare class AuthManager {
5
5
  private serverUrl;
6
6
  private serverType;
7
7
  private requestClient;
8
8
  private loginCallback;
9
9
  userName: string;
10
+ userLongName: string;
10
11
  private loginUrl;
11
12
  private logoutUrl;
12
13
  private redirectedLoginUrl;
@@ -29,17 +30,15 @@ export declare class AuthManager {
29
30
  * Checks whether a session is active, or login is required.
30
31
  * @returns - a promise which resolves with an object containing three values
31
32
  * - a boolean `isLoggedIn`
32
- * - a string `userName` and
33
+ * - a string `userName`,
34
+ * - a string `userFullName` and
33
35
  * - a form `loginForm` if not loggedin.
34
36
  */
35
- checkSession(): Promise<{
36
- isLoggedIn: boolean;
37
- userName: string;
38
- loginForm?: any;
39
- }>;
37
+ checkSession(): Promise<LoginResultInternal>;
40
38
  private getNewLoginForm;
41
39
  private fetchUserName;
42
40
  private extractUserName;
41
+ private extractUserLongName;
43
42
  private getLoginForm;
44
43
  private setLoginUrl;
45
44
  /**