diff --git a/src/handler.ts b/src/handler.ts index 0736d518..175d6941 100644 --- a/src/handler.ts +++ b/src/handler.ts @@ -9,6 +9,25 @@ export class SchedulerService { options.serverSettings || ServerConnection.makeSettings(); } + async getJobDefinition( + definition_id: string + ): Promise { + let data; + + try { + data = await requestAPI( + this.serverSettings, + `job_definitions/${definition_id}`, + { + method: 'GET' + } + ); + } catch (e: any) { + console.error(e); + } + return data as Scheduler.IDescribeJobDefinition; + } + async getJobDefinitions( definition_id: string ): Promise {