@sasjs/api 0.44.6 → 0.46.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.
@@ -261,6 +261,33 @@ export const VIYA_TABLE = [
261
261
  },
262
262
  shape: undefined
263
263
  },
264
+ {
265
+ id: 'GET /compute/sessions/{}/variables/{}',
266
+ method: 'GET',
267
+ path: '/compute/sessions/{}/variables/{}',
268
+ steps: ['compute/execute-script'],
269
+ statuses: [200],
270
+ queries: [],
271
+ request: {
272
+ queries: [],
273
+ body: undefined
274
+ },
275
+ shape: {
276
+ links: [
277
+ {
278
+ href: 'string',
279
+ method: 'string',
280
+ rel: 'string',
281
+ type: 'string',
282
+ uri: 'string'
283
+ }
284
+ ],
285
+ name: 'string',
286
+ scope: 'string',
287
+ value: 'string',
288
+ version: 'number'
289
+ }
290
+ },
264
291
  {
265
292
  id: 'POST /files/files',
266
293
  method: 'POST',
@@ -414,7 +441,7 @@ export const VIYA_TABLE = [
414
441
  id: 'GET /files/files/{}/content',
415
442
  method: 'GET',
416
443
  path: '/files/files/{}/content',
417
- steps: ['files/content'],
444
+ steps: ['files/content', 'jobs/execute'],
418
445
  statuses: [200],
419
446
  queries: [],
420
447
  request: {
@@ -475,7 +502,7 @@ export const VIYA_TABLE = [
475
502
  id: 'POST /folders/folders',
476
503
  method: 'POST',
477
504
  path: '/folders/folders',
478
- steps: ['folders/create'],
505
+ steps: ['folders/create', 'jobs/folder-create'],
479
506
  statuses: [201],
480
507
  queries: ['parentFolderUri'],
481
508
  request: {
@@ -511,7 +538,7 @@ export const VIYA_TABLE = [
511
538
  id: 'GET /folders/folders/{}',
512
539
  method: 'GET',
513
540
  path: '/folders/folders/{}',
514
- steps: ['folders/delete'],
541
+ steps: ['folders/delete', 'jobs/folders/delete'],
515
542
  statuses: [200],
516
543
  queries: [],
517
544
  request: {
@@ -548,7 +575,7 @@ export const VIYA_TABLE = [
548
575
  id: 'PATCH /folders/folders/{}',
549
576
  method: 'PATCH',
550
577
  path: '/folders/folders/{}',
551
- steps: ['folders/delete'],
578
+ steps: ['folders/delete', 'jobs/folders/delete'],
552
579
  statuses: [200],
553
580
  queries: [],
554
581
  request: {
@@ -588,8 +615,8 @@ export const VIYA_TABLE = [
588
615
  steps: [
589
616
  'files/content',
590
617
  'files/replace',
591
- 'folders/create',
592
- 'folders/members'
618
+ 'folders/members',
619
+ 'jobs/execute'
593
620
  ],
594
621
  statuses: [200],
595
622
  queries: ['limit'],
@@ -652,7 +679,13 @@ export const VIYA_TABLE = [
652
679
  'folders/create',
653
680
  'folders/delete',
654
681
  'folders/item',
655
- 'folders/members'
682
+ 'folders/members',
683
+ 'folders/missing',
684
+ 'folders/unauthorized',
685
+ 'jobs/definition',
686
+ 'jobs/execute',
687
+ 'jobs/folder-create',
688
+ 'jobs/folders/delete'
656
689
  ],
657
690
  statuses: [200, 401, 404],
658
691
  queries: ['path'],
@@ -687,7 +720,7 @@ export const VIYA_TABLE = [
687
720
  id: 'GET /folders/folders/@myRecycleBin',
688
721
  method: 'GET',
689
722
  path: '/folders/folders/@myRecycleBin',
690
- steps: ['folders/delete'],
723
+ steps: ['folders/delete', 'jobs/folders/delete'],
691
724
  statuses: [200],
692
725
  queries: [],
693
726
  request: {
@@ -760,6 +793,348 @@ export const VIYA_TABLE = [
760
793
  version: 'number'
761
794
  }
762
795
  },
796
+ {
797
+ id: 'POST /jobDefinitions/definitions',
798
+ method: 'POST',
799
+ path: '/jobDefinitions/definitions',
800
+ steps: ['jobs/definition'],
801
+ statuses: [201],
802
+ queries: ['parentFolderUri'],
803
+ request: {
804
+ queries: ['parentFolderUri'],
805
+ body: {
806
+ code: 'string',
807
+ name: 'string',
808
+ parameters: [
809
+ {
810
+ defaultValue: 'string',
811
+ name: 'string',
812
+ type: 'string'
813
+ }
814
+ ],
815
+ type: 'string'
816
+ }
817
+ },
818
+ shape: {
819
+ code: 'string',
820
+ createdBy: 'string',
821
+ creationTimeStamp: 'string',
822
+ id: 'string',
823
+ links: [
824
+ {
825
+ href: 'string',
826
+ method: 'string',
827
+ rel: 'string',
828
+ type: 'string',
829
+ uri: 'string'
830
+ }
831
+ ],
832
+ modifiedBy: 'string',
833
+ modifiedTimeStamp: 'string',
834
+ name: 'string',
835
+ parameters: [
836
+ {
837
+ defaultValue: 'string',
838
+ name: 'string',
839
+ required: 'boolean',
840
+ type: 'string',
841
+ version: 'number'
842
+ }
843
+ ],
844
+ type: 'string',
845
+ version: 'number'
846
+ }
847
+ },
848
+ {
849
+ id: 'GET /jobDefinitions/definitions/{}',
850
+ method: 'GET',
851
+ path: '/jobDefinitions/definitions/{}',
852
+ steps: ['jobs/execute'],
853
+ statuses: [200],
854
+ queries: [],
855
+ request: {
856
+ queries: [],
857
+ body: undefined
858
+ },
859
+ shape: {
860
+ code: 'string',
861
+ createdBy: 'string',
862
+ creationTimeStamp: 'string',
863
+ id: 'string',
864
+ links: [
865
+ {
866
+ href: 'string',
867
+ method: 'string',
868
+ rel: 'string',
869
+ type: 'string',
870
+ uri: 'string'
871
+ }
872
+ ],
873
+ modifiedBy: 'string',
874
+ modifiedTimeStamp: 'string',
875
+ name: 'string',
876
+ parameters: [
877
+ {
878
+ defaultValue: 'string',
879
+ name: 'string',
880
+ required: 'boolean',
881
+ type: 'string',
882
+ version: 'number'
883
+ }
884
+ ],
885
+ type: 'string',
886
+ version: 'number'
887
+ }
888
+ },
889
+ {
890
+ id: 'POST /jobExecution/jobs',
891
+ method: 'POST',
892
+ path: '/jobExecution/jobs',
893
+ steps: ['jobs/execute'],
894
+ statuses: [201],
895
+ queries: ['_action'],
896
+ request: {
897
+ queries: ['_action'],
898
+ body: {
899
+ arguments: {
900
+ _DEBUG: 'string',
901
+ _OMITJSONLISTING: 'string',
902
+ _OMITJSONLOG: 'string',
903
+ _OMITTEXTLISTING: 'string',
904
+ _OMITTEXTLOG: 'string',
905
+ _contextName: 'string',
906
+ _omitSessionResults: 'string',
907
+ _program: 'string',
908
+ _webin_file_count: 'string'
909
+ },
910
+ description: 'string',
911
+ jobDefinition: {
912
+ code: 'string',
913
+ createdBy: 'string',
914
+ creationTimeStamp: 'string',
915
+ id: 'string',
916
+ links: [
917
+ {
918
+ href: 'string',
919
+ method: 'string',
920
+ rel: 'string',
921
+ type: 'string',
922
+ uri: 'string'
923
+ }
924
+ ],
925
+ modifiedBy: 'string',
926
+ modifiedTimeStamp: 'string',
927
+ name: 'string',
928
+ parameters: [
929
+ {
930
+ defaultValue: 'string',
931
+ name: 'string',
932
+ required: 'boolean',
933
+ type: 'string',
934
+ version: 'number'
935
+ }
936
+ ],
937
+ type: 'string',
938
+ version: 'number'
939
+ },
940
+ name: 'string'
941
+ }
942
+ },
943
+ shape: {
944
+ createdBy: 'string',
945
+ creationTimeStamp: 'string',
946
+ elapsedTime: 'number',
947
+ heartbeatInterval: 'number',
948
+ heartbeatTimeStamp: 'string',
949
+ id: 'string',
950
+ jobRequest: {
951
+ arguments: {
952
+ _DEBUG: 'string',
953
+ _OMITJSONLISTING: 'string',
954
+ _OMITJSONLOG: 'string',
955
+ _OMITTEXTLISTING: 'string',
956
+ _OMITTEXTLOG: 'string',
957
+ _addjesbeginendmacros: 'string',
958
+ _contextName: 'string',
959
+ _omitSessionResults: 'string',
960
+ _program: 'string',
961
+ _webin_file_count: 'string'
962
+ },
963
+ createdByApplication: 'string',
964
+ description: 'string',
965
+ jobDefinition: {
966
+ code: 'string',
967
+ createdBy: 'string',
968
+ creationTimeStamp: 'string',
969
+ id: 'string',
970
+ links: ['object'],
971
+ modifiedBy: 'string',
972
+ modifiedTimeStamp: 'string',
973
+ name: 'string',
974
+ parameters: ['object'],
975
+ type: 'string',
976
+ version: 'number'
977
+ },
978
+ name: 'string',
979
+ properties: 'array',
980
+ version: 'number'
981
+ },
982
+ links: [
983
+ {
984
+ href: 'string',
985
+ method: 'string',
986
+ rel: 'string',
987
+ type: 'string',
988
+ uri: 'string'
989
+ }
990
+ ],
991
+ modifiedBy: 'string',
992
+ modifiedTimeStamp: 'string',
993
+ results: {},
994
+ state: 'string',
995
+ submittedByApplication: 'string',
996
+ version: 'number'
997
+ }
998
+ },
999
+ {
1000
+ id: 'GET /jobExecution/jobs/{}',
1001
+ method: 'GET',
1002
+ path: '/jobExecution/jobs/{}',
1003
+ steps: ['jobs/execute'],
1004
+ statuses: [200],
1005
+ queries: [],
1006
+ request: {
1007
+ queries: [],
1008
+ body: undefined
1009
+ },
1010
+ shape: {
1011
+ createdBy: 'string',
1012
+ creationTimeStamp: 'string',
1013
+ elapsedTime: 'number',
1014
+ endTimeStamp: 'string',
1015
+ heartbeatInterval: 'number',
1016
+ heartbeatTimeStamp: 'string',
1017
+ id: 'string',
1018
+ jobRequest: {
1019
+ arguments: {
1020
+ _DEBUG: 'string',
1021
+ _OMITJSONLISTING: 'string',
1022
+ _OMITJSONLOG: 'string',
1023
+ _OMITTEXTLISTING: 'string',
1024
+ _OMITTEXTLOG: 'string',
1025
+ _addjesbeginendmacros: 'string',
1026
+ _contextName: 'string',
1027
+ _omitSessionResults: 'string',
1028
+ _program: 'string',
1029
+ _webin_file_count: 'string'
1030
+ },
1031
+ createdByApplication: 'string',
1032
+ description: 'string',
1033
+ jobDefinition: {
1034
+ code: 'string',
1035
+ createdBy: 'string',
1036
+ creationTimeStamp: 'string',
1037
+ id: 'string',
1038
+ links: ['object'],
1039
+ modifiedBy: 'string',
1040
+ modifiedTimeStamp: 'string',
1041
+ name: 'string',
1042
+ parameters: ['object'],
1043
+ type: 'string',
1044
+ version: 'number'
1045
+ },
1046
+ name: 'string',
1047
+ properties: 'array',
1048
+ version: 'number'
1049
+ },
1050
+ links: [
1051
+ {
1052
+ href: 'string',
1053
+ method: 'string',
1054
+ rel: 'string',
1055
+ type: 'string',
1056
+ uri: 'string'
1057
+ }
1058
+ ],
1059
+ logLocation: 'string',
1060
+ modifiedBy: 'string',
1061
+ modifiedTimeStamp: 'string',
1062
+ results: {
1063
+ COMPUTE_CONTEXT: 'string',
1064
+ COMPUTE_JOB: 'string',
1065
+ COMPUTE_SESSION: 'string',
1066
+ '{}.log': 'string',
1067
+ '{}.log.txt': 'string'
1068
+ },
1069
+ state: 'string',
1070
+ submittedByApplication: 'string',
1071
+ version: 'number'
1072
+ }
1073
+ },
1074
+ {
1075
+ id: 'GET /jobExecution/jobs/{}/state',
1076
+ method: 'GET',
1077
+ path: '/jobExecution/jobs/{}/state',
1078
+ steps: ['jobs/execute'],
1079
+ statuses: [200],
1080
+ queries: ['_action', 'wait'],
1081
+ request: {
1082
+ queries: ['_action', 'wait'],
1083
+ body: undefined
1084
+ },
1085
+ shape: undefined
1086
+ },
1087
+ {
1088
+ id: 'GET /launcher/contexts',
1089
+ method: 'GET',
1090
+ path: '/launcher/contexts',
1091
+ steps: ['compute/launcher-contexts'],
1092
+ statuses: [200],
1093
+ queries: ['limit'],
1094
+ request: {
1095
+ queries: ['limit'],
1096
+ body: undefined
1097
+ },
1098
+ shape: {
1099
+ accept: 'string',
1100
+ count: 'number',
1101
+ items: [
1102
+ {
1103
+ createdBy: 'string',
1104
+ creationTimeStamp: 'string',
1105
+ description: 'string',
1106
+ id: 'string',
1107
+ links: [
1108
+ {
1109
+ href: 'string',
1110
+ method: 'string',
1111
+ rel: 'string',
1112
+ type: 'string',
1113
+ uri: 'string'
1114
+ }
1115
+ ],
1116
+ modifiedBy: 'string',
1117
+ modifiedTimeStamp: 'string',
1118
+ name: 'string',
1119
+ type: 'string',
1120
+ version: 'number'
1121
+ }
1122
+ ],
1123
+ limit: 'number',
1124
+ links: [
1125
+ {
1126
+ href: 'string',
1127
+ method: 'string',
1128
+ rel: 'string',
1129
+ type: 'string',
1130
+ uri: 'string'
1131
+ }
1132
+ ],
1133
+ name: 'string',
1134
+ start: 'number',
1135
+ version: 'number'
1136
+ }
1137
+ },
763
1138
  {
764
1139
  id: 'POST /SASLogon/oauth/token',
765
1140
  method: 'POST',
@@ -797,6 +1172,44 @@ export const VIYA_TABLE = [
797
1172
  queries: ['limit'],
798
1173
  body: undefined
799
1174
  },
800
- shape: undefined
1175
+ shape: {
1176
+ accept: 'string',
1177
+ count: 'number',
1178
+ items: [
1179
+ {
1180
+ description: 'string',
1181
+ iconUri: 'string',
1182
+ label: 'string',
1183
+ links: [
1184
+ {
1185
+ href: 'string',
1186
+ method: 'string',
1187
+ rel: 'string',
1188
+ type: 'string',
1189
+ uri: 'string'
1190
+ }
1191
+ ],
1192
+ mediaType: 'string',
1193
+ name: 'string',
1194
+ resourceUri: 'string',
1195
+ tags: ['string'],
1196
+ version: 'number'
1197
+ }
1198
+ ],
1199
+ limit: 'number',
1200
+ links: [
1201
+ {
1202
+ href: 'string',
1203
+ itemType: 'string',
1204
+ method: 'string',
1205
+ rel: 'string',
1206
+ type: 'string',
1207
+ uri: 'string'
1208
+ }
1209
+ ],
1210
+ name: 'string',
1211
+ start: 'number',
1212
+ version: 'number'
1213
+ }
801
1214
  }
802
1215
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"unrecorded.d.ts","sourceRoot":"","sources":["../../../src/viya/unrecorded.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,UAAU,EAAE,mBAAmB,EA+D3C,CAAA"}
1
+ {"version":3,"file":"unrecorded.d.ts","sourceRoot":"","sources":["../../../src/viya/unrecorded.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,UAAU,EAAE,mBAAmB,EAuC3C,CAAA"}
@@ -6,6 +6,10 @@ export const UNRECORDED = [
6
6
  path: '/SASLogon',
7
7
  reason: 'no capture: the pass authenticates outside the adapter, so the login root is never requested through the client'
8
8
  },
9
+ {
10
+ path: '/SASLogon/authorize',
11
+ reason: "no capture: this is the CLI's sign-in against this server's own auth route, which a Viya estate does not serve"
12
+ },
9
13
  {
10
14
  path: '/SASLogon/login',
11
15
  reason: 'no capture: an interactive login; the pass presents a token instead of a form'
@@ -25,27 +29,5 @@ export const UNRECORDED = [
25
29
  {
26
30
  path: '/SASLogon/oauth/authorize',
27
31
  reason: 'no capture: the authorisation-code step needs a browser; the pass uses the password grant'
28
- },
29
- // Compute operations the scripted passes do not reach.
30
- {
31
- path: '/compute/sessions/{}/variables/{}',
32
- reason: "no capture: the adapter reads a session variable only to report a submitted job's pid (`printPid`), which the pass does not set"
33
- },
34
- {
35
- path: '/launcher/contexts',
36
- reason: 'no capture: the fallback list, asked for only when the compute context list fails; a healthy estate never reaches it'
37
- },
38
- // The job path needs something deployed to run.
39
- {
40
- path: '/jobDefinitions/definitions',
41
- reason: 'no capture: needs a job definition on the estate. The next pass deploys a service pack under its own app folder and reads the definition back'
42
- },
43
- {
44
- path: '/jobExecution/jobs',
45
- reason: 'no capture: needs a deployed service to submit. The next pass deploys a service pack under its own app folder'
46
- },
47
- {
48
- path: '/jobExecution/jobs/{}',
49
- reason: 'no capture: follows a submission, so it arrives with the same pass as POST /jobExecution/jobs'
50
32
  }
51
33
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sasjs/api",
3
- "version": "0.44.6",
3
+ "version": "0.46.0",
4
4
  "description": "The SASjs Server API, described once - a generated route table, the services behind it, and the conformance corpus both hosts run",
5
5
  "license": "MIT",
6
6
  "author": "SASjs",