@sofie-automation/blueprints-integration 1.50.5 → 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.
- package/CHANGELOG.md +86 -77
- package/dist/abPlayback.d.ts +3 -3
- package/dist/abPlayback.d.ts.map +1 -1
- package/dist/action.d.ts +14 -17
- package/dist/action.d.ts.map +1 -1
- package/dist/action.js +0 -10
- package/dist/action.js.map +1 -1
- package/dist/api/showStyle.d.ts +29 -7
- package/dist/api/showStyle.d.ts.map +1 -1
- package/dist/api/studio.d.ts +9 -3
- package/dist/api/studio.d.ts.map +1 -1
- package/dist/content.d.ts +3 -2
- package/dist/content.d.ts.map +1 -1
- package/dist/content.js.map +1 -1
- package/dist/context/adlibActionContext.d.ts +30 -0
- package/dist/context/adlibActionContext.d.ts.map +1 -0
- package/dist/context/adlibActionContext.js +3 -0
- package/dist/context/adlibActionContext.js.map +1 -0
- package/dist/context/baseContext.d.ts +39 -0
- package/dist/context/baseContext.d.ts.map +1 -0
- package/dist/{context.js → context/baseContext.js} +1 -1
- package/dist/context/baseContext.js.map +1 -0
- package/dist/context/eventContext.d.ts +60 -0
- package/dist/context/eventContext.d.ts.map +1 -0
- package/dist/context/eventContext.js +3 -0
- package/dist/context/eventContext.js.map +1 -0
- package/dist/context/executeTsrActionContext.d.ts +9 -0
- package/dist/context/executeTsrActionContext.d.ts.map +1 -0
- package/dist/context/executeTsrActionContext.js +3 -0
- package/dist/context/executeTsrActionContext.js.map +1 -0
- package/dist/context/fixUpConfigContext.d.ts +55 -0
- package/dist/context/fixUpConfigContext.d.ts.map +1 -0
- package/dist/context/fixUpConfigContext.js +3 -0
- package/dist/context/fixUpConfigContext.js.map +1 -0
- package/dist/context/index.d.ts +12 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +15 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/onSetAsNextContext.d.ts +46 -0
- package/dist/context/onSetAsNextContext.d.ts.map +1 -0
- package/dist/context/onSetAsNextContext.js +3 -0
- package/dist/context/onSetAsNextContext.js.map +1 -0
- package/dist/context/onTakeContext.d.ts +17 -0
- package/dist/context/onTakeContext.d.ts.map +1 -0
- package/dist/context/onTakeContext.js +3 -0
- package/dist/context/onTakeContext.js.map +1 -0
- package/dist/context/packageInfoContext.d.ts +12 -0
- package/dist/context/packageInfoContext.d.ts.map +1 -0
- package/dist/context/packageInfoContext.js +3 -0
- package/dist/context/packageInfoContext.js.map +1 -0
- package/dist/context/partsAndPieceActionContext.d.ts +48 -0
- package/dist/context/partsAndPieceActionContext.d.ts.map +1 -0
- package/dist/context/partsAndPieceActionContext.js +3 -0
- package/dist/context/partsAndPieceActionContext.js.map +1 -0
- package/dist/context/rundownContext.d.ts +29 -0
- package/dist/context/rundownContext.d.ts.map +1 -0
- package/dist/context/rundownContext.js +3 -0
- package/dist/context/rundownContext.js.map +1 -0
- package/dist/context/showStyleContext.d.ts +26 -0
- package/dist/context/showStyleContext.d.ts.map +1 -0
- package/dist/context/showStyleContext.js +3 -0
- package/dist/context/showStyleContext.js.map +1 -0
- package/dist/context/studioContext.d.ts +18 -0
- package/dist/context/studioContext.d.ts.map +1 -0
- package/dist/context/studioContext.js +3 -0
- package/dist/context/studioContext.js.map +1 -0
- package/dist/context/syncIngestChangesContext.d.ts +17 -0
- package/dist/context/syncIngestChangesContext.d.ts.map +1 -0
- package/dist/context/syncIngestChangesContext.js +3 -0
- package/dist/context/syncIngestChangesContext.js.map +1 -0
- package/dist/documents/adlibPiece.d.ts +2 -2
- package/dist/documents/adlibPiece.d.ts.map +1 -1
- package/dist/documents/expectedPlayoutItem.d.ts +1 -11
- package/dist/documents/expectedPlayoutItem.d.ts.map +1 -1
- package/dist/documents/expectedPlayoutItem.js +2 -0
- package/dist/documents/expectedPlayoutItem.js.map +1 -1
- package/dist/documents/part.d.ts +7 -5
- package/dist/documents/part.d.ts.map +1 -1
- package/dist/documents/partInstance.d.ts +2 -2
- package/dist/documents/partInstance.d.ts.map +1 -1
- package/dist/documents/piece.d.ts +2 -7
- package/dist/documents/piece.d.ts.map +1 -1
- package/dist/documents/pieceGeneric.d.ts +6 -22
- package/dist/documents/pieceGeneric.d.ts.map +1 -1
- package/dist/documents/pieceGeneric.js.map +1 -1
- package/dist/documents/pieceInstance.d.ts +9 -3
- package/dist/documents/pieceInstance.d.ts.map +1 -1
- package/dist/documents/rundown.d.ts +11 -7
- package/dist/documents/rundown.d.ts.map +1 -1
- package/dist/documents/rundownPlaylist.d.ts +4 -2
- package/dist/documents/rundownPlaylist.d.ts.map +1 -1
- package/dist/documents/segment.d.ts +6 -4
- package/dist/documents/segment.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/triggers.d.ts +5 -1
- package/dist/triggers.d.ts.map +1 -1
- package/dist/triggers.js.map +1 -1
- package/package.json +8 -8
- package/dist/config.d.ts +0 -43
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -13
- package/dist/config.js.map +0 -1
- package/dist/context.d.ts +0 -254
- package/dist/context.d.ts.map +0 -1
- package/dist/context.js.map +0 -1
package/dist/content.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,GAAG,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAA;AAExF,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,WAAW,IAAI,CAAC,GAAG;IACrD,eAAe,EAAE,qBAAqB,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAAE,CAAA;CAChE,CAAA;AAED,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,sBAAsB,CAAA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,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,iBAAiB,CAAA;AAEjE,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
package/dist/content.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":";;;AAEA,sFAAwF;
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../src/content.ts"],"names":[],"mappings":";;;AAEA,sFAAwF;AA0K/E,gGA1KA,2BAAe,OA0KA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DatastorePersistenceMode, Time } from '../common';
|
|
2
|
+
import type { IEventContext } from '.';
|
|
3
|
+
import type { IShowStyleUserContext } from './showStyleContext';
|
|
4
|
+
import { IPartAndPieceActionContext } from './partsAndPieceActionContext';
|
|
5
|
+
import { IExecuteTSRActionsContext } from './executeTsrActionContext';
|
|
6
|
+
import { IBlueprintPart, IBlueprintPartInstance, IBlueprintPiece } from '..';
|
|
7
|
+
/** Actions */
|
|
8
|
+
export interface IDataStoreActionExecutionContext extends IShowStyleUserContext, IEventContext {
|
|
9
|
+
/**
|
|
10
|
+
* Setting a value in the datastore allows us to overwrite parts of a timeline content object with that value
|
|
11
|
+
* @param key Key to use when referencing from the timeline object
|
|
12
|
+
* @param value Value to overwrite the timeline object's content with
|
|
13
|
+
* @param mode In temporary mode the value may be removed when the key is no longer on the timeline
|
|
14
|
+
*/
|
|
15
|
+
setTimelineDatastoreValue(key: string, value: any, mode: DatastorePersistenceMode): Promise<void>;
|
|
16
|
+
/** Deletes a previously set value from the datastore */
|
|
17
|
+
removeTimelineDatastoreValue(key: string): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export interface IActionExecutionContext extends IShowStyleUserContext, IEventContext, IDataStoreActionExecutionContext, IPartAndPieceActionContext, IExecuteTSRActionsContext {
|
|
20
|
+
/** Fetch the showstyle config for the specified part */
|
|
21
|
+
/** Move the next part through the rundown. Can move by either a number of parts, or segments in either direction. */
|
|
22
|
+
moveNextPart(partDelta: number, segmentDelta: number): Promise<void>;
|
|
23
|
+
/** Set flag to perform take after executing the current action. Returns state of the flag after each call. */
|
|
24
|
+
takeAfterExecuteAction(take: boolean): Promise<boolean>;
|
|
25
|
+
/** Inform core that a take out of the current partinstance should be blocked until the specified time */
|
|
26
|
+
blockTakeUntil(time: Time | null): Promise<void>;
|
|
27
|
+
/** Insert a queued part to follow the current part */
|
|
28
|
+
queuePart(part: IBlueprintPart, pieces: IBlueprintPiece[]): Promise<IBlueprintPartInstance>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=adlibActionContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adlibActionContext.d.ts","sourceRoot":"","sources":["../../src/context/adlibActionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AACtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,IAAI,CAAA;AAE5E,cAAc;AACd,MAAM,WAAW,gCAAiC,SAAQ,qBAAqB,EAAE,aAAa;IAC7F;;;;;OAKG;IACH,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACjG,wDAAwD;IACxD,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACxD;AAED,MAAM,WAAW,uBAChB,SAAQ,qBAAqB,EAC5B,aAAa,EACb,gCAAgC,EAChC,0BAA0B,EAC1B,yBAAyB;IAC1B,wDAAwD;IAGxD,qHAAqH;IACrH,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACpE,8GAA8G;IAC9G,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IACvD,yGAAyG;IACzG,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhD,sDAAsD;IACtD,SAAS,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAA;CAM3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adlibActionContext.js","sourceRoot":"","sources":["../../src/context/adlibActionContext.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base context type that all others should extend from.
|
|
3
|
+
* This is to provide logging and some other utilities
|
|
4
|
+
*/
|
|
5
|
+
export interface ICommonContext {
|
|
6
|
+
/**
|
|
7
|
+
* Hash a string. Will return a unique string, to be used for all _id:s that are to be inserted in database
|
|
8
|
+
* @param originString A representation of the origin of the hash (for logging)
|
|
9
|
+
* @param originIsNotUnique If the originString is not guaranteed to be unique, set this to true
|
|
10
|
+
*/
|
|
11
|
+
getHashId: (originString: string, originIsNotUnique?: boolean) => string;
|
|
12
|
+
/** Un-hash, is return the string that created the hash */
|
|
13
|
+
unhashId: (hash: string) => string;
|
|
14
|
+
/** Log a message to the sofie log with level 'debug' */
|
|
15
|
+
logDebug: (message: string) => void;
|
|
16
|
+
/** Log a message to the sofie log with level 'info' */
|
|
17
|
+
logInfo: (message: string) => void;
|
|
18
|
+
/** Log a message to the sofie log with level 'warn' */
|
|
19
|
+
logWarning: (message: string) => void;
|
|
20
|
+
/** Log a message to the sofie log with level 'error' */
|
|
21
|
+
logError: (message: string) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function isCommonContext(obj: unknown): obj is ICommonContext;
|
|
24
|
+
export interface IUserNotesContext extends ICommonContext {
|
|
25
|
+
/** Display a notification to the user of an error */
|
|
26
|
+
notifyUserError(message: string, params?: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}): void;
|
|
29
|
+
/** Display a notification to the user of an warning */
|
|
30
|
+
notifyUserWarning(message: string, params?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}): void;
|
|
33
|
+
/** Display a notification to the user of a note */
|
|
34
|
+
notifyUserInfo(message: string, params?: {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}): void;
|
|
37
|
+
}
|
|
38
|
+
export declare function isUserNotesContext(obj: unknown): obj is IUserNotesContext;
|
|
39
|
+
//# sourceMappingURL=baseContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseContext.d.ts","sourceRoot":"","sources":["../../src/context/baseContext.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B;;;;OAIG;IACH,SAAS,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,OAAO,KAAK,MAAM,CAAA;IACxE,0DAA0D;IAC1D,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;IAElC,wDAAwD;IACxD,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,uDAAuD;IACvD,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,uDAAuD;IACvD,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,wDAAwD;IACxD,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,K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AAfD,0CAeC;AAWD,SAAgB,kBAAkB,CAAC,GAAY;IAC9C,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE;QAC1B,OAAO,KAAK,CAAA;KACZ;IAED,6DAA6D;IAC7D,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,GAAwB,CAAA;IAEvF,OAAO,CACN,OAAO,eAAe,KAAK,UAAU;QACrC,OAAO,iBAAiB,KAAK,UAAU;QACvC,OAAO,cAAc,KAAK,UAAU,CACpC,CAAA;AACF,CAAC;AAbD,gDAaC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { OnGenerateTimelineObj, TSR } from '../timeline';
|
|
2
|
+
import type { IBlueprintPartInstance, IBlueprintPieceInstance, IBlueprintSegmentDB } from '../documents';
|
|
3
|
+
import type { IRundownContext } from './rundownContext';
|
|
4
|
+
import type { IBlueprintExternalMessageQueueObj } from '../message';
|
|
5
|
+
export interface IEventContext {
|
|
6
|
+
getCurrentTime(): number;
|
|
7
|
+
}
|
|
8
|
+
export interface ITimelineEventContext extends IEventContext, IRundownContext {
|
|
9
|
+
readonly currentPartInstance: Readonly<IBlueprintPartInstance> | undefined;
|
|
10
|
+
readonly nextPartInstance: Readonly<IBlueprintPartInstance> | undefined;
|
|
11
|
+
readonly previousPartInstance: Readonly<IBlueprintPartInstance> | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Get the full session id for an ab playback session.
|
|
14
|
+
* Note: sessionName should be unique within the segment unless pieces want to share a session
|
|
15
|
+
* @deprecated use the core provided AB implementation instead
|
|
16
|
+
*/
|
|
17
|
+
getPieceABSessionId(piece: IBlueprintPieceInstance, sessionName: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Get the full session id for a timelineobject that belongs to an ab playback session
|
|
20
|
+
* sessionName should also be used in calls to getPieceABSessionId for the owning piece
|
|
21
|
+
* @deprecated use the core provided AB implementation instead
|
|
22
|
+
*/
|
|
23
|
+
getTimelineObjectAbSessionId(obj: OnGenerateTimelineObj<TSR.TSRTimelineContent, any, any>, sessionName: string): string | undefined;
|
|
24
|
+
}
|
|
25
|
+
export interface IPartEventContext extends IEventContext, IRundownContext {
|
|
26
|
+
readonly part: Readonly<IBlueprintPartInstance>;
|
|
27
|
+
}
|
|
28
|
+
export interface IRundownDataChangedEventContext extends IEventContext, IRundownContext {
|
|
29
|
+
formatDateAsTimecode(time: number): string;
|
|
30
|
+
formatDurationAsTimecode(time: number): string;
|
|
31
|
+
/** Get all unsent and queued messages in the rundown */
|
|
32
|
+
getAllUnsentQueuedMessages(): Promise<Readonly<IBlueprintExternalMessageQueueObj[]>>;
|
|
33
|
+
}
|
|
34
|
+
export interface IRundownTimingEventContext extends IRundownDataChangedEventContext {
|
|
35
|
+
readonly previousPart: Readonly<IBlueprintPartInstance> | undefined;
|
|
36
|
+
readonly currentPart: Readonly<IBlueprintPartInstance>;
|
|
37
|
+
readonly nextPart: Readonly<IBlueprintPartInstance> | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the first PartInstance in the Rundown within the current playlist activation.
|
|
40
|
+
* This allows for a start time for the Rundown to be determined
|
|
41
|
+
* @param allowUntimed Whether to consider a Part which has the untimed property set
|
|
42
|
+
*/
|
|
43
|
+
getFirstPartInstanceInRundown(allowUntimed?: boolean): Promise<Readonly<IBlueprintPartInstance>>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the partInstances in the Segment, limited to the playthrough of the segment that refPartInstance is part of
|
|
46
|
+
* @param refPartInstance PartInstance to use as the basis of the search
|
|
47
|
+
*/
|
|
48
|
+
getPartInstancesInSegmentPlayoutId(refPartInstance: Readonly<IBlueprintPartInstance>): Promise<Readonly<IBlueprintPartInstance[]>>;
|
|
49
|
+
/**
|
|
50
|
+
* Returns pieces in a partInstance
|
|
51
|
+
* @param id Id of partInstance to fetch items in
|
|
52
|
+
*/
|
|
53
|
+
getPieceInstances(...partInstanceIds: string[]): Promise<Readonly<IBlueprintPieceInstance[]>>;
|
|
54
|
+
/**
|
|
55
|
+
* Returns a segment
|
|
56
|
+
* @param id Id of segment to fetch
|
|
57
|
+
*/
|
|
58
|
+
getSegment(id: string): Promise<Readonly<IBlueprintSegmentDB> | undefined>;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=eventContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventContext.d.ts","sourceRoot":"","sources":["../../src/context/eventContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AACxG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAA;AAEnE,MAAM,WAAW,aAAa;IAC7B,cAAc,IAAI,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,qBAAsB,SAAQ,aAAa,EAAE,eAAe;IAC5E,QAAQ,CAAC,mBAAmB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAA;IAC1E,QAAQ,CAAC,gBAAgB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAA;IACvE,QAAQ,CAAC,oBAAoB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAA;IAE3E;;;;OAIG;IACH,mBAAmB,CAAC,KAAK,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;IAChF;;;;OAIG;IACH,4BAA4B,CAC3B,GAAG,EAAE,qBAAqB,CAAC,GAAG,CAAC,kBAAkB,EAAE,GAAG,EAAE,GAAG,CAAC,EAC5D,WAAW,EAAE,MAAM,GACjB,MAAM,GAAG,SAAS,CAAA;CACrB;AAED,MAAM,WAAW,iBAAkB,SAAQ,aAAa,EAA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
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PeripheralDeviceId } from '@sofie-automation/shared-lib/dist/core/model/Ids';
|
|
2
|
+
import { IBlueprintPlayoutDevice, TSR } from '..';
|
|
3
|
+
export interface IExecuteTSRActionsContext {
|
|
4
|
+
/** Returns a list of the PeripheralDevices */
|
|
5
|
+
listPlayoutDevices(): Promise<IBlueprintPlayoutDevice[]>;
|
|
6
|
+
/** Execute an action on a certain PeripheralDevice */
|
|
7
|
+
executeTSRAction(deviceId: PeripheralDeviceId, actionId: string, payload: Record<string, any>): Promise<TSR.ActionExecutionResult>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=executeTsrActionContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeTsrActionContext.d.ts","sourceRoot":"","sources":["../../src/context/executeTsrActionContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,GAAG,EAAE,MAAM,IAAI,CAAA;AAEjD,MAAM,WAAW,yBAAyB;IACzC,8CAA8C;IAC9C,kBAAkB,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAAA;IACxD,sDAAsD;IACtD,gBAAgB,CACf,QAAQ,EAAE,kBAAkB,EAC5B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC1B,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeTsrActionContext.js","sourceRoot":"","sources":["../../src/context/executeTsrActionContext.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { IBlueprintConfig } from '../common';
|
|
2
|
+
import type { ITranslatableMessage } from '../translations';
|
|
3
|
+
import type { ICommonContext } from './baseContext';
|
|
4
|
+
export interface IFixUpConfigContext<TConfig = IBlueprintConfig> extends ICommonContext {
|
|
5
|
+
/**
|
|
6
|
+
* Get the current config, with any unsaved changes applied
|
|
7
|
+
*/
|
|
8
|
+
getConfig(): TConfig;
|
|
9
|
+
/**
|
|
10
|
+
* List all paths with values
|
|
11
|
+
*/
|
|
12
|
+
listPaths(): string[];
|
|
13
|
+
/**
|
|
14
|
+
* List all paths with values that don't align with the current config structure
|
|
15
|
+
*/
|
|
16
|
+
listInvalidPaths(): string[];
|
|
17
|
+
/**
|
|
18
|
+
* Check if there are any values for the specified path
|
|
19
|
+
* @param path Object path prefix to check
|
|
20
|
+
*/
|
|
21
|
+
hasOperations(path: string): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Add a new user defined set operation for the specified path
|
|
24
|
+
* @param path Exact object path to be set
|
|
25
|
+
* @param value Value to be stored
|
|
26
|
+
*/
|
|
27
|
+
addSetOperation(path: string, value: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Add a new user defined delete operation for the specified path
|
|
30
|
+
* @param path Exact object path to be deleted
|
|
31
|
+
*/
|
|
32
|
+
addDeleteOperation(path: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* Remove operations for a path
|
|
35
|
+
* All nested operations within the path will removed
|
|
36
|
+
* @param path Object path prefix to be removed (`a` will match `a` and `a.b`)
|
|
37
|
+
*/
|
|
38
|
+
removeOperations(path: string): void;
|
|
39
|
+
/**
|
|
40
|
+
* Rename operations for a path
|
|
41
|
+
* All nested operations within the path will renamed
|
|
42
|
+
* eg `a` will match `a` and `a.b`
|
|
43
|
+
* @param fromPath Object path prefix to be renamed (`a` will match `a` and `a.b`)
|
|
44
|
+
* @param toPath Object path prefix to be substituted
|
|
45
|
+
*/
|
|
46
|
+
renameOperations(fromPath: string, toPath: string): void;
|
|
47
|
+
/**
|
|
48
|
+
* Show a warning to the user about a change that they will need to convert/migrate manually
|
|
49
|
+
* This will be persisted until the next call to `applyConfig`
|
|
50
|
+
* @param path Object path prefix the message is related to
|
|
51
|
+
* @param message Message to show to the user
|
|
52
|
+
*/
|
|
53
|
+
warnUnfixable(path: string, message: ITranslatableMessage): void;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=fixUpConfigContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixUpConfigContext.d.ts","sourceRoot":"","sources":["../../src/context/fixUpConfigContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,WAAW,mBAAmB,CAAC,OAAO,GAAG,gBAAgB,CAAE,SAAQ,cAAc;IACtF;;OAEG;IACH,SAAS,IAAI,OAAO,CAAA;IAEpB;;OAEG;IACH,SAAS,IAAI,MAAM,EAAE,CAAA;IAErB;;OAEG;IACH,gBAAgB,IAAI,MAAM,EAAE,CAAA;IAE5B;;;OAGG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;IAEpC;;;;OAIG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAA;IAC/C;;;OAGG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAEtC;;;;OAIG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAEpC;;;;;;OAMG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IAMxD;;;;;OAKG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAA;CAChE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixUpConfigContext.js","sourceRoot":"","sources":["../../src/context/fixUpConfigContext.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './adlibActionContext';
|
|
2
|
+
export * from './baseContext';
|
|
3
|
+
export * from './eventContext';
|
|
4
|
+
export * from './fixUpConfigContext';
|
|
5
|
+
export * from './onSetAsNextContext';
|
|
6
|
+
export * from './onTakeContext';
|
|
7
|
+
export * from './packageInfoContext';
|
|
8
|
+
export * from './rundownContext';
|
|
9
|
+
export * from './showStyleContext';
|
|
10
|
+
export * from './studioContext';
|
|
11
|
+
export * from './syncIngestChangesContext';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./adlibActionContext"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./baseContext"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./eventContext"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./fixUpConfigContext"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./onSetAsNextContext"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./onTakeContext"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./packageInfoContext"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./rundownContext"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./showStyleContext"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./studioContext"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./syncIngestChangesContext"), exports);
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":";;;AAAA,+DAAoC;AACpC,wDAA6B;AAC7B,yDAA8B;AAC9B,+DAAoC;AACpC,+DAAoC;AACpC,0DAA+B;AAC/B,+DAAoC;AACpC,2DAAgC;AAChC,6DAAkC;AAClC,0DAA+B;AAC/B,qEAA0C"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IBlueprintMutatablePart, IBlueprintPart, IBlueprintPartInstance, IBlueprintPiece, IBlueprintPieceDB, IBlueprintPieceInstance, IBlueprintResolvedPieceInstance, IEventContext, IShowStyleUserContext } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Context in which 'current' is the part currently on air, and 'next' is the partInstance being set as Next
|
|
4
|
+
* This is similar to `IPartAndPieceActionContext`, but has more limits on what is allowed to be changed.
|
|
5
|
+
*/
|
|
6
|
+
export interface IOnSetAsNextContext extends IShowStyleUserContext, IEventContext {
|
|
7
|
+
/**
|
|
8
|
+
* Data fetching
|
|
9
|
+
*/
|
|
10
|
+
/** Get a PartInstance which can be modified */
|
|
11
|
+
getPartInstance(part: 'current' | 'next'): Promise<IBlueprintPartInstance | undefined>;
|
|
12
|
+
/** Get the PieceInstances for a modifiable PartInstance */
|
|
13
|
+
getPieceInstances(part: 'current' | 'next'): Promise<IBlueprintPieceInstance[]>;
|
|
14
|
+
/** Get the resolved PieceInstances for a modifiable PartInstance */
|
|
15
|
+
getResolvedPieceInstances(part: 'current' | 'next'): Promise<IBlueprintResolvedPieceInstance[]>;
|
|
16
|
+
/** Get the last active piece on given layer */
|
|
17
|
+
findLastPieceOnLayer(sourceLayerId: string | string[], options?: {
|
|
18
|
+
excludeCurrentPart?: boolean;
|
|
19
|
+
originalOnly?: boolean;
|
|
20
|
+
piecePrivateDataFilter?: any;
|
|
21
|
+
}): Promise<IBlueprintPieceInstance | undefined>;
|
|
22
|
+
/** Get the previous scripted piece on a given layer, looking backwards from the current part. */
|
|
23
|
+
findLastScriptedPieceOnLayer(sourceLayerId: string | string[], options?: {
|
|
24
|
+
excludeCurrentPart?: boolean;
|
|
25
|
+
piecePrivateDataFilter?: any;
|
|
26
|
+
}): Promise<IBlueprintPiece | undefined>;
|
|
27
|
+
/** Gets the PartInstance for a PieceInstance retrieved from findLastPieceOnLayer. This primarily allows for accessing metadata of the PartInstance */
|
|
28
|
+
getPartInstanceForPreviousPiece(piece: IBlueprintPieceInstance): Promise<IBlueprintPartInstance>;
|
|
29
|
+
/** Gets the Part for a Piece retrieved from findLastScriptedPieceOnLayer. This primarily allows for accessing metadata of the Part */
|
|
30
|
+
getPartForPreviousPiece(piece: IBlueprintPieceDB): Promise<IBlueprintPart | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* Creative actions
|
|
33
|
+
*/
|
|
34
|
+
/** Insert a pieceInstance. Returns id of new PieceInstance. Any timelineObjects will have their ids changed, so are not safe to reference from another piece */
|
|
35
|
+
insertPiece(part: 'next', piece: IBlueprintPiece): Promise<IBlueprintPieceInstance>;
|
|
36
|
+
/** Update a piecesInstance from the partInstance being set as Next */
|
|
37
|
+
updatePieceInstance(pieceInstanceId: string, piece: Partial<IBlueprintPiece>): Promise<IBlueprintPieceInstance>;
|
|
38
|
+
/** Update a partInstance */
|
|
39
|
+
updatePartInstance(part: 'current' | 'next', props: Partial<IBlueprintMutatablePart>): Promise<IBlueprintPartInstance>;
|
|
40
|
+
/**
|
|
41
|
+
* Destructive actions
|
|
42
|
+
*/
|
|
43
|
+
/** 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 */
|
|
44
|
+
removePieceInstances(part: 'next', pieceInstanceIds: string[]): Promise<string[]>;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=onSetAsNextContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onSetAsNextContext.d.ts","sourceRoot":"","sources":["../../src/context/onSetAsNextContext.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,+BAA+B,EAC/B,aAAa,EACb,qBAAqB,EACrB,MAAM,IAAI,CAAA;AAEX;;;GAGG;AACH,MAAM,WAAW,mBAAoB,SAAQ,qBAAqB,EAAE,aAAa;IAChF;;OAEG;IACH,+CAA+C;IAC/C,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAA;IACtF,2DAA2D;IAC3D,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAAA;IAC/E,oEAAoE;IACpE,yBAAyB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,+BAA+B,EAAE,CAAC,CAAA;IAC/F,+CAA+C;IAC/C,oBAAoB,CACnB,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,EAChC,OAAO,CAAC,EAAE;QACT,kBAAkB,CAAC,EAAE,OAAO,CAAA;QAC5B,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB,sBAAsB,CAAC,EAAE,GAAG,CAAA;KAC5B,GACC,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAAA;IAC/C,iGAAiG;IACjG,4BAA4B,CAC3B,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,EAChC,OAAO,CAAC,EAAE;QACT,kBAAkB,CAAC,EAAE,OAAO,CAAA;QAC5B,sBAAsB,CAAC,EAAE,GAAG,CAAA;KAC5B,GACC,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAAA;IACvC,sJAAsJ;IACtJ,+BAA+B,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAChG,sIAAsI;IACtI,uBAAuB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAA;IAEtF;;OAEG;IACH,gKAAgK;IAChK,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;IACnF,sEAAsE;IACtE,mBAAmB,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;IAE/G,4BAA4B;IAC5B,kBAAkB,CACjB,IAAI,EAAE,SAAS,GAAG,MAAM,EACxB,KAAK,EAAE,OAAO,CAAC,uBAAuB,CAAC,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAElC;;OAEG;IACH,6MAA6M;IAC7M,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;CACjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onSetAsNextContext.js","sourceRoot":"","sources":["../../src/context/onSetAsNextContext.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IEventContext, IShowStyleUserContext, Time } from '..';
|
|
2
|
+
import { IPartAndPieceActionContext } from './partsAndPieceActionContext';
|
|
3
|
+
import { IExecuteTSRActionsContext } from './executeTsrActionContext';
|
|
4
|
+
/**
|
|
5
|
+
* Context in which 'current' is the partInstance we're leaving, and 'next' is the partInstance we're taking
|
|
6
|
+
*/
|
|
7
|
+
export interface IOnTakeContext extends IPartAndPieceActionContext, IShowStyleUserContext, IEventContext, IExecuteTSRActionsContext {
|
|
8
|
+
/** Inform core that a take out of the taken partinstance should be blocked until the specified time */
|
|
9
|
+
blockTakeUntil(time: Time | null): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Prevent the take.
|
|
12
|
+
* All modifications to the pieceInstances and partInstance done through this context will be persisted,
|
|
13
|
+
* but the next part will not be taken.
|
|
14
|
+
*/
|
|
15
|
+
abortTake(): void;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=onTakeContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onTakeContext.d.ts","sourceRoot":"","sources":["../../src/context/onTakeContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AAErE;;GAEG;AACH,MAAM,WAAW,cAChB,SAAQ,0BAA0B,EACjC,qBAAqB,EACrB,aAAa,EACb,yBAAyB;IAC1B,uGAAuG;IACvG,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAChD;;;;OAIG;IACH,SAAS,IAAI,IAAI,CAAA;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onTakeContext.js","sourceRoot":"","sources":["../../src/context/onTakeContext.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PackageInfo } from '../packageInfo';
|
|
2
|
+
export interface IPackageInfoContext {
|
|
3
|
+
/**
|
|
4
|
+
* Get the PackageInfo items for an ExpectedPackage, if any have been reported by the package manager.
|
|
5
|
+
* Only info for packages with the `listenToPackageInfoUpdates` property set to true can be returned.
|
|
6
|
+
* The possible packageIds are scoped based on the ownership of the package.
|
|
7
|
+
* eg, baseline packages can be accessed when generating the baseline objects, piece/adlib packages can be access when regenerating the segment they are from
|
|
8
|
+
*/
|
|
9
|
+
getPackageInfo: (packageId: string) => Readonly<PackageInfo.Any[]>;
|
|
10
|
+
hackGetMediaObjectDuration: (mediaId: string) => Promise<number | undefined>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=packageInfoContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageInfoContext.d.ts","sourceRoot":"","sources":["../../src/context/packageInfoContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,WAAW,mBAAmB;IACnC;;;;;OAKG;IACH,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAA;IAClE,0BAA0B,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;CAC5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageInfoContext.js","sourceRoot":"","sources":["../../src/context/packageInfoContext.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IBlueprintMutatablePart, IBlueprintPart, IBlueprintPartInstance, IBlueprintPiece, IBlueprintPieceDB, IBlueprintPieceInstance, IBlueprintResolvedPieceInstance, Time } from '..';
|
|
2
|
+
export interface IPartAndPieceActionContext {
|
|
3
|
+
/**
|
|
4
|
+
* Data fetching
|
|
5
|
+
*/
|
|
6
|
+
/** Get a PartInstance which can be modified */
|
|
7
|
+
getPartInstance(part: 'current' | 'next'): Promise<IBlueprintPartInstance | undefined>;
|
|
8
|
+
/** Get the PieceInstances for a modifiable PartInstance */
|
|
9
|
+
getPieceInstances(part: 'current' | 'next'): Promise<IBlueprintPieceInstance[]>;
|
|
10
|
+
/** Get the resolved PieceInstances for a modifiable PartInstance */
|
|
11
|
+
getResolvedPieceInstances(part: 'current' | 'next'): Promise<IBlueprintResolvedPieceInstance[]>;
|
|
12
|
+
/** Get the last active piece on given layer */
|
|
13
|
+
findLastPieceOnLayer(sourceLayerId: string | string[], options?: {
|
|
14
|
+
excludeCurrentPart?: boolean;
|
|
15
|
+
originalOnly?: boolean;
|
|
16
|
+
piecePrivateDataFilter?: any;
|
|
17
|
+
}): Promise<IBlueprintPieceInstance | undefined>;
|
|
18
|
+
/** Get the previous scripted piece on a given layer, looking backwards from the current part. */
|
|
19
|
+
findLastScriptedPieceOnLayer(sourceLayerId: string | string[], options?: {
|
|
20
|
+
excludeCurrentPart?: boolean;
|
|
21
|
+
piecePrivateDataFilter?: any;
|
|
22
|
+
}): Promise<IBlueprintPiece | undefined>;
|
|
23
|
+
/** Gets the PartInstance for a PieceInstance retrieved from findLastPieceOnLayer. This primarily allows for accessing metadata of the PartInstance */
|
|
24
|
+
getPartInstanceForPreviousPiece(piece: IBlueprintPieceInstance): Promise<IBlueprintPartInstance>;
|
|
25
|
+
/** Gets the Part for a Piece retrieved from findLastScriptedPieceOnLayer. This primarily allows for accessing metadata of the Part */
|
|
26
|
+
getPartForPreviousPiece(piece: IBlueprintPieceDB): Promise<IBlueprintPart | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* Creative actions
|
|
29
|
+
*/
|
|
30
|
+
/** Insert a pieceInstance. Returns id of new PieceInstance. Any timelineObjects will have their ids changed, so are not safe to reference from another piece */
|
|
31
|
+
insertPiece(part: 'current' | 'next', piece: IBlueprintPiece): Promise<IBlueprintPieceInstance>;
|
|
32
|
+
/** Update a piecesInstance */
|
|
33
|
+
updatePieceInstance(pieceInstanceId: string, piece: Partial<IBlueprintPiece>): Promise<IBlueprintPieceInstance>;
|
|
34
|
+
/** Update a partInstance */
|
|
35
|
+
updatePartInstance(part: 'current' | 'next', props: Partial<IBlueprintMutatablePart>): Promise<IBlueprintPartInstance>;
|
|
36
|
+
/** Inform core that a take out of the partinstance should be blocked until the specified time */
|
|
37
|
+
blockTakeUntil(time: Time | null): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Destructive actions
|
|
40
|
+
*/
|
|
41
|
+
/** Stop any piecesInstances on the specified sourceLayers. Returns ids of piecesInstances that were affected */
|
|
42
|
+
stopPiecesOnLayers(sourceLayerIds: string[], timeOffset?: number): Promise<string[]>;
|
|
43
|
+
/** Stop piecesInstances by id. Returns ids of piecesInstances that were removed */
|
|
44
|
+
stopPieceInstances(pieceInstanceIds: string[], timeOffset?: number): Promise<string[]>;
|
|
45
|
+
/** 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 */
|
|
46
|
+
removePieceInstances(part: 'next', pieceInstanceIds: string[]): Promise<string[]>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=partsAndPieceActionContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partsAndPieceActionContext.d.ts","sourceRoot":"","sources":["../../src/context/partsAndPieceActionContext.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,+BAA+B,EAC/B,IAAI,EACJ,MAAM,IAAI,CAAA;AAEX,MAAM,WAAW,0BAA0B;IAC1C;;OAEG;IACH,+CAA+C;IAC/C,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAA;IACtF,2DAA2D;IAC3D,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAAA;IAC/E,oEAAoE;IACpE,yBAAyB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,+BAA+B,EAAE,CA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hD;;OAEG;IACH,gHAAgH;IAChH,kBAAkB,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;IACpF,mFAAmF;IACnF,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;IACtF,6MAA6M;IAC7M,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;CACjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partsAndPieceActionContext.js","sourceRoot":"","sources":["../../src/context/partsAndPieceActionContext.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { IBlueprintSegmentRundown } from '../documents';
|
|
2
|
+
import type { IUserNotesContext } from './baseContext';
|
|
3
|
+
import type { IPackageInfoContext } from './packageInfoContext';
|
|
4
|
+
import type { IShowStyleContext } from './showStyleContext';
|
|
5
|
+
import { IExecuteTSRActionsContext } from './executeTsrActionContext';
|
|
6
|
+
export interface IRundownContext extends IShowStyleContext {
|
|
7
|
+
readonly rundownId: string;
|
|
8
|
+
readonly playlistId: string;
|
|
9
|
+
readonly rundown: Readonly<IBlueprintSegmentRundown>;
|
|
10
|
+
}
|
|
11
|
+
export interface IRundownUserContext extends IUserNotesContext, IRundownContext {
|
|
12
|
+
}
|
|
13
|
+
export interface IRundownActivationContext extends IRundownContext, IExecuteTSRActionsContext {
|
|
14
|
+
}
|
|
15
|
+
export interface ISegmentUserContext extends IUserNotesContext, IRundownContext, IPackageInfoContext {
|
|
16
|
+
/** Display a notification to the user of an error */
|
|
17
|
+
notifyUserError: (message: string, params?: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}, partExternalId?: string) => void;
|
|
20
|
+
/** Display a notification to the user of an warning */
|
|
21
|
+
notifyUserWarning: (message: string, params?: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}, partExternalId?: string) => void;
|
|
24
|
+
/** Display a notification to the user of a note */
|
|
25
|
+
notifyUserInfo: (message: string, params?: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}, partExternalId?: string) => void;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=rundownContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rundownContext.d.ts","sourceRoot":"","sources":["../../src/context/rundownContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AAErE,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACzD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,wBAAwB,CAAC,CAAA;CACpD;AAED,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB,EAAE,eAAe;CAAG;AAElF,MAAM,WAAW,yBAA0B,SAAQ,eAAe,EAAE,yBAAyB;CAAG;AAEhG,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB,EAAE,eAAe,EAAE,mBAAmB;IACnG,qDAAqD;IACrD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAAE,cAAc,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACpG,uDAAuD;IACvD,iBAAiB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAAE,cAAc,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACtG,mDAAmD;IACnD,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAAE,cAAc,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CACnG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rundownContext.js","sourceRoot":"","sources":["../../src/context/rundownContext.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { IOutputLayer, ISourceLayer } from '../showStyle';
|
|
2
|
+
import type { IBlueprintRundownPlaylist } from '../documents';
|
|
3
|
+
import type { ICommonContext, IUserNotesContext } from './baseContext';
|
|
4
|
+
import type { IPackageInfoContext } from './packageInfoContext';
|
|
5
|
+
import type { IStudioContext } from './studioContext';
|
|
6
|
+
export interface IShowStyleContext extends ICommonContext, IStudioContext {
|
|
7
|
+
/** Returns a ShowStyle blueprint config. If ShowStyleBlueprintManifest.preprocessConfig is provided, a config preprocessed by that function is returned, otherwise it is returned unprocessed */
|
|
8
|
+
getShowStyleConfig: () => unknown;
|
|
9
|
+
/** Returns a reference to a showStyle config value, that can later be resolved in Core */
|
|
10
|
+
getShowStyleConfigRef(configKey: string): string;
|
|
11
|
+
/** Get source layers for the ShowStyle */
|
|
12
|
+
getShowStyleSourceLayers(): Record<string, ISourceLayer | undefined>;
|
|
13
|
+
/** Get output layers for the ShowStyle */
|
|
14
|
+
getShowStyleOutputLayers(): Record<string, IOutputLayer | undefined>;
|
|
15
|
+
}
|
|
16
|
+
export interface IShowStyleUserContext extends IUserNotesContext, IShowStyleContext, IPackageInfoContext {
|
|
17
|
+
}
|
|
18
|
+
export interface IGetRundownContext extends IShowStyleUserContext {
|
|
19
|
+
/** Returns a list of the Playlists in the studio */
|
|
20
|
+
getPlaylists: () => Promise<Readonly<IBlueprintRundownPlaylist[]>>;
|
|
21
|
+
/** Returns the Playlist in which the Rundown currently is in. If it's a new Rundown, this will return undefined. */
|
|
22
|
+
getCurrentPlaylist: () => Promise<Readonly<IBlueprintRundownPlaylist> | undefined>;
|
|
23
|
+
/** Returns a randomized string, intended to be used as ids. */
|
|
24
|
+
getRandomId: () => string;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=showStyleContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showStyleContext.d.ts","sourceRoot":"","sources":["../../src/context/showStyleContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,MAAM,WAAW,iBAAkB,SAAQ,cAAc,EAAE,cAAc;IACxE,iMAAiM;IACjM,kBAAkB,EAAE,MAAM,OAAO,CAAA;IACjC,0FAA0F;IAC1F,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;IAChD,2CAA2C;IAC3C,wBAAwB,IAAI,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC,CAAA;IACpE,2CAA2C;IAC3C,wBAAwB,IAAI,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC,CAAA;CACpE;AAED,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB;CAAG;AAE3G,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAChE,oDAAoD;IACpD,YAAY,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAAA;IAClE,oHAAoH;IACpH,kBAAkB,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC,CAAA;IAClF,+DAA+D;IAC/D,WAAW,EAAE,MAAM,MAAM,CAAA;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showStyleContext.js","sourceRoot":"","sources":["../../src/context/showStyleContext.ts"],"names":[],"mappings":""}
|