Skip to content

Commit cf72b49

Browse files
committed
feat: add ignoreQuickLoop as an optional attr in the openAPI
1 parent b87cd9f commit cf72b49

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

meteor/server/api/rest/v1/playlists.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ class PlaylistsServerAPI implements PlaylistsRestAPI {
275275
connection: Meteor.Connection,
276276
event: string,
277277
rundownPlaylistId: RundownPlaylistId,
278-
delta: number
278+
delta: number,
279+
ignoreQuickLoop?: boolean
279280
): Promise<ClientAPI.ClientResponse<PartId | null>> {
280281
return ServerClientAPI.runUserActionInLogForPlaylistOnWorker(
281282
this.context.getMethodContext(connection),
@@ -291,6 +292,7 @@ class PlaylistsServerAPI implements PlaylistsRestAPI {
291292
playlistId: rundownPlaylistId,
292293
partDelta: delta,
293294
segmentDelta: 0,
295+
ignoreQuickLoop,
294296
}
295297
)
296298
}

meteor/server/lib/rest/v1/playlists.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,14 @@ export interface PlaylistsRestAPI {
109109
* @param event User event string
110110
* @param rundownPlaylistId Playlist to target.
111111
* @param delta Amount to move next point by (+/-)
112+
* @param ignoreQuickLoop When moving the next part it should ignore any of the boundaries set by the QuickLoop feature
112113
*/
113114
moveNextPart(
114115
connection: Meteor.Connection,
115116
event: string,
116117
rundownPlaylistId: RundownPlaylistId,
117-
delta: number
118+
delta: number,
119+
ignoreQuickLoop?: boolean
118120
): Promise<ClientAPI.ClientResponse<PartId | null>>
119121
/**
120122
* Moves the next Segment point by `delta` places. Negative values are allowed to move "backwards" in the script.

packages/openapi/api/definitions/playlists.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ resources:
278278
delta:
279279
type: number
280280
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.
281+
ignoreQuickLoop:
282+
type: boolean
283+
description: When true, the operation will ignore any boundaries set by the QuickLoop feature when moving to the next part
281284
required:
282285
- delta
283286
responses:

0 commit comments

Comments
 (0)