@sasjs/api 0.45.0 → 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.
@@ -264,6 +264,33 @@ exports.VIYA_TABLE = [
264
264
  },
265
265
  shape: undefined
266
266
  },
267
+ {
268
+ id: 'GET /compute/sessions/{}/variables/{}',
269
+ method: 'GET',
270
+ path: '/compute/sessions/{}/variables/{}',
271
+ steps: ['compute/execute-script'],
272
+ statuses: [200],
273
+ queries: [],
274
+ request: {
275
+ queries: [],
276
+ body: undefined
277
+ },
278
+ shape: {
279
+ links: [
280
+ {
281
+ href: 'string',
282
+ method: 'string',
283
+ rel: 'string',
284
+ type: 'string',
285
+ uri: 'string'
286
+ }
287
+ ],
288
+ name: 'string',
289
+ scope: 'string',
290
+ value: 'string',
291
+ version: 'number'
292
+ }
293
+ },
267
294
  {
268
295
  id: 'POST /files/files',
269
296
  method: 'POST',
@@ -417,7 +444,7 @@ exports.VIYA_TABLE = [
417
444
  id: 'GET /files/files/{}/content',
418
445
  method: 'GET',
419
446
  path: '/files/files/{}/content',
420
- steps: ['files/content'],
447
+ steps: ['files/content', 'jobs/execute'],
421
448
  statuses: [200],
422
449
  queries: [],
423
450
  request: {
@@ -478,7 +505,7 @@ exports.VIYA_TABLE = [
478
505
  id: 'POST /folders/folders',
479
506
  method: 'POST',
480
507
  path: '/folders/folders',
481
- steps: ['folders/create'],
508
+ steps: ['folders/create', 'jobs/folder-create'],
482
509
  statuses: [201],
483
510
  queries: ['parentFolderUri'],
484
511
  request: {
@@ -514,7 +541,7 @@ exports.VIYA_TABLE = [
514
541
  id: 'GET /folders/folders/{}',
515
542
  method: 'GET',
516
543
  path: '/folders/folders/{}',
517
- steps: ['folders/delete'],
544
+ steps: ['folders/delete', 'jobs/folders/delete'],
518
545
  statuses: [200],
519
546
  queries: [],
520
547
  request: {
@@ -551,7 +578,7 @@ exports.VIYA_TABLE = [
551
578
  id: 'PATCH /folders/folders/{}',
552
579
  method: 'PATCH',
553
580
  path: '/folders/folders/{}',
554
- steps: ['folders/delete'],
581
+ steps: ['folders/delete', 'jobs/folders/delete'],
555
582
  statuses: [200],
556
583
  queries: [],
557
584
  request: {
@@ -591,8 +618,8 @@ exports.VIYA_TABLE = [
591
618
  steps: [
592
619
  'files/content',
593
620
  'files/replace',
594
- 'folders/create',
595
- 'folders/members'
621
+ 'folders/members',
622
+ 'jobs/execute'
596
623
  ],
597
624
  statuses: [200],
598
625
  queries: ['limit'],
@@ -655,7 +682,13 @@ exports.VIYA_TABLE = [
655
682
  'folders/create',
656
683
  'folders/delete',
657
684
  'folders/item',
658
- 'folders/members'
685
+ 'folders/members',
686
+ 'folders/missing',
687
+ 'folders/unauthorized',
688
+ 'jobs/definition',
689
+ 'jobs/execute',
690
+ 'jobs/folder-create',
691
+ 'jobs/folders/delete'
659
692
  ],
660
693
  statuses: [200, 401, 404],
661
694
  queries: ['path'],
@@ -690,7 +723,7 @@ exports.VIYA_TABLE = [
690
723
  id: 'GET /folders/folders/@myRecycleBin',
691
724
  method: 'GET',
692
725
  path: '/folders/folders/@myRecycleBin',
693
- steps: ['folders/delete'],
726
+ steps: ['folders/delete', 'jobs/folders/delete'],
694
727
  statuses: [200],
695
728
  queries: [],
696
729
  request: {
@@ -763,6 +796,348 @@ exports.VIYA_TABLE = [
763
796
  version: 'number'
764
797
  }
765
798
  },
799
+ {
800
+ id: 'POST /jobDefinitions/definitions',
801
+ method: 'POST',
802
+ path: '/jobDefinitions/definitions',
803
+ steps: ['jobs/definition'],
804
+ statuses: [201],
805
+ queries: ['parentFolderUri'],
806
+ request: {
807
+ queries: ['parentFolderUri'],
808
+ body: {
809
+ code: 'string',
810
+ name: 'string',
811
+ parameters: [
812
+ {
813
+ defaultValue: 'string',
814
+ name: 'string',
815
+ type: 'string'
816
+ }
817
+ ],
818
+ type: 'string'
819
+ }
820
+ },
821
+ shape: {
822
+ code: 'string',
823
+ createdBy: 'string',
824
+ creationTimeStamp: 'string',
825
+ id: 'string',
826
+ links: [
827
+ {
828
+ href: 'string',
829
+ method: 'string',
830
+ rel: 'string',
831
+ type: 'string',
832
+ uri: 'string'
833
+ }
834
+ ],
835
+ modifiedBy: 'string',
836
+ modifiedTimeStamp: 'string',
837
+ name: 'string',
838
+ parameters: [
839
+ {
840
+ defaultValue: 'string',
841
+ name: 'string',
842
+ required: 'boolean',
843
+ type: 'string',
844
+ version: 'number'
845
+ }
846
+ ],
847
+ type: 'string',
848
+ version: 'number'
849
+ }
850
+ },
851
+ {
852
+ id: 'GET /jobDefinitions/definitions/{}',
853
+ method: 'GET',
854
+ path: '/jobDefinitions/definitions/{}',
855
+ steps: ['jobs/execute'],
856
+ statuses: [200],
857
+ queries: [],
858
+ request: {
859
+ queries: [],
860
+ body: undefined
861
+ },
862
+ shape: {
863
+ code: 'string',
864
+ createdBy: 'string',
865
+ creationTimeStamp: 'string',
866
+ id: 'string',
867
+ links: [
868
+ {
869
+ href: 'string',
870
+ method: 'string',
871
+ rel: 'string',
872
+ type: 'string',
873
+ uri: 'string'
874
+ }
875
+ ],
876
+ modifiedBy: 'string',
877
+ modifiedTimeStamp: 'string',
878
+ name: 'string',
879
+ parameters: [
880
+ {
881
+ defaultValue: 'string',
882
+ name: 'string',
883
+ required: 'boolean',
884
+ type: 'string',
885
+ version: 'number'
886
+ }
887
+ ],
888
+ type: 'string',
889
+ version: 'number'
890
+ }
891
+ },
892
+ {
893
+ id: 'POST /jobExecution/jobs',
894
+ method: 'POST',
895
+ path: '/jobExecution/jobs',
896
+ steps: ['jobs/execute'],
897
+ statuses: [201],
898
+ queries: ['_action'],
899
+ request: {
900
+ queries: ['_action'],
901
+ body: {
902
+ arguments: {
903
+ _DEBUG: 'string',
904
+ _OMITJSONLISTING: 'string',
905
+ _OMITJSONLOG: 'string',
906
+ _OMITTEXTLISTING: 'string',
907
+ _OMITTEXTLOG: 'string',
908
+ _contextName: 'string',
909
+ _omitSessionResults: 'string',
910
+ _program: 'string',
911
+ _webin_file_count: 'string'
912
+ },
913
+ description: 'string',
914
+ jobDefinition: {
915
+ code: 'string',
916
+ createdBy: 'string',
917
+ creationTimeStamp: 'string',
918
+ id: 'string',
919
+ links: [
920
+ {
921
+ href: 'string',
922
+ method: 'string',
923
+ rel: 'string',
924
+ type: 'string',
925
+ uri: 'string'
926
+ }
927
+ ],
928
+ modifiedBy: 'string',
929
+ modifiedTimeStamp: 'string',
930
+ name: 'string',
931
+ parameters: [
932
+ {
933
+ defaultValue: 'string',
934
+ name: 'string',
935
+ required: 'boolean',
936
+ type: 'string',
937
+ version: 'number'
938
+ }
939
+ ],
940
+ type: 'string',
941
+ version: 'number'
942
+ },
943
+ name: 'string'
944
+ }
945
+ },
946
+ shape: {
947
+ createdBy: 'string',
948
+ creationTimeStamp: 'string',
949
+ elapsedTime: 'number',
950
+ heartbeatInterval: 'number',
951
+ heartbeatTimeStamp: 'string',
952
+ id: 'string',
953
+ jobRequest: {
954
+ arguments: {
955
+ _DEBUG: 'string',
956
+ _OMITJSONLISTING: 'string',
957
+ _OMITJSONLOG: 'string',
958
+ _OMITTEXTLISTING: 'string',
959
+ _OMITTEXTLOG: 'string',
960
+ _addjesbeginendmacros: 'string',
961
+ _contextName: 'string',
962
+ _omitSessionResults: 'string',
963
+ _program: 'string',
964
+ _webin_file_count: 'string'
965
+ },
966
+ createdByApplication: 'string',
967
+ description: 'string',
968
+ jobDefinition: {
969
+ code: 'string',
970
+ createdBy: 'string',
971
+ creationTimeStamp: 'string',
972
+ id: 'string',
973
+ links: ['object'],
974
+ modifiedBy: 'string',
975
+ modifiedTimeStamp: 'string',
976
+ name: 'string',
977
+ parameters: ['object'],
978
+ type: 'string',
979
+ version: 'number'
980
+ },
981
+ name: 'string',
982
+ properties: 'array',
983
+ version: 'number'
984
+ },
985
+ links: [
986
+ {
987
+ href: 'string',
988
+ method: 'string',
989
+ rel: 'string',
990
+ type: 'string',
991
+ uri: 'string'
992
+ }
993
+ ],
994
+ modifiedBy: 'string',
995
+ modifiedTimeStamp: 'string',
996
+ results: {},
997
+ state: 'string',
998
+ submittedByApplication: 'string',
999
+ version: 'number'
1000
+ }
1001
+ },
1002
+ {
1003
+ id: 'GET /jobExecution/jobs/{}',
1004
+ method: 'GET',
1005
+ path: '/jobExecution/jobs/{}',
1006
+ steps: ['jobs/execute'],
1007
+ statuses: [200],
1008
+ queries: [],
1009
+ request: {
1010
+ queries: [],
1011
+ body: undefined
1012
+ },
1013
+ shape: {
1014
+ createdBy: 'string',
1015
+ creationTimeStamp: 'string',
1016
+ elapsedTime: 'number',
1017
+ endTimeStamp: 'string',
1018
+ heartbeatInterval: 'number',
1019
+ heartbeatTimeStamp: 'string',
1020
+ id: 'string',
1021
+ jobRequest: {
1022
+ arguments: {
1023
+ _DEBUG: 'string',
1024
+ _OMITJSONLISTING: 'string',
1025
+ _OMITJSONLOG: 'string',
1026
+ _OMITTEXTLISTING: 'string',
1027
+ _OMITTEXTLOG: 'string',
1028
+ _addjesbeginendmacros: 'string',
1029
+ _contextName: 'string',
1030
+ _omitSessionResults: 'string',
1031
+ _program: 'string',
1032
+ _webin_file_count: 'string'
1033
+ },
1034
+ createdByApplication: 'string',
1035
+ description: 'string',
1036
+ jobDefinition: {
1037
+ code: 'string',
1038
+ createdBy: 'string',
1039
+ creationTimeStamp: 'string',
1040
+ id: 'string',
1041
+ links: ['object'],
1042
+ modifiedBy: 'string',
1043
+ modifiedTimeStamp: 'string',
1044
+ name: 'string',
1045
+ parameters: ['object'],
1046
+ type: 'string',
1047
+ version: 'number'
1048
+ },
1049
+ name: 'string',
1050
+ properties: 'array',
1051
+ version: 'number'
1052
+ },
1053
+ links: [
1054
+ {
1055
+ href: 'string',
1056
+ method: 'string',
1057
+ rel: 'string',
1058
+ type: 'string',
1059
+ uri: 'string'
1060
+ }
1061
+ ],
1062
+ logLocation: 'string',
1063
+ modifiedBy: 'string',
1064
+ modifiedTimeStamp: 'string',
1065
+ results: {
1066
+ COMPUTE_CONTEXT: 'string',
1067
+ COMPUTE_JOB: 'string',
1068
+ COMPUTE_SESSION: 'string',
1069
+ '{}.log': 'string',
1070
+ '{}.log.txt': 'string'
1071
+ },
1072
+ state: 'string',
1073
+ submittedByApplication: 'string',
1074
+ version: 'number'
1075
+ }
1076
+ },
1077
+ {
1078
+ id: 'GET /jobExecution/jobs/{}/state',
1079
+ method: 'GET',
1080
+ path: '/jobExecution/jobs/{}/state',
1081
+ steps: ['jobs/execute'],
1082
+ statuses: [200],
1083
+ queries: ['_action', 'wait'],
1084
+ request: {
1085
+ queries: ['_action', 'wait'],
1086
+ body: undefined
1087
+ },
1088
+ shape: undefined
1089
+ },
1090
+ {
1091
+ id: 'GET /launcher/contexts',
1092
+ method: 'GET',
1093
+ path: '/launcher/contexts',
1094
+ steps: ['compute/launcher-contexts'],
1095
+ statuses: [200],
1096
+ queries: ['limit'],
1097
+ request: {
1098
+ queries: ['limit'],
1099
+ body: undefined
1100
+ },
1101
+ shape: {
1102
+ accept: 'string',
1103
+ count: 'number',
1104
+ items: [
1105
+ {
1106
+ createdBy: 'string',
1107
+ creationTimeStamp: 'string',
1108
+ description: 'string',
1109
+ id: 'string',
1110
+ links: [
1111
+ {
1112
+ href: 'string',
1113
+ method: 'string',
1114
+ rel: 'string',
1115
+ type: 'string',
1116
+ uri: 'string'
1117
+ }
1118
+ ],
1119
+ modifiedBy: 'string',
1120
+ modifiedTimeStamp: 'string',
1121
+ name: 'string',
1122
+ type: 'string',
1123
+ version: 'number'
1124
+ }
1125
+ ],
1126
+ limit: 'number',
1127
+ links: [
1128
+ {
1129
+ href: 'string',
1130
+ method: 'string',
1131
+ rel: 'string',
1132
+ type: 'string',
1133
+ uri: 'string'
1134
+ }
1135
+ ],
1136
+ name: 'string',
1137
+ start: 'number',
1138
+ version: 'number'
1139
+ }
1140
+ },
766
1141
  {
767
1142
  id: 'POST /SASLogon/oauth/token',
768
1143
  method: 'POST',
@@ -800,6 +1175,44 @@ exports.VIYA_TABLE = [
800
1175
  queries: ['limit'],
801
1176
  body: undefined
802
1177
  },
803
- shape: undefined
1178
+ shape: {
1179
+ accept: 'string',
1180
+ count: 'number',
1181
+ items: [
1182
+ {
1183
+ description: 'string',
1184
+ iconUri: 'string',
1185
+ label: 'string',
1186
+ links: [
1187
+ {
1188
+ href: 'string',
1189
+ method: 'string',
1190
+ rel: 'string',
1191
+ type: 'string',
1192
+ uri: 'string'
1193
+ }
1194
+ ],
1195
+ mediaType: 'string',
1196
+ name: 'string',
1197
+ resourceUri: 'string',
1198
+ tags: ['string'],
1199
+ version: 'number'
1200
+ }
1201
+ ],
1202
+ limit: 'number',
1203
+ links: [
1204
+ {
1205
+ href: 'string',
1206
+ itemType: 'string',
1207
+ method: 'string',
1208
+ rel: 'string',
1209
+ type: 'string',
1210
+ uri: 'string'
1211
+ }
1212
+ ],
1213
+ name: 'string',
1214
+ start: 'number',
1215
+ version: 'number'
1216
+ }
804
1217
  }
805
1218
  ];
@@ -32,27 +32,5 @@ exports.UNRECORDED = [
32
32
  {
33
33
  path: '/SASLogon/oauth/authorize',
34
34
  reason: 'no capture: the authorisation-code step needs a browser; the pass uses the password grant'
35
- },
36
- // Compute operations the scripted passes do not reach.
37
- {
38
- path: '/compute/sessions/{}/variables/{}',
39
- reason: "no capture: the adapter reads a session variable only to report a submitted job's pid (`printPid`), which the pass does not set"
40
- },
41
- {
42
- path: '/launcher/contexts',
43
- reason: 'no capture: the fallback list, asked for only when the compute context list fails; a healthy estate never reaches it'
44
- },
45
- // The job path needs something deployed to run.
46
- {
47
- path: '/jobDefinitions/definitions',
48
- 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'
49
- },
50
- {
51
- path: '/jobExecution/jobs',
52
- reason: 'no capture: needs a deployed service to submit. The next pass deploys a service pack under its own app folder'
53
- },
54
- {
55
- path: '/jobExecution/jobs/{}',
56
- reason: 'no capture: follows a submission, so it arrives with the same pass as POST /jobExecution/jobs'
57
35
  }
58
36
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/corpus/viya/operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,QAAQ;IACvB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,0EAA0E;IAC1E,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAA;IAChB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,WAAW,EAAE,QAAQ,EAunBjC,CAAA"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/corpus/viya/operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,QAAQ;IACvB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,0EAA0E;IAC1E,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAA;IAChB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,WAAW,EAAE,QAAQ,EAq7BjC,CAAA"}