Skip to content

Commit a5f6e13

Browse files
committed
chore: clean up structure for activePieces topic
1 parent 851ccaa commit a5f6e13

File tree

11 files changed

+31
-27
lines changed

11 files changed

+31
-27
lines changed

packages/live-status-gateway-api/api/refactor/components/buckets/bucket/bucket.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# TODO: rename this file to bucketStatus.yaml
12
$defs:
23
bucketStatus:
34
title: BucketStatus

packages/live-status-gateway-api/api/refactor/components/part/partStatus/partStatus-example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ name: 'Intro'
33
segmentId: 'n1mOVd5_K5tt4sfk6HYfTuwumGQ_'
44
autoNext: false
55
pieces:
6-
- $ref: '../../piece/piece.yaml#/$defs/piece/examples/0'
6+
- $ref: '../../piece/pieceStatus/pieceStatus.yaml#/$defs/pieceStatus/examples/0'
77
publicData:
88
partType: 'intro'

packages/live-status-gateway-api/api/refactor/components/part/partStatus/partStatus.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $defs:
2020
description: All pieces in this part
2121
type: array
2222
items:
23-
$ref: '../../piece/piece.yaml#/$defs/piece'
23+
$ref: '../../piece/pieceStatus/pieceStatus.yaml#/$defs/pieceStatus'
2424
publicData:
2525
description: Optional arbitrary data
2626
required: [id, name, segmentId, pieces]

packages/live-status-gateway-api/api/refactor/components/piece/activePieces/message.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
event: activePieces
2+
rundownPlaylistId: 'OKAgZmZ0Buc99lE_2uPPSKVbMrQ_'
3+
activePieces:
4+
- $ref: '../pieceStatus/pieceStatus-example.yaml'

packages/live-status-gateway-api/api/refactor/components/piece/activePieces/activePieces.yaml renamed to packages/live-status-gateway-api/api/refactor/components/piece/activePiecesEvent/activePiecesEvent.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
title: Active Pieces
2-
description: Active Pieces schema for websocket subscriptions
31
$defs:
4-
activePieces:
2+
activePiecesEvent:
53
type: object
64
title: ActivePiecesEvent
75
properties:
@@ -17,11 +15,8 @@ $defs:
1715
description: Pieces that are currently active (on air)
1816
type: array
1917
items:
20-
$ref: '../piece.yaml#/$defs/piece'
18+
$ref: '../pieceStatus/pieceStatus.yaml#/$defs/pieceStatus'
2119
required: [event, rundownPlaylistId, activePieces]
2220
additionalProperties: false
2321
examples:
24-
- event: activePieces
25-
rundownPlaylistId: 'OKAgZmZ0Buc99lE_2uPPSKVbMrQ_'
26-
activePieces:
27-
- $ref: '../piece.yaml#/$defs/piece/examples/0'
22+
- $ref: './activePiecesEvent-example.yaml'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
components:
2+
messages:
3+
activePiecesMessage:
4+
messageId: activePieces
5+
title: Active Pieces Event Message
6+
payload:
7+
$ref: '../activePiecesEvent/activePiecesEvent.yaml#/$defs/activePiecesEvent'
8+
examples:
9+
- payload:
10+
$ref: '../activePiecesEvent/activePiecesEvent-example.yaml'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id: 'H5CBGYjThrMSmaYvRaa5FVKJIzk_'
2+
name: 'Camera 1'
3+
sourceLayer: 'Camera'
4+
outputLayer: 'PGM'
5+
tags: ['camera']
6+
publicData:
7+
switcherSource: 1

packages/live-status-gateway-api/api/refactor/components/piece/piece.yaml renamed to packages/live-status-gateway-api/api/refactor/components/piece/pieceStatus/pieceStatus.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$defs:
2-
piece:
2+
pieceStatus:
33
type: object
44
title: PieceStatus
55
properties:
@@ -25,10 +25,4 @@ $defs:
2525
required: [id, name, sourceLayer, outputLayer]
2626
additionalProperties: false
2727
examples:
28-
- id: 'H5CBGYjThrMSmaYvRaa5FVKJIzk_'
29-
name: 'Camera 1'
30-
sourceLayer: 'Camera'
31-
outputLayer: 'PGM'
32-
tags: ['camera']
33-
publicData:
34-
switcherSource: 1
28+
- $ref: './pieceStatus-example.yaml'

packages/live-status-gateway-api/api/refactor/index.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ channels:
7474
$ref: './components/playlist/messages/activePlaylist/activePlaylist.yaml#/components/messages/activePlaylist/payload'
7575
- messageId: activePieces-typeGen
7676
payload:
77-
$ref: './components/piece/activePieces/message.yaml#/components/messages/activePiecesMessage/payload'
77+
$ref: './components/piece/messages/activePiecesMessage.yaml#/components/messages/activePiecesMessage/payload'
7878
- messageId: segments-typeGen
7979
payload:
8080
$ref: './components/segment/messages/segments/message.yaml#/components/messages/segments/payload'

0 commit comments

Comments
 (0)