Skip to content

Commit 3fd48ee

Browse files
committed
chore: rebase to schema refactor
1 parent 75d54a5 commit 3fd48ee

File tree

8 files changed

+79
-191
lines changed

8 files changed

+79
-191
lines changed

packages/live-status-gateway-api/api/asyncapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ channels:
4747
$ref: './topics/packages/packagesTopic.yaml'
4848
buckets:
4949
$ref: './topics/buckets/bucketsTopic.yaml'
50+
notifications:
51+
$ref: './topics/notifications/notificationsTopic.yaml'

packages/live-status-gateway-api/api/components/notifications/target/partInstance/notificationTargetPartInstance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $defs:
66
properties:
77
type:
88
$ref: '../notificationTargetType.yaml#/$defs/NotificationTargetType'
9-
enum: [partInstance]
9+
const: partInstance
1010
studioId:
1111
type: string
1212
rundownId:

packages/live-status-gateway-api/api/components/notifications/target/pieceInstance/notificationTargetPieceInstance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $defs:
66
properties:
77
type:
88
$ref: '../notificationTargetType.yaml#/$defs/NotificationTargetType'
9-
enum: [pieceInstance]
9+
const: pieceInstance
1010
studioId:
1111
type: string
1212
rundownId:

packages/live-status-gateway-api/api/components/notifications/target/rundown/notificationTargetRundown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $defs:
66
properties:
77
type:
88
$ref: '../notificationTargetType.yaml#/$defs/NotificationTargetType'
9-
enum: [rundown]
9+
const: rundown
1010
studioId:
1111
type: string
1212
rundownId:

packages/live-status-gateway-api/api/components/notifications/target/rundownPlaylist/notificationTargetRundownPlaylist.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $defs:
66
properties:
77
type:
88
$ref: '../notificationTargetType.yaml#/$defs/NotificationTargetType'
9-
enum: [playlist]
9+
const: playlist
1010
studioId:
1111
type: string
1212
playlistId:

packages/live-status-gateway-api/api/components/notifications/target/unknown/notificationTargetUnknown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $defs:
66
properties:
77
type:
88
$ref: '../notificationTargetType.yaml#/$defs/NotificationTargetType'
9-
enum: [unknown]
9+
const: unknown
1010
additionalProperties: false
1111
examples:
1212
- $ref: './notificationTargetUnknown-example.yaml'

packages/live-status-gateway-api/src/generated/asyncapi.yaml

Lines changed: 66 additions & 181 deletions
Large diffs are not rendered by default.

packages/live-status-gateway-api/src/generated/schema.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ interface NotificationTargetRundown {
826826
/**
827827
* Possible NotificationTarget types
828828
*/
829-
type: NotificationTargetType
829+
type: NotificationTargetType.RUNDOWN
830830
studioId: string
831831
rundownId: string
832832
}
@@ -846,7 +846,7 @@ interface NotificationTargetRundownPlaylist {
846846
/**
847847
* Possible NotificationTarget types
848848
*/
849-
type: NotificationTargetType
849+
type: NotificationTargetType.PLAYLIST
850850
studioId: string
851851
playlistId: string
852852
}
@@ -855,7 +855,7 @@ interface NotificationTargetPartInstance {
855855
/**
856856
* Possible NotificationTarget types
857857
*/
858-
type: NotificationTargetType
858+
type: NotificationTargetType.PART_INSTANCE
859859
studioId: string
860860
rundownId: string
861861
partInstanceId: string
@@ -865,7 +865,7 @@ interface NotificationTargetPieceInstance {
865865
/**
866866
* Possible NotificationTarget types
867867
*/
868-
type: NotificationTargetType
868+
type: NotificationTargetType.PIECE_INSTANCE
869869
studioId: string
870870
rundownId: string
871871
partInstanceId: string
@@ -876,7 +876,7 @@ interface NotificationTargetUnknown {
876876
/**
877877
* Possible NotificationTarget types
878878
*/
879-
type: NotificationTargetType
879+
type: NotificationTargetType.UNKNOWN
880880
}
881881

882882
export type Slash =
@@ -885,6 +885,7 @@ export type Slash =
885885
| AdLibsEvent
886886
| BucketsEvent
887887
| HeartbeatEvent
888+
| NotificationsEvent
888889
| PackagesEvent
889890
| PongEvent
890891
| SegmentsEvent

0 commit comments

Comments
 (0)