File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import type {
10
10
AlertType ,
11
11
QuickstartAlertInput ,
12
12
} from '../types/QuickstartMutationVariable' ;
13
- import type { ArtifactAlertConfig } from '../types/Artifact' ;
13
+ import type { ArtifactAlertConfig , ArtifactAlertType } from '../types/Artifact' ;
14
14
import type { QuickstartConfigAlert } from '../types/QuickstartConfig' ;
15
15
import type { NerdGraphResponseWithLocalErrors } from '../types/nerdgraph' ;
16
16
@@ -159,7 +159,7 @@ class Alert extends Component<
159
159
displayName : name && name . trim ( ) ,
160
160
rawConfiguration : JSON . stringify ( condition ) ,
161
161
sourceUrl : Component . getAssetSourceUrl ( this . configPath ) ,
162
- type : type && ( type . trim ( ) as AlertType ) ,
162
+ type : type && ( type . trim ( ) . toLowerCase ( ) as ArtifactAlertType ) ,
163
163
} ;
164
164
} ) ;
165
165
Original file line number Diff line number Diff line change 218
218
"type" : " object" ,
219
219
"properties" : {
220
220
"type" : {
221
- "enum" : [" BASELINE " , " STATIC " ],
221
+ "enum" : [" baseline " , " static " ],
222
222
"type" : " string" ,
223
223
"nullable" : true
224
224
},
Original file line number Diff line number Diff line change @@ -87,14 +87,14 @@ export interface ArtifactDashboardConfig {
87
87
88
88
/* --- Alert --- */
89
89
90
- type AlertType = 'BASELINE ' | 'STATIC ' ;
90
+ export type ArtifactAlertType = 'baseline ' | 'static ' ;
91
91
92
92
type ArtifactAlert = {
93
93
description ?: string ;
94
94
displayName : string ;
95
95
rawConfiguration : string ;
96
96
sourceUrl ?: string ;
97
- type : AlertType ;
97
+ type : ArtifactAlertType ;
98
98
} ;
99
99
100
100
export interface ArtifactAlertConfig {
You can’t perform that action at this time.
0 commit comments