@mcma/core
Advanced tools
Comparing version 0.13.28 to 0.13.29
@@ -1,2 +0,2 @@ | ||
import { JobParameterBag } from "./job-parameter-bag"; | ||
import { JobParameterBag, JobParameterBagProperties } from "./job-parameter-bag"; | ||
import { McmaResource, McmaResourceProperties } from "./mcma-resource"; | ||
@@ -8,3 +8,3 @@ import { ProblemDetail, ProblemDetailProperties } from "./problem-detail"; | ||
error?: ProblemDetailProperties; | ||
jobOutput?: JobParameterBag; | ||
jobOutput?: JobParameterBagProperties; | ||
progress?: number; | ||
@@ -11,0 +11,0 @@ } |
@@ -1,4 +0,7 @@ | ||
import { McmaObject } from "./mcma-object"; | ||
export declare class JobParameterBag extends McmaObject { | ||
import { McmaObject, McmaObjectProperties } from "./mcma-object"; | ||
export interface JobParameterBagProperties extends McmaObjectProperties { | ||
[key: string]: any; | ||
} | ||
export declare class JobParameterBag extends McmaObject implements JobParameterBagProperties { | ||
[key: string]: any; | ||
constructor(properties?: { | ||
@@ -5,0 +8,0 @@ [key: string]: any; |
import { McmaResource, McmaResourceProperties } from "./mcma-resource"; | ||
import { JobParameter } from "./job-parameter"; | ||
import { JobParameter, JobParameterProperties } from "./job-parameter"; | ||
export interface JobProfileProperties extends McmaResourceProperties { | ||
name: string; | ||
inputParameters?: JobParameter[]; | ||
outputParameters?: JobParameter[]; | ||
optionalInputParameters?: JobParameter[]; | ||
inputParameters?: JobParameterProperties[]; | ||
outputParameters?: JobParameterProperties[]; | ||
optionalInputParameters?: JobParameterProperties[]; | ||
} | ||
@@ -9,0 +9,0 @@ export declare class JobProfile extends McmaResource implements JobProfileProperties { |
@@ -5,2 +5,3 @@ "use strict"; | ||
const mcma_resource_1 = require("./mcma-resource"); | ||
const job_parameter_1 = require("./job-parameter"); | ||
class JobProfile extends mcma_resource_1.McmaResource { | ||
@@ -13,5 +14,13 @@ constructor(properties) { | ||
this.checkProperty("optionalInputParameters", "Array", false); | ||
this.checkProperty("customProperties", "object", false); | ||
if (Array.isArray(this.inputParameters)) { | ||
this.inputParameters = this.inputParameters.map(ip => new job_parameter_1.JobParameter(ip)); | ||
} | ||
if (Array.isArray(this.optionalInputParameters)) { | ||
this.optionalInputParameters = this.optionalInputParameters.map(ip => new job_parameter_1.JobParameter(ip)); | ||
} | ||
if (Array.isArray(this.outputParameters)) { | ||
this.outputParameters = this.outputParameters.map(ip => new job_parameter_1.JobParameter(ip)); | ||
} | ||
} | ||
} | ||
exports.JobProfile = JobProfile; |
import { JobBase, JobBaseProperties } from "../job-base"; | ||
import { JobParameterBag } from "../job-parameter-bag"; | ||
import { JobParameterBag, JobParameterBagProperties } from "../job-parameter-bag"; | ||
import { McmaTracker, McmaTrackerProperties } from "../mcma-tracker"; | ||
@@ -8,3 +8,3 @@ import { NotificationEndpoint, NotificationEndpointProperties } from "../notification-endpoint"; | ||
jobProfileId: string; | ||
jobInput?: JobParameterBag; | ||
jobInput?: JobParameterBagProperties; | ||
timeout?: number; | ||
@@ -11,0 +11,0 @@ deadline?: Date | string; |
{ | ||
"name": "@mcma/core", | ||
"version": "0.13.28", | ||
"version": "0.13.29", | ||
"description": "Node module with type definitions and helper utils for the EBU MCMA framework", | ||
@@ -5,0 +5,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50592
1274