Skip to content

Commit ecb8d8b

Browse files
committed
fix: expose IBlueprintSegmentDB through getSegment to bluerpints
1 parent e1dc09b commit ecb8d8b

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

packages/blueprints-integration/src/context/onSetAsNextContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
IBlueprintPieceDB,
77
IBlueprintPieceInstance,
88
IBlueprintResolvedPieceInstance,
9-
IBlueprintSegment,
9+
IBlueprintSegmentDB,
1010
IEventContext,
1111
IShowStyleUserContext,
1212
} from '../index.js'
@@ -56,7 +56,7 @@ export interface IOnSetAsNextContext extends IShowStyleUserContext, IEventContex
5656
/** Gets the Part for a Piece retrieved from findLastScriptedPieceOnLayer. This primarily allows for accessing metadata of the Part */
5757
getPartForPreviousPiece(piece: IBlueprintPieceDB): Promise<IBlueprintPart | undefined>
5858
/** Gets the Segment. This primarily allows for accessing metadata */
59-
getSegment(segment: 'current' | 'next'): Promise<IBlueprintSegment | undefined>
59+
getSegment(segment: 'current' | 'next'): Promise<IBlueprintSegmentDB | undefined>
6060

6161
/** Get a list of the upcoming Parts in the Rundown, in the order that they will be Taken
6262
*

packages/blueprints-integration/src/context/partsAndPieceActionContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
IBlueprintPieceDB,
88
IBlueprintPieceInstance,
99
IBlueprintResolvedPieceInstance,
10-
IBlueprintSegment,
10+
IBlueprintSegmentDB,
1111
Time,
1212
} from '../index.js'
1313
import { BlueprintQuickLookInfo } from './quickLoopInfo.js'
@@ -47,7 +47,7 @@ export interface IPartAndPieceActionContext {
4747
/** Gets the Part for a Piece retrieved from findLastScriptedPieceOnLayer. This primarily allows for accessing metadata of the Part */
4848
getPartForPreviousPiece(piece: IBlueprintPieceDB): Promise<IBlueprintPart | undefined>
4949
/** Gets the Segment. This primarily allows for accessing metadata */
50-
getSegment(segment: 'current' | 'next'): Promise<IBlueprintSegment | undefined>
50+
getSegment(segment: 'current' | 'next'): Promise<IBlueprintSegmentDB | undefined>
5151

5252
/** Get a list of the upcoming Parts in the Rundown, in the order that they will be Taken
5353
*

packages/job-worker/src/blueprints/context/OnSetAsNextContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
IBlueprintPieceDB,
1010
IBlueprintPieceInstance,
1111
IBlueprintResolvedPieceInstance,
12-
IBlueprintSegment,
12+
IBlueprintSegmentDB,
1313
IEventContext,
1414
IOnSetAsNextContext,
1515
} from '@sofie-automation/blueprints-integration'
@@ -81,7 +81,7 @@ export class OnSetAsNextContext
8181
return this.partAndPieceInstanceService.getResolvedPieceInstances(part)
8282
}
8383

84-
async getSegment(segment: 'current' | 'next'): Promise<IBlueprintSegment | undefined> {
84+
async getSegment(segment: 'current' | 'next'): Promise<IBlueprintSegmentDB | undefined> {
8585
return this.partAndPieceInstanceService.getSegment(segment)
8686
}
8787

packages/job-worker/src/blueprints/context/OnTakeContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
TSR,
1313
IBlueprintPlayoutDevice,
1414
IOnTakeContext,
15-
IBlueprintSegment,
15+
IBlueprintSegmentDB,
1616
} from '@sofie-automation/blueprints-integration'
1717
import { PeripheralDeviceId } from '@sofie-automation/corelib/dist/dataModel/Ids'
1818
import { ReadonlyDeep } from 'type-fest'
@@ -77,7 +77,7 @@ export class OnTakeContext extends ShowStyleUserContext implements IOnTakeContex
7777
async getResolvedPieceInstances(part: 'current' | 'next'): Promise<IBlueprintResolvedPieceInstance[]> {
7878
return this.partAndPieceInstanceService.getResolvedPieceInstances(part)
7979
}
80-
async getSegment(segment: 'current' | 'next'): Promise<IBlueprintSegment | undefined> {
80+
async getSegment(segment: 'current' | 'next'): Promise<IBlueprintSegmentDB | undefined> {
8181
return this.partAndPieceInstanceService.getSegment(segment)
8282
}
8383

packages/job-worker/src/blueprints/context/services/PartAndPieceInstanceActionService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
IBlueprintPieceDB,
1010
IBlueprintPieceInstance,
1111
IBlueprintResolvedPieceInstance,
12-
IBlueprintSegment,
12+
IBlueprintSegmentDB,
1313
OmitId,
1414
SomeContent,
1515
Time,
@@ -140,7 +140,7 @@ export class PartAndPieceInstanceActionService {
140140
)
141141
return resolvedInstances.map(convertResolvedPieceInstanceToBlueprints)
142142
}
143-
getSegment(segment: 'current' | 'next'): IBlueprintSegment | undefined {
143+
getSegment(segment: 'current' | 'next'): IBlueprintSegmentDB | undefined {
144144
const partInstance = this.#getPartInstance(segment)
145145
if (!partInstance) return undefined
146146

0 commit comments

Comments
 (0)