Skip to content

Commit b13d6aa

Browse files
committed
chore: regenerate types
1 parent d392594 commit b13d6aa

File tree

2 files changed

+55
-43
lines changed

2 files changed

+55
-43
lines changed

packages/live-status-gateway-api/src/generated/schema.ts

Lines changed: 48 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ interface ActivePlaylistEvent {
130130
* Optional arbitrary data
131131
*/
132132
'publicData'?: any;
133-
/**
134-
* Information about the current quickLoop, if any
135-
*/
136-
'quickLoop'?: ActivePlaylistQuickLoop;
137133
/**
138134
* Timing information about the active playlist
139135
*/
140136
'timing': ActivePlaylistTiming;
137+
/**
138+
* Information about the current quickLoop, if any
139+
*/
140+
'quickLoop'?: ActivePlaylistQuickLoop;
141141
}
142142

143143
interface CurrentPartStatus {
@@ -288,6 +288,41 @@ interface PartStatus {
288288
'additionalProperties'?: Record<string, any>;
289289
}
290290

291+
/**
292+
* Timing information about the active playlist
293+
*/
294+
interface ActivePlaylistTiming {
295+
/**
296+
* Timing mode for the playlist.
297+
*/
298+
'timingMode': ActivePlaylistTimingMode;
299+
/**
300+
* Unix timestamp of when the playlist started (milliseconds)
301+
*/
302+
'startedPlayback'?: number;
303+
/**
304+
* Unix timestamp of when the playlist is expected to start (milliseconds). Required when the timingMode is set to forward-time.
305+
*/
306+
'expectedStart'?: number;
307+
/**
308+
* Duration of the playlist in ms
309+
*/
310+
'expectedDurationMs'?: number;
311+
/**
312+
* Unix timestamp of when the playlist is expected to end (milliseconds) Required when the timingMode is set to back-time.
313+
*/
314+
'expectedEnd'?: number;
315+
}
316+
317+
/**
318+
* Timing mode for the playlist.
319+
*/
320+
enum ActivePlaylistTimingMode {
321+
NONE = "none",
322+
FORWARD_MINUS_TIME = "forward-time",
323+
BACK_MINUS_TIME = "back-time",
324+
}
325+
291326
/**
292327
* Information about the current quickLoop, if any
293328
*/
@@ -335,41 +370,6 @@ enum QuickLoopMarkerType {
335370
PART = "part",
336371
}
337372

338-
/**
339-
* Timing information about the active playlist
340-
*/
341-
interface ActivePlaylistTiming {
342-
/**
343-
* Timing mode for the playlist.
344-
*/
345-
'timingMode': ActivePlaylistTimingMode;
346-
/**
347-
* Unix timestamp of when the playlist started (milliseconds)
348-
*/
349-
'startedPlayback'?: number;
350-
/**
351-
* Unix timestamp of when the playlist is expected to start (milliseconds). Required when the timingMode is set to forward-time.
352-
*/
353-
'expectedStart'?: number;
354-
/**
355-
* Duration of the playlist in ms
356-
*/
357-
'expectedDurationMs'?: number;
358-
/**
359-
* Unix timestamp of when the playlist is expected to end (milliseconds) Required when the timingMode is set to back-time.
360-
*/
361-
'expectedEnd'?: number;
362-
}
363-
364-
/**
365-
* Timing mode for the playlist.
366-
*/
367-
enum ActivePlaylistTimingMode {
368-
NONE = "none",
369-
FORWARD_MINUS_TIME = "forward-time",
370-
BACK_MINUS_TIME = "back-time",
371-
}
372-
373373
interface ActivePiecesEvent {
374374
'event': 'activePieces';
375375
/**
@@ -479,6 +479,10 @@ interface AdLibStatus {
479479
* Optional arbitrary data
480480
*/
481481
'publicData'?: any;
482+
/**
483+
* JSON schema definition of the adLib properties that can be modified using the adLibOptions property in executeAdLib
484+
*/
485+
'optionsSchema'?: string;
482486
/**
483487
* Unique id of the segment this adLib belongs to
484488
*/
@@ -530,7 +534,11 @@ interface GlobalAdLibStatus {
530534
* Optional arbitrary data
531535
*/
532536
'publicData'?: any;
537+
/**
538+
* JSON schema definition of the adLib properties that can be modified using the adLibOptions property in executeAdLib
539+
*/
540+
'optionsSchema'?: string;
533541
'additionalProperties'?: Record<string, any>;
534542
}
535543

536-
export {Slash, PongEvent, HeartbeatEvent, SubscriptionStatusError, SubscriptionDetails, SubscriptionName, SubscriptionStatus, SubscriptionStatusSuccess, StudioEvent, PlaylistStatus, PlaylistActivationStatus, ActivePlaylistEvent, CurrentPartStatus, PieceStatus, CurrentPartTiming, CurrentSegment, CurrentSegmentTiming, SegmentCountdownType, PartStatus, ActivePlaylistQuickLoop, QuickLoopMarker, QuickLoopMarkerType, ActivePlaylistTiming, ActivePlaylistTimingMode, ActivePiecesEvent, SegmentsEvent, Segment, SegmentTiming, AdLibsEvent, AdLibStatus, AdLibActionType, GlobalAdLibStatus};
544+
export {Slash, PongEvent, HeartbeatEvent, SubscriptionStatusError, SubscriptionDetails, SubscriptionName, SubscriptionStatus, SubscriptionStatusSuccess, StudioEvent, PlaylistStatus, PlaylistActivationStatus, ActivePlaylistEvent, CurrentPartStatus, PieceStatus, CurrentPartTiming, CurrentSegment, CurrentSegmentTiming, SegmentCountdownType, PartStatus, ActivePlaylistTiming, ActivePlaylistTimingMode, ActivePlaylistQuickLoop, QuickLoopMarker, QuickLoopMarkerType, ActivePiecesEvent, SegmentsEvent, Segment, SegmentTiming, AdLibsEvent, AdLibStatus, AdLibActionType, GlobalAdLibStatus};

packages/live-status-gateway/src/topics/adLibsTopic.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { AdLibActionsHandler } from '../collections/adLibActionsHandler'
1212
import { GlobalAdLibActionsHandler } from '../collections/globalAdLibActionsHandler'
1313
import { AdLibPiece } from '@sofie-automation/corelib/dist/dataModel/AdLibPiece'
1414
import { RundownBaselineAdLibItem } from '@sofie-automation/corelib/dist/dataModel/RundownBaselineAdLibPiece'
15-
import { IBlueprintActionManifestDisplayContent } from '@sofie-automation/blueprints-integration'
15+
import { IBlueprintActionManifestDisplayContent, JSONBlob } from '@sofie-automation/blueprints-integration'
1616
import { ShowStyleBaseExt, ShowStyleBaseHandler } from '../collections/showStyleBaseHandler'
1717
import { interpollateTranslation } from '@sofie-automation/corelib/dist/TranslatableMessage'
1818
import { AdLibsHandler } from '../collections/adLibsHandler'
@@ -97,7 +97,7 @@ export class AdLibsTopic
9797
actionType: triggerModes,
9898
tags: action.display.tags,
9999
publicData: action.publicData,
100-
optionsSchema: action.userDataManifest.optionsSchema,
100+
optionsSchema: unprotectJsonBlob(action.userDataManifest.optionsSchema),
101101
},
102102
id: unprotectString(action._id),
103103
label: name,
@@ -166,7 +166,7 @@ export class AdLibsTopic
166166
actionType: triggerModes,
167167
tags: action.display.tags,
168168
publicData: action.publicData,
169-
optionsSchema: action.userDataManifest.optionsSchema,
169+
optionsSchema: unprotectJsonBlob(action.userDataManifest.optionsSchema),
170170
},
171171
id: unprotectString(action._id),
172172
label: name,
@@ -302,3 +302,7 @@ export class AdLibsTopic
302302
this.sendStatus(this._subscribers)
303303
}
304304
}
305+
306+
function unprotectJsonBlob(blob: JSONBlob<any> | undefined): string | undefined {
307+
return blob as string | undefined
308+
}

0 commit comments

Comments
 (0)