@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.
Files changed (56) hide show
  1. package/SASViyaApiClient.d.ts +6 -0
  2. package/SASjs.d.ts +1 -1
  3. package/api/viya/writeStream.d.ts +1 -1
  4. package/auth/getTokenRequestErrorPrefix.d.ts +2 -2
  5. package/file/generateFileUploadForm.d.ts +1 -1
  6. package/file/generateTableUploadForm.d.ts +1 -1
  7. package/index-dev.js +77056 -3
  8. package/index.js +77056 -2
  9. package/job-execution/JobExecutor.d.ts +1 -1
  10. package/minified_sas9.js +16558 -2
  11. package/node/SASViyaApiClient.d.ts +6 -0
  12. package/node/SASjs.d.ts +1 -1
  13. package/node/api/viya/writeStream.d.ts +1 -1
  14. package/node/auth/getTokenRequestErrorPrefix.d.ts +2 -2
  15. package/node/file/generateFileUploadForm.d.ts +1 -1
  16. package/node/file/generateTableUploadForm.d.ts +1 -1
  17. package/node/index.js +28150 -2
  18. package/node/job-execution/JobExecutor.d.ts +1 -1
  19. package/node/request/RequestClient.d.ts +11 -2
  20. package/node/types/PollOptions.d.ts +1 -1
  21. package/node/types/RequestClient.d.ts +1 -1
  22. package/node/types/WriteStream.d.ts +6 -3
  23. package/node/utils/getFormData.d.ts +1 -1
  24. package/package.json +12 -9
  25. package/request/RequestClient.d.ts +11 -2
  26. package/spec/SAS9ApiClient.spec.d.ts +1 -0
  27. package/spec/SASjsApiClient.spec.d.ts +1 -0
  28. package/src/SAS9ApiClient.ts +1 -1
  29. package/src/SASViyaApiClient.ts +1 -1
  30. package/src/SASjs.ts +2 -2
  31. package/src/SASjsApiClient.ts +1 -1
  32. package/src/api/viya/writeStream.ts +10 -5
  33. package/src/auth/refreshTokensForViya.ts +1 -1
  34. package/src/file/generateFileUploadForm.ts +1 -1
  35. package/src/file/generateTableUploadForm.ts +1 -1
  36. package/src/job-execution/Sas9JobExecutor.ts +1 -1
  37. package/src/job-execution/SasjsJobExecutor.ts +5 -3
  38. package/src/job-execution/WebJobExecutor.ts +5 -3
  39. package/src/request/RequestClient.ts +73 -81
  40. package/src/request/Sas9RequestClient.ts +5 -5
  41. package/src/test/SAS_server_app.ts +10 -2
  42. package/src/types/WriteStream.ts +9 -3
  43. package/src/utils/convertToCsv.ts +5 -1
  44. package/src/utils/getFormData.ts +2 -2
  45. package/src/utils/validateInput.ts +16 -13
  46. package/types/PollOptions.d.ts +1 -1
  47. package/types/RequestClient.d.ts +1 -1
  48. package/types/WriteStream.d.ts +6 -3
  49. package/types/errors/spec/SAS9AuthError.spec.d.ts +1 -0
  50. package/utils/getFormData.d.ts +1 -1
  51. package/utils/spec/parseSasViyaLog.spec.d.ts +1 -0
  52. package/utils/spec/parseViyaDebugResponse.spec.d.ts +1 -0
  53. package/index-dev.js.LICENSE.txt +0 -110
  54. package/index.js.LICENSE.txt +0 -110
  55. package/minified_sas9.js.LICENSE.txt +0 -15
  56. package/node/index.js.LICENSE.txt +0 -106
@@ -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/node/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 | AxiosError) => AxiosResponse, errorCallBack?: (response: AxiosResponse | AxiosError) => AxiosResponse): void;
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<void>;
2
+ export declare const writeStream: (stream: WriteStream, content: string) => Promise<boolean>;
@@ -1,6 +1,6 @@
1
1
  import { ServerType } from '@sasjs/utils/types';
2
- declare type Server = ServerType.SasViya | ServerType.Sasjs;
3
- declare type Operation = 'fetching access token' | 'refreshing tokens';
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').
@@ -1,4 +1,4 @@
1
- import * as NodeFormData from 'form-data';
1
+ import NodeFormData from 'form-data';
2
2
  /**
3
3
  * One of the approaches SASjs takes to send tables-formatted JSON (see README)
4
4
  * to SAS is as multipart form data, where each table is provided as a specially
@@ -1,4 +1,4 @@
1
- import * as NodeFormData from 'form-data';
1
+ import NodeFormData from 'form-data';
2
2
  export declare const generateTableUploadForm: (formData: FormData | NodeFormData, data: any) => {
3
3
  formData: NodeFormData | FormData;
4
4
  requestParams: any;