Skip to content

Commit

Permalink
feat: add ignoreQuickLoop as an optional attr in the openAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jan 9, 2025
1 parent b87cd9f commit cf72b49
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion meteor/server/api/rest/v1/playlists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ class PlaylistsServerAPI implements PlaylistsRestAPI {
connection: Meteor.Connection,
event: string,
rundownPlaylistId: RundownPlaylistId,
delta: number
delta: number,
ignoreQuickLoop?: boolean
): Promise<ClientAPI.ClientResponse<PartId | null>> {
return ServerClientAPI.runUserActionInLogForPlaylistOnWorker(
this.context.getMethodContext(connection),
Expand All @@ -291,6 +292,7 @@ class PlaylistsServerAPI implements PlaylistsRestAPI {
playlistId: rundownPlaylistId,
partDelta: delta,
segmentDelta: 0,
ignoreQuickLoop,
}
)
}
Expand Down
4 changes: 3 additions & 1 deletion meteor/server/lib/rest/v1/playlists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,14 @@ export interface PlaylistsRestAPI {
* @param event User event string
* @param rundownPlaylistId Playlist to target.
* @param delta Amount to move next point by (+/-)
* @param ignoreQuickLoop When moving the next part it should ignore any of the boundaries set by the QuickLoop feature
*/
moveNextPart(
connection: Meteor.Connection,
event: string,
rundownPlaylistId: RundownPlaylistId,
delta: number
delta: number,
ignoreQuickLoop?: boolean
): Promise<ClientAPI.ClientResponse<PartId | null>>
/**
* Moves the next Segment point by `delta` places. Negative values are allowed to move "backwards" in the script.
Expand Down
3 changes: 3 additions & 0 deletions packages/openapi/api/definitions/playlists.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ resources:
delta:
type: number
description: Amount to move next Segment point by (+/-). If delta results in an index that is greater than the number of Segments available, no action will be taken.
ignoreQuickLoop:
type: boolean
description: When true, the operation will ignore any boundaries set by the QuickLoop feature when moving to the next part
required:
- delta
responses:
Expand Down

0 comments on commit cf72b49

Please sign in to comment.