@sasjs/adapter 4.11.2 → 4.11.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/SASViyaApiClient.d.ts +6 -0
- package/SASjs.d.ts +1 -1
- package/api/viya/writeStream.d.ts +1 -1
- package/auth/getTokenRequestErrorPrefix.d.ts +2 -2
- package/file/generateFileUploadForm.d.ts +1 -1
- package/file/generateTableUploadForm.d.ts +1 -1
- package/index-dev.js +77056 -3
- package/index.js +77056 -2
- package/job-execution/JobExecutor.d.ts +1 -1
- package/minified_sas9.js +16558 -2
- package/node/SASViyaApiClient.d.ts +6 -0
- package/node/SASjs.d.ts +1 -1
- package/node/api/viya/writeStream.d.ts +1 -1
- package/node/auth/getTokenRequestErrorPrefix.d.ts +2 -2
- package/node/file/generateFileUploadForm.d.ts +1 -1
- package/node/file/generateTableUploadForm.d.ts +1 -1
- package/node/index.js +28150 -2
- package/node/job-execution/JobExecutor.d.ts +1 -1
- package/node/request/RequestClient.d.ts +11 -2
- package/node/types/PollOptions.d.ts +1 -1
- package/node/types/RequestClient.d.ts +1 -1
- package/node/types/WriteStream.d.ts +6 -3
- package/node/utils/getFormData.d.ts +1 -1
- package/package.json +12 -9
- package/request/RequestClient.d.ts +11 -2
- package/spec/SAS9ApiClient.spec.d.ts +1 -0
- package/spec/SASjsApiClient.spec.d.ts +1 -0
- package/src/SAS9ApiClient.ts +1 -1
- package/src/SASViyaApiClient.ts +1 -1
- package/src/SASjs.ts +2 -2
- package/src/SASjsApiClient.ts +1 -1
- package/src/api/viya/writeStream.ts +10 -5
- package/src/auth/refreshTokensForViya.ts +1 -1
- package/src/file/generateFileUploadForm.ts +1 -1
- package/src/file/generateTableUploadForm.ts +1 -1
- package/src/job-execution/Sas9JobExecutor.ts +1 -1
- package/src/job-execution/SasjsJobExecutor.ts +5 -3
- package/src/job-execution/WebJobExecutor.ts +5 -3
- package/src/request/RequestClient.ts +73 -81
- package/src/request/Sas9RequestClient.ts +5 -5
- package/src/test/SAS_server_app.ts +10 -2
- package/src/types/WriteStream.ts +9 -3
- package/src/utils/convertToCsv.ts +5 -1
- package/src/utils/getFormData.ts +2 -2
- package/src/utils/validateInput.ts +16 -13
- package/types/PollOptions.d.ts +1 -1
- package/types/RequestClient.d.ts +1 -1
- package/types/WriteStream.d.ts +6 -3
- package/types/errors/spec/SAS9AuthError.spec.d.ts +1 -0
- package/utils/getFormData.d.ts +1 -1
- package/utils/spec/parseSasViyaLog.spec.d.ts +1 -0
- package/utils/spec/parseViyaDebugResponse.spec.d.ts +1 -0
- package/index-dev.js.LICENSE.txt +0 -110
- package/index.js.LICENSE.txt +0 -110
- package/minified_sas9.js.LICENSE.txt +0 -15
- package/node/index.js.LICENSE.txt +0 -106
package/SASViyaApiClient.d.ts
CHANGED
|
@@ -54,6 +54,12 @@ export declare class SASViyaApiClient {
|
|
|
54
54
|
* @param accessToken - an access token for an authorized user.
|
|
55
55
|
*/
|
|
56
56
|
getComputeContexts(accessToken?: string): Promise<{
|
|
57
|
+
/**
|
|
58
|
+
* A helper method used to call appendRequest method of RequestClient
|
|
59
|
+
* @param response - response from sasjs request
|
|
60
|
+
* @param program - name of program
|
|
61
|
+
* @param debug - a boolean that indicates whether debug was enabled or not
|
|
62
|
+
*/
|
|
57
63
|
createdBy: any;
|
|
58
64
|
id: any;
|
|
59
65
|
name: any;
|
package/SASjs.d.ts
CHANGED
|
@@ -343,7 +343,7 @@ export default class SASjs {
|
|
|
343
343
|
* @param successCallBack - function that should be triggered on every HTTP response with the status 2**.
|
|
344
344
|
* @param errorCallBack - function that should be triggered on every HTTP response with the status different from 2**.
|
|
345
345
|
*/
|
|
346
|
-
enableVerboseMode(successCallBack?: (response: AxiosResponse
|
|
346
|
+
enableVerboseMode(successCallBack?: (response: AxiosResponse) => AxiosResponse, errorCallBack?: (response: AxiosError) => AxiosError): void;
|
|
347
347
|
/**
|
|
348
348
|
* Turns off verbose mode to log every HTTP response.
|
|
349
349
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { WriteStream } from '../../types';
|
|
2
|
-
export declare const writeStream: (stream: WriteStream, content: string) => Promise<
|
|
2
|
+
export declare const writeStream: (stream: WriteStream, content: string) => Promise<boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ServerType } from '@sasjs/utils/types';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type Server = ServerType.SasViya | ServerType.Sasjs;
|
|
3
|
+
type Operation = 'fetching access token' | 'refreshing tokens';
|
|
4
4
|
/**
|
|
5
5
|
* Forms error prefix for requests related to token operations.
|
|
6
6
|
* @param operation - string describing operation ('fetching access token' or 'refreshing tokens').
|