@sasjs/adapter 3.10.12 → 3.10.13

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.
@@ -13,4 +13,5 @@ export declare abstract class BaseJobExecutor implements JobExecutor {
13
13
  abstract execute(sasJob: string, data: any, config: any, loginRequiredCallback?: any, authConfig?: AuthConfig | undefined, extraResponseAttributes?: ExtraResponseAttributes[]): Promise<any>;
14
14
  resendWaitingRequests: () => Promise<void>;
15
15
  protected appendWaitingRequest(request: ExecuteFunction): void;
16
+ protected getRequestParams(config: any): any;
16
17
  }
@@ -15,5 +15,5 @@ export declare class Sas9JobExecutor extends BaseJobExecutor {
15
15
  private sas9RequestClient;
16
16
  constructor(serverUrl: string, serverType: ServerType, jobsPath: string, requestClient: RequestClient, httpsAgentOptions?: https.AgentOptions);
17
17
  execute(sasJob: string, data: any, config: any): Promise<unknown>;
18
- private getRequestParams;
18
+ protected getRequestParams(config: any): any;
19
19
  }
@@ -0,0 +1,9 @@
1
+ import { AuthConfig, ExtraResponseAttributes } from '@sasjs/utils/types';
2
+ import { RequestClient } from '../request/RequestClient';
3
+ import { BaseJobExecutor } from './JobExecutor';
4
+ export declare class SasjsJobExecutor extends BaseJobExecutor {
5
+ private jobsPath;
6
+ private requestClient;
7
+ constructor(serverUrl: string, jobsPath: string, requestClient: RequestClient);
8
+ execute(sasJob: string, data: any, config: any, loginRequiredCallback?: any, authConfig?: AuthConfig, extraResponseAttributes?: ExtraResponseAttributes[]): Promise<unknown>;
9
+ }
@@ -14,6 +14,4 @@ export declare class WebJobExecutor extends BaseJobExecutor {
14
14
  constructor(serverUrl: string, serverType: ServerType, jobsPath: string, requestClient: RequestClient, sasViyaApiClient: SASViyaApiClient);
15
15
  execute(sasJob: string, data: any, config: any, loginRequiredCallback?: any, authConfig?: AuthConfig, extraResponseAttributes?: ExtraResponseAttributes[]): Promise<unknown>;
16
16
  private getJobUri;
17
- private getRequestParams;
18
- private parseSAS9ErrorResponse;
19
17
  }
@@ -4,3 +4,4 @@ export * from './JesJobExecutor';
4
4
  export * from './JobExecutor';
5
5
  export * from './Sas9JobExecutor';
6
6
  export * from './WebJobExecutor';
7
+ export * from './SasjsJobExecutor';
package/node/SASjs.d.ts CHANGED
@@ -18,6 +18,7 @@ export default class SASjs {
18
18
  private authManager;
19
19
  private requestClient;
20
20
  private webJobExecutor;
21
+ private sasjsJobExecutor;
21
22
  private computeJobExecutor;
22
23
  private jesJobExecutor;
23
24
  private sas9JobExecutor;
@@ -36,7 +37,7 @@ export default class SASjs {
36
37
  * @param code - a string of code from the file to run.
37
38
  * @param authConfig - (optional) a valid client, secret, refresh and access tokens that are authorised to execute scripts.
38
39
  */
39
- executeScriptSASjs(code: string, authConfig?: AuthConfig): Promise<string | undefined>;
40
+ executeScriptSASjs(code: string, runTime?: string, authConfig?: AuthConfig): Promise<string | undefined>;
40
41
  /**
41
42
  * Executes sas code in a SAS Viya compute session.
42
43
  * @param fileName - name of the file to run. It will be converted to path to the file being submitted for execution.
@@ -21,9 +21,10 @@ export declare class SASjsApiClient {
21
21
  /**
22
22
  * Executes code on a SASJS server.
23
23
  * @param code - a string of code to execute.
24
+ * @param runTime - a string to representing runTime for code execution
24
25
  * @param authConfig - an object for authentication.
25
26
  */
26
- executeScript(code: string, authConfig?: AuthConfig): Promise<string>;
27
+ executeScript(code: string, runTime?: string, authConfig?: AuthConfig): Promise<string>;
27
28
  /**
28
29
  * Exchanges the auth code for an access token for the given client.
29
30
  * @param clientId - the client ID to authenticate with.