@circleci/circleci-config-sdk
Advanced tools
Comparing version 0.9.0-alpha.6 to 0.9.0-alpha.7
import { Generable } from '../..'; | ||
import { GenerableType } from '../../../Config/exports/Mapping'; | ||
import { Command } from '../../Commands/exports/Command'; | ||
import { Job } from '../../Job'; | ||
@@ -38,3 +39,3 @@ import { When } from '../../Logic'; | ||
*/ | ||
addJob(job: Job, parameters?: WorkflowJobParameters): this; | ||
addJob(job: Job, parameters?: WorkflowJobParameters, pre_steps?: Command[], post_steps?: Command[]): this; | ||
/** | ||
@@ -41,0 +42,0 @@ * Add a Approval to the current Workflow. Chainable |
import { OrbRef } from '../../../Orb/exports/OrbRef'; | ||
import { Job } from '../../Job'; | ||
import { StepsParameter } from '../../Parameters/types'; | ||
import { JobParameterLiteral } from '../../Parameters/types/CustomParameterLiterals.types'; | ||
import { WorkflowJobParameters, WorkflowJobShape } from '../types/WorkflowJob.types'; | ||
import { WorkflowJobContentsShape, WorkflowJobParameters, WorkflowJobShape } from '../types/WorkflowJob.types'; | ||
import { WorkflowJobAbstract } from './WorkflowJobAbstract'; | ||
@@ -14,6 +15,10 @@ /** | ||
job: Job | OrbRef<JobParameterLiteral>; | ||
constructor(job: Job | OrbRef<JobParameterLiteral>, parameters?: Exclude<WorkflowJobParameters, 'type'>); | ||
pre_steps?: StepsParameter; | ||
post_steps?: StepsParameter; | ||
constructor(job: Job | OrbRef<JobParameterLiteral>, parameters?: Exclude<WorkflowJobParameters, 'type'>, pre_steps?: StepsParameter, post_steps?: StepsParameter); | ||
generate(flatten?: boolean): WorkflowJobShape; | ||
generateContents(flatten?: boolean): WorkflowJobContentsShape; | ||
get name(): string; | ||
private generateSteps; | ||
} | ||
//# sourceMappingURL=WorkflowJob.d.ts.map |
@@ -15,3 +15,2 @@ import { GenerableType } from '../../../Config/exports/Mapping'; | ||
get generableType(): GenerableType; | ||
private generateSteps; | ||
abstract get name(): string; | ||
@@ -18,0 +17,0 @@ abstract generate(flatten?: boolean): WorkflowJobShape; |
@@ -20,2 +20,4 @@ import { AnyConditionShape } from '../../Logic/types'; | ||
}; | ||
'pre-steps'?: unknown[]; | ||
'post-steps'?: unknown[]; | ||
name?: string; | ||
@@ -22,0 +24,0 @@ type?: 'approval'; |
@@ -1,4 +0,4 @@ | ||
import { FilterParameter, ListParameter, MatrixParameter, StepsParameter, StringParameter } from '../../Parameters/types'; | ||
import { AnyCommandShape } from '../../Commands/types/Command.types'; | ||
import { FilterParameter, ListParameter, MatrixParameter, StringParameter } from '../../Parameters/types'; | ||
import { ComponentParameter, JobParameterTypes } from '../../Parameters/types/ComponentParameters.types'; | ||
import { AnyCommandShape } from '../../Commands/types/Command.types'; | ||
/** | ||
@@ -27,4 +27,2 @@ * CircleCI provided parameters for all workflow jobs | ||
type?: approval; | ||
pre_steps?: StepsParameter; | ||
post_steps?: StepsParameter; | ||
} | ||
@@ -31,0 +29,0 @@ export declare type approval = 'approval'; |
{ | ||
"name": "@circleci/circleci-config-sdk", | ||
"version": "v0.9.0-alpha.6", | ||
"version": "v0.9.0-alpha.7", | ||
"description": "An SDK for building CircleCI Configuration files with JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/circleci-config-sdk.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
2698464
20370