@sasjs/api 0.32.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 +2274 -1
- package/build/cjs/corpus/viya/operations.js +647 -0
- package/build/cjs/index.js +65 -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 +326 -0
- 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 +14 -0
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +10 -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 +26 -0
- package/build/esm/viya/surface.d.ts.map +1 -0
- package/build/esm/viya/surface.js +323 -0
- 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 +5 -1
|
@@ -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"}
|