@sofie-automation/blueprints-integration 1.50.4 → 1.51.0-in-testing.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.md +90 -73
  2. package/dist/abPlayback.d.ts +3 -3
  3. package/dist/abPlayback.d.ts.map +1 -1
  4. package/dist/action.d.ts +14 -17
  5. package/dist/action.d.ts.map +1 -1
  6. package/dist/action.js +0 -10
  7. package/dist/action.js.map +1 -1
  8. package/dist/api/showStyle.d.ts +29 -7
  9. package/dist/api/showStyle.d.ts.map +1 -1
  10. package/dist/api/studio.d.ts +9 -3
  11. package/dist/api/studio.d.ts.map +1 -1
  12. package/dist/content.d.ts +3 -2
  13. package/dist/content.d.ts.map +1 -1
  14. package/dist/content.js.map +1 -1
  15. package/dist/context/adlibActionContext.d.ts +30 -0
  16. package/dist/context/adlibActionContext.d.ts.map +1 -0
  17. package/dist/context/adlibActionContext.js +3 -0
  18. package/dist/context/adlibActionContext.js.map +1 -0
  19. package/dist/context/baseContext.d.ts +39 -0
  20. package/dist/context/baseContext.d.ts.map +1 -0
  21. package/dist/{context.js → context/baseContext.js} +1 -1
  22. package/dist/context/baseContext.js.map +1 -0
  23. package/dist/context/eventContext.d.ts +60 -0
  24. package/dist/context/eventContext.d.ts.map +1 -0
  25. package/dist/context/eventContext.js +3 -0
  26. package/dist/context/eventContext.js.map +1 -0
  27. package/dist/context/executeTsrActionContext.d.ts +9 -0
  28. package/dist/context/executeTsrActionContext.d.ts.map +1 -0
  29. package/dist/context/executeTsrActionContext.js +3 -0
  30. package/dist/context/executeTsrActionContext.js.map +1 -0
  31. package/dist/context/fixUpConfigContext.d.ts +55 -0
  32. package/dist/context/fixUpConfigContext.d.ts.map +1 -0
  33. package/dist/context/fixUpConfigContext.js +3 -0
  34. package/dist/context/fixUpConfigContext.js.map +1 -0
  35. package/dist/context/index.d.ts +12 -0
  36. package/dist/context/index.d.ts.map +1 -0
  37. package/dist/context/index.js +15 -0
  38. package/dist/context/index.js.map +1 -0
  39. package/dist/context/onSetAsNextContext.d.ts +46 -0
  40. package/dist/context/onSetAsNextContext.d.ts.map +1 -0
  41. package/dist/context/onSetAsNextContext.js +3 -0
  42. package/dist/context/onSetAsNextContext.js.map +1 -0
  43. package/dist/context/onTakeContext.d.ts +17 -0
  44. package/dist/context/onTakeContext.d.ts.map +1 -0
  45. package/dist/context/onTakeContext.js +3 -0
  46. package/dist/context/onTakeContext.js.map +1 -0
  47. package/dist/context/packageInfoContext.d.ts +12 -0
  48. package/dist/context/packageInfoContext.d.ts.map +1 -0
  49. package/dist/context/packageInfoContext.js +3 -0
  50. package/dist/context/packageInfoContext.js.map +1 -0
  51. package/dist/context/partsAndPieceActionContext.d.ts +48 -0
  52. package/dist/context/partsAndPieceActionContext.d.ts.map +1 -0
  53. package/dist/context/partsAndPieceActionContext.js +3 -0
  54. package/dist/context/partsAndPieceActionContext.js.map +1 -0
  55. package/dist/context/rundownContext.d.ts +29 -0
  56. package/dist/context/rundownContext.d.ts.map +1 -0
  57. package/dist/context/rundownContext.js +3 -0
  58. package/dist/context/rundownContext.js.map +1 -0
  59. package/dist/context/showStyleContext.d.ts +26 -0
  60. package/dist/context/showStyleContext.d.ts.map +1 -0
  61. package/dist/context/showStyleContext.js +3 -0
  62. package/dist/context/showStyleContext.js.map +1 -0
  63. package/dist/context/studioContext.d.ts +18 -0
  64. package/dist/context/studioContext.d.ts.map +1 -0
  65. package/dist/context/studioContext.js +3 -0
  66. package/dist/context/studioContext.js.map +1 -0
  67. package/dist/context/syncIngestChangesContext.d.ts +17 -0
  68. package/dist/context/syncIngestChangesContext.d.ts.map +1 -0
  69. package/dist/context/syncIngestChangesContext.js +3 -0
  70. package/dist/context/syncIngestChangesContext.js.map +1 -0
  71. package/dist/documents/adlibPiece.d.ts +2 -2
  72. package/dist/documents/adlibPiece.d.ts.map +1 -1
  73. package/dist/documents/expectedPlayoutItem.d.ts +1 -11
  74. package/dist/documents/expectedPlayoutItem.d.ts.map +1 -1
  75. package/dist/documents/expectedPlayoutItem.js +2 -0
  76. package/dist/documents/expectedPlayoutItem.js.map +1 -1
  77. package/dist/documents/part.d.ts +7 -5
  78. package/dist/documents/part.d.ts.map +1 -1
  79. package/dist/documents/partInstance.d.ts +2 -2
  80. package/dist/documents/partInstance.d.ts.map +1 -1
  81. package/dist/documents/piece.d.ts +2 -7
  82. package/dist/documents/piece.d.ts.map +1 -1
  83. package/dist/documents/pieceGeneric.d.ts +6 -22
  84. package/dist/documents/pieceGeneric.d.ts.map +1 -1
  85. package/dist/documents/pieceGeneric.js.map +1 -1
  86. package/dist/documents/pieceInstance.d.ts +9 -3
  87. package/dist/documents/pieceInstance.d.ts.map +1 -1
  88. package/dist/documents/rundown.d.ts +11 -7
  89. package/dist/documents/rundown.d.ts.map +1 -1
  90. package/dist/documents/rundownPlaylist.d.ts +4 -2
  91. package/dist/documents/rundownPlaylist.d.ts.map +1 -1
  92. package/dist/documents/segment.d.ts +6 -4
  93. package/dist/documents/segment.d.ts.map +1 -1
  94. package/dist/index.d.ts +0 -1
  95. package/dist/index.d.ts.map +1 -1
  96. package/dist/index.js +0 -1
  97. package/dist/index.js.map +1 -1
  98. package/dist/triggers.d.ts +5 -1
  99. package/dist/triggers.d.ts.map +1 -1
  100. package/dist/triggers.js.map +1 -1
  101. package/package.json +8 -8
  102. package/dist/config.d.ts +0 -43
  103. package/dist/config.d.ts.map +0 -1
  104. package/dist/config.js +0 -13
  105. package/dist/config.js.map +0 -1
  106. package/dist/context.d.ts +0 -254
  107. package/dist/context.d.ts.map +0 -1
  108. package/dist/context.js.map +0 -1
package/dist/config.d.ts DELETED
@@ -1,43 +0,0 @@
1
- export declare enum ConfigManifestEntryType {
2
- STRING = "string",
3
- MULTILINE_STRING = "multiline_string",
4
- INT = "int",
5
- FLOAT = "float",
6
- BOOLEAN = "boolean",
7
- ENUM = "enum"
8
- }
9
- export type BasicConfigManifestEntry = ConfigManifestEntryString | ConfigManifestEntryMultilineString | ConfigManifestEntryInt | ConfigManifestEntryFloat | ConfigManifestEntryBoolean | ConfigManifestEntryEnum;
10
- export type ConfigManifestEntry = BasicConfigManifestEntry;
11
- export interface ConfigManifestEntryBase {
12
- id: string;
13
- name: string;
14
- description: string;
15
- type: ConfigManifestEntryType;
16
- required: boolean;
17
- hint?: string;
18
- }
19
- export interface ConfigManifestEntryString extends ConfigManifestEntryBase {
20
- type: ConfigManifestEntryType.STRING;
21
- }
22
- /** Text area, each line entered is a string in an array */
23
- export interface ConfigManifestEntryMultilineString extends ConfigManifestEntryBase {
24
- type: ConfigManifestEntryType.MULTILINE_STRING;
25
- }
26
- export interface ConfigManifestEntryInt extends ConfigManifestEntryBase {
27
- type: ConfigManifestEntryType.INT;
28
- /** Zero-based values will be stored in the database (and reported to blueprints) as values starting from 0, however,
29
- * when rendered in settings pages they will appear as value + 1
30
- */
31
- zeroBased?: boolean;
32
- }
33
- export interface ConfigManifestEntryFloat extends ConfigManifestEntryBase {
34
- type: ConfigManifestEntryType.FLOAT;
35
- }
36
- export interface ConfigManifestEntryBoolean extends ConfigManifestEntryBase {
37
- type: ConfigManifestEntryType.BOOLEAN;
38
- }
39
- export interface ConfigManifestEntryEnum extends ConfigManifestEntryBase {
40
- type: ConfigManifestEntryType.ENUM;
41
- options: string[];
42
- }
43
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,oBAAY,uBAAuB;IAClC,MAAM,WAAW;IACjB,gBAAgB,qBAAqB;IACrC,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;CACb;AAED,MAAM,MAAM,wBAAwB,GACjC,yBAAyB,GACzB,kCAAkC,GAClC,sBAAsB,GACtB,wBAAwB,GACxB,0BAA0B,GAC1B,uBAAuB,CAAA;AAE1B,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,CAAA;AAE1D,MAAM,WAAW,uBAAuB;IACvC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,uBAAuB,CAAA;IAC7B,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;CACb;AACD,MAAM,WAAW,yBAA0B,SAAQ,uBAAuB;IACzE,IAAI,EAAE,uBAAuB,CAAC,MAAM,CAAA;CACpC;AAED,2DAA2D;AAC3D,MAAM,WAAW,kCAAmC,SAAQ,uBAAuB;IAClF,IAAI,EAAE,uBAAuB,CAAC,gBAAgB,CAAA;CAC9C;AACD,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACtE,IAAI,EAAE,uBAAuB,CAAC,GAAG,CAAA;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,wBAAyB,SAAQ,uBAAuB;IACxE,IAAI,EAAE,uBAAuB,CAAC,KAAK,CAAA;CACnC;AACD,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IAC1E,IAAI,EAAE,uBAAuB,CAAC,OAAO,CAAA;CACrC;AACD,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;IACvE,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAA;IAClC,OAAO,EAAE,MAAM,EAAE,CAAA;CACjB"}
package/dist/config.js DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConfigManifestEntryType = void 0;
4
- var ConfigManifestEntryType;
5
- (function (ConfigManifestEntryType) {
6
- ConfigManifestEntryType["STRING"] = "string";
7
- ConfigManifestEntryType["MULTILINE_STRING"] = "multiline_string";
8
- ConfigManifestEntryType["INT"] = "int";
9
- ConfigManifestEntryType["FLOAT"] = "float";
10
- ConfigManifestEntryType["BOOLEAN"] = "boolean";
11
- ConfigManifestEntryType["ENUM"] = "enum";
12
- })(ConfigManifestEntryType = exports.ConfigManifestEntryType || (exports.ConfigManifestEntryType = {}));
13
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IAClC,4CAAiB,CAAA;IACjB,gEAAqC,CAAA;IACrC,sCAAW,CAAA;IACX,0CAAe,CAAA;IACf,8CAAmB,CAAA;IACnB,wCAAa,CAAA;AACd,CAAC,EAPW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAOlC"}
package/dist/context.d.ts DELETED
@@ -1,254 +0,0 @@
1
- import { DatastorePersistenceMode, Time } from './common';
2
- import { IBlueprintExternalMessageQueueObj } from './message';
3
- import { PackageInfo } from './packageInfo';
4
- import { IBlueprintMutatablePart, IBlueprintPart, IBlueprintPartInstance, IBlueprintPiece, IBlueprintPieceDB, IBlueprintPieceInstance, IBlueprintResolvedPieceInstance, IBlueprintRundownPlaylist, IBlueprintSegmentDB, IBlueprintSegmentRundown } from './documents';
5
- import { BlueprintMappings } from './studio';
6
- import { TSR, OnGenerateTimelineObj } from './timeline';
7
- import { PeripheralDeviceId } from '@sofie-automation/shared-lib/dist/core/model/Ids';
8
- import { IBlueprintPlayoutDevice } from './lib';
9
- import { ISourceLayer, IOutputLayer } from './showStyle';
10
- /** Common */
11
- export interface ICommonContext {
12
- /**
13
- * Hash a string. Will return a unique string, to be used for all _id:s that are to be inserted in database
14
- * @param originString A representation of the origin of the hash (for logging)
15
- * @param originIsNotUnique If the originString is not guaranteed to be unique, set this to true
16
- */
17
- getHashId: (originString: string, originIsNotUnique?: boolean) => string;
18
- /** Un-hash, is return the string that created the hash */
19
- unhashId: (hash: string) => string;
20
- /** Log a message to the sofie log with level 'debug' */
21
- logDebug: (message: string) => void;
22
- /** Log a message to the sofie log with level 'info' */
23
- logInfo: (message: string) => void;
24
- /** Log a message to the sofie log with level 'warn' */
25
- logWarning: (message: string) => void;
26
- /** Log a message to the sofie log with level 'error' */
27
- logError: (message: string) => void;
28
- }
29
- export declare function isCommonContext(obj: unknown): obj is ICommonContext;
30
- export interface IUserNotesContext extends ICommonContext {
31
- /** Display a notification to the user of an error */
32
- notifyUserError(message: string, params?: {
33
- [key: string]: any;
34
- }): void;
35
- /** Display a notification to the user of an warning */
36
- notifyUserWarning(message: string, params?: {
37
- [key: string]: any;
38
- }): void;
39
- /** Display a notification to the user of a note */
40
- notifyUserInfo(message: string, params?: {
41
- [key: string]: any;
42
- }): void;
43
- }
44
- export declare function isUserNotesContext(obj: unknown): obj is IUserNotesContext;
45
- /** Studio */
46
- export interface IStudioContext extends ICommonContext {
47
- /** The id of the studio */
48
- readonly studioId: string;
49
- /** Returns the Studio blueprint config. If StudioBlueprintManifest.preprocessConfig is provided, a config preprocessed by that function is returned, otherwise it is returned unprocessed */
50
- getStudioConfig: () => unknown;
51
- /** Returns a reference to a studio config value, that can later be resolved in Core */
52
- getStudioConfigRef(configKey: string): string;
53
- /** Get the mappings for the studio */
54
- getStudioMappings: () => Readonly<BlueprintMappings>;
55
- }
56
- export interface IPackageInfoContext {
57
- /**
58
- * Get the PackageInfo items for an ExpectedPackage, if any have been reported by the package manager.
59
- * Only info for packages with the `listenToPackageInfoUpdates` property set to true can be returned.
60
- * The possible packageIds are scoped based on the ownership of the package.
61
- * eg, baseline packages can be accessed when generating the baseline objects, piece/adlib packages can be access when regenerating the segment they are from
62
- */
63
- getPackageInfo: (packageId: string) => Readonly<PackageInfo.Any[]>;
64
- hackGetMediaObjectDuration: (mediaId: string) => Promise<number | undefined>;
65
- }
66
- export interface IStudioBaselineContext extends IStudioContext, IPackageInfoContext {
67
- }
68
- export interface IStudioUserContext extends IUserNotesContext, IStudioContext {
69
- }
70
- /** Show Style Variant */
71
- export interface IShowStyleContext extends ICommonContext, IStudioContext {
72
- /** Returns a ShowStyle blueprint config. If ShowStyleBlueprintManifest.preprocessConfig is provided, a config preprocessed by that function is returned, otherwise it is returned unprocessed */
73
- getShowStyleConfig: () => unknown;
74
- /** Returns a reference to a showStyle config value, that can later be resolved in Core */
75
- getShowStyleConfigRef(configKey: string): string;
76
- /** Get source layers for the ShowStyle */
77
- getShowStyleSourceLayers(): Record<string, ISourceLayer | undefined>;
78
- /** Get output layers for the ShowStyle */
79
- getShowStyleOutputLayers(): Record<string, IOutputLayer | undefined>;
80
- }
81
- export interface IShowStyleUserContext extends IUserNotesContext, IShowStyleContext, IPackageInfoContext {
82
- }
83
- export interface IGetRundownContext extends IShowStyleUserContext {
84
- /** Returns a list of the Playlists in the studio */
85
- getPlaylists: () => Promise<Readonly<IBlueprintRundownPlaylist[]>>;
86
- /** Returns the Playlist in which the Rundown currently is in. If it's a new Rundown, this will return undefined. */
87
- getCurrentPlaylist: () => Promise<Readonly<IBlueprintRundownPlaylist> | undefined>;
88
- /** Returns a randomized string, intended to be used as ids. */
89
- getRandomId: () => string;
90
- }
91
- /** Rundown */
92
- export interface IRundownContext extends IShowStyleContext {
93
- readonly rundownId: string;
94
- readonly playlistId: string;
95
- readonly rundown: Readonly<IBlueprintSegmentRundown>;
96
- }
97
- export interface IRundownUserContext extends IUserNotesContext, IRundownContext {
98
- }
99
- export interface IRundownActivationContext extends IRundownContext {
100
- /** Execute an action on a certain PeripheralDevice */
101
- executeTSRAction(deviceId: PeripheralDeviceId, actionId: string, payload: Record<string, any>): Promise<TSR.ActionExecutionResult>;
102
- /** Returns a list of the PeripheralDevices */
103
- listPlayoutDevices(): Promise<IBlueprintPlayoutDevice[]>;
104
- }
105
- export interface ISegmentUserContext extends IUserNotesContext, IRundownContext, IPackageInfoContext {
106
- /** Display a notification to the user of an error */
107
- notifyUserError: (message: string, params?: {
108
- [key: string]: any;
109
- }, partExternalId?: string) => void;
110
- /** Display a notification to the user of an warning */
111
- notifyUserWarning: (message: string, params?: {
112
- [key: string]: any;
113
- }, partExternalId?: string) => void;
114
- /** Display a notification to the user of a note */
115
- notifyUserInfo: (message: string, params?: {
116
- [key: string]: any;
117
- }, partExternalId?: string) => void;
118
- }
119
- /** Actions */
120
- export interface IDataStoreActionExecutionContext extends IShowStyleUserContext, IEventContext {
121
- /**
122
- * Setting a value in the datastore allows us to overwrite parts of a timeline content object with that value
123
- * @param key Key to use when referencing from the timeline object
124
- * @param value Value to overwrite the timeline object's content with
125
- * @param mode In temporary mode the value may be removed when the key is no longer on the timeline
126
- */
127
- setTimelineDatastoreValue(key: string, value: any, mode: DatastorePersistenceMode): Promise<void>;
128
- /** Deletes a previously set value from the datastore */
129
- removeTimelineDatastoreValue(key: string): Promise<void>;
130
- }
131
- export interface IActionExecutionContext extends IShowStyleUserContext, IEventContext, IDataStoreActionExecutionContext {
132
- /** Data fetching */
133
- /** Get a PartInstance which can be modified */
134
- getPartInstance(part: 'current' | 'next'): Promise<IBlueprintPartInstance | undefined>;
135
- /** Get the PieceInstances for a modifiable PartInstance */
136
- getPieceInstances(part: 'current' | 'next'): Promise<IBlueprintPieceInstance[]>;
137
- /** Get the resolved PieceInstances for a modifiable PartInstance */
138
- getResolvedPieceInstances(part: 'current' | 'next'): Promise<IBlueprintResolvedPieceInstance[]>;
139
- /** Get the last active piece on given layer */
140
- findLastPieceOnLayer(sourceLayerId: string | string[], options?: {
141
- excludeCurrentPart?: boolean;
142
- originalOnly?: boolean;
143
- pieceMetaDataFilter?: any;
144
- }): Promise<IBlueprintPieceInstance | undefined>;
145
- /** Get the previous scripted piece on a given layer, looking backwards from the current part. */
146
- findLastScriptedPieceOnLayer(sourceLayerId: string | string[], options?: {
147
- excludeCurrentPart?: boolean;
148
- pieceMetaDataFilter?: any;
149
- }): Promise<IBlueprintPiece | undefined>;
150
- /** Gets the PartInstance for a PieceInstance retrieved from findLastPieceOnLayer. This primarily allows for accessing metadata of the PartInstance */
151
- getPartInstanceForPreviousPiece(piece: IBlueprintPieceInstance): Promise<IBlueprintPartInstance>;
152
- /** Gets the Part for a Piece retrieved from findLastScriptedPieceOnLayer. This primarily allows for accessing metadata of the Part */
153
- getPartForPreviousPiece(piece: IBlueprintPieceDB): Promise<IBlueprintPart | undefined>;
154
- /** Fetch the showstyle config for the specified part */
155
- /** Creative actions */
156
- /** Insert a pieceInstance. Returns id of new PieceInstance. Any timelineObjects will have their ids changed, so are not safe to reference from another piece */
157
- insertPiece(part: 'current' | 'next', piece: IBlueprintPiece): Promise<IBlueprintPieceInstance>;
158
- /** Update a piecesInstance */
159
- updatePieceInstance(pieceInstanceId: string, piece: Partial<IBlueprintPiece>): Promise<IBlueprintPieceInstance>;
160
- /** Insert a queued part to follow the current part */
161
- queuePart(part: IBlueprintPart, pieces: IBlueprintPiece[]): Promise<IBlueprintPartInstance>;
162
- /** Update a partInstance */
163
- updatePartInstance(part: 'current' | 'next', props: Partial<IBlueprintMutatablePart>): Promise<IBlueprintPartInstance>;
164
- /** Destructive actions */
165
- /** Stop any piecesInstances on the specified sourceLayers. Returns ids of piecesInstances that were affected */
166
- stopPiecesOnLayers(sourceLayerIds: string[], timeOffset?: number): Promise<string[]>;
167
- /** Stop piecesInstances by id. Returns ids of piecesInstances that were removed */
168
- stopPieceInstances(pieceInstanceIds: string[], timeOffset?: number): Promise<string[]>;
169
- /** Remove piecesInstances by id. Returns ids of piecesInstances that were removed. Note: For now we only allow removing from the next, but this might change to include current if there is justification */
170
- removePieceInstances(part: 'next', pieceInstanceIds: string[]): Promise<string[]>;
171
- /** Move the next part through the rundown. Can move by either a number of parts, or segments in either direction. */
172
- moveNextPart(partDelta: number, segmentDelta: number): Promise<void>;
173
- /** Set flag to perform take after executing the current action. Returns state of the flag after each call. */
174
- takeAfterExecuteAction(take: boolean): Promise<boolean>;
175
- /** Inform core that a take out of the current partinstance should be blocked until the specified time */
176
- blockTakeUntil(time: Time | null): Promise<void>;
177
- /** Misc actions */
178
- /** Returns a list of the PeripheralDevices */
179
- listPlayoutDevices(): Promise<IBlueprintPlayoutDevice[]>;
180
- /** Execute an action on a certain PeripheralDevice */
181
- executeTSRAction(deviceId: PeripheralDeviceId, actionId: string, payload: Record<string, any>): Promise<TSR.ActionExecutionResult>;
182
- }
183
- /** Actions */
184
- export interface ISyncIngestUpdateToPartInstanceContext extends IRundownUserContext {
185
- /** Sync a pieceInstance. Inserts the pieceInstance if new, updates if existing. Optionally pass in a mutated Piece, to override the content of the instance */
186
- syncPieceInstance(pieceInstanceId: string, mutatedPiece?: Omit<IBlueprintPiece, 'lifespan'>): IBlueprintPieceInstance;
187
- /** Insert a pieceInstance. Returns id of new PieceInstance. Any timelineObjects will have their ids changed, so are not safe to reference from another piece */
188
- insertPieceInstance(piece: IBlueprintPiece): IBlueprintPieceInstance;
189
- /** Update a pieceInstance */
190
- updatePieceInstance(pieceInstanceId: string, piece: Partial<IBlueprintPiece>): IBlueprintPieceInstance;
191
- /** Remove a pieceInstance */
192
- removePieceInstances(...pieceInstanceIds: string[]): string[];
193
- /** Update a partInstance */
194
- updatePartInstance(props: Partial<IBlueprintMutatablePart>): IBlueprintPartInstance;
195
- /** Remove the partInstance. This is only valid when `playstatus: 'next'` */
196
- removePartInstance(): void;
197
- }
198
- /** Events */
199
- export interface IEventContext {
200
- getCurrentTime(): number;
201
- }
202
- export interface ITimelineEventContext extends IEventContext, IRundownContext {
203
- readonly currentPartInstance: Readonly<IBlueprintPartInstance> | undefined;
204
- readonly nextPartInstance: Readonly<IBlueprintPartInstance> | undefined;
205
- readonly previousPartInstance: Readonly<IBlueprintPartInstance> | undefined;
206
- /**
207
- * Get the full session id for an ab playback session.
208
- * Note: sessionName should be unique within the segment unless pieces want to share a session
209
- * @deprecated use the core provided AB implementation instead
210
- */
211
- getPieceABSessionId(piece: IBlueprintPieceInstance, sessionName: string): string;
212
- /**
213
- * Get the full session id for a timelineobject that belongs to an ab playback session
214
- * sessionName should also be used in calls to getPieceABSessionId for the owning piece
215
- * @deprecated use the core provided AB implementation instead
216
- */
217
- getTimelineObjectAbSessionId(obj: OnGenerateTimelineObj<TSR.TSRTimelineContent, any, any>, sessionName: string): string | undefined;
218
- }
219
- export interface IPartEventContext extends IEventContext, IRundownContext {
220
- readonly part: Readonly<IBlueprintPartInstance>;
221
- }
222
- export interface IRundownDataChangedEventContext extends IEventContext, IRundownContext {
223
- formatDateAsTimecode(time: number): string;
224
- formatDurationAsTimecode(time: number): string;
225
- /** Get all unsent and queued messages in the rundown */
226
- getAllUnsentQueuedMessages(): Promise<Readonly<IBlueprintExternalMessageQueueObj[]>>;
227
- }
228
- export interface IRundownTimingEventContext extends IRundownDataChangedEventContext {
229
- readonly previousPart: Readonly<IBlueprintPartInstance> | undefined;
230
- readonly currentPart: Readonly<IBlueprintPartInstance>;
231
- readonly nextPart: Readonly<IBlueprintPartInstance> | undefined;
232
- /**
233
- * Returns the first PartInstance in the Rundown within the current playlist activation.
234
- * This allows for a start time for the Rundown to be determined
235
- * @param allowUntimed Whether to consider a Part which has the untimed property set
236
- */
237
- getFirstPartInstanceInRundown(allowUntimed?: boolean): Promise<Readonly<IBlueprintPartInstance>>;
238
- /**
239
- * Returns the partInstances in the Segment, limited to the playthrough of the segment that refPartInstance is part of
240
- * @param refPartInstance PartInstance to use as the basis of the search
241
- */
242
- getPartInstancesInSegmentPlayoutId(refPartInstance: Readonly<IBlueprintPartInstance>): Promise<Readonly<IBlueprintPartInstance[]>>;
243
- /**
244
- * Returns pieces in a partInstance
245
- * @param id Id of partInstance to fetch items in
246
- */
247
- getPieceInstances(...partInstanceIds: string[]): Promise<Readonly<IBlueprintPieceInstance[]>>;
248
- /**
249
- * Returns a segment
250
- * @param id Id of segment to fetch
251
- */
252
- getSegment(id: string): Promise<Readonly<IBlueprintSegmentDB> | undefined>;
253
- }
254
- //# sourceMappingURL=context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,iCAAiC,EAAE,MAAM,WAAW,CAAA;AAC7D,OAAO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