@@ -37,6 +37,7 @@ import {
37
37
} from '@sofie-automation/shared-lib/dist/core/model/Ids'
38
38
import { BlueprintId , BucketId , RundownPlaylistActivationId , SegmentId , ShowStyleVariantId } from './dataModel/Ids'
39
39
import { PackageInfoDB } from './dataModel/PackageInfos'
40
+ import { Bucket } from './dataModel/Bucket'
40
41
41
42
/**
42
43
* Ids of possible DDP subscriptions for any the UI and gateways accessing the Rundown & RundownPlaylist model.
@@ -135,12 +136,16 @@ export enum CorelibPubSub {
135
136
packageContainerStatuses = 'packageContainerStatuses' ,
136
137
137
138
/**
138
- * Fetch all bucket adlib pieces for the specified Studio and Bucket.
139
+ * Fetch either all buckets for the given Studio, or the Bucket specified.
140
+ */
141
+ buckets = 'buckets' ,
142
+ /**
143
+ * Fetch all bucket adlib pieces for the specified Studio and Bucket (or all buckets in a Studio).
139
144
* The result will be limited to ones valid to the ShowStyleVariants specified, as well as ones marked as valid in any ShowStyleVariant
140
145
*/
141
146
bucketAdLibPieces = 'bucketAdLibPieces' ,
142
147
/**
143
- * Fetch all bucket adlib action for the specified Studio and Bucket.
148
+ * Fetch all bucket adlib action for the specified Studio and Bucket (or all buckets in a Studio) .
144
149
* The result will be limited to ones valid to the ShowStyleVariants specified, as well as ones marked as valid in any ShowStyleVariant
145
150
*/
146
151
bucketAdLibActions = 'bucketAdLibActions' ,
@@ -297,14 +302,15 @@ export interface CorelibPubSubTypes {
297
302
token ?: string
298
303
) => CollectionName . Studios
299
304
[ CorelibPubSub . timelineDatastore ] : ( studioId : StudioId , token ?: string ) => CollectionName . TimelineDatastore
305
+ [ CorelibPubSub . buckets ] : ( studioId : StudioId , bucketId : BucketId | null , token ?: string ) => CollectionName . Buckets
300
306
[ CorelibPubSub . bucketAdLibPieces ] : (
301
307
studioId : StudioId ,
302
- bucketId : BucketId ,
308
+ bucketId : BucketId | null ,
303
309
showStyleVariantIds : ShowStyleVariantId [ ]
304
310
) => CollectionName . BucketAdLibPieces
305
311
[ CorelibPubSub . bucketAdLibActions ] : (
306
312
studioId : StudioId ,
307
- bucketId : BucketId ,
313
+ bucketId : BucketId | null ,
308
314
showStyleVariantIds : ShowStyleVariantId [ ]
309
315
) => CollectionName . BucketAdLibActions
310
316
[ CorelibPubSub . expectedPackages ] : ( studioIds : StudioId [ ] , token ?: string ) => CollectionName . ExpectedPackages
@@ -323,6 +329,7 @@ export type CorelibPubSubCollections = {
323
329
[ CollectionName . AdLibActions ] : AdLibAction
324
330
[ CollectionName . AdLibPieces ] : AdLibPiece
325
331
[ CollectionName . Blueprints ] : Blueprint
332
+ [ CollectionName . Buckets ] : Bucket
326
333
[ CollectionName . BucketAdLibActions ] : BucketAdLibAction
327
334
[ CollectionName . BucketAdLibPieces ] : BucketAdLib
328
335
[ CollectionName . ExpectedMediaItems ] : ExpectedMediaItem
0 commit comments