@sasjs/api 0.33.0 → 0.35.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/build/browser.js +1962 -50
- package/build/cjs/corpus/viya/operations.js +647 -0
- package/build/cjs/index.js +60 -40
- package/build/cjs/viya/dispatch.js +141 -0
- package/build/cjs/viya/overlay.js +104 -0
- package/build/cjs/viya/service.js +317 -0
- package/build/cjs/viya/surface.js +1 -49
- package/build/cjs/viya/table.js +805 -0
- package/build/cjs/viya/unrecorded.js +58 -0
- package/build/cjs/viya/version.js +43 -0
- package/build/esm/corpus/viya/operations.d.ts +28 -0
- package/build/esm/corpus/viya/operations.d.ts.map +1 -0
- package/build/esm/corpus/viya/operations.js +644 -0
- package/build/esm/index.d.ts +12 -0
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +7 -0
- package/build/esm/viya/dispatch.d.ts +35 -0
- package/build/esm/viya/dispatch.d.ts.map +1 -0
- package/build/esm/viya/dispatch.js +136 -0
- package/build/esm/viya/overlay.d.ts +25 -0
- package/build/esm/viya/overlay.d.ts.map +1 -0
- package/build/esm/viya/overlay.js +100 -0
- package/build/esm/viya/service.d.ts +44 -0
- package/build/esm/viya/service.d.ts.map +1 -0
- package/build/esm/viya/service.js +313 -0
- package/build/esm/viya/surface.d.ts.map +1 -1
- package/build/esm/viya/surface.js +1 -49
- package/build/esm/viya/table.d.ts +39 -0
- package/build/esm/viya/table.d.ts.map +1 -0
- package/build/esm/viya/table.js +802 -0
- package/build/esm/viya/unrecorded.d.ts +24 -0
- package/build/esm/viya/unrecorded.d.ts.map +1 -0
- package/build/esm/viya/unrecorded.js +55 -0
- package/build/esm/viya/version.d.ts +37 -0
- package/build/esm/viya/version.d.ts.map +1 -0
- package/build/esm/viya/version.js +39 -0
- package/package.json +3 -1
|
@@ -15,35 +15,11 @@
|
|
|
15
15
|
export const SURFACE_ADAPTER_VERSION = '6.0.2';
|
|
16
16
|
export const SURFACE = [
|
|
17
17
|
// sas9
|
|
18
|
-
{
|
|
19
|
-
path: '/Public/example/deleteThis',
|
|
20
|
-
family: 'sas9',
|
|
21
|
-
decision: 'declined',
|
|
22
|
-
reason: 'a path in a doc example or a default config value, not a call'
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
path: '/Public/example/myFolder',
|
|
26
|
-
family: 'sas9',
|
|
27
|
-
decision: 'declined',
|
|
28
|
-
reason: 'a path in a doc example or a default config value, not a call'
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
path: '/Public/newDestination',
|
|
32
|
-
family: 'sas9',
|
|
33
|
-
decision: 'declined',
|
|
34
|
-
reason: 'a path in a doc example or a default config value, not a call'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
path: '/Public/newDestination/myFolder',
|
|
38
|
-
family: 'sas9',
|
|
39
|
-
decision: 'declined',
|
|
40
|
-
reason: 'a path in a doc example or a default config value, not a call'
|
|
41
|
-
},
|
|
42
18
|
{
|
|
43
19
|
path: '/Public/seedapp',
|
|
44
20
|
family: 'sas9',
|
|
45
21
|
decision: 'declined',
|
|
46
|
-
reason: 'a
|
|
22
|
+
reason: 'a default config value the client falls back to, not a call'
|
|
47
23
|
},
|
|
48
24
|
{
|
|
49
25
|
path: '/SASJobExecution',
|
|
@@ -58,12 +34,6 @@ export const SURFACE = [
|
|
|
58
34
|
decision: 'in',
|
|
59
35
|
reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
|
|
60
36
|
},
|
|
61
|
-
{
|
|
62
|
-
path: '/SASLogon/home',
|
|
63
|
-
family: 'viya-auth',
|
|
64
|
-
decision: 'in',
|
|
65
|
-
reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
|
|
66
|
-
},
|
|
67
37
|
{
|
|
68
38
|
path: '/SASLogon/login',
|
|
69
39
|
family: 'viya-auth',
|
|
@@ -126,12 +96,6 @@ export const SURFACE = [
|
|
|
126
96
|
decision: 'declined',
|
|
127
97
|
reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
|
|
128
98
|
},
|
|
129
|
-
{
|
|
130
|
-
path: '/SASjsApi/{}',
|
|
131
|
-
family: 'sasjs-api',
|
|
132
|
-
decision: 'declined',
|
|
133
|
-
reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
|
|
134
|
-
},
|
|
135
99
|
// sas9
|
|
136
100
|
{
|
|
137
101
|
path: '/User Folders/{}/My Folder/sasjs/runner',
|
|
@@ -140,18 +104,6 @@ export const SURFACE = [
|
|
|
140
104
|
reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
|
|
141
105
|
},
|
|
142
106
|
// sasjs-api
|
|
143
|
-
{
|
|
144
|
-
path: '/api',
|
|
145
|
-
family: 'sasjs-api',
|
|
146
|
-
decision: 'declined',
|
|
147
|
-
reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
path: '/api/stp/execute',
|
|
151
|
-
family: 'sasjs-api',
|
|
152
|
-
decision: 'declined',
|
|
153
|
-
reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
|
|
154
|
-
},
|
|
155
107
|
{
|
|
156
108
|
path: '/auth/refresh',
|
|
157
109
|
family: 'sasjs-api',
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Viya route table: every operation the capture observed.
|
|
3
|
+
*
|
|
4
|
+
* Generated by `npm run sync:viya` from a capture taken against Viya
|
|
5
|
+
* V.04.00M0P100526. Do not edit by hand: the capture is the evidence, and a change
|
|
6
|
+
* here that the capture does not support is a claim nobody can check.
|
|
7
|
+
*
|
|
8
|
+
* Values never reach this file. A path keeps its shape with `{}` for a segment
|
|
9
|
+
* that was an identifier, a query keeps its parameter names, and a body is a
|
|
10
|
+
* type sketch - the emulator generates its data from a seed, so the shape is all
|
|
11
|
+
* the table needs.
|
|
12
|
+
*/
|
|
13
|
+
import type { HttpMethod } from '../types.js';
|
|
14
|
+
export interface ViyaOperation {
|
|
15
|
+
/** `METHOD /path`, which is what a route table matches. */
|
|
16
|
+
id: string;
|
|
17
|
+
method: HttpMethod;
|
|
18
|
+
/** `{}` is one path segment that was an identifier in the capture. */
|
|
19
|
+
path: string;
|
|
20
|
+
/** The scripted pass that produced it, so a reader can find the step. */
|
|
21
|
+
steps: string[];
|
|
22
|
+
/** Every status the estate answered with, as observed. */
|
|
23
|
+
statuses: number[];
|
|
24
|
+
/** Query parameter names the client sent. Values are estate data. */
|
|
25
|
+
queries: string[];
|
|
26
|
+
/**
|
|
27
|
+
* The request the client built: its query names, and its body's shape - a
|
|
28
|
+
* type sketch for JSON, parameter names for a form or multipart body, and
|
|
29
|
+
* undefined only where nothing could be read.
|
|
30
|
+
*/
|
|
31
|
+
request?: {
|
|
32
|
+
queries: string[];
|
|
33
|
+
body?: unknown;
|
|
34
|
+
};
|
|
35
|
+
/** The body shape of the answer a client keys on. */
|
|
36
|
+
shape?: unknown;
|
|
37
|
+
}
|
|
38
|
+
export declare const VIYA_TABLE: ViyaOperation[];
|
|
39
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/viya/table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,WAAW,aAAa;IAC5B,2DAA2D;IAC3D,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,UAAU,CAAA;IAClB,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAA;IACZ,yEAAyE;IACzE,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,qEAAqE;IACrE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;IAC/C,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,UAAU,EAAE,aAAa,EAqxBrC,CAAA"}
|