@@ -3,36 +3,16 @@ import {
33 ClientActions ,
44 TriggerType ,
55 PlayoutActions ,
6+ IBlueprintDefaultCoreSystemTriggersType ,
7+ IBlueprintDefaultCoreSystemTriggers ,
68} from '@sofie-automation/blueprints-integration'
79import { getHash , protectString , generateTranslation as t } from '../../lib/tempLib'
810import { TriggeredActionId } from '@sofie-automation/corelib/dist/dataModel/Ids'
911
1012let j = 0
1113
12- export enum IBlueprintDefaultCoreTriggersType {
13- toggleShelf = 'toggleShelf' ,
14- activateRundownPlaylist = 'activateRundownPlaylist' ,
15- activateRundownPlaylistRehearsal = 'activateRundownPlaylistRehearsal' ,
16- deactivateRundownPlaylist = 'deactivateRundownPlaylist' ,
17- take = 'take' ,
18- hold = 'hold' ,
19- holdUndo = 'holdUndo' ,
20- resetRundownPlaylist = 'resetRundownPlaylist' ,
21- disableNextPiece = 'disableNextPiece' ,
22- disableNextPieceUndo = 'disableNextPieceUndo' ,
23- createSnapshotForDebug = 'createSnapshotForDebug' ,
24- moveNextPart = 'moveNextPart' ,
25- moveNextSegment = 'moveNextSegment' ,
26- movePreviousPart = 'movePreviousPart' ,
27- movePreviousSegment = 'movePreviousSegment' ,
28- goToOnAirLine = 'goToOnAirLine' ,
29- rewindSegments = 'rewindSegments' ,
30- }
31-
32- export type IBlueprintDefaultCoreTriggers = { [ key in IBlueprintDefaultCoreTriggersType ] : IBlueprintTriggeredActions }
33-
34- export const DEFAULT_CORE_TRIGGERS : IBlueprintDefaultCoreTriggers = {
35- [ IBlueprintDefaultCoreTriggersType . toggleShelf ] : {
14+ export const DEFAULT_CORE_TRIGGERS : IBlueprintDefaultCoreSystemTriggers = {
15+ [ IBlueprintDefaultCoreSystemTriggersType . toggleShelf ] : {
3616 _id : 'core_toggleShelf' ,
3717 actions : {
3818 '0' : {
@@ -55,7 +35,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
5535 _rank : ++ j * 1000 ,
5636 name : t ( 'Toggle Shelf' ) ,
5737 } ,
58- [ IBlueprintDefaultCoreTriggersType . activateRundownPlaylist ] : {
38+ [ IBlueprintDefaultCoreSystemTriggersType . activateRundownPlaylist ] : {
5939 _id : 'core_activateRundownPlaylist' ,
6040 actions : {
6141 '0' : {
@@ -78,7 +58,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
7858 _rank : ++ j * 1000 ,
7959 name : t ( 'Activate (On-Air)' ) ,
8060 } ,
81- [ IBlueprintDefaultCoreTriggersType . activateRundownPlaylistRehearsal ] : {
61+ [ IBlueprintDefaultCoreSystemTriggersType . activateRundownPlaylistRehearsal ] : {
8262 _id : 'core_activateRundownPlaylist_rehearsal' ,
8363 actions : {
8464 '0' : {
@@ -101,7 +81,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
10181 _rank : ++ j * 1000 ,
10282 name : t ( 'Activate (Rehearsal)' ) ,
10383 } ,
104- [ IBlueprintDefaultCoreTriggersType . deactivateRundownPlaylist ] : {
84+ [ IBlueprintDefaultCoreSystemTriggersType . deactivateRundownPlaylist ] : {
10585 _id : 'core_deactivateRundownPlaylist' ,
10686 actions : {
10787 '0' : {
@@ -123,7 +103,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
123103 _rank : ++ j * 1000 ,
124104 name : t ( 'Deactivate' ) ,
125105 } ,
126- [ IBlueprintDefaultCoreTriggersType . take ] : {
106+ [ IBlueprintDefaultCoreSystemTriggersType . take ] : {
127107 _id : 'core_take' ,
128108 actions : {
129109 '0' : {
@@ -150,7 +130,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
150130 _rank : ++ j * 1000 ,
151131 name : t ( 'Take' ) ,
152132 } ,
153- [ IBlueprintDefaultCoreTriggersType . hold ] : {
133+ [ IBlueprintDefaultCoreSystemTriggersType . hold ] : {
154134 _id : 'core_hold' ,
155135 actions : {
156136 '0' : {
@@ -172,7 +152,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
172152 _rank : ++ j * 1000 ,
173153 name : t ( 'Hold' ) ,
174154 } ,
175- [ IBlueprintDefaultCoreTriggersType . holdUndo ] : {
155+ [ IBlueprintDefaultCoreSystemTriggersType . holdUndo ] : {
176156 _id : 'core_hold_undo' ,
177157 actions : {
178158 '0' : {
@@ -195,7 +175,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
195175 _rank : ++ j * 1000 ,
196176 name : t ( 'Undo Hold' ) ,
197177 } ,
198- [ IBlueprintDefaultCoreTriggersType . resetRundownPlaylist ] : {
178+ [ IBlueprintDefaultCoreSystemTriggersType . resetRundownPlaylist ] : {
199179 _id : 'core_reset_rundown_playlist' ,
200180 actions : {
201181 '0' : {
@@ -222,7 +202,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
222202 _rank : ++ j * 1000 ,
223203 name : t ( 'Reset Rundown' ) ,
224204 } ,
225- [ IBlueprintDefaultCoreTriggersType . disableNextPiece ] : {
205+ [ IBlueprintDefaultCoreSystemTriggersType . disableNextPiece ] : {
226206 _id : 'core_disable_next_piece' ,
227207 actions : {
228208 '0' : {
@@ -244,7 +224,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
244224 _rank : ++ j * 1000 ,
245225 name : t ( 'Disable the next element' ) ,
246226 } ,
247- [ IBlueprintDefaultCoreTriggersType . disableNextPieceUndo ] : {
227+ [ IBlueprintDefaultCoreSystemTriggersType . disableNextPieceUndo ] : {
248228 _id : 'core_disable_next_piece_undo' ,
249229 actions : {
250230 '0' : {
@@ -267,7 +247,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
267247 _rank : ++ j * 1000 ,
268248 name : t ( 'Undo Disable the next element' ) ,
269249 } ,
270- [ IBlueprintDefaultCoreTriggersType . createSnapshotForDebug ] : {
250+ [ IBlueprintDefaultCoreSystemTriggersType . createSnapshotForDebug ] : {
271251 _id : 'core_create_snapshot_for_debug' ,
272252 actions : {
273253 '0' : {
@@ -289,7 +269,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
289269 _rank : ++ j * 1000 ,
290270 name : t ( 'Store Snapshot' ) ,
291271 } ,
292- [ IBlueprintDefaultCoreTriggersType . moveNextPart ] : {
272+ [ IBlueprintDefaultCoreSystemTriggersType . moveNextPart ] : {
293273 _id : 'core_move_next_part' ,
294274 actions : {
295275 '0' : {
@@ -313,7 +293,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
313293 _rank : ++ j * 1000 ,
314294 name : t ( 'Move Next forwards' ) ,
315295 } ,
316- [ IBlueprintDefaultCoreTriggersType . moveNextSegment ] : {
296+ [ IBlueprintDefaultCoreSystemTriggersType . moveNextSegment ] : {
317297 _id : 'core_move_next_segment' ,
318298 actions : {
319299 '0' : {
@@ -337,7 +317,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
337317 _rank : ++ j * 1000 ,
338318 name : t ( 'Move Next to the following segment' ) ,
339319 } ,
340- [ IBlueprintDefaultCoreTriggersType . movePreviousPart ] : {
320+ [ IBlueprintDefaultCoreSystemTriggersType . movePreviousPart ] : {
341321 _id : 'core_move_previous_part' ,
342322 actions : {
343323 '0' : {
@@ -361,7 +341,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
361341 _rank : ++ j * 1000 ,
362342 name : t ( 'Move Next backwards' ) ,
363343 } ,
364- [ IBlueprintDefaultCoreTriggersType . movePreviousSegment ] : {
344+ [ IBlueprintDefaultCoreSystemTriggersType . movePreviousSegment ] : {
365345 _id : 'core_move_previous_segment' ,
366346 actions : {
367347 '0' : {
@@ -385,7 +365,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
385365 _rank : ++ j * 1000 ,
386366 name : t ( 'Move Next to the previous segment' ) ,
387367 } ,
388- [ IBlueprintDefaultCoreTriggersType . goToOnAirLine ] : {
368+ [ IBlueprintDefaultCoreSystemTriggersType . goToOnAirLine ] : {
389369 _id : 'core_go_to_onAir_line' ,
390370 actions : {
391371 '0' : {
@@ -407,7 +387,7 @@ export const DEFAULT_CORE_TRIGGERS: IBlueprintDefaultCoreTriggers = {
407387 _rank : ++ j * 1000 ,
408388 name : t ( 'Go to On Air line' ) ,
409389 } ,
410- [ IBlueprintDefaultCoreTriggersType . rewindSegments ] : {
390+ [ IBlueprintDefaultCoreSystemTriggersType . rewindSegments ] : {
411391 _id : 'core_rewind_segments' ,
412392 actions : {
413393 '0' : {
0 commit comments