Skip to content

Commit c295ad6

Browse files
committed
Merge branch 'upstream/release52' into upstream/server-side-notifications
2 parents d9fafe0 + 799ab71 commit c295ad6

File tree

73 files changed

+1507
-628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1507
-628
lines changed

meteor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"object-path": "^0.11.8",
6868
"p-lazy": "^3.1.0",
6969
"semver": "^7.5.4",
70-
"superfly-timeline": "9.0.1",
70+
"superfly-timeline": "9.0.2",
7171
"threadedclass": "^1.2.2",
7272
"timecode": "0.0.4",
7373
"type-fest": "^3.13.1",

meteor/yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ __metadata:
12111211
node-fetch: ^2.7.0
12121212
p-lazy: ^3.1.0
12131213
p-timeout: ^4.1.0
1214-
superfly-timeline: 9.0.1
1214+
superfly-timeline: 9.0.2
12151215
threadedclass: ^1.2.2
12161216
tslib: ^2.6.2
12171217
type-fest: ^3.13.1
@@ -2349,7 +2349,7 @@ __metadata:
23492349
prettier: ^2.8.8
23502350
semver: ^7.5.4
23512351
standard-version: ^9.5.0
2352-
superfly-timeline: 9.0.1
2352+
superfly-timeline: 9.0.2
23532353
threadedclass: ^1.2.2
23542354
timecode: 0.0.4
23552355
ts-jest: ^29.1.2
@@ -10026,12 +10026,12 @@ __metadata:
1002610026
languageName: node
1002710027
linkType: hard
1002810028

10029-
"superfly-timeline@npm:9.0.1":
10030-
version: 9.0.1
10031-
resolution: "superfly-timeline@npm:9.0.1"
10029+
"superfly-timeline@npm:9.0.2":
10030+
version: 9.0.2
10031+
resolution: "superfly-timeline@npm:9.0.2"
1003210032
dependencies:
1003310033
tslib: ^2.6.0
10034-
checksum: 4267eed691fe9ce9f89bf17c8aed1a98206938dd6d850c64b083e4fd3a3dc5329801c76c757450c9520375bad100ce512cc6d6a3e4a997bdfa14a4e7d65f09f2
10034+
checksum: d628d467d5384f5667bc10b877478c5b8b0a91774b5d5c5e9d9d3134b8f1b760225f2fbbb0f9ccd3e55f930c9f3719f81b9347b94ea853fbc0a18bc121d97665
1003510035
languageName: node
1003610036
linkType: hard
1003710037

packages/blueprints-integration/CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,46 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.51.1-2](https://github.com/nrkno/sofie-core/compare/v1.51.1-1...v1.51.1-2) (2024-10-24)
7+
8+
**Note:** Version bump only for package @sofie-automation/blueprints-integration
9+
10+
11+
12+
13+
14+
## [1.51.1-2](https://github.com/nrkno/sofie-core/compare/v1.51.1-1...v1.51.1-2) (2024-10-24)
15+
16+
**Note:** Version bump only for package @sofie-automation/blueprints-integration
17+
18+
19+
20+
21+
22+
## [1.51.1-1](https://github.com/nrkno/sofie-core/compare/v1.51.1-0...v1.51.1-1) (2024-10-18)
23+
24+
**Note:** Version bump only for package @sofie-automation/blueprints-integration
25+
26+
27+
28+
29+
30+
## [1.51.1-0](https://github.com/nrkno/sofie-core/compare/v1.51.0...v1.51.1-0) (2024-10-18)
31+
32+
**Note:** Version bump only for package @sofie-automation/blueprints-integration
33+
34+
35+
36+
37+
38+
## [1.51.1-0](https://github.com/nrkno/sofie-core/compare/v1.51.0...v1.51.1-0) (2024-10-18)
39+
40+
**Note:** Version bump only for package @sofie-automation/blueprints-integration
41+
42+
43+
44+
45+
646
# [1.51.0](https://github.com/nrkno/sofie-core/compare/v1.51.0-in-testing.3...v1.51.0) (2024-10-07)
747

848
**Note:** Version bump only for package @sofie-automation/blueprints-integration

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { IShowStyleUserContext } from './showStyleContext'
44
import { IPartAndPieceActionContext } from './partsAndPieceActionContext'
55
import { IExecuteTSRActionsContext } from './executeTsrActionContext'
66
import { IBlueprintPart, IBlueprintPartInstance, IBlueprintPiece } from '..'
7+
import { IRouteSetMethods } from './routeSetContext'
78

89
/** Actions */
910
export interface IDataStoreMethods {
@@ -24,7 +25,8 @@ export interface IActionExecutionContext
2425
IEventContext,
2526
IDataStoreMethods,
2627
IPartAndPieceActionContext,
27-
IExecuteTSRActionsContext {
28+
IExecuteTSRActionsContext,
29+
IRouteSetMethods {
2830
/** Fetch the showstyle config for the specified part */
2931
// getNextShowStyleConfig(): Readonly<{ [key: string]: ConfigItemValue }>
3032

@@ -38,8 +40,6 @@ export interface IActionExecutionContext
3840
/** Insert a queued part to follow the current part */
3941
queuePart(part: IBlueprintPart, pieces: IBlueprintPiece[]): Promise<IBlueprintPartInstance>
4042

41-
/** Switch RouteSet State*/
42-
switchRouteSet(routeSetId: string, state: boolean | 'toggle'): Promise<void>
4343
/** Misc actions */
4444
// updateAction(newManifest: Pick<IBlueprintAdLibActionManifest, 'description' | 'payload'>): void // only updates itself. to allow for the next one to do something different
4545
// executePeripheralDeviceAction(deviceId: string, functionName: string, args: any[]): Promise<any>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { StudioRouteSet } from '@sofie-automation/shared-lib/dist/core/model/StudioRouteSet'
2+
3+
export interface IRouteSetMethods {
4+
/** Returns a list of the Routesets */
5+
listRouteSets(): Promise<Record<string, StudioRouteSet>>
6+
7+
/** Switch RouteSet State */
8+
switchRouteSet(routeSetId: string, state: boolean | 'toggle'): Promise<void>
9+
}

packages/blueprints-integration/src/documents/part.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ export interface IBlueprintMutatablePart<TPrivateData = unknown, TPublicData = u
5454
/** Expected duration of the line, in milliseconds */
5555
expectedDuration?: number
5656

57-
/** Budget duration of this part, in milliseconds */
58-
budgetDuration?: number
59-
6057
/** Whether this segment line supports being used in HOLD */
6158
holdMode?: PartHoldMode
6259

packages/blueprints-integration/src/documents/segment.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,25 @@ export enum SegmentDisplayMode {
44
List = 'list',
55
}
66

7+
export enum CountdownType {
8+
/** Should count down till the end of the current part */
9+
PART_EXPECTED_DURATION = 'part_expected_duration',
10+
/** Should count down till the end of the segment's budget */
11+
SEGMENT_BUDGET_DURATION = 'segment_budget_duration',
12+
}
13+
714
export interface SegmentTimingInfo {
815
/** A unix timestamp of when the segment is expected to begin. Affects rundown timing. */
916
expectedStart?: number
1017

1118
/** A unix timestamp of when the segment is expected to end. Affects rundown timing. */
1219
expectedEnd?: number
20+
21+
/** Budget duration of this segment, in milliseconds */
22+
budgetDuration?: number
23+
24+
/** Defines the behavior of countdowns during this segment. Default: `CountdownType.PART_EXPECTED_DURATION` */
25+
countdownType?: CountdownType
1326
}
1427

1528
/** The Segment generated from Blueprint */

packages/corelib/src/dataModel/RundownPlaylist.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ export interface DBRundownPlaylist {
164164
lastIncorrectPartPlaybackReported?: Time
165165
/** Actual time of each rundown starting playback */
166166
rundownsStartedPlayback?: Record<string, Time>
167-
/** Actual time of SOME segments starting playback - usually just the previous and current one */
167+
/**
168+
* Actual time of SOME segments starting playback - usually just the previous and current one
169+
* This is not using SegmentId, but SegmentPlayoutId
170+
*/
168171
segmentsStartedPlayback?: Record<string, Time>
169172
/** Time of the last take */
170173
lastTakeTime?: Time

packages/corelib/src/overrideOpHelper.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,15 @@ export interface OverrideOpHelperBatcher extends OverrideOpHelperForItemContents
162162
export type OverrideOpHelper = () => OverrideOpHelperBatcher
163163

164164
export class OverrideOpHelperImpl implements OverrideOpHelperBatcher {
165-
readonly #saveOverrides: SaveOverridesFunction
165+
readonly #saveOverrides: SaveOverridesFunction | null
166166
readonly #object: ObjectWithOverrides<any>
167167

168-
constructor(saveOverrides: SaveOverridesFunction, object: ObjectWithOverrides<any>) {
168+
constructor(
169+
saveOverrides: SaveOverridesFunction | null,
170+
object: ObjectWithOverrides<any> | ReadonlyDeep<ObjectWithOverrides<any>>
171+
) {
169172
this.#saveOverrides = saveOverrides
170-
this.#object = { ...object }
173+
this.#object = { defaults: object.defaults, overrides: [...object.overrides] }
171174
}
172175

173176
clearItemOverrides = (itemId: string, subPath: string): this => {
@@ -314,6 +317,12 @@ export class OverrideOpHelperImpl implements OverrideOpHelperBatcher {
314317
}
315318

316319
commit = (): void => {
320+
if (!this.#saveOverrides) throw new Error('Cannot commit changes without a save function')
321+
317322
this.#saveOverrides(this.#object.overrides)
318323
}
324+
325+
getPendingOps = (): SomeObjectOverrideOp[] => {
326+
return this.#object.overrides
327+
}
319328
}

packages/job-worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"node-fetch": "^2.7.0",
5353
"p-lazy": "^3.1.0",
5454
"p-timeout": "^4.1.0",
55-
"superfly-timeline": "9.0.1",
55+
"superfly-timeline": "9.0.2",
5656
"threadedclass": "^1.2.2",
5757
"tslib": "^2.6.2",
5858
"type-fest": "^3.13.1",

0 commit comments

Comments
 (0)