@sasjs/adapter 3.10.1 → 3.10.4
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/README.md +5 -7
- package/SASjs.d.ts +1 -4
- package/auth/AuthManager.d.ts +2 -5
- package/index.js +2 -2
- package/node/SASjs.d.ts +1 -4
- package/node/auth/AuthManager.d.ts +2 -5
- package/node/index.js +2 -2
- package/package.json +6 -5
- package/src/api/viya/executeScript.ts +2 -2
- package/src/api/viya/writeStream.ts +1 -1
- package/src/auth/AuthManager.ts +2 -12
- package/src/job-execution/WebJobExecutor.ts +17 -9
- package/src/request/RequestClient.ts +5 -5
- package/src/request/Sas9RequestClient.ts +2 -2
- package/src/utils/getValidJson.ts +1 -1
- package/src/utils/parseSasViyaLog.ts +1 -1
- package/src/utils/parseWeboutResponse.ts +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[![npm package][npm-image]][npm-url]
|
|
4
4
|
[![Github Workflow][githubworkflow-image]][githubworkflow-url]
|
|
5
|
-
[![Dependency Status][dependency-image]][dependency-url]
|
|
6
5
|
[]()
|
|
7
6
|

|
|
8
7
|
[](/LICENSE)
|
|
@@ -16,7 +15,6 @@
|
|
|
16
15
|
[githubworkflow-image]:https://github.com/sasjs/adapter/actions/workflows/build.yml/badge.svg
|
|
17
16
|
[githubworkflow-url]:https://github.com/sasjs/adapter/blob/main/.github/workflows/build.yml
|
|
18
17
|
[dependency-image]:https://david-dm.org/sasjs/adapter.svg
|
|
19
|
-
[dependency-url]:https://github.com/sasjs/adapter/blob/main/package.json
|
|
20
18
|
|
|
21
19
|
SASjs is a open-source framework for building Web Apps on SAS® platforms. You can use as much or as little of it as you like. This repository contains the JS adapter, the part that handles the to/from SAS communication on the client side. There are 3 ways to install it:
|
|
22
20
|
|
|
@@ -32,7 +30,7 @@ For more information on building web apps with SAS, check out [sasjs.io](https:/
|
|
|
32
30
|
|
|
33
31
|
## None of this makes sense. How do I build an app with it?
|
|
34
32
|
|
|
35
|
-
Ok ok. Deploy this [example.html](https://raw.githubusercontent.com/sasjs/adapter/master/example.html) file to your web server, and update `servertype` to `SAS9` or `
|
|
33
|
+
Ok ok. Deploy this [example.html](https://raw.githubusercontent.com/sasjs/adapter/master/example.html) file to your web server, and update `servertype` to `SAS9`, `SASVIYA`, or `SASJS` depending on your backend.
|
|
36
34
|
|
|
37
35
|
The backend part can be deployed as follows:
|
|
38
36
|
|
|
@@ -52,7 +50,7 @@ parmcards4;
|
|
|
52
50
|
%webout(OBJ,areas)
|
|
53
51
|
%webout(CLOSE)
|
|
54
52
|
;;;;
|
|
55
|
-
%
|
|
53
|
+
%mx_createwebservice(path=&appLoc/common,name=getdata)
|
|
56
54
|
```
|
|
57
55
|
|
|
58
56
|
You now have a simple web app with a backend service!
|
|
@@ -155,7 +153,7 @@ The SAS type (char/numeric) of the values is determined according to a set of ru
|
|
|
155
153
|
|
|
156
154
|
* If the values are numeric, the SAS type is numeric
|
|
157
155
|
* If the values are all string, the SAS type is character
|
|
158
|
-
* If the values contain a single character (a-Z + underscore) AND a numeric, then the SAS type is numeric (with special missing values).
|
|
156
|
+
* If the values contain a single character (a-Z + underscore + .) AND a numeric, then the SAS type is numeric (with special missing values).
|
|
159
157
|
* `null` is set to either '.' or '' depending on the assigned or derived type per the above rules. If entire column is `null` then the type will be numeric.
|
|
160
158
|
|
|
161
159
|
The following table illustrates the formats applied to columns under various scenarios:
|
|
@@ -221,7 +219,7 @@ The SAS side is handled by a number of macros in the [macro core](https://github
|
|
|
221
219
|
The following snippet shows the process of SAS tables arriving / leaving:
|
|
222
220
|
|
|
223
221
|
```sas
|
|
224
|
-
/*
|
|
222
|
+
/* convert frontend input tables from into SASWORK datasets */
|
|
225
223
|
%webout(FETCH)
|
|
226
224
|
|
|
227
225
|
/* some sas code */
|
|
@@ -314,7 +312,7 @@ For more information and examples specific to this adapter you can check out the
|
|
|
314
312
|
|
|
315
313
|
For more information on building web apps in general, check out these [resources](https://sasjs.io/training/resources/) or contact the [author](https://www.linkedin.com/in/allanbowe/) directly.
|
|
316
314
|
|
|
317
|
-
|
|
315
|
+
As a SAS customer you can also request a copy of [Data Controller](https://datacontroller.io) - free for up to 5 users, this tool makes use of all parts of the SASjs framework.
|
|
318
316
|
|
|
319
317
|
|
|
320
318
|
## Star Gazing
|
package/SASjs.d.ts
CHANGED
|
@@ -233,10 +233,7 @@ export default class SASjs {
|
|
|
233
233
|
/**
|
|
234
234
|
* Logs out of the configured SAS server.
|
|
235
235
|
*/
|
|
236
|
-
logOut(): Promise<boolean
|
|
237
|
-
result: unknown;
|
|
238
|
-
etag: string;
|
|
239
|
-
}>;
|
|
236
|
+
logOut(): Promise<boolean>;
|
|
240
237
|
/**
|
|
241
238
|
* Uploads a file to the given service.
|
|
242
239
|
* @param sasJob - the path to the SAS program (ultimately resolves to
|
package/auth/AuthManager.d.ts
CHANGED
|
@@ -44,10 +44,7 @@ export declare class AuthManager {
|
|
|
44
44
|
private setLoginUrl;
|
|
45
45
|
/**
|
|
46
46
|
* Logs out of the configured SAS server.
|
|
47
|
-
*
|
|
47
|
+
*
|
|
48
48
|
*/
|
|
49
|
-
logOut(): Promise<boolean
|
|
50
|
-
result: unknown;
|
|
51
|
-
etag: string;
|
|
52
|
-
}>;
|
|
49
|
+
logOut(): Promise<boolean>;
|
|
53
50
|
}
|