Requests
Requests from a venue’s chat: song requests for whoever is on, and karaoke signups. Each kind has its own queue and is open only while the venue permits it and a host is on the lineup.
Mutations
Section titled “Mutations”| Operation | Returns | Description |
|---|---|---|
requestSonginput: SongRequestCreateInput! |
SongRequestCreatePayload |
Asks for a song, or signs up to sing one, in a venue’s chat room. Everyone in the room sees the REQUEST line, and the host finds it in the queue. Refused while the venue is not taking requests of that kind (see Venue.requests for why). requires requests:write:self |
setSongRequestState staffql onlyinput: SongRequestSetStateInput! |
SongRequestSetStatePayload |
Moves a song request or karaoke signup along: UP calls it (playing now, or the singer is on, announced in the room; whatever was up goes back to QUEUED), DONE and SKIPPED finish it, QUEUED puts it back. For admins, the venue’s managers and the host on now. requires requests:write:mine or requests:write:my_troupes or events:write:venue |
withdrawSongRequestinput: SongRequestWithdrawInput! |
SongRequestWithdrawPayload |
Takes back a song request or karaoke signup of yours that is still waiting. Its chat line shows it withdrawn. requires requests:write:self |
Objects
Section titled “Objects”SongRequest
Section titled “SongRequest”Object · implements Node
A song request or karaoke signup made from a venue’s chat (requestSong): one line in the venue night’s queue of its kind, which the host calls up, marks done or skips (setSongRequestState). Its REQUEST chat line follows it.
| Field | Type | Description |
|---|---|---|
artist |
String |
Who the song is by, as typed. |
calledAt |
ISO8601DateTime |
When the host called it up. |
createdAt |
ISO8601DateTime! |
When it was asked. |
event |
Event |
The event whose lineup it was made for; null for the venue night’s own. |
finishedAt |
ISO8601DateTime |
When it was played or sung, skipped or withdrawn. |
id |
ID! |
Its UUID. |
kind |
SongRequestKind! |
A song to play, or a karaoke signup. |
mine |
Boolean! |
Whether the signed-in user asked for it. |
night |
ISO8601Date! |
The venue night it is on. |
note |
String |
A dedication or a word for the host. |
position |
Int! |
Its place in the night’s queue of its kind, from 0. |
requesterName |
String |
Who asked, as the room shows them (“Aurora B.”); in full for themself, their friends and admins. |
singer |
String |
Who is singing, for a karaoke signup: the name(s) typed, else the requester. Null for a song request. |
spotifyUri |
String |
The Spotify song it was shared from (spotify:track:<id>); null when typed or picked without one. |
spotifyUrl |
String |
The song’s open.spotify.com link, when shared from Spotify. |
state |
SongRequestState! |
Where it is in the queue. |
summary |
String! |
The request in words: “Dancing Queen by ABBA”, or “Ada to sing Dancing Queen by ABBA”. |
title |
String! |
The song. |
venue |
Venue! |
Where. |
SongRequestConnection
Section titled “SongRequestConnection”Object
The connection type for SongRequest.
| Field | Type | Description |
|---|---|---|
edges |
[SongRequestEdge] |
A list of edges. |
nodes |
[SongRequest] |
A list of nodes. |
pageInfo |
PageInfo! |
Information to aid in pagination. |
SongRequestEdge
Section titled “SongRequestEdge”Object
An edge in a connection.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
A cursor for use in pagination. |
node |
SongRequest |
The item at the end of the edge. |
SongRequestWindow
Section titled “SongRequestWindow”Object
Whether a venue’s chat takes requests of one kind right now, and the night’s queue of them. Open only while the venue permits the kind and someone who takes it is on the lineup (a host or DJ for song requests, a host for karaoke signups).
| Field | Type | Description |
|---|---|---|
closed |
Boolean! |
Whether they are closed for the night: closed early (paused) or past the cutoff (cutOff). The apps show “Signups closed” in place of the “+”. |
closedReason |
String |
Why requests are closed, fit to show in the room (“Karaoke signups open when a host is on”). Null while open. |
closesAt |
ISO8601DateTime |
When they close by themselves tonight: Venue.requestsCutoffMinutes before the event on (or the night) ends. Null without a cutoff. |
cutOff |
Boolean! |
Whether the cutoff closed them (closesAt has passed and the venue has not reopened them for tonight). |
finishedafter: Stringbefore: Stringfirst: Intlast: Int |
SongRequestConnection! |
Tonight’s requests of this kind that were played or sung, or skipped, the latest first. |
host |
Appearance |
Who takes them now: the lineup entry on with a role that does. Null when nobody is. |
kind |
SongRequestKind! |
Which kind. |
mineafter: Stringbefore: Stringfirst: Intlast: Int |
SongRequestConnection! |
The signed-in user’s requests of this kind tonight, oldest first; empty signed out. |
open |
Boolean! |
Whether a request of this kind would be taken right now. |
paused |
Boolean! |
Whether the venue paused this kind for tonight (updateVenue songRequestsPaused or karaokePaused): what is in the queue stays (the singers on the lineup still sing), nobody new asks. |
permitted |
Boolean! |
Whether the venue takes this kind at all: song requests switched on, or karaoke run with AudienceKit. |
queueafter: Stringbefore: Stringfirst: Intlast: Int |
SongRequestConnection! |
Tonight’s queue of this kind: what is waiting or up, in order. |
reopened |
Boolean! |
Whether the venue reopened them for tonight past the cutoff (updateVenue karaokeReopened or songRequestsReopened). |
VenueRequestsView
Section titled “VenueRequestsView”Object · implements IVenueRequests
The local Requests implementation of a venue’s song requests and karaoke signups.
| Field | Type | Description |
|---|---|---|
cutoffMinutes |
Int |
Minutes before the event on (or the night) ends that both kinds close by themselves (updateVenue requestsCutoffMinutes); null for no cutoff. |
karaoke |
SongRequestWindow! |
Karaoke signups: open while the venue runs karaoke with AudienceKit and a host is on. |
song |
SongRequestWindow! |
Song requests: open while the venue takes them and a host or DJ is on. |
takesRequests |
Boolean! |
Whether the venue takes song requests at all (updateVenue songRequests); whether any are open now is song.open. |
Mutation payloads
Section titled “Mutation payloads”SongRequestCreatePayload
Section titled “SongRequestCreatePayload”Object
Autogenerated return type of SongRequestCreate.
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
message |
VenueMessage! |
The REQUEST line, as the room sees it. |
request |
SongRequest! |
The request, in its queue. |
SongRequestSetStatePayload
Section titled “SongRequestSetStatePayload”Object · staffql only
Autogenerated return type of SongRequestSetState.
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
queue staffql only |
[SongRequest!]! |
The night’s queue of its kind, after the change. |
request staffql only |
SongRequest! |
The request, after the change. |
SongRequestWithdrawPayload
Section titled “SongRequestWithdrawPayload”Object
Autogenerated return type of SongRequestWithdraw.
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
request |
SongRequest! |
The request, withdrawn. |
Inputs
Section titled “Inputs”SongRequestCreateInput
Section titled “SongRequestCreateInput”Input
Autogenerated input type of SongRequestCreate
| Field | Type | Description |
|---|---|---|
artist |
String |
Who the song is by. |
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
kind |
SongRequestKind! |
A song to play, or a karaoke signup. |
note |
String |
A dedication or a word for the host (up to 280 characters). |
singer |
String |
Who is singing, for a karaoke signup (“Ada & Bo”); the requester when left out. |
spotifyUrl |
String |
A Spotify song link the person shared or pasted (open.spotify.com, spotify.link or spotify:track:). Its name and artists fill in title and artist when those are left out. |
title |
String |
The song; may be left out with spotifyUrl. |
venueId |
ID! |
The venue whose room you’re in. |
SongRequestSetStateInput
Section titled “SongRequestSetStateInput”Input · staffql only
Autogenerated input type of SongRequestSetState
| Field | Type | Description |
|---|---|---|
clientMutationId staffql only |
String |
A unique identifier for the client performing the mutation. |
id staffql only |
ID! |
The request. |
state staffql only |
SongRequestState! |
Where to put it. |
SongRequestWithdrawInput
Section titled “SongRequestWithdrawInput”Input
Autogenerated input type of SongRequestWithdraw
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
id |
ID! |
The request. |
Interfaces
Section titled “Interfaces”IVenueRequests
Section titled “IVenueRequests”Interface · implemented by VenueRequestsView · mixin edge requests on Venue
Requests from a venue’s chat: song requests for whoever is on, and karaoke signups. Each kind has its own queue and is open only while the venue permits it and a host is on the lineup.
| Field | Type | Description |
|---|---|---|
cutoffMinutes |
Int |
Minutes before the event on (or the night) ends that both kinds close by themselves (updateVenue requestsCutoffMinutes); null for no cutoff. |
karaoke |
SongRequestWindow! |
Karaoke signups: open while the venue runs karaoke with AudienceKit and a host is on. |
song |
SongRequestWindow! |
Song requests: open while the venue takes them and a host or DJ is on. |
takesRequests |
Boolean! |
Whether the venue takes song requests at all (updateVenue songRequests); whether any are open now is song.open. |
SongRequestKind
Section titled “SongRequestKind”Enum
What a request from the chat asks for.
KARAOKEA karaoke signup: a song the requester wants to sing.SONGA song for the host or DJ to play.
SongRequestState
Section titled “SongRequestState”Enum
Where a request is in its queue.
DONEPlayed or sung.QUEUEDWaiting its turn.SKIPPEDThe host passed on it.UPCalled up: playing now, or the singer is on.WITHDRAWNThe requester took it back.