@sasjs/adapter 4.18.0 → 4.19.0
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/SASjs.d.ts +2 -1
- package/index-dev.js +4 -3
- package/index.js +4 -3
- package/node/SASjs.d.ts +2 -1
- package/node/index.js +4 -3
- package/package.json +1 -1
- package/spec/SASjs.startComputeJob.spec.d.ts +1 -0
- package/src/SASjs.ts +5 -2
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/SASjs.ts
CHANGED
|
@@ -937,6 +937,7 @@ export default class SASjs {
|
|
|
937
937
|
* @param printPid - a boolean that indicates whether the function should print (PID) of the started job.
|
|
938
938
|
* @param variables - an object that represents macro variables.
|
|
939
939
|
* @param verboseMode - boolean or a string equal to 'bleached' to enable verbose mode (log every HTTP response).
|
|
940
|
+
* @param onTokensRefreshed - (optional, SAS Viya only) callback invoked with the rotated token pair after a successful internal refresh, so consumers that persist tokens can store the new pair.
|
|
940
941
|
*/
|
|
941
942
|
public async startComputeJob(
|
|
942
943
|
sasJob: string,
|
|
@@ -947,7 +948,8 @@ export default class SASjs {
|
|
|
947
948
|
pollOptions?: PollOptions,
|
|
948
949
|
printPid = false,
|
|
949
950
|
variables?: MacroVar,
|
|
950
|
-
verboseMode?: VerboseMode
|
|
951
|
+
verboseMode?: VerboseMode,
|
|
952
|
+
onTokensRefreshed?: OnTokensRefreshed
|
|
951
953
|
) {
|
|
952
954
|
config = {
|
|
953
955
|
...this.sasjsConfig,
|
|
@@ -976,7 +978,8 @@ export default class SASjs {
|
|
|
976
978
|
false,
|
|
977
979
|
pollOptions,
|
|
978
980
|
printPid,
|
|
979
|
-
variables
|
|
981
|
+
variables,
|
|
982
|
+
onTokensRefreshed
|
|
980
983
|
)
|
|
981
984
|
}
|
|
982
985
|
|