mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 03:28:33 -05:00
Agent - Last step quit with success (#6034)
* turn strings to enums and allow changing step completion action * fixed edit * added tests for agent enums and fixed cms tests
This commit is contained in:
28
src/sql/azdata.proposed.d.ts
vendored
28
src/sql/azdata.proposed.d.ts
vendored
@@ -1402,16 +1402,38 @@ declare module 'azdata' {
|
||||
stepDetails: AgentJobStepInfo;
|
||||
}
|
||||
|
||||
export enum AgentSubSystem {
|
||||
TransactSql = 1,
|
||||
ActiveScripting = 2,
|
||||
CmdExec = 3,
|
||||
Snapshot = 4,
|
||||
LogReader = 5,
|
||||
Distribution = 6,
|
||||
Merge = 7,
|
||||
QueueReader = 8,
|
||||
AnalysisQuery = 9,
|
||||
AnalysisCommands = 10,
|
||||
Ssis = 11,
|
||||
PowerShell = 12
|
||||
}
|
||||
|
||||
export enum StepCompletionAction {
|
||||
QuitWithSuccess = 1,
|
||||
QuitWithFailure = 2,
|
||||
GoToNextStep = 3,
|
||||
GoToStep = 4
|
||||
}
|
||||
|
||||
export interface AgentJobStepInfo {
|
||||
jobId: string;
|
||||
jobName: string;
|
||||
script: string;
|
||||
scriptName: string;
|
||||
stepName: string;
|
||||
subSystem: string;
|
||||
subSystem: AgentSubSystem;
|
||||
id: number;
|
||||
failureAction: string;
|
||||
successAction: string;
|
||||
failureAction: StepCompletionAction;
|
||||
successAction: StepCompletionAction;
|
||||
failStepId: number;
|
||||
successStepId: number;
|
||||
command: string;
|
||||
|
||||
@@ -169,6 +169,28 @@ export enum ModelComponentTypes {
|
||||
Hyperlink
|
||||
}
|
||||
|
||||
export enum AgentSubSystem {
|
||||
TransactSql = 1,
|
||||
ActiveScripting = 2,
|
||||
CmdExec = 3,
|
||||
Snapshot = 4,
|
||||
LogReader = 5,
|
||||
Distribution = 6,
|
||||
Merge = 7,
|
||||
QueueReader = 8,
|
||||
AnalysisQuery = 9,
|
||||
AnalysisCommands = 10,
|
||||
Ssis = 11,
|
||||
PowerShell = 12
|
||||
}
|
||||
|
||||
export enum StepCompletionAction {
|
||||
QuitWithSuccess = 1,
|
||||
QuitWithFailure = 2,
|
||||
GoToNextStep = 3,
|
||||
GoToStep = 4
|
||||
}
|
||||
|
||||
export interface IComponentShape {
|
||||
type: ModelComponentTypes;
|
||||
id: string;
|
||||
|
||||
@@ -551,6 +551,8 @@ export function createApiFactory(
|
||||
SchemaObjectType: sqlExtHostTypes.SchemaObjectType,
|
||||
ColumnType: sqlExtHostTypes.ColumnType,
|
||||
ActionOnCellCheckboxCheck: sqlExtHostTypes.ActionOnCellCheckboxCheck,
|
||||
StepCompletionAction: sqlExtHostTypes.StepCompletionAction,
|
||||
AgentSubSystem: sqlExtHostTypes.AgentSubSystem
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user