@sasjs/adapter 4.4.0 → 4.5.1
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 +11 -6
- package/SASjs.d.ts +1 -1
- package/api/viya/executeScript.d.ts +1 -1
- package/api/viya/pollJobState.d.ts +33 -1
- package/index-dev.js +2 -2
- package/index-dev.js.LICENSE.txt +31 -2
- package/index.js +1 -1
- package/index.js.LICENSE.txt +31 -2
- package/minified_sas9.js +1 -1
- package/node/SASViyaApiClient.d.ts +11 -6
- package/node/SASjs.d.ts +1 -1
- package/node/api/viya/executeScript.d.ts +1 -1
- package/node/api/viya/pollJobState.d.ts +33 -1
- package/node/file/generateTableUploadForm.d.ts +1 -1
- package/node/index.js +1 -1
- package/node/index.js.LICENSE.txt +31 -0
- package/node/types/PollOptions.d.ts +3 -1
- package/node/utils/getFormData.d.ts +2 -0
- package/node/utils/index.d.ts +1 -0
- package/package.json +3 -3
- package/src/SASViyaApiClient.ts +30 -7
- package/src/SASjs.ts +1 -1
- package/src/api/viya/executeScript.ts +3 -3
- package/src/api/viya/pollJobState.ts +160 -81
- package/src/file/generateFileUploadForm.ts +6 -2
- package/src/job-execution/SasjsJobExecutor.ts +2 -3
- package/src/job-execution/WebJobExecutor.ts +4 -4
- package/src/types/PollOptions.ts +5 -2
- package/src/utils/getFormData.ts +5 -0
- package/src/utils/index.ts +1 -0
- package/types/PollOptions.d.ts +3 -1
- package/utils/getFormData.d.ts +2 -0
- package/utils/index.d.ts +1 -0
- package/utils/spec/getFormData.spec.d.ts +1 -0
|
@@ -16,10 +16,11 @@ import { SASViyaApiClient } from '../SASViyaApiClient'
|
|
|
16
16
|
import {
|
|
17
17
|
isRelativePath,
|
|
18
18
|
parseSasViyaDebugResponse,
|
|
19
|
-
appendExtraResponseAttributes
|
|
19
|
+
appendExtraResponseAttributes,
|
|
20
|
+
parseWeboutResponse,
|
|
21
|
+
getFormData
|
|
20
22
|
} from '../utils'
|
|
21
23
|
import { BaseJobExecutor } from './JobExecutor'
|
|
22
|
-
import { parseWeboutResponse } from '../utils/parseWeboutResponse'
|
|
23
24
|
|
|
24
25
|
export interface WaitingRequstPromise {
|
|
25
26
|
promise: Promise<any> | null
|
|
@@ -112,8 +113,7 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|
|
112
113
|
* Use the available form data object (FormData in Browser, NodeFormData in
|
|
113
114
|
* Node)
|
|
114
115
|
*/
|
|
115
|
-
let formData =
|
|
116
|
-
typeof FormData === 'undefined' ? new NodeFormData() : new FormData()
|
|
116
|
+
let formData = getFormData()
|
|
117
117
|
|
|
118
118
|
if (data) {
|
|
119
119
|
const stringifiedData = JSON.stringify(data)
|
package/src/types/PollOptions.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export interface PollOptions {
|
|
2
2
|
maxPollCount: number
|
|
3
|
-
pollInterval: number
|
|
4
|
-
|
|
3
|
+
pollInterval: number // milliseconds
|
|
4
|
+
pollStrategy?: PollStrategy
|
|
5
|
+
streamLog?: boolean
|
|
5
6
|
logFolderPath?: string
|
|
6
7
|
}
|
|
8
|
+
|
|
9
|
+
export type PollStrategy = PollOptions[]
|
package/src/utils/index.ts
CHANGED
package/types/PollOptions.d.ts
CHANGED
package/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|