@sasjs/adapter 4.3.1 → 4.3.3
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/SASjsApiClient.d.ts +10 -5
- package/index-dev.js +2 -2
- package/index.js +1 -1
- package/node/SASjsApiClient.d.ts +10 -5
- package/node/index.js +2 -0
- package/node/request/SasjsRequestClient.d.ts +9 -6
- package/package.json +1 -1
- package/request/SasjsRequestClient.d.ts +9 -6
- package/src/SASjsApiClient.ts +28 -11
- package/src/job-execution/SasjsJobExecutor.ts +9 -1
- package/src/request/SasjsRequestClient.ts +23 -6
- package/src/utils/getValidJson.ts +1 -0
- package/node/main.js +0 -2
- /package/node/{main.js.LICENSE.txt → index.js.LICENSE.txt} +0 -0
package/node/SASjsApiClient.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { AuthConfig, ServicePackSASjs } from '@sasjs/utils/types';
|
|
2
2
|
import { ExecutionQuery } from './types';
|
|
3
3
|
import { RequestClient } from './request/RequestClient';
|
|
4
|
+
export interface SASjsAuthResponse {
|
|
5
|
+
access_token: string;
|
|
6
|
+
refresh_token: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ScriptExecutionResult {
|
|
9
|
+
log: string;
|
|
10
|
+
webout?: string;
|
|
11
|
+
printOutput?: string;
|
|
12
|
+
}
|
|
4
13
|
export declare class SASjsApiClient {
|
|
5
14
|
private requestClient;
|
|
6
15
|
constructor(requestClient: RequestClient);
|
|
@@ -41,7 +50,7 @@ export declare class SASjsApiClient {
|
|
|
41
50
|
* @param runTime - a string to representing runTime for code execution
|
|
42
51
|
* @param authConfig - an object for authentication.
|
|
43
52
|
*/
|
|
44
|
-
executeScript(code: string, runTime?: string, authConfig?: AuthConfig): Promise<
|
|
53
|
+
executeScript(code: string, runTime?: string, authConfig?: AuthConfig): Promise<ScriptExecutionResult>;
|
|
45
54
|
/**
|
|
46
55
|
* Exchanges the auth code for an access token for the given client.
|
|
47
56
|
* @param clientId - the client ID to authenticate with.
|
|
@@ -54,7 +63,3 @@ export declare class SASjsApiClient {
|
|
|
54
63
|
*/
|
|
55
64
|
refreshTokens(refreshToken: string): Promise<SASjsAuthResponse>;
|
|
56
65
|
}
|
|
57
|
-
export interface SASjsAuthResponse {
|
|
58
|
-
access_token: string;
|
|
59
|
-
refresh_token: string;
|
|
60
|
-
}
|