diff --git a/packages/cli/__tests__/zosjobs/__resources__/GetJobsData.ts b/packages/cli/__tests__/zosjobs/__resources__/GetJobsData.ts index 56a1fe3f59..1bb395ed13 100644 --- a/packages/cli/__tests__/zosjobs/__resources__/GetJobsData.ts +++ b/packages/cli/__tests__/zosjobs/__resources__/GetJobsData.ts @@ -27,6 +27,11 @@ export class GetJobsData { public static readonly SAMPLE_COMPLETE_JOB: IJob = { "jobid": "TSUxxx", "jobname": "IBMUSER$", + "exec-started": '2024-01-02T15:57:58.350Z', + "exec-ended": '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z', "subsystem": "JES2", "owner": "IBMUSER", "status": "OUTPUT", @@ -49,6 +54,11 @@ export class GetJobsData { public static readonly SAMPLE_COMPLETE_JOB_AGAIN: IJob = { "jobid": "JOBxxx", "jobname": "CAUSER$", + "exec-started": '2024-01-02T15:57:58.350Z', + "exec-ended": '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z', "subsystem": "JES2", "owner": "CAUSER", "status": "OUTPUT", @@ -79,6 +89,11 @@ export class GetJobsData { public static readonly SAMPLE_ACTIVE_JOB: IJob = { "retcode": null, "jobname": "KELDA16$", + "exec-started": '2024-01-02T15:57:58.350Z', + "exec-ended": '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z', "status": "INPUT", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "class": "A", diff --git a/packages/cli/__tests__/zosjobs/__unit__/cancel/job/__snapshots__/Job.handler.unit.test.ts.snap b/packages/cli/__tests__/zosjobs/__unit__/cancel/job/__snapshots__/Job.handler.unit.test.ts.snap index a2ca50e52b..14675179cb 100644 --- a/packages/cli/__tests__/zosjobs/__unit__/cancel/job/__snapshots__/Job.handler.unit.test.ts.snap +++ b/packages/cli/__tests__/zosjobs/__unit__/cancel/job/__snapshots__/Job.handler.unit.test.ts.snap @@ -7,6 +7,11 @@ exports[`cancel job handler tests should be able to cancel a job by job id 2`] = exports[`cancel job handler tests should be able to cancel a job by job id 3`] = ` Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -29,6 +34,11 @@ exports[`cancel job handler tests should be able to cancel a job by job id versi exports[`cancel job handler tests should be able to cancel a job by job id version 2.0 3`] = ` Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", diff --git a/packages/cli/__tests__/zosjobs/__unit__/delete/job/__snapshots__/Job.handler.unit.test.ts.snap b/packages/cli/__tests__/zosjobs/__unit__/delete/job/__snapshots__/Job.handler.unit.test.ts.snap index 520ed858b3..240d19e4d6 100644 --- a/packages/cli/__tests__/zosjobs/__unit__/delete/job/__snapshots__/Job.handler.unit.test.ts.snap +++ b/packages/cli/__tests__/zosjobs/__unit__/delete/job/__snapshots__/Job.handler.unit.test.ts.snap @@ -7,6 +7,11 @@ exports[`delete job handler tests should be able to delete a job by job id 2`] = exports[`delete job handler tests should be able to delete a job by job id 3`] = ` Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -29,6 +34,11 @@ exports[`delete job handler tests should be able to delete a job by job id versi exports[`delete job handler tests should be able to delete a job by job id version 2.0 3`] = ` Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", diff --git a/packages/cli/__tests__/zosjobs/__unit__/delete/old-jobs/__snapshots__/OldJobs.handler.unit.test.ts.snap b/packages/cli/__tests__/zosjobs/__unit__/delete/old-jobs/__snapshots__/OldJobs.handler.unit.test.ts.snap index 5a8b586a63..3a0dd3c904 100644 --- a/packages/cli/__tests__/zosjobs/__unit__/delete/old-jobs/__snapshots__/OldJobs.handler.unit.test.ts.snap +++ b/packages/cli/__tests__/zosjobs/__unit__/delete/old-jobs/__snapshots__/OldJobs.handler.unit.test.ts.snap @@ -13,6 +13,11 @@ Object { "output": Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -28,6 +33,11 @@ Object { }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -51,6 +61,11 @@ exports[`delete old-jobs handler tests should delete all jobs using defaults in Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -66,6 +81,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -95,6 +115,11 @@ Object { "output": Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -110,6 +135,11 @@ Object { }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -133,6 +163,11 @@ exports[`delete old-jobs handler tests should delete all jobs using defaults seq Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -148,6 +183,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -177,6 +217,11 @@ Object { "output": Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -192,6 +237,11 @@ Object { }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -215,6 +265,11 @@ exports[`delete old-jobs handler tests should delete jobs with a specific prefix Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -230,6 +285,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -259,6 +319,11 @@ Object { "output": Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -274,6 +339,11 @@ Object { }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -297,6 +367,11 @@ exports[`delete old-jobs handler tests should delete jobs with modifyVersion 2.0 Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -312,6 +387,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", diff --git a/packages/cli/__tests__/zosjobs/__unit__/list/jobs/__snapshots__/Jobs.handler.unit.test.ts.snap b/packages/cli/__tests__/zosjobs/__unit__/list/jobs/__snapshots__/Jobs.handler.unit.test.ts.snap index a1b05c64c4..21f22a85a1 100644 --- a/packages/cli/__tests__/zosjobs/__unit__/list/jobs/__snapshots__/Jobs.handler.unit.test.ts.snap +++ b/packages/cli/__tests__/zosjobs/__unit__/list/jobs/__snapshots__/Jobs.handler.unit.test.ts.snap @@ -4,6 +4,11 @@ exports[`list jobs handler tests should be able to get a list of jobs for a spec Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -19,6 +24,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -49,6 +59,11 @@ Object { "output": Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -64,6 +79,11 @@ Object { }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -85,6 +105,11 @@ exports[`list jobs handler tests should be able to get a list of jobs for a spec Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -100,6 +125,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -130,6 +160,11 @@ Object { "output": Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -145,6 +180,11 @@ Object { }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -166,6 +206,11 @@ exports[`list jobs handler tests should be able to get a list of jobs using defa Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -181,6 +226,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", @@ -211,6 +261,11 @@ Object { "output": Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -226,6 +281,11 @@ Object { }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "JOBxxx", diff --git a/packages/cli/__tests__/zosjobs/__unit__/modify/job/Job.handler.unit.test.ts b/packages/cli/__tests__/zosjobs/__unit__/modify/job/Job.handler.unit.test.ts index b703740e85..afe417b4ee 100644 --- a/packages/cli/__tests__/zosjobs/__unit__/modify/job/Job.handler.unit.test.ts +++ b/packages/cli/__tests__/zosjobs/__unit__/modify/job/Job.handler.unit.test.ts @@ -39,6 +39,11 @@ const SAMPLE_COMPLETE_JOB: IJob= { "subsystem": "JES2", "type": "JOB", "url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A", + "exec-started": '2024-01-02T15:57:58.350Z', + "exec-ended": '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z' }; const SUCCESS_FEEDBACK: IJobFeedback = { diff --git a/packages/cli/__tests__/zosjobs/__unit__/view/job/__snapshots__/JobStatusByJobid.handler.unit.test.ts.snap b/packages/cli/__tests__/zosjobs/__unit__/view/job/__snapshots__/JobStatusByJobid.handler.unit.test.ts.snap index c41d29f992..a9e6fb30eb 100644 --- a/packages/cli/__tests__/zosjobs/__unit__/view/job/__snapshots__/JobStatusByJobid.handler.unit.test.ts.snap +++ b/packages/cli/__tests__/zosjobs/__unit__/view/job/__snapshots__/JobStatusByJobid.handler.unit.test.ts.snap @@ -5,6 +5,11 @@ exports[`view job-status-by-jobid handler tests should be able respond with erro exports[`view job-status-by-jobid handler tests should be able to get a job 1`] = ` Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -33,6 +38,11 @@ Object { "format": "object", "output": Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", diff --git a/packages/zosjobs/CHANGELOG.md b/packages/zosjobs/CHANGELOG.md index 899dbad608..efed2c155e 100644 --- a/packages/zosjobs/CHANGELOG.md +++ b/packages/zosjobs/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to the Zowe z/OS jobs SDK package will be documented in this file. +## Recent Changes +- Enhancement: Added execData to IJob return data from GetJobs.getJob [#2320](https://github.com/zowe/zowe-cli/pull/2320) + ## `8.1.1` - BugFix: Updated peer dependencies to `^8.0.0`, dropping support for versions tagged `next`. [#2287](https://github.com/zowe/zowe-cli/pull/2287) diff --git a/packages/zosjobs/__tests__/__resources__/api/GetJobsData.ts b/packages/zosjobs/__tests__/__resources__/api/GetJobsData.ts index 645c347331..144f9b8d85 100644 --- a/packages/zosjobs/__tests__/__resources__/api/GetJobsData.ts +++ b/packages/zosjobs/__tests__/__resources__/api/GetJobsData.ts @@ -29,6 +29,11 @@ export class GetJobsData { public static readonly SAMPLE_COMPLETE_JOB: IJob = { "jobid": "TSUxxx", "jobname": "IBMUSER$", + "exec-started": '2024-01-02T15:57:58.350Z', + "exec-ended": '2024-01-02T15:58:00.600Z', + "exec-submitted": '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', "subsystem": "JES2", "owner": "IBMUSER", "status": "OUTPUT", @@ -51,6 +56,11 @@ export class GetJobsData { public static readonly SAMPLE_COMPLETE_JOB_AGAIN: IJob = { "jobid": "JOBxxx", "jobname": "CAUSER$", + "exec-started": '2024-01-02T15:57:58.350Z', + "exec-ended": '2024-01-02T15:58:00.600Z', + "exec-submitted": '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', "subsystem": "JES2", "owner": "CAUSER", "status": "OUTPUT", @@ -81,6 +91,11 @@ export class GetJobsData { public static readonly SAMPLE_ACTIVE_JOB: IJob = { "retcode": null, "jobname": "IBMUSER$", + "exec-started": '2024-01-02T15:57:58.350Z', + "exec-ended": '2024-01-02T15:58:00.600Z', + "exec-submitted": '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', "status": "INPUT", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "class": "A", diff --git a/packages/zosjobs/__tests__/__unit__/CancelJobs.unit.test.ts b/packages/zosjobs/__tests__/__unit__/CancelJobs.unit.test.ts index 8d19923dc9..655555e852 100644 --- a/packages/zosjobs/__tests__/__unit__/CancelJobs.unit.test.ts +++ b/packages/zosjobs/__tests__/__unit__/CancelJobs.unit.test.ts @@ -40,7 +40,12 @@ describe("Cancel Jobs unit tests", () => { "files-url": "myfakeurl.com/files/records", "phase": 2, "phase-name": "OUTPUT", - "job-correlator": "mycorrelator" + "job-correlator": "mycorrelator", + "exec-started": '2024-01-02T15:57:58.350Z', + "exec-ended": '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z' }; describe("Positive tests", () => { it("should allow users to call cancelJob with correct parameters", async () => { diff --git a/packages/zosjobs/__tests__/__unit__/DeleteJobs.unit.test.ts b/packages/zosjobs/__tests__/__unit__/DeleteJobs.unit.test.ts index c28a5c0015..d6bf063145 100644 --- a/packages/zosjobs/__tests__/__unit__/DeleteJobs.unit.test.ts +++ b/packages/zosjobs/__tests__/__unit__/DeleteJobs.unit.test.ts @@ -31,6 +31,8 @@ describe("Delete Jobs unit tests", () => { const fakeJob: IJob = { "jobid": "JOB00001", "jobname": "MYJOB1", + "exec-started": '2024-01-02T15:57:58.350Z', + "exec-ended": '2024-01-02T15:58:00.600Z', "retcode": "CC 0000", "owner": "dummy", "subsystem": "JES2", @@ -41,7 +43,10 @@ describe("Delete Jobs unit tests", () => { "files-url": "myfakeurl.com/files/records", "phase": 2, "phase-name": "OUTPUT", - "job-correlator": "mycorrelator" + "job-correlator": "mycorrelator", + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z' }; describe("Positive tests", () => { diff --git a/packages/zosjobs/__tests__/__unit__/GetJobs.unit.test.ts b/packages/zosjobs/__tests__/__unit__/GetJobs.unit.test.ts index f8a0e3138d..3f66dc74d7 100644 --- a/packages/zosjobs/__tests__/__unit__/GetJobs.unit.test.ts +++ b/packages/zosjobs/__tests__/__unit__/GetJobs.unit.test.ts @@ -596,21 +596,37 @@ describe("GetJobs tests", () => { owner: 'zowe', status: 'active', type: 't', class: 'c', retcode: 'r', url: '', 'files-url': '', 'job-correlator': '', - phase: 1, 'phase-name': 'name', 'reason-not-running': 'no' + phase: 1, 'phase-name': 'name', 'reason-not-running': 'no', + 'exec-started': '2024-01-02T15:57:58.350Z', + 'exec-ended': '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z' }, { jobid: '2', jobname: 'b', subsystem: 'sub', owner: 'zowe', status: 'Output', type: 't', class: 'c', retcode: 'r', url: '', 'files-url': '', 'job-correlator': '', - phase: 1, 'phase-name': 'name', 'reason-not-running': 'no' + phase: 1, 'phase-name': 'name', 'reason-not-running': 'no', + 'exec-started': '2024-01-02T15:57:58.350Z', + 'exec-ended': '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z' }, { jobid: '3', jobname: 'c', subsystem: 'sub', owner: 'kri', status: 'Output', type: 't', class: 'c', retcode: 'r', url: '', 'files-url': '', 'job-correlator': '', - phase: 1, 'phase-name': 'name', 'reason-not-running': 'no' + phase: 1, 'phase-name': 'name', 'reason-not-running': 'no', + 'exec-started': '2024-01-02T15:57:58.350Z', + 'exec-ended': '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z' + } ]; const expectedJobs = [ @@ -619,14 +635,24 @@ describe("GetJobs tests", () => { owner: 'zowe', status: 'Output', type: 't', class: 'c', retcode: 'r', url: '', 'files-url': '', 'job-correlator': '', - phase: 1, 'phase-name': 'name', 'reason-not-running': 'no' + phase: 1, 'phase-name': 'name', 'reason-not-running': 'no', + 'exec-started': '2024-01-02T15:57:58.350Z', + 'exec-ended': '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z' }, { jobid: '3', jobname: 'c', subsystem: 'sub', owner: 'kri', status: 'Output', type: 't', class: 'c', retcode: 'r', url: '', 'files-url': '', 'job-correlator': '', - phase: 1, 'phase-name': 'name', 'reason-not-running': 'no' + phase: 1, 'phase-name': 'name', 'reason-not-running': 'no', + 'exec-started': '2024-01-02T15:57:58.350Z', + 'exec-ended': '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z' } ]; const filteredResults = GetJobs['filterResultsByStatuses'](jobs, { status: 'OUTPUT', owner: 'zowe' }); diff --git a/packages/zosjobs/__tests__/__unit__/SubmitJobs.unit.test.ts b/packages/zosjobs/__tests__/__unit__/SubmitJobs.unit.test.ts index 55d6257d1c..da4305381a 100644 --- a/packages/zosjobs/__tests__/__unit__/SubmitJobs.unit.test.ts +++ b/packages/zosjobs/__tests__/__unit__/SubmitJobs.unit.test.ts @@ -27,6 +27,7 @@ const expectedMockSpoolContent = "Hello! This is my spool content."; const jobFiles: IJobFile[] = [{ "jobid": fakeJobID, "jobname": fakeJobName, + "id": 0, "recfm": "FB", "lrecl": 80, @@ -44,6 +45,11 @@ const sampleJob: IJob = { "jobid": fakeJobID, "jobname": fakeJobName, "subsystem": "JES2", + "exec-started": '2024-01-02T15:57:58.350Z', + "exec-ended": '2024-01-02T15:58:00.600Z', + "exec-member": 'SYS1', + "exec-system": 'SYS1', + "exec-submitted": '2024-01-02T15:58:00.600Z', "owner": "IBMUSER", "status": "OUTPUT", "type": "job", diff --git a/packages/zosjobs/__tests__/__unit__/__snapshots__/GetJobs.unit.test.ts.snap b/packages/zosjobs/__tests__/__unit__/__snapshots__/GetJobs.unit.test.ts.snap index a8c7fff252..f9d948a744 100644 --- a/packages/zosjobs/__tests__/__unit__/__snapshots__/GetJobs.unit.test.ts.snap +++ b/packages/zosjobs/__tests__/__unit__/__snapshots__/GetJobs.unit.test.ts.snap @@ -14,6 +14,11 @@ exports[`GetJobs tests getJobs APIs should allow getting jobs by common method w Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -29,6 +34,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -49,6 +59,11 @@ exports[`GetJobs tests getJobs APIs should allow getting jobs by common method w Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -64,6 +79,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -84,6 +104,11 @@ exports[`GetJobs tests getJobs APIs should get a list of jobs from getJobs and g Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -99,6 +124,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -119,6 +149,11 @@ exports[`GetJobs tests getJobs APIs should get a list of jobs from getJobs and g Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -134,6 +169,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -154,6 +194,11 @@ exports[`GetJobs tests getJobs APIs should get a list of jobs from getJobsCommon Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -169,6 +214,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -189,6 +239,11 @@ exports[`GetJobs tests getJobs APIs should get a list of jobs from getJobsCommon Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -204,6 +259,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -224,6 +284,11 @@ exports[`GetJobs tests getJobs APIs should get a list of jobs from getJobsCommon Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -239,6 +304,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -259,6 +329,11 @@ exports[`GetJobs tests getJobs APIs should get a list of jobs from getJobsCommon Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -274,6 +349,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -294,6 +374,11 @@ exports[`GetJobs tests getJobs APIs should get jobs by owner 1`] = ` Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -309,6 +394,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -329,6 +419,11 @@ exports[`GetJobs tests getJobs APIs should get jobs by owner and prefix 1`] = ` Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -344,6 +439,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -364,6 +464,11 @@ exports[`GetJobs tests getJobs APIs should get jobs by prefix 1`] = ` Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -379,6 +484,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -416,6 +526,11 @@ exports[`GetJobs tests getJobs APIs should have proper URI when using status 1`] exports[`GetJobs tests getJobs APIs should locate a job by jobid 1`] = ` Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -445,6 +560,11 @@ exports[`GetJobs tests getJobsByParameters should get jobs even when no params a Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -460,6 +580,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -480,6 +605,11 @@ exports[`GetJobs tests getJobsByParameters should get jobs when any of the valid Array [ Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -495,6 +625,11 @@ Array [ }, Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "https://tso1:443/zosmf/restjobs/jobs/J0003781USILDAMDD3CE8146.......%3A/files", "job-correlator": "J0003781USILDAMDD3CE8146.......:", "jobid": "JOB03781", @@ -693,6 +828,11 @@ exports[`GetJobs tests getSpoolFiles APIs should have proper URI when getting sp exports[`GetJobs tests getStatus APIs should get a job via getStatus and getStatusCommon 1`] = ` Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", @@ -711,6 +851,11 @@ Object { exports[`GetJobs tests getStatus APIs should get a job via getStatus and getStatusCommon 2`] = ` Object { "class": "A", + "exec-ended": "2024-01-02T15:58:00.600Z", + "exec-member": "SYS1", + "exec-started": "2024-01-02T15:57:58.350Z", + "exec-submitted": "2024-01-02T15:58:00.600Z", + "exec-system": "SYS1", "files-url": "www.nowhere.com/restjobs/jobs/files", "job-correlator": "123545asdfadf", "jobid": "TSUxxx", diff --git a/packages/zosjobs/src/GetJobs.ts b/packages/zosjobs/src/GetJobs.ts index 5cefdfc953..4e7c510f12 100644 --- a/packages/zosjobs/src/GetJobs.ts +++ b/packages/zosjobs/src/GetJobs.ts @@ -194,6 +194,7 @@ export class GetJobs { } } + let resource = JobsConstants.RESOURCE; resource += query === JobsConstants.QUERY_ID ? "" : query; Logger.getAppLogger().info("GetJobs.getJobsCommon() resource: " + resource); diff --git a/packages/zosjobs/src/doc/response/IJob.ts b/packages/zosjobs/src/doc/response/IJob.ts index 46e00be949..d181827b77 100644 --- a/packages/zosjobs/src/doc/response/IJob.ts +++ b/packages/zosjobs/src/doc/response/IJob.ts @@ -34,6 +34,41 @@ export interface IJob { */ jobname: string; + /** + * start date of the job + * @type {Date} + * @memberof IJob + */ + "exec-started"?: string; + + /** + * end date of the job + * @type {Date} + * @memberof IJob + */ + "exec-ended"?: string; + + /** + * exec-member + * @type {string} + * @memberof IJob + */ + "exec-member"?: string; + + /** + * exec-submitted + * @type {Date} + * @memberof IJob + */ + "exec-submitted"?: string; + + /** + * exec-system + * @type {String} + * @memberof IJob + */ + "exec-system"?: string; + /** * The primary or secondary JES subsystem. * If this value is null, the job was processed by the primary subsystem.