diff --git a/packages/blueprints-integration/src/ingest.ts b/packages/blueprints-integration/src/ingest.ts index 09e68557dd..ff5cf74b4c 100644 --- a/packages/blueprints-integration/src/ingest.ts +++ b/packages/blueprints-integration/src/ingest.ts @@ -255,7 +255,10 @@ export interface MutableIngestRundown(key: TKey, value: TRundownPayload[TKey]): void + setPayloadProperty( + key: TKey, + value: ReadonlyDeep | TRundownPayload[TKey] + ): void setUserEditState(key: string, value: boolean): void } @@ -339,7 +342,10 @@ export interface MutableIngestSegment(key: TKey, value: TSegmentPayload[TKey]): void + setPayloadProperty( + key: TKey, + value: ReadonlyDeep | TSegmentPayload[TKey] + ): void setUserEditState(key: string, value: boolean): void } @@ -373,7 +379,10 @@ export interface MutableIngestPart { * @param key the key of the payload to update * @param value the new value */ - setPayloadProperty(key: TKey, value: TPartPayload[TKey]): void + setPayloadProperty( + key: TKey, + value: ReadonlyDeep | TPartPayload[TKey] + ): void setUserEditState(key: string, value: boolean): void } diff --git a/packages/job-worker/src/blueprints/ingest/MutableIngestPartImpl.ts b/packages/job-worker/src/blueprints/ingest/MutableIngestPartImpl.ts index 489b00f353..0003413b0c 100644 --- a/packages/job-worker/src/blueprints/ingest/MutableIngestPartImpl.ts +++ b/packages/job-worker/src/blueprints/ingest/MutableIngestPartImpl.ts @@ -42,7 +42,10 @@ export class MutableIngestPartImpl implements MutableIng } } - setPayloadProperty(key: TKey, value: TPartPayload[TKey]): void { + setPayloadProperty( + key: TKey, + value: ReadonlyDeep | TPartPayload[TKey] + ): void { if (!this.#ingestPart.payload) { throw new Error('Part payload is not set') } diff --git a/packages/job-worker/src/blueprints/ingest/MutableIngestRundownImpl.ts b/packages/job-worker/src/blueprints/ingest/MutableIngestRundownImpl.ts index 8cefec9a69..b6078e6903 100644 --- a/packages/job-worker/src/blueprints/ingest/MutableIngestRundownImpl.ts +++ b/packages/job-worker/src/blueprints/ingest/MutableIngestRundownImpl.ts @@ -103,7 +103,10 @@ export class MutableIngestRundownImpl(key: TKey, value: TRundownPayload[TKey]): void { + setPayloadProperty( + key: TKey, + value: ReadonlyDeep | TRundownPayload[TKey] + ): void { if (!this.ingestRundown.payload) { throw new Error('Rundown payload is not set') } diff --git a/packages/job-worker/src/blueprints/ingest/MutableIngestSegmentImpl.ts b/packages/job-worker/src/blueprints/ingest/MutableIngestSegmentImpl.ts index 8de76a1626..ba91a21e73 100644 --- a/packages/job-worker/src/blueprints/ingest/MutableIngestSegmentImpl.ts +++ b/packages/job-worker/src/blueprints/ingest/MutableIngestSegmentImpl.ts @@ -191,7 +191,10 @@ export class MutableIngestSegmentImpl(key: TKey, value: TSegmentPayload[TKey]): void { + setPayloadProperty( + key: TKey, + value: ReadonlyDeep | TSegmentPayload[TKey] + ): void { if (!this.#ingestSegment.payload) { throw new Error('Segment payload is not set') }