@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.
Files changed (38) hide show
  1. package/build/browser.js +2274 -1
  2. package/build/cjs/corpus/viya/operations.js +647 -0
  3. package/build/cjs/index.js +65 -40
  4. package/build/cjs/viya/dispatch.js +141 -0
  5. package/build/cjs/viya/overlay.js +104 -0
  6. package/build/cjs/viya/service.js +317 -0
  7. package/build/cjs/viya/surface.js +326 -0
  8. package/build/cjs/viya/table.js +805 -0
  9. package/build/cjs/viya/unrecorded.js +58 -0
  10. package/build/cjs/viya/version.js +43 -0
  11. package/build/esm/corpus/viya/operations.d.ts +28 -0
  12. package/build/esm/corpus/viya/operations.d.ts.map +1 -0
  13. package/build/esm/corpus/viya/operations.js +644 -0
  14. package/build/esm/index.d.ts +14 -0
  15. package/build/esm/index.d.ts.map +1 -1
  16. package/build/esm/index.js +10 -0
  17. package/build/esm/viya/dispatch.d.ts +35 -0
  18. package/build/esm/viya/dispatch.d.ts.map +1 -0
  19. package/build/esm/viya/dispatch.js +136 -0
  20. package/build/esm/viya/overlay.d.ts +25 -0
  21. package/build/esm/viya/overlay.d.ts.map +1 -0
  22. package/build/esm/viya/overlay.js +100 -0
  23. package/build/esm/viya/service.d.ts +44 -0
  24. package/build/esm/viya/service.d.ts.map +1 -0
  25. package/build/esm/viya/service.js +313 -0
  26. package/build/esm/viya/surface.d.ts +26 -0
  27. package/build/esm/viya/surface.d.ts.map +1 -0
  28. package/build/esm/viya/surface.js +323 -0
  29. package/build/esm/viya/table.d.ts +39 -0
  30. package/build/esm/viya/table.d.ts.map +1 -0
  31. package/build/esm/viya/table.js +802 -0
  32. package/build/esm/viya/unrecorded.d.ts +24 -0
  33. package/build/esm/viya/unrecorded.d.ts.map +1 -0
  34. package/build/esm/viya/unrecorded.js +55 -0
  35. package/build/esm/viya/version.d.ts +37 -0
  36. package/build/esm/viya/version.d.ts.map +1 -0
  37. package/build/esm/viya/version.js +39 -0
  38. package/package.json +5 -1
@@ -0,0 +1,647 @@
1
+ "use strict";
2
+ /**
3
+ * The Viya conformance corpus: what the estate answered, as data.
4
+ *
5
+ * Generated by `npm run sync:viya` from a capture taken against Viya
6
+ * V.04.00M0P100526. Do not edit by hand: the capture is the evidence, and a change
7
+ * here that the capture does not support is a claim nobody can check.
8
+ *
9
+ * Values never reach this file. A path keeps its shape with `{}` for a segment
10
+ * that was an identifier, a query keeps its parameter names, and a body is a
11
+ * type sketch - the emulator generates its data from a seed, so the shape is all
12
+ * the table needs.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.VIYA_CORPUS = void 0;
16
+ exports.VIYA_CORPUS = [
17
+ {
18
+ route: 'GET /compute/contexts',
19
+ step: 'compute/context-by-name',
20
+ queries: ['filter', 'limit'],
21
+ statuses: [200],
22
+ expected: 200,
23
+ shape: {
24
+ accept: 'string',
25
+ count: 'number',
26
+ items: [
27
+ {
28
+ createdBy: 'string',
29
+ id: 'string',
30
+ links: [
31
+ {
32
+ href: 'string',
33
+ method: 'string',
34
+ rel: 'string',
35
+ type: 'string',
36
+ uri: 'string'
37
+ }
38
+ ],
39
+ name: 'string',
40
+ version: 'number'
41
+ }
42
+ ],
43
+ limit: 'number',
44
+ links: [
45
+ {
46
+ href: 'string',
47
+ itemType: 'string',
48
+ method: 'string',
49
+ rel: 'string',
50
+ type: 'string',
51
+ uri: 'string'
52
+ }
53
+ ],
54
+ name: 'string',
55
+ start: 'number',
56
+ version: 'number'
57
+ }
58
+ },
59
+ {
60
+ route: 'POST /compute/contexts/{}/sessions',
61
+ step: 'compute/execute-script',
62
+ queries: [],
63
+ statuses: [201],
64
+ expected: 201,
65
+ shape: {
66
+ applicationName: 'string',
67
+ attributes: {
68
+ homeDirectory: 'string',
69
+ sessionInactiveTimeout: 'number'
70
+ },
71
+ creationTimeStamp: 'string',
72
+ environment: {
73
+ autoExecLines: ['string']
74
+ },
75
+ id: 'string',
76
+ links: [
77
+ {
78
+ href: 'string',
79
+ method: 'string',
80
+ rel: 'string',
81
+ type: 'string',
82
+ uri: 'string'
83
+ }
84
+ ],
85
+ owner: 'string',
86
+ serverId: 'string',
87
+ serviceAPIVersion: 'number',
88
+ sessionConditionCode: 'number',
89
+ state: 'string',
90
+ stateElapsedTime: 'number',
91
+ version: 'number'
92
+ }
93
+ },
94
+ {
95
+ route: 'DELETE /compute/sessions/{}',
96
+ step: 'compute/session-delete',
97
+ queries: [],
98
+ statuses: [204],
99
+ expected: 204,
100
+ shape: undefined
101
+ },
102
+ {
103
+ route: 'POST /compute/sessions/{}/jobs',
104
+ step: 'compute/execute-script',
105
+ queries: [],
106
+ statuses: [201],
107
+ expected: 201,
108
+ shape: {
109
+ creationTimeStamp: 'string',
110
+ id: 'string',
111
+ links: [
112
+ {
113
+ href: 'string',
114
+ method: 'string',
115
+ rel: 'string',
116
+ type: 'string',
117
+ uri: 'string'
118
+ }
119
+ ],
120
+ sessionId: 'string',
121
+ state: 'string',
122
+ stateElapsedTime: 'number',
123
+ version: 'number'
124
+ }
125
+ },
126
+ {
127
+ route: 'GET /compute/sessions/{}/jobs/{}',
128
+ step: 'compute/execute-script',
129
+ queries: [],
130
+ statuses: [200],
131
+ expected: 200,
132
+ shape: {
133
+ completedTimeStamp: 'string',
134
+ creationTimeStamp: 'string',
135
+ id: 'string',
136
+ jobConditionCode: 'number',
137
+ links: [
138
+ {
139
+ href: 'string',
140
+ method: 'string',
141
+ rel: 'string',
142
+ type: 'string',
143
+ uri: 'string'
144
+ }
145
+ ],
146
+ listingStatistics: {
147
+ lineCount: 'number',
148
+ modifiedTimeStamp: 'string'
149
+ },
150
+ logStatistics: {
151
+ lineCount: 'number',
152
+ modifiedTimeStamp: 'string'
153
+ },
154
+ sessionId: 'string',
155
+ state: 'string',
156
+ stateElapsedTime: 'number',
157
+ statistics: {
158
+ systemCpuTime: 'number',
159
+ userCpuTime: 'number'
160
+ },
161
+ version: 'number'
162
+ }
163
+ },
164
+ {
165
+ route: 'GET /compute/sessions/{}/jobs/{}/log/content',
166
+ step: 'compute/execute-script',
167
+ queries: ['limit', 'start'],
168
+ statuses: [200],
169
+ expected: 200,
170
+ shape: {
171
+ accept: 'string',
172
+ count: 'number',
173
+ items: [
174
+ {
175
+ line: 'string',
176
+ type: 'string',
177
+ version: 'number'
178
+ }
179
+ ],
180
+ limit: 'number',
181
+ links: [
182
+ {
183
+ href: 'string',
184
+ itemType: 'string',
185
+ method: 'string',
186
+ rel: 'string',
187
+ type: 'string',
188
+ uri: 'string'
189
+ }
190
+ ],
191
+ name: 'string',
192
+ start: 'number',
193
+ version: 'number'
194
+ }
195
+ },
196
+ {
197
+ route: 'GET /compute/sessions/{}/jobs/{}/state',
198
+ step: 'compute/execute-script',
199
+ queries: ['_action', 'wait'],
200
+ statuses: [200],
201
+ expected: 200,
202
+ shape: undefined
203
+ },
204
+ {
205
+ route: 'GET /compute/sessions/{}/state',
206
+ step: 'compute/execute-script',
207
+ queries: ['wait'],
208
+ statuses: [200],
209
+ expected: 200,
210
+ shape: undefined
211
+ },
212
+ {
213
+ route: 'POST /files/files',
214
+ step: 'files/create',
215
+ queries: ['parentFolderUri', 'typeDefName'],
216
+ statuses: [201],
217
+ expected: 201,
218
+ shape: {
219
+ contentDisposition: 'string',
220
+ contentType: 'string',
221
+ createdBy: 'string',
222
+ creationTimeStamp: 'string',
223
+ encoding: 'string',
224
+ fileStatus: 'string',
225
+ fileVersion: 'number',
226
+ id: 'string',
227
+ links: [
228
+ {
229
+ href: 'string',
230
+ method: 'string',
231
+ rel: 'string',
232
+ type: 'string',
233
+ uri: 'string'
234
+ }
235
+ ],
236
+ modifiedBy: 'string',
237
+ modifiedTimeStamp: 'string',
238
+ name: 'string',
239
+ properties: {},
240
+ quarantine: 'boolean',
241
+ searchable: 'boolean',
242
+ size: 'number',
243
+ typeDefName: 'string',
244
+ urlDetected: 'boolean',
245
+ version: 'number',
246
+ virusDetected: 'boolean'
247
+ }
248
+ },
249
+ {
250
+ route: 'GET /files/files/{}',
251
+ step: 'files/replace',
252
+ queries: [],
253
+ statuses: [200],
254
+ expected: 200,
255
+ shape: {
256
+ contentDisposition: 'string',
257
+ contentType: 'string',
258
+ createdBy: 'string',
259
+ creationTimeStamp: 'string',
260
+ encoding: 'string',
261
+ fileStatus: 'string',
262
+ fileVersion: 'number',
263
+ id: 'string',
264
+ links: [
265
+ {
266
+ href: 'string',
267
+ method: 'string',
268
+ rel: 'string',
269
+ type: 'string',
270
+ uri: 'string'
271
+ }
272
+ ],
273
+ modifiedBy: 'string',
274
+ modifiedTimeStamp: 'string',
275
+ name: 'string',
276
+ properties: {
277
+ 'content.download': 'string',
278
+ 'content.openInBrowser': 'string',
279
+ 'content.preview': 'string',
280
+ sasIconKey: 'string',
281
+ typeRegistrant: 'string'
282
+ },
283
+ quarantine: 'boolean',
284
+ searchable: 'boolean',
285
+ size: 'number',
286
+ typeDefName: 'string',
287
+ urlDetected: 'boolean',
288
+ version: 'number',
289
+ virusDetected: 'boolean'
290
+ }
291
+ },
292
+ {
293
+ route: 'PATCH /files/files/{}',
294
+ step: 'files/create',
295
+ queries: [],
296
+ statuses: [200],
297
+ expected: 200,
298
+ shape: {
299
+ contentDisposition: 'string',
300
+ contentType: 'string',
301
+ createdBy: 'string',
302
+ creationTimeStamp: 'string',
303
+ encoding: 'string',
304
+ fileStatus: 'string',
305
+ fileVersion: 'number',
306
+ id: 'string',
307
+ links: [
308
+ {
309
+ href: 'string',
310
+ method: 'string',
311
+ rel: 'string',
312
+ type: 'string',
313
+ uri: 'string'
314
+ }
315
+ ],
316
+ modifiedBy: 'string',
317
+ modifiedTimeStamp: 'string',
318
+ name: 'string',
319
+ properties: {
320
+ 'content.download': 'string',
321
+ 'content.openInBrowser': 'string',
322
+ 'content.preview': 'string',
323
+ sasIconKey: 'string',
324
+ typeRegistrant: 'string'
325
+ },
326
+ quarantine: 'boolean',
327
+ searchable: 'boolean',
328
+ size: 'number',
329
+ typeDefName: 'string',
330
+ urlDetected: 'boolean',
331
+ version: 'number',
332
+ virusDetected: 'boolean'
333
+ }
334
+ },
335
+ {
336
+ route: 'GET /files/files/{}/content',
337
+ step: 'files/content',
338
+ queries: [],
339
+ statuses: [200],
340
+ expected: 200,
341
+ shape: undefined
342
+ },
343
+ {
344
+ route: 'PUT /files/files/{}/content',
345
+ step: 'files/replace',
346
+ queries: [],
347
+ statuses: [200],
348
+ expected: 200,
349
+ shape: {
350
+ contentDisposition: 'string',
351
+ contentType: 'string',
352
+ createdBy: 'string',
353
+ creationTimeStamp: 'string',
354
+ encoding: 'string',
355
+ fileStatus: 'string',
356
+ fileVersion: 'number',
357
+ id: 'string',
358
+ links: [
359
+ {
360
+ href: 'string',
361
+ method: 'string',
362
+ rel: 'string',
363
+ type: 'string',
364
+ uri: 'string'
365
+ }
366
+ ],
367
+ modifiedBy: 'string',
368
+ modifiedTimeStamp: 'string',
369
+ name: 'string',
370
+ properties: {
371
+ 'content.download': 'string',
372
+ 'content.openInBrowser': 'string',
373
+ 'content.preview': 'string',
374
+ sasIconKey: 'string',
375
+ typeRegistrant: 'string'
376
+ },
377
+ quarantine: 'boolean',
378
+ searchable: 'boolean',
379
+ size: 'number',
380
+ typeDefName: 'string',
381
+ urlDetected: 'boolean',
382
+ version: 'number',
383
+ virusDetected: 'boolean'
384
+ }
385
+ },
386
+ {
387
+ route: 'POST /folders/folders',
388
+ step: 'folders/create',
389
+ queries: ['parentFolderUri'],
390
+ statuses: [201],
391
+ expected: 201,
392
+ shape: {
393
+ createdBy: 'string',
394
+ creationTimeStamp: 'string',
395
+ id: 'string',
396
+ links: [
397
+ {
398
+ href: 'string',
399
+ method: 'string',
400
+ rel: 'string',
401
+ type: 'string',
402
+ uri: 'string'
403
+ }
404
+ ],
405
+ memberCount: 'number',
406
+ modifiedBy: 'string',
407
+ modifiedTimeStamp: 'string',
408
+ name: 'string',
409
+ parentFolderUri: 'string',
410
+ type: 'string',
411
+ version: 'number'
412
+ }
413
+ },
414
+ {
415
+ route: 'GET /folders/folders/{}',
416
+ step: 'folders/delete',
417
+ queries: [],
418
+ statuses: [200],
419
+ expected: 200,
420
+ shape: {
421
+ createdBy: 'string',
422
+ creationTimeStamp: 'string',
423
+ description: 'string',
424
+ id: 'string',
425
+ links: [
426
+ {
427
+ href: 'string',
428
+ method: 'string',
429
+ rel: 'string',
430
+ type: 'string',
431
+ uri: 'string'
432
+ }
433
+ ],
434
+ memberCount: 'number',
435
+ modifiedBy: 'string',
436
+ modifiedTimeStamp: 'string',
437
+ name: 'string',
438
+ parentFolderUri: 'string',
439
+ properties: {
440
+ allowMove: 'string'
441
+ },
442
+ type: 'string',
443
+ version: 'number'
444
+ }
445
+ },
446
+ {
447
+ route: 'PATCH /folders/folders/{}',
448
+ step: 'folders/delete',
449
+ queries: [],
450
+ statuses: [200],
451
+ expected: 200,
452
+ shape: {
453
+ createdBy: 'string',
454
+ creationTimeStamp: 'string',
455
+ id: 'string',
456
+ links: [
457
+ {
458
+ href: 'string',
459
+ method: 'string',
460
+ rel: 'string',
461
+ type: 'string',
462
+ uri: 'string'
463
+ }
464
+ ],
465
+ memberCount: 'number',
466
+ modifiedBy: 'string',
467
+ modifiedTimeStamp: 'string',
468
+ name: 'string',
469
+ parentFolderUri: 'string',
470
+ type: 'string',
471
+ version: 'number'
472
+ }
473
+ },
474
+ {
475
+ route: 'GET /folders/folders/{}/members',
476
+ step: 'files/content',
477
+ queries: ['limit'],
478
+ statuses: [200],
479
+ expected: 200,
480
+ shape: {
481
+ accept: 'string',
482
+ count: 'number',
483
+ items: [
484
+ {
485
+ added: 'string',
486
+ contentType: 'string',
487
+ createdBy: 'string',
488
+ creationTimeStamp: 'string',
489
+ id: 'string',
490
+ links: [
491
+ {
492
+ href: 'string',
493
+ method: 'string',
494
+ rel: 'string',
495
+ type: 'string',
496
+ uri: 'string'
497
+ }
498
+ ],
499
+ modifiedBy: 'string',
500
+ modifiedTimeStamp: 'string',
501
+ name: 'string',
502
+ parentFolderUri: 'string',
503
+ type: 'string',
504
+ uri: 'string',
505
+ version: 'number'
506
+ }
507
+ ],
508
+ limit: 'number',
509
+ links: [
510
+ {
511
+ href: 'string',
512
+ itemType: 'string',
513
+ method: 'string',
514
+ rel: 'string',
515
+ type: 'string',
516
+ uri: 'string'
517
+ }
518
+ ],
519
+ name: 'string',
520
+ start: 'number',
521
+ version: 'number'
522
+ }
523
+ },
524
+ {
525
+ route: 'GET /folders/folders/@item',
526
+ step: 'files/content',
527
+ queries: ['path'],
528
+ statuses: [200, 401, 404],
529
+ expected: 200,
530
+ shape: {
531
+ createdBy: 'string',
532
+ creationTimeStamp: 'string',
533
+ description: 'string',
534
+ id: 'string',
535
+ links: [
536
+ {
537
+ href: 'string',
538
+ method: 'string',
539
+ rel: 'string',
540
+ type: 'string',
541
+ uri: 'string'
542
+ }
543
+ ],
544
+ memberCount: 'number',
545
+ modifiedBy: 'string',
546
+ modifiedTimeStamp: 'string',
547
+ name: 'string',
548
+ parentFolderUri: 'string',
549
+ type: 'string',
550
+ version: 'number'
551
+ }
552
+ },
553
+ {
554
+ route: 'GET /folders/folders/@myRecycleBin',
555
+ step: 'folders/delete',
556
+ queries: [],
557
+ statuses: [200],
558
+ expected: 200,
559
+ shape: {
560
+ createdBy: 'string',
561
+ creationTimeStamp: 'string',
562
+ description: 'string',
563
+ id: 'string',
564
+ links: [
565
+ {
566
+ href: 'string',
567
+ method: 'string',
568
+ rel: 'string',
569
+ type: 'string',
570
+ uri: 'string'
571
+ }
572
+ ],
573
+ memberCount: 'number',
574
+ modifiedBy: 'string',
575
+ modifiedTimeStamp: 'string',
576
+ name: 'string',
577
+ parentFolderUri: 'string',
578
+ properties: {
579
+ allowMove: 'string'
580
+ },
581
+ type: 'string',
582
+ version: 'number'
583
+ }
584
+ },
585
+ {
586
+ route: 'GET /identities/users/@currentUser',
587
+ step: 'identities/current-user',
588
+ queries: [],
589
+ statuses: [200],
590
+ expected: 200,
591
+ shape: {
592
+ addresses: [
593
+ {
594
+ locality: 'string',
595
+ type: 'string'
596
+ }
597
+ ],
598
+ emailAddresses: [
599
+ {
600
+ type: 'string',
601
+ value: 'string'
602
+ }
603
+ ],
604
+ id: 'string',
605
+ links: [
606
+ {
607
+ href: 'string',
608
+ method: 'string',
609
+ rel: 'string',
610
+ type: 'string',
611
+ uri: 'string'
612
+ }
613
+ ],
614
+ name: 'string',
615
+ providerId: 'string',
616
+ state: 'string',
617
+ version: 'number'
618
+ }
619
+ },
620
+ {
621
+ route: 'POST /SASLogon/oauth/token',
622
+ step: 'auth/token-refresh',
623
+ queries: [],
624
+ statuses: [200, 401],
625
+ expected: 200,
626
+ shape: {
627
+ access_token: 'string',
628
+ expires_in: 'number',
629
+ id_token: 'string',
630
+ jti: 'string',
631
+ refresh_expires_in: 'number',
632
+ refresh_revocable: 'boolean',
633
+ refresh_token: 'string',
634
+ revocable: 'boolean',
635
+ scope: 'string',
636
+ token_type: 'string'
637
+ }
638
+ },
639
+ {
640
+ route: 'GET /types/types',
641
+ step: 'files/create',
642
+ queries: ['limit'],
643
+ statuses: [200],
644
+ expected: 200,
645
+ shape: undefined
646
+ }
647
+ ];